/*! For license information please see client.5bb097ef02844691ff06.js.LICENSE.txt */ (self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[6047],{22782:function(e,t,n){var r={"./chunks.png":82728,"./eggbug-classic.png":22630,"./eggbug.png":40656,"./sixty.png":64402,"./unyeah.png":80025,"./yeah.png":34132};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=22782},43258:function(e,t,n){var r={"./eggbug-asleep.png":52930,"./eggbug-devious.png":56917,"./eggbug-heart-sob.png":75007,"./eggbug-nervous.png":33210,"./eggbug-pensive.png":10010,"./eggbug-pleading.png":30641,"./eggbug-relieved.png":74991,"./eggbug-shocked.png":34274,"./eggbug-smile-hearts.png":95211,"./eggbug-sob.png":25322,"./eggbug-tuesday.png":85941,"./eggbug-uwu.png":22204,"./eggbug-wink.png":22571,"./host-aww.png":21114,"./host-cry.png":45272,"./host-evil.png":25043,"./host-frown.png":22122,"./host-joy.png":97509,"./host-love.png":19489,"./host-nervous.png":52704,"./host-plead.png":16185,"./host-shock.png":31795,"./host-stare.png":80254};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=43258},49508:function(e,t,n){var r={"./2fa-token":[76736,847],"./2fa-token.tsx":[76736,847],"./activation-error":[29319,4055],"./activation-error.tsx":[29319,4055],"./activation-success":[66926,8451],"./activation-success.tsx":[66926,8451],"./artist-alley/artist-alley":[44346,2803,4220],"./artist-alley/artist-alley.tsx":[44346,2803,4220],"./artist-alley/create":[72764,8396,954],"./artist-alley/create.tsx":[72764,8396,954],"./artist-alley/owner-manage-listings":[31389,3633],"./artist-alley/owner-manage-listings.tsx":[31389,3633],"./artist-alley/payment-cancelled":[57579,1090],"./artist-alley/payment-cancelled.tsx":[57579,1090],"./artist-alley/payment-success":[71363,2156],"./artist-alley/payment-success.tsx":[71363,2156],"./ask":[14374,7348],"./ask.tsx":[14374,7348],"./bookmarked-tag-feed":[7691,7341],"./bookmarked-tag-feed.tsx":[7691,7341],"./cohost-reader":[82225,8584],"./cohost-reader.tsx":[82225,8584],"./create-project":[34223,9678],"./create-project.tsx":[34223,9678],"./dashboard":[6977,3470],"./dashboard-nonlive-post-feed":[83334,6789],"./dashboard-nonlive-post-feed.tsx":[83334,6789],"./dashboard.tsx":[6977,3470],"./error":[40243,9293],"./error.tsx":[40243,9293],"./follow-requests":[24863,5790],"./follow-requests-context":[81511,9629],"./follow-requests-context.ts":[81511,9629],"./follow-requests.tsx":[24863,5790],"./followers-list":[37171,3797,6060],"./followers-list.tsx":[37171,3797,6060],"./home":[40792,1838],"./home.tsx":[40792,1838],"./inbox":[71217,2560],"./inbox.tsx":[71217,2560],"./liked-posts-feed":[49520,7490],"./liked-posts-feed.tsx":[49520,7490],"./login":[46538,2706],"./login.tsx":[46538,2706],"./moderation/artist-alley-pending-queue":[98915,8456],"./moderation/artist-alley-pending-queue.tsx":[98915,8456],"./moderation/bulk-activate":[27028,3701],"./moderation/bulk-activate.tsx":[27028,3701],"./moderation/cache-maintenance":[76693,2956,9630],"./moderation/cache-maintenance.tsx":[76693,2956,9630],"./moderation/create-oauth-client":[22024,6178,3389],"./moderation/create-oauth-client.tsx":[22024,6178,3389],"./moderation/home":[21341,9908],"./moderation/home.tsx":[21341,9908],"./moderation/manage-artist-alley-listing":[90402,8996],"./moderation/manage-artist-alley-listing.tsx":[90402,8996],"./moderation/manage-ask":[70461,3656],"./moderation/manage-ask.tsx":[70461,3656],"./moderation/manage-invites":[99718,9278],"./moderation/manage-invites.tsx":[99718,9278],"./moderation/manage-page":[51502,2956,3498],"./moderation/manage-page.active-listings":[453,8916],"./moderation/manage-page.active-listings.tsx":[453,8916],"./moderation/manage-page.add-editor":[55892,2956,3514],"./moderation/manage-page.add-editor.tsx":[55892,2956,3514],"./moderation/manage-page.edit-profile-form":[23010,2104],"./moderation/manage-page.edit-profile-form.tsx":[23010,2104],"./moderation/manage-page.edit-project-flags-form":[209,9171],"./moderation/manage-page.edit-project-flags-form.tsx":[209,9171],"./moderation/manage-page.mod-flags":[73962,1132],"./moderation/manage-page.mod-flags.tsx":[73962,1132],"./moderation/manage-page.purge-immediately":[3152,5730],"./moderation/manage-page.purge-immediately.tsx":[3152,5730],"./moderation/manage-page.queue-for-purge":[85473,125],"./moderation/manage-page.queue-for-purge.tsx":[85473,125],"./moderation/manage-page.tsx":[51502,2956,3498],"./moderation/manage-post":[30254,4316],"./moderation/manage-post.edit-post-form":[37147,3549],"./moderation/manage-post.edit-post-form.tsx":[37147,3549],"./moderation/manage-post.tsx":[30254,4316],"./moderation/manage-user":[86234,1367],"./moderation/manage-user.activate":[68796,6336],"./moderation/manage-user.activate.tsx":[68796,6336],"./moderation/manage-user.ban-user-form":[69458,5787],"./moderation/manage-user.ban-user-form.tsx":[69458,5787],"./moderation/manage-user.birthdate-edit-form":[89079,7591],"./moderation/manage-user.birthdate-edit-form.tsx":[89079,7591],"./moderation/manage-user.manage-permissions":[29785,4766],"./moderation/manage-user.manage-permissions.tsx":[29785,4766],"./moderation/manage-user.purge-user":[32259,1936],"./moderation/manage-user.purge-user.tsx":[32259,1936],"./moderation/manage-user.tsx":[86234,1367],"./moderation/tag-ontology/manage-tags":[24348,7851],"./moderation/tag-ontology/manage-tags.tsx":[24348,7851],"./moderation/tag-ontology/pending-requests":[67335,2714],"./moderation/tag-ontology/pending-requests.tsx":[67335,2714],"./notifications":[91792,3423],"./notifications.tsx":[91792,3423],"./project-list":[55143,8508],"./project-list.tsx":[55143,8508],"./project-page-editor":[3072,8196,7079],"./project-page-editor.tsx":[3072,8196,7079],"./project-page-view":[11876,8196,7125],"./project-page-view.tsx":[11876,8196,7125],"./project-post-composer":[77870,510],"./project-post-composer.tsx":[77870,510],"./project-post-feed":[58969,5695],"./project-post-feed.tsx":[58969,5695],"./project-settings":[21917,8196,1458],"./project-settings.tsx":[21917,8196,1458],"./project-tagged-post-feed":[29202,8196,5785],"./project-tagged-post-feed.tsx":[29202,8196,5785],"./reset-password":[69369,607],"./reset-password.tsx":[69369,607],"./search":[17538,379],"./search.tsx":[17538,379],"./signup":[34645,59,8391],"./signup.tsx":[34645,59,8391],"./silenced-post-feed":[26689,8217],"./silenced-post-feed.tsx":[26689,8217],"./single-post-view":[4589,8196,1047],"./single-post-view.tsx":[4589,8196,1047],"./static/community-guidelines.mdx":[65807,3913],"./static/credits.mdx":[21560,6884],"./static/markdown-reference.mdx":[76966,8748,5003],"./static/privacy.mdx":[65427,4628],"./static/tos.mdx":[16750,9005],"./suspended":[40580,4539],"./suspended.tsx":[40580,4539],"./tagged-post-feed":[24029,5004],"./tagged-post-feed.tsx":[24029,5004],"./user-settings":[64672,6178,4843,2774],"./user-settings.tsx":[64672,6178,4843,2774],"./welcome/landing-page":[73581,2711],"./welcome/landing-page.tsx":[73581,2711]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id=49508,e.exports=i},9519:function(e,t,n){var r={"./2fa-token":76736,"./2fa-token.tsx":76736,"./activation-error":29319,"./activation-error.tsx":29319,"./activation-success":66926,"./activation-success.tsx":66926,"./artist-alley/artist-alley":44346,"./artist-alley/artist-alley.tsx":44346,"./artist-alley/create":72764,"./artist-alley/create.tsx":72764,"./artist-alley/owner-manage-listings":31389,"./artist-alley/owner-manage-listings.tsx":31389,"./artist-alley/payment-cancelled":57579,"./artist-alley/payment-cancelled.tsx":57579,"./artist-alley/payment-success":71363,"./artist-alley/payment-success.tsx":71363,"./ask":14374,"./ask.tsx":14374,"./bookmarked-tag-feed":7691,"./bookmarked-tag-feed.tsx":7691,"./cohost-reader":82225,"./cohost-reader.tsx":82225,"./create-project":34223,"./create-project.tsx":34223,"./dashboard":6977,"./dashboard-nonlive-post-feed":83334,"./dashboard-nonlive-post-feed.tsx":83334,"./dashboard.tsx":6977,"./error":40243,"./error.tsx":40243,"./follow-requests":24863,"./follow-requests-context":81511,"./follow-requests-context.ts":81511,"./follow-requests.tsx":24863,"./followers-list":37171,"./followers-list.tsx":37171,"./home":40792,"./home.tsx":40792,"./inbox":71217,"./inbox.tsx":71217,"./liked-posts-feed":49520,"./liked-posts-feed.tsx":49520,"./login":46538,"./login.tsx":46538,"./moderation/artist-alley-pending-queue":98915,"./moderation/artist-alley-pending-queue.tsx":98915,"./moderation/bulk-activate":27028,"./moderation/bulk-activate.tsx":27028,"./moderation/cache-maintenance":76693,"./moderation/cache-maintenance.tsx":76693,"./moderation/create-oauth-client":22024,"./moderation/create-oauth-client.tsx":22024,"./moderation/home":21341,"./moderation/home.tsx":21341,"./moderation/manage-artist-alley-listing":90402,"./moderation/manage-artist-alley-listing.tsx":90402,"./moderation/manage-ask":70461,"./moderation/manage-ask.tsx":70461,"./moderation/manage-invites":99718,"./moderation/manage-invites.tsx":99718,"./moderation/manage-page":51502,"./moderation/manage-page.active-listings":453,"./moderation/manage-page.active-listings.tsx":453,"./moderation/manage-page.add-editor":55892,"./moderation/manage-page.add-editor.tsx":55892,"./moderation/manage-page.edit-profile-form":23010,"./moderation/manage-page.edit-profile-form.tsx":23010,"./moderation/manage-page.edit-project-flags-form":209,"./moderation/manage-page.edit-project-flags-form.tsx":209,"./moderation/manage-page.mod-flags":73962,"./moderation/manage-page.mod-flags.tsx":73962,"./moderation/manage-page.purge-immediately":3152,"./moderation/manage-page.purge-immediately.tsx":3152,"./moderation/manage-page.queue-for-purge":85473,"./moderation/manage-page.queue-for-purge.tsx":85473,"./moderation/manage-page.tsx":51502,"./moderation/manage-post":30254,"./moderation/manage-post.edit-post-form":37147,"./moderation/manage-post.edit-post-form.tsx":37147,"./moderation/manage-post.tsx":30254,"./moderation/manage-user":86234,"./moderation/manage-user.activate":68796,"./moderation/manage-user.activate.tsx":68796,"./moderation/manage-user.ban-user-form":69458,"./moderation/manage-user.ban-user-form.tsx":69458,"./moderation/manage-user.birthdate-edit-form":89079,"./moderation/manage-user.birthdate-edit-form.tsx":89079,"./moderation/manage-user.manage-permissions":29785,"./moderation/manage-user.manage-permissions.tsx":29785,"./moderation/manage-user.purge-user":32259,"./moderation/manage-user.purge-user.tsx":32259,"./moderation/manage-user.tsx":86234,"./moderation/tag-ontology/manage-tags":24348,"./moderation/tag-ontology/manage-tags.tsx":24348,"./moderation/tag-ontology/pending-requests":67335,"./moderation/tag-ontology/pending-requests.tsx":67335,"./notifications":91792,"./notifications.tsx":91792,"./project-list":55143,"./project-list.tsx":55143,"./project-page-editor":3072,"./project-page-editor.tsx":3072,"./project-page-view":11876,"./project-page-view.tsx":11876,"./project-post-composer":77870,"./project-post-composer.tsx":77870,"./project-post-feed":58969,"./project-post-feed.tsx":58969,"./project-settings":21917,"./project-settings.tsx":21917,"./project-tagged-post-feed":29202,"./project-tagged-post-feed.tsx":29202,"./reset-password":69369,"./reset-password.tsx":69369,"./search":17538,"./search.tsx":17538,"./signup":34645,"./signup.tsx":34645,"./silenced-post-feed":26689,"./silenced-post-feed.tsx":26689,"./single-post-view":4589,"./single-post-view.tsx":4589,"./static/community-guidelines.mdx":65807,"./static/credits.mdx":21560,"./static/markdown-reference.mdx":76966,"./static/privacy.mdx":65427,"./static/tos.mdx":16750,"./suspended":40580,"./suspended.tsx":40580,"./tagged-post-feed":24029,"./tagged-post-feed.tsx":24029,"./user-settings":64672,"./user-settings.tsx":64672,"./welcome/landing-page":73581,"./welcome/landing-page.tsx":73581};function i(e){var t=a(e);if(!n.m[t]){var r=new Error("Module '"+e+"' ('"+t+"') is not available (weak dependency)");throw r.code="MODULE_NOT_FOUND",r}return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,i.id=9519,e.exports=i},32903:function(e,t,n){"use strict";n.d(t,{YF:function(){return f}});var r=n(26645),i=n(94159),a=n(98410),o="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!s(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||s(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=l(e);return Math.round(t*n)/n}function c(e){const t=i.useRef(e);return o((()=>{t.current=e})),t}function f(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:g,open:v}=e,[y,b]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[w,k]=i.useState(f);s(w,f)||k(f);const[_,E]=i.useState(null),[x,T]=i.useState(null),S=i.useCallback((e=>{e!=I.current&&(I.current=e,E(e))}),[E]),C=i.useCallback((e=>{e!==N.current&&(N.current=e,T(e))}),[T]),O=p||_,A=h||x,I=i.useRef(null),N=i.useRef(null),P=i.useRef(y),R=c(g),L=c(d),M=i.useCallback((()=>{if(!I.current||!N.current)return;const e={placement:t,strategy:n,middleware:w};L.current&&(e.platform=L.current),(0,r.oo)(I.current,N.current,e).then((e=>{const t={...e,isPositioned:!0};D.current&&!s(P.current,t)&&(P.current=t,a.flushSync((()=>{b(t)})))}))}),[w,t,n,L]);o((()=>{!1===v&&P.current.isPositioned&&(P.current.isPositioned=!1,b((e=>({...e,isPositioned:!1}))))}),[v]);const D=i.useRef(!1);o((()=>(D.current=!0,()=>{D.current=!1})),[]),o((()=>{if(O&&(I.current=O),A&&(N.current=A),O&&A){if(R.current)return R.current(O,A,M);M()}}),[O,A,M,R]);const F=i.useMemo((()=>({reference:I,floating:N,setReference:S,setFloating:C})),[S,C]),j=i.useMemo((()=>({reference:O,floating:A})),[O,A]),B=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=u(j.floating,y.x),r=u(j.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...l(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,m,j.floating,y.x,y.y]);return i.useMemo((()=>({...y,update:M,refs:F,elements:j,floatingStyles:B})),[y,M,F,j,B])}},93737:function(e,t,n){"use strict";var r=n(86757),i=Object.prototype.hasOwnProperty,a={align:"text-align",valign:"vertical-align",height:"height",width:"width"};function o(e){var t;if("tr"===e.tagName||"td"===e.tagName||"th"===e.tagName)for(t in a)i.call(a,t)&&void 0!==e.properties[t]&&(s(e,a[t],e.properties[t]),delete e.properties[t])}function s(e,t,n){var r=(e.properties.style||"").trim();r&&!/;\s*/.test(r)&&(r+=";"),r&&(r+=" ");var i=r+t+": "+n+";";e.properties.style=i}e.exports=function(e){return r(e,"element",o),e}},32183:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.removeEventListener(a,p),d=null}},createHref:e=>t(o,e),push:function(e,t){f=i.Push;let r=l(h.location,e,t);null==n||n(r,e);let a=s(r),p=h.createHref(r);try{c.pushState(a,"",p)}catch(e){o.location.assign(p)}u&&d&&d({action:f,location:r})},replace:function(e,t){f=i.Replace;let r=l(h.location,e,t);null==n||n(r,e);let a=s(r),o=h.createHref(r);c.replaceState(a,"",o),u&&d&&d({action:f,location:r})},go:e=>c.go(e)};return h}((function(e,t){var n,r;let{pathname:i,search:a,hash:o}=e.location;return l("",{pathname:i,search:a,hash:o},(null==(n=t.state)?void 0:n.usr)||null,(null==(r=t.state)?void 0:r.key)||"default")}),(function(e,t){return"string"==typeof t?t:function(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}(t)}),null,e)}function s(e){return{usr:e.state,key:e.key}}function l(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?u(t):t,{state:n,key:(null==t?void 0:t.key)||i||Math.random().toString(36).substr(2,8)})}function u(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var c;function f(e,t,n){void 0===n&&(n="/");let r=y(("string"==typeof t?u(t):t).pathname||"/",n);if(null==r)return null;let i=d(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let e=0;null==a&&e{let a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(b(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let o=_([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(b(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),d(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:m(o,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(c||(c={}));const p=/^:\w+$/,h=e=>"*"===e;function m(e,t){let n=e.split("/"),r=n.length;return n.some(h)&&(r+=-2),t&&(r+=2),n.filter((e=>!h(e))).reduce(((e,t)=>e+(p.test(t)?3:""===t?1:10)),r)}function g(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let e=0;e(r.push(t),"([^\\/]+)")));return e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:(?=[@.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return w(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(s[n]||"",t),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function y(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function b(e,t){if(!1===e||null==e)throw new Error(t)}function w(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function k(e,t,n,i){void 0===i&&(i=!1);let a,o="string"==typeof e?u(e):r({},e),s=""===e||""===o.pathname,l=s?"/":o.pathname;if(i||null==l)a=n;else{let e=t.length-1;if(l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?u(e):e,a=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:a,search:x(r),hash:T(i)}}(o,a),f=l&&"/"!==l&&l.endsWith("/"),d=(s||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!d||(c.pathname+="/"),c}const _=e=>e.join("/").replace(/\/\/+/g,"/"),E=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),x=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",T=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function S(e){return e instanceof class{constructor(e,t,n){this.status=e,this.statusText=t||"",this.data=n}}}},57867:function(e,t,n){const r=n(10001),i=n(56320),a=n(7376),o=n(86812),[s,{lineHeight:l}]=a.fontSize.base,{spacing:u,borderWidth:c,borderRadius:f}=a;function d(e,t){return e.replace("",`var(${t}, 1)`)}const p=i.withOptions((function(e={strategy:void 0}){return function({addBase:t,addComponents:n,theme:i}){const a=void 0===e.strategy?["base","class"]:[e.strategy],p=[{base:["[type='text']","input:where(:not([type]))","[type='email']","[type='url']","[type='password']","[type='number']","[type='date']","[type='datetime-local']","[type='month']","[type='search']","[type='tel']","[type='time']","[type='week']","[multiple]","textarea","select"],class:[".form-input",".form-textarea",".form-select",".form-multiselect"],styles:{appearance:"none","background-color":"#fff","border-color":d(i("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":c.DEFAULT,"border-radius":f.none,"padding-top":u[2],"padding-right":u[3],"padding-bottom":u[2],"padding-left":u[3],"font-size":s,"line-height":l,"--tw-shadow":"0 0 #0000","&:focus":{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":d(i("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)","border-color":d(i("colors.blue.600",o.blue[600]),"--tw-border-opacity")}}},{base:["input::placeholder","textarea::placeholder"],class:[".form-input::placeholder",".form-textarea::placeholder"],styles:{color:d(i("colors.gray.500",o.gray[500]),"--tw-text-opacity"),opacity:"1"}},{base:["::-webkit-datetime-edit-fields-wrapper"],class:[".form-input::-webkit-datetime-edit-fields-wrapper"],styles:{padding:"0"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"min-height":"1.5em"}},{base:["::-webkit-date-and-time-value"],class:[".form-input::-webkit-date-and-time-value"],styles:{"text-align":"inherit"}},{base:["::-webkit-datetime-edit"],class:[".form-input::-webkit-datetime-edit"],styles:{display:"inline-flex"}},{base:["::-webkit-datetime-edit","::-webkit-datetime-edit-year-field","::-webkit-datetime-edit-month-field","::-webkit-datetime-edit-day-field","::-webkit-datetime-edit-hour-field","::-webkit-datetime-edit-minute-field","::-webkit-datetime-edit-second-field","::-webkit-datetime-edit-millisecond-field","::-webkit-datetime-edit-meridiem-field"],class:[".form-input::-webkit-datetime-edit",".form-input::-webkit-datetime-edit-year-field",".form-input::-webkit-datetime-edit-month-field",".form-input::-webkit-datetime-edit-day-field",".form-input::-webkit-datetime-edit-hour-field",".form-input::-webkit-datetime-edit-minute-field",".form-input::-webkit-datetime-edit-second-field",".form-input::-webkit-datetime-edit-millisecond-field",".form-input::-webkit-datetime-edit-meridiem-field"],styles:{"padding-top":0,"padding-bottom":0}},{base:["select"],class:[".form-select"],styles:{"background-image":`url("${r(``)}")`,"background-position":`right ${u[2]} center`,"background-repeat":"no-repeat","background-size":"1.5em 1.5em","padding-right":u[10],"print-color-adjust":"exact"}},{base:["[multiple]",'[size]:where(select:not([size="1"]))'],class:['.form-select:where([size]:not([size="1"]))'],styles:{"background-image":"initial","background-position":"initial","background-repeat":"unset","background-size":"initial","padding-right":u[3],"print-color-adjust":"unset"}},{base:["[type='checkbox']","[type='radio']"],class:[".form-checkbox",".form-radio"],styles:{appearance:"none",padding:"0","print-color-adjust":"exact",display:"inline-block","vertical-align":"middle","background-origin":"border-box","user-select":"none","flex-shrink":"0",height:u[4],width:u[4],color:d(i("colors.blue.600",o.blue[600]),"--tw-text-opacity"),"background-color":"#fff","border-color":d(i("colors.gray.500",o.gray[500]),"--tw-border-opacity"),"border-width":c.DEFAULT,"--tw-shadow":"0 0 #0000"}},{base:["[type='checkbox']"],class:[".form-checkbox"],styles:{"border-radius":f.none}},{base:["[type='radio']"],class:[".form-radio"],styles:{"border-radius":"100%"}},{base:["[type='checkbox']:focus","[type='radio']:focus"],class:[".form-checkbox:focus",".form-radio:focus"],styles:{outline:"2px solid transparent","outline-offset":"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":d(i("colors.blue.600",o.blue[600]),"--tw-ring-opacity"),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)","box-shadow":"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)"}},{base:["[type='checkbox']:checked","[type='radio']:checked"],class:[".form-checkbox:checked",".form-radio:checked"],styles:{"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat"}},{base:["[type='checkbox']:checked"],class:[".form-checkbox:checked"],styles:{"background-image":`url("${r('')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='radio']:checked"],class:[".form-radio:checked"],styles:{"background-image":`url("${r('')}")`,"@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:checked:hover","[type='checkbox']:checked:focus","[type='radio']:checked:hover","[type='radio']:checked:focus"],class:[".form-checkbox:checked:hover",".form-checkbox:checked:focus",".form-radio:checked:hover",".form-radio:checked:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='checkbox']:indeterminate"],class:[".form-checkbox:indeterminate"],styles:{"background-image":`url("${r('')}")`,"border-color":"transparent","background-color":"currentColor","background-size":"100% 100%","background-position":"center","background-repeat":"no-repeat","@media (forced-colors: active) ":{appearance:"auto"}}},{base:["[type='checkbox']:indeterminate:hover","[type='checkbox']:indeterminate:focus"],class:[".form-checkbox:indeterminate:hover",".form-checkbox:indeterminate:focus"],styles:{"border-color":"transparent","background-color":"currentColor"}},{base:["[type='file']"],class:null,styles:{background:"unset","border-color":"inherit","border-width":"0","border-radius":"0",padding:"0","font-size":"unset","line-height":"inherit"}},{base:["[type='file']:focus"],class:null,styles:{outline:["1px solid ButtonText","1px auto -webkit-focus-ring-color"]}}],h=e=>p.map((t=>null===t[e]?null:{[t[e]]:t.styles})).filter(Boolean);a.includes("base")&&t(h("base")),a.includes("class")&&n(h("class"))}}));e.exports=p},18202:function(e,t,n){const r=n(56320),i=n(67460),a=n(51257),o=n(67765),{commonTrailingPseudos:s}=n(55741),l={};function u(e,{className:t,modifier:n,prefix:r}){let i=r(`.not-${t}`).slice(1),a=e.startsWith(">")?("DEFAULT"===n?`.${t}`:`.${t}-${n}`)+" ":"",[o,l]=s(e);return o?`:where(${a}${l}):not(:where([class~="${i}"],[class~="${i}"] *))${o}`:`:where(${a}${e}):not(:where([class~="${i}"],[class~="${i}"] *))`}function c(e){return"object"==typeof e&&null!==e}function f(e={},{target:t,className:n,modifier:r,prefix:o}){function s(e,i){return"legacy"===t||Array.isArray(i)?[e,i]:c(i)?Object.values(i).some(c)?[u(e,{className:n,modifier:r,prefix:o}),i,Object.fromEntries(Object.entries(i).map((([e,t])=>s(e,t))))]:[u(e,{className:n,modifier:r,prefix:o}),i]:[e,i]}return Object.fromEntries(Object.entries(i({},...Object.keys(e).filter((e=>l[e])).map((t=>l[t](e[t]))),...a(e.css||{}))).map((([e,t])=>s(e,t))))}e.exports=r.withOptions((({className:e="prose",target:t="modern"}={})=>function({addVariant:n,addComponents:r,theme:i,prefix:a}){let o=i("typography"),s={className:e,prefix:a};for(let[r,...i]of[["headings","h1","h2","h3","h4","h5","h6","th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["kbd"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",'[class~="lead"]']]){i=0===i.length?[r]:i;let a="legacy"===t?i.map((e=>`& ${e}`)):i.join(", ");n(`${e}-${r}`,"legacy"===t?a:`& :is(${u(a,s)})`)}r(Object.keys(o).map((n=>({["DEFAULT"===n?`.${e}`:`.${e}-${n}`]:f(o[n],{target:t,className:e,modifier:n,prefix:a})}))))}),(()=>({theme:{typography:o}})))},67765:function(e,t,n){const r=n(86812),i=e=>e.toFixed(7).replace(/(\.[0-9]+?)0+$/,"$1").replace(/\.0$/,""),a=e=>`${i(e/16)}rem`,o=(e,t)=>`${i(e/t)}em`,s=e=>(e=3===(e=e.replace("#","")).length?e.replace(/./g,"$&$&"):e,`${parseInt(e.substring(0,2),16)} ${parseInt(e.substring(2,4),16)} ${parseInt(e.substring(4,6),16)}`);let l={sm:{css:[{fontSize:a(14),lineHeight:i(24/14),p:{marginTop:o(16,14),marginBottom:o(16,14)},'[class~="lead"]':{fontSize:o(18,14),lineHeight:i(28/18),marginTop:o(16,18),marginBottom:o(16,18)},blockquote:{marginTop:o(24,18),marginBottom:o(24,18),paddingInlineStart:o(20,18)},h1:{fontSize:o(30,14),marginTop:"0",marginBottom:o(24,30),lineHeight:i(1.2)},h2:{fontSize:o(20,14),marginTop:o(32,20),marginBottom:o(16,20),lineHeight:i(1.4)},h3:{fontSize:o(18,14),marginTop:o(28,18),marginBottom:o(8,18),lineHeight:i(28/18)},h4:{marginTop:o(20,14),marginBottom:o(8,14),lineHeight:i(20/14)},img:{marginTop:o(24,14),marginBottom:o(24,14)},picture:{marginTop:o(24,14),marginBottom:o(24,14)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:o(24,14),marginBottom:o(24,14)},kbd:{fontSize:o(12,14),borderRadius:a(5),paddingTop:o(2,14),paddingInlineEnd:o(5,14),paddingBottom:o(2,14),paddingInlineStart:o(5,14)},code:{fontSize:o(12,14)},"h2 code":{fontSize:o(18,20)},"h3 code":{fontSize:o(16,18)},pre:{fontSize:o(12,14),lineHeight:i(20/12),marginTop:o(20,12),marginBottom:o(20,12),borderRadius:a(4),paddingTop:o(8,12),paddingInlineEnd:o(12,12),paddingBottom:o(8,12),paddingInlineStart:o(12,12)},ol:{marginTop:o(16,14),marginBottom:o(16,14),paddingInlineStart:o(22,14)},ul:{marginTop:o(16,14),marginBottom:o(16,14),paddingInlineStart:o(22,14)},li:{marginTop:o(4,14),marginBottom:o(4,14)},"ol > li":{paddingInlineStart:o(6,14)},"ul > li":{paddingInlineStart:o(6,14)},"> ul > li p":{marginTop:o(8,14),marginBottom:o(8,14)},"> ul > li > p:first-child":{marginTop:o(16,14)},"> ul > li > p:last-child":{marginBottom:o(16,14)},"> ol > li > p:first-child":{marginTop:o(16,14)},"> ol > li > p:last-child":{marginBottom:o(16,14)},"ul ul, ul ol, ol ul, ol ol":{marginTop:o(8,14),marginBottom:o(8,14)},dl:{marginTop:o(16,14),marginBottom:o(16,14)},dt:{marginTop:o(16,14)},dd:{marginTop:o(4,14),paddingInlineStart:o(22,14)},hr:{marginTop:o(40,14),marginBottom:o(40,14)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:o(12,14),lineHeight:i(1.5)},"thead th":{paddingInlineEnd:o(12,12),paddingBottom:o(8,12),paddingInlineStart:o(12,12)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:o(8,12),paddingInlineEnd:o(12,12),paddingBottom:o(8,12),paddingInlineStart:o(12,12)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:o(24,14),marginBottom:o(24,14)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:o(12,14),lineHeight:i(16/12),marginTop:o(8,12)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},base:{css:[{fontSize:a(16),lineHeight:i(1.75),p:{marginTop:o(20,16),marginBottom:o(20,16)},'[class~="lead"]':{fontSize:o(20,16),lineHeight:i(1.6),marginTop:o(24,20),marginBottom:o(24,20)},blockquote:{marginTop:o(32,20),marginBottom:o(32,20),paddingInlineStart:o(20,20)},h1:{fontSize:o(36,16),marginTop:"0",marginBottom:o(32,36),lineHeight:i(40/36)},h2:{fontSize:o(24,16),marginTop:o(48,24),marginBottom:o(24,24),lineHeight:i(32/24)},h3:{fontSize:o(20,16),marginTop:o(32,20),marginBottom:o(12,20),lineHeight:i(1.6)},h4:{marginTop:o(24,16),marginBottom:o(8,16),lineHeight:i(1.5)},img:{marginTop:o(32,16),marginBottom:o(32,16)},picture:{marginTop:o(32,16),marginBottom:o(32,16)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:o(32,16),marginBottom:o(32,16)},kbd:{fontSize:o(14,16),borderRadius:a(5),paddingTop:o(3,16),paddingInlineEnd:o(6,16),paddingBottom:o(3,16),paddingInlineStart:o(6,16)},code:{fontSize:o(14,16)},"h2 code":{fontSize:o(21,24)},"h3 code":{fontSize:o(18,20)},pre:{fontSize:o(14,16),lineHeight:i(24/14),marginTop:o(24,14),marginBottom:o(24,14),borderRadius:a(6),paddingTop:o(12,14),paddingInlineEnd:o(16,14),paddingBottom:o(12,14),paddingInlineStart:o(16,14)},ol:{marginTop:o(20,16),marginBottom:o(20,16),paddingInlineStart:o(26,16)},ul:{marginTop:o(20,16),marginBottom:o(20,16),paddingInlineStart:o(26,16)},li:{marginTop:o(8,16),marginBottom:o(8,16)},"ol > li":{paddingInlineStart:o(6,16)},"ul > li":{paddingInlineStart:o(6,16)},"> ul > li p":{marginTop:o(12,16),marginBottom:o(12,16)},"> ul > li > p:first-child":{marginTop:o(20,16)},"> ul > li > p:last-child":{marginBottom:o(20,16)},"> ol > li > p:first-child":{marginTop:o(20,16)},"> ol > li > p:last-child":{marginBottom:o(20,16)},"ul ul, ul ol, ol ul, ol ol":{marginTop:o(12,16),marginBottom:o(12,16)},dl:{marginTop:o(20,16),marginBottom:o(20,16)},dt:{marginTop:o(20,16)},dd:{marginTop:o(8,16),paddingInlineStart:o(26,16)},hr:{marginTop:o(48,16),marginBottom:o(48,16)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:o(14,16),lineHeight:i(24/14)},"thead th":{paddingInlineEnd:o(8,14),paddingBottom:o(8,14),paddingInlineStart:o(8,14)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:o(8,14),paddingInlineEnd:o(8,14),paddingBottom:o(8,14),paddingInlineStart:o(8,14)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:o(32,16),marginBottom:o(32,16)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:o(14,16),lineHeight:i(20/14),marginTop:o(12,14)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},lg:{css:[{fontSize:a(18),lineHeight:i(32/18),p:{marginTop:o(24,18),marginBottom:o(24,18)},'[class~="lead"]':{fontSize:o(22,18),lineHeight:i(32/22),marginTop:o(24,22),marginBottom:o(24,22)},blockquote:{marginTop:o(40,24),marginBottom:o(40,24),paddingInlineStart:o(24,24)},h1:{fontSize:o(48,18),marginTop:"0",marginBottom:o(40,48),lineHeight:i(1)},h2:{fontSize:o(30,18),marginTop:o(56,30),marginBottom:o(32,30),lineHeight:i(40/30)},h3:{fontSize:o(24,18),marginTop:o(40,24),marginBottom:o(16,24),lineHeight:i(1.5)},h4:{marginTop:o(32,18),marginBottom:o(8,18),lineHeight:i(28/18)},img:{marginTop:o(32,18),marginBottom:o(32,18)},picture:{marginTop:o(32,18),marginBottom:o(32,18)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:o(32,18),marginBottom:o(32,18)},kbd:{fontSize:o(16,18),borderRadius:a(5),paddingTop:o(4,18),paddingInlineEnd:o(8,18),paddingBottom:o(4,18),paddingInlineStart:o(8,18)},code:{fontSize:o(16,18)},"h2 code":{fontSize:o(26,30)},"h3 code":{fontSize:o(21,24)},pre:{fontSize:o(16,18),lineHeight:i(1.75),marginTop:o(32,16),marginBottom:o(32,16),borderRadius:a(6),paddingTop:o(16,16),paddingInlineEnd:o(24,16),paddingBottom:o(16,16),paddingInlineStart:o(24,16)},ol:{marginTop:o(24,18),marginBottom:o(24,18),paddingInlineStart:o(28,18)},ul:{marginTop:o(24,18),marginBottom:o(24,18),paddingInlineStart:o(28,18)},li:{marginTop:o(12,18),marginBottom:o(12,18)},"ol > li":{paddingInlineStart:o(8,18)},"ul > li":{paddingInlineStart:o(8,18)},"> ul > li p":{marginTop:o(16,18),marginBottom:o(16,18)},"> ul > li > p:first-child":{marginTop:o(24,18)},"> ul > li > p:last-child":{marginBottom:o(24,18)},"> ol > li > p:first-child":{marginTop:o(24,18)},"> ol > li > p:last-child":{marginBottom:o(24,18)},"ul ul, ul ol, ol ul, ol ol":{marginTop:o(16,18),marginBottom:o(16,18)},dl:{marginTop:o(24,18),marginBottom:o(24,18)},dt:{marginTop:o(24,18)},dd:{marginTop:o(12,18),paddingInlineStart:o(28,18)},hr:{marginTop:o(56,18),marginBottom:o(56,18)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:o(16,18),lineHeight:i(1.5)},"thead th":{paddingInlineEnd:o(12,16),paddingBottom:o(12,16),paddingInlineStart:o(12,16)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:o(12,16),paddingInlineEnd:o(12,16),paddingBottom:o(12,16),paddingInlineStart:o(12,16)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:o(32,18),marginBottom:o(32,18)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:o(16,18),lineHeight:i(1.5),marginTop:o(16,16)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},xl:{css:[{fontSize:a(20),lineHeight:i(1.8),p:{marginTop:o(24,20),marginBottom:o(24,20)},'[class~="lead"]':{fontSize:o(24,20),lineHeight:i(1.5),marginTop:o(24,24),marginBottom:o(24,24)},blockquote:{marginTop:o(48,30),marginBottom:o(48,30),paddingInlineStart:o(32,30)},h1:{fontSize:o(56,20),marginTop:"0",marginBottom:o(48,56),lineHeight:i(1)},h2:{fontSize:o(36,20),marginTop:o(56,36),marginBottom:o(32,36),lineHeight:i(40/36)},h3:{fontSize:o(30,20),marginTop:o(48,30),marginBottom:o(20,30),lineHeight:i(40/30)},h4:{marginTop:o(36,20),marginBottom:o(12,20),lineHeight:i(1.6)},img:{marginTop:o(40,20),marginBottom:o(40,20)},picture:{marginTop:o(40,20),marginBottom:o(40,20)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:o(40,20),marginBottom:o(40,20)},kbd:{fontSize:o(18,20),borderRadius:a(5),paddingTop:o(5,20),paddingInlineEnd:o(8,20),paddingBottom:o(5,20),paddingInlineStart:o(8,20)},code:{fontSize:o(18,20)},"h2 code":{fontSize:o(31,36)},"h3 code":{fontSize:o(27,30)},pre:{fontSize:o(18,20),lineHeight:i(32/18),marginTop:o(36,18),marginBottom:o(36,18),borderRadius:a(8),paddingTop:o(20,18),paddingInlineEnd:o(24,18),paddingBottom:o(20,18),paddingInlineStart:o(24,18)},ol:{marginTop:o(24,20),marginBottom:o(24,20),paddingInlineStart:o(32,20)},ul:{marginTop:o(24,20),marginBottom:o(24,20),paddingInlineStart:o(32,20)},li:{marginTop:o(12,20),marginBottom:o(12,20)},"ol > li":{paddingInlineStart:o(8,20)},"ul > li":{paddingInlineStart:o(8,20)},"> ul > li p":{marginTop:o(16,20),marginBottom:o(16,20)},"> ul > li > p:first-child":{marginTop:o(24,20)},"> ul > li > p:last-child":{marginBottom:o(24,20)},"> ol > li > p:first-child":{marginTop:o(24,20)},"> ol > li > p:last-child":{marginBottom:o(24,20)},"ul ul, ul ol, ol ul, ol ol":{marginTop:o(16,20),marginBottom:o(16,20)},dl:{marginTop:o(24,20),marginBottom:o(24,20)},dt:{marginTop:o(24,20)},dd:{marginTop:o(12,20),paddingInlineStart:o(32,20)},hr:{marginTop:o(56,20),marginBottom:o(56,20)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:o(18,20),lineHeight:i(28/18)},"thead th":{paddingInlineEnd:o(12,18),paddingBottom:o(16,18),paddingInlineStart:o(12,18)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:o(16,18),paddingInlineEnd:o(12,18),paddingBottom:o(16,18),paddingInlineStart:o(12,18)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:o(40,20),marginBottom:o(40,20)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:o(18,20),lineHeight:i(28/18),marginTop:o(18,18)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},"2xl":{css:[{fontSize:a(24),lineHeight:i(40/24),p:{marginTop:o(32,24),marginBottom:o(32,24)},'[class~="lead"]':{fontSize:o(30,24),lineHeight:i(44/30),marginTop:o(32,30),marginBottom:o(32,30)},blockquote:{marginTop:o(64,36),marginBottom:o(64,36),paddingInlineStart:o(40,36)},h1:{fontSize:o(64,24),marginTop:"0",marginBottom:o(56,64),lineHeight:i(1)},h2:{fontSize:o(48,24),marginTop:o(72,48),marginBottom:o(40,48),lineHeight:i(52/48)},h3:{fontSize:o(36,24),marginTop:o(56,36),marginBottom:o(24,36),lineHeight:i(44/36)},h4:{marginTop:o(40,24),marginBottom:o(16,24),lineHeight:i(1.5)},img:{marginTop:o(48,24),marginBottom:o(48,24)},picture:{marginTop:o(48,24),marginBottom:o(48,24)},"picture > img":{marginTop:"0",marginBottom:"0"},video:{marginTop:o(48,24),marginBottom:o(48,24)},kbd:{fontSize:o(20,24),borderRadius:a(6),paddingTop:o(6,24),paddingInlineEnd:o(8,24),paddingBottom:o(6,24),paddingInlineStart:o(8,24)},code:{fontSize:o(20,24)},"h2 code":{fontSize:o(42,48)},"h3 code":{fontSize:o(32,36)},pre:{fontSize:o(20,24),lineHeight:i(1.8),marginTop:o(40,20),marginBottom:o(40,20),borderRadius:a(8),paddingTop:o(24,20),paddingInlineEnd:o(32,20),paddingBottom:o(24,20),paddingInlineStart:o(32,20)},ol:{marginTop:o(32,24),marginBottom:o(32,24),paddingInlineStart:o(38,24)},ul:{marginTop:o(32,24),marginBottom:o(32,24),paddingInlineStart:o(38,24)},li:{marginTop:o(12,24),marginBottom:o(12,24)},"ol > li":{paddingInlineStart:o(10,24)},"ul > li":{paddingInlineStart:o(10,24)},"> ul > li p":{marginTop:o(20,24),marginBottom:o(20,24)},"> ul > li > p:first-child":{marginTop:o(32,24)},"> ul > li > p:last-child":{marginBottom:o(32,24)},"> ol > li > p:first-child":{marginTop:o(32,24)},"> ol > li > p:last-child":{marginBottom:o(32,24)},"ul ul, ul ol, ol ul, ol ol":{marginTop:o(16,24),marginBottom:o(16,24)},dl:{marginTop:o(32,24),marginBottom:o(32,24)},dt:{marginTop:o(32,24)},dd:{marginTop:o(12,24),paddingInlineStart:o(38,24)},hr:{marginTop:o(72,24),marginBottom:o(72,24)},"hr + *":{marginTop:"0"},"h2 + *":{marginTop:"0"},"h3 + *":{marginTop:"0"},"h4 + *":{marginTop:"0"},table:{fontSize:o(20,24),lineHeight:i(1.4)},"thead th":{paddingInlineEnd:o(12,20),paddingBottom:o(16,20),paddingInlineStart:o(12,20)},"thead th:first-child":{paddingInlineStart:"0"},"thead th:last-child":{paddingInlineEnd:"0"},"tbody td, tfoot td":{paddingTop:o(16,20),paddingInlineEnd:o(12,20),paddingBottom:o(16,20),paddingInlineStart:o(12,20)},"tbody td:first-child, tfoot td:first-child":{paddingInlineStart:"0"},"tbody td:last-child, tfoot td:last-child":{paddingInlineEnd:"0"},figure:{marginTop:o(48,24),marginBottom:o(48,24)},"figure > *":{marginTop:"0",marginBottom:"0"},figcaption:{fontSize:o(20,24),lineHeight:i(1.6),marginTop:o(20,20)}},{"> :first-child":{marginTop:"0"},"> :last-child":{marginBottom:"0"}}]},slate:{css:{"--tw-prose-body":r.slate[700],"--tw-prose-headings":r.slate[900],"--tw-prose-lead":r.slate[600],"--tw-prose-links":r.slate[900],"--tw-prose-bold":r.slate[900],"--tw-prose-counters":r.slate[500],"--tw-prose-bullets":r.slate[300],"--tw-prose-hr":r.slate[200],"--tw-prose-quotes":r.slate[900],"--tw-prose-quote-borders":r.slate[200],"--tw-prose-captions":r.slate[500],"--tw-prose-kbd":r.slate[900],"--tw-prose-kbd-shadows":s(r.slate[900]),"--tw-prose-code":r.slate[900],"--tw-prose-pre-code":r.slate[200],"--tw-prose-pre-bg":r.slate[800],"--tw-prose-th-borders":r.slate[300],"--tw-prose-td-borders":r.slate[200],"--tw-prose-invert-body":r.slate[300],"--tw-prose-invert-headings":r.white,"--tw-prose-invert-lead":r.slate[400],"--tw-prose-invert-links":r.white,"--tw-prose-invert-bold":r.white,"--tw-prose-invert-counters":r.slate[400],"--tw-prose-invert-bullets":r.slate[600],"--tw-prose-invert-hr":r.slate[700],"--tw-prose-invert-quotes":r.slate[100],"--tw-prose-invert-quote-borders":r.slate[700],"--tw-prose-invert-captions":r.slate[400],"--tw-prose-invert-kbd":r.white,"--tw-prose-invert-kbd-shadows":s(r.white),"--tw-prose-invert-code":r.white,"--tw-prose-invert-pre-code":r.slate[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":r.slate[600],"--tw-prose-invert-td-borders":r.slate[700]}},gray:{css:{"--tw-prose-body":r.gray[700],"--tw-prose-headings":r.gray[900],"--tw-prose-lead":r.gray[600],"--tw-prose-links":r.gray[900],"--tw-prose-bold":r.gray[900],"--tw-prose-counters":r.gray[500],"--tw-prose-bullets":r.gray[300],"--tw-prose-hr":r.gray[200],"--tw-prose-quotes":r.gray[900],"--tw-prose-quote-borders":r.gray[200],"--tw-prose-captions":r.gray[500],"--tw-prose-kbd":r.gray[900],"--tw-prose-kbd-shadows":s(r.gray[900]),"--tw-prose-code":r.gray[900],"--tw-prose-pre-code":r.gray[200],"--tw-prose-pre-bg":r.gray[800],"--tw-prose-th-borders":r.gray[300],"--tw-prose-td-borders":r.gray[200],"--tw-prose-invert-body":r.gray[300],"--tw-prose-invert-headings":r.white,"--tw-prose-invert-lead":r.gray[400],"--tw-prose-invert-links":r.white,"--tw-prose-invert-bold":r.white,"--tw-prose-invert-counters":r.gray[400],"--tw-prose-invert-bullets":r.gray[600],"--tw-prose-invert-hr":r.gray[700],"--tw-prose-invert-quotes":r.gray[100],"--tw-prose-invert-quote-borders":r.gray[700],"--tw-prose-invert-captions":r.gray[400],"--tw-prose-invert-kbd":r.white,"--tw-prose-invert-kbd-shadows":s(r.white),"--tw-prose-invert-code":r.white,"--tw-prose-invert-pre-code":r.gray[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":r.gray[600],"--tw-prose-invert-td-borders":r.gray[700]}},zinc:{css:{"--tw-prose-body":r.zinc[700],"--tw-prose-headings":r.zinc[900],"--tw-prose-lead":r.zinc[600],"--tw-prose-links":r.zinc[900],"--tw-prose-bold":r.zinc[900],"--tw-prose-counters":r.zinc[500],"--tw-prose-bullets":r.zinc[300],"--tw-prose-hr":r.zinc[200],"--tw-prose-quotes":r.zinc[900],"--tw-prose-quote-borders":r.zinc[200],"--tw-prose-captions":r.zinc[500],"--tw-prose-kbd":r.zinc[900],"--tw-prose-kbd-shadows":s(r.zinc[900]),"--tw-prose-code":r.zinc[900],"--tw-prose-pre-code":r.zinc[200],"--tw-prose-pre-bg":r.zinc[800],"--tw-prose-th-borders":r.zinc[300],"--tw-prose-td-borders":r.zinc[200],"--tw-prose-invert-body":r.zinc[300],"--tw-prose-invert-headings":r.white,"--tw-prose-invert-lead":r.zinc[400],"--tw-prose-invert-links":r.white,"--tw-prose-invert-bold":r.white,"--tw-prose-invert-counters":r.zinc[400],"--tw-prose-invert-bullets":r.zinc[600],"--tw-prose-invert-hr":r.zinc[700],"--tw-prose-invert-quotes":r.zinc[100],"--tw-prose-invert-quote-borders":r.zinc[700],"--tw-prose-invert-captions":r.zinc[400],"--tw-prose-invert-kbd":r.white,"--tw-prose-invert-kbd-shadows":s(r.white),"--tw-prose-invert-code":r.white,"--tw-prose-invert-pre-code":r.zinc[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":r.zinc[600],"--tw-prose-invert-td-borders":r.zinc[700]}},neutral:{css:{"--tw-prose-body":r.neutral[700],"--tw-prose-headings":r.neutral[900],"--tw-prose-lead":r.neutral[600],"--tw-prose-links":r.neutral[900],"--tw-prose-bold":r.neutral[900],"--tw-prose-counters":r.neutral[500],"--tw-prose-bullets":r.neutral[300],"--tw-prose-hr":r.neutral[200],"--tw-prose-quotes":r.neutral[900],"--tw-prose-quote-borders":r.neutral[200],"--tw-prose-captions":r.neutral[500],"--tw-prose-kbd":r.neutral[900],"--tw-prose-kbd-shadows":s(r.neutral[900]),"--tw-prose-code":r.neutral[900],"--tw-prose-pre-code":r.neutral[200],"--tw-prose-pre-bg":r.neutral[800],"--tw-prose-th-borders":r.neutral[300],"--tw-prose-td-borders":r.neutral[200],"--tw-prose-invert-body":r.neutral[300],"--tw-prose-invert-headings":r.white,"--tw-prose-invert-lead":r.neutral[400],"--tw-prose-invert-links":r.white,"--tw-prose-invert-bold":r.white,"--tw-prose-invert-counters":r.neutral[400],"--tw-prose-invert-bullets":r.neutral[600],"--tw-prose-invert-hr":r.neutral[700],"--tw-prose-invert-quotes":r.neutral[100],"--tw-prose-invert-quote-borders":r.neutral[700],"--tw-prose-invert-captions":r.neutral[400],"--tw-prose-invert-kbd":r.white,"--tw-prose-invert-kbd-shadows":s(r.white),"--tw-prose-invert-code":r.white,"--tw-prose-invert-pre-code":r.neutral[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":r.neutral[600],"--tw-prose-invert-td-borders":r.neutral[700]}},stone:{css:{"--tw-prose-body":r.stone[700],"--tw-prose-headings":r.stone[900],"--tw-prose-lead":r.stone[600],"--tw-prose-links":r.stone[900],"--tw-prose-bold":r.stone[900],"--tw-prose-counters":r.stone[500],"--tw-prose-bullets":r.stone[300],"--tw-prose-hr":r.stone[200],"--tw-prose-quotes":r.stone[900],"--tw-prose-quote-borders":r.stone[200],"--tw-prose-captions":r.stone[500],"--tw-prose-kbd":r.stone[900],"--tw-prose-kbd-shadows":s(r.stone[900]),"--tw-prose-code":r.stone[900],"--tw-prose-pre-code":r.stone[200],"--tw-prose-pre-bg":r.stone[800],"--tw-prose-th-borders":r.stone[300],"--tw-prose-td-borders":r.stone[200],"--tw-prose-invert-body":r.stone[300],"--tw-prose-invert-headings":r.white,"--tw-prose-invert-lead":r.stone[400],"--tw-prose-invert-links":r.white,"--tw-prose-invert-bold":r.white,"--tw-prose-invert-counters":r.stone[400],"--tw-prose-invert-bullets":r.stone[600],"--tw-prose-invert-hr":r.stone[700],"--tw-prose-invert-quotes":r.stone[100],"--tw-prose-invert-quote-borders":r.stone[700],"--tw-prose-invert-captions":r.stone[400],"--tw-prose-invert-kbd":r.white,"--tw-prose-invert-kbd-shadows":s(r.white),"--tw-prose-invert-code":r.white,"--tw-prose-invert-pre-code":r.stone[300],"--tw-prose-invert-pre-bg":"rgb(0 0 0 / 50%)","--tw-prose-invert-th-borders":r.stone[600],"--tw-prose-invert-td-borders":r.stone[700]}},red:{css:{"--tw-prose-links":r.red[600],"--tw-prose-invert-links":r.red[500]}},orange:{css:{"--tw-prose-links":r.orange[600],"--tw-prose-invert-links":r.orange[500]}},amber:{css:{"--tw-prose-links":r.amber[600],"--tw-prose-invert-links":r.amber[500]}},yellow:{css:{"--tw-prose-links":r.yellow[600],"--tw-prose-invert-links":r.yellow[500]}},lime:{css:{"--tw-prose-links":r.lime[600],"--tw-prose-invert-links":r.lime[500]}},green:{css:{"--tw-prose-links":r.green[600],"--tw-prose-invert-links":r.green[500]}},emerald:{css:{"--tw-prose-links":r.emerald[600],"--tw-prose-invert-links":r.emerald[500]}},teal:{css:{"--tw-prose-links":r.teal[600],"--tw-prose-invert-links":r.teal[500]}},cyan:{css:{"--tw-prose-links":r.cyan[600],"--tw-prose-invert-links":r.cyan[500]}},sky:{css:{"--tw-prose-links":r.sky[600],"--tw-prose-invert-links":r.sky[500]}},blue:{css:{"--tw-prose-links":r.blue[600],"--tw-prose-invert-links":r.blue[500]}},indigo:{css:{"--tw-prose-links":r.indigo[600],"--tw-prose-invert-links":r.indigo[500]}},violet:{css:{"--tw-prose-links":r.violet[600],"--tw-prose-invert-links":r.violet[500]}},purple:{css:{"--tw-prose-links":r.purple[600],"--tw-prose-invert-links":r.purple[500]}},fuchsia:{css:{"--tw-prose-links":r.fuchsia[600],"--tw-prose-invert-links":r.fuchsia[500]}},pink:{css:{"--tw-prose-links":r.pink[600],"--tw-prose-invert-links":r.pink[500]}},rose:{css:{"--tw-prose-links":r.rose[600],"--tw-prose-invert-links":r.rose[500]}},invert:{css:{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-kbd":"var(--tw-prose-invert-kbd)","--tw-prose-kbd-shadows":"var(--tw-prose-invert-kbd-shadows)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}};e.exports={DEFAULT:{css:[{color:"var(--tw-prose-body)",maxWidth:"65ch",p:{},'[class~="lead"]':{color:"var(--tw-prose-lead)"},a:{color:"var(--tw-prose-links)",textDecoration:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong":{color:"inherit"},"blockquote strong":{color:"inherit"},"thead th strong":{color:"inherit"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},ul:{listStyleType:"disc"},"ol > li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul > li::marker":{color:"var(--tw-prose-bullets)"},dt:{color:"var(--tw-prose-headings)",fontWeight:"600"},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:1},blockquote:{fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderInlineStartWidth:"0.25rem",borderInlineStartColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},h1:{color:"var(--tw-prose-headings)",fontWeight:"800"},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600"},"h4 strong":{fontWeight:"700",color:"inherit"},img:{},picture:{display:"block"},video:{},kbd:{fontWeight:"500",fontFamily:"inherit",color:"var(--tw-prose-kbd)",boxShadow:"0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%)"},code:{color:"var(--tw-prose-code)",fontWeight:"600"},"code::before":{content:'"`"'},"code::after":{content:'"`"'},"a code":{color:"inherit"},"h1 code":{color:"inherit"},"h2 code":{color:"inherit"},"h3 code":{color:"inherit"},"h4 code":{color:"inherit"},"blockquote code":{color:"inherit"},"thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400"},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"start",marginTop:o(32,16),marginBottom:o(32,16)},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td":{verticalAlign:"baseline"},tfoot:{borderTopWidth:"1px",borderTopColor:"var(--tw-prose-th-borders)"},"tfoot td":{verticalAlign:"top"},"figure > *":{},figcaption:{color:"var(--tw-prose-captions)"}},l.gray.css,...l.base.css]},...l}},55741:function(e,t,n){const r=n(71046),i=n(92864),a=i();e.exports={isUsableColor:(e,t)=>r(t)&&"gray"!==e&&t[600],commonTrailingPseudos(e){let t=a.astSync(e),n=[];for(let[e,r]of t.nodes.entries())for(const[t,i]of[...r.nodes].reverse().entries()){if("pseudo"!==i.type||!i.value.startsWith("::"))break;n[t]=n[t]||[],n[t][e]=i}let r=i.selector();for(const e of n)if(e){if(new Set([...e.map((e=>e.value))]).size>1)break;e.forEach((e=>e.remove())),r.prepend(e[0])}return r.nodes.length?[r.toString(),t.toString()]:[null,e]}}},95024:function(e,t,n){(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{FlagContext:()=>o,FlagProvider:()=>s,InMemoryStorageProvider:()=>i.InMemoryStorageProvider,LocalStorageProvider:()=>i.LocalStorageProvider,UnleashClient:()=>i.UnleashClient,default:()=>p,useFlag:()=>l,useFlagsStatus:()=>u,useUnleashClient:()=>d,useUnleashContext:()=>f,useVariant:()=>c});const i=n(96367),a=n(94159),o=t.n(a)().createContext(null),s=function(e){var t=e.config,n=e.children,r=e.unleashClient,s=e.startClient,l=void 0===s||s,u=a.useRef(r),c=a.useState(!1),f=c[0],d=c[1],p=a.useState(null),h=p[0],m=p[1];t||r||console.warn("You must provide either a config or an unleash client to the flag provider. If you are initializing the client in useEffect, you can avoid this warning by\n checking if the client exists before rendering."),u.current||(u.current=new i.UnleashClient(t)),u.current.on("ready",(function(){d(!0)})),u.current.on("error",(function(e){m(e)})),a.useEffect((function(){(l||!r)&&u.current.start()}),[]);var g=function(e){return n=function(){return function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o};function f(e,t){var n=l((function(){return"function"==typeof e?e():e})),r=t.context,o=t.guards,s=t.actions,c=t.activities,f=t.services,d=t.delays,p=(t.state,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o};function u(e){return e}function c(e){for(var t=[],n=1;n0||"boolean"==typeof e.changed);return!(t.changed||n)}),[p]),g=(0,r.useCallback)((function(e){return p.subscribe(e).unsubscribe}),[p]),v=(0,i.useSyncExternalStoreWithSelector)(g,h,h,u,m);return(0,r.useEffect)((function(){var e=d.state;return p.start(e?o.ZM.create(e):void 0),function(){p.stop(),p.status=a.TM.NotStarted}}),[]),[v,p.send,p]}},45072:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var r=n(94159),i=n(23862);n(27744),n(76779);var a=function(e,t){return e===t},o=function(e){return"state"in(n=e)&&"machine"in n?0!==(t=e).status?t.state:t.machine.initialState:"state"in e?e.state:void 0;var t,n};function s(e,t,n,s){void 0===n&&(n=a),void 0===s&&(s=o);var l=(0,r.useCallback)((function(t){return e.subscribe(t).unsubscribe}),[e]),u=(0,r.useCallback)((function(){return s(e)}),[e,s]);return(0,i.useSyncExternalStoreWithSelector)(l,u,u,t,n)}},86036:function(e,t,n){e.exports=n(28760)},61397:function(e,t,n){"use strict";var r=n(35008),i=n(2905),a=n(35082),o=n(4621),s=n(93224),l=n(57386),u=n(44375),c=n(90243),f=n(26516),d=n(84505);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(b+":"+w)}var k=s(e.baseURL,e.url);function _(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,a={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),v()}),(function(e){n(e),v()}),a),y=null}}if(y.open(e.method.toUpperCase(),o(k,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(_)},y.onabort=function(){y&&(n(c("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(c("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(k))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;E&&(m[e.xsrfHeaderName]=E)}"setRequestHeader"in y&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(n(!e||e&&e.type?new d("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),y.send(h)}))}},28760:function(e,t,n){"use strict";var r=n(35008),i=n(66279),a=n(60658),o=n(11241),s=function e(t){var n=new a(t),s=i(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(26516));s.Axios=a,s.Cancel=n(84505),s.CancelToken=n(74318),s.isCancel=n(70118),s.VERSION=n(32649).version,s.all=function(e){return Promise.all(e)},s.spread=n(86960),s.isAxiosError=n(76796),e.exports=s,e.exports.default=s},84505:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},74318:function(e,t,n){"use strict";var r=n(84505);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u},32649:function(e){e.exports={version:"0.24.0"}},66279:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},86960:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},43027:function(e,t,n){"use strict";var r=n(32649).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],l=void 0===s||o(s,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},35008:function(e,t,n){"use strict";var r=n(66279),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,a.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const o=(0,a.G9)(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};u(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn")};var f;u(c),null==(n=this.options.behavior)||n.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=c.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(f=c.fetchOptions)?void 0:f.meta});const d=e=>{var t,n;(0,l.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),(0,l.DV)(e)||null==(t=(n=this.cache.config).onError)||t.call(n,e,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,l.Mz)({fn:c.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):d(new Error("undefined"))},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:(0,l.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return(0,l.DV)(i)&&i.revert&&this.revertState?{...this.revertState}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),s.V.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}var f=n(81353);class d extends f.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:(0,a.Rm)(i,t);let s=this.get(o);return s||(s=new c({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){s.V.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=(0,a.I6)(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find((e=>(0,a._x)(n,e)))}findAll(e,t){const[n]=(0,a.I6)(e,t);return Object.keys(n).length>0?this.queries.filter((e=>(0,a._x)(n,e))):this.queries}notify(e){s.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){s.V.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){s.V.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}var p=n(48683);class h extends f.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new p.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){s.V.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>(0,a.X7)(e,t)))}findAll(e){return this.mutations.filter((t=>(0,a.X7)(e,t)))}notify(e){s.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.mutations.filter((e=>e.state.isPaused));return s.V.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(a.ZT)))),Promise.resolve())))}}var m=n(90470),g=n(97974),v=n(21266);class y{constructor(e={}){this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new h,this.logger=e.logger||o._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=m.j.subscribe((()=>{m.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=g.N.subscribe((()=>{g.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)}isFetching(e,t){const[n]=(0,a.I6)(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=(0,a._v)(e,t,n),i=this.getQueryData(r.queryKey);return i?Promise.resolve(i):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.queryCache.find(e),i=null==r?void 0:r.state.data,o=(0,a.SE)(t,i);if(void 0===o)return;const s=(0,a._v)(e),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return s.V.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=(0,a.I6)(e,t),r=this.queryCache;s.V.batch((()=>{r.findAll(n).forEach((e=>{r.remove(e)}))}))}resetQueries(e,t,n){const[r,i]=(0,a.I6)(e,t,n),o=this.queryCache,l={type:"active",...r};return s.V.batch((()=>(o.findAll(r).forEach((e=>{e.reset()})),this.refetchQueries(l,i))))}cancelQueries(e,t,n){const[r,i={}]=(0,a.I6)(e,t,n);void 0===i.revert&&(i.revert=!0);const o=s.V.batch((()=>this.queryCache.findAll(r).map((e=>e.cancel(i)))));return Promise.all(o).then(a.ZT).catch(a.ZT)}invalidateQueries(e,t,n){const[r,i]=(0,a.I6)(e,t,n);return s.V.batch((()=>{var e,t;if(this.queryCache.findAll(r).forEach((e=>{e.invalidate()})),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,i)}))}refetchQueries(e,t,n){const[r,i]=(0,a.I6)(e,t,n),o=s.V.batch((()=>this.queryCache.findAll(r).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}))));let l=Promise.all(o).then(a.ZT);return null!=i&&i.throwOnError||(l=l.catch(a.ZT)),l}fetchQuery(e,t,n){const r=(0,a._v)(e,t,n),i=this.defaultQueryOptions(r);void 0===i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(a.ZT).catch(a.ZT)}fetchInfiniteQuery(e,t,n){const r=(0,a._v)(e,t,n);return r.behavior=(0,v.Gm)(),this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(a.ZT).catch(a.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find((t=>(0,a.yF)(e)===(0,a.yF)(t.queryKey)));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>(0,a.to)(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find((t=>(0,a.yF)(e)===(0,a.yF)(t.mutationKey)));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>(0,a.to)(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,a.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}var b=n(70902),w=n(94159);const k=({children:e,options:t,state:n})=>(function(e,t={}){const n=(0,b.NL)({context:t.context}),r=w.useRef(t);r.current=t,w.useMemo((()=>{e&&function(e,t,n){if("object"!=typeof t||null===t)return;const r=e.getMutationCache(),i=e.getQueryCache(),a=t.mutations||[],o=t.queries||[];a.forEach((t=>{var i;r.build(e,{...null==n||null==(i=n.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),o.forEach((t=>{var r;const a=i.get(t.queryHash);a?a.state.dataUpdatedAt{const t=(0,C.v)(i.Z.SITE_CONFIG),n=(0,C.v)(i.Z.INITIAL_I18N_STORE),a=(0,C.v)(i.Z.INITIAL_LANGUAGE),o=(0,C.v)(i.Z.FLASHES),s=(0,C.v)(i.Z.ROLLBAR_CONFIG),l=(0,C.v)(i.Z.UNLEASH_BOOTSTRAP),u=(0,C.v)(i.Z.INITIAL_MUTABLE_STORE),c={appName:t.UNLEASH_APP_NAME,url:r.ZP.public.unleashProxy().toString(),clientKey:t.UNLEASH_CLIENT_KEY,bootstrap:l,disableRefresh:!0},f=(0,C.v)(i.Z.TRPC_DEHYRDATED_STATE);(0,S.NS)(n,a);const[d]=(0,w.useState)((()=>new y)),[p]=(0,w.useState)((()=>O.S.createClient({links:[(0,_.h)({url:r.ZP.public.apiV1.trpc().toString(),maxURLLength:2083,fetch:(e,t)=>fetch(e,{...t,credentials:"include"})})]})));return w.createElement(w.StrictMode,null,w.createElement(O.S.Provider,{client:p,queryClient:d},w.createElement(b.aH,{client:d},w.createElement(k,{state:f},w.createElement(T.B6,null,w.createElement(N.B,{config:s},w.createElement(x(),{config:c},w.createElement(R.Fk,null,w.createElement(A.s.Provider,{value:o},w.createElement(P.F.Provider,{value:t},w.createElement(I.Dn,{store:u},e)))))))))))}},55443:function(e,t,n){"use strict";var r=n(86036),i=n.n(r),a=n(29598),o=n(25e3),s=n(72100),l=n(94159),u=n(45387),c=n(60824),f=n(3160),d=n(4374),p=n(67933),h=n(89901),m=n(85277);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t`client-preact-components-pages-${e.page}`.replace(/[^a-zA-Z0-9_!§$()=\-^°]+/g,"-"),isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:e=>n(49508)(`./${e.page}`),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:e=>n(9519).resolve(`./${e.page}`)},{cacheKey:e=>e.page}),y=async()=>{const e=document.getElementById("app");if(!e)return console.info("Couldn't find app EL, probably not loaded that far yet. trying again in 20ms"),void setTimeout(y,20);const t=(0,h.v)(o.Z.COHOST_LOADER_STATE),r=(0,p.f)((0,h.v)(o.Z.COHOST_LAYOUT)),i=(0,h.v)(o.Z.ENV_VARS);s.O.setEnv(i),await n.e(4860).then(n.bind(n,4860)),u.hydrateRoot(e,l.createElement(d.g,null,l.createElement(c.VK,null,l.createElement(m.q,null,l.createElement(f.AW,{path:"*",element:l.createElement(r,null,Object.keys(t).map((e=>l.createElement(v,g({key:e,page:e},t[e])))))})))))};(0,a.TA)(y)},4838:function(){"use strict";window.jsdom={JSDOM:0}},67933:function(e,t,n){"use strict";n.d(t,{f:function(){return E}});var r=n(94159),i=n(90275),a=n(93788),o=n(2990),s=n(70341),l=n(34450);const u=e=>{const t=new URL("https://staging.cohostcdn.org/site-assets/login-graphic.png?auto=webp");return t.searchParams.set("width",e.toString()),t.toString()};var c=n(12093),f=n(15867),d=n(95024),p=n(51028),h=n(87124),m=n(94988),g=n(70512),v=n(1159),y=n(91627),b=n(73541),w=n(20616),k=n(69024);const _=new Map([["main",y.Z],["mainNoFooter",b.c],["iframe",({children:e})=>r.createElement("div",null,r.createElement(i.ql,null,r.createElement("base",{target:"_parent"}),r.createElement("meta",{name:"robots",content:"noindex"})),e)],["authn",({children:e})=>r.createElement("div",{className:"flex flex-col"},r.createElement(l.b,null),r.createElement(o.w,null),r.createElement(i.ql,{defaultTitle:"cohost!",titleTemplate:"cohost! - %s"},r.createElement("meta",{name:"theme-color",content:"rgb(25 25 25)"}),r.createElement("style",null,`\n /*\n * colors specified as bare RGB components so they can get\n * merged with opacity if needed. see \`tailwind.config.js\`\n * for more info. */\n\n :root {\n --color-text: 255 249 242;\n \n --color-foreground-200: ${(0,a.i1)("cherry","200")};\n --color-foreground-300: ${(0,a.i1)("cherry","300")};\n --color-foreground-400: ${(0,a.i1)("cherry","400")};\n --color-foreground-600: ${(0,a.i1)("cherry","600")}; \n --color-foreground-700: ${(0,a.i1)("cherry","700")};\n --color-foreground: ${(0,a.i1)("cherry")};\n \n --color-accent: 255 171 92; \n --color-background: 25 25 25;\n }\n `)),r.createElement(s.M,{className:"cohost-shadow-light absolute left-0 right-0 top-20 z-10 mx-auto max-w-prose"}),r.createElement("div",{className:"grid w-full flex-grow grid-cols-1 lg:grid-cols-2"},r.createElement("div",{className:"hidden h-full lg:block"},r.createElement("img",{className:"h-full w-full max-w-full origin-center object-cover",sizes:" (min-width: 512px) 50vw, 1px ",srcSet:`\n ${u(1)} 1w,\n ${u(512)} 512w,\n ${u(640)} 640w,\n ${u(768)} 768w,\n ${u(1024)} 1024w,\n ${u(1280)} 1280w,\n ${u(1536)} 1536w,\n `,alt:""})),r.createElement("div",{className:"flex w-full flex-col justify-center gap-6\n bg-notBlack px-12 py-8\n lg:max-w-lg lg:px-24"},e)))],["error",({children:e})=>{const{t:t}=(0,p.$G)(),n=(0,d.useFlag)(f.T.Enum["chaos-day-2022"]);return r.createElement("div",{className:"flex flex-col"},r.createElement(l.b,null),r.createElement(o.w,null),r.createElement(v.C,{mode:"light_with_themes"}),r.createElement(i.ql,null,r.createElement("title",null,"cohost!")),r.createElement("header",{className:"cohost-shadow-light dark:cohost-shadow-dark fixed left-0 right-0 top-0 z-50 h-16 bg-foreground text-text"},r.createElement("div",{className:"container mx-auto flex h-full flex-row items-center justify-between px-2 lg:p-0"},r.createElement("a",{href:c.ZP.public.home().toString(),className:"text-text hover:text-accent"},n?r.createElement(r.Fragment,null,r.createElement(g.V,{className:"hidden h-8 lg:block",role:"img","aria-label":t("common:brand-name")}),r.createElement(m.W,{className:"block h-8 lg:hidden",role:"img","aria-label":t("common:brand-name")})):r.createElement(r.Fragment,null,r.createElement(h.Lh,{className:"hidden h-8 lg:block",role:"img","aria-label":t("common:brand-name")}),r.createElement(h.BT,{className:"block h-8 lg:hidden",role:"img","aria-label":t("common:brand-name")}))))),r.createElement("div",{className:"mt-16 flex flex-grow flex-col"},e))}],["static",({children:e})=>r.createElement(y.Z,null,r.createElement("main",{className:"w-full pb-16 pt-16"},r.createElement("div",{className:"container mx-auto grid grid-cols-1 gap-16 md:grid-cols-4"},r.createElement(w.w3,null),r.createElement("section",{className:"col-span-1 flex flex-col gap-12 md:col-span-2"},r.createElement("div",{className:"prose prose-stone rounded-lg bg-notWhite p-3 text-notBlack"},e)))))],["staticNoWrapper",k.a]]),E=e=>_.get(e)??y.Z},73541:function(e,t,n){"use strict";n.d(t,{c:function(){return v}});var r=n(2990),i=n(74395),a=n(94159),o=n(90275),s=n(23006),l=n(67287),u=n(70341),c=n(19140),f=n(1159),d=n(2749),p=n(22661),h=n(34450),m=n(30272),g=n(60707);const v=({children:e})=>a.createElement(m.T,null,a.createElement("div",{className:"flex flex-col"},a.createElement(h.b,null),a.createElement(r.w,null),a.createElement(f.C,null),a.createElement(o.ql,{defaultTitle:"cohost!",titleTemplate:"cohost! - %s"}),a.createElement(i.t,null),a.createElement(u.M,{className:"cohost-shadow-light absolute left-0 right-0 top-20 z-10 mx-auto max-w-prose"}),a.createElement("div",{className:"flex flex-grow flex-col"},a.createElement(l.t,null),a.createElement(d.P,null),a.createElement(c.E,null),a.createElement(g.t,null),a.createElement(s.o,null,a.createElement(p.h,null,a.createElement(a.Suspense,null,e))))))},91627:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(2990),i=n(74395),a=n(94159),o=n(90275),s=n(12093),l=n(87124),u=n(84879);const c=a.memo((()=>a.createElement("footer",{className:"-mb-20 w-full bg-notBlack pb-20 pt-8 text-notWhite"},a.createElement("div",{className:"container mx-auto grid px-6 lg:grid-cols-12 lg:px-0"},a.createElement("div",{className:"flex flex-col gap-3 py-3 lg:col-span-3 lg:py-0"},a.createElement(l.Lh,{className:"w-52 text-notWhite"}),a.createElement("ul",{className:"list-none text-sm"},a.createElement("li",null,"© ",u.ou.now().year," ",a.createElement("a",{href:"https://antisoftware.club/",className:"underline"},"anti software software club llc")),a.createElement("li",null,"thanks for using cohost"))),a.createElement("div",{className:"flex flex-col gap-3 py-3 lg:col-span-2 lg:py-0"},a.createElement("h4",{className:"font-atkinson text-sm font-bold leading-none -tracking-tight lg:py-3"},"Legal"),a.createElement("ul",{className:"flex list-none flex-col gap-3 font-league text-xs font-normal text-notWhite"},a.createElement("li",null,a.createElement("a",{href:s.ZP.public.staticContent({slug:"tos"}).toString(),className:"hover:underline"},"Terms of Use")),a.createElement("li",null,a.createElement("a",{href:s.ZP.public.staticContent({slug:"privacy"}).toString(),className:"hover:underline"},"Privacy Notice")),a.createElement("li",null,a.createElement("a",{href:s.ZP.public.staticContent({slug:"community-guidelines"}).toString(),className:"hover:underline"},"Community Guidelines")))),a.createElement("div",{className:"flex flex-col gap-3 py-3 lg:col-span-2 lg:py-0"},a.createElement("h4",{className:"font-atkinson text-sm font-bold leading-none -tracking-tight lg:py-3"},"About"),a.createElement("ul",{className:"flex list-none flex-col gap-3 font-league text-xs font-normal text-notWhite"},a.createElement("li",null,a.createElement("a",{href:"https://help.antisoftware.club/support/solutions/articles/62000227811-how-to-install-the-cohost-app",className:"hover:underline"},"install cohost on your phone")),a.createElement("li",null,a.createElement("a",{href:s.ZP.public.project.mainAppProfile({projectHandle:"staff"}).toString(),className:"hover:underline"},"@staff")),a.createElement("li",null,a.createElement("a",{href:"https://help.antisoftware.club/",className:"hover:underline"},"Support")))),a.createElement("div",{className:"-mt-3 flex flex-col gap-3 py-3 lg:col-span-2 lg:mt-0 lg:py-0"},a.createElement("ul",{className:"flex list-none flex-col gap-3 font-league text-xs font-normal text-notWhite lg:mt-[50px]"},a.createElement("li",null,a.createElement("a",{href:s.ZP.public.staticContent({slug:"credits"}).toString(),className:"hover:underline"},"Credits")),a.createElement("li",null,a.createElement("a",{href:"https://status.cohost.org",className:"hover:underline"},"cohost status")),a.createElement("li",null,a.createElement("a",{href:"https://jobs.gusto.com/boards/anti-software-software-club-844d514c-4e9d-43e2-9b9c-12088dd3d526",className:"hover:underline"},"Careers"))))))));c.displayName="Footer";var f=n(23006),d=n(67287),p=n(70341),h=n(19140),m=n(1159),g=n(2749),v=n(22661),y=n(34450),b=n(30272),w=n(60707),k=n(80692),_=n(51028),E=n(37428),x=n(8227);function T(e){return`scheduled-delete-acknowledged/user/${e}`}const S=()=>{const e=(0,x.Pc)(),[t,n]=(0,a.useState)(!1);if((0,a.useEffect)((()=>{if(e.userId){const t=window.localStorage.getItem(T(e.userId));t&&!e.deleteAfter?window.localStorage.removeItem(T(e.userId)):t&&t===e.deleteAfter?.toISO()||e.deleteAfter&&n(!0)}}),[e]),t){const r=e.deleteAfter.diff(u.ou.now()),i=Math.round(r.as("days"));return a.createElement(E.A,null,a.createElement(a.Fragment,null,a.createElement(_.cC,{parent:"div",className:"prose mx-auto",i18nKey:"client:header-notice.user-queued-for-delete"},a.createElement("p",null,a.createElement("strong",null,"Heads up!")," Your account is scheduled for deletion, starting in ",{daysLeft:i}," days. At that time, that data will be permanently deleted from our servers. If you want to prevent this, please"," ",a.createElement("a",{href:s.ZP.public.userSettings().toString()},"visit the user settings")," ","and cancel it."),a.createElement("p",null,"(If you close this notification, you won't see it again for this account in this web browser.)")),a.createElement("button",{type:"button",disabled:!t,onClick:function(){t&&e.userId&&e.deleteAfter&&(window.localStorage.setItem(T(e.userId),e.deleteAfter.toISO()),n(!1))}},a.createElement(k.Z,{className:"h-6"}))))}return null},C=({children:e})=>a.createElement(b.T,null,a.createElement("div",{className:"flex flex-col"},a.createElement(y.b,null),a.createElement(r.w,null),a.createElement(m.C,null),a.createElement(o.ql,{defaultTitle:"cohost!",titleTemplate:"cohost! - %s"}),a.createElement(i.t,null),a.createElement(p.M,{className:"cohost-shadow-light absolute left-0 right-0 top-20 z-10 mx-auto max-w-prose"}),a.createElement("div",{className:"flex flex-grow flex-col pb-20"},a.createElement(d.t,null),a.createElement(g.P,null),a.createElement(h.E,null),a.createElement(S,null),a.createElement(w.t,null),a.createElement(f.o,null,a.createElement(v.h,null,a.createElement(a.Suspense,null,e))),a.createElement(c,null))))},69024:function(e,t,n){"use strict";n.d(t,{a:function(){return o}});var r=n(94159),i=n(20616),a=n(91627);const o=({children:e})=>r.createElement(a.Z,null,r.createElement("main",{className:"w-full pt-16"},r.createElement("div",{className:"container mx-auto grid grid-cols-1 gap-16 md:grid-cols-4"},r.createElement(i.w3,null),r.createElement("section",{className:"col-span-1 flex flex-col gap-12 md:col-span-2"},e))))},40438:function(e,t,n){"use strict";n.d(t,{mI:function(){return i},zO:function(){return a}});var r=n(84879);function i(e,t=!1){const n=e.setZone("UTC+1");let r=(n.second+60*n.minute+3600*n.hour)/86.4;return r=t?r%1e3:Math.floor(r%1e3),`@${r.toFixed(t?2:0).padStart(t?6:3,"0")}`}function a(e=!1){return i(r.ou.now(),e)}},25091:function(e,t,n){"use strict";n.r(t),n.d(t,{cohostPlusCustomEmoji:function(){return f},customEmoji:function(){return c},indexableCohostPlusCustomEmoji:function(){return p},indexableCustomEmoji:function(){return d},parseEmoji:function(){return h}});var r=n(12093),i=n(18887),a=n.n(i),o=n(50819),s=n(24259);const l=/:[a-zA-Z\d-_]+:/gims;function u(e){return e.keys().map((t=>{const n=a().basename(t,a().extname(t));return{id:n,name:n,skins:[{src:r.ZP.public.static.staticAsset({path:e(t)}).toString()}],keywords:[]}}))}const c="undefined"!=typeof process&&"test"===process.env?.RUN_MODE?[]:u(n(22782)),f="undefined"!=typeof process&&"test"===process.env?.RUN_MODE?[]:u(n(43258)),d=new Map(c.reduce(((e,t)=>[...e,[t.name,t]]),[])),p=new Map(f.reduce(((e,t)=>[...e,[t.name,t]]),[])),h=e=>(0,s.IS)(l,((t,n,r,i,a)=>{const s=n.reduce(((n,r,i)=>{const a=[...n,{type:"text",value:r}];if(i{const t=document.getElementById(e)?.innerHTML;if(!t)throw new Error(`Couldn't load config from ID: ${e}`);return JSON.parse(t)}},37111:function(e,t,n){"use strict";n.d(t,{Ml:function(){return T},aK:function(){return x}});var r=n(13456),i=n(94257),a=n(94159),o=n(59670),s=n(34316),l=n(13427),u=n(48428),c=n(70883),f=n(84371),d=n(8418),p=n(57242),h=n(69577),m=n(25091),g=n(19736),v=n(22713),y=n(24259),b=n(55252),w=n(61888),k=n.n(w);const _=(0,i.compile)({wordwrap:!1}),E=(e,t,n)=>{let r=(0,p.l)().use(f.Z);const i=(0,g.i)(e);i.singleLineBreaks&&(r=r.use(b.Z));const a=["nofollow"];n.externalLinksInNewTab&&a.push("noopener"),t!["img","picture","audio","video"].includes(e)))),r.use(d.Z).use((()=>y.JM)).use((()=>y.tu)).use(l.Z,s).use((()=>i.additionalVisitor)).use(o.Z,{rel:a,target:n.externalLinksInNewTab?"_blank":"_self"})};function x(e,t,n){const r=function(e,t,n){const r=e.split("\n",v.r).length;return E(t,r,n).use(u.Z).processSync(e).toString()}(e,t,n);return _(r)}function T(e,t,n){const i={Mention:h.p,CustomEmoji:r.w};"artistAlley"===n.renderingContext&&Object.assign(i,{h1:"strong",h2:"strong",h3:"strong",h4:"strong",h5:"strong",h6:"strong"});const o=e.split("\n",v.r).length;return E(t,o,n).use((()=>y.HD)).use(m.parseEmoji,{cohostPlus:n.hasCohostPlus}).use(s.Z,{createElement:a.createElement,Fragment:a.Fragment,components:i}).processSync(e).result}},22233:function(e,t,n){"use strict";n.d(t,{e8:function(){return Ce},BS:function(){return Se},Lx:function(){return Te},pc:function(){return Oe}});var r=n(70496),i=n(13456),a=n(85771),o=n(94257),s=n(91625),l=n(84879),u=n(94159),c=n(31976),f=n(59670),d=n(92860),p=n(76595),h=n(50819),m=n(24287),g=n(26735),v=n(64539),y=/[#.]/g,b=n(95322),w=n(63712);const k=new Set(["menu","submit","reset","button"]),_={}.hasOwnProperty;function E(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n-1&&ee)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){var t,r=e&&e.line,i=e&&e.column;return"number"!=typeof r||"number"!=typeof i||Number.isNaN(r)||Number.isNaN(i)||!(r-1 in n)||(t=(n[r-2]||0)+i-1||0),t>-1&&t{const r=e;if(r.value.stitch&&null!==n&&null!==t)return n.children[t]=r.value.stitch,t})),"root"!==e.type&&"root"===g.type&&1===g.children.length?g.children[0]:g;function v(e){let t=-1;if(e)for(;++tG(t,n,e)}var J=n(34316),X=n(13427),ee=n(48428),te=n(55252),ne=n(70883),re=n(84371),ie=n(8418),ae=n(57242),oe=n.p+"4fd0f5fb276c23f89e61.png",se=n(61480),le=n(76051),ue=n(61938),ce=n(33448),fe=n(40196);const de=u.memo((e=>{const t=(0,fe.N)();(0,u.useEffect)((()=>{window.iframely&&window.iframely.load()}));const{data:n,status:r}=(0,ue.a)(["iframely",e.url],(({queryKey:e})=>fetch(`https://cdn.iframe.ly/api/iframely?url=${encodeURIComponent(e[1])}&key=${t.IFRAMELY_KEY}&iframe=1&omit_script=1`).then((e=>e.json()))),{staleTime:1/0,keepPreviousData:!0,retry:!1});let i;return n&&n.error?i=u.createElement("div",{className:le.tw`co-embed co-loading not-prose flex flex-row gap-8 py-8 pl-8`},u.createElement("img",{className:"max-w-[106px] object-contain",src:(0,se.S)(oe),alt:""}),u.createElement("div",{className:"self-center","data-testid":"iframely-error"},u.createElement("p",{className:"font-league text-2xl font-semibold"},"hmm..."),u.createElement("p",{className:"font-atkinson text-2xl"},"something went wrong with this preview."),u.createElement("p",{className:"font-atkinson text-2xl"},"here's why: ",n.error))):n&&n.html?i=u.createElement(ce.Z,{initialVisible:!0},u.createElement("div",{dangerouslySetInnerHTML:{__html:n.html}})):"loading"===r&&(i=u.createElement("div",{className:le.tw`co-embed co-loading not-prose flex flex-row gap-8 py-8 pl-8`},u.createElement("div",{className:"h-[102px] w-[106px]"}," "),u.createElement("div",{className:"self-center"},u.createElement("p",{className:"font-atkinson text-2xl"},"loading...")))),u.createElement("div",{className:le.tw`co-embed`},i,u.createElement("div",{className:le.tw`co-ui-text mt-0 p-3 text-right`},u.createElement("a",{href:e.url,target:"_blank",rel:"noopener nofollow"},e.url)))}));de.displayName="IframelyEmbed";var pe=n(69577),he=n(25091),me=n(19736),ge=n(22713),ve=n(24259),ye=n(61888),be=n.n(ye);const we=(0,o.compile)({wordwrap:!1}),ke=(e,t,n)=>{let r=(0,ae.l)().use(re.Z);const i=(0,me.i)(e);i.singleLineBreaks&&(r=r.use(te.Z)),t!["img","picture","audio","video"].includes(e)))),r.use(ie.Z,{allowDangerousHtml:!0}).use((()=>ve.JM)).use((()=>ve.tu)).use(Y).use(X.Z,a).use((()=>i.additionalVisitor))},_e=u.createElement(r.v,{level:"post-box-warning",className:"not-prose"},u.createElement("p",null,"There was an issue rendering the HTML for this post! This usually means you've messed up syntax on a ",u.createElement("code",null,"style")," attribute. Please check your syntax!")),Ee=(0,c.uS)(_e);async function xe(e,t,n){const r=e.map((e=>e.markdown.content)).join("\n\n");let i=0;for(const t of e){if(i>=ge.r)break;i=Math.max(i,t.markdown.content.split("\n",ge.r).length)}return ke(t,i,n).use((()=>ve.HD)).use(he.parseEmoji,{cohostPlus:n.hasCohostPlus}).use(ve.pZ).process(r).then((e=>e.value.toString())).catch((e=>xe([{type:"markdown",markdown:{content:Ee}}],t,n)))}function Te(e,t){let n=(0,ae.l)().use(ve.A2);const r=["nofollow"];t.externalLinksInNewTab&&r.push("noopener"),t.disableEmbeds||(n=n.use((()=>ve.fw)));try{return n.use(f.Z,{rel:r,target:t.externalLinksInNewTab?"_blank":"_self"}).use(J.Z,{createElement:u.createElement,Fragment:u.Fragment,components:{Mention:pe.p,CustomEmoji:i.w,IframelyEmbed:de}}).processSync(e).result}catch(e){return _e}}function Se(e,t){const n=t.skipHeadline||t.rss;if(!t.myPost){if(e.effectiveAdultContent&&e.cws.length>0){const t=e.cws.join(", ");return s.ZP.t("client:opengraph.cws-and-adult",{defaultValue:"18+ content; content warnings: {{cwList}}",cwList:t})}if(e.cws.length>0){const t=e.cws.join(", ");return s.ZP.t("client:opengraph.cws",{defaultValue:"(content warning: {{cwList}})",cwList:t})}if(e.effectiveAdultContent)return s.ZP.t("client:opengraph.adult-content",{defaultValue:"this post contains 18+ content"})}if(e.transparentShareOfPostId){const n=e.shareTree.find((t=>t.postId===e.transparentShareOfPostId));if(t.rss){if(n)return`Share from @${n.postingProject.handle}: ${n.singlePostPageUrl}`}else if(n)return`Share from @${n.postingProject.handle}: ${Se(n,t)}`}let r="";if(e.headline&&!n)r=e.headline;else{const t=e.publishedAt?l.ou.fromISO(e.publishedAt).toJSDate():new Date,n=[...e.blocks.filter(a.dG),...e.blocks.filter(a.D_)],i=function(e,t){const n=e.split("\n",ge.r).length;return ke(t,n,{renderingContext:"post"}).use(ee.Z).processSync(e).toString()}((n.length>0?n:e.blocks).map((e=>(0,a.xy)(e))).join("\n\n"),t);r=we(i)}if(t.rss&&e.shareOfPostId){const t=e.shareTree.find((t=>t.postId===e.shareOfPostId));t&&(r=`Share from @${t.postingProject.handle}: ${t.singlePostPageUrl}\n\n${r}`)}return r}async function Ce(e,t,n){const r=[];let i=null,o=null;for(let t=0;t({startIndex:r.startIndex,endIndex:r.endIndex,ast:await xe(e.slice(r.startIndex,r.endIndex),t,n)})))),readMoreIndex:o}}function Oe(e,t){const n=[];for(let r=0;r{if(null!==n&&null!==t&&e.properties?.style&&"string"==typeof e.properties.style)try{let t=!1;const n=l()(e.properties.style);n&&n.position&&-1===["static","relative","absolute","sticky","inherit","initial","revert","revert-layer","unset"].indexOf(n.position.toLowerCase())&&(n.position="static",t=!0),n&&t&&(e.properties.style=Object.entries(n).map((([e,t])=>`${e}:${t}`)).join(";"))}catch(e){return}}))},singleLineBreaks:!1,forceAttachmentsToTop:!0,attachmentLayoutBehavior:"v1",ask:{allowEmbeddedMedia:!0}},d={schema:i()(o.R,{attributes:{"*":["style"]},tagNames:["video","audio","aside"]}),cutoffDate:new Date("2023-05-10T15:00:00-04:00"),className:"isolate co-contain-paint",additionalVisitor(e){f.additionalVisitor(e),(0,u.Vn)(e,"element",((e,t,n)=>{if(null!==n&&null!==t&&e.properties?.style&&"string"==typeof e.properties.style)try{let t=!1;const n=l()(e.properties.style);if(n)for(const e in n)e.startsWith("--")&&(delete n[e],t=!0);n&&t&&(e.properties.style=Object.entries(n).map((([e,t])=>`${e}:${t}`)).join(";"))}catch(e){return}}))},singleLineBreaks:!1,forceAttachmentsToTop:!0,attachmentLayoutBehavior:"v1",ask:{allowEmbeddedMedia:!0}},p={schema:d.schema,cutoffDate:new Date("2023-07-17T12:00:00-04:00"),className:d.className,additionalVisitor:d.additionalVisitor,singleLineBreaks:!0,forceAttachmentsToTop:!0,attachmentLayoutBehavior:"v1",ask:{allowEmbeddedMedia:!0}},h={schema:i()(p.schema,{tagNames:["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","mprescripts"],attributes:{"*":["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"],span:[["className","math-inline"]],div:[["className","math-display"]]}}),cutoffDate:new Date("2024-02-12T12:00:00-08:00"),className:p.className,additionalVisitor:p.additionalVisitor,singleLineBreaks:!0,forceAttachmentsToTop:!0,attachmentLayoutBehavior:"v1",ask:{allowEmbeddedMedia:!0}},m={schema:h.schema,cutoffDate:new Date("2024-03-27T12:00:00-08:00"),className:h.className,additionalVisitor:h.additionalVisitor,singleLineBreaks:!0,forceAttachmentsToTop:!1,attachmentLayoutBehavior:"v1",ask:{allowEmbeddedMedia:!0}},g={schema:m.schema,cutoffDate:new Date("2024-03-29T12:00:00-08:00"),className:m.className,additionalVisitor:m.additionalVisitor,singleLineBreaks:!0,forceAttachmentsToTop:!1,attachmentLayoutBehavior:"v2",ask:{allowEmbeddedMedia:!0}},v=[c,f,d,p,h,m,g,{schema:g.schema,cutoffDate:null,className:g.className,additionalVisitor:g.additionalVisitor,singleLineBreaks:!0,forceAttachmentsToTop:!1,attachmentLayoutBehavior:"v2",ask:{allowEmbeddedMedia:!1}}],y=e=>v.find((t=>!t.cutoffDate||en=>{(0,o.Vn)(n,"text",((n,r,i)=>{if(null===i||null===r)return;const a=n.value.match(e);if(a){const o=n.value.split(e);if(o.length-1!==a.length)return;return t(a,o,n,r,i)}}))},p=e=>{(0,o.Vn)(e,"text",((e,t,n)=>{if(null===n||null===t)return;const r=e.value,o=function(e){if(!e.match(u))return[];const t=[];return e.replace(c,(function(e,n,r,i,a,o){if(!o.slice(a+e.length).match(f)){const e=a+n.length,r=e+i.length+1;t.push({handle:i,indices:[e,r]})}return""})),t}(r);if(o.length){let l=!1;if((0,s.S4)(n,{type:"text"},((t,n)=>i().isEqual(e,t)?(l=!!n.find((e=>(0,a.is)(e,{type:"element",tagName:"a"}))),l?s.BK:void 0):s.dR)),l)return s.dR;const u=[];let c=0;return o.forEach(((e,t,n)=>{const[i,a]=e.indices;u.push({type:"text",value:r.slice(c,i)}),u.push({type:"element",tagName:"Mention",properties:{handle:e.handle},children:[{type:"text",value:`@${e.handle}`}]}),c=a,t===n.length-1&&u.push({type:"text",value:r.slice(c)})})),n.children.splice(t,1,...u),[s.AM,t+u.length]}}))},h=e=>{(0,o.Vn)(e,"element",((e,t,n)=>{if(null!==n&&null!==t){if("a"===e.tagName&&e.properties?.id?.includes("fnref"))return n.children.splice(t,1,...e.children),[s.AM,t];if("a"===e.tagName&&e.properties?.href?.includes("fnref"))return n.children.splice(t,1),[s.AM,t];if("h2"===e.tagName&&e.properties?.id?.includes("footnote-label")){const e={tagName:"hr",type:"element",children:[],properties:{"aria-label":"Footnotes",style:"margin-bottom: -0.5rem;"}};n.children.splice(t,1,e)}}}))},m=e=>{(0,o.Vn)(e,{type:"element",tagName:"img"},(e=>{e.properties?.alt&&(e.properties.title=e.properties.alt)}))},g=e=>{(0,o.Vn)(e,{type:"element",tagName:"a"},((e,t,n)=>{if(null!==n&&null!==t&&1==e.children.length&&"text"==e.children[0].type&&e.position&&e.children[0].position&&e.children[0].position.start.offset==e.position.start.offset&&1==n.children.length)return"element"===n.type&&(n.tagName="div"),n.children.splice(t,1,{type:"element",tagName:"IframelyEmbed",properties:{url:e.properties?.href},children:[]}),!0}))},v=function(){Object.assign(this,{Compiler:e=>JSON.stringify(e)})},y=function(){Object.assign(this,{Parser:e=>JSON.parse(e)})}},61480:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(12093);function i(e){return r.ZP.public.static.staticAsset({path:e}).toString()}},93788:function(e,t,n){"use strict";n.d(t,{$G:function(){return d},i1:function(){return f}});var r=n(26891),i=n.n(r),a=n(33608),o=function(e){var t,n,r=[],i=1;if("string"==typeof e)if(a[e])r=a[e].slice(),n="rgb";else if("transparent"===e)i=0,n="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=(c=e.slice(1)).length;i=1,o<=4?(r=[parseInt(c[0]+c[0],16),parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16)],4===o&&(i=parseInt(c[3]+c[3],16)/255)):(r=[parseInt(c[0]+c[1],16),parseInt(c[2]+c[3],16),parseInt(c[4]+c[5],16)],8===o&&(i=parseInt(c[6]+c[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var l=t[1],u="rgb"===l,c=l.replace(/a$/,"");n=c,o="cmyk"===c?4:"gray"===c?1:3,r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,t){if(/%$/.test(e))return t===o?parseFloat(e)/100:"rgb"===c?255*parseFloat(e)/100:parseFloat(e);if("h"===c[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==s[e])return s[e]}return parseFloat(e)})),l===c&&r.push(1),i=u||void 0===r[o]?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),n=e.match(/([a-z])/gi).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],n="rgb",i=4===e.length?e[3]:1):e instanceof Object&&(null!=e.r||null!=e.red||null!=e.R?(n="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(n="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),i=e.a||e.alpha||e.opacity||1,null!=e.opacity&&(i/=100)):(n="rgb",r=[e>>>16,(65280&e)>>>8,255&e]);return{space:n,values:r,alpha:i}},s={red:0,orange:60,yellow:120,green:180,blue:240,purple:300},l={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},u={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=o+1/3*-(u-1))<0?r++:r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*a;return i}};l.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o;return s===o?t=0:r===s?t=(i-a)/l:i===s?t=2+(a-r)/l:a===s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]};const c=i().theme.extend?.colors;function f(e,t="DEFAULT"){const n=function(e,t="DEFAULT"){if("object"!=typeof c)return"fuschia";const n=c[e];if("object"==typeof n){const e=n[t]??n[500];if("string"==typeof e)return e}else if("string"==typeof n)return n;return"fuschia"}(e,t);return d(n)}function d(e){const t=function(e){var t;Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var n=o(e);if(!n.space)return[];const r="h"===n.space[0]?u.min:l.min,i="h"===n.space[0]?u.max:l.max;return(t=Array(3))[0]=Math.min(Math.max(n.values[0],r[0]),i[0]),t[1]=Math.min(Math.max(n.values[1],r[1]),i[1]),t[2]=Math.min(Math.max(n.values[2],r[2]),i[2]),"h"===n.space[0]&&(t=u.rgb(t)),t.push(Math.min(Math.max(n.alpha,0),1)),t}(e)??[0,0,0,0];return t.slice(0,3).join(" ")}},7449:function(e,t,n){"use strict";n.d(t,{I:function(){return o}});var r=n(36592),i=n(12093);let a;function o(){if(!a){const e=i.ZP.public.apiV1.trpc().toString();a=(0,r.K5)({links:[(0,r.N8)({url:e,fetch:(e,t)=>fetch(e,{...t,credentials:"include"}),maxURLLength:2083})]})}return a}},71860:function(e,t,n){"use strict";n.d(t,{S:function(){return N}});var r=n(36592),i=n(8233);function a(e,t){const n=Array.isArray(e)?e:[e],[r,i]=n,a="string"!=typeof r||""===r?[]:r.split(".");return i||t&&"any"!==t?[a,{...void 0!==i&&{input:i},...t&&"any"!==t&&{type:t}}]:a.length?[a]:[]}var o=n(61938),s=n(70902),l=n(94159),u=n(78522),c=n(1227),f=n(48683),d=n(3713),p=n(81353);class h extends p.l{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.client.defaultMutationOptions(e),(0,c.VS)(t,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this})}onUnsubscribe(){var e;this.listeners.length||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:(0,f.R)(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){d.V.batch((()=>{var t,n,r,i;if(this.mutateOptions)if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(i=this.mutateOptions).onSettled)||r.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var a,o,s,l;null==(a=(o=this.mutateOptions).onError)||a.call(o,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((e=>{e(this.currentResult)}))}))}}var m=n(15207);function g(){}var v=n(63213),y=n(21266);class b extends v.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:(0,y.Gm)()},t)}getOptimisticResult(e){return e.behavior=(0,y.Gm)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,r,i,a,o,s;const{state:l}=e,u=super.createResult(e,t),{isFetching:c,isRefetching:f}=u,d=c&&"forward"===(null==(n=l.fetchMeta)||null==(r=n.fetchMore)?void 0:r.direction),p=c&&"backward"===(null==(i=l.fetchMeta)||null==(a=i.fetchMore)?void 0:a.direction);return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,y.Qy)(t,null==(o=l.data)?void 0:o.pages),hasPreviousPage:(0,y.ZF)(t,null==(s=l.data)?void 0:s.pages),isFetchingNextPage:d,isFetchingPreviousPage:p,isRefetching:f&&!d&&!p}}}var w=n(88909);class k extends p.l{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.length&&this.observers.forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))}))}onUnsubscribe(){this.listeners.length||this.destroy()}destroy(){this.listeners=[],this.observers.forEach((e=>{e.destroy()}))}setQueries(e,t){this.queries=e,d.V.batch((()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach((e=>e.observer.setOptions(e.defaultedQueryOptions,t)));const r=n.map((e=>e.observer)),i=Object.fromEntries(r.map((e=>[e.options.queryHash,e]))),a=r.map((e=>e.getCurrentResult())),o=r.some(((t,n)=>t!==e[n]));(e.length!==r.length||o)&&(this.observers=r,this.observersMap=i,this.result=a,this.hasListeners()&&((0,c.e5)(e,r).forEach((e=>{e.destroy()})),(0,c.e5)(r,e).forEach((e=>{e.subscribe((t=>{this.onUpdate(e,t)}))})),this.notify()))}))}getCurrentResult(){return this.result}getQueries(){return this.observers.map((e=>e.getCurrentQuery()))}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map((e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)))}findMatchingObservers(e){const t=this.observers,n=e.map((e=>this.client.defaultQueryOptions(e))),r=n.flatMap((e=>{const n=t.find((t=>t.options.queryHash===e.queryHash));return null!=n?[{defaultedQueryOptions:e,observer:n}]:[]})),i=r.map((e=>e.defaultedQueryOptions.queryHash)),a=n.filter((e=>!i.includes(e.queryHash))),o=t.filter((e=>!r.some((t=>t.observer===e)))),s=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new v.z(this.client,t)},l=a.map(((e,t)=>{if(e.keepPreviousData){const n=o[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:s(e)}}));return r.concat(l).sort(((e,t)=>n.indexOf(e.defaultedQueryOptions)-n.indexOf(t.defaultedQueryOptions)))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=(0,c.Rc)(this.result,n,t),this.notify())}notify(){d.V.batch((()=>{this.listeners.forEach((e=>{e(this.result)}))}))}}var _=n(9716),E=n(47019),x=n(85135),T=n(50992);function S(e,t){return e.length?void 0===t?[e]:[e,t]:[]}const C=["client","ssrContext","ssrState","abortOnUnmount"],O=(0,l.createContext)(null);function A(e,t){const[n,r]=e;return[n,r,t?.trpc]}function I(e){const t=(0,l.useRef)(e);return t.current.path=e.path,t.current}const N=function(e){return(0,i.yh)((t=>{return"useContext"===t?()=>{const t=e.useContext();return(0,l.useMemo)((()=>function(e){return(0,i.yh)((t=>{const n=t;return"client"===n?(0,r.Bm)(e.client):C.includes(n)?e[n]:(0,i.IX)((({path:n,args:r})=>{const i=[t,...n],a=i.pop(),o=i.join("."),{queryKey:s,rest:l,updater:u}=(e=>{if(["setData","setInfiniteData"].includes(e)){const[e,t,...n]=r;return{queryKey:S(o,e),updater:t,rest:n}}const[t,...n]=r;return{queryKey:S(o,t),rest:n}})(a);return{fetch:()=>e.fetchQuery(s,...l),fetchInfinite:()=>e.fetchInfiniteQuery(s,...l),prefetch:()=>e.prefetchQuery(s,...l),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,...l),ensureData:()=>e.ensureQueryData(s,...l),invalidate:()=>e.invalidateQueries(s,...l),reset:()=>e.resetQueries(s,...l),refetch:()=>e.refetchQueries(s,...l),cancel:()=>e.cancelQuery(s,...l),setData:()=>{e.setQueryData(s,u,...l)},setInfiniteData:()=>{e.setInfiniteQueryData(s,u,...l)},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s)}[a]()}))}))}(t)),[t])}:e.hasOwnProperty(t)?e[t]:(n=t,o=e,(0,i.IX)((e=>{const t=e.args,r=[n,...e.path],i=r.pop(),s=r.join(".");if("useMutation"===i)return o[i](s,...t);const[l,...u]=t,c=S(s,l);if("getQueryKey"===i)return a(c,u[0]??"any");if("_def"===i)return{path:r};if(i.startsWith("useSuspense")){const e=u[0]||{},t=o["useSuspenseQuery"===i?"useQuery":"useInfiniteQuery"](c,{...e,suspense:!0,enabled:!0});return[t.data,t]}return o[i](c,...u)})));var n,o}))}(function(e){const t=(e?.overrides??e?.unstable_overrides)?.useMutation?.onSuccess??(e=>e.originalFn()),n=e?.context??O,f=e?.reactQueryContext;function p(){return l.useContext(n)}function v(e,t,n){const{queryClient:r,ssrState:i}=p();return i&&"mounted"!==i&&"error"===r.getQueryCache().find(a(e,t))?.state.status?{retryOnMount:!1,...n}:n}return{Provider:e=>{const{abortOnUnmount:t=!1,client:r,queryClient:i,ssrContext:o}=e,[s,u]=(0,l.useState)(e.ssrState??!1);return(0,l.useEffect)((()=>{u((e=>!!e&&"mounted"))}),[]),l.createElement(n.Provider,{value:{abortOnUnmount:t,queryClient:i,client:r,ssrContext:o??null,ssrState:s,fetchQuery:(0,l.useCallback)(((e,t)=>i.fetchQuery({...t,queryKey:a(e,"query"),queryFn:()=>r.query(...A(e,t))})),[r,i]),fetchInfiniteQuery:(0,l.useCallback)(((e,t)=>i.fetchInfiniteQuery({...t,queryKey:a(e,"infinite"),queryFn:({pageParam:n})=>{const[i,a]=e,o={...a,cursor:n};return r.query(...A([i,o],t))}})),[r,i]),prefetchQuery:(0,l.useCallback)(((e,t)=>i.prefetchQuery({...t,queryKey:a(e,"query"),queryFn:()=>r.query(...A(e,t))})),[r,i]),prefetchInfiniteQuery:(0,l.useCallback)(((e,t)=>i.prefetchInfiniteQuery({...t,queryKey:a(e,"infinite"),queryFn:({pageParam:n})=>{const[i,a]=e,o={...a,cursor:n};return r.query(...A([i,o],t))}})),[r,i]),ensureQueryData:(0,l.useCallback)(((e,t)=>i.ensureQueryData({...t,queryKey:a(e,"query"),queryFn:()=>r.query(...A(e,t))})),[r,i]),invalidateQueries:(0,l.useCallback)(((e,t,n)=>i.invalidateQueries({...t,queryKey:a(e,"any")},n)),[i]),resetQueries:(0,l.useCallback)(((...e)=>{const[t,n,r]=e;return i.resetQueries({...n,queryKey:a(t,"any")},r)}),[i]),refetchQueries:(0,l.useCallback)(((...e)=>{const[t,n,r]=e;return i.refetchQueries({...n,queryKey:a(t,"any")},r)}),[i]),cancelQuery:(0,l.useCallback)((e=>i.cancelQueries({queryKey:a(e,"any")})),[i]),setQueryData:(0,l.useCallback)(((...e)=>{const[t,...n]=e;return i.setQueryData(a(t,"query"),...n)}),[i]),getQueryData:(0,l.useCallback)(((...e)=>{const[t,...n]=e;return i.getQueryData(a(t,"query"),...n)}),[i]),setInfiniteQueryData:(0,l.useCallback)(((...e)=>{const[t,...n]=e;return i.setQueryData(a(t,"infinite"),...n)}),[i]),getInfiniteQueryData:(0,l.useCallback)(((...e)=>{const[t,...n]=e;return i.getQueryData(a(t,"infinite"),...n)}),[i])}},e.children)},createClient:e=>(0,r.BJ)(e),useContext:p,useQuery:function(t,n){const r=p();if(!r)throw new Error("Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?");const{abortOnUnmount:i,client:s,ssrState:l,queryClient:u,prefetchQuery:c}=r,d=u.getQueryDefaults(a(t,"query"));"undefined"!=typeof window||"prepass"!==l||!1===n?.trpc?.ssr||!1===(n?.enabled??d?.enabled)||u.getQueryCache().find(a(t,"query"))||c(t,n);const h=v(t,"query",{...d,...n}),m=n?.trpc?.abortOnUnmount??e?.abortOnUnmount??i,g=(0,o.a)({...h,queryKey:a(t,"query"),queryFn:e=>{const n={...h,trpc:{...h?.trpc,...m?{signal:e.signal}:{}}};return s.query(...A(t,n))},context:f});return g.trpc=I({path:t[0]}),g},useQueries:(e,t)=>{const{ssrState:n,queryClient:r,prefetchQuery:o,client:c}=p(),f=function(e){return(0,i.IX)((t=>{const n=t.path.join("."),[r,i]=t.args;return{queryKey:S(n,r),queryFn:()=>e.query(n,r,i?.trpc),...i}}))}(c),h=e(f);if("undefined"==typeof window&&"prepass"===n)for(const e of h){const t=e;!1===t.trpc?.ssr||r.getQueryCache().find(a(t.queryKey,"query"))||o(t.queryKey,t)}return function({queries:e,context:t}){const n=(0,s.NL)({context:t}),r=(0,_.S)(),i=l.useMemo((()=>e.map((e=>{const t=n.defaultQueryOptions(e);return t._optimisticResults=r?"isRestoring":"optimistic",t}))),[e,n,r]),[a]=l.useState((()=>new k(n,i))),o=a.getOptimisticResult(i);(0,u.$)(l.useCallback((e=>r?()=>{}:a.subscribe(d.V.batchCalls(e))),[a,r]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),l.useEffect((()=>{a.setQueries(i,{listeners:!1})}),[i,a]);const c=(0,E._)();i.forEach((e=>{(0,x.pf)(e,c),(0,T.Fb)(e)})),(0,x.JN)(c);const f=o.some(((e,t)=>(0,T.SB)(i[t],e,r)))?o.flatMap(((e,t)=>{const n=i[t],o=a.getObservers()[t];if(n&&o){if((0,T.SB)(n,e,r))return(0,T.j8)(n,o,c);(0,T.Z$)(e,r)&&(0,T.j8)(n,o,c)}return[]})):[];if(f.length>0)throw Promise.all(f);const p=o.find(((e,t)=>{var n,r;return(0,x.KJ)({result:e,errorResetBoundary:c,useErrorBoundary:null!=(n=null==(r=i[t])?void 0:r.useErrorBoundary)&&n,query:a.getQueries()[t]})}));if(null!=p&&p.error)throw p.error;return o}({queries:h.map((e=>({...e,queryKey:a(e.queryKey,"query")}))),context:t})},useMutation:function(e,n){const{client:r}=p(),i=(0,s.NL)({context:f}),a=Array.isArray(e)?e[0]:e,o=i.getMutationDefaults([a.split(".")]),v=function(e,t,n){const r=(0,c.lV)(e,void 0,void 0),i=(0,s.NL)({context:r.context}),[a]=l.useState((()=>new h(i,r)));l.useEffect((()=>{a.setOptions(r)}),[a,r]);const o=(0,u.$)(l.useCallback((e=>a.subscribe(d.V.batchCalls(e))),[a]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),f=l.useCallback(((e,t)=>{a.mutate(e,t).catch(g)}),[a]);if(o.error&&(0,m.L)(a.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}({...n,mutationKey:[a.split(".")],mutationFn:e=>r.mutation(...A([a,e],n)),context:f,onSuccess:(...e)=>t({originalFn:()=>n?.onSuccess?.(...e)??o?.onSuccess?.(...e),queryClient:i,meta:n?.meta??o?.meta??{}})});return v.trpc=I({path:a}),v},useSubscription:function(e,t){const n=t?.enabled??!0,r=(0,c.yF)(e),{client:i}=p(),a=(0,l.useRef)(t);a.current=t,(0,l.useEffect)((()=>{if(!n)return;const[t,r]=e;let o=!1;const s=i.subscription(t,r??void 0,{onStarted:()=>{o||a.current.onStarted?.()},onData:e=>{o||a.current.onData(e)},onError:e=>{o||a.current.onError?.(e)}});return()=>{o=!0,s.unsubscribe()}}),[r,n])},useDehydratedState:(e,t)=>(0,l.useMemo)((()=>t?e.runtime.transformer.deserialize(t):t),[t,e]),useInfiniteQuery:function(e,t){const[n,r]=e,{client:i,ssrState:o,prefetchInfiniteQuery:s,queryClient:l,abortOnUnmount:u}=p(),d=l.getQueryDefaults(a(e,"infinite"));"undefined"!=typeof window||"prepass"!==o||!1===t?.trpc?.ssr||!1===(t?.enabled??d?.enabled)||l.getQueryCache().find(a(e,"infinite"))||s(e,{...d,...t});const h=v(e,"infinite",{...d,...t}),m=t?.trpc?.abortOnUnmount??u,g=function(e,t,n){const r=(0,c._v)(e,void 0,void 0);return(0,w.r)(r,b)}({...h,queryKey:a(e,"infinite"),queryFn:e=>{const a={...h,trpc:{...h?.trpc,...m?{signal:e.signal}:{}}},o={...r??{},cursor:e.pageParam??t?.initialCursor};return i.query(...A([n,o],a))},context:f});return g.trpc=I({path:n}),g}}}(undefined))},76051:function(e,t,n){"use strict";n.d(t,{tw:function(){return r}}),n(6285).z.string().refine((function(e){return!0}));const r=(e,...t)=>String.raw({raw:e},...t)},95189:function(e,t,n){"use strict";function r(e){return t=>t.matches(e)}n.d(t,{M:function(){return r}})},33895:function(e,t,n){"use strict";n.d(t,{HP:function(){return a},X_:function(){return s}});var r=n(94159);function i({attachments:e,attachmentDimensions:t,renderOne:n,attachmentIndices:i,testRowIndex:a}){const o=e.reduce(((e,n)=>{const r=t(n),i=e?t(e):void 0;return r&&(!i||r.height*r.width>i.height*i.width)?n:e})),s=o?t(o):void 0;let l;return e.length>1&&(l=s&&s.width&&s.height?s.width/s.height:16/9),r.createElement("div",{className:"flex w-full flex-nowrap content-start justify-between","data-testid":void 0!==a?`row-${a}`:void 0},e.map(((t,r)=>n({attachment:t,index:i[r],rowLength:e.length,aspectRatio:l}))))}function a({attachments:e,attachmentKind:t,attachmentDimensions:n,renderOne:a}){const o=[],s=[],l=[];for(let n=0;n=3){const e=s.splice(0,3),u=l.splice(0,3);o.push(r.createElement(i,{attachments:e,attachmentIndices:u,attachmentKind:t,attachmentDimensions:n,renderOne:a,key:"image-firstThree"}));for(let e=0;ea({attachment:e,index:c[t],rowLength:1,aspectRatio:void 0}))).filter((e=>null!==e))),o.length?r.createElement("div",null,o):null}function o(e,t,n,a,s){switch(e.length){case 0:return[];case 1:return[r.createElement(i,{attachments:[e[0].attachment],attachmentIndices:[e[0].index],attachmentKind:t,attachmentDimensions:n,renderOne:a,key:`image-${e[0].index}`,testRowIndex:s})];case 3:return[r.createElement(i,{attachments:[e[0].attachment,e[1].attachment,e[2].attachment],attachmentIndices:[e[0].index,e[1].index,e[2].index],attachmentKind:t,attachmentDimensions:n,renderOne:a,key:`images-${e[0].index}-${e[1].index}-${e[2].index}`,testRowIndex:s})];default:return[r.createElement(i,{attachments:[e[0].attachment,e[1].attachment],attachmentIndices:[e[0].index,e[1].index],attachmentKind:t,attachmentDimensions:n,renderOne:a,key:`images-${e[0].index}-${e[1].index}`,testRowIndex:s}),...o(e.slice(2),t,n,a,s+1)]}}function s({attachments:e,attachmentKind:t,attachmentDimensions:n,renderOne:i}){const a=[];let s=[],l=0;for(let r=0;r{throw new Error("uSES not initialized!")},p=(e,t)=>e===t;function h(e=u){const t=e===u?f:c(e),n=(e,n={})=>{const{equalityFn:r=p,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:s,getServerState:l,stabilityCheck:u,identityFunctionCheck:c}=t(),f=(a.useRef(!0),a.useCallback({[e.name]:t=>e(t)}[e.name],[e,u,i.stabilityCheck])),h=d(s.addNestedSub,o.getState,l||o.getState,f,r);return a.useDebugValue(h),h};return Object.assign(n,{withTypes:()=>n}),n}var m=h();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var g={notify(){},get:()=>[]};var v="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var y=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const s=a.useMemo((()=>{const t=function(e,t){let n,r=g,i=0,a=!1;function o(){u.onStateChange&&u.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=g)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>r};return u}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}}),[e,r,i,o]),l=a.useMemo((()=>e.getState()),[e]);v((()=>{const{subscription:t}=s;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[s,l]);const c=t||u;return a.createElement(c.Provider,{value:s},n)};function b(e=u){const t=e===u?f:c(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var w=b();function k(e=u){const t=e===u?w:b(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var _,E=k();_=i.useSyncExternalStoreWithSelector,d=_,r.useSyncExternalStore;var x=n(95189),T=n(4402),S=n(12093),C=n(4003),O=n(85771),A=n(22018),I=n(49750),N=n(97287),P=n(56018),R=n(17881),L=n(28474),M=n(92302),D=n(78568),F=n(79211),j=n(76023),B=n(12929),q=n(97737),H=n(56910);function z({onFocus:e}){let[t,n]=(0,r.useState)(!0);return t?r.createElement(H._,{as:"button",type:"button",features:H.A.Focusable,onFocus:t=>{t.preventDefault();let r,i=50;r=requestAnimationFrame((function t(){if(!(i--<=0))return e()?(n(!1),void cancelAnimationFrame(r)):void(r=requestAnimationFrame(t));r&&cancelAnimationFrame(r)}))}}):null}var U=n(62450),V=n(46564),$=n(71198);const W=r.createContext(null);function G({children:e}){let t=r.useRef({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=null!=(n=r.get(t))?n:0;return r.set(t,i+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return r.createElement(W.Provider,{value:t},e)}function Z(e){let t=r.useContext(W);if(!t)throw new Error("You must wrap your component in a ");let n=function(){var e,t,n;let i=null!=(n=null==(t=null==(e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!i)return Symbol();let a=[],o=i;for(;o;)a.push(o.index),o=o.return;return"$."+a.join(".")}(),[i,a]=t.current.get(e,n);return r.useEffect((()=>a),[]),i}var K,Q,Y,J=((Y=J||{})[Y.Forwards=0]="Forwards",Y[Y.Backwards=1]="Backwards",Y),X=((Q=X||{})[Q.Less=-1]="Less",Q[Q.Equal=0]="Equal",Q[Q.Greater=1]="Greater",Q),ee=((K=ee||{})[K.SetSelectedIndex=0]="SetSelectedIndex",K[K.RegisterTab=1]="RegisterTab",K[K.UnregisterTab=2]="UnregisterTab",K[K.RegisterPanel=3]="RegisterPanel",K[K.UnregisterPanel=4]="UnregisterPanel",K);let te={0(e,t){var n;let r=(0,D.z2)(e.tabs,(e=>e.current)),i=(0,D.z2)(e.panels,(e=>e.current)),a=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),o={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let n=(0,L.E)(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,L.E)(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});return 0===a.length?o:{...o,selectedIndex:(0,L.E)(n,{0:()=>r.indexOf(a[0]),1:()=>r.indexOf(a[a.length-1])})}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>a.includes(e)));if(!l)return o;let u=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===u&&(u=e.selectedIndex),{...o,selectedIndex:u}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],i=(0,D.z2)([...e.tabs,t.tab],(e=>e.current)),a=null!=(n=i.indexOf(r))?n:e.selectedIndex;return-1===a&&(a=e.selectedIndex),{...e,tabs:i,selectedIndex:a}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:(0,D.z2)([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},ne=(0,r.createContext)(null);function re(e){let t=(0,r.useContext)(ne);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,re),t}return t}ne.displayName="TabsDataContext";let ie=(0,r.createContext)(null);function ae(e){let t=(0,r.useContext)(ie);if(null===t){let t=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ae),t}return t}function oe(e,t){return(0,L.E)(t.type,te,e,t)}ie.displayName="TabsActionsContext";let se=r.Fragment,le=P.AN.RenderStrategy|P.AN.Static,ue=(0,P.yV)((function(e,t){var n,i;let a=(0,R.M)(),{id:o=`headlessui-tabs-tab-${a}`,...s}=e,{orientation:l,activation:u,selectedIndex:c,tabs:f,panels:d}=re("Tab"),p=ae("Tab"),h=re("Tab"),m=(0,r.useRef)(null),g=(0,j.T)(m,t);(0,F.e)((()=>p.registerTab(m)),[p,m]);let v=Z("tabs"),y=f.indexOf(m);-1===y&&(y=v);let b=y===c,w=(0,U.z)((e=>{var t;let n=e();if(n===D.fE.Success&&"auto"===u){let e=null==(t=(0,$.r)(m))?void 0:t.activeElement,n=h.tabs.findIndex((t=>t.current===e));-1!==n&&p.change(n)}return n})),k=(0,U.z)((e=>{let t=f.map((e=>e.current)).filter(Boolean);if(e.key===M.R.Space||e.key===M.R.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(y);switch(e.key){case M.R.Home:case M.R.PageUp:return e.preventDefault(),e.stopPropagation(),w((()=>(0,D.jA)(t,D.TO.First)));case M.R.End:case M.R.PageDown:return e.preventDefault(),e.stopPropagation(),w((()=>(0,D.jA)(t,D.TO.Last)))}return w((()=>(0,L.E)(l,{vertical:()=>e.key===M.R.ArrowUp?(0,D.jA)(t,D.TO.Previous|D.TO.WrapAround):e.key===M.R.ArrowDown?(0,D.jA)(t,D.TO.Next|D.TO.WrapAround):D.fE.Error,horizontal:()=>e.key===M.R.ArrowLeft?(0,D.jA)(t,D.TO.Previous|D.TO.WrapAround):e.key===M.R.ArrowRight?(0,D.jA)(t,D.TO.Next|D.TO.WrapAround):D.fE.Error})))===D.fE.Success?e.preventDefault():void 0})),_=(0,r.useRef)(!1),E=(0,U.z)((()=>{var e;_.current||(_.current=!0,null==(e=m.current)||e.focus(),p.change(y),(0,V.Y)((()=>{_.current=!1})))})),x=(0,U.z)((e=>{e.preventDefault()})),T=(0,r.useMemo)((()=>({selected:b})),[b]),S={ref:g,onKeyDown:k,onMouseDown:x,onClick:E,id:o,role:"tab",type:(0,B.f)(e,m),"aria-controls":null==(i=null==(n=d[y])?void 0:n.current)?void 0:i.id,"aria-selected":b,tabIndex:b?0:-1};return(0,P.sY)({ourProps:S,theirProps:s,slot:T,defaultTag:"button",name:"Tabs.Tab"})})),ce=(0,P.yV)((function(e,t){let{defaultIndex:n=0,vertical:i=!1,manual:a=!1,onChange:o,selectedIndex:s=null,...l}=e;const u=i?"vertical":"horizontal",c=a?"manual":"auto";let f=null!==s,d=(0,j.T)(t),[p,h]=(0,r.useReducer)(oe,{selectedIndex:null!=s?s:n,tabs:[],panels:[]}),m=(0,r.useMemo)((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),g=(0,q.E)(o||(()=>{})),v=(0,q.E)(p.tabs),y=(0,r.useMemo)((()=>({orientation:u,activation:c,...p})),[u,c,p]),b=(0,U.z)((e=>(h({type:1,tab:e}),()=>h({type:2,tab:e})))),w=(0,U.z)((e=>(h({type:3,panel:e}),()=>h({type:4,panel:e})))),k=(0,U.z)((e=>{_.current!==e&&g.current(e),f||h({type:0,index:e})})),_=(0,q.E)(f?e.selectedIndex:p.selectedIndex),E=(0,r.useMemo)((()=>({registerTab:b,registerPanel:w,change:k})),[]);(0,F.e)((()=>{h({type:0,index:null!=s?s:n})}),[s]),(0,F.e)((()=>{if(void 0===_.current||p.tabs.length<=0)return;let e=(0,D.z2)(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&k(e.indexOf(p.tabs[_.current]))}));let x={ref:d};return r.createElement(G,null,r.createElement(ie.Provider,{value:E},r.createElement(ne.Provider,{value:y},y.tabs.length<=0&&r.createElement(z,{onFocus:()=>{var e,t;for(let n of v.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),(0,P.sY)({ourProps:x,theirProps:l,slot:m,defaultTag:se,name:"Tabs"}))))})),fe=(0,P.yV)((function(e,t){let{orientation:n,selectedIndex:r}=re("Tab.List"),i=(0,j.T)(t);return(0,P.sY)({ourProps:{ref:i,role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),de=(0,P.yV)((function(e,t){let{selectedIndex:n}=re("Tab.Panels"),i=(0,j.T)(t),a=(0,r.useMemo)((()=>({selectedIndex:n})),[n]);return(0,P.sY)({ourProps:{ref:i},theirProps:e,slot:a,defaultTag:"div",name:"Tabs.Panels"})})),pe=(0,P.yV)((function(e,t){var n,i,a,o;let s=(0,R.M)(),{id:l=`headlessui-tabs-panel-${s}`,tabIndex:u=0,...c}=e,{selectedIndex:f,tabs:d,panels:p}=re("Tab.Panel"),h=ae("Tab.Panel"),m=(0,r.useRef)(null),g=(0,j.T)(m,t);(0,F.e)((()=>h.registerPanel(m)),[h,m]);let v=Z("panels"),y=p.indexOf(m);-1===y&&(y=v);let b=y===f,w=(0,r.useMemo)((()=>({selected:b})),[b]),k={ref:g,id:l,role:"tabpanel","aria-labelledby":null==(i=null==(n=d[y])?void 0:n.current)?void 0:i.id,tabIndex:b?u:-1};return b||null!=(a=c.unmount)&&!a||null!=(o=c.static)&&o?(0,P.sY)({ourProps:k,theirProps:c,slot:w,defaultTag:"div",features:le,visible:b,name:"Tabs.Panel"}):r.createElement(H._,{as:"span",...k})})),he=Object.assign(ue,{Group:ce,List:fe,Panels:de,Panel:pe});var me=r.forwardRef((function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"}))})),ge=n(34377),ve=n(97244),ye=r.forwardRef((function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.375 12.739l-7.693 7.693a4.5 4.5 0 01-6.364-6.364l10.94-10.94A3 3 0 1119.5 7.372L8.552 18.32m.009-.01l-.01.01m5.699-9.941l-7.81 7.81a1.5 1.5 0 002.112 2.13"}))})),be=n(990),we=n(36612),ke=n(9488),_e=n(45072),Ee=n(59134),xe=n(51028),Te=n(95365),Se=n(86036),Ce=n.n(Se),Oe=n(54353),Ae=n(73950),Ie=n.n(Ae),Ne=n(72362),Pe=n(105),Re=n(7449);const Le=(0,Ne.C)({context:{projectHandle:"",isActivated:!1,hasCohostPlus:!1,sizeLimits:Te.u_.limits.attachmentSize,currentPostState:void 0,headline:"",attachments:[],validationErrors:new Map,markdownBlocks:[],newPostState:A.h.Published,shareOfPostId:null,responseToAskId:null,adultContent:!1,maximumAllowedAttachments:4,tags:[],cws:[],editingCws:!1,dirty:!1,editingTransparentShare:!1},initial:"launching",id:"editor",states:{launching:{invoke:{src:"verifyInitialContext",onDone:[{actions:(0,Pe.f0)({editingCws:(e,t)=>t.data.editingCws}),target:"editing"}],onError:[{actions:(0,Pe.f0)({validationErrors:(e,t)=>e.validationErrors=e.validationErrors.set("app",`FAILED INITIAL CONTEXT CHECK: ${t.data.errors.join(", ")}`)}),target:"unrecoverable"}]}},editing:{type:"parallel",states:{headline:{initial:"typing",states:{typing:{on:{HEADLINE_INPUT:{actions:["assignHeadline"]}}}}},body:{initial:"typing",states:{typing:{on:{BODY_INPUT:{target:"typing",actions:(0,Pe.f0)({markdownBlocks:(e,t)=>e.markdownBlocks=t.body.split("\n\n").map((e=>({type:"markdown",markdown:{content:e}}))),dirty:e=>e.dirty=!0})}}}}},attachments:{initial:"waitingForSelection",states:{waitingForSelection:{always:{cond:"maximumFilesSelected",target:"waitingForUpload"},on:{SELECT_FILE:{target:"validatingAttachment"},REMOVE_ATTACHMENT:{actions:"removeAttachment"}}},validatingAttachment:{invoke:{src:"validateAttachments",onDone:[{actions:(0,Pe.f0)({attachments:(e,t)=>[...e.attachments,{...t.data,state:C.s5.Pending}],validationErrors:e=>(e.validationErrors.delete("attachments"),e.validationErrors),dirty:e=>e.dirty=!0}),target:"waitingForSelection"}],onError:[{actions:(0,Pe.f0)({validationErrors:(e,t)=>e.validationErrors.set("attachments",t.data.error)}),target:"waitingForSelection"}]}},waitingForUpload:{on:{REMOVE_ATTACHMENT:{actions:"removeAttachment",target:"waitingForSelection"}}}}},postState:{initial:"waiting",states:{waiting:{on:{SET_POST_STATE:{actions:(0,Pe.f0)({newPostState:(e,t)=>e.newPostState=t.newPostState,dirty:e=>e.dirty=!0})}}}}},adultContent:{initial:"waiting",states:{waiting:{on:{SET_ADULT_CONTENT:{actions:(0,Pe.f0)({adultContent:(e,t)=>e.adultContent=t.adultContent,dirty:e=>e.dirty=!0})}}}}},tags:{initial:"waiting",states:{waiting:{on:{TAGS_INPUT:{actions:(0,Pe.f0)({tags:(e,t)=>e.tags=t.tags,dirty:e=>e.dirty=!0})}}}}},cws:{initial:"waiting",states:{waiting:{on:{CWS_INPUT:{actions:(0,Pe.f0)({cws:(e,t)=>e.cws=t.cws,dirty:e=>e.dirty=!0})}}}}},altText:{initial:"typing",states:{typing:{on:{ALT_TEXT_INPUT:{actions:(0,Pe.f0)({attachments:(e,t)=>{const n=e.attachments[t.index];return"image"!==n.kind?(console.error("editing alt text on non-image attachment?"),e.attachments):[...e.attachments.slice(0,t.index),{...n,metadata:{...n.metadata,altText:t.input}},...e.attachments.slice(t.index+1)]},dirty:e=>e.dirty=!0})}}}}},audioMetadata:{initial:"typing",states:{typing:{on:{AUDIO_METADATA_INPUT:{actions:(0,Pe.f0)({attachments:(e,t)=>{const n=e.attachments[t.index];return"audio"!==n.kind?(console.error("editing metadata on non-audio attachment?"),e.attachments):(n.metadata={title:t.title,artist:t.artist},[...e.attachments.slice(0,t.index),n,...e.attachments.slice(t.index+1)])}})}}}}}},on:{SUBMIT_POST:{target:"validating"},CHANGE_PROJECT:{actions:(0,Pe.f0)({projectHandle:(e,t)=>e.projectHandle=t.projectHandle})},TOGGLE_CWS_INPUT:{actions:(0,Pe.f0)({editingCws:e=>e.cws.length>0||!e.editingCws})}}},validating:{invoke:{src:"validatePost",onDone:[{target:"posting",actions:(0,Pe.f0)({dirty:e=>e.dirty=!1})}],onError:[{actions:(0,Pe.f0)({validationErrors:(e,t)=>e.validationErrors=e.validationErrors.set("app",t.data)}),target:"editing"}]}},posting:{initial:"startingUpload",states:{startingUpload:{always:[{cond:"hasPostId",target:"maybeUploadingAttachments"},{target:"creatingPost"}]},creatingPost:{invoke:{src:"createPost",onDone:[{actions:(0,Pe.f0)({postId:(e,t)=>e.postId=t.data}),target:"maybeUploadingAttachments"}]}},maybeUploadingAttachments:{always:[{cond:"hasPendingAttachments",target:"uploadingAttachments"},{cond:"isNewPost",target:"#editor.posted"},{target:"updatingPost"}]},uploadingAttachments:{initial:"startingAttachments",states:{startingAttachments:{invoke:{src:"createAttachments",onDone:[{actions:"assignAttachmentUploadData",target:"uploadingFiles"}]}},uploadingFiles:{invoke:{src:"uploadFiles",onDone:[{target:"finishingAttachments"}]}},finishingAttachments:{invoke:{src:"finishAttachments",onDone:[{actions:(0,Pe.f0)({attachments:(e,t)=>e.attachments=e.attachments.map(((e,n)=>({...e,state:C.s5.Finished,src:t.data[n].url})))}),target:"#editor.posting.updatingPost"}]}}}},updatingPost:{invoke:{src:"updatePost",onDone:[{target:"#editor.posted"}],onError:[{target:"#editor.postingFailed"}]}}}},posted:{},postingFailed:{},unrecoverable:{type:"final"}}},{guards:{hasPostId:e=>!!e.postId,hasPendingAttachments:({attachments:e})=>e.some((e=>e.state==C.s5.Pending)),maximumFilesSelected:({attachments:e,maximumAllowedAttachments:t})=>e.length>=t,shouldUpdatePostState:({currentPostState:e,newPostState:t})=>e!==t,isNewPost:({currentPostState:e})=>void 0===e},services:{verifyInitialContext:e=>{const t=[];return e.projectHandle||t.push("MISSING PROJECT HANDLE"),t.length>0?Promise.reject({errors:t}):Promise.resolve({editingCws:e.cws.length>0})},validatePost:e=>{const t=e.markdownBlocks.filter((e=>e.markdown.content.trim().length>0)),n=!Ie()(e.headline)||t.length>0||e.attachments.length>0||e.shareOfPostId;return e.attachments.find((e=>e.state!==C.s5.Pending&&e.attachmentId===Oe.Z))?Promise.reject("client:post-editor.broken-attachment"):n?Promise.resolve():Promise.reject("client:post-editor.must-contain-content")},validateAttachments:async(e,t)=>{if("SELECT_FILE"!==t.type)return Promise.reject({error:`Tried to validate attachments with invalid event ${t.type}`});const n=e.hasCohostPlus?e.sizeLimits.cohostPlus:e.sizeLimits.normal,r=t.file,i=(0,Te.Of)(Te.u_,r.type);if(!i.valid)return Promise.reject({error:"client:post-editor.attachment-must-be-image"});if(r.size>n){const t=e.hasCohostPlus?"client:post-editor.attachment-too-large-cohost-plus":"client:post-editor.attachment-too-large";return Promise.reject({error:t})}switch(i.kind){case"image":{let e={width:0,height:0};try{e=await(a=URL.createObjectURL(r),new Promise(((e,t)=>{const n=new Image;n.onload=()=>e({width:n.width,height:n.height}),n.onerror=e=>t(e),n.src=a})))}catch(e){}return Promise.resolve({file:r,kind:"image",metadata:{altText:"",...e}})}case"audio":return Promise.resolve({file:r,kind:"audio",metadata:{artist:"",title:""}})}var a},createPost:async e=>{let t=A.h.Unpublished;e.attachments.some((e=>e.state===C.s5.Pending))||(t=e.newPostState);const n=[];n.push(...e.attachments.map((e=>({type:"attachment",attachment:{attachmentId:e.attachmentId??Oe.Z,altText:"image"===e.kind?e.metadata.altText:void 0}})))),n.push(...e.markdownBlocks.map((e=>({...e,markdown:{content:e.markdown.content}}))).filter((e=>!!e.markdown.content)));const r={postState:t,headline:e.headline,adultContent:e.adultContent,blocks:n,cws:e.cws.filter((e=>e.length>0)).map((e=>e.trim())),tags:e.tags.filter((e=>e.length>0)).map((e=>e.trim())),shareOfPostId:e.shareOfPostId&&!isNaN(e.shareOfPostId)?e.shareOfPostId:void 0,responseToAskId:e.responseToAskId?e.responseToAskId:void 0},i=(0,Re.I)(),{postId:a}=await i.posts.create.mutate({projectHandle:e.projectHandle,content:r});return a},createAttachments:({attachments:e,postId:t,projectHandle:n})=>Promise.all(e.map((async e=>{if(e.state!==C.s5.Pending)return e;const{file:r}=e;if(!r)throw"tried to create an attachment without a file!";if(!t)throw new Error("Tried to upload attachment without post ID");const i=(0,Re.I)();switch(e.kind){case"image":return i.posts.attachment.start.mutate({projectHandle:n,postId:t,filename:r.name,contentType:r.type,contentLength:r.size,width:e.metadata.width,height:e.metadata.height});case"audio":return i.posts.attachment.start.mutate({projectHandle:n,postId:t,filename:r.name,contentType:r.type,contentLength:r.size,metadata:e.metadata})}}))),uploadFiles:({attachments:e})=>Promise.all(e.filter((e=>e.state===C.s5.Pending)).map((async(e,t,n)=>{if(!e.file||!e.uploadUrl)throw console.error(t,n.length,e.file,e.uploadUrl),new Error("Missing file or upload URL for pending attachment!");const r=new FormData;for(const t in e.requiredFields)r.append(t,e.requiredFields[t]);return r.append("file",e.file),r.append("Content-Type",e.file.type),await Ce().post(e.uploadUrl,r,{withCredentials:!1}),null}))),finishAttachments:({attachments:e,projectHandle:t,postId:n})=>{const r=(0,Re.I)();return Promise.all(e.map((async e=>{if(e.state!==C.s5.Pending)return{attachmentId:e.attachmentId,url:e.src};const{attachmentId:i}=e;if(!n||!i)throw new Error;return r.posts.attachment.finish.mutate({projectHandle:t,postId:n,attachmentId:i})})))},updatePost:async e=>{if(!e.postId)throw new Error;const t=[];t.push(...e.attachments.filter((e=>!!e.attachmentId)).map((e=>({type:"attachment",attachment:{attachmentId:e.attachmentId,altText:"image"===e.kind?e.metadata.altText:void 0}})))),t.push(...e.markdownBlocks.map((e=>({...e,markdown:{content:e.markdown.content}}))).filter((e=>!!e.markdown.content)));const n={postState:e.newPostState,headline:e.headline,adultContent:e.adultContent,blocks:t,cws:e.cws.filter((e=>e.length>0)).map((e=>e.trim())),tags:e.tags.filter((e=>e.length>0)).map((e=>e.trim())),shareOfPostId:e.shareOfPostId&&!isNaN(e.shareOfPostId)?e.shareOfPostId:void 0},r=(0,Re.I)();await r.posts.update.mutate({projectHandle:e.projectHandle,postId:e.postId,content:n})}},actions:{assignValidationErrorToContext:(0,Pe.f0)({validationErrors:(e,t)=>{const{fieldName:n,error:r}=t.data;return e.validationErrors={...e.validationErrors,[n]:r}}}),assignHeadline:(0,Pe.f0)({headline:(e,t)=>"HEADLINE_INPUT"!==t.type?e.headline:e.headline=t.headline.replace("\n"," ").slice(0,140),dirty:e=>e.dirty=!0}),assignAttachmentUploadData:(0,Pe.f0)({attachments:(e,t)=>{const n=t;return e.attachments=e.attachments.map(((e,t)=>n.data[t]?{...e,attachmentId:n.data[t].attachmentId,uploadUrl:n.data[t].url,requiredFields:n.data[t].requiredFields}:e))}}),removeAttachment:(0,Pe.f0)({attachments:(e,t)=>{if("REMOVE_ATTACHMENT"!==t.type)return e.attachments;const n=[...e.attachments];return n.splice(t.index,1),e.attachments=n},dirty:e=>e.dirty=!0})}});var Me=n(38934),De=n(40862),Fe=n(40196),je=n(8227),Be=n(76709),qe=n(91884),He=n(86379),ze=n(6553),Ue=n(51540),Ve=n(98074),$e=n(20182);const We=e=>e.context.markdownBlocks,Ge=e=>e.context.cws,Ze=e=>e.context.editingCws,Ke=e=>e.context.headline,Qe=e=>e.context.tags,Ye=e=>e.context.attachments,Je=(0,x.M)("editing"),Xe=(0,x.M)("posting.creatingPost"),et=(0,x.M)("posting.uploadingAttachments.startingAttachments"),tt=(0,x.M)("posting.uploadingAttachments.finishingAttachments");function nt(e){return e.state===C.s5.Finished&&e.attachmentId?S.vf.public.redirectToAttachment({attachmentId:e.attachmentId}).toString():e.file?URL.createObjectURL(e.file):S.vf.public.static.staticAsset({path:$e}).toString()}var rt=n(76051),it=n(65443),at=n.n(it),ot=n(46975),st=n(4337);const lt=r.createContext({}),ut=r.forwardRef(((e,t)=>{const n=(0,r.useContext)(lt),i=n.send,a=(0,_e.v)(n,Ye),[o,s]=(0,r.useState)(!1),l=(0,Ve.rA)(),u=(0,r.useMemo)((()=>{const e=[];return a.forEach(((t,n)=>{"image"===t.kind&&e.push({index:n,attachment:t,sourceURL:nt(t)})})),e}),[a]),[c,f]=(0,r.useState)(void 0),d=(0,r.useMemo)((()=>u.find((e=>e.index===c))),[u,c]);(0,r.useImperativeHandle)(t,(()=>({open(e){s(!0),f(e)}})),[]);const p=(0,r.useCallback)((e=>{void 0!==c&&i({type:"ALT_TEXT_INPUT",index:c,input:e.currentTarget.value})}),[c,i]),h=(0,r.useRef)(null),[m,g]=(0,r.useState)(null);return(0,r.useEffect)((()=>{o&&!0!==m?.open?m?.showModal():o||!0!==m?.open||m?.close()}),[m,o]),r.createElement("dialog",{ref:g,onClose:()=>{s(!1)},"data-theme":l.current,className:"co-themed-box co-attachment-composer cohost-shadow-light dark:cohost-shadow-dark h-max w-full max-w-prose flex-col gap-2 rounded-lg p-3 backdrop:bg-notBlack/90 open:flex"},r.createElement("div",{className:"flex flex-row justify-center gap-9"},u.map((e=>r.createElement("button",{key:e.index,onClick:()=>f(e.index)},r.createElement("img",{src:e.sourceURL,className:at()("h-[4.5rem] w-[4.5rem] object-cover",e.index===c?rt.tw`co-active border-4`:"opacity-50"),alt:e.attachment.metadata.altText}))))),r.createElement("label",null,r.createElement("p",{className:rt.tw`co-ui-text font-bold`},"image description"),r.createElement(st.D,{name:"alt-text",ref:h,minRows:1,onChange:p,className:"co-editable-body",value:d?.attachment.metadata.altText})),r.createElement(ot.k,{buttonSize:"regular",buttonColor:"post-box-filled",extraClasses:"self-end",onClick:()=>s(!1)},"done"))}));ut.displayName="AttachmentComposer";var ct=ut;const ft=r.createContext(void 0);var dt=n(70496),pt=n(61421),ht=n(33895),mt=n(64877),gt=n(88658);const vt=({onDelete:e})=>r.createElement(gt.OZ,{className:"absolute right-3 top-3 hidden h-6 cursor-pointer fill-cherry text-notWhite hover:fill-cherry-700 group-hover:block",onClick:e,scale:.7},r.createElement(mt.Z,null));var yt=n(74378),bt=n(96370),wt=n(19736);const kt=({attachment:e,canRemove:t,index:n})=>{if("audio"!==e.kind)throw"attempting to render a non-audio attachment as audio?";const i=(0,r.useContext)(lt),a=i.send,o=(0,_e.v)(i,Je),s=(0,_e.v)(i,Xe),l=(0,_e.v)(i,et),u=(0,_e.v)(i,tt),c=(0,r.useRef)(null),f=(0,r.useRef)(null),d=(0,r.useRef)(null),{togglePlayback:p,currentTime:h,isPlaying:m,totalDuration:g,seek:v}=(0,pt.S)(c),y=(0,r.useMemo)((()=>nt(e)),[e]),b="\n w-full rounded-lg border-2 bg-transparent \n read-only:bg-gray-700 border-gray-400 text-notWhite \n placeholder:text-gray-400 focus:border-notWhite\n ",w=(0,r.useCallback)((()=>{t&&void 0!==n&&a({type:"REMOVE_ATTACHMENT",index:n})}),[t,n,a]),k=(0,r.useCallback)((e=>{t&&void 0!==n&&f.current&&d.current&&a({type:"AUDIO_METADATA_INPUT",index:n,title:f.current.value,artist:d.current.value})}),[t,n,a]),_=(0,r.useMemo)((()=>e.metadata.title&&e.metadata.title.length>0?e.metadata.title:"(no title specified)"),[e]),E=(0,r.useMemo)((()=>e.metadata.artist&&e.metadata.artist.length>0?e.metadata.artist:"(no artist specified)"),[e]),x=(0,r.useMemo)((()=>o?m?"playing":"paused":e.state===C.s5.Finished?"uploading:finished":l||s?"uploading:starting":u?"uploading:finishing":"uploading:pending"),[e.state,s,u,l,o,m]);return r.createElement("figure",{className:"group relative w-full flex-initial"},r.createElement("audio",{src:y,preload:"metadata",className:"w-full p-2",ref:c}),r.createElement("div",{className:"flex flex-row"},r.createElement(yt.o,{mode:x,className:"flex-shrink-0 flex-grow",togglePlayback:p}),r.createElement("div",{className:"flex w-full flex-col bg-notBlack p-2"},t?r.createElement(r.Fragment,null,r.createElement(vt,{onDelete:w}),r.createElement("input",{className:at()(b,"mb-1"),type:"text",placeholder:"add title information",defaultValue:e.metadata.title,ref:f,onChange:k,disabled:!o}),r.createElement("input",{className:b,type:"text",name:"artist",placeholder:"add artist information",defaultValue:e.metadata.artist,ref:d,onChange:k,disabled:!o})):r.createElement(r.Fragment,null,r.createElement("div",null,_),r.createElement("div",{className:"text-xs"},E),r.createElement(bt.G,{currentTime:h,totalDuration:g,seek:v})))))};kt.displayName="AudioAttachmentPreview";const _t=r.memo((({attachment:e,canRemove:t,index:n,aspectRatio:i})=>{if("image"!==e.kind)throw"attempting to render a non-image attachment as an image?";const{t:a}=(0,xe.$G)(),o=(0,r.useContext)(lt),s=(0,r.useContext)(ft),l=o.send,u=(0,_e.v)(o,Je),c=(0,_e.v)(o,Xe),f=(0,_e.v)(o,et),d=(0,_e.v)(o,tt),p=(0,r.useCallback)((()=>{t&&void 0!==n&&l({type:"REMOVE_ATTACHMENT",index:n})}),[t,n,l]),h=(0,r.useMemo)((()=>e.state===C.s5.Finished?a("client:post-editor.attachment-state.finished","uploaded!"):f||c?a("client:post-editor.attachment-state.starting","starting..."):d?a("client:post-editor.attachment-state.finishing","finishing up..."):a("client:post-editor.attachment-state.pending","uploading...")),[e.state,c,d,f,a]),m=(0,r.useMemo)((()=>nt(e)),[e]),g=(0,r.useMemo)((()=>(e.metadata.altText??"").length>0?"edit description":"add description"),[e]);return r.createElement("div",{className:"group relative w-full flex-initial"},r.createElement("img",{src:m,className:"h-full w-full object-cover",style:{aspectRatio:i?`${i} / 1`:void 0},alt:e.metadata.altText}),t?r.createElement(r.Fragment,null,r.createElement(vt,{onDelete:p}),r.createElement(ot.k,{buttonSize:"small",buttonColor:"cherry",extraClasses:"absolute bottom-3 left-3",disabled:!u||!s?.current,onClick:()=>s?.current?.open(n)},g)):null,r.createElement("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-700 bg-opacity-80 text-notWhite "+(u?"hidden":"block")},h))}));_t.displayName="ImageAttachmentPreview";const Et=e=>{const t=({attachment:t,index:n,rowLength:i,aspectRatio:a})=>{switch(t.kind){case"image":return r.createElement(_t,{canRemove:e,index:n,attachment:t,key:t.attachmentId??n,aspectRatio:a});case"audio":return r.createElement(kt,{canRemove:e,index:n,attachment:t,key:t.attachmentId??n})}};return t.displayName="MagicPreviewAttachment",t};function xt(e){return e.kind}function Tt(e){return"image"===e.kind?{width:e.metadata.width,height:e.metadata.height}:void 0}const St=r.memo((({canRemove:e})=>{const t=(0,r.useContext)(lt),n=(0,_e.v)(t,Ye);return"v2"===(0,wt.i)(new Date).attachmentLayoutBehavior?r.createElement(ht.X_,{attachments:n,attachmentKind:xt,attachmentDimensions:Tt,renderOne:Et(e)}):r.createElement(ht.HP,{attachments:n,attachmentKind:xt,attachmentDimensions:Tt,renderOne:Et(e)})}));St.displayName="PreviewsFromAttachments";const Ct=(0,x.M)("editing"),Ot=e=>e.context.markdownBlocks.map((e=>e.markdown.content)).join("\n\n"),At=({textAreaRef:e})=>{const t=(0,r.useContext)(lt),{send:n}=t,{t:i}=(0,xe.$G)(),a=(0,_e.v)(t,Ct),o=(0,_e.v)(t,Ot),s=(0,r.useCallback)((({currentTarget:e})=>{n({type:"BODY_INPUT",body:e.value})}),[n]);return r.createElement(st.D,{onInput:s,disabled:!a,className:"co-editable-body w-full resize-none overflow-hidden border-none p-0 px-3 focus:ring-0",placeholder:i("client:post-editor.body-placeholder","post body (accepts markdown!)"),minRows:4,value:o,ref:e})};var It=r.forwardRef((function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"}))})),Nt=n(83797);const Pt=()=>{const e=(0,r.useContext)(lt),{send:t}=e,{t:n}=(0,xe.$G)(),i=(0,_e.v)(e,Je),a=(0,_e.v)(e,Ge),o=(0,_e.v)(e,Ze),s=(0,r.useCallback)((e=>{t({type:"CWS_INPUT",cws:e})}),[t]);return o?r.createElement(Nt.r,{TokenIcon:It,className:"co-editable-body w-full p-0 px-3 leading-none",tokens:a,setTokens:s,placeholder:n("client:post-editor.cws-placeholder","add content warnings"),disabled:!i,fieldName:"CW"}):null};var Rt=n(51412);const Lt=r.memo((()=>{const e=(0,r.useContext)(lt),{send:t}=e,{t:n}=(0,xe.$G)(),i=(0,r.useCallback)((({currentTarget:e})=>{t({type:"HEADLINE_INPUT",headline:e.value})}),[t]),a=(0,_e.v)(e,Ke),o=(0,_e.v)(e,Je);return r.createElement("div",{className:"flex w-full flex-row items-end justify-between gap-3"},r.createElement(st.D,{className:rt.tw`co-editable-body w-full flex-1 resize-none overflow-hidden break-words border-none p-0 px-3 font-atkinson text-xl font-bold focus:ring-0`,placeholder:n("client:post-editor.headline-placeholder","headline"),name:"headline",onInput:i,disabled:!o,minRows:1,value:a}),a.length>100?r.createElement("div",{className:"flex-none px-3 tabular-nums text-gray-500"},a.length,"/140"):null)}));Lt.displayName="HeadlineInput";var Mt=n(73969);const Dt=()=>{const e=(0,r.useContext)(lt),t=(0,_e.v)(e,Qe),n=(0,_e.v)(e,Je),{t:i}=(0,xe.$G)(),a=(0,r.useCallback)((t=>{e.send({type:"TAGS_INPUT",tags:t})}),[e]);return r.createElement(Nt.r,{className:"co-editable-body w-full p-0 px-3 leading-none",TokenIcon:Mt.Z,tokens:t,setTokens:a,placeholder:i("client:post-editor.tags-placeholder","#add tags"),disabled:!n,getSuggestions:!0,fieldName:"tag"})},Ft=e=>e.context.editingTransparentShare,jt=e=>e.context.shareOfPostId,Bt=e=>e.context.projectHandle,qt=({textAreaRef:e})=>{const t=(0,r.useContext)(lt),{send:n}=t,i=(0,_e.v)(t,Ft),a=(0,_e.v)(t,jt),o=(0,_e.v)(t,Bt),s=(0,r.useCallback)((e=>{e.forEach((e=>n({type:"SELECT_FILE",file:e})))}),[n]);return r.createElement(Rt.r,{handleFileDrop:s},r.createElement("div",{className:"flex flex-col gap-3 py-3"},i&&a?r.createElement(dt.v,{className:"!m-3 !w-auto",level:"post-box-info"},r.createElement("div",{className:rt.tw`co-prose prose prose-sm`},r.createElement("p",null,"Shares without content can't have content added after posting. You ",r.createElement("b",null,"can")," edit the tags."),r.createElement("p",null,"If you want, you can"," ",r.createElement("a",{href:S.ZP.public.project.composePost({projectHandle:o,shareOfPostId:a}).toString(),target:"_blank",rel:"noreferrer"},"share this post again")," ","and add your content there."))):r.createElement(r.Fragment,null,r.createElement(Lt,null),r.createElement(St,{canRemove:!0}),r.createElement(At,{textAreaRef:e})),r.createElement(Dt,null),r.createElement(Pt,null)))};var Ht=n(37070),zt=n(22233),Ut=n(77378),Vt=n(39975);const $t=()=>{const e=(0,r.useContext)(lt),t=(0,_e.v)(e,We),n=(0,_e.v)(e,Ke),i=(0,_e.v)(e,Qe),a=(0,r.useRef)(null),[o,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)(!1);(0,r.useEffect)((()=>{!l&&a.current&&(s(a.current.scrollHeight<=a.current.clientHeight),u(!0))}),[l]);const{t:c}=(0,xe.$G)(),f=(0,Me._c)(),d=(0,Ut.Z)((()=>(0,zt.e8)(t,new Date,{hasCohostPlus:f,renderingContext:"post"})),[t,f]);return r.createElement("div",{"data-post-composer-preview":!0},n?r.createElement("div",{className:"w-full p-3"},r.createElement("h1",{className:rt.tw`co-prose prose font-atkinson text-xl font-bold`},n)):null,r.createElement(St,{canRemove:!1}),d.loading?r.createElement("div",{className:rt.tw`co-ui-text`},"rendering..."):d.error?r.createElement("div",{className:rt.tw`co-ui-text`},d.error.message):r.createElement(Vt.y,{viewModel:{postId:0,blocks:t,astMap:d.value},skipCollapse:!0,effectiveDate:void 0}),i.length?r.createElement("div",{className:"w-full max-w-full p-3"},r.createElement("div",{ref:a,className:rt.tw`co-tags relative w-full overflow-y-hidden break-words leading-none ${o?"":"max-h-10"}`},r.createElement("div",null,i.map((e=>r.createElement("span",{className:"mr-2 inline-block text-sm",key:e},"#",e)))),o?null:r.createElement("div",{className:"absolute bottom-0 right-2 flex h-5"},r.createElement("span",{className:"co-from-body inline-block h-full bg-gradient-to-l pl-4"}),r.createElement("button",{onClick:()=>s(!o),className:"co-tags co-opaque inline-block cursor-pointer text-sm font-bold hover:underline"},c("client:post-preview.expand-tags","see all"))))):null)};var Wt=n(71860),Gt=n(58397),Zt=n(87239),Kt=n(68095),Qt=n(85626);function Yt(e,t){const[n,i]=(0,r.useState)((()=>{if("undefined"==typeof window)return t;try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.error(e),t}}));return[n,t=>{try{const r=t instanceof Function?t(n):t;i(r),"undefined"!=typeof window&&window.localStorage.setItem(e,JSON.stringify(r))}catch(e){console.log(e)}}]}const Jt=e=>{const t=(0,r.useContext)(lt),n=(0,Ve.rA)(),i=(0,_e.v)(t,Qe),[a,o]=Yt(`tag-recommendations/${e.stateId}`,{open:!1});return r.createElement("div",{className:rt.tw`co-themed-box w-full`,"data-theme":n.current},r.createElement(Gt.p,{defaultOpen:a.open},r.createElement(Gt.p.Button,{className:"co-accordion-header flex w-full max-w-prose flex-row rounded-lg px-3 py-1 ui-open:rounded-b-none"},(({open:t})=>(t!==a.open&&o({open:t}),r.createElement(r.Fragment,null,r.createElement("span",{className:"flex-1 text-left"},e.categoryTitle),r.createElement(me,{className:"h-6 self-center ui-open:rotate-180"}))))),r.createElement(Gt.p.Panel,{className:"co-accordion-body flex w-full max-w-prose flex-row flex-wrap gap-3 rounded-b-lg p-3"},r.createElement(r.Fragment,null,e.tags.map((e=>r.createElement(Qt.D,{key:e,TagIcon:Zt.Z,MouseoverTagIcon:Kt.Z,tagText:e,onClick:()=>{return n=e,void(-1===i.findIndex((e=>e.toLowerCase()===n.toLowerCase()))&&t.send({type:"TAGS_INPUT",tags:[...i,n]}));var n}})))))))},Xt=[],en=e=>e.context.validationErrors.size>0,tn=e=>e.context.validationErrors.size>0?Array.from(e.context.validationErrors):Xt,nn=(0,x.M)("posted"),rn=(0,x.M)("editing"),an=e=>0===e.context.cws.length,on=(0,x.M)({editing:{attachments:"waitingForUpload"}}),sn=e=>e.context.newPostState,ln=e=>e.context.projectHandle,un=e=>e.context.adultContent,cn=e=>e.context.dirty,fn=e=>e.context.postId,dn=e=>!(!e.context.shareOfPostId||e.context.headline||e.context.attachments.length||e.context.markdownBlocks.filter((e=>!!e.markdown.content)).length),pn=e=>e.context.editingTransparentShare,hn=r.forwardRef(((e,t)=>{const{initialAdultContent:n,project:i,shareOf:a,cws:o,tags:s,initialPost:l}=e,u=(0,Me._c)(),c=(0,Fe.N)().limits.attachmentSize,{activated:f}=(0,je.Pc)(),[d]=(0,r.useState)((()=>{const t={projectHandle:i.handle,isActivated:f,hasCohostPlus:u,sizeLimits:c};return l?(t.postId=l.postId,t.currentPostState=l.state,t.newPostState=l.state,t.adultContent=l.effectiveAdultContent,t.shareOfPostId=l.shareOfPostId,t.headline=l.headline,t.markdownBlocks=l.blocks.filter(O.E4),t.attachments=(0,O.WG)(l.blocks).map((e=>{switch(e.attachment.kind){case"audio":return{state:C.s5.Finished,attachmentId:e.attachment.attachmentId,kind:"audio",metadata:{artist:e.attachment.artist??"",title:e.attachment.title??""}};case"image":return{state:C.s5.Finished,attachmentId:e.attachment.attachmentId,kind:"image",metadata:{altText:e.attachment.altText??"",width:e.attachment.width??0,height:e.attachment.height??0}}}})),t.editingTransparentShare=!!l.transparentShareOfPostId,t.tags=l.tags,t.cws=l.cws,t.responseToAskId=l.responseToAskId??void 0):(a&&(t.shareOfPostId=a.postId),e.responseToAskId&&(t.responseToAskId=e.responseToAskId),s.length&&(t.tags=s),o.length&&(t.cws=o),t.adultContent=n),t})),[,,p]=(0,ke.e)(Le,{context:d,devTools:!1}),h=(0,_e.v)(p,nn),m=(0,_e.v)(p,sn),g=(0,_e.v)(p,ln),v=(0,_e.v)(p,cn),y=(0,_e.v)(p,fn);(0,De.Z)((()=>v)),(0,r.useImperativeHandle)(t,(()=>({attemptClose:()=>!v})),[v]),(0,r.useEffect)((()=>{if(h){if("function"==typeof e.finishedRedirect)return void e.finishedRedirect(y);"string"==typeof e.finishedRedirect?location.replace(e.finishedRedirect):m===A.h.Unpublished?location.replace(S.vf.public.project.unpublishedPosts()):location.replace(document.referrer)}}),[e.finishedRedirect,h,m,g,e,y]);const b=(0,r.useRef)();(0,r.useEffect)((()=>{const e=p.subscribe((e=>{if(e.matches("posting.startingUpload")&&!b.current){let e;switch(m){case A.h.Published:e="Posting...";break;case A.h.Unpublished:e="Saving..."}e&&(b.current=Ee.Am.loading(e))}if(e.matches("posted")){let e;switch(m){case A.h.Published:e="Posted!";break;case A.h.Unpublished:e="Draft saved!"}e&&Ee.Am.success(e,{id:b.current})}if(e.matches("postingFailed")){let e;switch(m){case A.h.Published:e="Couldn't post :(";break;case A.h.Unpublished:e="Couldn't save :("}e&&Ee.Am.error(e,{id:b.current})}}));return()=>{e.unsubscribe(),b.current=void 0}}),[p,m]);const w=(0,r.useRef)(null);return r.createElement(lt.Provider,{value:p},f?r.createElement(ft.Provider,{value:w},r.createElement(ct,{ref:w}),r.createElement(gn,{project:i,isModal:e.isModal,onClose:e.onClose})):r.createElement(mn,{isModal:e.isModal}))}));hn.displayName="PostComposer";const mn=r.memo((({isModal:e=!1})=>{const{t:t}=(0,xe.$G)(),n=(0,r.useContext)(lt),{send:i}=n,a=(0,_e.v)(n,rn);return r.createElement("div",{className:"cohost-shadow-light dark:cohost-shadow-dark prose mx-auto w-full max-w-full rounded-lg bg-notWhite p-3"},r.createElement("p",null,"Since your account isn't activated yet, you can share this post but can't add anything to it. You can read more about this on"," ",r.createElement("a",{href:"https://help.antisoftware.club/support/solutions/articles/62000224749-details-on-invites-and-the-restrictions-on-un-activated-accounts/",target:"_blank",rel:"noreferrer"},"our support site.")),r.createElement(ze.p,{as:"button",onClick:()=>i({type:"SUBMIT_POST"}),disabled:!a},"share post"))}));mn.displayName="UnactivatedPostComposer";const gn=r.memo((({project:e,isModal:t=!1,onClose:n})=>{const{t:i}=(0,xe.$G)(),a=(0,r.useContext)(lt),{send:o}=a,s=(0,Me._c)(),{projects:l}=(0,T.m)(),u=(0,_e.v)(a,en),c=(0,_e.v)(a,tn),f=(0,_e.v)(a,rn),d=(0,_e.v)(a,an),p=(0,_e.v)(a,on),h=(0,_e.v)(a,sn),m=(0,_e.v)(a,ln),g=(0,_e.v)(a,un),v=(0,_e.v)(a,dn),y=(0,_e.v)(a,pn),b=(0,r.useMemo)((()=>l.find((e=>e.handle===m))||e),[m,l,e]),w=b.frequentlyUsedTags,k=Wt.S.projects.listRecentlyUsedTags.useQuery({projectId:b.projectId}),_=(0,r.useCallback)((()=>{o({type:"TOGGLE_CWS_INPUT"})}),[o]),E=(0,r.useCallback)((e=>{o({type:"SET_POST_STATE",newPostState:e})}),[o]),x=[{postState:A.h.Published,string:i("client:post-editor.post-now","post now")},{postState:A.h.Unpublished,string:i("client:post-editor.save-as-draft","save draft")}],C=(0,r.useRef)(null),O=(0,Ve.rA)(),P=(0,r.useCallback)((e=>{if(console.log(C.current),C.current){const[t,n]=[C.current.selectionStart,C.current.selectionEnd];console.log(e),C.current.setRangeText(e.native??e.shortcodes,t,n,"end"),o({type:"BODY_INPUT",body:C.current.value})}}),[o]),R=(0,r.useCallback)((e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),o({type:"SUBMIT_POST"}))}),[o]),L=(0,r.useCallback)((e=>{const t=e.clipboardData?.items??[],n=Array.from(t).filter((e=>e.type.indexOf("image")>-1)).map((e=>e.getAsFile())).filter(I.$)[0];if(n)return console.log("file size:",n.size/1024/1024,"MB"),o({type:"SELECT_FILE",file:n}),void e.preventDefault()}),[o]);return(0,r.useEffect)((()=>(window.document.addEventListener("paste",L),()=>{window.document.removeEventListener("paste",L)})),[L]),r.createElement("div",{onKeyDown:R},r.createElement(Be.S,null,r.createElement(He.Z,null,u?r.createElement("div",{className:"mx-auto mb-6 max-w-lg border-2 border-red-700 bg-red-300 p-3 text-notBlack"},r.createElement("h1",{className:"text-lg font-bold"},i("client:post-editor.validation-errors","There were some errors:")),r.createElement("ul",{className:"list-inside list-disc"},c.map((([,e])=>r.createElement("li",{key:e},i(e)))))):null,r.createElement("div",{className:"flex flex-row justify-center gap-6"},r.createElement(Ue.t,{project:b,noLink:!0}),r.createElement("div",{className:"flex flex-1 flex-col gap-4"},r.createElement("article",{className:"co-themed-box co-post-box co-post-composer","data-theme":O.current},r.createElement("header",{className:"co-thread-header"},r.createElement("div",{className:"flex flex-row items-center gap-2"},r.createElement(Ue.t,{project:b,hideLock:!0,className:"h-8 w-8 lg:hidden",noLink:!0}),r.createElement("span",{className:rt.tw`co-ui-text relative font-atkinson font-bold`},r.createElement(N.R,{value:b.handle,onChange:e=>{o({type:"CHANGE_PROJECT",projectHandle:e})}},r.createElement(N.R.Button,{className:"font-atkinson font-bold","data-testId":"posting-as-project"},(({open:e})=>r.createElement(r.Fragment,null,b.handle," ",r.createElement(me,{className:"inline-block h-4 w-4 transition-transform "+(e?"rotate-180":"rotate-0")})))),r.createElement(N.R.Options,{className:"cohost-shadow-light absolute left-0 top-full z-10 mt-1 flex min-w-max flex-col divide-y divide-foreground-400 rounded-lg font-normal leading-none text-notWhite"},l.map((e=>r.createElement(N.R.Option,{key:e.handle,value:e.handle,className:"relative cursor-default select-none bg-foreground py-2 pl-8 pr-2 first:rounded-t-lg last:rounded-b-lg hover:bg-foreground-600"},(({selected:t})=>r.createElement(r.Fragment,null,r.createElement("span",{className:"block"},e.handle),t?r.createElement("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2"},r.createElement(ge.Z,{className:"h-4 w-4"})):null))))))))),r.createElement("div",{className:"flex flex-row items-center gap-2"},r.createElement("label",{className:"flex flex-row items-center gap-2"},r.createElement("span",{className:rt.tw`co-ui-text select-none`},i("client:post-editor.adult-content","18+ content?")),r.createElement("input",{type:"checkbox",name:"adultContent",className:rt.tw`rounded border-2 disabled:cursor-not-allowed`,checked:!v&&g,onChange:e=>o({type:"SET_ADULT_CONTENT",adultContent:e.currentTarget.checked}),disabled:v||!f})),t?r.createElement(ve.Z,{className:rt.tw`co-link-button h-6 w-6 cursor-pointer`,onClick:n}):null)),r.createElement("hr",{className:"co-hairline"}),r.createElement(he.Group,null,r.createElement(he.Panels,null,r.createElement(he.Panel,null,r.createElement(qt,{textAreaRef:C})),r.createElement(he.Panel,null,r.createElement($t,null))),r.createElement("hr",{className:"co-hairline"}),r.createElement("footer",{className:rt.tw`co-thread-footer w-full max-w-full rounded-b-lg p-3`},r.createElement("div",{className:"flex items-center justify-between"},r.createElement("div",{className:"flex items-center gap-1 md:gap-2"},r.createElement(qe.G,{onFilesPicked:e=>o({type:"SELECT_FILE",file:e[0]})},r.createElement("button",{disabled:!f||p||y,className:rt.tw`co-link-button disabled:cursor-not-allowed`,title:"attach images or audio"},r.createElement(ye,{className:"inline-block h-6"}))),r.createElement("button",{disabled:v||!f||!d,onClick:_,className:rt.tw`co-link-button disabled:cursor-not-allowed`,title:"add a content warning"},r.createElement(be.Z,{className:"inline-block h-6"})),r.createElement(Ht.K,{onSelectEmoji:P,disabled:!f,hasCohostPlus:!!s}),r.createElement("a",{href:S.vf.public.staticContent({slug:"markdown-reference"}).toString(),target:"_blank",rel:"noreferrer",className:rt.tw`co-link-button`,title:"markdown reference"},r.createElement(we.Z,{className:"inline-block h-6"}))),r.createElement(he.List,{className:rt.tw`co-tab-bar flex items-center rounded-lg text-sm leading-none`},r.createElement(he,{className:({selected:e})=>e?rt.tw`co-tab-bar co-active rounded-lg px-2 py-2 md:px-3`:"px-2 py-2 md:px-3"},i("client:post-editor.compose-tab","compose")),r.createElement(he,{className:({selected:e})=>e?rt.tw`co-tab-bar co-active rounded-lg px-2 py-2 md:px-3`:"px-2 py-2 md:px-3"},i("client:post-editor.preview-tab","preview"))),r.createElement("div",{className:"relative inline-flex items-stretch rounded-lg text-sm text-text"},r.createElement("button",{className:rt.tw`co-filled-button rounded-l-lg border-r border-r-gray-500 py-2 pl-2 pr-1 leading-none`,onClick:()=>o({type:"SUBMIT_POST"})},h===A.h.Published?i("client:post-editor.post-now","post now"):h===A.h.Unpublished?i("client:post-editor.save-as-draft","save draft"):null),r.createElement(N.R,{value:h,onChange:E},r.createElement(N.R.Button,null,(({open:e})=>r.createElement("div",{className:rt.tw`co-filled-button rounded-r-lg py-2 pl-1 pr-2 leading-none`},r.createElement(me,{className:"inline-block h-4 w-4 transition-transform "+(e?"rotate-180":"rotate-0")})))),r.createElement(N.R.Options,{className:"cohost-shadow-light absolute right-0 top-full mt-1 flex min-w-max flex-col divide-y divide-foreground-400 rounded-lg leading-none"},x.map((({postState:e,string:t})=>r.createElement(N.R.Option,{key:e,value:e,className:rt.tw`co-filled-button relative cursor-default select-none py-2 pl-8 pr-2 first:rounded-t-lg last:rounded-b-lg`},(({selected:e})=>r.createElement(r.Fragment,null,r.createElement("span",{className:"block"},t),e?r.createElement("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2"},r.createElement(ge.Z,{className:"h-4 w-4"})):null)))))))))))),w.length>0?r.createElement(Jt,{categoryTitle:"pinned tags",stateId:"pinned",tags:w}):null,k.data?.tags?r.createElement(Jt,{categoryTitle:"recently used tags",stateId:"recently-used",tags:k.data?.tags}):null,s?r.createElement("p",{className:"max-w-prose"},"As a cohost Plus! member, your attachment size upload limit is now 10mb! Go crazy, but keep in mind larger attachments might take a while to upload."):null)))))}));function vn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nArray.isArray(e)?e:[e];function _n(e,t){const n=[],{length:r}=e;for(let i=0;i{n={s:0,v:void 0,o:null,p:null},o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tn(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t,r=0,i=0,a={},o=e.pop();"object"==typeof o&&(a=o,o=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);const s={...n,...a},{memoize:l,memoizeOptions:u=[],argsMemoize:c=xn,argsMemoizeOptions:f=[],devModeChecks:d={}}=s,p=kn(u),h=kn(f),m=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),g=l((function(){return r++,o.apply(null,arguments)}),...p),v=c((function(){i++;const e=_n(m,arguments);return t=g.apply(null,e),t}),...h);return Object.assign(v,{resultFunc:o,memoizedResultFunc:g,dependencies:m,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:l,argsMemoize:c})};return Object.assign(r,{withTypes:()=>r}),r}var Sn=Tn(xn),Cn=Object.assign(((e,t=Sn)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>Cn}),On=Symbol.for("immer-nothing"),An=Symbol.for("immer-draftable"),In=Symbol.for("immer-state");function Nn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Pn=Object.getPrototypeOf;function Rn(e){return!!e&&!!e[In]}function Ln(e){return!!e&&(Dn(e)||Array.isArray(e)||!!e[An]||!!e.constructor?.[An]||Hn(e)||zn(e))}var Mn=Object.prototype.constructor.toString();function Dn(e){if(!e||"object"!=typeof e)return!1;const t=Pn(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Mn}function Fn(e,t){0===jn(e)?Reflect.ownKeys(e).forEach((n=>{t(n,e[n],e)})):e.forEach(((n,r)=>t(r,n,e)))}function jn(e){const t=e[In];return t?t.type_:Array.isArray(e)?1:Hn(e)?2:zn(e)?3:0}function Bn(e,t){return 2===jn(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qn(e,t,n){const r=jn(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function Hn(e){return e instanceof Map}function zn(e){return e instanceof Set}function Un(e){return e.copy_||e.base_}function Vn(e,t){if(Hn(e))return new Map(e);if(zn(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Dn(e)){if(!Pn(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[In];let r=Reflect.ownKeys(n);for(let t=0;t1&&(e.set=e.add=e.clear=e.delete=Wn),Object.freeze(e),t&&Object.entries(e).forEach((([e,t])=>$n(t,!0)))),e}function Wn(){Nn(2)}function Gn(e){return Object.isFrozen(e)}var Zn,Kn={};function Qn(e){const t=Kn[e];return t||Nn(0),t}function Yn(){return Zn}function Jn(e,t){t&&(Qn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Xn(e){er(e),e.drafts_.forEach(nr),e.drafts_=null}function er(e){e===Zn&&(Zn=e.parent_)}function tr(e){return Zn={drafts_:[],parent_:Zn,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nr(e){const t=e[In];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function rr(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[In].modified_&&(Xn(t),Nn(4)),Ln(e)&&(e=ir(t,e),t.parent_||or(t,e)),t.patches_&&Qn("Patches").generateReplacementPatches_(n[In].base_,e,t.patches_,t.inversePatches_)):e=ir(t,n,[]),Xn(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==On?e:void 0}function ir(e,t,n){if(Gn(t))return t;const r=t[In];if(!r)return Fn(t,((i,a)=>ar(e,r,t,i,a,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return or(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,a=!1;3===r.type_&&(i=new Set(t),t.clear(),a=!0),Fn(i,((i,o)=>ar(e,r,t,i,o,n,a))),or(e,t,!1),n&&e.patches_&&Qn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ar(e,t,n,r,i,a,o){if(Rn(i)){const o=ir(e,i,a&&t&&3!==t.type_&&!Bn(t.assigned_,r)?a.concat(r):void 0);if(qn(n,r,o),!Rn(o))return;e.canAutoFreeze_=!1}else o&&n.add(i);if(Ln(i)&&!Gn(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ir(e,i),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||or(e,i)}}function or(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$n(t,n)}var sr={get(e,t){if(t===In)return e;const n=Un(e);if(!Bn(n,t))return function(e,t,n){const r=cr(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!Ln(r)?r:r===ur(e.base_,t)?(dr(e),e.copy_[t]=pr(r,e)):r},has:(e,t)=>t in Un(e),ownKeys:e=>Reflect.ownKeys(Un(e)),set(e,t,n){const r=cr(Un(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=ur(Un(e),t),o=r?.[In];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||Bn(e.base_,t)))return!0;dr(e),fr(e)}var i,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==ur(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,dr(e),fr(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=Un(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){Nn(11)},getPrototypeOf:e=>Pn(e.base_),setPrototypeOf(){Nn(12)}},lr={};function ur(e,t){const n=e[In];return(n?Un(n):e)[t]}function cr(e,t){if(!(t in e))return;let n=Pn(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Pn(n)}}function fr(e){e.modified_||(e.modified_=!0,e.parent_&&fr(e.parent_))}function dr(e){e.copy_||(e.copy_=Vn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function pr(e,t){const n=Hn(e)?Qn("MapSet").proxyMap_(e,t):zn(e)?Qn("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Yn(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=sr;n&&(i=[r],a=lr);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(e,t);return(t?t.scope_:Yn()).drafts_.push(n),n}function hr(e){return Rn(e)||Nn(10),mr(e)}function mr(e){if(!Ln(e)||Gn(e))return e;const t=e[In];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Vn(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Vn(e,!0);return Fn(n,((e,t)=>{qn(n,e,mr(t))})),t&&(t.finalized_=!1),n}Fn(sr,((e,t)=>{lr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),lr.deleteProperty=function(e,t){return lr.set.call(this,e,t,void 0)},lr.set=function(e,t,n){return sr.set.call(this,e[0],t,n,e[0])};var gr=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...i){return r.produce(e,(e=>t.call(this,e,...i)))}}let r;if("function"!=typeof t&&Nn(6),void 0!==n&&"function"!=typeof n&&Nn(7),Ln(e)){const i=tr(this),a=pr(e,void 0);let o=!0;try{r=t(a),o=!1}finally{o?Xn(i):er(i)}return Jn(i,n),rr(r,i)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===On&&(r=void 0),this.autoFreeze_&&$n(r,!0),n){const t=[],i=[];Qn("Patches").generateReplacementPatches_(e,r,t,i),n(t,i)}return r}Nn(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;const i=this.produce(e,t,((e,t)=>{n=e,r=t}));return[i,n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ln(e)||Nn(8),Rn(e)&&(e=hr(e));const t=tr(this),n=pr(e,void 0);return n[In].isManual_=!0,er(t),n}finishDraft(e,t){const n=e&&e[In];n&&n.isManual_||Nn(9);const{scope_:r}=n;return Jn(r,t),rr(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=Qn("Patches").applyPatches_;return Rn(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},vr=gr.produce;function yr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}gr.produceWithPatches.bind(gr),gr.setAutoFreeze.bind(gr),gr.setUseStrictShallowCopy.bind(gr),gr.applyPatches.bind(gr),gr.createDraft.bind(gr),gr.finishDraft.bind(gr);var br=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),wr=()=>Math.random().toString(36).substring(7).split("").join("."),kr={INIT:`@@redux/INIT${wr()}`,REPLACE:`@@redux/REPLACE${wr()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wr()}`};function _r(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Er(e,t,n){if("function"!=typeof e)throw new Error(yr(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(yr(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(yr(1));return n(Er)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,l=!1;function u(){o===a&&(o=new Map,a.forEach(((e,t)=>{o.set(t,e)})))}function c(){if(l)throw new Error(yr(3));return i}function f(e){if("function"!=typeof e)throw new Error(yr(4));if(l)throw new Error(yr(5));let t=!0;u();const n=s++;return o.set(n,e),function(){if(t){if(l)throw new Error(yr(6));t=!1,u(),o.delete(n),a=null}}}function d(e){if(!_r(e))throw new Error(yr(7));if(void 0===e.type)throw new Error(yr(8));if("string"!=typeof e.type)throw new Error(yr(17));if(l)throw new Error(yr(9));try{l=!0,i=r(i,e)}finally{l=!1}return(a=o).forEach((e=>{e()})),e}function p(e){if("function"!=typeof e)throw new Error(yr(10));r=e,d({type:kr.REPLACE})}function h(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(yr(11));function n(){const e=t;e.next&&e.next(c())}return n(),{unsubscribe:e(n)}},[br](){return this}}}d({type:kr.INIT});const m={dispatch:d,subscribe:f,getState:c,replaceReducer:p,[br]:h};return m}function xr(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function Tr(e){return _r(e)&&"type"in e&&"string"==typeof e.type}function Sr(e){return({dispatch:t,getState:n})=>r=>i=>"function"==typeof i?i(t,n,e):r(i)}var Cr=Sr(),Or=Sr,Ar=(((...e)=>{const t=Tn(...e),n=Object.assign(((...e)=>{const n=t(...e),r=(e,...t)=>n(Rn(e)?hr(e):e,...t);return Object.assign(r,n),r}),{withTypes:()=>n})})(xn),"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?xr:xr.apply(null,arguments)}),Ir=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"==typeof e.match);function Nr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(_i(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Tr(t)&&t.type===e,n}function Pr(e,t){for(const n of e)if(t(n))return n}var Rr=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Lr(e){return Ln(e)?vr(e,(()=>{})):e}function Mr(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(_i(10));const r=n.insert(t,e);return e.set(t,r),r}var Dr=e=>t=>{setTimeout(t,e)},Fr="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Dr(10);function jr(e){const t={},n=[];let r;const i={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(_i(28));if(r in t)throw new Error(_i(29));return t[r]=n,i},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(r=e,i)};return e(i),[t,n,r]}var Br=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t};function qr(...e){return t=>e.some((e=>((e,t)=>Ir(e)?e.match(t):e(t))(e,t)))}var Hr=["name","message","stack","code"],zr=class{constructor(e,t){this.payload=e,this.meta=t}_type},Ur=class{constructor(e,t){this.payload=e,this.meta=t}_type},Vr=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Hr)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},$r=(()=>{function e(e,t,n){const r=Nr(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),i=Nr(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),a=Nr(e+"/rejected",((e,t,r,i,a)=>({payload:i,error:(n&&n.serializeError||Vr)(e||"Rejected"),meta:{...a||{},arg:r,requestId:t,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(o,s,l)=>{const u=n?.idGenerator?n.idGenerator(e):Br(),c=new AbortController;let f,d;function p(e){d=e,c.abort()}const h=async function(){let h;try{let a=n?.condition?.(e,{getState:s,extra:l});if(null!==(m=a)&&"object"==typeof m&&"function"==typeof m.then&&(a=await a),!1===a||c.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise(((e,t)=>{f=()=>{t({name:"AbortError",message:d||"Aborted"})},c.signal.addEventListener("abort",f)}));o(i(u,e,n?.getPendingMeta?.({requestId:u,arg:e},{getState:s,extra:l}))),h=await Promise.race([g,Promise.resolve(t(e,{dispatch:o,getState:s,extra:l,requestId:u,signal:c.signal,abort:p,rejectWithValue:(e,t)=>new zr(e,t),fulfillWithValue:(e,t)=>new Ur(e,t)})).then((t=>{if(t instanceof zr)throw t;return t instanceof Ur?r(t.payload,u,e,t.meta):r(t,u,e)}))])}catch(t){h=t instanceof zr?a(null,u,e,t.payload,t.meta):a(t,u,e)}finally{f&&c.signal.removeEventListener("abort",f)}var m;return n&&!n.dispatchConditionRejection&&a.match(h)&&h.meta.condition||o(h),h}();return Object.assign(h,{abort:p,requestId:u,arg:e,unwrap:()=>h.then(Wr)})}}),{pending:i,rejected:a,fulfilled:r,settled:qr(a,r),typePrefix:e})}return e.withTypes=()=>e,e})();function Wr(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var Gr=Symbol.for("rtk-slice-createasyncthunk");function Zr(e,t){return`${e}/${t}`}function Kr({creators:e}={}){const t=e?.asyncThunk?.[Gr];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(_i(11));const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(_i(12));if(n in o.sliceCaseReducersByType)throw new Error(_i(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(o.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?jr(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return function(e,t){let a,[s,l,u]=jr((e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)}));if("function"==typeof e)a=()=>Lr(e());else{const t=Lr(e);a=()=>t}function c(e=a(),t){let n=[s[t.type],...l.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===n.filter((e=>!!e)).length&&(n=[u]),n.reduce(((e,n)=>{if(n){if(Rn(e)){const r=n(e,t);return void 0===r?e:r}if(Ln(e))return vr(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(_i(9))}return r}}return e}),e)}return c.getInitialState=a,c}(e.initialState)}a.forEach((r=>{const a=i[r],o={reducerName:r,type:Zr(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:n},r,i){let a,o;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(_i(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Nr(e,o):Nr(e))}(o,a,s):function({type:e,reducerName:t},n,r,i){if(!i)throw new Error(_i(18));const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:u,options:c}=n,f=i(e,a,c);r.exposeAction(t,f),o&&r.addCase(f.fulfilled,o),s&&r.addCase(f.pending,s),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:o||Jr,pending:s||Jr,rejected:l||Jr,settled:u||Jr})}(o,a,s,t)}));const u=e=>e,c=new Map;let f;function d(e,t){return f||(f=l()),f(e,t)}function p(){return f||(f=l()),f.getInitialState()}function h(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=p()),r}function i(t=u){const r=Mr(c,n,{insert:()=>new WeakMap});return Mr(r,t,{insert:()=>{const r={};for(const[i,a]of Object.entries(e.selectors??{}))r[i]=Qr(a,t,p,n);return r}})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}const m={name:n,reducer:d,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:p,...h(r),injectInto(e,{reducerPath:t,...n}={}){const i=t??r;return e.inject({reducerPath:i,reducer:d},n),{...m,...h(i,!0)}}};return m}}function Qr(e,t,n,r){function i(i,...a){let o=t(i);return void 0===o&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var Yr=Kr();function Jr(){}var Xr="listener-cancelled",ei=class{constructor(e){this.code=e,this.message=`task cancelled (reason: ${e})`}name="TaskAbortError";message},ti=(e,t)=>{if("function"!=typeof e)throw new Error(_i(32))},ni=()=>{},ri=(e,t=ni)=>(e.catch(t),e),ii=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ai=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},oi=e=>{if(e.aborted){const{reason:t}=e;throw new ei(t)}};function si(e,t){let n=ni;return new Promise(((r,i)=>{const a=()=>i(new ei(e.reason));e.aborted?a():(n=ii(e,a),t.finally((()=>n())).then(r,i))})).finally((()=>{n=ni}))}var li=e=>t=>ri(si(e,t).then((t=>(oi(e),t)))),ui=e=>{const t=li(e);return e=>t(new Promise((t=>setTimeout(t,e))))},{assign:ci}=Object,fi={},di="listenerMiddleware",pi=(e,t)=>(n,r)=>{ti(n);const i=new AbortController;var a;a=i,ii(e,(()=>ai(a,e.reason)));const o=(async(t,r)=>{try{return await Promise.resolve(),{status:"ok",value:await(async()=>{oi(e),oi(i.signal);const t=await n({pause:li(i.signal),delay:ui(i.signal),signal:i.signal});return oi(i.signal),t})()}}catch(e){return{status:e instanceof ei?"cancelled":"rejected",error:e}}finally{ai(i,"task-completed")}})();return r?.autoJoin&&t.push(o.catch(ni)),{result:li(e)(o),cancel(){ai(i,"task-cancelled")}}},hi=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Nr(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(_i(21));return ti(a),{predicate:i,type:t,effect:a}},mi=Object.assign((e=>{const{type:t,predicate:n,effect:r}=hi(e);return{id:Br(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(_i(22))}}}),{withTypes:()=>mi}),gi=e=>{e.pending.forEach((e=>{ai(e,Xr)}))},vi=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout((()=>{throw e}),0)}},yi=Object.assign(Nr(`${di}/add`),{withTypes:()=>yi}),bi=Nr(`${di}/removeAll`),wi=Object.assign(Nr(`${di}/remove`),{withTypes:()=>wi}),ki=(...e)=>{console.error(`${di}/error`,...e)};function _i(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");var Ei=n(61888),xi=n.n(Ei);function Ti(e,t){if(!e)throw new Error("Invariant failed")}function Si(e){return"image-attachment"===e.type||"audio-attachment"===e.type}function Ci(e){return"image-attachment"===e.type}function Oi(){return(0,Ei.uniqueId)("node-")}function Ai(e){const t=e.text.split("\n\n").map((e=>({type:"markdown",markdown:{content:e}})));return{blocks:t,blocksForPreview:t}}function Ii(e){return{blocks:[{type:"attachment",attachment:{attachmentId:e.attachment.attachmentId??Oe.Z,altText:e.altText}}],blocksForPreview:[{type:"attachment",attachment:{altText:e.altText,width:e.width,height:e.height,attachmentId:e.attachment.attachmentId??Oe.Z,kind:"image",previewURL:e.sourceUrl,fileURL:e.sourceUrl}}]}}function Ni(e){return{blocks:[{type:"attachment",attachment:{attachmentId:e.attachment.attachmentId??Oe.Z}}],blocksForPreview:[{type:"attachment",attachment:{artist:e.artist,title:e.title,attachmentId:e.attachment.attachmentId??Oe.Z,kind:"audio",previewURL:e.sourceUrl,fileURL:e.sourceUrl}}]}}function Pi(e,t){const n={type:"attachment-row",attachments:[]},r={type:"attachment-row",attachments:[]};return e.attachments.forEach((e=>{let i=null;const a=t[e];if(a){switch(a.type){case"image-attachment":i=Ii(a);break;case"audio-attachment":i=Ni(a);break;default:return}i&&(n.attachments.push(...i.blocks.filter(O.Y1)),r.attachments.push(...i.blocksForPreview.filter(O.l7)))}})),{blocks:[n],blocksForPreview:[r]}}function Ri(e,t){return Object.values(t).find((t=>"attachment-row"===t.type&&t.attachments.includes(e)))?.nodeId??null}function Li(e){return e&&e.state===C.s5.Finished&&e.attachmentId?S.ZP.public.redirectToAttachment({attachmentId:e.attachmentId}).toString():e&&e.uploadData?e.uploadData.objectURL:S.ZP.public.static.staticAsset({path:$e}).toString()}function Mi(e){const t={attachmentId:e.attachment.attachmentId,state:C.s5.Finished,uploadState:"finished"};return"audio"===e.attachment.kind?{type:"audio-attachment",attachment:t,sourceUrl:Li(t),artist:e.attachment.artist??"",title:e.attachment.title??"",nodeId:Oi()}:"image"===e.attachment.kind?{type:"image-attachment",attachment:t,sourceUrl:Li(t),altText:e.attachment.altText??"",width:e.attachment.width??0,height:e.attachment.height??0,nodeId:Oi()}:void 0}function Di(e){const t={type:"attachment-row",attachments:[],nodeId:Oi()};for(const n of e)t.attachments.push(n.nodeId);return t}const Fi=((e={})=>{const t=new Map,{extra:n,onError:r=ki}=e;ti(r);const i=e=>{let n=Pr(Array.from(t.values()),(t=>t.effect===e.effect));return n||(n=mi(e)),(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&gi(e)}))(n)};Object.assign(i,{withTypes:()=>i});const a=e=>{const{type:n,effect:r,predicate:i}=hi(e),a=Pr(Array.from(t.values()),(e=>("string"==typeof n?e.type===n:e.predicate===i)&&e.effect===r));return a&&(a.unsubscribe(),e.cancelActive&&gi(a)),!!a};Object.assign(a,{withTypes:()=>a});const o=async(e,a,o,s)=>{const l=new AbortController,u=((e,t)=>(n,r)=>ri((async(n,r)=>{oi(t);let i=()=>{};const a=[new Promise(((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}}))];null!=r&&a.push(new Promise((e=>setTimeout(e,r,null))));try{const e=await si(t,Promise.race(a));return oi(t),e}finally{i()}})(n,r)))(i,l.signal),c=[];try{e.pending.add(l),await Promise.resolve(e.effect(a,ci({},o,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:ui(l.signal),pause:li(l.signal),extra:n,signal:l.signal,fork:pi(l.signal,c),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach(((e,t,n)=>{e!==l&&(ai(e,Xr),n.delete(e))}))},cancel:()=>{ai(l,Xr),e.pending.delete(l)},throwIfCancelled:()=>{oi(l.signal)}})))}catch(e){e instanceof ei||vi(r,e,{raisedBy:"effect"})}finally{await Promise.all(c),ai(l,"listener-completed"),e.pending.delete(l)}},s=(e=>()=>{e.forEach(gi),e.clear()})(t);return{middleware:e=>n=>l=>{if(!Tr(l))return n(l);if(yi.match(l))return i(l.payload);if(bi.match(l))return void s();if(wi.match(l))return a(l.payload);let u=e.getState();const c=()=>{if(u===fi)throw new Error(_i(23));return u};let f;try{if(f=n(l),t.size>0){const n=e.getState(),i=Array.from(t.values());for(const t of i){let i=!1;try{i=t.predicate(l,n,u)}catch(e){i=!1,vi(r,e,{raisedBy:"predicate"})}i&&o(t,l,e,c)}}}finally{u=fi}return f},startListening:i,stopListening:a,clearListeners:s}})(),ji=Fi.startListening.withTypes(),Bi=(yi.withTypes(),e=>e.body),qi=Sn([Bi],(e=>function(e){const t=[],n=[];for(const r of e.nodeOrder){let i=null;const a=e.nodes[r];if(a){switch(a.type){case"text":i=Ai(a);break;case"image-attachment":i=Ii(a);break;case"audio-attachment":i=Ni(a);break;case"attachment-row":i=Pi(a,e.nodes)}i&&(t.push(...i.blocks),n.push(...i.blocksForPreview))}}return{blocks:t,blocksForPreview:n}}(e))),Hi=Sn([Bi],(e=>{const t=[];return Object.values(e.nodes).forEach((e=>{Si(e)&&e.attachment.state===C.s5.Pending&&t.push(e.nodeId)})),t})),zi=$r("postComposer/submit/start",((e,t)=>{const n=t.getState().postComposer,{blocks:r}=qi(n),i=xi().some(r,(e=>(0,O.Y1)(e)||(0,O.tm)(e)&&e.attachments.length>0||(0,O.E4)(e)&&e.markdown.content.trim().length>0)),a=!Ie()(n.headline)||i||n.shareOfPostId;if(xi().some(Object.values(n.body.nodes),(e=>Si(e)&&e.attachment.state!==C.s5.Pending&&e.attachment.attachmentId===Oe.Z)))throw t.rejectWithValue("client:post-editor.broken-attachment");if(!a)throw t.rejectWithValue("client:post-editor.must-contain-content");const o=Hi(n);n.postId?o.length?o.forEach((e=>{t.dispatch(Vi({nodeId:e,postId:n.postId}))})):t.dispatch($i()):t.dispatch(Ui())})),Ui=$r("postComposer/submit/createPost",(async(e,t)=>{const n=t.getState().postComposer,{blocks:r}=qi(n);let i=A.h.Unpublished;0===Hi(n).length&&(i=n.newPostState);const a={postState:i,headline:n.headline,adultContent:n.adultContent,blocks:r,cws:n.cws.filter((e=>e.length>0)).map((e=>e.trim())),tags:n.tags.filter((e=>e.length>0)).map((e=>e.trim())),shareOfPostId:n.shareOfPostId&&!isNaN(n.shareOfPostId)?n.shareOfPostId:void 0,responseToAskId:n.responseToAskId?n.responseToAskId:void 0},o=(0,Re.I)();try{const e=(await o.posts.create.mutate({projectHandle:n.projectHandle,content:a})).postId,r=Hi(n);return r.length?(r.forEach((n=>{t.dispatch(Vi({nodeId:n,postId:e}))})),{postId:e,nextPostEditorState:"uploading"}):{postId:e,nextPostEditorState:"finished"}}catch(e){throw t.rejectWithValue("network error: posts.create")}})),Vi=$r("postComposer/submit/uploadAttachmentRegion",(async({nodeId:e,postId:t},n)=>{const r=n.getState().postComposer,i=r.body.nodes[e];if(!Si(i))throw n.rejectWithValue("internal error: attempting to upload a node that's not an attachment");const{attachment:{uploadData:a}}=i,o=(0,Re.I)();if(!a)throw n.rejectWithValue("internal error: trying to upload an attachment without a file!");let s;const l=await(await fetch(a.objectURL)).blob();try{switch(i.type){case"image-attachment":s=await o.posts.attachment.start.mutate({projectHandle:r.projectHandle,postId:t,filename:a.filename,contentType:a.contentType,contentLength:a.size,width:i.width,height:i.height});break;case"audio-attachment":s=await o.posts.attachment.start.mutate({projectHandle:r.projectHandle,postId:t,filename:a.filename,contentType:a.contentType,contentLength:a.size,metadata:{title:i.title,artist:i.artist}})}}catch(e){throw n.rejectWithValue("network error: posts.attachment.start")}if(!s.url)throw console.error(a,l,s.url),n.rejectWithValue("internal error: missing upload URL for pending attachment!");const u=new FormData;for(const e in s.requiredFields)u.append(e,s.requiredFields[e]);u.append("file",l),u.append("Content-Type",a.contentType);try{await Ce().post(s.url,u,{withCredentials:!1})}catch(e){throw n.rejectWithValue("network error: error uploading")}try{return await o.posts.attachment.finish.mutate({projectHandle:r.projectHandle,postId:t,attachmentId:s.attachmentId}),{attachmentId:s.attachmentId}}catch(e){throw n.rejectWithValue("network error: posts.attachment.finish")}})),$i=$r("postComposer/submit/updatePost",(async(e,t)=>{const n=t.getState().postComposer,r=(0,Re.I)(),{blocks:i}=qi(n),a={postState:n.newPostState,headline:n.headline,adultContent:n.adultContent,blocks:i,cws:n.cws.filter((e=>e.length>0)).map((e=>e.trim())),tags:n.tags.filter((e=>e.length>0)).map((e=>e.trim())),shareOfPostId:n.shareOfPostId&&!isNaN(n.shareOfPostId)?n.shareOfPostId:void 0};try{await r.posts.update.mutate({projectHandle:n.projectHandle,postId:n.postId,content:a})}catch(e){throw t.rejectWithValue("network error: posts.update")}})),Wi=[];function Gi(){const e={type:"text",text:"",nodeId:Oi()};return{nodes:{[e.nodeId]:e},nodeOrder:[e.nodeId]}}const Zi={state:"not-ready",siteConfig:Te.u_,projectHandle:"",isActivated:!1,hasCohostPlus:!1,currentPostState:void 0,headline:"",body:Gi(),validationErrors:{},newPostState:A.h.Published,shareOfPostId:null,responseToAskId:null,adultContent:!1,maximumAllowedAttachments:4,tags:[],cws:[],cwsInputOpen:!1,dirty:!1,editingTransparentShare:!1,mostRecentTextNode:null},Ki=Yr({name:"postComposer",initialState:Zi,reducers:e=>({initForNewPost(e,t){e.state="editing",e.projectHandle=t.payload.handle,e.isActivated=t.payload.isActivated,e.hasCohostPlus=t.payload.hasCohostPlus,e.siteConfig=t.payload.siteConfig,e.shareOfPostId=t.payload.shareOf,e.responseToAskId=t.payload.responseToAskId,e.body=Gi(),e.tags=t.payload.tags,e.cws=t.payload.cws},initForEditing(e,t){e.state="editing",e.projectHandle=t.payload.handle,e.isActivated=t.payload.isActivated,e.hasCohostPlus=t.payload.hasCohostPlus,e.siteConfig=t.payload.siteConfig;const n=t.payload.post;e.postId=n.postId,e.currentPostState=n.state,e.newPostState=n.state,e.adultContent=n.effectiveAdultContent,e.shareOfPostId=n.shareOfPostId,e.headline=n.headline,e.body=function(e){const t={},n=[];let r="",i=[];function a(){if(r.length>0){const e={type:"text",text:r,nodeId:Oi()};t[e.nodeId]=e,n.push(e.nodeId),r=""}}function o(){if(0!==i.length){if(i.forEach((e=>{t[e.nodeId]=e})),i.length%2==0)for(let e=0;e=3){const e=Di(i.splice(0,3));t[e.nodeId]=e,n.push(e.nodeId);for(let e=0;e0&&(r+="\n\n"),r+=s.markdown.content),(0,O.x2)(s)){a(),o();const e={type:"attachment-row",attachments:[],nodeId:Oi()};for(const n of s.attachments){const r=Mi(n);r&&(e.attachments.push(r.nodeId),t[r.nodeId]=r)}t[e.nodeId]=e,n.push(e.nodeId)}if((0,O.l7)(s)){a();const e=Mi(s);e&&(Ci(e)?i.push(e):(t[e.nodeId]=e,n.push(e.nodeId)))}}o();const s={type:"text",text:r,nodeId:Oi()};return t[s.nodeId]=s,n.push(s.nodeId),r="",{nodes:t,nodeOrder:n}}(n.blocks),e.editingTransparentShare=!!n.transparentShareOfPostId,e.tags=n.tags,e.cws=n.cws,e.responseToAskId=n.responseToAskId??null},updateTextRegion(e,t){const n=e.body.nodes[t.payload.nodeId];Ti("text"===n.type),n.text=t.payload.text,e.body.nodes[t.payload.nodeId]=n,e.dirty=!0,e.mostRecentTextNode=t.payload.nodeId},updateImageAltText(e,t){const n=e.body.nodes[t.payload.nodeId];if("image-attachment"!==n.type)throw`assertion failure: node at index ${t.payload.nodeId} is not image`;e.body.nodes[t.payload.nodeId]={...n,altText:t.payload.altText}},updateAudioMetadata(e,t){const n=e.body.nodes[t.payload.nodeId];if("audio-attachment"!==n.type)throw`assertion failure: node at index ${t.payload.nodeId} is not audio`;e.body.nodes[t.payload.nodeId]={...n,artist:t.payload.artist,title:t.payload.title}},insertNewTextAtSelection(e,t){const n=e.mostRecentTextNode;if(null===n)throw new Error("selection isn't inside a text region?");const r=e.body.nodes[n];if("text"!==r.type)throw new Error("unexpected selected region type?");const i=document.getSelection()?.anchorOffset;e.body.nodes[n]={type:"text",text:r.text.slice(0,i)+t.payload+r.text.slice(i),nodeId:n},e.dirty=!0,e.mostRecentTextNode=n},insertFile(e,t){function n(t){const n="image"===t.kind?{type:"image-attachment",attachment:t.attachment,sourceUrl:t.sourceUrl,altText:t.altText,width:t.width,height:t.height,nodeId:Oi()}:{type:"audio-attachment",attachment:t.attachment,sourceUrl:t.sourceUrl,artist:t.artist,title:t.title,nodeId:Oi()};e.body.nodes[n.nodeId]=n;const r=e.body.nodeOrder[t.position],i=e.body.nodes[r];if("image"===t.kind)if(i&&"attachment-row"===i.type&&i.attachments.length<3)i.attachments.push(n.nodeId);else{const r={type:"attachment-row",attachments:[n.nodeId],nodeId:Oi()};e.body.nodeOrder.splice(t.position,0,r.nodeId),e.body.nodes[r.nodeId]=r}else e.body.nodeOrder.splice(t.position,0,n.nodeId);delete e.validationErrors.attachments,e.dirty=!0}const r=e.hasCohostPlus?e.siteConfig.limits.attachmentSize.cohostPlus:e.siteConfig.limits.attachmentSize.normal;if(Object.values(e.body.nodes).filter(Si).length>=e.siteConfig.limits.attachmentCount)return void(e.validationErrors.attachments="client:post-editor.too-many-attachments");const i=t.payload.file,a=(0,Te.Of)(e.siteConfig,i.type);if(!a.valid)return void(e.validationErrors.attachments="client:post-editor.attachment-must-be-image");if(i.size>r){const t=e.hasCohostPlus?"client:post-editor.attachment-too-large-cohost-plus":"client:post-editor.attachment-too-large";return void(e.validationErrors.attachments=t)}const o=URL.createObjectURL(i);switch(a.kind){case"image":{const t={width:0,height:0},r={kind:"image",uploadData:{objectURL:o,filename:i.name,size:i.size,contentType:i.type},state:C.s5.Pending,uploadState:"not-started"};return void n({position:e.body.nodeOrder.findIndex((t=>{const n=e.body.nodes[t];return"attachment-row"===n.type&&n.attachments.length<3})),kind:"image",sourceUrl:o,attachment:r,altText:"",width:t.width,height:t.height})}case"audio":return void n({position:-1,kind:"audio",sourceUrl:o,attachment:{kind:"audio",uploadData:{objectURL:o,filename:i.name,size:i.size,contentType:i.type},state:C.s5.Pending,uploadState:"not-started"},artist:"",title:""})}},updateAttachmentDimensions(e,t){const n=e.body.nodes[t.payload.nodeId];if("image-attachment"!==n.type)throw new Error("expected image attachment node");e.body.nodes[t.payload.nodeId]={...n,width:t.payload.width,height:t.payload.height}},moveAttachmentToNewRow(e,t){const{attachmentNodeId:n,relativeNodeId:r,position:i}=t.payload;if("image-attachment"===e.body.nodes[n].type){const t=Ri(n,e.body.nodes);if(null===t)throw new Error("attachment not in a row");const a={type:"attachment-row",attachments:[n],nodeId:Oi()},o=e.body.nodeOrder.indexOf(r),s="before"===i?o:o+1;e.body.nodeOrder.splice(s,0,a.nodeId),e.body.nodes[a.nodeId]=a;const l=e.body.nodes[t];if(!l||"attachment-row"!==l.type)throw new Error("attachment not in a row");l.attachments=l.attachments.filter((e=>e!==n)),0===l.attachments.length&&(e.body.nodeOrder=e.body.nodeOrder.filter((e=>e!==t)),delete e.body.nodes[t])}else{const t=e.body.nodeOrder.indexOf(n),a=e.body.nodeOrder.indexOf(r),o="before"===i?a:a+1;e.body.nodeOrder=wn({list:e.body.nodeOrder,startIndex:t,finishIndex:o})}e.dirty=!0},moveAttachmentToExistingRow(e,t){const{attachmentNodeId:n,rowNodeId:r,positionInRow:i}=t.payload,a=Ri(n,e.body.nodes);if(null===a)throw new Error("attachment not in a row");if(a!==r){const t=e.body.nodes[a];if(!t||"attachment-row"!==t.type)throw new Error("attachment not in a row");t.attachments=t.attachments.filter((e=>e!==n)),0===t.attachments.length&&(e.body.nodeOrder=e.body.nodeOrder.filter((e=>e!==a)),delete e.body.nodes[a]);const o=e.body.nodes[r];if(!o||"attachment-row"!==o.type)throw new Error("attachment not in a row");o.attachments.splice(i,0,n)}else{const t=e.body.nodes[a];if(!t||"attachment-row"!==t.type)throw new Error("attachment not in a row");const r=wn({list:t.attachments,startIndex:t.attachments.indexOf(n),finishIndex:i});t.attachments=r}e.dirty=!0},deleteNodeAtIndex(e,t){const n=e.body.nodes[t.payload];if("attachment-row"===n.type){if(n.attachments.length>0)return}else if(Si(n)&&!e.body.nodeOrder.includes(t.payload))for(const n of e.body.nodeOrder){const r=e.body.nodes[n];if("attachment-row"===r.type&&r.attachments.includes(t.payload)){r.attachments=r.attachments.filter((e=>e!==t.payload));break}}e.body.nodeOrder=e.body.nodeOrder.filter((e=>e!==t.payload)),delete e.body.nodes[t.payload],e.dirty=!0},insertTextNodeAtEnd(e){const t={type:"text",text:"",nodeId:Oi()};e.body.nodes[t.nodeId]=t,e.body.nodeOrder.push(t.nodeId),e.dirty=!0},setActiveProject(e,t){e.projectHandle=t.payload},setAdultContent(e,t){e.adultContent=t.payload},setCws(e,t){e.cws=t.payload,e.dirty=!0},setHeadline(e,t){e.headline=t.payload.replace("\n"," ").slice(0,140),e.dirty=!0},setNewPostState(e,t){e.newPostState=t.payload,e.dirty=!0},setTags(e,t){e.tags=t.payload,e.dirty=!0},toggleCwsInputOpen(e){e.cws.length>0&&(e.cwsInputOpen=!0),e.cwsInputOpen=!e.cwsInputOpen},abandon:()=>({...Zi}),mergeTextNodes(e,t){const{firstNodeId:n}=t.payload,r=e.body.nodeOrder,i=r.indexOf(n)+1;if(i>=r.length)return;const a=e.body.nodes[n],o=e.body.nodes[r[i]];if("text"===a.type&&"text"===o.type){if(0===o.text.trim().length)return e.body.nodeOrder.splice(i,1),void delete e.body.nodes[o.nodeId];a.text+="\n\n"+o.text,e.body.nodeOrder.splice(i,1),delete e.body.nodes[o.nodeId]}},splitTextNodeAndInsertAttachment(e,t){const{textNodeId:n,attachmentNodeId:r,splitBlockIndex:i}=t.payload,a=e.body.nodes[n],o=e.body.nodes[r];if("text"!==a.type)throw new Error("can't split non-text node");if(!Si(o))throw new Error("can't split with non-attachment node");const s=a.text.trim().split("\n\n").map((e=>e.trim())),l=s.slice(0,i),u=s.slice(i);a.text=l.join("\n\n");const c={type:"text",text:u.join("\n\n"),nodeId:Oi()};if("image-attachment"===o.type){const t={type:"attachment-row",attachments:[r],nodeId:Oi()},i=Ri(r,e.body.nodes);if(i){const t=e.body.nodes[i];"attachment-row"===t.type&&(t.attachments=t.attachments.filter((e=>e!==r)),0===t.attachments.length&&(e.body.nodeOrder=e.body.nodeOrder.filter((e=>e!==i)),delete e.body.nodes[i]))}e.body.nodes[t.nodeId]=t,e.body.nodeOrder.splice(e.body.nodeOrder.indexOf(n)+1,0,t.nodeId,c.nodeId)}else e.body.nodeOrder=e.body.nodeOrder.filter((e=>e!==r)),e.body.nodeOrder.splice(e.body.nodeOrder.indexOf(n)+1,0,r,c.nodeId);e.body.nodes[c.nodeId]=c,e.dirty=!0}}),extraReducers:e=>{e.addCase(zi.pending,(e=>{e.state="uploading"})),e.addCase(zi.rejected,((e,t)=>{t.payload&&(e.validationErrors.app=t.payload),e.state="editing"})),e.addCase(zi.fulfilled,(e=>{e.state="editing",e.dirty=!1})),e.addCase(Ui.rejected,((e,t)=>{t.payload&&(e.validationErrors.app=t.payload),e.state="failed"})),e.addCase(Ui.fulfilled,((e,t)=>{e.postId=t.payload.postId,e.state=t.payload.nextPostEditorState})),e.addCase(Vi.rejected,((e,t)=>{t.payload&&(e.validationErrors.app=t.payload),e.state="failed"})),e.addCase(Vi.fulfilled,((e,t)=>{const n=t.meta.arg.nodeId,r=e.body.nodes[n];e.body.nodes[n]={...r,attachment:{...r.attachment,attachmentId:t.payload.attachmentId,state:C.s5.Finished,uploadState:"finished"}}})),e.addCase($i.rejected,((e,t)=>{t.payload&&(e.validationErrors.app=t.payload),e.state="failed"})),e.addCase($i.fulfilled,(e=>{e.state="finished"})),ji({actionCreator:Vi.fulfilled,effect:(e,t)=>{const n=t.getState().postComposer;0==Hi(n).length&&t.dispatch($i())}}),ji({predicate:(e,t)=>Object.values(t.postComposer.body.nodes).some((e=>"attachment-row"===e.type&&0===e.attachments.length)),effect:(e,t)=>{const n=t.getState().postComposer;Object.values(n.body.nodes).filter((e=>"attachment-row"===e.type&&0===e.attachments.length)).map((e=>e.nodeId)).forEach((e=>t.dispatch(Ji(e))))}}),ji({predicate:(e,t)=>{const n=t.postComposer.body.nodeOrder;return n.some(((e,r)=>{if(r===n.length-1)return!1;const i=t.postComposer.body.nodes[e],a=t.postComposer.body.nodes[n[r+1]];return"text"===i.type&&"text"===a.type}))},effect:(e,t)=>{const n=t.getState().postComposer,r=n.body.nodeOrder,i=r.find(((e,t)=>{if(t===r.length-1)return!1;const i=n.body.nodes[e],a=n.body.nodes[r[t+1]];return"text"===i.type&&"text"===a.type}));i&&t.dispatch(ma({firstNodeId:i}))}}),ji({predicate:(e,t)=>{const n=t.postComposer.body.nodes[t.postComposer.body.nodeOrder[t.postComposer.body.nodeOrder.length-1]];return!!n&&"text"!==n.type},effect:(e,t)=>{t.dispatch(ha())}}),ji({actionCreator:Xi,effect:async(e,t)=>{t.cancelActiveListeners();const n=t.getState().postComposer,r=Object.values(n.body.nodes).filter((e=>!("image-attachment"!==e.type||e.width&&e.height)));await Promise.all(r.map((async e=>{if(!e.attachment.uploadData?.objectURL)return;const n=await(r=e.attachment.uploadData?.objectURL,new Promise(((e,t)=>{const n=new Image;n.onload=()=>e({width:n.width,height:n.height}),n.onerror=e=>t(e),n.src=r})));var r;t.dispatch(va({nodeId:e.nodeId,width:n.width,height:n.height}))})))}})},selectors:{selectAdultContent:e=>e.adultContent,selectAttachmentNodeIdsToUpload:Hi,selectBody:e=>e.body,selectCreatingTransparentShare:e=>{const{blocks:t}=qi(e);return!!e.shareOfPostId&&!e.headline&&!t.length},selectCws:e=>e.cws,selectCwsButtonEnabled:e=>!e.cwsInputOpen||0==e.cws.length,selectCwsInputOpen:e=>e.cwsInputOpen,selectDirty:e=>e.dirty,selectEditingTransparentShare:e=>e.editingTransparentShare,selectErrors:e=>xi().size(e.validationErrors)>0?xi().values(e.validationErrors):Wi,selectHasErrors:e=>xi().size(e.validationErrors)>0,selectHasPosted:e=>"finished"===e.state,selectHeadline:e=>e.headline,selectIsEditing:e=>"editing"===e.state,selectMaxAttachmentsChosen:e=>xi().filter(e.body.nodes,(e=>Si(e))).length>=e.maximumAllowedAttachments,selectNewPostState:e=>e.newPostState,selectPostId:e=>e.postId,selectProjectHandle:e=>e.projectHandle,selectRenderedPost:qi,selectShareOfPostId:e=>e.shareOfPostId,selectTags:e=>e.tags}}),{initForNewPost:Qi,initForEditing:Yi,deleteNodeAtIndex:Ji,insertFile:Xi,insertNewTextAtSelection:ea,moveAttachmentToExistingRow:ta,setActiveProject:na,setAdultContent:ra,setCws:ia,setHeadline:aa,setNewPostState:oa,setTags:sa,toggleCwsInputOpen:la,updateAudioMetadata:ua,updateImageAltText:ca,updateTextRegion:fa,abandon:da,moveAttachmentToNewRow:pa,insertTextNodeAtEnd:ha,mergeTextNodes:ma,splitTextNodeAndInsertAttachment:ga,updateAttachmentDimensions:va}=Ki.actions,{selectAdultContent:ya,selectBody:ba,selectCreatingTransparentShare:wa,selectCws:ka,selectCwsButtonEnabled:_a,selectCwsInputOpen:Ea,selectDirty:xa,selectEditingTransparentShare:Ta,selectErrors:Sa,selectHasErrors:Ca,selectHasPosted:Oa,selectHeadline:Aa,selectIsEditing:Ia,selectMaxAttachmentsChosen:Na,selectNewPostState:Pa,selectPostId:Ra,selectProjectHandle:La,selectRenderedPost:Ma,selectShareOfPostId:Da,selectTags:Fa}=Ki.selectors;Ki.reducer;const ja=()=>{const{t:e}=(0,xe.$G)(),t=m(Ia),n=m(ka),i=m(Ea),a=E(),o=(0,r.useCallback)((e=>{a(ia(e))}),[a]);return i?r.createElement(Nt.r,{TokenIcon:It,className:"co-editable-body w-full p-0 px-3 leading-none",tokens:n,setTokens:o,placeholder:e("client:post-editor.cws-placeholder","add content warnings"),disabled:!t,fieldName:"CW"}):null},Ba=E,qa=m,Ha=r.memo((()=>{const e=Ba(),{t:t}=(0,xe.$G)(),n=(0,r.useCallback)((({currentTarget:t})=>{e(aa(t.value))}),[e]),i=qa(Aa),a=qa(Ia);return r.createElement("div",{className:"flex w-full flex-row items-end justify-between gap-3"},r.createElement(st.D,{className:rt.tw`co-editable-body w-full flex-1 resize-none overflow-hidden break-words border-none p-0 px-3 font-atkinson text-xl font-bold focus:ring-0`,placeholder:t("client:post-editor.headline-placeholder","headline"),name:"headline",onInput:n,disabled:!a,minRows:1,value:i}),i.length>100?r.createElement("div",{className:"flex-none px-3 tabular-nums text-gray-500"},i.length,"/140"):null)}));Ha.displayName="HeadlineInput";const za=()=>{const e=Ba(),t=qa(Fa),n=qa(Ia),{t:i}=(0,xe.$G)(),a=(0,r.useCallback)((t=>{e(sa(t))}),[e]);return r.createElement(Nt.r,{className:"co-editable-body w-full p-0 px-3 leading-none",TokenIcon:Mt.Z,tokens:t,setTokens:a,placeholder:i("client:post-editor.tags-placeholder","#add tags"),disabled:!n,getSuggestions:!0,fieldName:"tag"})},Ua=(0,r.forwardRef)(((e,t)=>{const n=qa(ba),i=Ba(),[a,o]=(0,r.useState)(!1),s=(0,Ve.rA)(),[l,u]=(0,r.useState)(null),c=l?n.nodes[l]:null;(0,r.useImperativeHandle)(t,(()=>({open(e){o(!0),u(e)}})),[]);const f=(0,r.useCallback)((e=>{l&&i(ca({nodeId:l,altText:e.currentTarget.value}))}),[l,i]),[d,p]=(0,r.useState)(null);(0,r.useEffect)((()=>{a&&!0!==d?.open?d?.showModal():a||!0!==d?.open||d?.close()}),[d,a]);const h=(0,r.useMemo)((()=>{const e=[];return Object.values(n.nodes).forEach(((t,n)=>{Ci(t)&&e.push({node:t,index:n})})),e}),[n]);return r.createElement("dialog",{ref:p,onClose:()=>{o(!1)},"data-theme":s.current,className:"co-themed-box co-attachment-composer cohost-shadow-light dark:cohost-shadow-dark h-max w-full max-w-prose flex-col gap-2 rounded-lg p-3 backdrop:bg-notBlack/90 open:flex"},r.createElement("div",{className:"flex flex-row justify-center gap-9"},h.map((({index:e,node:t})=>r.createElement("button",{key:t.nodeId,onClick:()=>u(t.nodeId)},r.createElement("img",{src:t.sourceUrl,className:at()("h-[4.5rem] w-[4.5rem] object-cover",t.nodeId===l?rt.tw`co-active border-4`:"opacity-50"),alt:t.altText}))))),r.createElement("label",null,r.createElement("p",{className:rt.tw`co-ui-text font-bold`},"image description"),r.createElement(st.D,{name:"alt-text",minRows:1,onChange:f,className:"co-editable-body",value:c?.altText})),r.createElement(ot.k,{buttonSize:"regular",buttonColor:"post-box-filled",extraClasses:"self-end",onClick:()=>o(!1)},"done"))}));Ua.displayName="AttachmentComposer";var Va=Ua;const $a=r.createContext(void 0);function Wa(e){return Wa="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},Wa(e)}function Ga(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Wa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==Wa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"===Wa(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function To(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=a.length)return s;for(var l=So(a),u=So(s),c=[],f=0;fe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}(e);try{for(s.s();!(o=s.n()).done;)n(o.value)}catch(e){s.e(e)}finally{s.f()}}if(t){for(var l=0,u=Array.from(t.active);l0||(r.unmount(),wo.delete(e.typeKey))};var e,r},dropTarget:o.dropTargetForConsumers,monitor:a.monitorForConsumers}}var Po=ro((function(){return navigator.userAgent.toLocaleLowerCase().includes("android")})),Ro="pdnd:android-fallback",Lo="text/plain",Mo="application/vnd.pdnd",Do=new WeakMap,Fo=No({typeKey:"element",defaultDropEffect:"move",mount:function(e){return(0,to.ak)(document,{type:"dragstart",listener:function(t){var n,r,i,a,o,s;if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var l=t.target;if(!(l instanceof HTMLElement))return null;var u=Do.get(l);if(!u)return null;var c=co(t),f={element:u.element,dragHandle:null!==(n=u.dragHandle)&&void 0!==n?n:null,input:c};if(u.canDrag&&!u.canDrag(f))return t.preventDefault(),null;if(u.dragHandle){var d=document.elementFromPoint(c.clientX,c.clientY);if(!u.dragHandle.contains(d))return t.preventDefault(),null}var p=null!==(r=null===(i=u.getInitialDataForExternal)||void 0===i?void 0:i.call(u,f))&&void 0!==r?r:null;if(p)for(var h=0,m=Object.entries(p);h{const t=Ba(),n=qa(ba),i=n.nodes[e],a=n.nodeOrder.indexOf(e);if("text"!==i.type)throw new Error("node ID doesn't map to a text node");const o=(0,r.useRef)(null),s=(0,r.useRef)(null),[l,u]=(0,r.useState)(null),[c,f]=(0,r.useState)(!1),d=n.nodeOrder[n.nodeOrder.length-1]===e,{t:p}=(0,xe.$G)(),h=(0,r.useMemo)((()=>i.text.trim().split("\n\n").map((e=>e.trim()))),[i.text]);(0,r.useEffect)((()=>{const t=s.current;return Ti(t),eo(jo({element:t,getData:({input:n})=>Ja(Ho({nodeId:e,nodeType:"text"}),{allowedEdges:["bottom","top"],input:n,element:t}),onDrop({source:{data:e},location:t,self:n}){u(null),f(!1)},onDrag({self:t,source:n,location:r}){const i=n.data;zo(i)&&(f(!0),i.nodeId===e&&u(null))},onDragLeave(){f(!1),u(null)}}))}),[h.length,t,e,a]);const m=(0,r.useMemo)((()=>r.createElement("div",{className:(c?"":"invisible")+" co-editable-body absolute top-0 flex\n w-full resize-none flex-col gap-6 overflow-x-hidden whitespace-pre-wrap break-words border-none px-3 pb-2"},h.map(((t,n)=>r.createElement(Wo,{block:t,index:n,numNodes:h.length,key:n,nodeId:e}))))),[h,c,e]),g=(0,r.useCallback)((e=>{const n=e.clipboardData?.items??[],r=Array.from(n).filter((e=>e.type.indexOf("image")>-1)).map((e=>e.getAsFile())).filter(I.$)[0];if(r)return t(Xi({atPosition:a+1,file:r})),void e.preventDefault()}),[t,a]);return r.createElement("div",{className:"relative",ref:s},r.createElement(st.D,{onInput:function(n){t(fa({nodeId:e,text:n.target.value}))},className:(c?"invisible":"")+" co-editable-body w-full resize-none overflow-hidden border-none\n p-0 px-3 focus:ring-0",placeholder:p("client:post-editor.body-placeholder","post body (accepts markdown!)"),minRows:d?4:1,value:i.text,ref:o,onPaste:g}),m)},Wo=({block:e,index:t,nodeId:n,numNodes:i})=>{const a=Ba(),o=(0,r.useRef)(null),[s,l]=(0,r.useState)(null);return(0,r.useEffect)((()=>{const e=o.current;return Ti(e),jo({element:e,getIsSticky:()=>!0,getData:({input:t})=>Ja({},{allowedEdges:["bottom","top"],input:t,element:e}),onDrag({self:e,source:t,location:n}){if(!zo(t.data))return;const r=Xa(e.data);l(r)},onDragLeave(){l(null)},onDrop({source:{data:e},self:r}){if(l(null),!zo(e))return;const o=Xa(r.data);"top"!==o&&"bottom"!==o||a("top"===o&&0===t||"bottom"===o&&t===i-1?pa({attachmentNodeId:e.nodeId,relativeNodeId:n,position:"top"===o?"before":"after"}):ga({attachmentNodeId:e.nodeId,splitBlockIndex:"top"===o?t:t+1,textNodeId:n}))}})}),[a,t,n,i]),r.createElement("div",{"data-blockindex":t,className:"relative",ref:o},s&&r.createElement(Vo,{edge:s,gap:"4px"}),e)};function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",Go({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M10 1V19M10 1L7.54545 3.45455M10 1L12.4545 3.45455M10 19L7.54545 16.5455M10 19L12.4545 16.5455M19 10H1M19 10L16.5455 7.54545M19 10L16.5455 12.4545M1 10L3.45455 7.54545M1 10L3.45455 12.4545",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),Ko=r.memo((({nodeId:e,aspectRatio:t})=>{const n=Ba(),i=qa(ba).nodes[e];if("image-attachment"!==i.type)throw new Error(`node ${e} isn't image attachment?`);const a=qa(Ia),o=(0,r.useContext)($a),{t:s}=(0,xe.$G)(),l=(0,r.useRef)(null),u=(0,r.useMemo)((()=>(Ti("image-attachment"===i.type),a?{mode:"none"}:i.attachment.state===C.s5.Finished?{mode:"uploading",displayString:s("client:post-editor.attachment-state.finished","uploaded!")}:"starting"===i.attachment.uploadState?{mode:"uploading",displayString:s("client:post-editor.attachment-state.starting","starting...")}:"finishing"===i.attachment.uploadState?{mode:"uploading",displayString:s("client:post-editor.attachment-state.finishing","finishing up...")}:{mode:"uploading",displayString:s("client:post-editor.attachment-state.pending","uploading...")})),[i.type,i.attachment.state,i.attachment.uploadState,a,s,false]),[c,f]=(0,r.useState)(null),[d,p]=(0,r.useState)("none");(0,r.useEffect)((()=>(Ti(l.current),eo(Bo({element:l.current,getInitialData:()=>Ho({nodeId:e,nodeType:"image-attachment"}),onDragStart(){p("dragging")},onDrop(){p("none")}}),jo({element:l.current,getIsSticky:()=>!0,getData:({input:t})=>(Ti(l.current),Ja(Ho({nodeId:e,nodeType:"image-attachment"}),{element:l.current,input:t,allowedEdges:["left","right"]})),onDrag({self:t,source:n}){const r=n.data;if(!zo(r))return;if(r.nodeId===e)return void f(null);const i=Xa(t.data);f(i)},onDragLeave(){f(null)},onDrop(){f(null)}})))),[e]);const h=(0,r.useMemo)((()=>(Ti("image-attachment"===i.type),Li(i.attachment))),[i.attachment,i.type]),m=(0,r.useMemo)((()=>(Ti("image-attachment"===i.type),i.altText.length>0?"edit description":"add description")),[i.altText.length,i.type]),g=at()("group relative w-full flex-initial",{"co-selected-block ring-2":false});return r.createElement("div",{className:g},c&&r.createElement(Vo,{edge:c,gap:"4px"}),r.createElement("img",{src:h,className:"no-touch-callout h-full w-full object-cover "+("dragging"===d?"opacity-10":""),style:{aspectRatio:t?`${t} / 1`:void 0},alt:i.altText,ref:l}),null!==e?r.createElement(r.Fragment,null,r.createElement(vt,{onDelete:()=>{n(Ji(e))}}),r.createElement(ot.k,{buttonSize:"small",buttonColor:"cherry",extraClasses:"absolute bottom-3 left-3",disabled:!a||!o?.current,onClick:()=>o?.current?.open(e)},m)):null,r.createElement("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-700 bg-opacity-80 text-notWhite "+("none"!==u.mode?"block":"hidden")},"uploading"===u.mode?u.displayString:r.createElement("div",{className:"flex flex-col items-center"},r.createElement(Zo,{className:"m-auto h-8 w-8 text-notWhite"}),s("client:post-editor.drag-to-move","drag to move"))))}));Ko.displayName="ImageAttachmentEditor";const Qo=({nodeId:e})=>{const t=Ba(),n=qa(Ia),i=qa(ba),a=i.nodes[e],o=i.nodeOrder.indexOf(e);if("audio-attachment"!==a.type)throw new Error(`region ${e} isn't audio attachment?`);const s=Li(a.attachment),l=(0,r.useRef)(null),u=(0,r.useRef)(null),c=(0,r.useRef)(null),{togglePlayback:f,isPlaying:d}=(0,pt.S)(l),p="\n w-full rounded-lg border-2 bg-transparent \n read-only:bg-gray-700 border-gray-400 text-notWhite \n placeholder:text-gray-400 focus:border-notWhite\n ",h=(0,r.useCallback)((n=>{u.current&&c.current&&t(ua({nodeId:e,title:u.current.value,artist:c.current.value}))}),[t,e]),m=(0,r.useMemo)((()=>(Ti("audio-attachment"===a.type),n?d?"playing":"paused":a.attachment.state===C.s5.Finished?"uploading:finished":"starting"===a.attachment.uploadState?"uploading:starting":"finishing"===a.attachment.uploadState?"uploading:finishing":"uploading:pending")),[a.type,a.attachment.state,a.attachment.uploadState,n,d]),g=(0,r.useCallback)((()=>{t(Ji(e))}),[e,t]),v=at()("group relative w-full flex-initial",{"co-selected-block ring-2":!1}),y=(0,r.useRef)(null),b=(0,r.useRef)(null),[w,k]=(0,r.useState)(null),[_,E]=(0,r.useState)("none");return(0,r.useEffect)((()=>{const n=b.current;return Ti(n),eo(Bo({element:n,getInitialData:()=>Ho({nodeId:e,nodeType:"audio-attachment"}),onDragStart(){E("dragging")},onDrop(){E("none")},dragHandle:y.current??void 0}),jo({element:n,getIsSticky:()=>!0,getData:({input:t})=>(Ti(b.current),Ja(Ho({nodeId:e,nodeType:"audio-attachment"}),{allowedEdges:["bottom","top"],input:t,element:b.current})),onDrop({source:{data:n},location:r,self:i}){if(console.log("we droppin",n),k(null),!zo(n))return;const a=Xa(i.data);"top"!==a&&"bottom"!==a||t(pa({attachmentNodeId:n.nodeId,relativeNodeId:e,position:"top"===a?"before":"after"}))},onDrag({self:t,source:n}){const r=n.data;if(!zo(r))return;if(r.nodeId===e)return void k(null);const i=Xa(t.data);console.log("closest edge",i),k(i)},onDragLeave(){k(null)}}))}),[t,a,e,o]),r.createElement("figure",{className:v,ref:b},w&&r.createElement(Vo,{edge:w,gap:"4px"}),r.createElement("audio",{src:s,preload:"metadata",className:"w-full p-2",ref:l}),r.createElement("div",{className:"flex flex-row"},r.createElement("div",{className:"flex flex-col gap-1"},r.createElement("div",{className:"flex w-[76px] basis-1/2 items-center bg-cherry",title:"move this attachment",ref:y},r.createElement(Zo,{className:"m-auto h-8 w-8 text-notWhite"})),r.createElement(yt.o,{mode:m,className:"basis-1/2",togglePlayback:f})),r.createElement("div",{className:"flex w-full flex-col bg-notBlack p-2"},r.createElement(vt,{onDelete:g}),r.createElement("input",{className:at()(p,"mb-1"),type:"text",placeholder:"add title information",defaultValue:a.title,ref:u,onChange:h,disabled:!n}),r.createElement("input",{className:p,type:"text",name:"artist",placeholder:"add artist information",defaultValue:a.artist,ref:c,onChange:h,disabled:!n}))))};function Yo(e){if("image-attachment"===e.type)return{width:e.width,height:e.height};e.type}Qo.displayName="AudioAttachmentEditor";const Jo=({nodeId:e})=>{const t=Ba(),n=qa(ba),i=n.nodes,a=i[e],o=n.nodeOrder.indexOf(e);if("attachment-row"!==a.type)throw new Error(`region ${e} isn't attachment row?`);const s=(0,r.useRef)(null),[l,u]=(0,r.useState)(null);(0,r.useEffect)((()=>{const n=s.current;return Ti(n),eo(jo({element:n,getIsSticky:()=>!0,getData:({input:t})=>(Ti(s.current),Ja(Ho({nodeId:e,nodeType:"attachment-row"}),{allowedEdges:["bottom","top"],input:t,element:s.current})),onDrop({source:{data:n},location:r,self:i}){if(u(null),!zo(n))return;const o=r.current.dropTargets.find((e=>{if(!zo(e.data)||e.data.nodeId===n.nodeId)return!1;const t=Xa(e.data);return"left"===t||"right"===t}));if(o){if(!zo(o.data))return;const r=Xa(o.data),i=a.attachments.indexOf(o.data.nodeId),s="left"===r?Math.max(i-1,0):i+1;return void t(ta({attachmentNodeId:n.nodeId,rowNodeId:e,positionInRow:s}))}const s=Xa(i.data);"top"!==s&&"bottom"!==s||t(pa({attachmentNodeId:n.nodeId,relativeNodeId:e,position:"top"===s?"before":"after"}))},onDrag({self:t,source:n,location:r}){const i=n.data;if(!zo(i))return;if(i.nodeId===e)return void u(null);const a=Xa(t.data),o=r.current.dropTargets.some((t=>{if(!zo(t.data))return!1;const n=Ho(t.data);return n.nodeId!==e&&(n.nodeId!==i.nodeId&&null!==Xa(t.data))}));u(o?null:a)},onDragLeave(){u(null)}}))}),[t,a.attachments,e,o]);const c=(0,r.useMemo)((()=>{const e=a.attachments.map((e=>i[e])).filter(I.$).filter(Si);if(0===e.length)return;const t=e.reduce(((e,t)=>{const n=Yo(t),r=e?Yo(e):void 0;return n&&(!r||n.height*n.width>r.height*r.width)?t:e})),n=t?Yo(t):void 0;let r;return e.length>1&&(r=n&&n.width&&n.height?n.width/n.height:16/9),r}),[i,a.attachments]);return r.createElement("div",{className:"relative flex items-center justify-between",ref:s},l&&r.createElement(Vo,{edge:l,gap:"4px"}),a.attachments.map((e=>{const t=i[e];return"image-attachment"===t.type?r.createElement(Ko,{key:e,nodeId:e,aspectRatio:c}):"audio-attachment"===t.type?r.createElement(Qo,{key:e,nodeId:e}):void 0})))},Xo=e=>{Ba();const t=qa(ba),n=(0,r.useRef)(null),i=t.nodeOrder.map((e=>{const n=t.nodes[e];return"text"===n.type?r.createElement($o,{key:e,nodeId:e}):"image-attachment"===n.type?r.createElement(Ko,{key:e,nodeId:e}):"audio-attachment"===n.type?r.createElement(Qo,{key:e,nodeId:e}):"attachment-row"===n.type?r.createElement(Jo,{key:e,nodeId:e}):void 0}));return r.createElement("div",{className:"flex flex-col gap-3",ref:n},i)};function es(e){var t=e.type,n=e.value;return t!==Mo&&(t!==Lo||n!==Ro)}var ts=!1,ns=No({typeKey:"external",defaultDropEffect:"copy",mount:function(e){return(0,to.ak)(window,{type:"dragenter",listener:function(t){if(!ts&&t.dataTransfer&&e.canStart(t)&&(a={dragEnter:t}.dragEnter,o=a.type,s=a.relatedTarget,"dragenter"===o&&(ao()?function(e){var t=e.dragEnter;return!!ao()&&t.hasOwnProperty(oo.isEnteringWindow)}({dragEnter:a}):null==s||(io()?so(s):s instanceof HTMLIFrameElement)))){var n,r=(n=t.dataTransfer,Array.from(n.types).filter((function(e){return es({type:e,value:n.getData(e)})})));if(r.length){var i={types:r,items:[],getStringData:function(){return null}};e.start({event:t,dragType:{type:"external",startedFrom:"external",payload:i,getDropPayload:function(e){if(!e.dataTransfer)return i;var t,n=(t=e.dataTransfer,Array.from(t.items).filter((function(e){return"file"===e.kind||es({type:e.type,value:t.getData(e.type)})}))),a=e.dataTransfer.getData.bind(e.dataTransfer);return{types:r,items:n,getStringData:function(e){if(!r.includes(e))return null;var t=a(e);return es({type:e,value:t})?t:null}}}}})}}var a,o,s}})}});function rs(e){return e.source.types.includes("Files")}!function(){if("undefined"!=typeof window){ns.registerUsage();var e={type:"idle"},t=e;(0,to.ak)(window,{type:"dragstart",listener:function(){"idle"===t.type&&(ts=!0,t={type:"dragging",cleanup:(0,to.Ev)(window,[{type:"dragend",listener:n}].concat(no(lo({onDragEnd:n}))),{capture:!0})})},options:{capture:!0}})}function n(){"dragging"===t.type&&(ts=!1,t.cleanup(),t=e)}}();const is=()=>{const{t:e}=(0,xe.$G)(),t=qa(Ta),n=qa(Da),i=qa(La),a=(0,r.useContext)($a),[o,s]=(0,r.useState)(!1),l=(0,r.useRef)(null),u=Ba();return(0,r.useEffect)((()=>{const e=l.current;return Ti(e),t={element:e,canDrop:rs,onDrop({source:e,self:t}){const n={source:e}.source.items.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()})).filter((function(e){return null!=e}));0!==n.length&&(s(!1),u(Xi({file:n[0],atPosition:0})))},onDrag(){s(!0)},onDragLeave(){s(!1)}},ns.dropTarget(t);var t}),[u]),r.createElement("div",{className:"relative",ref:l},r.createElement("div",{className:`absolute inset-0 flex items-center justify-center\n bg-gray-700 bg-opacity-70 text-notWhite ${o?"block":"hidden"} z-50\n backdrop-blur-sm`},"RELEASE TO DROP"),r.createElement("div",{className:"flex flex-col gap-3 py-3"},t&&n?r.createElement(dt.v,{className:"!m-3 !w-auto",level:"post-box-info"},r.createElement("div",{className:rt.tw`co-prose prose prose-sm`},r.createElement("p",null,"Shares without content can't have content added after posting. You ",r.createElement("b",null,"can")," edit the tags."),r.createElement("p",null,"If you want, you can"," ",r.createElement("a",{href:S.ZP.public.project.composePost({projectHandle:i,shareOfPostId:n}).toString(),target:"_blank",rel:"noreferrer"},"share this post again")," ","and add your content there."))):r.createElement(r.Fragment,null,r.createElement(Ha,null),r.createElement(Xo,null),r.createElement(Va,{ref:a})),r.createElement(za,null),r.createElement(ja,null)))},as=()=>{const{blocksForPreview:e}=qa(Ma),t=qa(Aa),n=qa(Fa),i=(0,r.useRef)(null),[a,o]=(0,r.useState)(!1),[s,l]=(0,r.useState)(!1);(0,r.useEffect)((()=>{!s&&i.current&&(o(i.current.scrollHeight<=i.current.clientHeight),l(!0))}),[s]);const{t:u}=(0,xe.$G)(),c=(0,Me._c)(),f=(0,Ut.Z)((()=>(0,zt.e8)(e,new Date,{hasCohostPlus:c,renderingContext:"post"})),[e,c]);return r.createElement("div",{"data-post-composer-preview":!0},t?r.createElement("div",{className:"w-full p-3"},r.createElement("h1",{className:rt.tw`co-prose prose font-atkinson text-xl font-bold`},t)):null,f.loading?r.createElement("div",{className:rt.tw`co-ui-text`},"rendering..."):f.error?r.createElement("div",{className:rt.tw`co-ui-text`},f.error.message):r.createElement(Vt.y,{viewModel:{postId:0,blocks:e,astMap:f.value},skipCollapse:!0,effectiveDate:void 0}),n.length?r.createElement("div",{className:"w-full max-w-full p-3"},r.createElement("div",{ref:i,className:rt.tw`co-tags relative w-full overflow-y-hidden break-words leading-none ${a?"":"max-h-10"}`},r.createElement("div",null,n.map((e=>r.createElement("span",{className:"mr-2 inline-block text-sm",key:e},"#",e)))),a?null:r.createElement("div",{className:"absolute bottom-0 right-2 flex h-5"},r.createElement("span",{className:"co-from-body inline-block h-full bg-gradient-to-l pl-4"}),r.createElement("button",{onClick:()=>o(!a),className:"co-tags co-opaque inline-block cursor-pointer text-sm font-bold hover:underline"},u("client:post-preview.expand-tags","see all"))))):null)},os=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{};let a=new Rr;return t&&("boolean"==typeof t?a.push(Cr):a.push(Or(t.extraArgument))),a},{reducer:n,middleware:r,devTools:i=!0,preloadedState:a,enhancers:o}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!_r(n))throw new Error(_i(1));s=function(e){const t=Object.keys(e),n={};for(let r=0;r{const n=e[t];if(void 0===n(void 0,{type:kr.INIT}))throw new Error(yr(12));if(void 0===n(void 0,{type:kr.PROBE_UNKNOWN_ACTION()}))throw new Error(yr(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const o={};for(let i=0;i(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(yr(15))};const o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map((e=>e(o)));return a=xr(...s)(i.dispatch),{...i,dispatch:a}}}(...l),f=(e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Rr(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,o=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?Fr:"callback"===e.type?e.queueNotification:Dr(e.timeout),u=()=>{o=!1,a&&(a=!1,s.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>i&&e()));return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.RTK_autoBatch,a=!i,a&&(o||(o=!0,l(u))),r.dispatch(e)}finally{i=!0}}})})("object"==typeof n?n:void 0)),r})(c);return Er(s,a,u(..."function"==typeof o?o(f):f()))}({reducer:{[Ki.reducerPath]:Ki.reducer},middleware:e=>e().prepend(Fi.middleware)}),ss=yi.withTypes(),ls=e=>{const t=(0,Ve.rA)(),n=qa(Fa),i=Ba(),[a,o]=Yt(`tag-recommendations/${e.stateId}`,{open:!1});return r.createElement("div",{className:rt.tw`co-themed-box w-full`,"data-theme":t.current},r.createElement(Gt.p,{defaultOpen:a.open},r.createElement(Gt.p.Button,{className:"co-accordion-header flex w-full max-w-prose flex-row rounded-lg px-3 py-1 ui-open:rounded-b-none"},(({open:t})=>(t!==a.open&&o({open:t}),r.createElement(r.Fragment,null,r.createElement("span",{className:"flex-1 text-left"},e.categoryTitle),r.createElement(me,{className:"h-6 self-center ui-open:rotate-180"}))))),r.createElement(Gt.p.Panel,{className:"co-accordion-body flex w-full max-w-prose flex-row flex-wrap gap-3 rounded-b-lg p-3"},r.createElement(r.Fragment,null,e.tags.map((e=>r.createElement(Qt.D,{key:e,TagIcon:Zt.Z,MouseoverTagIcon:Kt.Z,tagText:e,onClick:()=>{return t=e,void(-1===n.findIndex((e=>e.toLowerCase()===t.toLowerCase()))&&i(sa([...n,t])));var t}})))))))},us=r.forwardRef(((e,t)=>{const{initialAdultContent:n,project:i,shareOf:a,cws:o,tags:s,initialPost:l}=e,u=(0,r.useContext)(Fe.F),c=(0,Me._c)(),{activated:f}=(0,je.Pc)(),d=qa(Oa),p=qa(Pa),h=qa(La),m=qa(xa),g=qa(Ra),v=Ba();(0,r.useEffect)((()=>(v(l?Yi({handle:i.handle,isActivated:f,hasCohostPlus:c,siteConfig:u,post:l}):Qi({handle:i.handle,isActivated:f,hasCohostPlus:c,siteConfig:u,shareOf:a?a.postId:null,responseToAskId:e.responseToAskId??null,tags:s,cws:o,adultContent:n})),()=>{v(da())})),[]),(0,De.Z)((()=>m)),(0,r.useImperativeHandle)(t,(()=>({attemptClose:()=>!m})),[m]),(0,r.useEffect)((()=>{if(d){if("function"==typeof e.finishedRedirect)return void e.finishedRedirect(g);"string"==typeof e.finishedRedirect?location.replace(e.finishedRedirect):p===A.h.Unpublished?location.replace(S.vf.public.project.unpublishedPosts()):location.replace(document.referrer)}}),[e.finishedRedirect,d,p,h,e,g]);const y=(0,r.useRef)();(0,r.useEffect)((()=>{const e=v(ss({predicate:(e,t)=>"uploading"===t.postComposer.state||"finished"===t.postComposer.state||"failed"===t.postComposer.state,effect:(e,t)=>{const n=t.getState();if("uploading"===n.postComposer.state&&!y.current){let e;switch(p){case A.h.Published:e="Posting...";break;case A.h.Unpublished:e="Saving..."}e&&(y.current=Ee.ZP.loading(e))}if("finished"===n.postComposer.state){let e;switch(p){case A.h.Published:e="Posted!";break;case A.h.Unpublished:e="Draft saved!"}e&&Ee.ZP.success(e,{id:y.current})}if("failed"===n.postComposer.state){let e;switch(p){case A.h.Published:e="Couldn't post :(";break;case A.h.Unpublished:e="Couldn't save :("}e&&Ee.ZP.error(e,{id:y.current})}}}));return()=>{e(),y.current=void 0}}),[p]);const b=(0,r.useRef)(null);return f?r.createElement($a.Provider,{value:b},r.createElement(fs,{project:i,isModal:e.isModal,onClose:e.onClose})):r.createElement(cs,{isModal:e.isModal})}));us.displayName="PostComposer";const cs=r.memo((({isModal:e=!1})=>{const{t:t}=(0,xe.$G)(),n=Ba(),i=qa(Ia);return r.createElement("div",{className:"cohost-shadow-light dark:cohost-shadow-dark prose mx-auto w-full max-w-full rounded-lg bg-notWhite p-3"},r.createElement("p",null,"Since your account isn't activated yet, you can share this post but can't add anything to it. You can read more about this on"," ",r.createElement("a",{href:"https://help.antisoftware.club/support/solutions/articles/62000224749-details-on-invites-and-the-restrictions-on-un-activated-accounts/",target:"_blank",rel:"noreferrer"},"our support site.")),r.createElement(ze.p,{as:"button",onClick:()=>n(zi()),disabled:!i},"share post"))}));cs.displayName="UnactivatedPostComposer";const fs=r.memo((({project:e,isModal:t=!1,onClose:n})=>{const{t:i}=(0,xe.$G)(),a=(0,Me._c)(),{projects:o}=(0,T.m)(),s=Ba(),l=qa(Ca),u=qa(Sa),c=qa(Ia),f=qa(_a),d=qa(Na),p=qa(Pa),h=qa(La),m=qa(ya),g=qa(wa),v=qa(Ta),y=(0,r.useMemo)((()=>o.find((e=>e.handle===h))||e),[h,o,e]),b=y.frequentlyUsedTags,w=Wt.S.projects.listRecentlyUsedTags.useQuery({projectId:y.projectId}),k=(0,r.useCallback)((()=>{s(la())}),[s]),_=(0,r.useCallback)((e=>{s(oa(e))}),[s]),E=[{postState:A.h.Published,string:i("client:post-editor.post-now","post now")},{postState:A.h.Unpublished,string:i("client:post-editor.save-as-draft","save draft")}],x=(0,Ve.rA)(),C=(0,r.useCallback)((e=>{s(ea(e.native??e.shortcodes))}),[s]),O=(0,r.useCallback)((e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),s(zi()))}),[s]);return r.createElement("div",{onKeyDown:O},r.createElement(Be.S,null,r.createElement("div",{className:"mb-6 lg:pl-[5.5rem]"},r.createElement(dt.v,{level:"post-box-info",className:"max-w-prose",textSize:"base"},r.createElement("div",{className:"co-prose prose prose-sm"},r.createElement("h4",null,"welcome to the new post editor!"),r.createElement("p",null,"the new editor lets you drag and drop images and audio attachments around to arrange your post however you want without needing to use HTML!"),r.createElement("p",null,"it's currently in beta, so please let us know if you run into any issues. if you'd like to turn it off, you can do it under the \"preview features\" section in"," ",r.createElement("a",{href:S.vf.public.userSettings().toString()},"your settings"),".")))),l?r.createElement("div",{className:"mx-auto mb-6 max-w-lg border-2 border-red-700 bg-red-300 p-3 text-notBlack"},r.createElement("h1",{className:"text-lg font-bold"},i("client:post-editor.validation-errors","There were some errors:")),r.createElement("ul",{className:"list-inside list-disc"},u.map((e=>r.createElement("li",{key:e},i(e)))))):null,r.createElement("div",{className:"flex flex-row justify-center gap-6"},r.createElement(Ue.t,{project:y,noLink:!0}),r.createElement("div",{className:"flex flex-1 flex-col gap-4"},r.createElement("article",{className:"co-themed-box co-post-box co-post-composer","data-theme":x.current},r.createElement("header",{className:"co-thread-header"},r.createElement("div",{className:"flex flex-row items-center gap-2"},r.createElement(Ue.t,{project:y,hideLock:!0,className:"h-8 w-8 lg:hidden",noLink:!0}),r.createElement("span",{className:rt.tw`co-ui-text relative font-atkinson font-bold`},r.createElement(N.R,{value:y.handle,onChange:e=>{s(na(e))}},r.createElement(N.R.Button,{className:"font-atkinson font-bold"},(({open:e})=>r.createElement(r.Fragment,null,y.handle," ",r.createElement(me,{className:"inline-block h-4 w-4 transition-transform "+(e?"rotate-180":"rotate-0")})))),r.createElement(N.R.Options,{className:"cohost-shadow-light absolute left-0 top-full z-10 mt-1 flex min-w-max flex-col divide-y divide-foreground-400 rounded-lg font-normal leading-none text-notWhite"},o.map((e=>r.createElement(N.R.Option,{key:e.handle,value:e.handle,className:"relative cursor-default select-none bg-foreground py-2 pl-8 pr-2 first:rounded-t-lg last:rounded-b-lg hover:bg-foreground-600"},(({selected:t})=>r.createElement(r.Fragment,null,r.createElement("span",{className:"block"},e.handle),t?r.createElement("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2"},r.createElement(ge.Z,{className:"h-4 w-4"})):null))))))))),r.createElement("div",{className:"flex flex-row items-center gap-2"},r.createElement("label",{className:"flex flex-row items-center gap-2"},r.createElement("span",{className:rt.tw`co-ui-text select-none`},i("client:post-editor.adult-content","18+ content?")),r.createElement("input",{type:"checkbox",name:"adultContent",className:rt.tw`rounded border-2 disabled:cursor-not-allowed`,checked:!g&&m,onChange:e=>s(ra(e.currentTarget.checked)),disabled:g||!c})),t?r.createElement(ve.Z,{className:rt.tw`co-link-button h-6 w-6 cursor-pointer`,onClick:n}):null)),r.createElement("hr",{className:"co-hairline"}),r.createElement(he.Group,null,r.createElement(he.Panels,null,r.createElement(he.Panel,{unmount:!1},r.createElement(is,null)),r.createElement(he.Panel,null,r.createElement(as,null))),r.createElement("hr",{className:"co-hairline"}),r.createElement("footer",{className:rt.tw`co-thread-footer w-full max-w-full rounded-b-lg p-3`},r.createElement("div",{className:"flex items-center justify-between"},r.createElement("div",{className:"flex items-center gap-1 md:gap-2"},r.createElement(qe.G,{onFilesPicked:e=>s(Xi({file:e[0],atPosition:-1}))},r.createElement("button",{disabled:!c||d||v,className:rt.tw`co-link-button disabled:cursor-not-allowed`,title:"attach images or audio"},r.createElement(ye,{className:"inline-block h-6"}))),r.createElement("button",{disabled:g||!c||!f,onClick:k,className:rt.tw`co-link-button disabled:cursor-not-allowed`,title:"add a content warning"},r.createElement(be.Z,{className:"inline-block h-6"})),r.createElement(Ht.K,{onSelectEmoji:C,disabled:!c,hasCohostPlus:!!a}),r.createElement("a",{href:S.vf.public.staticContent({slug:"markdown-reference"}).toString(),target:"_blank",rel:"noreferrer",className:rt.tw`co-link-button`,title:"markdown reference"},r.createElement(we.Z,{className:"inline-block h-6"}))),r.createElement(he.List,{className:rt.tw`co-tab-bar flex items-center rounded-lg text-sm leading-none`},r.createElement(he,{className:({selected:e})=>e?rt.tw`co-tab-bar co-active rounded-lg px-2 py-2 md:px-3`:"px-2 py-2 md:px-3"},i("client:post-editor.compose-tab","compose")),r.createElement(he,{className:({selected:e})=>e?rt.tw`co-tab-bar co-active rounded-lg px-2 py-2 md:px-3`:"px-2 py-2 md:px-3"},i("client:post-editor.preview-tab","preview"))),r.createElement("div",{className:"relative inline-flex items-stretch rounded-lg text-sm text-text"},r.createElement("button",{className:rt.tw`co-filled-button rounded-l-lg border-r border-r-gray-500 py-2 pl-2 pr-1 leading-none`,onClick:()=>s(zi())},p===A.h.Published?i("client:post-editor.post-now","post now"):p===A.h.Unpublished?i("client:post-editor.save-as-draft","save draft"):null),r.createElement(N.R,{value:p,onChange:_},r.createElement(N.R.Button,null,(({open:e})=>r.createElement("div",{className:rt.tw`co-filled-button rounded-r-lg py-2 pl-1 pr-2 leading-none`},r.createElement(me,{className:"inline-block h-4 w-4 transition-transform "+(e?"rotate-180":"rotate-0")})))),r.createElement(N.R.Options,{className:"cohost-shadow-light absolute right-0 top-full mt-1 flex min-w-max flex-col divide-y divide-foreground-400 rounded-lg leading-none"},E.map((({postState:e,string:t})=>r.createElement(N.R.Option,{key:e,value:e,className:rt.tw`co-filled-button relative cursor-default select-none py-2 pl-8 pr-2 first:rounded-t-lg last:rounded-b-lg`},(({selected:e})=>r.createElement(r.Fragment,null,r.createElement("span",{className:"block"},t),e?r.createElement("span",{className:"absolute inset-y-0 left-0 flex items-center pl-2"},r.createElement(ge.Z,{className:"h-4 w-4"})):null)))))))))))),b.length>0?r.createElement(ls,{categoryTitle:"pinned tags",stateId:"pinned",tags:b}):null,w.data?.tags?r.createElement(ls,{categoryTitle:"recently used tags",stateId:"recently-used",tags:w.data?.tags}):null,a?r.createElement("p",{className:"max-w-prose"},"As a cohost Plus! member, your attachment size upload limit is now 10mb! Go crazy, but keep in mind larger attachments might take a while to upload."):null))))}));fs.displayName="PostComposerInner";var ds=n(62745),ps=n(46479),hs=n(67177),ms=n(95024);const gs=e=>{const t=Wt.S.posts.singlePost.useQuery({handle:e.shareOf?.handle??"",postId:e.shareOf?.postId??-99999,skipComments:!0},{suspense:!0,enabled:!!e.shareOf}),n=Wt.S.asks.byAskId.useQuery(e.responseToAskId??"",{suspense:!0,enabled:!!e.responseToAskId}),i=(0,ds.Q)(),a=(0,ms.useFlag)("attachment-composer-v2")&&i.previewFeatures_lexicalPostEditor;return r.createElement(r.Fragment,null,e.initialPost&&e.initialPost.shareOfPostId?r.createElement("div",{className:"w-full","data-testid":"composer-context"},r.createElement("h1",{className:"mb-3 text-xl text-bgText"},"You're editing a reply to this thread:"),r.createElement(ps.Z,{viewModel:e.initialPost,highlightedTags:[],showFooter:!1,showLastPost:!1,showMeatballMenu:!1,displayPrefs:i})):null,t.data?r.createElement("div",{className:"w-full","data-testid":"composer-context"},r.createElement("h1",{className:"mb-3 text-xl text-bgText"},"You're sharing the following post:"),r.createElement(ps.Z,{viewModel:t.data.post,highlightedTags:[],showFooter:!1,showLastPost:!0,showMeatballMenu:!1,displayPrefs:i})):null,n.data?r.createElement("div",{className:"w-full","data-testid":"composer-context"},r.createElement("h1",{className:"mb-3 text-xl text-bgText"},"You're responding to the following ask:"),r.createElement(hs.Z,{ask:n.data})):null,a?r.createElement(y,{store:os},r.createElement(us,e)):r.createElement(hn,e))}},37070:function(e,t,n){"use strict";n.d(t,{K:function(){return dt}});var r=n(76051),i=JSON.parse('{"categories":[{"id":"people","emojis":["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","robot_face","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","kiss","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","orange_heart","yellow_heart","green_heart","blue_heart","purple_heart","brown_heart","black_heart","white_heart","100","anger","boom","dizzy","sweat_drops","dash","hole","bomb","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{"id":"nature","emojis":["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs"]},{"id":"foods","emojis":["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","mushroom","peanuts","beans","chestnut","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{"id":"activity","emojis":["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","8ball","crystal_ball","magic_wand","nazar_amulet","hamsa","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{"id":"places","emojis":["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{"id":"objects","emojis":["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","gun","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","moyai","placard","identification_card"]},{"id":"symbols","emojis":["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{"id":"flags","emojis":["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],"emojis":{"100":{"id":"100","name":"Hundred Points","keywords":["100","score","perfect","numbers","century","exam","quiz","test","pass"],"skins":[{"unified":"1f4af","native":"💯"}],"version":1},"1234":{"id":"1234","name":"Input Numbers","keywords":["1234","blue","square"],"skins":[{"unified":"1f522","native":"🔢"}],"version":1},"grinning":{"id":"grinning","name":"Grinning Face","emoticons":[":D"],"keywords":["smile","happy","joy",":D","grin"],"skins":[{"unified":"1f600","native":"😀"}],"version":1},"smiley":{"id":"smiley","name":"Grinning Face with Big Eyes","emoticons":[":)","=)","=-)"],"keywords":["smiley","happy","joy","haha",":D",":)","smile","funny"],"skins":[{"unified":"1f603","native":"😃"}],"version":1},"smile":{"id":"smile","name":"Grinning Face with Smiling Eyes","emoticons":[":)","C:","c:",":D",":-D"],"keywords":["smile","happy","joy","funny","haha","laugh","like",":D",":)"],"skins":[{"unified":"1f604","native":"😄"}],"version":1},"grin":{"id":"grin","name":"Beaming Face with Smiling Eyes","keywords":["grin","happy","smile","joy","kawaii"],"skins":[{"unified":"1f601","native":"😁"}],"version":1},"laughing":{"id":"laughing","name":"Grinning Squinting Face","emoticons":[":>",":->"],"keywords":["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],"skins":[{"unified":"1f606","native":"😆"}],"version":1},"sweat_smile":{"id":"sweat_smile","name":"Grinning Face with Sweat","keywords":["smile","hot","happy","laugh","relief"],"skins":[{"unified":"1f605","native":"😅"}],"version":1},"rolling_on_the_floor_laughing":{"id":"rolling_on_the_floor_laughing","name":"Rolling on the Floor Laughing","keywords":["face","lol","haha","rofl"],"skins":[{"unified":"1f923","native":"🤣"}],"version":3},"joy":{"id":"joy","name":"Face with Tears of Joy","keywords":["cry","weep","happy","happytears","haha"],"skins":[{"unified":"1f602","native":"😂"}],"version":1},"slightly_smiling_face":{"id":"slightly_smiling_face","name":"Slightly Smiling Face","emoticons":[":)","(:",":-)"],"keywords":["smile"],"skins":[{"unified":"1f642","native":"🙂"}],"version":1},"upside_down_face":{"id":"upside_down_face","name":"Upside-Down Face","keywords":["upside","down","flipped","silly","smile"],"skins":[{"unified":"1f643","native":"🙃"}],"version":1},"melting_face":{"id":"melting_face","name":"Melting Face","keywords":["hot","heat"],"skins":[{"unified":"1fae0","native":"🫠"}],"version":14},"wink":{"id":"wink","name":"Winking Face","emoticons":[";)",";-)"],"keywords":["wink","happy","mischievous","secret",";)","smile","eye"],"skins":[{"unified":"1f609","native":"😉"}],"version":1},"blush":{"id":"blush","name":"Smiling Face with Smiling Eyes","emoticons":[":)"],"keywords":["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],"skins":[{"unified":"1f60a","native":"😊"}],"version":1},"innocent":{"id":"innocent","name":"Smiling Face with Halo","keywords":["innocent","angel","heaven"],"skins":[{"unified":"1f607","native":"😇"}],"version":1},"smiling_face_with_3_hearts":{"id":"smiling_face_with_3_hearts","name":"Smiling Face with Hearts","keywords":["3","love","like","affection","valentines","infatuation","crush","adore"],"skins":[{"unified":"1f970","native":"🥰"}],"version":11},"heart_eyes":{"id":"heart_eyes","name":"Smiling Face with Heart-Eyes","keywords":["heart","eyes","love","like","affection","valentines","infatuation","crush"],"skins":[{"unified":"1f60d","native":"😍"}],"version":1},"star-struck":{"id":"star-struck","name":"Star-Struck","keywords":["star","struck","grinning","face","with","eyes","smile","starry"],"skins":[{"unified":"1f929","native":"🤩"}],"version":5},"kissing_heart":{"id":"kissing_heart","name":"Face Blowing a Kiss","emoticons":[":*",":-*"],"keywords":["kissing","heart","love","like","affection","valentines","infatuation"],"skins":[{"unified":"1f618","native":"😘"}],"version":1},"kissing":{"id":"kissing","name":"Kissing Face","keywords":["love","like","3","valentines","infatuation","kiss"],"skins":[{"unified":"1f617","native":"😗"}],"version":1},"relaxed":{"id":"relaxed","name":"Smiling Face","keywords":["relaxed","blush","massage","happiness"],"skins":[{"unified":"263a-fe0f","native":"☺️"}],"version":1},"kissing_closed_eyes":{"id":"kissing_closed_eyes","name":"Kissing Face with Closed Eyes","keywords":["love","like","affection","valentines","infatuation","kiss"],"skins":[{"unified":"1f61a","native":"😚"}],"version":1},"kissing_smiling_eyes":{"id":"kissing_smiling_eyes","name":"Kissing Face with Smiling Eyes","keywords":["affection","valentines","infatuation","kiss"],"skins":[{"unified":"1f619","native":"😙"}],"version":1},"smiling_face_with_tear":{"id":"smiling_face_with_tear","name":"Smiling Face with Tear","keywords":["sad","cry","pretend"],"skins":[{"unified":"1f972","native":"🥲"}],"version":13},"yum":{"id":"yum","name":"Face Savoring Food","keywords":["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],"skins":[{"unified":"1f60b","native":"😋"}],"version":1},"stuck_out_tongue":{"id":"stuck_out_tongue","name":"Face with Tongue","emoticons":[":p",":-p",":P",":-P",":b",":-b"],"keywords":["stuck","out","prank","childish","playful","mischievous","smile"],"skins":[{"unified":"1f61b","native":"😛"}],"version":1},"stuck_out_tongue_winking_eye":{"id":"stuck_out_tongue_winking_eye","name":"Winking Face with Tongue","emoticons":[";p",";-p",";b",";-b",";P",";-P"],"keywords":["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],"skins":[{"unified":"1f61c","native":"😜"}],"version":1},"zany_face":{"id":"zany_face","name":"Zany Face","keywords":["grinning","with","one","large","and","small","eye","goofy","crazy"],"skins":[{"unified":"1f92a","native":"🤪"}],"version":5},"stuck_out_tongue_closed_eyes":{"id":"stuck_out_tongue_closed_eyes","name":"Squinting Face with Tongue","keywords":["stuck","out","closed","eyes","prank","playful","mischievous","smile"],"skins":[{"unified":"1f61d","native":"😝"}],"version":1},"money_mouth_face":{"id":"money_mouth_face","name":"Money-Mouth Face","keywords":["money","mouth","rich","dollar"],"skins":[{"unified":"1f911","native":"🤑"}],"version":1},"hugging_face":{"id":"hugging_face","name":"Hugging Face","keywords":["smile","hug"],"skins":[{"unified":"1f917","native":"🤗"}],"version":1},"face_with_hand_over_mouth":{"id":"face_with_hand_over_mouth","name":"Face with Hand over Mouth","keywords":["smiling","eyes","and","covering","whoops","shock","surprise"],"skins":[{"unified":"1f92d","native":"🤭"}],"version":5},"face_with_open_eyes_and_hand_over_mouth":{"id":"face_with_open_eyes_and_hand_over_mouth","name":"Face with Open Eyes and Hand over Mouth","keywords":["silence","secret","shock","surprise"],"skins":[{"unified":"1fae2","native":"🫢"}],"version":14},"face_with_peeking_eye":{"id":"face_with_peeking_eye","name":"Face with Peeking Eye","keywords":["scared","frightening","embarrassing"],"skins":[{"unified":"1fae3","native":"🫣"}],"version":14},"shushing_face":{"id":"shushing_face","name":"Shushing Face","keywords":["with","finger","covering","closed","lips","quiet","shhh"],"skins":[{"unified":"1f92b","native":"🤫"}],"version":5},"thinking_face":{"id":"thinking_face","name":"Thinking Face","keywords":["hmmm","think","consider"],"skins":[{"unified":"1f914","native":"🤔"}],"version":1},"saluting_face":{"id":"saluting_face","name":"Saluting Face","keywords":["respect","salute"],"skins":[{"unified":"1fae1","native":"🫡"}],"version":14},"zipper_mouth_face":{"id":"zipper_mouth_face","name":"Zipper-Mouth Face","keywords":["zipper","mouth","sealed","secret"],"skins":[{"unified":"1f910","native":"🤐"}],"version":1},"face_with_raised_eyebrow":{"id":"face_with_raised_eyebrow","name":"Face with Raised Eyebrow","keywords":["one","distrust","scepticism","disapproval","disbelief","surprise"],"skins":[{"unified":"1f928","native":"🤨"}],"version":5},"neutral_face":{"id":"neutral_face","name":"Neutral Face","emoticons":[":|",":-|"],"keywords":["indifference","meh",":",""],"skins":[{"unified":"1f610","native":"😐"}],"version":1},"expressionless":{"id":"expressionless","name":"Expressionless Face","emoticons":["-_-"],"keywords":["indifferent","-","","meh","deadpan"],"skins":[{"unified":"1f611","native":"😑"}],"version":1},"no_mouth":{"id":"no_mouth","name":"Face Without Mouth","keywords":["no","hellokitty"],"skins":[{"unified":"1f636","native":"😶"}],"version":1},"dotted_line_face":{"id":"dotted_line_face","name":"Dotted Line Face","keywords":["invisible","lonely","isolation","depression"],"skins":[{"unified":"1fae5","native":"🫥"}],"version":14},"face_in_clouds":{"id":"face_in_clouds","name":"Face in Clouds","keywords":["shower","steam","dream"],"skins":[{"unified":"1f636-200d-1f32b-fe0f","native":"😶‍🌫️"}],"version":13.1},"smirk":{"id":"smirk","name":"Smirking Face","keywords":["smirk","smile","mean","prank","smug","sarcasm"],"skins":[{"unified":"1f60f","native":"😏"}],"version":1},"unamused":{"id":"unamused","name":"Unamused Face","emoticons":[":("],"keywords":["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],"skins":[{"unified":"1f612","native":"😒"}],"version":1},"face_with_rolling_eyes":{"id":"face_with_rolling_eyes","name":"Face with Rolling Eyes","keywords":["eyeroll","frustrated"],"skins":[{"unified":"1f644","native":"🙄"}],"version":1},"grimacing":{"id":"grimacing","name":"Grimacing Face","keywords":["grimace","teeth"],"skins":[{"unified":"1f62c","native":"😬"}],"version":1},"face_exhaling":{"id":"face_exhaling","name":"Face Exhaling","keywords":["relieve","relief","tired","sigh"],"skins":[{"unified":"1f62e-200d-1f4a8","native":"😮‍💨"}],"version":13.1},"lying_face":{"id":"lying_face","name":"Lying Face","keywords":["lie","pinocchio"],"skins":[{"unified":"1f925","native":"🤥"}],"version":3},"relieved":{"id":"relieved","name":"Relieved Face","keywords":["relaxed","phew","massage","happiness"],"skins":[{"unified":"1f60c","native":"😌"}],"version":1},"pensive":{"id":"pensive","name":"Pensive Face","keywords":["sad","depressed","upset"],"skins":[{"unified":"1f614","native":"😔"}],"version":1},"sleepy":{"id":"sleepy","name":"Sleepy Face","keywords":["tired","rest","nap"],"skins":[{"unified":"1f62a","native":"😪"}],"version":1},"drooling_face":{"id":"drooling_face","name":"Drooling Face","keywords":[],"skins":[{"unified":"1f924","native":"🤤"}],"version":3},"sleeping":{"id":"sleeping","name":"Sleeping Face","keywords":["tired","sleepy","night","zzz"],"skins":[{"unified":"1f634","native":"😴"}],"version":1},"mask":{"id":"mask","name":"Face with Medical Mask","keywords":["sick","ill","disease"],"skins":[{"unified":"1f637","native":"😷"}],"version":1},"face_with_thermometer":{"id":"face_with_thermometer","name":"Face with Thermometer","keywords":["sick","temperature","cold","fever"],"skins":[{"unified":"1f912","native":"🤒"}],"version":1},"face_with_head_bandage":{"id":"face_with_head_bandage","name":"Face with Head-Bandage","keywords":["head","bandage","injured","clumsy","hurt"],"skins":[{"unified":"1f915","native":"🤕"}],"version":1},"nauseated_face":{"id":"nauseated_face","name":"Nauseated Face","keywords":["vomit","gross","green","sick","throw","up","ill"],"skins":[{"unified":"1f922","native":"🤢"}],"version":3},"face_vomiting":{"id":"face_vomiting","name":"Face Vomiting","keywords":["with","open","mouth","sick"],"skins":[{"unified":"1f92e","native":"🤮"}],"version":5},"sneezing_face":{"id":"sneezing_face","name":"Sneezing Face","keywords":["gesundheit","sneeze","sick","allergy"],"skins":[{"unified":"1f927","native":"🤧"}],"version":3},"hot_face":{"id":"hot_face","name":"Hot Face","keywords":["feverish","heat","red","sweating"],"skins":[{"unified":"1f975","native":"🥵"}],"version":11},"cold_face":{"id":"cold_face","name":"Cold Face","keywords":["blue","freezing","frozen","frostbite","icicles"],"skins":[{"unified":"1f976","native":"🥶"}],"version":11},"woozy_face":{"id":"woozy_face","name":"Woozy Face","keywords":["dizzy","intoxicated","tipsy","wavy"],"skins":[{"unified":"1f974","native":"🥴"}],"version":11},"dizzy_face":{"id":"dizzy_face","name":"Dizzy Face","keywords":["spent","unconscious","xox"],"skins":[{"unified":"1f635","native":"😵"}],"version":1},"face_with_spiral_eyes":{"id":"face_with_spiral_eyes","name":"Face with Spiral Eyes","keywords":["sick","ill","confused","nauseous","nausea"],"skins":[{"unified":"1f635-200d-1f4ab","native":"😵‍💫"}],"version":13.1},"exploding_head":{"id":"exploding_head","name":"Exploding Head","keywords":["shocked","face","with","mind","blown"],"skins":[{"unified":"1f92f","native":"🤯"}],"version":5},"face_with_cowboy_hat":{"id":"face_with_cowboy_hat","name":"Cowboy Hat Face","keywords":["with","cowgirl"],"skins":[{"unified":"1f920","native":"🤠"}],"version":3},"partying_face":{"id":"partying_face","name":"Partying Face","keywords":["celebration","woohoo"],"skins":[{"unified":"1f973","native":"🥳"}],"version":11},"disguised_face":{"id":"disguised_face","name":"Disguised Face","keywords":["pretent","brows","glasses","moustache"],"skins":[{"unified":"1f978","native":"🥸"}],"version":13},"sunglasses":{"id":"sunglasses","name":"Smiling Face with Sunglasses","emoticons":["8)"],"keywords":["cool","smile","summer","beach","sunglass"],"skins":[{"unified":"1f60e","native":"😎"}],"version":1},"nerd_face":{"id":"nerd_face","name":"Nerd Face","keywords":["nerdy","geek","dork"],"skins":[{"unified":"1f913","native":"🤓"}],"version":1},"face_with_monocle":{"id":"face_with_monocle","name":"Face with Monocle","keywords":["stuffy","wealthy"],"skins":[{"unified":"1f9d0","native":"🧐"}],"version":5},"confused":{"id":"confused","name":"Confused Face","emoticons":[":\\\\",":-\\\\",":/",":-/"],"keywords":["indifference","huh","weird","hmmm",":/"],"skins":[{"unified":"1f615","native":"😕"}],"version":1},"face_with_diagonal_mouth":{"id":"face_with_diagonal_mouth","name":"Face with Diagonal Mouth","keywords":["skeptic","confuse","frustrated","indifferent"],"skins":[{"unified":"1fae4","native":"🫤"}],"version":14},"worried":{"id":"worried","name":"Worried Face","keywords":["concern","nervous",":("],"skins":[{"unified":"1f61f","native":"😟"}],"version":1},"slightly_frowning_face":{"id":"slightly_frowning_face","name":"Slightly Frowning Face","keywords":["disappointed","sad","upset"],"skins":[{"unified":"1f641","native":"🙁"}],"version":1},"white_frowning_face":{"id":"white_frowning_face","name":"Frowning Face","keywords":["white","sad","upset","frown"],"skins":[{"unified":"2639-fe0f","native":"☹️"}],"version":1},"open_mouth":{"id":"open_mouth","name":"Face with Open Mouth","emoticons":[":o",":-o",":O",":-O"],"keywords":["surprise","impressed","wow","whoa",":O"],"skins":[{"unified":"1f62e","native":"😮"}],"version":1},"hushed":{"id":"hushed","name":"Hushed Face","keywords":["woo","shh"],"skins":[{"unified":"1f62f","native":"😯"}],"version":1},"astonished":{"id":"astonished","name":"Astonished Face","keywords":["xox","surprised","poisoned"],"skins":[{"unified":"1f632","native":"😲"}],"version":1},"flushed":{"id":"flushed","name":"Flushed Face","keywords":["blush","shy","flattered"],"skins":[{"unified":"1f633","native":"😳"}],"version":1},"pleading_face":{"id":"pleading_face","name":"Pleading Face","keywords":["begging","mercy"],"skins":[{"unified":"1f97a","native":"🥺"}],"version":11},"face_holding_back_tears":{"id":"face_holding_back_tears","name":"Face Holding Back Tears","keywords":["touched","gratitude"],"skins":[{"unified":"1f979","native":"🥹"}],"version":14},"frowning":{"id":"frowning","name":"Frowning Face with Open Mouth","keywords":["aw","what"],"skins":[{"unified":"1f626","native":"😦"}],"version":1},"anguished":{"id":"anguished","name":"Anguished Face","emoticons":["D:"],"keywords":["stunned","nervous"],"skins":[{"unified":"1f627","native":"😧"}],"version":1},"fearful":{"id":"fearful","name":"Fearful Face","keywords":["scared","terrified","nervous","oops","huh"],"skins":[{"unified":"1f628","native":"😨"}],"version":1},"cold_sweat":{"id":"cold_sweat","name":"Anxious Face with Sweat","keywords":["cold","nervous"],"skins":[{"unified":"1f630","native":"😰"}],"version":1},"disappointed_relieved":{"id":"disappointed_relieved","name":"Sad but Relieved Face","keywords":["disappointed","phew","sweat","nervous"],"skins":[{"unified":"1f625","native":"😥"}],"version":1},"cry":{"id":"cry","name":"Crying Face","emoticons":[":\'("],"keywords":["cry","tears","sad","depressed","upset",":\'("],"skins":[{"unified":"1f622","native":"😢"}],"version":1},"sob":{"id":"sob","name":"Loudly Crying Face","emoticons":[":\'("],"keywords":["sob","cry","tears","sad","upset","depressed"],"skins":[{"unified":"1f62d","native":"😭"}],"version":1},"scream":{"id":"scream","name":"Face Screaming in Fear","keywords":["scream","munch","scared","omg"],"skins":[{"unified":"1f631","native":"😱"}],"version":1},"confounded":{"id":"confounded","name":"Confounded Face","keywords":["confused","sick","unwell","oops",":S"],"skins":[{"unified":"1f616","native":"😖"}],"version":1},"persevere":{"id":"persevere","name":"Persevering Face","keywords":["persevere","sick","no","upset","oops"],"skins":[{"unified":"1f623","native":"😣"}],"version":1},"disappointed":{"id":"disappointed","name":"Disappointed Face","emoticons":["):",":(",":-("],"keywords":["sad","upset","depressed",":("],"skins":[{"unified":"1f61e","native":"😞"}],"version":1},"sweat":{"id":"sweat","name":"Face with Cold Sweat","keywords":["downcast","hot","sad","tired","exercise"],"skins":[{"unified":"1f613","native":"😓"}],"version":1},"weary":{"id":"weary","name":"Weary Face","keywords":["tired","sleepy","sad","frustrated","upset"],"skins":[{"unified":"1f629","native":"😩"}],"version":1},"tired_face":{"id":"tired_face","name":"Tired Face","keywords":["sick","whine","upset","frustrated"],"skins":[{"unified":"1f62b","native":"😫"}],"version":1},"yawning_face":{"id":"yawning_face","name":"Yawning Face","keywords":["tired","sleepy"],"skins":[{"unified":"1f971","native":"🥱"}],"version":12},"triumph":{"id":"triumph","name":"Face with Look of Triumph","keywords":["steam","from","nose","gas","phew","proud","pride"],"skins":[{"unified":"1f624","native":"😤"}],"version":1},"rage":{"id":"rage","name":"Pouting Face","keywords":["rage","angry","mad","hate","despise"],"skins":[{"unified":"1f621","native":"😡"}],"version":1},"angry":{"id":"angry","name":"Angry Face","emoticons":[">:(",">:-("],"keywords":["mad","annoyed","frustrated"],"skins":[{"unified":"1f620","native":"😠"}],"version":1},"face_with_symbols_on_mouth":{"id":"face_with_symbols_on_mouth","name":"Face with Symbols on Mouth","keywords":["serious","covering","swearing","cursing","cussing","profanity","expletive"],"skins":[{"unified":"1f92c","native":"🤬"}],"version":5},"smiling_imp":{"id":"smiling_imp","name":"Smiling Face with Horns","keywords":["imp","devil"],"skins":[{"unified":"1f608","native":"😈"}],"version":1},"imp":{"id":"imp","name":"Imp","keywords":["angry","face","with","horns","devil"],"skins":[{"unified":"1f47f","native":"👿"}],"version":1},"skull":{"id":"skull","name":"Skull","keywords":["dead","skeleton","creepy","death"],"skins":[{"unified":"1f480","native":"💀"}],"version":1},"skull_and_crossbones":{"id":"skull_and_crossbones","name":"Skull and Crossbones","keywords":["poison","danger","deadly","scary","death","pirate","evil"],"skins":[{"unified":"2620-fe0f","native":"☠️"}],"version":1},"hankey":{"id":"hankey","name":"Pile of Poo","keywords":["hankey","poop","shit","shitface","fail","turd"],"skins":[{"unified":"1f4a9","native":"💩"}],"version":1},"clown_face":{"id":"clown_face","name":"Clown Face","keywords":[],"skins":[{"unified":"1f921","native":"🤡"}],"version":3},"japanese_ogre":{"id":"japanese_ogre","name":"Ogre","keywords":["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],"skins":[{"unified":"1f479","native":"👹"}],"version":1},"japanese_goblin":{"id":"japanese_goblin","name":"Goblin","keywords":["japanese","red","evil","mask","monster","scary","creepy"],"skins":[{"unified":"1f47a","native":"👺"}],"version":1},"ghost":{"id":"ghost","name":"Ghost","keywords":["halloween","spooky","scary"],"skins":[{"unified":"1f47b","native":"👻"}],"version":1},"alien":{"id":"alien","name":"Alien","keywords":["UFO","paul","weird","outer","space"],"skins":[{"unified":"1f47d","native":"👽"}],"version":1},"space_invader":{"id":"space_invader","name":"Alien Monster","keywords":["space","invader","game","arcade","play"],"skins":[{"unified":"1f47e","native":"👾"}],"version":1},"robot_face":{"id":"robot_face","name":"Robot","keywords":["face","computer","machine","bot"],"skins":[{"unified":"1f916","native":"🤖"}],"version":1},"smiley_cat":{"id":"smiley_cat","name":"Grinning Cat","keywords":["smiley","animal","cats","happy","smile"],"skins":[{"unified":"1f63a","native":"😺"}],"version":1},"smile_cat":{"id":"smile_cat","name":"Grinning Cat with Smiling Eyes","keywords":["smile","animal","cats"],"skins":[{"unified":"1f638","native":"😸"}],"version":1},"joy_cat":{"id":"joy_cat","name":"Cat with Tears of Joy","keywords":["animal","cats","haha","happy"],"skins":[{"unified":"1f639","native":"😹"}],"version":1},"heart_eyes_cat":{"id":"heart_eyes_cat","name":"Smiling Cat with Heart-Eyes","keywords":["heart","eyes","animal","love","like","affection","cats","valentines"],"skins":[{"unified":"1f63b","native":"😻"}],"version":1},"smirk_cat":{"id":"smirk_cat","name":"Cat with Wry Smile","keywords":["smirk","animal","cats"],"skins":[{"unified":"1f63c","native":"😼"}],"version":1},"kissing_cat":{"id":"kissing_cat","name":"Kissing Cat","keywords":["animal","cats","kiss"],"skins":[{"unified":"1f63d","native":"😽"}],"version":1},"scream_cat":{"id":"scream_cat","name":"Weary Cat","keywords":["scream","animal","cats","munch","scared"],"skins":[{"unified":"1f640","native":"🙀"}],"version":1},"crying_cat_face":{"id":"crying_cat_face","name":"Crying Cat","keywords":["face","animal","tears","weep","sad","cats","upset","cry"],"skins":[{"unified":"1f63f","native":"😿"}],"version":1},"pouting_cat":{"id":"pouting_cat","name":"Pouting Cat","keywords":["animal","cats"],"skins":[{"unified":"1f63e","native":"😾"}],"version":1},"see_no_evil":{"id":"see_no_evil","name":"See-No-Evil Monkey","keywords":["see","no","evil","animal","nature","haha"],"skins":[{"unified":"1f648","native":"🙈"}],"version":1},"hear_no_evil":{"id":"hear_no_evil","name":"Hear-No-Evil Monkey","keywords":["hear","no","evil","animal","nature"],"skins":[{"unified":"1f649","native":"🙉"}],"version":1},"speak_no_evil":{"id":"speak_no_evil","name":"Speak-No-Evil Monkey","keywords":["speak","no","evil","animal","nature","omg"],"skins":[{"unified":"1f64a","native":"🙊"}],"version":1},"kiss":{"id":"kiss","name":"Kiss Mark","keywords":["face","lips","love","like","affection","valentines"],"skins":[{"unified":"1f48b","native":"💋"}],"version":1},"love_letter":{"id":"love_letter","name":"Love Letter","keywords":["email","like","affection","envelope","valentines"],"skins":[{"unified":"1f48c","native":"💌"}],"version":1},"cupid":{"id":"cupid","name":"Heart with Arrow","keywords":["cupid","love","like","affection","valentines"],"skins":[{"unified":"1f498","native":"💘"}],"version":1},"gift_heart":{"id":"gift_heart","name":"Heart with Ribbon","keywords":["gift","love","valentines"],"skins":[{"unified":"1f49d","native":"💝"}],"version":1},"sparkling_heart":{"id":"sparkling_heart","name":"Sparkling Heart","keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f496","native":"💖"}],"version":1},"heartpulse":{"id":"heartpulse","name":"Growing Heart","keywords":["heartpulse","like","love","affection","valentines","pink"],"skins":[{"unified":"1f497","native":"💗"}],"version":1},"heartbeat":{"id":"heartbeat","name":"Beating Heart","keywords":["heartbeat","love","like","affection","valentines","pink"],"skins":[{"unified":"1f493","native":"💓"}],"version":1},"revolving_hearts":{"id":"revolving_hearts","name":"Revolving Hearts","keywords":["love","like","affection","valentines"],"skins":[{"unified":"1f49e","native":"💞"}],"version":1},"two_hearts":{"id":"two_hearts","name":"Two Hearts","keywords":["love","like","affection","valentines","heart"],"skins":[{"unified":"1f495","native":"💕"}],"version":1},"heart_decoration":{"id":"heart_decoration","name":"Heart Decoration","keywords":["purple","square","love","like"],"skins":[{"unified":"1f49f","native":"💟"}],"version":1},"heavy_heart_exclamation_mark_ornament":{"id":"heavy_heart_exclamation_mark_ornament","name":"Heart Exclamation","keywords":["heavy","mark","ornament","decoration","love"],"skins":[{"unified":"2763-fe0f","native":"❣️"}],"version":1},"broken_heart":{"id":"broken_heart","name":"Broken Heart","emoticons":["2&&(o.children=arguments.length>3?l.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return w(e,o,r,i,null)}function w(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++c:i};return null==i&&null!=u.vnode&&u.vnode(a),a}function k(e){return e.children}function _(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?w(p.type,p.props,p.key,null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(d=b[c])||d&&p.key==d.key&&p.type===d.type)b[c]=void 0;else for(f=0;f<_;f++){if((d=b[f])&&p.key==d.key&&p.type===d.type){b[f]=void 0;break}d=null}M(e,p,d=d||h,i,a,o,s,l,u),g=p.__e,(f=p.ref)&&d.ref!=f&&(y||(y=[]),d.ref&&y.push(d.ref,null,p),y.push(f,p.__c||g,p)),null!=g?(null==v&&(v=g),"function"==typeof p.type&&p.__k===d.__k?p.__d=l=O(p,l,e):l=I(e,p,d,b,g,l),"function"==typeof n.type&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=E(d))}for(n.__e=v,c=_;c--;)null!=b[c]&&("function"==typeof n.type&&null!=b[c].__e&&b[c].__e==n.__d&&(n.__d=E(r,c+1)),j(b[c],b[c]));if(y)for(c=0;c{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=20,n=Math.floor(12.5);return e.font=n+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=40,e.canvas.height=25,n=>{e.clearRect(0,0,40,25),e.fillStyle="#FF0000",e.fillText(n,0,22),e.fillStyle="#0000FF",e.fillText(n,t,22);const r=e.getImageData(0,0,t,25).data,i=r.length;let a=0;for(;a=i)return!1;const o=t+a/4%t,s=Math.floor(a/4/t),l=e.getImageData(o,s,1,1).data;return r[a]===l[0]&&r[a+2]===l[2]&&!(e.measureText(n).width>=t)}})();var K=function(){for(const{v:e,emoji:t}of W)if(G(t))return e},Q=function(){return!G("🇨🇦")};const Y=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let J=null;var X,ee=function(e){J||(J=V("frequently")||{});const t=e.id||e;t&&(J[t]||(J[t]=0),J[t]+=1,U("last",t),U("frequently",J))},te=function({maxFrequentRows:e,perLine:t}){if(!e)return[];J||(J=V("frequently"));let n=[];if(!J){J={};for(let e in Y.slice(0,t)){const r=Y[e];J[r]=t-e,n.push(r)}return n}const r=e*t,i=V("last");for(let e in J)n.push(e);if(n.sort(((e,t)=>{const n=J[t],r=J[e];return n==r?e.localeCompare(t):n-r})),n.length>r){const e=n.slice(r);n=n.slice(0,r);for(let t of e)t!=i&&delete J[t];i&&-1==n.indexOf(i)&&(delete J[n[n.length-1]],n.splice(-1,1,i)),U("frequently",J)}return n};X=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var ne={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:14,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","kr","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let re=null,ie=null;const ae={};async function oe(e){if(ae[e])return ae[e];const t=await fetch(e),n=await t.json();return ae[e]=n,n}let se=null,le=null,ue=!1;function ce(e,{caller:t}={}){return se||(se=new Promise((e=>{le=e}))),e?async function(e){ue=!0;let{emojiVersion:t,set:n,locale:r}=e;if(t||(t=ne.emojiVersion.value),n||(n=ne.set.value),r||(r=ne.locale.value),ie)ie.categories=ie.categories.filter((e=>!e.name));else{ie=("function"==typeof e.data?await e.data():e.data)||await oe(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),ie.emoticons={},ie.natives={},ie.categories.unshift({id:"frequent",emojis:[]});for(const e in ie.aliases){const t=ie.aliases[e],n=ie.emojis[t];n&&(n.aliases||(n.aliases=[]),n.aliases.push(e))}ie.originalCategories=ie.categories}if(re=("function"==typeof e.i18n?await e.i18n():e.i18n)||("en"==r?o(X):await oe(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${r}.json`)),e.custom)for(let t in e.custom){t=parseInt(t);const n=e.custom[t],r=e.custom[t-1];if(n.emojis&&n.emojis.length){n.id||(n.id=`custom_${t+1}`),n.name||(n.name=re.categories.custom),r&&!n.icon&&(n.target=r.target||r),ie.categories.push(n);for(const e of n.emojis)ie.emojis[e.id]=e}}e.categories&&(ie.categories=ie.originalCategories.filter((t=>-1!=e.categories.indexOf(t.id))).sort(((t,n)=>e.categories.indexOf(t.id)-e.categories.indexOf(n.id))));let i=null,a=null;"native"==n&&(i=K(),a=e.noCountryFlags||Q());let s=ie.categories.length,l=!1;for(;s--;){const t=ie.categories[s];if("frequent"==t.id){let{maxFrequentRows:n,perLine:r}=e;n=n>=0?n:ne.maxFrequentRows.value,r||(r=ne.perLine.value),t.emojis=te({maxFrequentRows:n,perLine:r})}if(!t.emojis||!t.emojis.length){ie.categories.splice(s,1);continue}const{categoryIcons:n}=e;if(n){const e=n[t.id];e&&!t.icon&&(t.icon=e)}let r=t.emojis.length;for(;r--;){const n=t.emojis[r],o=n.id?n:ie.emojis[n],s=()=>{t.emojis.splice(r,1)};if(!o||e.exceptEmojis&&e.exceptEmojis.includes(o.id))s();else if(i&&o.version>i)s();else if(!a||"flags"!=t.id||me.includes(o.id)){if(!o.search){if(l=!0,o.search=","+[[o.id,!1],[o.name,!0],[o.keywords,!1],[o.emoticons,!1]].map((([e,t])=>{if(e)return(Array.isArray(e)?e:[e]).map((e=>(t?e.split(/[-|_|\s]+/):[e]).map((e=>e.toLowerCase())))).flat()})).flat().filter((e=>e&&e.trim())).join(","),o.emoticons)for(const e of o.emoticons)ie.emoticons[e]||(ie.emoticons[e]=o.id);let e=0;for(const t of o.skins){if(!t)continue;e++;const{native:n}=t;n&&(ie.natives[n]=o.id,o.search+=`,${n}`);const r=1==e?"":`:skin-tone-${e}:`;t.shortcodes=`:${o.id}:${r}`}}}else s()}}l&&he.reset(),le()}(e):t&&!ue&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),se}function fe(e,t,n){e||(e={});const r={};for(let i in t)r[i]=de(i,e,t,n);return r}function de(e,t,n,r){const i=n[e];let a=r&&r.getAttribute(e)||(null!=t[e]&&null!=t[e]?t[e]:null);return i?(null!=a&&i.value&&typeof i.value!=typeof a&&(a="boolean"==typeof i.value?"false"!=a:i.value.constructor(a)),i.transform&&a&&(a=i.transform(a)),(null==a||i.choices&&-1==i.choices.indexOf(a))&&(a=i.value),a):a}let pe=null;var he={search:async function(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await ce(null,{caller:n||"SearchIndex.search"});const r=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter(((e,t,n)=>e.trim()&&n.indexOf(e)==t));if(!r.length)return;let i,a,o=pe||(pe=Object.values(ie.emojis));for(const e of r){if(!o.length)break;i=[],a={};for(const t of o){if(!t.search)continue;const n=t.search.indexOf(`,${e}`);-1!=n&&(i.push(t),a[t.id]||(a[t.id]=0),a[t.id]+=t.id==e?0:n+1)}o=i}return i.length<2||(i.sort(((e,t)=>{const n=a[e.id],r=a[t.id];return n==r?e.id.localeCompare(t.id):n-r})),i.length>t&&(i=i.slice(0,t))),i},get:function(e){return e.id?e:ie.emojis[e]||ie.emojis[ie.aliases[e]]||ie.emojis[ie.natives[e]]},reset:function(){pe=null},SHORTCODES_REGEX:/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/};const me=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];var ge={categories:{activity:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:z("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:z("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:z("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:z("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[z("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),z("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[z("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),z("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:z("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[z("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),z("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:z("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[z("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),z("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[z("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),z("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:z("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:z("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:z("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:z("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function ve(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){const r=e.shortcodes.match(he.SHORTCODES_REGEX);r&&(t=r[1],r[2]&&(n=r[2]))}if(r||(r=he.get(t||e.native)),!r)return e.fallback;const i=r.skins[n-1]||r.skins[0],a=i.src||("native"==e.set||e.spritesheet?void 0:"function"==typeof e.getImageURL?e.getImageURL(e.set,i.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/64/${i.unified}.png`),o="function"==typeof e.getSpritesheetURL?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@14.0.0/img/${e.set}/sheets-256/64.png`;return z("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:a?z("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:i.native||i.shortcodes,src:a}):"native"==e.set?z("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:i.native}):z("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${o})`,backgroundSize:`${100*ie.sheet.cols}% ${100*ie.sheet.rows}%`,backgroundPosition:`${100/(ie.sheet.cols-1)*i.x}% ${100/(ie.sheet.rows-1)*i.y}%`}})})}const ye="undefined"!=typeof window&&window.HTMLElement?window.HTMLElement:Object;class be extends ye{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,n){if(!this.component)return;const r=de(e,{[e]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const n=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),n&&n.appendChild(this)}}}class we extends be{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var ke={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:ne.set,skin:ne.skin};class _e extends be{async connectedCallback(){const e=fe(this.props,ke,this);e.element=this,e.ref=e=>{this.component=e},await ce(),this.disconnected||q(z(ve,{...e}),this)}constructor(e){super(e)}}s(_e,"Props",ke),"undefined"==typeof customElements||customElements.get("em-emoji")||customElements.define("em-emoji",_e);var Ee,xe,Te=[],Se=u.__b,Ce=u.__r,Oe=u.diffed,Ae=u.__c,Ie=u.unmount;function Ne(){var e;for(Te.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=Te.pop();)if(e.__P)try{e.__H.__h.forEach(Re),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){Ee=null,Se&&Se(e)},u.__r=function(e){Ce&&Ce(e);var t=(Ee=e.__c).__H;t&&(t.__h.forEach(Re),t.__h.forEach(Le),t.__h=[])},u.diffed=function(e){Oe&&Oe(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Te.push(t)&&xe===u.requestAnimationFrame||((xe=u.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),Pe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Pe&&(t=requestAnimationFrame(n))})(Ne)),Ee=null},u.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Re),e.__h=e.__h.filter((function(e){return!e.__||Le(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.__e(n,e.__v)}})),Ae&&Ae(e,t)},u.unmount=function(e){Ie&&Ie(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Re(e)}catch(e){t=e}})),t&&u.__e(t,n.__v))};var Pe="function"==typeof requestAnimationFrame;function Re(e){var t=Ee,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Ee=t}function Le(e){var t=Ee;e.__c=e.__(),Ee=t}function Me(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function De(e){this.props=e}(De.prototype=new _).isPureReactComponent=!0,De.prototype.shouldComponentUpdate=function(e,t){return Me(this.props,e)||Me(this.state,t)};var Fe=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fe&&Fe(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var je=u.__e;u.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);je(e,t,n)};var Be=u.unmount;function qe(){this.__u=0,this.t=null,this.__b=null}function He(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ze(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Be&&Be(e)},(qe.prototype=new _).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=He(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(o,o)},qe.prototype.componentWillUnmount=function(){this.t=[]},qe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&b(k,null,e.fallback);return i&&(i.__h=null),[b(k,null,t.__e?null:e.children),i]};var Ue=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]{const r=t.name||re.categories[t.id],i=!this.props.unfocused&&t.id==this.state.categoryId;return i&&(e=n),z("button",{"aria-label":r,"aria-selected":i||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:e=>e.preventDefault(),onClick:()=>{this.props.onClick({category:t,i:n})},children:this.renderIcon(t)})})),z("div",{class:"bar",style:{width:100/this.categories.length+"%",opacity:null==e?0:1,transform:"rtl"===this.props.dir?`scaleX(-1) translateX(${100*e}%)`:`translateX(${100*e}%)`}})]})})}constructor(){super(),this.categories=ie.categories.filter((e=>!e.target)),this.state={categoryId:this.categories[0].id}}}class nt extends De{shouldComponentUpdate(e){for(let t in e)if("children"!=t&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}class rt extends _{getInitialState(e=this.props){return{skin:V("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=re.rtl?"rtl":"ltr",this.refs={menu:{current:null},navigation:{current:null},scroll:{current:null},search:{current:null},searchInput:{current:null},skinToneButton:{current:null},skinToneRadio:{current:null}},this.initGrid(),0==this.props.stickySearch&&"sticky"==this.props.searchPosition&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const t in e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout((()=>{let e=!1;for(const t in this.nextState)this.props[t]=this.nextState[t],"custom"!==t&&"categories"!==t||(e=!0);delete this.nextState;const t=this.getInitialState();if(e)return this.reset(t);this.setState(t)}))}componentWillUnmount(){this.unregister()}async reset(e={}){await ce(this.props),this.initGrid(),this.unobserve(),this.setState(e,(()=>{this.observeCategories(),this.observeRows()}))}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const t of this.observers)e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=ie;this.refs.categories=new Map;const t=ie.categories.map((e=>e.id)).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;const n=(e,t)=>{const n=[];n.__categoryId=t.id,n.__index=e.length,this.grid.push(n);const r=this.grid.length-1,i=r%10?{}:{current:null};return i.index=r,i.posinset=this.grid.setsize+1,e.push(i),n};for(let t of e){const e=[];let r=n(e,t);for(let i of t.emojis)r.length==this.getPerLine()&&(r=n(e,t)),this.grid.setsize+=1,r.push(i);this.refs.categories.set(t.id,{root:{current:null},rows:e})}}initTheme(e){if("auto"!=e)return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addListener((()=>{"auto"==this.props.theme&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}))}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:t,emojiButtonSize:n}=e,r=()=>{const{width:e}=t.getBoundingClientRect();return Math.floor(e/n)},i=new ResizeObserver((()=>{this.unobserve({except:i}),this.setState({perLine:r()},(()=>{this.initGrid(),this.forceUpdate((()=>{this.observeCategories(),this.observeRows()}))}))}));return i.observe(t),this.observers.push(i),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){const n=this.state.searchResults||this.grid,r=n[e]&&n[e][t];if(r)return he.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const t=new Map,n={root:this.refs.scroll.current,threshold:[0,1]},r=new IntersectionObserver((n=>{for(const e of n){const n=e.target.dataset.id;t.set(n,e.intersectionRatio)}const r=[...t];for(const[t,n]of r)if(n){(i=t)!=e.state.categoryId&&e.setState({categoryId:i});break}var i}),n);for(const{root:e}of this.refs.categories.values())r.observe(e.current);this.observers.push(r)}observeRows(){const e={...this.state.visibleRows},t=new IntersectionObserver((t=>{for(const n of t){const t=parseInt(n.target.dataset.index);n.isIntersecting?e[t]=!0:delete e[t]}this.setState({visibleRows:e})}),{root:this.refs.scroll.current,rootMargin:`${15*this.props.emojiButtonSize}px 0px ${10*this.props.emojiButtonSize}px`});for(const{rows:e}of this.refs.categories.values())for(const n of e)n.current&&t.observe(n.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e:e,input:t,left:n,right:r,up:i,down:a}){const o=this.state.searchResults||this.grid;if(!o.length)return;let[s,l]=this.state.pos;const u=(()=>{if(0==s&&0==l&&!e.repeat&&(n||i))return null;if(-1==s)return e.repeat||!r&&!a||t.selectionStart!=t.value.length?null:[0,0];if(n||r){let e=o[s];const t=n?-1:1;if(l+=t,!e[l]){if(s+=t,e=o[s],!e)return s=n?0:o.length-1,l=n?0:o[s].length-1,[s,l];l=n?e.length-1:0}return[s,l]}if(i||a){s+=i?-1:1;const e=o[s];return e?(e[l]||(l=e.length-1),[s,l]):(s=i?0:o.length-1,l=i?0:o[s].length-1,[s,l])}})();u?(e.preventDefault(),this.setState({pos:u,keyboard:!0},(()=>{this.scrollTo({row:u[0]})}))):this.state.pos[0]>-1&&this.setState({pos:[-1,-1]})}scrollTo({categoryId:e,row:t}){const n=this.state.searchResults||this.grid;if(!n.length)return;const r=this.refs.scroll.current,i=r.getBoundingClientRect();let a=0;if(t>=0&&(e=n[t].__categoryId),e&&(a=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(i.top-r.scrollTop)+1),t>=0)if(t){const e=a+n[t].__index*this.props.emojiButtonSize,o=e+this.props.emojiButtonSize+.88*this.props.emojiButtonSize;if(er.scrollTop+i.height))return;a=o-i.height}}else a=0;this.ignoreMouse(),r.scrollTop=a}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout((()=>{delete this.mouseIsIgnored}),100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e:e,emoji:t,pos:n}){if(this.props.onEmojiSelect&&(!t&&n&&(t=this.getEmojiByPos(n)),t)){const n=function(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&ee(n,this.props),this.props.onEmojiSelect(n,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),U("skin",e)}renderNav(){return z(tt,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return z("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[z("div",{class:"flex flex-middle flex-grow",children:[z("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:z(ve,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||("top"==this.props.previewPosition?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),z("div",{class:`margin-${this.dir[0]}`,children:z("div",e||t?{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[z("div",{class:"preview-title ellipsis",children:e?e.name:re.search_no_results_1}),z("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:re.search_no_results_2})]}:{class:"preview-placeholder color-c",children:re.pick})})]}),!e&&"preview"==this.props.skinTonePosition&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:n,grid:r}){const i=this.props.emojiButtonSize,a=this.state.tempSkin||this.state.skin,o=(e.skins[a-1]||e.skins[0]).native,s=(l=this.state.pos,u=t,Array.isArray(l)&&Array.isArray(u)&&l.length===u.length&&l.every(((e,t)=>e==u[t])));var l,u;const c=t.concat(e.id).join("");return z(nt,{selected:s,skin:a,size:i,children:z("button",{"aria-label":o,"aria-selected":s||void 0,"aria-posinset":n,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:"none"==this.props.previewPosition?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:t=>this.handleEmojiClick({e:t,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[z("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),z(ve,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:a,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},c)}renderSearch(){const e="none"==this.props.previewPosition||"search"==this.props.skinTonePosition;return z("div",{children:[z("div",{class:"spacer"}),z("div",{class:"flex flex-middle",children:[z("div",{class:"search relative flex-grow",children:[z("input",{type:"search",ref:this.refs.searchInput,placeholder:re.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),z("span",{class:"icon loupe flex",children:ge.search.loupe}),this.state.searchResults&&z("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:ge.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?z("div",{class:"category",ref:this.refs.search,children:[z("div",{class:`sticky padding-small align-${this.dir[0]}`,children:re.categories.search}),z("div",{children:e.length?e.map(((t,n)=>z("div",{class:"flex",children:t.map(((t,r)=>this.renderEmojiButton(t,{pos:[n,r],posinset:n*this.props.perLine+r+1,grid:e})))}))):z("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&z("a",{onClick:this.props.onAddCustomEmoji,children:re.add_custom})})})]}):null}renderCategories(){const{categories:e}=ie,t=!!this.state.searchResults,n=this.getPerLine();return z("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map((e=>{const{root:t,rows:r}=this.refs.categories.get(e.id);return z("div",{"data-id":e.target?e.target.id:e.id,class:"category",ref:t,children:[z("div",{class:`sticky padding-small align-${this.dir[0]}`,children:e.name||re.categories[e.id]}),z("div",{class:"relative",style:{height:r.length*this.props.emojiButtonSize},children:r.map(((t,r)=>{const i=t.index-t.index%10,a=this.state.visibleRows[i],o="current"in t?t:void 0;if(!a&&!o)return null;const s=r*n,l=s+n,u=e.emojis.slice(s,l);return u.length{if(!e)return z("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const r=he.get(e);return this.renderEmojiButton(r,{pos:[t.index,n],posinset:t.posinset+n,grid:this.grid})}))},t.index)}))})]})}))})}renderSkinToneButton(){return"none"==this.props.skinTonePosition?null:z("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:z("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":re.skins.choose,title:re.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:z("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos);return z("div",{"aria-live":"polite",class:"sr-only",children:e?e.name:""})}renderSkins(){const e=this.refs.skinToneButton.current.getBoundingClientRect(),t=this.base.getBoundingClientRect(),n={};return"ltr"==this.dir?n.right=t.right-e.right-3:n.left=e.left-t.left-3,"bottom"==this.props.previewPosition&&"preview"==this.props.skinTonePosition?n.bottom=t.bottom-e.top+6:(n.top=e.bottom-t.top+3,n.bottom="auto"),z("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":re.skins.choose,class:"menu hidden","data-position":n.top?"top":"bottom",style:n,children:[...Array(6).keys()].map((e=>{const t=e+1,n=this.state.skin==t;return z("div",{children:[z("input",{type:"radio",name:"skin-tone",value:t,"aria-label":re.skins[t],ref:n?this.refs.skinToneRadio:null,defaultChecked:n,onChange:()=>this.handleSkinMouseOver(t),onKeyDown:e=>{"Enter"!=e.code&&"Space"!=e.code&&"Tab"!=e.code||(e.preventDefault(),this.handleSkinClick(t))}}),z("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(t),onMouseEnter:()=>this.handleSkinMouseOver(t),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[z("span",{class:`skin-tone skin-tone-${t}`}),z("span",{class:"margin-small-lr",children:re.skins[t]})]})]})}))})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return z("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:["top"==this.props.previewPosition&&this.renderPreview(),"top"==this.props.navPosition&&this.renderNav(),"sticky"==this.props.searchPosition&&z("div",{class:"padding-lr",children:this.renderSearch()}),z("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:z("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:["static"==this.props.searchPosition&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),"bottom"==this.props.navPosition&&this.renderNav(),"bottom"==this.props.previewPosition&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),s(this,"handleClickOutside",(e=>{const{element:t}=this.props;e.target!=t&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(e))})),s(this,"handleBaseClick",(e=>{this.state.showSkins&&(e.target.closest(".menu")||(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins()))})),s(this,"handleBaseKeydown",(e=>{this.state.showSkins&&"Escape"==e.key&&(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins())})),s(this,"handleSearchClick",(()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})})),s(this,"handleSearchInput",(async()=>{const e=this.refs.searchInput.current;if(!e)return;const{value:t}=e,n=await he.search(t),r=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!n)return this.setState({searchResults:n,pos:[-1,-1]},r);const i=e.selectionStart==e.value.length?[0,0]:[-1,-1],a=[];a.setsize=n.length;let o=null;for(let e of n)a.length&&o.length!=this.getPerLine()||(o=[],o.__categoryId="search",o.__index=a.length,a.push(o)),o.push(e);this.ignoreMouse(),this.setState({searchResults:a,pos:i},r)})),s(this,"handleSearchKeyDown",(e=>{const t=e.currentTarget;switch(e.stopImmediatePropagation(),e.key){case"ArrowLeft":this.navigate({e:e,input:t,left:!0});break;case"ArrowRight":this.navigate({e:e,input:t,right:!0});break;case"ArrowUp":this.navigate({e:e,input:t,up:!0});break;case"ArrowDown":this.navigate({e:e,input:t,down:!0});break;case"Enter":e.preventDefault(),this.handleEmojiClick({e:e,pos:this.state.pos});break;case"Escape":e.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch()}})),s(this,"clearSearch",(()=>{const e=this.refs.searchInput.current;e&&(e.value="",e.focus(),this.handleSearchInput())})),s(this,"handleCategoryClick",(({category:e,i:t})=>{this.scrollTo(0==t?{row:-1}:{categoryId:e.id})})),s(this,"openSkins",(e=>{const{currentTarget:t}=e,n=t.getBoundingClientRect();this.setState({showSkins:n},(async()=>{await async function(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}(2);const e=this.refs.menu.current;e&&(e.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))}))})),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class it extends we{async connectedCallback(){const e=fe(this.props,ne,this);e.element=this,e.ref=e=>{this.component=e},await ce(e),this.disconnected||q(z(rt,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:o(at)})}}s(it,"Props",ne),"undefined"==typeof customElements||customElements.get("em-emoji-picker")||customElements.define("em-emoji-picker",it);var at={};function ot(e){const t=(0,a.useRef)(null),n=(0,a.useRef)(null);return n.current&&n.current.update(e),(0,a.useEffect)((()=>(n.current=new it({...e,ref:t}),()=>{n.current=null})),[]),a.createElement("div",{ref:t})}at=':host {\n width: min-content;\n height: 435px;\n min-height: 230px;\n border-radius: var(--border-radius);\n box-shadow: var(--shadow);\n --border-radius: 10px;\n --category-icon-size: 18px;\n --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n --font-size: 15px;\n --preview-placeholder-size: 21px;\n --preview-title-size: 1.1em;\n --preview-subtitle-size: .9em;\n --shadow-color: 0deg 0% 0%;\n --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14);\n display: flex;\n}\n\n[data-theme="light"] {\n --em-rgb-color: var(--rgb-color, 34, 36, 39);\n --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n --em-rgb-background: var(--rgb-background, 255, 255, 255);\n --em-rgb-input: var(--rgb-input, 255, 255, 255);\n --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));\n}\n\n[data-theme="dark"] {\n --em-rgb-color: var(--rgb-color, 222, 222, 221);\n --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n --em-rgb-background: var(--rgb-background, 21, 22, 23);\n --em-rgb-input: var(--rgb-input, 0, 0, 0);\n --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n --color-a: rgb(var(--em-rgb-color));\n --color-b: rgba(var(--em-rgb-color), .65);\n --color-c: rgba(var(--em-rgb-color), .45);\n --padding: 12px;\n --padding-small: calc(var(--padding) / 2);\n --sidebar-width: 16px;\n --duration: 225ms;\n --duration-fast: 125ms;\n --duration-instant: 50ms;\n --easing: cubic-bezier(.4, 0, .2, 1);\n width: 100%;\n text-align: left;\n border-radius: var(--border-radius);\n background-color: rgb(var(--em-rgb-background));\n position: relative;\n}\n\n@media (prefers-reduced-motion) {\n #root {\n --duration: 0;\n --duration-fast: 0;\n --duration-instant: 0;\n }\n}\n\n#root[data-menu] button {\n cursor: auto;\n}\n\n#root[data-menu] .menu button {\n cursor: pointer;\n}\n\n:host, #root, input, button {\n color: rgb(var(--em-rgb-color));\n font-family: var(--font-family);\n font-size: var(--font-size);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: normal;\n}\n\n*, :before, :after {\n box-sizing: border-box;\n min-width: 0;\n margin: 0;\n padding: 0;\n}\n\n.relative {\n position: relative;\n}\n\n.flex {\n display: flex;\n}\n\n.flex-auto {\n flex: none;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-column {\n flex-direction: column;\n}\n\n.flex-grow {\n flex: auto;\n}\n\n.flex-middle {\n align-items: center;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.padding {\n padding: var(--padding);\n}\n\n.padding-t {\n padding-top: var(--padding);\n}\n\n.padding-lr {\n padding-left: var(--padding);\n padding-right: var(--padding);\n}\n\n.padding-r {\n padding-right: var(--padding);\n}\n\n.padding-small {\n padding: var(--padding-small);\n}\n\n.padding-small-b {\n padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n padding-left: var(--padding-small);\n padding-right: var(--padding-small);\n}\n\n.margin {\n margin: var(--padding);\n}\n\n.margin-r {\n margin-right: var(--padding);\n}\n\n.margin-l {\n margin-left: var(--padding);\n}\n\n.margin-small-l {\n margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n margin-left: var(--padding-small);\n margin-right: var(--padding-small);\n}\n\n.align-l {\n text-align: left;\n}\n\n.align-r {\n text-align: right;\n}\n\n.color-a {\n color: var(--color-a);\n}\n\n.color-b {\n color: var(--color-b);\n}\n\n.color-c {\n color: var(--color-c);\n}\n\n.ellipsis {\n white-space: nowrap;\n max-width: 100%;\n width: auto;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.sr-only {\n width: 1px;\n height: 1px;\n position: absolute;\n top: auto;\n left: -10000px;\n overflow: hidden;\n}\n\na {\n cursor: pointer;\n color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n text-decoration: underline;\n}\n\n.spacer {\n height: 10px;\n}\n\n[dir="rtl"] .scroll {\n padding-left: 0;\n padding-right: var(--padding);\n}\n\n.scroll {\n padding-right: 0;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.scroll::-webkit-scrollbar {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n width: 0;\n height: 0;\n display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n background-color: rgba(0, 0, 0, 0);\n}\n\n.scroll::-webkit-scrollbar-thumb {\n min-height: 20%;\n min-height: 65px;\n border: 4px solid rgb(var(--em-rgb-background));\n border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n background-color: var(--em-color-border);\n}\n\n.sticky {\n z-index: 1;\n background-color: rgba(var(--em-rgb-background), .9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n font-weight: 500;\n position: sticky;\n top: -1px;\n}\n\n[dir="rtl"] .search input[type="search"] {\n padding: 10px 2.2em 10px 2em;\n}\n\n[dir="rtl"] .search .loupe {\n left: auto;\n right: .7em;\n}\n\n[dir="rtl"] .search .delete {\n left: .7em;\n right: auto;\n}\n\n.search {\n z-index: 2;\n position: relative;\n}\n\n.search input, .search button {\n font-size: calc(var(--font-size) - 1px);\n}\n\n.search input[type="search"] {\n width: 100%;\n background-color: var(--em-color-border);\n transition-duration: var(--duration);\n transition-property: background-color, box-shadow;\n transition-timing-function: var(--easing);\n border: 0;\n border-radius: 10px;\n outline: 0;\n padding: 10px 2em 10px 2.2em;\n display: block;\n}\n\n.search input[type="search"]::-ms-input-placeholder {\n color: inherit;\n opacity: .6;\n}\n\n.search input[type="search"]::placeholder {\n color: inherit;\n opacity: .6;\n}\n\n.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n -ms-appearance: none;\n appearance: none;\n}\n\n.search input[type="search"]:focus {\n background-color: rgb(var(--em-rgb-input));\n box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);\n}\n\n.search .icon {\n z-index: 1;\n color: rgba(var(--em-rgb-color), .7);\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.search .loupe {\n pointer-events: none;\n left: .7em;\n}\n\n.search .delete {\n right: .7em;\n}\n\nsvg {\n fill: currentColor;\n width: 1em;\n height: 1em;\n}\n\nbutton {\n -webkit-appearance: none;\n -ms-appearance: none;\n appearance: none;\n cursor: pointer;\n color: currentColor;\n background-color: rgba(0, 0, 0, 0);\n border: 0;\n}\n\n#nav {\n z-index: 2;\n padding-top: 12px;\n padding-bottom: 12px;\n padding-right: var(--sidebar-width);\n position: relative;\n}\n\n#nav button {\n color: var(--color-b);\n transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n color: var(--color-a);\n}\n\n#nav svg, #nav img {\n width: var(--category-icon-size);\n height: var(--category-icon-size);\n}\n\n#nav[dir="rtl"] .bar {\n left: auto;\n right: 0;\n}\n\n#nav .bar {\n width: 100%;\n height: 3px;\n background-color: rgb(var(--em-rgb-accent));\n transition: transform var(--duration) var(--easing);\n border-radius: 3px 3px 0 0;\n position: absolute;\n bottom: -12px;\n left: 0;\n}\n\n#nav button[aria-selected] {\n color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n z-index: 2;\n padding: calc(var(--padding) + 4px) var(--padding);\n padding-right: var(--sidebar-width);\n position: relative;\n}\n\n#preview .preview-placeholder {\n font-size: var(--preview-placeholder-size);\n}\n\n#preview .preview-title {\n font-size: var(--preview-title-size);\n}\n\n#preview .preview-subtitle {\n font-size: var(--preview-subtitle-size);\n}\n\n#nav:before, #preview:before {\n content: "";\n height: 2px;\n position: absolute;\n left: 0;\n right: 0;\n}\n\n#nav[data-position="top"]:before, #preview[data-position="top"]:before {\n background: linear-gradient(to bottom, var(--em-color-border), transparent);\n top: 100%;\n}\n\n#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before {\n background: linear-gradient(to top, var(--em-color-border), transparent);\n bottom: 100%;\n}\n\n.category:last-child {\n min-height: calc(100% + 1px);\n}\n\n.category button {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;\n position: relative;\n}\n\n.category button > * {\n position: relative;\n}\n\n.category button .background {\n opacity: 0;\n background-color: var(--em-color-border);\n transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n\n.category button:hover .background {\n transition-duration: var(--duration-instant);\n transition-delay: 0s;\n}\n\n.category button[aria-selected] .background {\n opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n transition: none;\n}\n\n.row {\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.skin-tone-button {\n border: 1px solid rgba(0, 0, 0, 0);\n border-radius: 100%;\n}\n\n.skin-tone-button:hover {\n border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n transform: scale(.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n background-color: var(--em-color-border);\n border-top-color: rgba(0, 0, 0, .05);\n border-bottom-color: rgba(0, 0, 0, 0);\n border-left-width: 0;\n border-right-width: 0;\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n transform: scale(.9);\n}\n\n.menu {\n z-index: 2;\n white-space: nowrap;\n border: 1px solid var(--em-color-border);\n background-color: rgba(var(--em-rgb-background), .9);\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px);\n transition-property: opacity, transform;\n transition-duration: var(--duration);\n transition-timing-function: var(--easing);\n border-radius: 10px;\n padding: 4px;\n position: absolute;\n box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);\n}\n\n.menu.hidden {\n opacity: 0;\n}\n\n.menu[data-position="bottom"] {\n transform-origin: 100% 100%;\n}\n\n.menu[data-position="bottom"].hidden {\n transform: scale(.9)rotate(-3deg)translateY(5%);\n}\n\n.menu[data-position="top"] {\n transform-origin: 100% 0;\n}\n\n.menu[data-position="top"].hidden {\n transform: scale(.9)rotate(3deg)translateY(-5%);\n}\n\n.menu input[type="radio"] {\n clip: rect(0 0 0 0);\n width: 1px;\n height: 1px;\n border: 0;\n margin: 0;\n padding: 0;\n position: absolute;\n overflow: hidden;\n}\n\n.menu input[type="radio"]:checked + .option {\n box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n width: 100%;\n border-radius: 6px;\n padding: 4px 6px;\n}\n\n.option:hover {\n color: #fff;\n background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n width: 16px;\n height: 16px;\n border-radius: 100%;\n display: inline-block;\n position: relative;\n overflow: hidden;\n}\n\n.skin-tone:after {\n content: "";\n mix-blend-mode: overlay;\n background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));\n border: 1px solid rgba(0, 0, 0, .8);\n border-radius: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n}\n\n.skin-tone-1 {\n background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n background-color: #c88c61;\n}\n\n.skin-tone-5 {\n background-color: #a46134;\n}\n\n.skin-tone-6 {\n background-color: #5d4437;\n}\n\n[data-index] {\n justify-content: space-between;\n}\n\n[data-emoji-set="twitter"] .skin-tone:after {\n box-shadow: none;\n border-color: rgba(0, 0, 0, .5);\n}\n\n[data-emoji-set="twitter"] .skin-tone-1 {\n background-color: #fade72;\n}\n\n[data-emoji-set="twitter"] .skin-tone-2 {\n background-color: #f3dfd0;\n}\n\n[data-emoji-set="twitter"] .skin-tone-3 {\n background-color: #eed3a8;\n}\n\n[data-emoji-set="twitter"] .skin-tone-4 {\n background-color: #cfad8d;\n}\n\n[data-emoji-set="twitter"] .skin-tone-5 {\n background-color: #a8805d;\n}\n\n[data-emoji-set="twitter"] .skin-tone-6 {\n background-color: #765542;\n}\n\n[data-emoji-set="google"] .skin-tone:after {\n box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);\n}\n\n[data-emoji-set="google"] .skin-tone-1 {\n background-color: #f5c748;\n}\n\n[data-emoji-set="google"] .skin-tone-2 {\n background-color: #f1d5aa;\n}\n\n[data-emoji-set="google"] .skin-tone-3 {\n background-color: #d4b48d;\n}\n\n[data-emoji-set="google"] .skin-tone-4 {\n background-color: #aa876b;\n}\n\n[data-emoji-set="google"] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set="google"] .skin-tone-6 {\n background-color: #61493f;\n}\n\n[data-emoji-set="facebook"] .skin-tone:after {\n border-color: rgba(0, 0, 0, .4);\n box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set="facebook"] .skin-tone-1 {\n background-color: #f5c748;\n}\n\n[data-emoji-set="facebook"] .skin-tone-2 {\n background-color: #f1d5aa;\n}\n\n[data-emoji-set="facebook"] .skin-tone-3 {\n background-color: #d4b48d;\n}\n\n[data-emoji-set="facebook"] .skin-tone-4 {\n background-color: #aa876b;\n}\n\n[data-emoji-set="facebook"] .skin-tone-5 {\n background-color: #916544;\n}\n\n[data-emoji-set="facebook"] .skin-tone-6 {\n background-color: #61493f;\n}\n\n';var st=n(32903),lt=n(26645),ut=n(63442),ct=n(80095),ft=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.182 15.182a4.5 4.5 0 01-6.364 0M21 12a9 9 0 11-18 0 9 9 0 0118 0zM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75zm-.375 0h.008v.015h-.008V9.75zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75zm-.375 0h.008v.015h-.008V9.75z"}))}));const dt=a.memo((({onSelectEmoji:e,disabled:t,hasCohostPlus:o})=>{const{refs:s,floatingStyles:l}=(0,st.YF)({whileElementsMounted:lt.Me,middleware:[(0,ut.uY)()],placement:"bottom"}),[u,c]=(0,a.useState)(null);(0,a.useEffect)((()=>{Promise.resolve().then(n.bind(n,25091)).then((e=>{c(e)})).catch((e=>{console.error(e)}))}),[]);const f=(0,a.useMemo)((()=>{if(u){if(o){const e=[...u.customEmoji,...u.cohostPlusCustomEmoji].sort(((e,t)=>e.name.localeCompare(t.name,"en",{sensitivity:"base"}))).reduce(((e,t)=>(t.name.includes("eggbug")?e.eggbug.push(t):t.name.includes("host")?e.host.push(t):e.custom.push(t),e)),{eggbug:[],host:[],custom:[]});return[{id:"eggbug",name:"eggbug! (by @dzuk)",emojis:e.eggbug},{id:"host",name:"The Host (by @SilverStarsIllustration)",emojis:e.host},{id:"custom",name:"everything else",emojis:e.custom}]}return[{id:"custom",name:"custom emoji",emojis:u.customEmoji}]}return[]}),[u,o]);return a.createElement(a.Fragment,null,a.createElement(ct.J,null,a.createElement(ct.J.Button,{ref:s.setReference,className:r.tw`co-link-button disabled:cursor-not-allowed disabled:text-foreground-300`,disabled:t,title:"insert emoji"},a.createElement(ft,{className:"inline-block h-6"})),a.createElement(ct.J.Panel,{style:{...l,zIndex:9999},ref:s.setFloating},a.createElement(ot,{onEmojiSelect:e,custom:f,data:i,emojiButtonColors:["rgb(var(--color-secondary-200))"],set:"native",theme:"auto",title:"",emoji:""}))))}));dt.displayName="EmojiButton"},74378:function(e,t,n){"use strict";n.d(t,{o:function(){return c}});var r=n(94159),i=r.forwardRef((function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 9v6m-4.5 0V9M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),a=r.forwardRef((function({title:e,titleId:t,...n},i){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:i,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.91 11.672a.375.375 0 010 .656l-5.603 3.113a.375.375 0 01-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112z"}))})),o=n(91625),s=n(81150),l=n(65443),u=n.n(l);const c=({mode:e,togglePlayback:t,className:n})=>{let l,c=null;switch(e){case"playing":c=r.createElement(i,{className:"m-auto h-9 w-9"}),l="pause";break;case"paused":c=r.createElement(a,{className:"m-auto h-9 w-9"}),l="play";break;case"uploading:starting":case"uploading:pending":case"uploading:finishing":case"uploading:finished":{const t=e.split(":")[1];c=r.createElement(r.Fragment,null,r.createElement(s.H,null),r.createElement("div",{className:"text-xs"},(0,o.t)(`client:post-editor.attachment-state.${t}`)));break}}return r.createElement("button",{type:"button",className:u()("w-[76px] bg-cherry",n),onClick:t,title:l},c)}},96370:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(94159),i=n(84879);function a(e){return i.nL.fromMillis(1e3*e).toFormat("mm:ss")}const o=({currentTime:e,totalDuration:t,seek:n})=>{const[i,o]=(0,r.useState)(!1),s=(0,r.useCallback)((()=>{o(!i)}),[i]);return r.createElement("div",{className:"flex flex-row items-center"},r.createElement("div",{className:"text-xs tabular-nums"},a(e)),r.createElement("input",{type:"range",className:"audio-controls mx-1 flex-1 accent-mango",value:e,max:t,step:"any",onChange:e=>{n(e.target.valueAsNumber)}}),t?r.createElement("button",{className:"cursor-pointer text-xs tabular-nums",onClick:s,type:"button"},a(i?t-e:t)):null)}},46975:function(e,t,n){"use strict";n.d(t,{k:function(){return f}});var r=n(65443),i=n.n(r),a=n(94159),o=n(6285),s=n(60035);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;ti()("rounded-lg","px-3","py-2",{[s.h$]:"small"===e.buttonSize,[s.I1]:"regular"===e.buttonSize,"text-notWhite bg-cherry-500 hover:bg-cherry-600 \n active:bg-cherry-700 disabled:bg-cherry-100 disabled:text-cherry-600":"cherry"===e.buttonColor,"text-notBlack bg-mango-300 hover:bg-mango-400\n active:bg-mango-500 disabled:bg-mango-100 disabled:text-mango-700":"mango"===e.buttonColor,"text-notWhite bg-green-600 hover:bg-green-700 \n active:bg-green-800 disabled:bg-green-100 disabled:text-green-800":"green"===e.buttonColor,"text-notWhite bg-red-500 hover:bg-red-600 \n active:bg-red-700 disabled:bg-red-300 disabled:text-red-800":"destructive"===e.buttonColor,"bg-longan-300 hover:bg-longan-400 \n active:bg-longan-500 dark:bg-cherry-700 dark:hover:bg-cherry-600 \n dark:active:bg-cherry-600 text-notBlack dark:text-notWhite":"theme-sensitive-1"===e.buttonColor,"text-cherry-600 bg-notWhite hover:bg-longan-100\n active:bg-longan-200 border-2 border-cherry-500 disabled:bg-notWhite\n disabled:text-cherry-400 disabled:border-cherry-400":"stroke"===e.buttonColor});function c({as:e="button",...t},n){const{buttonSize:r,buttonColor:o,extraClasses:s,...c}=t,f="flex flex-row justify-center items-center text-center";let d;return d="post-box-filled"===o?i()(u(t),s,f,"co-filled-button"):i()(u(t),s,f),a.createElement(e,l({},c,{className:d,ref:n}),t.children)}const f=a.forwardRef(c)},60035:function(e,t,n){"use strict";n.d(t,{I1:function(){return i},h$:function(){return r}}),n(6285).z.enum(["small","regular"]);const r="text-xs font-bold",i="text-base font-normal"},51412:function(e,t,n){"use strict";n.d(t,{r:function(){return w}});var r=n(65443),i=n.n(r),a=n(94159),o=n(95490);const s="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;function l(e,t,n){return function(e,t,n){const[r,i]=function(e,t,n){const[r,i]=(0,a.useState)((()=>t(e))),l=(0,a.useCallback)((()=>{const a=t(e);o(r,a)||(i(a),n&&n())}),[r,e,n]);return s(l),[r,l]}(e,t,n);return s((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(i,{handlerIds:[t]})}),[e,i]),r}(t,e||(()=>({})),(()=>n.reconnect()))}function u(e){return(0,a.useMemo)((()=>e.hooks.dropTarget()),[e])}var c=n(6117);function f(e,t){"function"==typeof e?e(t):e.current=t}class d{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!function(e,t,n,r){let i;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let n=0;n{const r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{const e=function(e){return(t=null,n=null)=>{if(!(0,a.isValidElement)(t)){const r=t;return e(r,n),r}const r=t;return function(e){if("string"==typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a
, or turn it into a drag source or a drop target itself.`)}(r),function(e,t){const n=e.ref;return(0,c.k)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?(0,a.cloneElement)(e,{ref:e=>{f(n,e),f(t,e)}}):(0,a.cloneElement)(e,{ref:t})}(r,n?t=>e(t,n):e)}}(r);t[n]=()=>e}})),t}({dropTarget:(e,t)=>{var n;this.clearDropTarget(),this.dropTargetOptions=t,null!==(n=e)&&"object"==typeof n&&Object.prototype.hasOwnProperty.call(n,"current")?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var p=n(34156);function h(){const{dragDropManager:e}=(0,a.useContext)(p.L);return(0,c.k)(null!=e,"Expected drag drop context"),e}let m=!1;class g{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,c.k)(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}class v{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function y(e,t){const n=function(e,t){const n=[...t||[]];return null==t&&"function"!=typeof e&&n.push(e),(0,a.useMemo)((()=>"function"==typeof e?e():e),n)}(e,t),r=function(){const e=h();return(0,a.useMemo)((()=>new g(e)),[e])}(),i=function(e){const t=h(),n=(0,a.useMemo)((()=>new d(t.getBackend())),[t]);return s((()=>(n.dropTargetOptions=e||null,n.reconnect(),()=>n.disconnectDropTarget())),[e]),n}(n.options);return function(e,t,n){const r=h(),i=function(e,t){const n=(0,a.useMemo)((()=>new v(e,t)),[t]);return(0,a.useEffect)((()=>{n.spec=e}),[e]),n}(e,t),o=function(e){const{accept:t}=e;return(0,a.useMemo)((()=>((0,c.k)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);s((function(){const[e,a]=function(e,t,n){const r=n.getRegistry(),i=r.addTarget(e,t);return[i,()=>r.removeTarget(i)]}(o,i,r);return t.receiveHandlerId(e),n.receiveHandlerId(e),a}),[r,t,i,n,o.map((e=>e.toString())).join("|")])}(n,r,i),[l(n.collect,r,i),u(i)]}var b=n(66700);const w=({children:e,handleFileDrop:t,className:n=""})=>{const[{canDrop:r,isOver:o},s]=y((()=>({accept:[b.FILE],drop(e){t(e.files)},collect:e=>({isOver:e.isOver(),canDrop:e.canDrop()})})),[]),l=r&&o,u=i()({hidden:!l,block:l});return a.createElement("div",{ref:s,className:`relative ${n}`},a.createElement("div",{className:`absolute inset-0 flex items-center justify-center\n bg-gray-700 bg-opacity-70 text-notWhite ${u} z-50\n backdrop-blur-sm`},"RELEASE TO DROP"),e)}},87124:function(e,t,n){"use strict";n.d(t,{BT:function(){return i.B},Lh:function(){return a.L},Hz:function(){return s}});var r=n(94159),i=n(5471),a=n(70069);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",o({viewBox:"0 0 500 442",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M214.831 81.3559 107.203 10.5932l38.56 131.3558L0 180.932l133.475 35.17-125.42415 225L198.729 305.932l67.796 125.848 2.967-163.983 183.05 101.695-145.339-155.085L500 116.102l-240.254 19.915L294.492 0l-79.661 81.3559Z",fill:"currentColor"}));n(32532),n(94988),n(70512);var l=n(6285);n(74578),l.z.enum(["cohost-logo","cohost-egg","bouba","kiki","pushpin","silence","hashtag","warning","cohost-egg-bookman","cohost-logo-bookman"])},70496:function(e,t,n){"use strict";n.d(t,{v:function(){return c}});var r=n(76051),i=n(81986),a=n(990),o=n(36673),s=n(65443),l=n.n(s),u=n(94159);n(6285).z.enum(["info","warning","done","post-box-info","post-box-warning"]);const c=({level:e,className:t,textSize:n="sm",children:s})=>{let c,f,d;switch(e){case"info":c="bg-mango-100",f=u.createElement(i.Z,{className:"w-6 self-start text-cherry"});break;case"warning":c="bg-strawberry-100",f=u.createElement(a.Z,{className:"w-6 self-start text-strawberry"});break;case"done":c="bg-green-100",f=u.createElement(o.Z,{className:"w-6 self-start text-green-800"});break;case"post-box-info":c=r.tw`co-info-box co-info`,f=u.createElement(i.Z,{className:"w-6 self-start"});break;case"post-box-warning":c=r.tw`co-info-box co-warning`,f=u.createElement(a.Z,{className:"w-6 self-start"})}return d="base"===n?"text-base":"text-sm",u.createElement("div",{className:l()(c,d,"mx-auto flex w-full flex-row gap-4 rounded-lg p-3",t)},f,u.createElement("div",{className:"flex-1 self-center"},s))}},93410:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement("svg",o({viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{d:"M18.2864 8.81325L5.98281 0.649686C3.42546 -1.04714 0 0.777437 0 3.83643V20.1636C0 23.2226 3.42546 25.0471 5.98281 23.3503L18.2864 15.1867C20.5712 13.6708 20.5712 10.3292 18.2864 8.81325Z",fill:"currentColor"})),l=e=>a.createElement("svg",o({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4C0 1.79086 1.79086 0 4 0C6.20914 0 8 1.79086 8 4V20C8 22.2091 6.20914 24 4 24C1.79086 24 0 22.2091 0 20V4ZM20 0C17.7909 0 16 1.79086 16 4V20C16 22.2091 17.7909 24 20 24C22.2091 24 24 22.2091 24 20V4C24 1.79086 22.2091 0 20 0Z",fill:"currentColor"}));var u=n(88658);const c=({isPlaying:e,showPlay:t,extraClasses:n,onPlay:r,onPause:o})=>{return a.createElement("button",{className:i()(n,"cursor-pointer"),onClick:(c=e?o:r,e=>{e.stopPropagation(),c()}),type:"button"},e?a.createElement(u.OZ,{scale:.5,className:"hidden fill-notBlack opacity-90 hover:opacity-100 group-hover:block no-hover:block",fillOpacity:"0.4"},a.createElement(l,{fillOpacity:"1"})):t?a.createElement(u.OZ,{scale:.5,className:"fill-notBlack opacity-90 hover:opacity-100",fillOpacity:"0.4"},a.createElement(s,{fillOpacity:"1"})):null);var c}},91045:function(e,t,n){"use strict";n.d(t,{K:function(){return l},w:function(){return s}});var r=n(71298),i=n(94159),a=n(96780),o=n(46975);const s=e=>i.createElement(r.V,{open:e.isOpen,onClose:e.onCancel},i.createElement(a.Z,null),i.createElement("div",{className:"fixed inset-0 z-10 overflow-y-auto"},i.createElement("div",{className:"flex min-h-full items-center justify-center py-20"},i.createElement(r.V.Panel,{as:"div",className:"cohost-shadow-light dark:cohost-shadow-dark relative mx-auto max-w-sm rounded-lg bg-notWhite p-3 text-notBlack"},e.title?i.createElement(r.V.Title,{className:"text-[1.25rem] font-bold leading-6"},e.title):null,i.createElement("div",{className:"mt-2"},i.createElement("p",{className:"text-sm"},e.body)),e.children&&e.children,i.createElement("div",{className:"mt-4 flex flex-row justify-end gap-2"},e.cancel?i.createElement(o.k,{buttonSize:"regular",buttonColor:e.cancel.color??"stroke",onClick:e.onCancel},e.cancel.label):null,i.createElement(o.k,{buttonSize:"regular",buttonColor:e.confirm.color??"cherry",onClick:e.onConfirm},e.confirm.label)))))),l=e=>{const[t,n]=(0,i.useState)(null);return(0,i.useEffect)((()=>{e.isOpen&&!0!==t?.open?t?.showModal():e.isOpen||!0!==t?.open||t?.close()}),[t,e.isOpen]),i.createElement("dialog",{ref:n,className:"cohost-shadow-light dark:cohost-shadow-dark max-w-sm rounded-lg bg-notWhite p-3 text-notBlack backdrop:bg-notBlack/90",onCancel:t=>{t.preventDefault(),e.onCancel()}},e.title?i.createElement("h2",{className:"text-[1.25rem] font-bold leading-6"},e.title):null,i.createElement("div",{className:"mt-2"},i.createElement("p",{className:"text-sm"},e.body)),e.children&&e.children,i.createElement("div",{className:"mt-4 flex flex-row justify-end gap-2"},e.cancel?i.createElement(o.k,{buttonSize:"regular",buttonColor:e.cancel.color??"stroke",onClick:e.onCancel},e.cancel.label):null,i.createElement(o.k,{buttonSize:"regular",buttonColor:e.confirm.color??"cherry",onClick:e.onConfirm},e.confirm.label)))}},85626:function(e,t,n){"use strict";n.d(t,{D:function(){return s},S:function(){return l}});var r=n(76051),i=n(94159),a=n(65443),o=n.n(a);const s=e=>{const t=o()("inline-block h-3.5",{"group-hover:hidden":null!==e.MouseoverTagIcon});return i.createElement("button",{className:r.tw`co-filled-button group flex items-center justify-start gap-1 rounded-full px-2 py-1 text-sm leading-none`,onClick:e.onClick,type:"button"},i.createElement(e.TagIcon,{className:t}),e.MouseoverTagIcon?i.createElement(e.MouseoverTagIcon,{className:"hidden h-3.5 group-hover:inline-block"}):null,i.createElement("span",{className:"block"},e.tagText))},l=e=>{const t=o()("inline-block h-3.5",{"group-hover:hidden":null!==e.MouseoverTagIcon});return i.createElement("a",{className:r.tw`co-filled-button group flex items-center justify-start gap-1 rounded-full px-2 py-1 text-sm leading-none`,href:e.href},i.createElement(e.TagIcon,{className:t}),e.MouseoverTagIcon?i.createElement(e.MouseoverTagIcon,{className:"hidden h-3.5 group-hover:inline-block"}):null,i.createElement("span",{className:"block"},e.tagText))}},76709:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(94159);class i extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?r.createElement("h1",null,"Something went wrong."):this.props.children}}},4337:function(e,t,n){"use strict";n.d(t,{D:function(){return o},V:function(){return s}});var r=n(94159),i=n(99838);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const o=(0,r.useRef)(null);(0,r.useImperativeHandle)(i,(()=>o.current));const s=(0,r.useRef)(null);(0,r.useEffect)((()=>{s.current&&o.current&&((e,t,n)=>{t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform,t.style.padding=e.padding,t.style.lineHeight=e.lineHeight,t.style.minHeight=n*parseInt(e.lineHeight)+"px"})(window.getComputedStyle(o.current),s.current,e)}),[e]);const l=(0,r.useMemo)((()=>`${t??""} w-full row-start-1 row-end-2 col-start-1 col-end-2 min-h-0`),[t]);return r.createElement("div",{className:"relative grid w-full overflow-auto"},r.createElement("div",{ref:s,className:"invisible col-start-1 col-end-2 row-start-1 row-end-2\n h-min overflow-auto whitespace-pre-wrap break-words"},n.value," "),r.createElement("textarea",a({style:{resize:"none",overflow:"hidden"}},n,{className:l,ref:o,rows:1})))}));o.displayName="ExpandingTextArea";const s=({control:e,name:t,rules:n,...s})=>{const{field:l,fieldState:u}=(0,i.bc)({control:e,name:t,rules:n});return r.createElement(o,a({},s,l,{className:`border-0 ${s.className??""}`}))}},2990:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n.p+"7ec6f0f3aef87d734f9b.png",i=n.p+"3c154cde88b7ed1ca92a.png",a=n.p+"a4f72033a674e35d4cc9.png",o=n.p+"1ba8b89b7a2ed8dd1d04.ico",s=n(61480),l=n(94159),u=n(90275),c=n(72100);const f=()=>l.createElement(u.ql,null,l.createElement("link",{rel:"apple-touch-icon",sizes:"180x180",href:(0,s.S)(r)}),l.createElement("link",{rel:"icon",type:"image/png",sizes:"32x32",href:(0,s.S)(a)}),l.createElement("link",{rel:"icon",type:"image/png",sizes:"16x16",href:(0,s.S)(i)}),l.createElement("link",{rel:"manifest",href:`/static/manifest.json?${c.O.VERSION}`}),l.createElement("link",{rel:"shortcut icon",href:(0,s.S)(o)}),l.createElement("meta",{name:"apple-mobile-web-app-title",content:"cohost"}),l.createElement("meta",{name:"application-name",content:"cohost"}))},91884:function(e,t,n){"use strict";n.d(t,{G:function(){return o}});var r=n(95365),i=n(94159),a=n(40196);const o=({children:e,onFilesPicked:t})=>{const n=(0,i.useRef)(),o=(0,a.N)(),s=(0,i.useCallback)((()=>{n.current||(n.current=document.createElement("input"),n.current.type="file",n.current.accept=(0,r.EC)(o).join(","),n.current.onchange=()=>{n.current?.files&&t&&t(n.current.files),n.current=void 0}),n.current.click()}),[t,o]);return i.createElement(i.Fragment,null,i.Children.toArray(e).filter(i.isValidElement).map((e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{onClick:s}):null)))}},70700:function(e,t,n){"use strict";n.d(t,{Y:function(){return u}});var r=n(40438),i=n(84879),a=n(94159),o=n(62745);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=(0,o.Q)(),[u,c]=(0,a.useState)(i.ou.fromISO(e).toUTC()),[f,d]=(0,a.useState)((()=>r.beatsTimestamps?l(u):u.toLocaleString(i.ou.DATETIME_SHORT))),p=(0,a.useRef)();return(0,a.useEffect)((()=>(function e(){d(r.beatsTimestamps?l(u):u.toRelative({style:"narrow"})??"");let t=6e4;Date.now()-u.toMillis()<6e4&&(t=1e3),p.current=setTimeout(e,t)}(),()=>{p.current&&clearTimeout(p.current)})),[r.beatsTimestamps,u]),(0,a.useEffect)((()=>{c((e=>e.toLocal()))}),[]),(0,a.useEffect)((()=>{c(i.ou.fromISO(e))}),[e]),a.createElement("time",s({dateTime:u.toISO(),className:n.className??"block flex-none text-xs tabular-nums text-gray-500",title:u.toLocaleString(i.ou.DATETIME_MED_WITH_WEEKDAY)},n),t?a.createElement("a",{href:t.toString(),className:"hover:underline"},f):f)}},94988:function(e,t,n){"use strict";n.d(t,{W:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({viewBox:"0 0 69 25",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve"},e,{style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}}),r.createElement("path",{d:"m275.723 316.744 3.445 10.118c-1.844 7.478-3.758 12.916-5.742 16.315-1.985 3.399-4.11 5.099-6.375 5.099-3.625 0-6.653-3.948-9.082-11.844-2.43-7.896-3.645-17.518-3.645-28.865 0-7.687.566-14.72 1.699-21.099 1.133-6.38 2.688-11.347 4.664-14.903 1.977-3.556 4.309-5.334 6.996-5.334 3.219 0 5.848 2.497 7.887 7.491 2.039 4.994 3.059 10.262 3.059 15.805 0 2.353-.16 4.458-.481 6.314-.32 1.856-.808 3.36-1.465 4.51-.656 1.15-1.351 1.726-2.085 1.726-.594 0-1.125-.393-1.594-1.177-.469-.784-.86-1.778-1.172-2.981-.141-.522-.414-2.143-.82-4.863-.516-3.399-.914-5.647-1.196-6.745-.281-1.098-.617-1.948-1.008-2.549-.39-.602-.835-.902-1.335-.902-.813 0-1.59.876-2.333 2.627-.742 1.752-1.351 4.406-1.828 7.962-.476 3.555-.714 7.529-.714 11.922 0 4.811.281 9.138.843 12.981.563 3.844 1.317 6.759 2.262 8.746.945 1.987 1.988 2.98 3.129 2.98 1.094 0 2.195-.993 3.305-2.98 1.109-1.987 2.304-5.438 3.586-10.354ZM295.223 266.231c2.671 0 5 1.752 6.984 5.255 1.984 3.504 3.512 8.275 4.582 14.315 1.07 6.04 1.605 13.112 1.605 21.217 0 12.236-1.187 22.171-3.562 29.806-2.375 7.634-5.547 11.452-9.516 11.452-4.047 0-7.265-3.844-9.656-11.531-2.312-7.32-3.469-17.229-3.469-29.727 0-8.21.528-15.269 1.582-21.178 1.055-5.909 2.582-10.654 4.582-14.236 2-3.582 4.289-5.373 6.868-5.373Zm.093 17.178c-.89 0-1.726.889-2.508 2.667-.781 1.777-1.386 4.392-1.816 7.843-.43 3.451-.644 7.844-.644 13.178 0 5.49.21 10.039.632 13.647.422 3.609 1.004 6.275 1.746 8.001.743 1.726 1.559 2.588 2.45 2.588 1.375 0 2.554-1.947 3.539-5.843.984-3.896 1.476-9.948 1.476-18.158 0-7.948-.457-13.923-1.371-17.923-.914-4-2.082-6-3.504-6ZM318.355 318.47c1.203 0 2.231 1.425 3.082 4.275.852 2.849 1.278 6.288 1.278 10.314s-.426 7.464-1.278 10.314c-.851 2.85-1.879 4.275-3.082 4.275-1.218 0-2.254-1.425-3.105-4.275-.852-2.85-1.277-6.288-1.277-10.314s.425-7.465 1.277-10.314c.851-2.85 1.887-4.275 3.105-4.275Z",style:{fillRule:"nonzero",fill:"currentcolor"},transform:"matrix(1 0 0 .2988 -254.324 -79.5522)"}))},5471:function(e,t,n){"use strict";n.d(t,{B:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({viewBox:"0 0 416 300",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M335.13 249.687c-26.067 15.965-56.123 28.509-90.166 37.631-37.809 10.131-73.445 14.192-106.908 12.183-33.463-2.008-61.9733-10.738-85.5305-26.188-23.5573-15.45-39.4399-38.491-47.64762-69.123-8.2548-30.807-6.03245-58.746 6.66702-83.818 12.6995-25.0714 33.0606-46.755 61.0832-65.0511 28.0229-18.296 60.9379-32.5095 98.7469-42.6402C209.008 2.59678 244.501-1.47294 277.854.471489 300.262 1.778 320.475 6.10779 338.49 13.4609c8.799 3.591 17.073 7.9031 24.824 12.9363 23.621 15.3393 39.536 38.325 47.744 68.957 8.208 30.6318 5.93 58.5388-6.834 83.7218-1.783 3.518-3.714 6.97-5.793 10.358-1.468-6.614-4.418-12.382-8.849-17.302-2.175-2.415-4.593-4.634-7.255-6.655-5.451-4.138-11.924-7.448-19.418-9.932-11.153-3.697-23.582-5.545-37.285-5.545-13.766 0-26.242 1.832-37.428 5.497-11.185 3.665-20.076 9.178-26.673 16.539-6.597 7.362-9.895 16.651-9.895 27.868 0 11.154 3.298 20.427 9.895 27.821 6.597 7.393 15.488 12.954 26.673 16.682 11.186 3.729 23.662 5.593 37.428 5.593 3.24 0 6.408-.104 9.506-.313Zm-119.254-19.859c-2.613 2.804-7.218 5.784-13.814 8.939-6.597 3.155-14.548 5.816-23.853 7.982-9.305 2.167-19.311 3.251-30.019 3.251-9.369 0-18.547-.908-27.533-2.725-8.987-1.816-17.113-4.7-24.379-8.652-7.2658-3.951-13.0497-9.114-17.3519-15.487-4.302-6.374-6.4531-14.118-6.4531-23.232 0-9.241 2.1511-17.049 6.4531-23.422 4.3022-6.374 10.0861-11.504 17.3519-15.392 7.266-3.888 15.392-6.708 24.379-8.461 8.986-1.753 18.164-2.629 27.533-2.629 10.771 0 20.714.956 29.828 2.868s16.937 4.414 23.47 7.505c6.533 3.091 11.265 6.389 14.197 9.895l-24.474 16.061c-3.569-3.888-8.987-6.995-16.252-9.321-7.266-2.327-16.093-3.49-26.482-3.49-5.099 0-10.246.399-15.44 1.195-5.194.797-9.958 2.151-14.292 4.063s-7.824 4.589-10.469 8.031c-2.645 3.442-3.967 7.807-3.967 13.097 0 5.227 1.322 9.545 3.967 12.954 2.645 3.41 6.135 6.119 10.469 8.127 4.334 2.007 9.098 3.425 14.292 4.254 5.194.829 10.341 1.243 15.44 1.243 10.197 0 19.041-1.275 26.529-3.824 7.489-2.55 12.763-5.482 15.823-8.796l25.047 15.966Zm109.748-3.729c13.321 0 23.646-2.39 30.976-7.17 7.329-4.78 10.994-11.121 10.994-19.025 0-8.094-3.681-14.451-11.042-19.072-7.362-4.621-17.671-6.931-30.928-6.931-13.32 0-23.693 2.31-31.118 6.931-7.425 4.621-11.138 10.978-11.138 19.072 0 8.031 3.713 14.404 11.138 19.121 7.425 4.716 17.798 7.074 31.118 7.074Z",fill:"currentColor"}))},70512:function(e,t,n){"use strict";n.d(t,{V:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({},e,{viewBox:"0 0 742 150",xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve"}),r.createElement("path",{d:"m89.16 106.445 14.356 12.598c-7.683 9.31-15.658 16.081-23.926 20.312-8.268 4.232-17.123 6.348-26.563 6.348-15.104 0-27.718-4.915-37.841-14.746C5.062 121.126 0 109.147 0 95.02c0-9.571 2.36-18.327 7.08-26.27 4.72-7.943 11.198-14.128 19.434-18.555 8.235-4.427 17.952-6.64 29.15-6.64 13.412 0 24.365 3.108 32.861 9.326 8.496 6.217 12.745 12.777 12.745 19.678 0 2.929-.668 5.55-2.002 7.861-1.335 2.311-3.37 4.183-6.104 5.615-2.734 1.432-5.631 2.149-8.691 2.149-2.474 0-4.688-.489-6.641-1.465-1.953-.977-3.581-2.214-4.883-3.711-.586-.651-1.725-2.669-3.418-6.055-2.148-4.232-3.808-7.031-4.98-8.398-1.172-1.367-2.572-2.425-4.199-3.174-1.628-.749-3.484-1.123-5.567-1.123-3.385 0-6.624 1.09-9.717 3.271-3.092 2.181-5.631 5.485-7.617 9.912-1.986 4.427-2.978 9.375-2.978 14.844 0 5.99 1.172 11.377 3.515 16.162 2.344 4.785 5.485 8.415 9.424 10.889 3.939 2.474 8.285 3.711 13.037 3.711 4.558 0 9.147-1.237 13.77-3.711 4.622-2.474 9.603-6.771 14.941-12.891ZM170.41 43.555c11.133 0 20.833 2.181 29.102 6.543 8.268 4.362 14.632 10.302 19.092 17.822 4.459 7.519 6.689 16.325 6.689 26.416 0 15.234-4.948 27.604-14.844 37.109-9.896 9.506-23.112 14.258-39.648 14.258-16.862 0-30.274-4.785-40.235-14.355-9.635-9.115-14.453-21.452-14.453-37.012 0-10.221 2.198-19.01 6.592-26.367 4.395-7.357 10.759-13.265 19.092-17.725 8.333-4.459 17.871-6.689 28.613-6.689Zm.391 21.386c-3.711 0-7.194 1.107-10.449 3.321-3.256 2.213-5.778 5.468-7.569 9.765-1.79 4.297-2.685 9.766-2.685 16.407 0 6.836.879 12.5 2.636 16.992 1.758 4.492 4.183 7.812 7.276 9.961 3.092 2.148 6.494 3.222 10.205 3.222 5.729 0 10.644-2.425 14.746-7.275 4.102-4.85 6.152-12.386 6.152-22.607 0-9.896-1.904-17.334-5.713-22.315-3.808-4.98-8.675-7.471-14.599-7.471ZM286.523 0v54.199c6.446-3.906 12.142-6.657 17.09-8.252 4.948-1.595 9.733-2.392 14.356-2.392 6.185 0 11.702 1.318 16.552 3.955 4.851 2.636 8.415 5.941 10.694 9.912 2.278 3.971 3.418 9.277 3.418 15.918v40.723c0 3.971.163 6.38.488 7.226.521 1.237 1.497 2.149 2.93 2.734.846.326 3.157.489 6.933.489h4.59v18.847h-57.422v-18.847h2.93c2.8 0 4.72-.261 5.762-.782 1.041-.52 1.758-1.253 2.148-2.197.391-.944.586-3.239.586-6.885V80.957c0-4.427-.277-7.373-.83-8.838-.553-1.465-1.546-2.669-2.978-3.613-1.433-.944-3.223-1.416-5.372-1.416-3.059 0-6.266.618-9.619 1.855-3.353 1.237-7.438 3.516-12.256 6.836v38.867c0 3.711.196 6.023.586 6.934.391.911 1.14 1.628 2.246 2.148 1.107.521 3.191.782 6.25.782h2.149v18.847h-56.836v-18.847h5.469c3.19 0 5.224-.212 6.103-.635.879-.423 1.546-1.139 2.002-2.148.456-1.01.684-3.012.684-6.006V27.246h-14.258V8.301c5.404-.326 11.475-1.253 18.213-2.783 6.738-1.53 12.809-3.37 18.213-5.518h9.179ZM430.469 43.555c11.133 0 20.833 2.181 29.101 6.543 8.269 4.362 14.632 10.302 19.092 17.822 4.46 7.519 6.69 16.325 6.69 26.416 0 15.234-4.948 27.604-14.844 37.109-9.896 9.506-23.112 14.258-39.649 14.258-16.862 0-30.273-4.785-40.234-14.355-9.635-9.115-14.453-21.452-14.453-37.012 0-10.221 2.197-19.01 6.592-26.367 4.394-7.357 10.758-13.265 19.091-17.725 8.334-4.459 17.872-6.689 28.614-6.689Zm.39 21.386c-3.711 0-7.194 1.107-10.449 3.321-3.255 2.213-5.778 5.468-7.568 9.765-1.791 4.297-2.686 9.766-2.686 16.407 0 6.836.879 12.5 2.637 16.992 1.758 4.492 4.183 7.812 7.275 9.961 3.093 2.148 6.495 3.222 10.205 3.222 5.73 0 10.645-2.425 14.747-7.275 4.101-4.85 6.152-12.386 6.152-22.607 0-9.896-1.904-17.334-5.713-22.315-3.809-4.98-8.675-7.471-14.6-7.471ZM566.504 45.898h12.793l7.91 27.149-18.457 7.422c-3.516-5.664-7.926-10.108-13.232-13.33-5.306-3.223-10.564-4.834-15.772-4.834-3.45 0-6.022.586-7.715 1.758-1.692 1.171-2.539 2.571-2.539 4.199 0 1.367.602 2.636 1.807 3.808 1.204 1.172 3.694 2.409 7.471 3.711l26.855 9.571c4.753 1.692 9.31 3.808 13.672 6.347 4.362 2.539 7.633 5.648 9.814 9.326 2.181 3.679 3.272 7.992 3.272 12.94 0 8.854-3.386 16.113-10.156 21.777-7.943 6.641-17.839 9.961-29.688 9.961-10.156 0-19.01-2.571-26.562-7.715l-2.735 5.371h-12.988l-12.012-32.031 18.457-7.812c4.623 7.226 10.319 12.907 17.09 17.041 6.771 4.134 12.988 6.201 18.652 6.201 3.516 0 6.478-.814 8.887-2.442 1.823-1.302 2.734-2.832 2.734-4.589 0-1.498-.716-2.93-2.148-4.297-1.432-1.367-4.59-2.897-9.473-4.59l-21.093-7.324c-11.654-4.102-19.58-8.48-23.78-13.135-4.199-4.655-6.298-10.173-6.298-16.553 0-8.203 3.287-15.104 9.863-20.703 7.487-6.38 16.732-9.57 27.734-9.57 9.766 0 18.132 2.213 25.098 6.64l2.539-4.297ZM648.145 12.402v33.496h31.445v20.801h-31.445v33.985c0 7.682.406 12.614 1.22 14.795.814 2.181 2.328 3.922 4.541 5.224 2.93 1.758 6.283 2.637 10.059 2.637 6.706 0 13.379-2.181 20.019-6.543v20.898c-5.664 2.67-10.791 4.541-15.38 5.616-4.59 1.074-9.555 1.611-14.893 1.611-6.055 0-11.41-.765-16.065-2.295-4.654-1.53-8.626-3.711-11.914-6.543-3.287-2.832-5.566-5.843-6.836-9.033-1.269-3.19-1.904-7.813-1.904-13.867V66.699h-14.648v-18.75c5.208-1.692 9.668-4.118 13.379-7.275 3.711-3.158 6.689-6.95 8.935-11.377 2.246-4.427 3.793-10.059 4.639-16.895h18.848ZM722.852 108.594c5.013 0 9.293 1.774 12.841 5.322 3.549 3.548 5.323 7.829 5.323 12.842 0 5.013-1.774 9.293-5.323 12.842-3.548 3.548-7.828 5.322-12.841 5.322-5.079 0-9.392-1.774-12.94-5.322-3.548-3.549-5.322-7.829-5.322-12.842 0-5.013 1.774-9.294 5.322-12.842s7.861-5.322 12.94-5.322Z",fill:"currentColor"}))},70069:function(e,t,n){"use strict";n.d(t,{L:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({},e,{viewBox:"0 0 506 128",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"cohost"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.814 106.403C131.705 113.206 118.897 118.552 104.39 122.439C88.2779 126.756 73.0919 128.487 58.8317 127.631C44.5716 126.775 32.4222 123.055 22.3834 116.471C12.3446 109.887 5.57634 100.068 2.07868 87.0142C-1.43905 73.886 -0.492012 61.9799 4.9198 51.2958C10.3316 40.6118 19.0083 31.3714 30.95 23.5747C42.8917 15.7779 56.9185 9.72092 73.0304 5.40379C89.0677 1.1066 104.193 -0.627685 118.406 0.200922C127.955 0.757684 136.568 2.6028 144.246 5.73626C147.995 7.26657 151.521 9.10414 154.824 11.249C164.89 17.7858 171.672 27.581 175.17 40.6346C178.667 53.6882 177.697 65.5807 172.258 76.312C171.498 77.8112 170.675 79.2823 169.789 80.7261C169.163 77.9074 167.906 75.4497 166.018 73.353C165.091 72.3236 164.061 71.3784 162.926 70.5172C160.603 68.7538 157.845 67.3429 154.652 66.2845C149.898 64.7092 144.602 63.9216 138.763 63.9216C132.896 63.9216 127.58 64.7024 122.813 66.2641C118.046 67.8259 114.257 70.1752 111.446 73.3122C108.635 76.4492 107.23 80.4078 107.23 85.188C107.23 89.9411 108.635 93.8928 111.446 97.0434C114.257 100.194 118.046 102.564 122.813 104.153C127.58 105.741 132.896 106.536 138.763 106.536C140.143 106.536 141.493 106.492 142.814 106.403ZM91.9944 97.9397C90.8808 99.1348 88.9185 100.404 86.1074 101.749C83.2963 103.093 79.9081 104.227 75.9427 105.151C71.9773 106.074 67.7132 106.536 63.1502 106.536C59.1577 106.536 55.2466 106.149 51.417 105.375C47.5875 104.601 44.1245 103.372 41.0283 101.688C37.932 100.004 35.4672 97.8039 33.6339 95.0879C31.8006 92.3719 30.8839 89.0719 30.8839 85.188C30.8839 81.2498 31.8006 77.9227 33.6339 75.2066C35.4672 72.4906 37.932 70.3042 41.0283 68.6475C44.1245 66.9907 47.5875 65.7888 51.417 65.0419C55.2466 64.295 59.1577 63.9216 63.1502 63.9216C67.7403 63.9216 71.9773 64.329 75.8612 65.1438C79.7451 65.9586 83.079 67.0246 85.8629 68.3419C88.6469 69.6592 90.6635 71.0647 91.9129 72.5585L81.4834 79.4028C79.9624 77.7461 77.6538 76.4221 74.5575 75.4307C71.4613 74.4394 67.6996 73.9437 63.2725 73.9437C61.0997 73.9437 58.9065 74.1135 56.6929 74.4529C54.4793 74.7925 52.4491 75.3696 50.6022 76.1844C48.7554 76.9992 47.2683 78.1399 46.1412 79.6066C45.014 81.0732 44.4504 82.9337 44.4504 85.188C44.4504 87.4151 45.014 89.2553 46.1412 90.7083C47.2683 92.1614 48.7554 93.3157 50.6022 94.1712C52.4491 95.0268 54.4793 95.6311 56.6929 95.9842C58.9065 96.3373 61.0997 96.5138 63.2725 96.5138C67.6181 96.5138 71.3866 95.9706 74.5779 94.8842C77.7692 93.7978 80.0167 92.5484 81.3204 91.1361L91.9944 97.9397ZM138.763 96.3508C144.439 96.3508 148.839 95.3323 151.963 93.2953C155.086 91.2583 156.648 88.5559 156.648 85.188C156.648 81.7386 155.079 79.0294 151.942 77.0603C148.805 75.0912 144.412 74.1066 138.763 74.1066C133.086 74.1066 128.666 75.0912 125.502 77.0603C122.338 79.0294 120.756 81.7386 120.756 85.188C120.756 88.6102 122.338 91.3262 125.502 93.3361C128.666 95.3459 133.086 96.3508 138.763 96.3508Z",fill:"currentColor"}),r.createElement("path",{d:"M194.473 106.424V42.5023H207.737V72.5055C210.187 70.215 213.403 68.4904 217.385 67.3319C221.366 66.1733 225.888 65.594 230.948 65.594C238.592 65.594 244.285 67.2054 248.027 70.4281C251.769 73.6508 253.64 78.871 253.64 86.0889V106.424H240.297V87.2474C240.297 84.078 239.824 81.6543 238.878 79.9764C237.933 78.2984 236.415 77.1465 234.324 76.5206C232.233 75.8947 229.457 75.5818 225.994 75.5818C222.984 75.5818 220.135 75.9413 217.445 76.6604C214.755 77.3796 212.524 78.4183 210.753 79.7766C208.982 81.135 207.976 82.7596 207.737 84.6506V106.424H194.473V106.424Z",fill:"currentColor"}),r.createElement("path",{d:"M394.498 106.615C387.518 106.615 381.312 106.167 375.88 105.27C370.448 104.374 366.36 103.22 363.617 101.808L373.313 93.9039C374.943 94.8273 377.707 95.649 381.604 96.3687C385.502 97.0884 389.895 97.4484 394.784 97.4484C400.352 97.4484 404.69 97.0816 407.8 96.3483C410.91 95.615 412.465 94.6101 412.465 93.3335C412.465 92.573 411.766 91.962 410.367 91.5002C408.968 91.0385 406.7 90.6379 403.563 90.2984C400.426 89.9589 396.237 89.6262 390.995 89.3003C382.466 88.7299 375.941 87.4398 371.419 85.43C366.897 83.4201 364.636 80.3781 364.636 76.3041C364.636 74.1041 365.512 72.2233 367.264 70.6616C369.015 69.0998 371.378 67.8301 374.352 66.8524C377.326 65.8746 380.681 65.1548 384.415 64.6931C388.15 64.2314 391.986 64.0005 395.924 64.0005C404.1 64.0005 410.455 64.503 414.991 65.5079C419.527 66.5128 422.256 67.3005 423.18 67.8709L414.217 76.7523C413.809 76.4535 412.961 76.1072 411.67 75.7133C410.38 75.3196 408.819 74.9325 406.985 74.5523C405.152 74.172 403.21 73.8529 401.159 73.5949C399.109 73.3369 397.119 73.2078 395.191 73.2078C392.04 73.2078 389.168 73.3233 386.574 73.5541C383.981 73.785 381.923 74.1381 380.402 74.6134C378.881 75.0887 378.121 75.7202 378.121 76.5078C378.121 77.5399 379.486 78.2936 382.215 78.7689C384.945 79.2442 389.637 79.6991 396.291 80.1337C399.713 80.3781 403.169 80.738 406.659 81.2133C410.15 81.6886 413.341 82.3812 416.233 83.2911C419.126 84.2009 421.448 85.4163 423.2 86.9373C424.952 88.4583 425.828 90.3595 425.828 92.641C425.828 95.194 425.006 97.3532 423.363 99.1187C421.72 100.884 419.445 102.324 416.539 103.437C413.633 104.551 410.292 105.359 406.517 105.861C402.742 106.364 398.735 106.615 394.498 106.615Z",fill:"currentColor"}),r.createElement("path",{d:"M449.364 76.7974V67.4755H469.77V53.3752H482.617V67.4755H506V76.7974H482.617V98.0654H501.3V106.643H469.77V76.7974H449.364Z",fill:"currentColor"}),r.createElement("path",{d:"M308.663 106.615C302.797 106.615 297.48 105.82 292.713 104.232C287.947 102.643 284.158 100.273 281.347 97.1224C278.536 93.9718 277.13 90.02 277.13 85.267C277.13 80.4868 278.536 76.5282 281.347 73.3912C284.158 70.2542 287.947 67.9048 292.713 66.3431C297.48 64.7814 302.797 64.0005 308.663 64.0005C314.503 64.0005 319.799 64.7882 324.552 66.3635C329.305 67.9387 333.094 70.2949 335.918 73.4319C338.743 76.5689 340.155 80.5139 340.155 85.267C340.155 90.02 338.743 93.9718 335.918 97.1224C333.094 100.273 329.305 102.643 324.552 104.232C319.799 105.82 314.503 106.615 308.663 106.615ZM308.663 96.4298C314.34 96.4298 318.74 95.4113 321.863 93.3743C324.986 91.3373 326.548 88.6348 326.548 85.267C326.548 81.8176 324.98 79.1084 321.843 77.1393C318.706 75.1701 314.312 74.1856 308.663 74.1856C302.987 74.1856 298.566 75.1701 295.402 77.1393C292.238 79.1084 290.656 81.8176 290.656 85.267C290.656 88.6892 292.238 91.4052 295.402 93.415C298.566 95.4249 302.987 96.4298 308.663 96.4298Z",fill:"currentColor"}))},74578:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({version:"1.1",viewBox:"0 0 64 64",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{d:"M33.9858,39.98h-3.9769l-5.73312e-08,-3.45466e-10c-0.555202,-0.00334555 -1.00799,0.444022 -1.01134,0.999224c-9.55879e-05,0.0158631 0.000184309,0.0317262 0.000839456,0.047576l0.09,1.8926l8.1077e-07,1.69924e-05c0.224947,4.71451 0.713306,9.41275 1.46279,14.0727l-3.37575e-08,-8.77512e-08c0.307198,0.798549 1.20358,1.19687 2.00213,0.889668c0.409051,-0.15736 0.732308,-0.480618 0.889668,-0.889668l1.85145e-06,-1.15151e-05c0.74926,-4.66004 1.23769,-9.35829 1.463,-14.0728l0.09,-1.8926l-9.29513e-09,2.2352e-07c0.0230619,-0.554567 -0.407808,-1.02283 -0.962375,-1.04589c-0.0159302,-0.000662462 -0.0318738,-0.000945741 -0.0478175,-0.000849598Zm5.9856,-11.717l1.33361e-07,4.48278e-08c-0.58324,-0.196049 -0.99529,-0.718529 -1.05,-1.3314l-0.8205,-10.667l-4.90502e-10,-6.9529e-09c-0.0497118,-0.704677 0.367623,-1.35886 1.0276,-1.6108l-6.42663e-07,2.67145e-07c2.01747,-0.838631 3.67436,-2.36219 4.6789,-4.3024l2.26452e-08,-4.19035e-08c0.128914,-0.238548 0.195862,-0.505649 0.1947,-0.7768v0c0,-0.878133 -0.711867,-1.59 -1.59,-1.59c0,0 0,0 0,0h-20.8193h-6.95011e-08c-0.878133,3.83844e-08 -1.59,0.711867 -1.59,1.59l7.33895e-09,-1.713e-06c-0.00116183,0.271151 0.0657851,0.538252 0.194699,0.7768l-8.24693e-07,-1.59257e-06c1.00466,1.94011 2.66151,3.46364 4.6789,4.3024l1.00815e-08,3.848e-09c0.660013,0.251921 1.07742,0.906088 1.0278,1.6108l-0.82,10.667l6.01455e-08,-6.73762e-07c-0.0547098,0.612871 -0.46676,1.13535 -1.05,1.3314c-2.4539,0.8713 -6.0307,3.2637 -6.0307,7.7171v0.4093l2.13163e-14,-2.40083e-07c-1.32594e-07,0.878133 0.711867,1.59 1.59,1.59c0,0 3.55271e-15,0 3.55271e-15,0h24.8183l-6.95011e-08,-7.10543e-15c0.878133,3.83844e-08 1.59,-0.711867 1.59,-1.59c0,0 0,-7.10543e-15 0,-7.10543e-15v-0.409398c0.0005,-4.4533 -3.5765,-6.8457 -6.0304,-7.717Z",fill:"currentColor",fillRule:"evenodd"}))},32532:function(e,t,n){"use strict";n.d(t,{$:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.58579 15.002H7C6.44772 15.002 6 14.5543 6 14.002V10.002C6 9.44972 6.44772 9.002 7 9.002H8.58579L13.2929 4.2949C13.9229 3.66493 15 4.1111 15 5.002V19.002C15 19.8929 13.9229 20.3391 13.2929 19.7091L8.58579 15.002Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("path",{d:"M20 4L16.8096 7.19036M4 20L7.19005 16.81L10.1144 13.8856M10.1144 13.8856L13.8856 10.1144L16.8096 7.19036M10.1144 13.8856L16.8096 7.19036",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},88658:function(e,t,n){"use strict";n.d(t,{OZ:function(){return o},Ov:function(){return s}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement("svg",i({viewBox:"0 0 25 18",xmlns:"http://www.w3.org/2000/svg",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},t,{ref:n,role:"button"}),r.createElement("path",{d:"M14.923 17.087c-2.254.666-4.388.967-6.402.905-2.014-.062-3.742-.532-5.183-1.409-1.442-.877-2.436-2.217-2.982-4.022-.549-1.814-.463-3.476.257-4.985.719-1.51 1.905-2.832 3.557-3.965C5.823 2.478 7.776 1.578 10.03.913c2.243-.663 4.369-.965 6.376-.906 2.007.059 3.733.523 5.178 1.394 1.446.87 2.441 2.207 2.987 4.011.546 1.804.457 3.464-.266 4.981-.724 1.516-1.908 2.845-3.551 3.987-1.644 1.143-3.588 2.045-5.831 2.707Z",style:{fillRule:"nonzero"}}),e)));a.displayName="NestedEgg";const o=(0,r.forwardRef)((({children:e,scale:t=.8,rotation:n=0,...o},s)=>r.createElement(a,i({},o,{ref:s}),r.createElement("g",{"transform-origin":"center center",transform:`scale(${t} ${t}) rotate(${n})`},e))));o.displayName="IconEgg";const s=(0,r.forwardRef)((({children:e,...t},n)=>r.createElement(a,i({},t,{ref:n}),r.createElement("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"middle",className:"cursor-pointer select-none fill-current font-atkinson text-[10px] font-bold leading-none"},e))));s.displayName="TextEgg"},86379:function(e,t,n){"use strict";n.d(t,{Z:function(){return Le}});var r=n(94159),i=n(74993);function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"==typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function u(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function c(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(c)(e,t)}if("function"!=typeof e)throw new Error(a(2));var i=e,s=t,f=[],d=f,p=!1;function h(){d===f&&(d=f.slice())}function m(){if(p)throw new Error(a(3));return s}function g(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),f=null}}}function v(e){if(!u(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,s=i(s,e)}finally{p=!1}for(var t=f=d,n=0;n=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,o);if(null==l)return void e.dispatch(w);let u=null;if(i){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){(0,f.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),u=a(l)}e.dispatch(b(i,u));const c=s.getSource(l).beginDrag(o,l);if(null==c)return;!function(e){(0,f.k)(d(e),"Item must be an object.")}(c),s.pinSource(l);const p=s.getSourceType(l);return{type:h,payload:{itemType:p,item:c,sourceId:l,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){for(var t=1;t{const o=function(e,t,n,r){const i=n.getTarget(e);let a=i?i.drop(r,e):void 0;return function(e){(0,f.k)(void 0===e||d(e),"Drop result must either be an object or undefined.")}(a),void 0===a&&(a=0===t?{}:r.getDropResult()),a}(i,a,r,n),s={type:v,payload:{dropResult:E({},t,o)}};e.dispatch(s)}))}}function T(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){(0,f.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:y}}}function S(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function C(e){return function(t,{clientOffset:n}={}){!function(e){(0,f.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const i=e[r];S(t.getTargetType(i),n)||e.splice(r,1)}}(r,a,i.getItemType()),function(e,t,n){(0,f.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,f.k)(!t.didDrop(),"Cannot call hover after drop.");for(let t=0;t{const a=n[i];var o;return r[i]=(o=a,(...n)=>{const r=o.apply(e,n);void 0!==r&&t(r)}),r}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function I(e,t){return{x:e.x-t.x,y:e.y-t.y}}const N=[],P=[];N.__IS_NONE__=!0,P.__IS_ALL__=!0;class R{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;(0,f.k)("function"==typeof e,"listener must be a function."),(0,f.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const a=i===r||i===r+1&&!function(e,t){return e!==N&&(e===P||void 0===t||(n=e,t.filter((e=>n.indexOf(e)>-1))).length>0);var n}(t.dirtyHandlerIds,n);a||e()}finally{r=i}}))}subscribeToOffsetChange(e){(0,f.k)("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,f.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return(0,f.k)(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&(S(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e))}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return(0,f.k)(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&(this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e))}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!S(r,i))return!1;const a=this.getTargetIds();if(!a.length)return!1;const o=a.indexOf(e);return n?o===a.length-1:o>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?I((a=r,{x:(i=t).x+a.x,y:i.y+a.y}),n):null;var i,a}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?I(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const L="undefined"!=typeof global?global:self,M=L.MutationObserver||L.WebKitMutationObserver;function D(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const F="function"==typeof M?function(e){let t=1;const n=new M(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:D;class j{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const B=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.indexthis.capacity){for(let t=0,n=e.length-this.index;t{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=F(this.flush),this.requestErrorThrow=D((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},q=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new j(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(B.registerPendingError),H="dnd-core/ADD_SOURCE",z="dnd-core/ADD_TARGET",U="dnd-core/REMOVE_SOURCE",V="dnd-core/REMOVE_TARGET";function $(e,t){t&&Array.isArray(e)?e.forEach((e=>$(e,!1))):(0,f.k)("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var W;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(W||(W={}));let G=0;function Z(e){switch(e[0]){case"S":return W.SOURCE;case"T":return W.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function K(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,i]}=n.next();if(i===t)return!0;r=!!e}while(!r);return!1}class Q{addSource(e,t){$(e),function(e){(0,f.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,f.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,f.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(W.SOURCE,e,t);return this.store.dispatch(function(e){return{type:H,payload:{sourceId:e}}}(n)),n}addTarget(e,t){$(e,!0),function(e){(0,f.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,f.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,f.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(W.TARGET,e,t);return this.store.dispatch(function(e){return{type:z,payload:{targetId:e}}}(n)),n}containsHandler(e){return K(this.dragSources,e)||K(this.dropTargets,e)}getSource(e,t=!1){return(0,f.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,f.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,f.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,f.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Z(e)===W.SOURCE}isTargetId(e){return Z(e)===W.TARGET}removeSource(e){var t;(0,f.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:U,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},B.enqueueTask(q.create(t))}removeTarget(e){(0,f.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:V,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,f.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,f.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(G++).toString();switch(e){case W.SOURCE:return`S${t}`;case W.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===W.SOURCE?this.dragSources.set(r,n):e===W.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Y=(e,t)=>e===t;function J(e=N,t){switch(t.type){case g:break;case H:case z:case V:case U:return N;default:return P}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,i=function(e,t){const n=new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const i=[];return n.forEach(((e,t)=>{1===e&&i.push(t)})),i}(n,r);if(!(i.length>0)&&function(e,t,n=Y){if(e.length!==t.length)return!1;for(let r=0;re!==i)))});case v:return re({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case y:return re({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,i}function oe(e=0,t){switch(t.type){case H:case z:return e+1;case U:case V:return e-1;default:return e}}function se(e=0){return e+1}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ue(e){for(var t=1;te&&e[t]?e[t]:r||null),n))})}),dragOffset:te(e.dragOffset,t),refCount:oe(e.refCount,t),dragOperation:ae(e.dragOperation,t),stateId:se(e.stateId)};var n,r}function fe(e,t,n={},r=!1){const i=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return c(ce,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),a=new R(i,new Q(i)),o=new A(i,a),s=e(o,t,n);return o.receiveBackend(s),o}var de=n(34156);let pe=0;const he=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var me=(0,r.memo)((function(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["children"]);const[a,o]=function(e){if("manager"in e)return[{dragDropManager:e.manager},!1];return[function(e,t=ge(),n,r){const i=t;return i[he]||(i[he]={dragDropManager:fe(e,t,n,r)}),i[he]}(e.backend,e.context,e.options,e.debugMode),!e.context]}(n);return(0,r.useEffect)((()=>{if(o){const e=ge();return++pe,()=>{0==--pe&&(e[he]=null)}}}),[]),(0,i.jsx)(de.L.Provider,{value:a,children:t})}));function ge(){return"undefined"!=typeof global?global:window}function ve(e){let t=null;return()=>(null==t&&(t=e()),t)}class ye{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const i=[];return n.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter((e=>e!==r))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class be{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}var we=n(66700);function ke(e,t,n){const r=t.reduce(((t,n)=>t||e.getData(n)),"");return null!=r?r:n}const _e={[we.FILE]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[we.HTML]:{exposeProperties:{html:(e,t)=>ke(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[we.URL]:{exposeProperties:{urls:(e,t)=>ke(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[we.TEXT]:{exposeProperties:{text:(e,t)=>ke(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Ee(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(_e).filter((e=>{const n=_e[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const xe=ve((()=>/firefox/i.test(navigator.userAgent))),Te=ve((()=>Boolean(window.safari)));class Se{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:i,c3s:a}=this;let o=t.length-1;if(e===t[o])return n[o];let s,l=0,u=a.length-1;for(;l<=u;){s=Math.floor(.5*(l+u));const r=t[s];if(re))return n[s];u=s-1}}o=Math.max(0,u);const c=e-t[o],f=c*c;return n[o]+r[o]*c+i[o]*f+a[o]*c*f}constructor(e,t){const{length:n}=e,r=[];for(let e=0;ee[t]{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Ne({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Ne({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(we).some((t=>we[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=_e[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new be(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Ce(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Oe(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,i=Ee(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:a,offsetX:o,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),l=function(e,t,n,r,i){const a="IMG"===(o=t).nodeName&&(xe()||!(null===(s=document.documentElement)||void 0===s?void 0:s.contains(o)));var o,s;const l=Ce(a?e:t),u={x:n.x-l.x,y:n.y-l.y},{offsetWidth:c,offsetHeight:f}=e,{anchorX:d,anchorY:p}=r,{dragPreviewWidth:h,dragPreviewHeight:m}=function(e,t,n,r){let i=e?t.width:n,a=e?t.height:r;return Te()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}(a,t,c,f),{offsetX:g,offsetY:v}=i,y=0===v||v;return{x:0===g||g?g:new Se([0,.5,1],[u.x,u.x/c*h,u.x+h-c]).interpolate(d),y:y?v:(()=>{let e=new Se([0,.5,1],[u.y,u.y/f*m,u.y+m-f]).interpolate(p);return Te()&&a&&(e+=(window.devicePixelRatio-1)*m),e})()}}(t,i,n,{anchorX:e,anchorY:a},{offsetX:o,offsetY:s});r.setDragImage(i,l.x,l.y)}}try{null==r||r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Ee(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Oe(e)}),t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Oe(e),this.scheduleHover(t),(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Ee(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Oe(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Ae(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new ye(this.isNodeInDocument)}}const Re=function(e,t,n){return new Pe(e,t,n)};var Le=e=>r.createElement(me,{backend:Re},e.children)},23006:function(e,t,n){"use strict";n.d(t,{o:function(){return v},e:function(){return y}});var r=n(20182),i=n(71298),a=n(94159),o=a.forwardRef((function({title:e,titleId:t,...n},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z",clipRule:"evenodd"}))})),s=n(65443),l=n.n(s),u=n(49795),c=n(88658),f=n(96780),d=n(61888);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const s=(0,u.useSwipeable)({onSwipedRight:()=>{n>0&&i(n-1)},onSwipedLeft:()=>{n{l.current?.focus()}),[l]),(0,a.useEffect)((()=>{e.forEach((({attachment:e})=>{(new Image).src=e.fileURL}))}));const f=e=>t=>{i(e),t.stopPropagation()},d=1===e.length,h=d?"max-h-[calc(100vh_-_4rem)]":"max-h-[calc(100vh_-_14rem)]";return a.createElement("div",p({},s,{ref:l,onClick:t,onKeyDown:t=>{switch(t.key){case"ArrowLeft":case"H":case"h":n>0&&i(n-1);break;case"ArrowRight":case"L":case"l":n0?"visible":"invisible"}`,onClick:f(n-1)},a.createElement(o,null)),a.createElement(c.OZ,{className:`${m} ${na.createElement("button",{key:e.attachmentId,onClick:f(t),type:"button"},a.createElement("img",{src:e.fileURL,className:"cohost-shadow-dark box-content aspect-square h-16 cursor-pointer rounded-lg object-cover "+(t===n?"border-2 border-cherry":""),alt:e.altText})))))))},v=({children:e,...t})=>{const[n,r]=(0,a.useState)(!1),[o,s]=(0,a.useState)(0),[l,u]=(0,a.useState)({}),[c,d]=(0,a.useState)(0),p=()=>{r(!1)};return a.createElement(a.Fragment,null,a.createElement(h.Provider,{value:{openLightbox:(e,t)=>{s(e);const n=l[e]?.findIndex((e=>e.attachment.attachmentId===t))??0;d(n),r(!0)},closeLightbox:p,setLightboxContentForPost:(e,t)=>{l[e]||(l[e]=t,u(l))}}},e),a.createElement(i.V,{onClose:p,open:n},a.createElement(f.Z,{className:"bg-notBlack"}),a.createElement("div",{className:"fixed inset-0 z-10 overflow-y-auto"},a.createElement("div",{className:"flex min-h-full items-center justify-center py-20"},a.createElement(g,{content:l[o]??[],onClick:p,carouselIndex:c,setCarouselIndex:d})))))},y=()=>(0,a.useContext)(h)},81150:function(e,t,n){"use strict";n.d(t,{H:function(){return d},g:function(){return f}});var r=n(94159),i=n(12093),a=n(18887),o=n.n(a),s=n(61888),l=n.n(s);function u(e){return e.keys().map((t=>{const n=o().basename(t,o().extname(t));return{baseUrl:e(t),name:n}}))}const c=[..."undefined"!=typeof process&&"test"===process.env?.RUN_MODE?[]:u(n(22782)),..."undefined"!=typeof process&&"test"===process.env?.RUN_MODE?[]:u(n(43258))].filter((e=>e.name.includes("eggbug")&&"eggbug-classic"!==e.name)),f=({className:e})=>r.createElement("div",{className:`flex flex-row items-center gap-2 motion-safe:animate-bounce motion-reduce:animate-pulse ${e??""}`},r.createElement(d,null),"loading..."),d=()=>{const e=l().sample(c)?.baseUrl;return e?r.createElement("img",{className:"inline-block h-6 flex-none",src:i.ZP.public.static.staticAsset({path:e}).toString(),alt:""}):null}},81732:function(e,t,n){"use strict";n.d(t,{V:function(){return a},m:function(){return o}});var r=n(94159),i=n(61888);const a=r.createContext({activate:i.noop,isOpen:!1,close:i.noop,setup:i.noop,hasBeenSetup:!1}),o=()=>r.useContext(a)},30272:function(e,t,n){"use strict";n.d(t,{T:function(){return w}});var r=n(97244),i=n(15674),a=n(94159),o=n(8227),s=n(88658),l=n(71860),u=n(62745),c=n(81150),f=n(12093),d=n(38934),p=n(52786),h=n(91625),m=n(91045),g=n(81732),v=n(98074);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{activate:t,isOpen:n,close:l,hasBeenSetup:c}=(0,g.m)(),{activated:p}=(0,o.Pc)(),h=(0,d.dg)(),m=(0,u.Q)();return p&&c&&h?.handle?a.createElement("div",{className:"fixed bottom-4 right-4 z-20"},n?e?null:a.createElement(s.OZ,{className:"cohost-shadow-light dark:cohost-shadow-dark inline-block h-8 cursor-pointer fill-composeButton text-text hover:fill-text hover:text-composeButton",onClick:e=>{e.preventDefault(),l()}},a.createElement(r.Z,null)):a.createElement("a",{href:f.ZP.public.project.composePost({projectHandle:h.handle}).toString(),onClick:e=>{console.log(m),m.disableModalPostComposer||(e.preventDefault(),t({}))}},a.createElement(s.OZ,{className:"cohost-shadow-light dark:cohost-shadow-dark inline-block h-8 cursor-pointer fill-composeButton text-text hover:fill-text hover:text-composeButton"},a.createElement(i.Z,null)))):null},w=({children:e})=>{const t=(0,v.rA)(),[n,r]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1),{activated:u}=(0,o.Pc)(),f=(0,a.useCallback)((()=>{r(!1)}),[]),d=(0,a.useCallback)((()=>{const e=h.current?.attemptClose();!0!==e?A(!0):f()}),[f]),h=(0,a.useRef)(null),m=(0,a.useRef)(null),[w,_]=(0,a.useState)(null),E=l.S.posts.postComposerSettings.useQuery({},{enabled:u,suspense:!0}),x=(0,a.useCallback)((e=>{i||(_({cws:E.data?.defaultCws??[],initialAdultContent:E.data?.defaultAdultContent??!1,tags:E.data?.defaultTags??[],initialPost:void 0,isModal:!0,onClose:f,shareOf:void 0,project:e.project,finishedRedirect:e=>{f(),m.current&&m.current(e)}}),s(!0))}),[f,i,E.data]),T=(0,a.useCallback)((e=>{if(!w)return void console.error("ModalPostComposer: setup hasn't been run");const t={...w};t.shareOf=e.shareOf,t.responseToAskId=e.responseToAskId,m.current=e.onPost??null,_(t),r(!0)}),[w]),[S,C]=(0,a.useState)(null);(0,a.useEffect)((()=>{n&&!0!==S?.open?S?.showModal():n||!0!==S?.open||S?.close()}),[S,n]);const[O,A]=(0,a.useState)(!1);return a.createElement(g.V.Provider,{value:{setup:x,isOpen:n,activate:T,close:f,hasBeenSetup:i}},e,u?a.createElement(a.Fragment,null,a.createElement(b,{hideWhenOpen:!0}),a.createElement("dialog",{ref:C,className:"co-themed-box h-auto max-h-screen max-w-full flex-col items-start justify-stretch gap-6 bg-transparent px-0 py-12 text-inherit backdrop:bg-notBlack/90 open:flex lg:px-6",onClick:e=>{e.target===e.currentTarget&&d()},onCancel:e=>{e.preventDefault(),d()},"data-theme":t.current},w?a.createElement(a.Suspense,{fallback:a.createElement(c.g,{className:"text-xl text-notWhite"})},n?a.createElement(p.b,y({},w,{isModal:!0,onClose:d})):null):null),a.createElement(k,{onDiscard:()=>{A(!1),f()},onCancel:()=>{A(!1)},isOpen:O})):null)},k=({onDiscard:e,onCancel:t,isOpen:n})=>a.createElement(m.K,{isOpen:n,title:(0,h.t)("client:post-composer.discard-title","Discard this post?"),body:(0,h.t)("client:post-composer.discard-body","Are you sure you want to discard this post? This cannot be undone."),confirm:{label:(0,h.t)("client:post-composer.discard-button","discard"),color:"destructive"},cancel:{label:(0,h.t)("client:post-composer.discard-cancel-button","keep working on it")},onConfirm:()=>e(),onCancel:()=>t()})},67177:function(e,t,n){"use strict";n.d(t,{H:function(){return _}});var r=n(4595),i=n(37111),a=n(71860),o=n(76051),s=n(44144),l=n(12093),u=n(55875),c=n(44387),f=n(53754),d=n(2403),p=n(36592),h=n(94159),m=n(59134),g=n(98074),v=n(62745),y=n(93410),b=n(70700),w=n(83052),k=n(51540);const _=({ask:e,children:t})=>{const n=(0,v.Q)(),_=(0,h.useMemo)((()=>(0,i.Ml)(e.content,new Date(e.sentAt),{renderingContext:"ask",disableEmbeds:!0,externalLinksInNewTab:n.externalLinksInNewTab,hasCohostPlus:!1})),[e.content,e.sentAt,n.externalLinksInNewTab]),E=h.Children.count(t)>0,x=a.S.asks.blockSender.useMutation(),T=(0,h.useContext)(s.j),S=(0,h.useCallback)((()=>{m.Am.promise(x.mutateAsync(e.askId),{loading:"Blocking sender...",success:"Sender blocked!",error:e=>(console.error(e),e instanceof p.ss?e.message:"Failed to block sender")}).catch((e=>null))}),[e.askId,x]),{current:C,forceTheme:O}=(0,g.rA)();return h.createElement("div",{className:"grid lg:grid-cols-[4rem_1fr] w-full gap-x-6 gap-y-2","data-testid":`ask-${e.askId}`},e.askingProject?h.createElement(k.t,{project:e.askingProject,noLink:!0}):h.createElement("img",{src:l.ZP.public.static.staticAsset({path:r}).toString(),className:"mask mask-squircle cohost-shadow-light dark:cohost-shadow-dark hidden h-16 w-16 lg:block",alt:""}),h.createElement("article",{"data-theme":C,className:"co-themed-box co-post-box"},h.createElement("header",{className:"co-thread-header"},h.createElement("div",{className:"flex min-w-0 flex-1 flex-row items-center gap-2 truncate leading-none"},e.askingProject?h.createElement(w.H,{project:e.askingProject}):h.createElement(h.Fragment,null,h.createElement("img",{className:"mask mask-squircle inline-block h-8 w-8 lg:hidden",src:l.ZP.public.static.staticAsset({path:r}).toString(),alt:""}),h.createElement("span",{className:"co-project-display-name max-w-full flex-shrink truncate font-atkinson font-bold"},e.loggedIn?"Anonymous User":"Anonymous Guest")),h.createElement(b.Y,{dateISO:new Date(e.sentAt).toISOString()})),h.createElement(u.v,{as:"div",className:"relative h-6 w-6"},h.createElement(u.v.Button,{className:"absolute right-0 top-0"},h.createElement(c.Z,{className:o.tw`co-action-button h-6 w-6 transition-transform ui-open:rotate-90`})),h.createElement(u.v.Items,{className:"cohost-shadow-dark absolute right-0 top-8 z-30 flex min-w-max flex-col gap-3 rounded-lg bg-notWhite p-3 text-notBlack focus:!outline-none"},h.createElement(u.v.Item,null,h.createElement(y.X,{onClick:S,disabled:!1,ItemIcon:f.Z,text:"block this sender"})),h.createElement(u.v.Item,null,h.createElement(y.X,{onClick:()=>{T.send({type:"START_REPORT",askId:e.askId})},disabled:!1,ItemIcon:d.Z,text:"report ask"}))))),h.createElement("hr",{className:"co-hairline"}),h.createElement("div",{className:o.tw`co-prose prose p-3`},_),h.createElement("hr",{className:"co-hairline"}),E?h.createElement("footer",{className:o.tw`co-thread-footer w-full max-w-full rounded-b-lg p-3`},h.createElement("div",{className:"flex items-center justify-end gap-3"},t)):null))};t.Z=_},6553:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(94159);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const a=n.className??"";return r.createElement(e,i({},n,{className:`flex h-12 max-w-xs\n items-center justify-center rounded-lg bg-foreground px-6 text-lg text-text\n hover:bg-foreground-600 active:bg-foreground-700 disabled:bg-foreground-200 ${a}`}),t)}},70341:function(e,t,n){"use strict";n.d(t,{M:function(){return a}});var r=n(4699),i=n(94159);const a=e=>{const{info:t,error:n}=(0,i.useContext)(r.s);return t.length||n.length?i.createElement("div",{className:`rounded-lg border-notBlack bg-notWhite p-3 text-notBlack ${e.className||""} ${e.className||""}`},t.length?i.createElement("ul",null,t.map((e=>{return i.createElement("li",{key:e},(t=e,i.createElement("div",null,t)));var t}))):null,n.length?i.createElement("ul",null,n.map((e=>{return i.createElement("li",{key:e},(t=e,i.createElement("div",null,"error: ",t)));var t}))):null):null}},67287:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(12093),i=n(94159),a=n(51028),o=n(8227),s=n(37428);const l=()=>{const{loggedIn:e,email:t,emailVerifyCanceled:n}=(0,o.Pc)();return e&&n?i.createElement(s.A,null,i.createElement(a.cC,{parent:"div",className:"prose mx-auto",i18nKey:"client:header-notice.email-verify-canceled"},i.createElement("p",null,i.createElement("strong",null,"Warning!")," The owner of the email address"," ",i.createElement("em",null,{email:t})," told us that they didn't sign up for cohost. Please verify that your email is set correctly and"," ",i.createElement("a",{href:r.Wq.public.settingsMain.toString()},"change it")," ","if it's incorrect."))):null}},60707:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var r=n(4402),i=n(12093),a=n(80692),o=n(84879),s=n(94159),l=n(51028),u=n(37428);function c(e){return`scheduled-delete-acknowledged/project/${e}`}const f=()=>{const e=(0,r.m)(),[t,n]=(0,s.useState)(null);if((0,s.useEffect)((()=>{const t=[];for(const n of e.projects){const e=window.localStorage.getItem(c(n.projectId));e&&!n.deleteAfter?window.localStorage.removeItem(c(n.projectId)):e&&e===n.deleteAfter||n.deleteAfter&&t.push(n)}n(t)}),[e]),t&&t.length>0){const e=t.map((e=>`@${e.handle}`)).join(", "),r=o.ou.min(...t.map((e=>o.ou.fromISO(e.deleteAfter)))).diff(o.ou.now()),f=Math.round(r.as("days"));return s.createElement(u.A,null,s.createElement(s.Fragment,null,s.createElement(l.cC,{parent:"div",className:"prose mx-auto",i18nKey:"client:header-notice.queued-for-delete"},s.createElement("p",null,s.createElement("strong",null,"Heads up!")," One or more pages you edit (",{handleList:e},") are scheduled for deletion, starting in ",{daysLeft:f}," days. At that time, that data will be permanently deleted from our servers. If you want to prevent this, please"," ",s.createElement("a",{href:i.ZP.public.project.settings().toString()},"visit the page settings")," ","and cancel it."),s.createElement("p",null,"(If you close this notification, you won't see it again for these pages in this web browser.)")),s.createElement("button",{type:"button",disabled:!t,onClick:function(){if(t){for(const e of t)window.localStorage.setItem(c(e.projectId),e.deleteAfter);n([])}}},s.createElement(a.Z,{className:"h-6"}))))}return null}},19140:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});var r=n(94159),i=n(51028),a=n(8227),o=n(37428);const s=()=>{const{loggedIn:e,readOnly:t}=(0,a.Pc)();return e&&t?r.createElement(o.A,null,r.createElement(i.cC,{parent:"div",className:"prose mx-auto",i18nKey:"client:header-notice.read-only"},r.createElement("p",null,r.createElement("strong",null,"cohost is read-only as of October 1, 2024.")," ","The site will be fully shut down at the end of the year. Until then, you can use the site but can’t do anything that isn’t reading (following, liking posts, making or editing posts, sending asks, updating your profile, etc)."),r.createElement("p",null,"thank you for having used cohost. we’ll see you around."," ",r.createElement("img",{src:"https://cohost.org/static/17aa2d48956926005de9.png",alt:":eggbug:",title:":eggbug:",className:"m-0 inline-block aspect-square object-contain align-middle",style:{height:"var(--emoji-scale, 1em)"}})))):null}},37428:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(98074),i=n(94159);const a=({children:e})=>{const t=(0,r.rA)();return i.createElement("div",{className:"co-themed-box co-header-alert cohost-shadow-light dark:cohost-shadow-dark flex flex-row items-start self-stretch p-3","data-theme":t.current},e)}},2749:function(e,t,n){"use strict";n.d(t,{P:function(){return u}});var r=n(12093),i=n(94159),a=n(51028),o=n(8227),s=n(70496),l=n(37428);const u=()=>{const{loggedIn:e,activated:t,emailVerified:n}=(0,o.Pc)();return e&&!t?i.createElement(l.A,null,i.createElement(i.Fragment,null,i.createElement(a.cC,{parent:"div",className:"prose mx-auto",i18nKey:"client:header-notice.unactivated"},i.createElement("p",null,i.createElement("strong",null,"Heads up!")," You're still in the waiting period before you can post! While you're free to follow, like, and share other users' posts, you can't comment or make any new posts yet."),i.createElement("p",null,"This waiting period lasts a day or two, so just hold tight. We'll email you when you can post. You can find more information on"," ",i.createElement("a",{href:"https://help.antisoftware.club/support/solutions/articles/62000224749-details-on-invites-and-the-restrictions-on-un-activated-accounts/",target:"_blank",rel:"noreferrer"},"our support site!"))),n?null:i.createElement(a.cC,{parent:s.v,level:"info",className:"mx-auto mt-6 max-w-prose",i18nKey:"client:header-notice.unverified-unactivated"},i.createElement("div",{className:"prose prose-sm"},i.createElement("p",null,"You won't be activated until you've verified your email address. Check for an email from no-reply@no-reply.cohost.org. If you can't find it, you can resend it from the"," ",i.createElement("a",{href:r.ZP.public.userSettings().toString()},"settings page"),"."))))):null}},89760:function(e,t,n){"use strict";n.d(t,{V:function(){return a},u:function(){return u}});var r=n(84879),i=n(94159);function a(e){return function(){let t=e+=1831565813;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),((t^t>>>14)>>>0)/4294967296}}function o(e,t,n){return e+(t-e)*(r=n,0,1,Math.min(Math.max(r,0),1));var r}const s=r.ou.now().toUTC().set({month:4,day:1}).startOf("day");function l(e){return Math.abs(e.diffNow().as("seconds"))}const u=({post:e})=>{const t=e.transparentShareOfPostId??e.postId,n=(0,i.useMemo)((()=>e.transparentShareOfPostId?e.shareTree.find((t=>t.postId===e.transparentShareOfPostId))?.publishedAt??e.publishedAt:e.publishedAt),[e.publishedAt,e.shareTree,e.transparentShareOfPostId]),u=(0,i.useMemo)((()=>{if(!n)return s;const e=r.ou.fromISO(n);return e>s?e:s}),[n]),c=(0,i.useMemo)((()=>a(t)),[t]),[f,d,p,h]=(0,i.useMemo)((()=>[c(),c(),c(),c()]),[c]),[m,g]=(0,i.useState)(l(u)),v=(0,i.useCallback)((()=>{g(l(u))}),[u]),y=(0,i.useMemo)((()=>{let e=f*m,t=0;if(p<=.02){const e=p/.02;t=Math.floor(o(1,6,e))}if(h<=.5){const t=o(1,1.42,h/.5);e=Math.pow(e,t)}return d<=o(.05,.6,l(s)/183600)&&(e*=-1),e.toLocaleString(void 0,{maximumFractionDigits:t})}),[m,h,p,d,f]);return i.createElement("button",{onClick:v,type:"button"},y," Numbers™")}},51540:function(e,t,n){"use strict";n.d(t,{t:function(){return c}});var r=n(12093),i=n(70769),a=n(57834),o=n(94159),s=n(62745),l=n(88658);function u(e){switch(e){case"capsule-big":return"mask-capsule-big";case"capsule-small":return"mask-capsule-small";case"roundrect":return"mask-roundrect";case"squircle":return"mask-squircle";case"egg":return"mask-egg";default:return"mask-circle"}}i.Fx.pick({avatarPreviewURL:!0,avatarURL:!0,avatarShape:!0,privacy:!0,handle:!0,flags:!0,projectId:!0});const c=({project:e,noLink:t=!1,className:n="h-16 w-16 hidden lg:block cohost-shadow-light dark:cohost-shadow-dark",hideLock:c=!1,forceAnimate:f=!1})=>{const d=(0,s.Q)(),p=f||!d.pauseProfileGifs,h={backgroundImage:e.flags.indexOf("noTransparentAvatar")>-1?`url(${r.vf.public.project.defaultAvatar({projectId:e.projectId}).toString()})`:void 0},m=(0,o.useMemo)((()=>{const t=p?e.avatarURL:e.avatarPreviewURL,n=new URL(t);return n.searchParams.append("dpr","2"),n.searchParams.append("width","80"),n.searchParams.append("height","80"),n.searchParams.append("fit","cover"),n.searchParams.append("auto","webp"),n.toString()}),[p,e.avatarPreviewURL,e.avatarURL]),g=o.createElement(o.Fragment,null,o.createElement("img",{src:m,className:`mask ${u(e.avatarShape)} h-full w-full object-cover`,alt:e.handle,style:h}),c||e.privacy!==i.WL.Private?null:o.createElement(l.OZ,{className:"cohost-shadow-light dark:cohost-shadow-dark absolute -bottom-1 -right-1 h-5 fill-foreground-500 text-notWhite",scale:.6},o.createElement(a.Z,null)));return t?o.createElement("div",{className:`flex-0 mask relative aspect-square ${n}`},g):o.createElement("a",{href:r.vf.public.project.mainAppProfile({projectHandle:e.handle}).toString(),className:`flex-0 mask relative aspect-square ${n}`,title:`@${e.handle}`},g)}},1159:function(e,t,n){"use strict";n.d(t,{C:function(){return p}});var r=n(93788),i=n(15867),a=n(95024),o=n(94159),s=n(90275),l=n(21281);const u=`\n:root {\n --color-text: 249 254 255; /* white-ish */\n --color-bg-text: 249 254 255; /* same white-ish */\n \n /* used https://uicolors.app/ to generate these */\n --color-foreground-100: ${(0,r.$G)("#ebeff3")};\n --color-foreground-200: ${(0,r.$G)("#d2dbe5")};\n --color-foreground-300: ${(0,r.$G)("#abbdce")};\n --color-foreground-400: ${(0,r.$G)("#7e99b2")};\n --color-foreground-500: ${(0,r.$G)("#5e7d99")};\n --color-foreground-600: ${(0,r.$G)("#4a647f")};\n --color-foreground-700: ${(0,r.$G)("#435972")};\n --color-foreground-800: ${(0,r.$G)("#354557")};\n --color-foreground: ${(0,r.$G)("#435972")}; /* tumblr blue (light) */\n \n --color-accent: 138 174 117; /* green-ish */ \n \n /* a darker blue, poor contrast */\n --color-secondary: ${(0,r.$G)("#668093")};\n --color-secondary-100: ${(0,r.$G)("#e2e8eb")};\n --color-secondary-200: ${(0,r.$G)("#c7d2da")};\n --color-secondary-300: ${(0,r.$G)("#a1b3bf")};\n --color-secondary-400: ${(0,r.$G)("#668093")};\n --color-secondary-500: ${(0,r.$G)("#576f83")};\n --color-secondary-600: ${(0,r.$G)("#4b5e6f")};\n --color-secondary-700: ${(0,r.$G)("#414f5d")};\n --color-secondary-800: ${(0,r.$G)("#3b444f")};\n\n --color-tertiary: ${(0,r.$G)("#2c4763")};\n --color-tertiary-200: ${(0,r.$G)("#cddbea")};\n --color-tertiary-300: ${(0,r.$G)("#a1bdd8")};\n --color-tertiary-400: ${(0,r.$G)("#6f9bc1")};\n --color-tertiary-500: ${(0,r.$G)("#4d7eaa")};\n --color-tertiary-600: ${(0,r.$G)("#3a648f")};\n --color-tertiary-700: ${(0,r.$G)("#305174")};\n --color-tertiary-800: ${(0,r.$G)("#2c4763")};\n \n \n --color-background: 44 71 99; /* tumblr blue (dark) */\n --color-sidebar-bg: 219 233 244; /* tumblr placeholder bg */\n --color-sidebar-text: 25 25 25; /* not-black */\n --color-sidebar-accent: ${(0,r.$G)("#2c4763")}; /* tumblr blue (light) */\n \n --color-compose-button: ${(0,r.$G)("#83B05F")};\n --color-compose-button-400: ${(0,r.$G)("#98BD7A")};\n --color-compose-button-600: ${(0,r.$G)("#679047")};\n\n /* default brand colors to avoid breaking shit by accident */\n --color-notWhite: ${(0,r.i1)("notWhite")};\n --color-notBlack: ${(0,r.i1)("notBlack")};\n --color-cherry: var(--color-foreground);\n --color-strawberry: var(--color-secondary);\n --color-mango: var(--color-accent);\n --color-longan: var(--color-tertiary);\n}`,c=`\n/*\n * colors specified as bare RGB components so they can get\n * merged with opacity if needed. see \`tailwind.config.js\`\n * for more info. */\n\n:root {\n --color-notWhite: ${(0,r.i1)("notWhite")};\n --color-notBlack: ${(0,r.i1)("notBlack")};\n --color-cherry: ${(0,r.i1)("cherry")};\n --color-strawberry: ${(0,r.i1)("strawberry")};\n --color-mango: ${(0,r.i1)("mango")};\n --color-longan: ${(0,r.i1)("longan")};\n\n\n --color-text: var(--color-notWhite);\n --color-bg-text: var(--color-notBlack);\n\n --color-foreground-100: ${(0,r.i1)("cherry","100")};\n --color-foreground-200: ${(0,r.i1)("cherry","200")};\n --color-foreground-300: ${(0,r.i1)("cherry","300")};\n --color-foreground-400: ${(0,r.i1)("cherry","400")};\n --color-foreground-500: ${(0,r.i1)("cherry","500")};\n --color-foreground-600: ${(0,r.i1)("cherry","600")}; \n --color-foreground-700: ${(0,r.i1)("cherry","700")};\n --color-foreground-800: ${(0,r.i1)("cherry","800")};\n --color-foreground: var(--color-cherry);\n\n --color-secondary-200: ${(0,r.i1)("strawberry","200")};\n --color-secondary-300: ${(0,r.i1)("strawberry","300")};\n --color-secondary-400: ${(0,r.i1)("strawberry","400")};\n --color-secondary-600: ${(0,r.i1)("strawberry","600")};\n --color-secondary-700: ${(0,r.i1)("strawberry","700")};\n --color-secondary: var(--color-strawberry);\n\n --color-tertiary: var(--color-longan);\n --color-tertiary-200: ${(0,r.i1)("longan","200")};\n --color-tertiary-300: ${(0,r.i1)("longan","300")};\n --color-tertiary-400: ${(0,r.i1)("longan","400")};\n --color-tertiary-500: ${(0,r.i1)("longan","600")};\n --color-tertiary-600: ${(0,r.i1)("longan","600")};\n --color-tertiary-700: ${(0,r.i1)("longan","700")};\n\n --color-accent: var(--color-mango);\n --color-background: var(--color-notWhite);\n --color-sidebar-bg: var(--color-notWhite);\n --color-sidebar-text: var(--color-notBlack);\n --color-sidebar-accent: var(--color-cherry);\n\n --color-compose-button: var(--color-foreground);\n --color-compose-button-400: var(--color-foreground-400);\n --color-compose-button-600: var(--color-foreground-600);\n}\n\n@media (max-width: 767px) {\n :root {\n --color-foreground: ${(0,r.i1)("cherry","600")};\n }\n}\n`,f=`@media (prefers-color-scheme: dark) {\n :root {\n --color-text: var(--color-notWhite);\n --color-bg-text: var(--color-notWhite);\n\n --color-foreground-100: ${(0,r.i1)("cherry","100")};\n --color-foreground-200: ${(0,r.i1)("cherry","200")};\n --color-foreground-300: ${(0,r.i1)("cherry","300")};\n --color-foreground-400: ${(0,r.i1)("cherry","400")};\n --color-foreground-500: ${(0,r.i1)("cherry","500")};\n --color-foreground-600: ${(0,r.i1)("cherry","600")};\n --color-foreground-700: ${(0,r.i1)("cherry","700")};\n --color-foreground-800: ${(0,r.i1)("cherry","800")};\n --color-foreground: var(--color-cherry);\n \n --color-secondary-200: ${(0,r.i1)("mango","200")};\n --color-secondary-300: ${(0,r.i1)("mango","300")};\n --color-secondary-400: ${(0,r.i1)("mango","400")};\n --color-secondary-600: ${(0,r.i1)("mango","600")};\n --color-secondary-700: ${(0,r.i1)("mango","700")};\n --color-secondary: var(--color-mango);\n\n --color-accent: var(--color-mango);\n --color-background: var(--color-notBlack);\n --color-sidebar-bg: var(--color-notBlack);\n --color-sidebar-text: var(--color-notWhite); \n --color-sidebar-accent: var(--color-mango);\n\n --color-compose-button: var(--color-foreground);\n --color-compose-button-400: var(--color-foreground-400);\n --color-compose-button-600: var(--color-foreground-600);\n }\n\n @media (max-width: 767px) {\n :root {\n --color-foreground: ${(0,r.i1)("cherry","600")};\n }\n } \n}`,d=c+"\n"+f,p=({mode:e="dynamic"})=>{const t=(0,a.useFlag)(i.T.Enum["chaos-day-2022"]),n=(0,l.Z3)().get("lightThemeOnly"),r=(0,o.useMemo)((()=>n||"light"===e?c:"light_with_themes"===e&&t||t?u:d),[t,n,e]),f=t?"#435972":"#83254f",p=t?"#435972":"#671A3D";return o.createElement(s.ql,null,o.createElement("style",null,r),o.createElement("style",null,"\n :root {\n --emoji-scale: 1.25em;\n }\n "),o.createElement("meta",{name:"theme-color",content:p,media:"(max-width: 1023px)"}),o.createElement("meta",{name:"theme-color",content:f}))}},74395:function(e,t,n){"use strict";n.d(t,{t:function(){return j}});var r=n(87124),i=n(71860),a=n(12093),o=n(97287),s=n(58121),l=n(94159),u=l.forwardRef((function({title:e,titleId:t,...n},r){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"}))})),c=n(46102),f=n(13828),d=n(51028),p=n(38934),h=n(62745),m=n(4402),g=n(88658),v=n(51540);const y=({project:e})=>{const{enableNotificationCount:t}=(0,h.Q)(),n=(0,p.GU)({projectHandle:e.handle}),r=(0,p.fR)({projectHandle:e.handle}),i=(0,p.fj)({projectHandle:e.handle}),a=n.count+r.count+i.count;return l.createElement(o.R.Option,{key:e.projectId,value:e,className:"flex h-10 cursor-pointer flex-row items-center gap-3 px-2 py-1 hover:bg-foreground-100 hover:text-foreground-800 lg:first-of-type:rounded-t-lg lg:last-of-type:rounded-b-lg"},l.createElement(v.t,{project:e,noLink:!0,className:"h-8 w-8"}),l.createElement("span",null,"@",e.handle),a?l.createElement(g.Ov,{className:"ml-auto h-6 fill-sidebarAccent text-sidebarBg"},t?a>99?"99+":a:""):null)},b=()=>{const{t:e}=(0,d.$G)(),{projects:t}=(0,m.m)(),n=(0,p.dg)(),r=i.S.projects.switchProject.useMutation(),h=i.S.login.logout.useMutation();return n?l.createElement(o.R,{value:n,by:"projectId",onChange:async e=>{"new"===e.projectId?location.assign(a.ZP.public.createProject()):"sign_out"===e.projectId?(await h.mutateAsync(),location.assign("/")):(await r.mutateAsync({projectId:e.projectId}),location.reload())}},l.createElement("div",{className:"relative"},l.createElement(o.R.Button,{className:"group flex flex-row items-center gap-1"},l.createElement(v.t,{project:n,noLink:!0,className:"h-8 w-8 lg:hidden"}),l.createElement("div",{className:"hidden flex-row items-center gap-3 rounded-l-lg px-2 py-1 group-hover:bg-foreground-600 ui-open:bg-foreground-700 lg:flex"},l.createElement(v.t,{project:n,noLink:!0,className:"h-8 w-8"}),l.createElement("span",null,"@",n?.handle)),l.createElement("div",{className:"hidden rounded-r-lg p-2 text-notWhite group-hover:bg-foreground-600 ui-open:bg-foreground-700 lg:block"},l.createElement(f.Z,{className:"h-6 w-6 text-notWhite transition-transform ui-open:rotate-180"}))),l.createElement(s.u,{as:l.Fragment,leave:"lg:transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0"},l.createElement(o.R.Options,{className:"lg:cohost-shadow-light dark:lg:cohost-shadow-dark\n fixed bottom-0 right-0 top-16 max-w-xs divide-y divide-foreground-500 !overflow-y-auto\n truncate bg-foreground text-notWhite !outline-none lg:absolute\n lg:bottom-auto lg:right-auto lg:top-auto lg:mt-6 lg:max-h-[calc(100vh_-_100px)]\n lg:divide-none lg:rounded-lg lg:bg-notWhite lg:text-notBlack"},t.map((e=>l.createElement(y,{project:e,key:e.projectId}))),l.createElement(o.R.Option,{key:"new",value:{projectId:"new"},className:"flex h-10 cursor-pointer flex-row items-center gap-3 px-2 py-1 hover:bg-foreground-100 hover:text-foreground-800 lg:first-of-type:rounded-t-lg lg:last-of-type:rounded-b-lg"},l.createElement(u,{className:"h-6 w-8"}),l.createElement("span",null,"create a new page")),l.createElement(o.R.Option,{key:"sign_out",value:{projectId:"sign_out"},className:"flex h-10 cursor-pointer flex-row items-center gap-3 px-2 py-1 hover:bg-foreground-100 hover:text-foreground-800 lg:first-of-type:rounded-t-lg lg:last-of-type:rounded-b-lg"},l.createElement(c.Z,{className:"h-6 w-8"}),l.createElement("span",null,"sign out")))))):null};var w=n(8227),k=n(15867),_=n(15674),E=n(11436),x=n(25384),T=n(95024),S=n(90275),C=n(5471),O=n(94988),A=n(70512),I=n(81732),N=n(20616),P=n(40438);const R=l.memo((({className:e})=>{const[t,n]=(0,l.useState)((0,P.zO)()),r=(0,l.useCallback)((()=>{const e=(0,P.zO)();e!==t&&n(e)}),[t]);return(0,l.useEffect)((()=>{const e=setInterval(r,1e3);return()=>clearInterval(e)}),[r]),l.createElement("a",{href:"https://internet-ti.me/",className:`tabular-nums ${e??""}`,target:"_blank",rel:"noopener noreferrer"},t)}));R.displayName="BeatClock";const L=e=>l.createElement("span",{className:"animate-bounce"},e.children);function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const r=n.className??"";return l.createElement(e,M({},n,{className:`flex h-10 w-fit flex-row items-center rounded-lg px-3 ${r}`}),t)},F=()=>{const e=(0,w.Pc)(),t=(0,p.dg)(),{beatsTimestamps:n}=(0,h.Q)(),r=(0,I.m)(),i=(0,h.Q)(),o=(0,l.useCallback)((e=>{i.disableModalPostComposer||e.ctrlKey||e.metaKey||3===e.button||r.hasBeenSetup&&(e.preventDefault(),r.activate({}))}),[i.disableModalPostComposer,r]);return l.createElement("nav",{className:"flex flex-row items-center justify-end gap-4"},n?l.createElement(R,null):null,e.loggedIn&&t?.handle?l.createElement(l.Fragment,null,e.modMode?l.createElement(L,null,l.createElement("a",{href:`${a.vf.public.userSettings().toString()}#staff-only`},"mod mode active")):null,l.createElement(b,null),l.createElement("div",{className:"hidden flex-row items-center gap-4 lg:flex"},l.createElement(D,{as:"a",className:"active:text-foreground-900 gap-1 bg-notWhite text-notBlack hover:bg-foreground-100 hover:text-foreground-800 active:bg-foreground-200",href:a.vf.public.project.composePost({projectHandle:t.handle}).toString(),onClick:o},l.createElement(_.Z,{className:"h-5 w-5"}),l.createElement("span",{className:"leading-none"},"post")))):l.createElement("div",{className:"hidden flex-row items-center gap-4 lg:flex"},l.createElement(D,{as:"a",className:"active:text-foreground-900 gap-1 bg-notWhite text-notBlack hover:bg-foreground-100 hover:text-foreground-800 active:bg-foreground-200",href:a.vf.public.login().toString()},l.createElement(E.Z,{className:"h-5 w-5"}),l.createElement("span",{className:"leading-none"},"log in")),l.createElement(D,{as:"a",className:"active:text-foreground-900 gap-1 bg-notWhite text-notBlack hover:bg-foreground-100 hover:text-foreground-800 active:bg-foreground-200",href:a.vf.public.signup().toString()},l.createElement(x.Z,{className:"h-5 w-5"}),l.createElement("span",{className:"leading-none"},"sign up"))))},j=()=>{const e=(0,T.useFlag)(k.T.Enum["chaos-day-2022"]),{t:t}=(0,d.$G)();return l.createElement(l.Fragment,null,l.createElement(S.ql,null,l.createElement("style",null,"body {\n margin-top: 4rem;\n }")),l.createElement("header",{className:"fixed left-0 right-0 top-0 z-10 h-16 bg-foreground text-text"},l.createElement("div",{className:"container mx-auto grid h-full grid-cols-3 grid-rows-1 items-center justify-between px-2 lg:grid-cols-2 lg:p-0"},l.createElement(N.Hg,null),l.createElement("div",null,l.createElement("a",{href:a.vf.public.home().toString(),className:"text-text hover:text-accent"},e?l.createElement(l.Fragment,null,l.createElement(A.V,{className:"hidden h-8 lg:block",role:"img","aria-label":t("common:brand-name")}),l.createElement(O.W,{className:"mx-auto block h-8 lg:hidden",role:"img","aria-label":t("common:brand-name")})):l.createElement(l.Fragment,null,l.createElement(r.Lh,{className:"hidden h-8 lg:block",role:"img","aria-label":t("common:brand-name")}),l.createElement(C.B,{className:"mx-auto block h-8 lg:hidden",role:"img","aria-label":t("common:brand-name")})))),l.createElement(F,null))))}},72993:function(e,t,n){"use strict";var r=n(4595),i=n(37111),a=n(76051),o=n(12093),s=n(94159),l=n(62745),u=n(51540);t.Z=({askBlock:{ask:e}})=>{const t=(0,s.useMemo)((()=>e.anon?s.createElement("span",{className:"font-bold"},e.loggedIn?"Anonymous User":"Anonymous Guest"):s.createElement("a",{className:"font-bold hover:underline",href:o.ZP.public.project.mainAppProfile({projectHandle:e.askingProject.handle}).toString()},"@",e.askingProject.handle)),[e.anon,e.askingProject?.handle,e.loggedIn]),n=(0,l.Q)(),c=(0,s.useMemo)((()=>(0,i.Ml)(e.content,new Date(e.sentAt),{renderingContext:"ask",disableEmbeds:!0,externalLinksInNewTab:n.externalLinksInNewTab,hasCohostPlus:!1})),[e.content,e.sentAt,n.externalLinksInNewTab]);return s.createElement("div",{"data-askid":e.askId,className:a.tw`co-embedded-ask m-3 grid grid-cols-[2rem_1fr] grid-rows-[2rem_1fr] gap-x-3 gap-y-2 rounded-lg border p-3`},e.anon?s.createElement("img",{src:o.ZP.public.static.staticAsset({path:r}).toString(),className:"mask mask-squircle col-start-1 row-start-1 h-8 w-8",alt:""}):s.createElement(u.t,{project:e.askingProject,noLink:!0,className:"col-start-1 row-start-1 h-8 w-8"}),s.createElement("span",{className:a.tw`co-attribution col-start-2 row-start-1 align-middle leading-8`},t," asked:"," "),s.createElement("div",{className:a.tw`co-prose prose col-start-2 row-start-2`},c))}},13456:function(e,t,n){"use strict";n.d(t,{w:function(){return o}});var r=n(94159),i=n.p+"1a0afcb65b352a493928.svg",a=n(12093);const o=r.memo((({name:e="missing",url:t=a.ZP.public.static.staticAsset({path:i}).toString()})=>r.createElement("img",{src:t,alt:`:${e}:`,title:`:${e}:`,className:"m-0 inline-block aspect-square object-contain align-middle",style:{height:"var(--emoji-scale, 1em)"}})));o.displayName="CustomEmoji"},69577:function(e,t,n){"use strict";n.d(t,{p:function(){return a}});var r=n(12093),i=n(94159);const a=({handle:e})=>i.createElement("a",{"data-testid":"mention",href:r.ZP.public.project.mainAppProfile({projectHandle:e}).toString(),className:"!font-bold !no-underline hover:!underline"},"@",e);a.defaultProps={handle:"ERROR"}},39975:function(e,t,n){"use strict";n.d(t,{y:function(){return O}});var r=n(22233),i=n(19736),a=n(76051),o=n(85771),s=n(61888),l=n.n(s),u=n(94159),c=n(62745),f=n(33895),d=n(23006),p=n(72993),h=n(61421),m=n(97244),g=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"}))})),v=n(74378),y=n(96370);const b=({block:e})=>{const t=(0,u.useRef)(null),n=(0,u.useMemo)((()=>{const t=new URL(e.attachment.fileURL).pathname.split("/");let n=t[t.length-1];return"audio"===e.attachment.kind&&e.attachment.title&&(n=e.attachment.title),n}),[e.attachment]),r=(0,u.useMemo)((()=>{let t="(unknown artist)";return"audio"===e.attachment.kind&&e.attachment.artist&&(t=e.attachment.artist),t}),[e.attachment]),[i,a]=(0,u.useState)(!1),{togglePlayback:o,currentTime:s,isPlaying:l,totalDuration:c,seek:f}=(0,h.S)(t,(()=>a(!0)));return u.createElement("figure",{className:"group relative w-full flex-initial"},u.createElement("figcaption",{className:"sr-only"},r," - ",n),u.createElement("audio",{src:e.attachment.fileURL,preload:"metadata",className:"w-full p-2",ref:t,"data-testid":"audio"},u.createElement("a",{href:e.attachment.fileURL},"download audio")),u.createElement("div",{className:"flex flex-row"},u.createElement(v.o,{mode:l?"playing":"paused",className:"flex-shrink-0 flex-grow",togglePlayback:o}),u.createElement("div",{className:"flex w-full flex-col bg-notBlack p-2"},i?u.createElement(u.Fragment,null,u.createElement("div",{className:"flex flex-row"},u.createElement("div",{className:"flex-1"},"Your web browser isn't able to play this file."),u.createElement("button",{type:"button",onClick:()=>a(!1),className:"flex flex-row text-xs text-mango"},"dismiss error",u.createElement(m.Z,{className:"h-4 w-4"}))),u.createElement("div",{className:"text-xs"},"You might be able to"," ",u.createElement("a",{href:e.attachment.fileURL,download:!0,className:"text-mango"},"download")," ","it and play it in a dedicated audio player.")):u.createElement(u.Fragment,null,u.createElement("div",{className:"flex flex-row"},u.createElement("div",{className:"flex-1"},n),u.createElement("a",{href:e.attachment.fileURL,download:!0,title:"download"},u.createElement(g,{className:"h-6 w-6"}))),u.createElement("div",{className:"text-xs"},r),u.createElement(y.G,{currentTime:s,totalDuration:c,seek:f})))))};var w=n(47071),k=n(50196);const _=({block:e,onClick:t,maxWidth:n,aspectRatio:r})=>{const i=(0,c.Q)(),[a,o]=(0,u.useState)(i.gifsStartPaused?e.attachment.previewURL:e.attachment.fileURL),[s,l]=(0,u.useState)(!i.gifsStartPaused);return e.attachment.fileURL?u.createElement("button",{onClick:t,className:"group relative w-full flex-initial"},u.createElement(E,{block:e,maxWidth:n,src:a,aspectRatio:r}),e.attachment.previewURL!==e.attachment.fileURL?u.createElement(w.I,{isPlaying:s,showPlay:e.attachment.previewURL!==e.attachment.fileURL,extraClasses:"absolute bottom-3 right-3 w-12",onPlay:()=>{l(!0),o(e.attachment.fileURL)},onPause:()=>{l(!1),o(e.attachment.previewURL)}}):null):(console.error(`fileURL wasn't provided for attachment with ID ${e.attachment.attachmentId}`),null)},E=({block:e,maxWidth:t,src:n,aspectRatio:r})=>{const i=(0,u.useRef)(null),a=(0,k.T)(n,t,r);return u.createElement("img",{ref:i,src:a(1),srcSet:`\n ${a(1)} 1x,\n ${a(2)} 2x,\n ${a(3)} 3x,\n `,className:"h-full w-full object-cover","data-attachment-id":e.attachment.attachmentId,alt:e.attachment.altText??void 0,title:e.attachment.altText??void 0,style:{aspectRatio:r?`${r} / 1`:void 0}})},x=e=>{const t=({attachment:t,index:n,rowLength:r,aspectRatio:i})=>{switch(t.attachment.kind){case"image":return u.createElement(_,{block:t,onClick:e(t),maxWidth:675/r,key:n,aspectRatio:i});case"audio":return u.createElement(b,{block:t,onClick:e(t),maxWidth:675/r,key:n,aspectRatio:i})}};return t.displayName="MagicContentAttachment",t};function T(e){return e.attachment.kind}function S(e){return"image"===e.attachment.kind?{width:e.attachment.width??0,height:e.attachment.height??0}:void 0}const C=({viewModel:e,renderUntilBlockIndex:t,ruleset:n})=>{const i=(0,c.Q)(),a=e.blocks.reduce(((e,t)=>("attachment"===t.type?e.push(t):"attachment-row"===t.type&&e.push(...t.attachments),e)),[]),s=[...a].filter((e=>"image"===e.attachment.kind)),{openLightbox:l,setLightboxContentForPost:h}=(0,d.e)();(0,u.useEffect)((()=>{h(e.postId,s)}));const m=t=>()=>{l(e.postId,t.attachment.attachmentId)},g=new Map(e.astMap.spans.map((e=>[e.startIndex,e])));let v=null,y=null;const b=[];let w=0;for(;w{const r=(0,u.useMemo)((()=>{const e=n?new Date(n):new Date;return(0,i.i)(e)}),[n]),o=(0,u.useRef)(null),s=(0,u.useRef)(null),c=(0,u.useRef)(null),[f,d]=(0,u.useState)(t?"forced-open":"default"),[p,h]=(0,u.useState)(null),m=null!==e.astMap.readMoreIndex,g=p||m,v="forced-open"!==f&&g,y=v&&null!==e.astMap.readMoreIndex?e.astMap.readMoreIndex:e.blocks.length,b=(0,u.useRef)(0),w=(0,u.useRef)(!1),k=(0,u.useCallback)((e=>{if((!0!==w.current||e)&&o.current&&!v){const e=o.current.scrollHeight;if(e===b.current)return;b.current=e;const t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);h(e/t>2),w.current=!0}}),[o,v]),_=(0,u.useCallback)((()=>{d("forced-open")}),[]),E=(0,u.useCallback)((()=>{let e=0;c?.current&&(e=c.current.getBoundingClientRect().top),d("forced-closed"),requestAnimationFrame((()=>{if(s?.current){const t=s.current.getBoundingClientRect().top,n=window.scrollY+t-e;window.scroll({top:n})}}))}),[]);return(0,u.useEffect)((()=>{k(!1)}),[k]),(0,u.useEffect)((()=>{window.iframely&&window.iframely.on("heightChanged",((...e)=>{e[0].closest("[data-post-body]")===o.current&&k(!0)}))}),[]),(0,u.useEffect)((()=>{if(!o.current)return;const e=function e(t){if(!(t instanceof HTMLElement))return[];const n=l().reduce(t.children,((t,n)=>[...t,...e(n)]),[]);return t.tabIndex>=0&&n.push(t),n}(o.current),t=new IntersectionObserver((e=>{e.forEach((e=>{const t=e.target;e.isIntersecting?t.tabIndex=0:t.tabIndex=-1}))}),{root:o.current,threshold:0});e.forEach((e=>t.observe(e)))}),[]),e.blocks.length>0?u.createElement("div",{className:`${v&&!m?"max-h-screen":""} relative overflow-hidden supports-[overflow:clip]:overflow-clip ${r.className}`,"data-post-body":!0,"data-testid":"post-body",ref:o},u.createElement(C,{viewModel:e,renderUntilBlockIndex:y,ruleset:r}),v&&!m?u.createElement("div",{className:"absolute bottom-0 left-0 right-0 flex flex-col px-3"},u.createElement("span",{className:"co-from-body inline-block h-8 w-full bg-gradient-to-t pl-4"}),u.createElement("button",{className:a.tw`co-link-button co-opaque inline-block pb-3 text-left text-sm font-bold hover:underline`,onClick:_,ref:s},"read more")):v?u.createElement("button",{className:a.tw`co-link-button co-opaque inline-block pb-3 pl-3 text-left text-sm font-bold hover:underline`,onClick:_,ref:s},"read more"):g?u.createElement("button",{className:a.tw`co-link-button co-opaque inline-block pb-3 pl-3 text-left text-sm font-bold hover:underline`,onClick:E,ref:c},"read less"):null):null}));O.displayName="PostBodyV2"},46479:function(e,t,n){"use strict";n.d(t,{G:function(){return kt},Z:function(){return _t}});var r=n(71860),i=n(76051),a=n(45793),o=n(22018),s=n(4135),l=n(45072),u=n(94159),c=n(72362),f=n(105),d=n(12093),p=n(7449);const h=(0,c.C)({initial:"launching",strict:!0,context:{positionAtCommentId:void 0,error:void 0,clean:!0,blockRepliesTo:new Set,allowEditsOf:new Set,permissionsPrefilled:!1,hostPostId:-99999,inReplyToCommentId:void 0,body:"",submitAction:void 0,submitMethod:"POST"},states:{launching:{invoke:{src:"verifyInitialContext",onDone:[{target:"editing",cond:e=>!0===e.permissionsPrefilled},{target:"fetchingCommentPermissions"}],onError:{target:"unrecoverable",actions:(0,f.f0)(((e,t)=>({error:new Error(t.data)})))}}},unrecoverable:{type:"final"},fetchingCommentPermissions:{invoke:{src:"fetchCommentPermissions",onDone:{target:"editing",actions:(0,f.f0)(((e,t)=>({blockRepliesTo:t.data.blockRepliesTo,allowEditsOf:t.data.allowEditsOf})))},onError:{target:"editing"}}},editing:{on:{REPLY_START:{target:"editing",actions:(0,f.f0)(((e,t)=>({positionAtCommentId:t.commentId,inReplyToCommentId:t.commentId,inReplyToPostId:t.postId,submitMethod:"POST",clean:!0})))},EDIT_START:{target:"editing",actions:(0,f.f0)(((e,t)=>({body:t.body,positionAtCommentId:t.commentId,submitAction:d.ZP.public.apiV1.editDeleteComment({commentId:t.commentId}).toString(),submitMethod:"PUT",clean:!0})))},DELETE_START:{target:"confirmingDelete",actions:(0,f.f0)(((e,t)=>({positionAtCommentId:t.commentId,submitAction:d.ZP.public.apiV1.editDeleteComment({commentId:t.commentId}).toString(),submitMethod:"DELETE"})))},COMMENT_INPUT:{target:"editing",actions:(0,f.f0)(((e,t)=>({body:t.body,clean:!1})))},CANCEL:{target:"editing",actions:(0,f.f0)(((e,t)=>({positionAtCommentId:void 0,inReplyToCommentId:void 0,inReplyToPostId:void 0,body:"",submitAction:void 0,clean:!0})))},SUBMIT:"submitting"}},confirmingDelete:{on:{SUBMIT:"submitting",CANCEL:{target:"editing",actions:(0,f.f0)(((e,t)=>({positionAtCommentId:void 0,submitAction:void 0,submitMethod:void 0})))}}},submitting:{invoke:{src:"submit",onDone:{target:"done"},onError:{target:"displayingError",actions:(0,f.f0)(((e,t)=>({error:t.data})))}}},done:{type:"final",entry:["reload"]},displayingError:{on:{ACKNOWLEDGE:{target:"editing",actions:(0,f.f0)({error:(e,t)=>{}})}}}}},{services:{verifyInitialContext:e=>e.hostPostId<0?Promise.reject("missing post ID"):Promise.resolve(),fetchCommentPermissions:async e=>{const t=(0,p.I)(),n=await t.comments.byPost.query({postId:e.hostPostId}),r=new Set,i=new Set;for(const e in n.comments)n.comments[e].canEdit===a.c.Allowed&&i.add(e),n.comments[e].canInteract!==a.c.Allowed&&r.add(e);return{blockRepliesTo:r,allowEditsOf:i}},submit:async e=>{const t={postId:e.inReplyToCommentId?e.inReplyToPostId:e.hostPostId,body:e.body,inReplyToCommentId:e.inReplyToCommentId},n=e.submitAction??d.ZP.public.apiV1.createComment().toString(),r=await fetch(n.toString(),{credentials:"include",method:e.submitMethod,headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw new Error(r.statusText)}},actions:{reload:e=>{"undefined"!=typeof location&&location.reload()}}}),m=(0,u.createContext)({});var g=n(8227),v=n(95189),y=n(51028),b=n(38934),w=n(37070),k=n(4337);const _=(0,v.M)("launching"),E=(0,v.M)("fetchingCommentPermissions"),x=(0,v.M)("editing"),T=(0,v.M)("confirmingDelete"),S=(0,v.M)("submitting"),C=(0,v.M)("displayingError"),O=e=>e.context.clean,A=e=>void 0!==e.context.inReplyToCommentId,I=e=>""===e.context.body.trim(),N=e=>e.context.positionAtCommentId,P=e=>e.context.error,R=({disabled:e,topLevel:t})=>{const{t:n}=(0,y.$G)(),r=(0,u.useContext)(m),{send:a}=r,o=(0,l.v)(r,_),s=(0,l.v)(r,E),c=(0,l.v)(r,x),f=(0,l.v)(r,T),d=(0,l.v)(r,S),p=(0,l.v)(r,C),h=(0,l.v)(r,O),g=(0,l.v)(r,A),v=(0,l.v)(r,I),R=(0,u.useMemo)((()=>!(e||h||v)),[e,h,v]),L=(0,l.v)(r,N),M=(0,u.useMemo)((()=>(e=>t=>e&&t.context.positionAtCommentId?"":t.context.body)(t)),[t]),D=(0,l.v)(r,M),F=(0,l.v)(r,P),j=(0,u.useRef)(null),B=(0,b._c)(),q=(0,u.useCallback)((e=>{if(j.current){const[t,n]=[j.current.selectionStart,j.current.selectionEnd];j.current.setRangeText(e.native??e.shortcodes,t,n,"end"),a({type:"COMMENT_INPUT",body:j.current.value})}}),[a]);let H,z="";const U=(0,u.useCallback)((e=>{R&&(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),a({type:"SUBMIT"}))}),[R,a]),V=(0,u.useCallback)((()=>{a({type:"SUBMIT"})}),[a]),$=(0,u.useCallback)((()=>{a({type:"CANCEL"})}),[a]);switch(!0){case o:case s:H=u.createElement(u.Fragment,null,u.createElement("div",{className:"h-9"}));break;case e:case c:H=u.createElement(u.Fragment,null,u.createElement(w.K,{onSelectEmoji:q,disabled:e,hasCohostPlus:!!B}),u.createElement("div",{className:"flex-grow"}," "),u.createElement("button",{className:i.tw`co-outline-button flex items-center justify-center rounded-lg border-2 px-[14px] py-[6px] text-sm font-bold`,onClick:$,disabled:e||h&&!g&&!L},n("client:new-comment.discard-changes",{defaultValue:"discard"})),u.createElement("button",{className:i.tw`co-filled-button flex items-center justify-center rounded-lg px-4 py-2 text-sm font-bold`,onClick:V,disabled:!R},n("client:new-comment.submit",{defaultValue:"submit"})));break;case f:z=n("client:delete-comment.are-you-sure",{defaultValue:"⬆️ are you sure you want to delete this comment?"}),H=u.createElement(u.Fragment,null,u.createElement("button",{className:"flex items-center justify-center\n rounded-lg bg-red px-4 py-2 text-sm font-bold\n hover:bg-red-600 active:bg-red-700 disabled:bg-red-200",onClick:V},n("client:delete-comment.yes",{defaultValue:"delete"})),u.createElement("button",{className:"flex items-center justify-center\n rounded-lg bg-green px-4 py-2 text-sm font-bold\n hover:bg-green-600 active:bg-green-700 disabled:bg-green-200",onClick:$},n("client:delete-comment.no",{defaultValue:"do not delete"})));break;case d:z=n("client:submitting",{defaultValue:"submitting..."});break;case p:z=`error: ${F?.message??""}`,H=u.createElement("button",{className:"flex items-center justify-center\n rounded-lg bg-green px-4 py-2 text-sm font-bold\n hover:bg-green-600 active:bg-green-700 disabled:bg-green-200",onClick:e=>{e.preventDefault(),a({type:"ACKNOWLEDGE"})}},n("common:ok",{defaultValue:"ok"}))}const W=u.useCallback((({currentTarget:e})=>{a({type:"COMMENT_INPUT",body:e.value})}),[a]);return u.createElement("div",{className:"flex flex-col gap-4",onKeyDown:U},!e&&f?null:u.createElement(k.D,{className:i.tw`co-composer-text-box`,name:"body",minRows:2,placeholder:n("client:new-comment.placeholder",{defaultValue:"leave a comment..."}),onInput:W,disabled:e||!c,value:e?"":D,ref:j}),!e&&z?u.createElement("p",{className:i.tw`co-ui-text text-right`},z):null,u.createElement("div",{className:"flex flex-row items-center justify-end gap-4"},H))};var L=n(37111),M=n(44144),D=n(55875),F=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.907a2.25 2.25 0 100 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186l9.566-5.314m-9.566 7.5l9.566 5.314m0 0a2.25 2.25 0 103.935 2.186 2.25 2.25 0 00-3.935-2.186zm0-12.814a2.25 2.25 0 103.933-2.185 2.25 2.25 0 00-3.933 2.185z"}))})),j=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))})),B=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 001.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"}))})),q=n(2403),H=n(64877),z=n(96332),U=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{fillRule:"evenodd",d:"M9.53 2.47a.75.75 0 010 1.06L4.81 8.25H15a6.75 6.75 0 010 13.5h-3a.75.75 0 010-1.5h3a5.25 5.25 0 100-10.5H4.81l4.72 4.72a.75.75 0 11-1.06 1.06l-6-6a.75.75 0 010-1.06l6-6a.75.75 0 011.06 0z",clipRule:"evenodd"}))})),V=n(84879),$=n(67920),W=n(62745),G=n(70496),Z=n(93410),K=n(70700),Q=n(51540),Y=n(83052);const J=(0,v.M)("editing"),X=e=>e.context.allowEditsOf,ee=e=>e.context.blockRepliesTo,te=e=>e.context.positionAtCommentId,ne=({rootComment:e})=>{const t=(0,u.useContext)(m),n=(0,l.v)(t,X),i=(0,u.useContext)(M.j),o=r.S.comments.setHidden.useMutation({onSettled:()=>location.reload()}),{loggedIn:s}=(0,g.Pc)(),{isBrowser:c}=(0,$.NS)(),f=`comment-${e.comment.commentId}`,d=c&&!!navigator.canShare&&navigator.canShare({url:`#${f}`});return u.createElement(D.v,{as:"div",className:"relative h-6"},u.createElement(D.v.Button,{className:"co-link-button cursor-pointer text-sm font-bold hover:underline"},u.createElement(z.Z,{className:"h-6 w-6 transition-transform ui-open:rotate-90"})),u.createElement(D.v.Items,{className:"cohost-shadow-dark absolute right-0 top-8 z-30 flex min-w-max flex-col divide-y rounded-lg bg-notWhite p-3 text-notBlack focus:!outline-none"},d?u.createElement("div",{className:"flex flex-col gap-3 pb-1.5"},u.createElement(D.v.Item,null,u.createElement(Z.X,{ItemIcon:F,text:"share",onClick:()=>navigator.share({url:`#${f}`}),disabled:!1}))):null,u.createElement("div",{className:"flex flex-col gap-3 "+(d?"pt-1.5":"")},e.canHide===a.c.Allowed?e.comment.hidden?u.createElement(D.v.Item,null,u.createElement(Z.X,{disabled:!1,onClick:()=>{o.mutate({commentId:e.comment.commentId,hidden:!1})},ItemIcon:j,text:"unhide"})):u.createElement(D.v.Item,null,u.createElement(Z.X,{disabled:!1,onClick:()=>{o.mutate({commentId:e.comment.commentId,hidden:!0})},ItemIcon:B,text:"hide"})):null,s?u.createElement(D.v.Item,null,u.createElement(Z.X,{disabled:!1,onClick:()=>{i.send({type:"START_REPORT",commentId:e.comment.commentId})},ItemIcon:q.Z,text:"report"})):null,n.has(e.comment.commentId)?u.createElement(D.v.Item,null,u.createElement(Z.X,{disabled:!1,onClick:()=>{t.send({type:"DELETE_START",commentId:e.comment.commentId})},ItemIcon:H.Z,text:"delete"})):null)))},re=e=>{const{rootComment:t}=e,n=(0,u.useContext)(m),r=(0,l.v)(n,J),a=(0,l.v)(n,X),o=(0,l.v)(n,ee),s=(0,l.v)(n,te),c=(0,W.Q)(),{loggedIn:f}=(0,g.Pc)(),{isBrowser:p}=(0,$.NS)(),h=`comment-${t.comment.commentId}`,v=(0,u.useMemo)((()=>(0,L.Ml)(t.comment.body,V.ou.fromISO(t.comment.postedAtISO).toJSDate(),{renderingContext:"comment",hasCohostPlus:t.comment.hasCohostPlus,disableEmbeds:c.disableEmbeds,externalLinksInNewTab:c.externalLinksInNewTab})),[t.comment.body,t.comment.postedAtISO,t.comment.hasCohostPlus,c.disableEmbeds,c.externalLinksInNewTab]);return u.createElement("div",{className:"flex flex-row gap-4"},t.comment.deleted||!t.poster?null:u.createElement(Q.t,{project:t.poster,className:"cohost-shadow-light dark:cohost-shadow-dark hidden h-12 w-12 lg:block"}),u.createElement("div",{className:"flex min-w-0 flex-1 flex-col justify-start gap-2"},u.createElement("div",{className:"flex flex-row flex-wrap items-center gap-2"},t.comment.deleted||!t.poster?u.createElement(u.Fragment,null,u.createElement("span",null,"[deleted]"),u.createElement(K.Y,{dateISO:t.comment.postedAtISO})):u.createElement(u.Fragment,null,u.createElement(Y.H,{project:t.poster}),u.createElement(K.Y,{dateISO:t.comment.postedAtISO,link:`#${h}`}))),u.createElement("div",{className:i.tw`co-prose prose overflow-hidden break-words`},v),u.createElement("div",{className:"flex flex-row items-center gap-2"},f?o.has(t.comment.commentId)?u.createElement("span",{className:i.tw`co-link-button-disabled flex cursor-not-allowed flex-row items-center gap-1 text-sm font-bold text-gray-400`},u.createElement(U,{className:"h-4 w-4"}),"replies locked"):u.createElement("button",{className:i.tw`co-link-button flex cursor-pointer flex-row items-center gap-1 text-sm font-bold hover:underline`,onClick:e=>{e.preventDefault(),n.send({type:"REPLY_START",commentId:t.comment.commentId,postId:t.comment.postId})}},u.createElement(U,{className:"h-4 w-4"}),"reply"):u.createElement("a",{className:i.tw`co-link-button flex cursor-pointer flex-row items-center gap-1 text-sm font-bold hover:underline`,href:d.ZP.public.login().toString()},u.createElement(U,{className:"h-4 w-4"}),"login to reply"),p&&a.has(t.comment.commentId)?u.createElement(u.Fragment,null,u.createElement("button",{className:i.tw`co-link-button cursor-pointer text-sm font-bold hover:underline`,onClick:e=>{e.preventDefault(),n.send({type:"EDIT_START",commentId:t.comment.commentId,body:t.comment.body})}},"edit")):null,u.createElement(ne,e)),s===t.comment.commentId?u.createElement("div",{className:"flex w-full flex-col gap-2"},u.createElement("div",{className:"flex flex-row gap-2"},r?u.createElement("p",{className:i.tw`co-ui-text text-sm font-bold`},"replying to @",t.poster?.handle):null),u.createElement(R,{disabled:!1,topLevel:!1})):null))},ie=e=>{const{rootComment:t,nestingLevel:n}=e,[r,a]=(0,u.useState)(!1),o=`comment-${t.comment.commentId}`;return u.createElement("div",{className:"flex flex-col gap-4"},u.createElement("article",{className:"relative flex flex-row gap-4","data-comment-id":t.comment.commentId},u.createElement("div",{id:o,className:"absolute -top-16"}),u.createElement("div",{className:"flex min-w-0 flex-1 flex-col"},t.comment.hidden?u.createElement(G.v,{level:"post-box-info",className:"mb-4 max-w-full"},r?u.createElement(u.Fragment,null,"The below comment was hidden by the page which made this post."," ",u.createElement("button",{className:i.tw`co-link-button underline`,onClick:()=>a(!1)},"(hide it again)")):u.createElement(u.Fragment,null,"A comment has been hidden by the page which made this post."," ",u.createElement("button",{className:i.tw`co-link-button underline`,onClick:()=>a(!0)},"(view it anyway)"))):null,r||!t.comment.hidden?u.createElement(re,e):null)),(r||!t.comment.hidden)&&t.comment.children.length>0?u.createElement("div",{className:i.tw`co-hairline ml-0 flex flex-col gap-4 border-l pl-6 lg:ml-6 lg:pl-4`},t.comment.children.map((e=>u.createElement(u.Suspense,{key:e.comment.commentId},u.createElement(ie,{rootComment:e,nestingLevel:n+1}))))):null)};var ae=n(76709),oe=n(98074);function se(e){let t=[],n=[];for(const r of e){r.canEdit===a.c.Allowed&&t.push(r.comment.commentId),r.canInteract!==a.c.Allowed&&n.push(r.comment.commentId);const e=se(r.comment.children);t=t.concat(e.allowEditsOf),n=n.concat(e.blockRepliesTo)}return{allowEditsOf:t,blockRepliesTo:n}}const le=({post:e,rootComments:t})=>{const n=(0,oe.rA)(),r=t.map((e=>u.createElement("div",{key:e.comment.commentId,"data-theme":n.current,className:"co-themed-box co-comment-box cohost-shadow-light dark:cohost-shadow-dark flex w-full min-w-0 max-w-full flex-col gap-4 rounded-lg p-3 lg:max-w-prose"},u.createElement(u.Suspense,null,u.createElement(ie,{rootComment:e,nestingLevel:0})))));return u.createElement("div",{className:"my-3 flex min-w-0 flex-col gap-2"},u.createElement("h4",{className:"px-3 text-bgText lg:px-0"},"in reply to"," ",u.createElement("a",{href:`#post-${e.postId??-99999}`,className:"font-bold text-secondary hover:underline"},"@",e.postingProject.handle,"'s post:")),r)},ue=e=>{const t=se(Object.values(e.commentThreads).flat()),n=(0,s.k)(h,{context:{permissionsPrefilled:!!t.allowEditsOf||!!t.blockRepliesTo,allowEditsOf:new Set(t.allowEditsOf),blockRepliesTo:new Set(t.blockRepliesTo),hostPostId:e.post.transparentShareOfPostId??e.post.postId}});return u.createElement(ae.S,null,u.createElement(m.Provider,{value:n},u.createElement(fe,e)))},ce=e=>e.context.positionAtCommentId,fe=({post:e,commentThreads:t})=>{const n=(0,g.Pc)(),r=(0,u.useContext)(m),i=(0,l.v)(r,ce),a=(0,oe.rA)();let s;return e.commentsLocked?s="Comments on this post are locked.":n.loggedIn?n.activated?e.state!==o.h.Published&&(s="You can't comment on this post."):s="Your account isn't activated to post yet.":s="You must log in to comment.",u.createElement(u.Fragment,null,u.createElement("div",{id:"comments",className:"relative -top-16"}),u.createElement("div",{"data-theme":a.current,className:"co-themed-box co-comment-box cohost-shadow-light dark:cohost-shadow-dark w-full max-w-full rounded-lg p-3 lg:max-w-prose"},s?u.createElement(G.v,{level:"post-box-info"},s):u.createElement(R,{disabled:void 0!==i,topLevel:!0})),e.shareTree.map((e=>t[e.postId]?.length?u.createElement(le,{key:e.postId,post:e,rootComments:t[e.postId]}):null)),t[e.postId]?.length?u.createElement(le,{key:e.postId,post:e,rootComments:t[e.postId]}):null)};var de=n(39975),pe=n(3160);const he=({reasons:e,cws:t})=>{const{t:n}=(0,y.$G)(),r=e.hasAdultContent||e.hasCws&&e.muffledTagsPresent?"text-sm":"";return u.createElement("div",{className:i.tw`co-info-box co-warning flex flex-grow flex-row items-center gap-3 rounded-lg border-[2px] p-3 ${r}`},u.createElement(q.Z,{className:"h-6 w-6"}),u.createElement("div",null,e.hasAdultContent?u.createElement(u.Fragment,null,u.createElement(y.cC,{i18nKey:"client:post-preview.adult.combined-content-note"},"This post contains"," ",u.createElement("a",{href:"https://help.antisoftware.club/a/solutions/articles/62000225024",target:"_blank",rel:"noreferrer",className:"underline"},"18+ content"),"."),u.createElement("br",null)):null,e.hasCws?u.createElement(u.Fragment,null,n("client:post-preview.cw.expanded-content-note","CWs: "),u.createElement("span",{className:"font-bold"},t.join(", "),".")):null,e.muffledTagsPresent?u.createElement("div",null,n("client:post-preview.muffled.expanded-content-note","Muffled tags: "),u.createElement("span",{className:"font-bold"},e.muffledTagsPresent.join(", "),".")):null))};var me=n(81986),ge=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"}))})),ve=n(6285);ve.z.enum(["draft","log-in-first","adult-collapsed","cw-collapsed","muffled-tags-collapsed","unpublished","deleted"]);const ye=({boxType:e,children:t})=>{const{t:n}=(0,y.$G)(),r=(0,g.Pc)(),a=(0,W.Q)(),o=i.tw`box-border border-[1px] flex flex-row items-center gap-3 self-stretch rounded-lg p-3`,s=i.tw`h-6 w-6 flex-none`;switch(e){case"draft":return u.createElement("div",{className:i.tw`co-info-box co-info ${o}`},u.createElement(me.Z,{className:s}),u.createElement("div",null,u.createElement("p",null,n("client:post-preview.draft.content-note",{defaultValue:"This post is a draft. It's not publicly visible, but you can send people links to it."}))));case"log-in-first":return u.createElement("div",{className:i.tw`co-info-box co-info ${o}`},u.createElement(me.Z,{className:s}),n("client:post-preview.post-visible-if-logged-in","This page's posts are visible only to users who are logged in."));case"adult-collapsed":return u.createElement("div",{className:i.tw`co-info-box co-18-plus ${o}`},u.createElement(me.Z,{className:s}),r.loggedIn?a.isAdult?a.explicitlyCollapseAdultContent?n("client:post-preview.adult.collapsed-content-note","This post contains 18+ content. We're hiding it according to your content preferences."):n("client:post-preview.adult.18-not-collapsed-note","This post contains 18+ content."):n("client:post-preview.adult.grow-up","This post contains 18+ content. You can view it when you're older."):n("client:post-preview.adult.hidden-content-logged-out","This post contains 18+ content. You can view it if you're over 18."));case"cw-collapsed":return u.createElement("div",{className:i.tw`co-info-box co-warning ${o}`},u.createElement(q.Z,{className:"h-6 w-6"}),u.createElement("div",null,n("client:post-preview.cw.collapsed-content-note","This post has content warnings for: "),t));case"muffled-tags-collapsed":return u.createElement("div",{className:i.tw`co-info-box co-warning ${o}`},u.createElement(q.Z,{className:"h-6 w-6"}),u.createElement("div",null,n("client:post-preview.cw.muffled-content-note","This post has tags you muffled: "),t));case"unpublished":return u.createElement("div",{className:i.tw`co-info-box co-tombstone ${o}`},u.createElement(ge,{className:"h-6 w-6"}),u.createElement("div",null,n("client:post-preview.unpublished","Sorry! This post has been unpublished by its original author.")));case"deleted":return u.createElement("div",{className:i.tw`co-info-box co-tombstone ${o}`},u.createElement(ge,{className:"h-6 w-6"}),u.createElement("div",null,n("client:post-preview.deleted","Sorry! This post has been deleted by its original author.")));default:return null}};var be=n(65443),we=n.n(be);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let a=we()("flex","h-10","items-center","justify-center","self-center","rounded-lg","bg-foreground","py-2","px-3","leading-none");return"default"==t?a=we()(i.tw`co-filled-button tracking-wider whitespace-nowrap`,a):"18-badge"==t&&(a=we()(i.tw`co-info-box co-18-plus border-[1px] hover-underline`,a)),u.createElement(e,ke({},r,{className:a}),n)},Ee=({tags:e,highlightedTags:t})=>{const{t:n}=(0,y.$G)(),r=(0,u.useRef)(null),[a,o]=(0,u.useState)(!1),s=(0,u.useRef)(!1),l=(()=>{const e=(0,pe.bS)(d.Wq.public.project.mainAppProfile),t=(0,pe.bS)(d.Wq.public.project.singlePost.published),n=(0,pe.bS)(d.Wq.public.tags),r=(0,pe.bS)(d.Wq.public.project.tags),i=(0,pe.bS)(d.Wq.public.bookmarkedTagFeed);return e?{pageType:"profile",handle:e.params.projectHandle,tagSlug:void 0}:t?{pageType:"singlePost",handle:t.params.projectHandle,tagSlug:void 0}:n?{pageType:"tag",handle:void 0,tagSlug:n.params.tagSlug}:r?{pageType:"projectTag",handle:r.params.projectHandle,tagSlug:r.params.tagSlug}:i?{pageType:"bookmarked",handle:void 0,tagSlug:void 0}:{pageType:!1,handle:void 0,tagSlug:void 0}})();(0,b.sm)([],"bookmarked"===l.pageType).data?.tags,(0,u.useEffect)((()=>{!s.current&&r.current&&(o(r.current.scrollHeight<=r.current.clientHeight),s.current=!0)}),[r]);const c=e.filter((e=>""!=e));return c.length?u.createElement("div",{className:"w-full max-w-full p-3"},u.createElement("div",{ref:r,className:i.tw`co-tags relative w-full overflow-y-hidden break-words leading-none ${a?"":"max-h-[60px]"}`},u.createElement("div",null,c.map((e=>u.createElement("a",{key:e,className:`mr-2 inline-block text-sm hover:underline ${t.includes(e)?"font-bold":""} ${l.tagSlug===e?"font-bold":""}`,href:l.handle?d.ZP.public.project.tags({tagSlug:e,projectHandle:l.handle}).toString():d.ZP.public.tags({tagSlug:e}).toString()},"#",e)))),a?null:u.createElement("div",{className:"absolute bottom-0 right-2 flex h-5"},u.createElement("span",{className:"co-from-body inline-block h-full bg-gradient-to-l pl-4"}),u.createElement("button",{onClick:()=>o(!a),className:"co-tags co-opaque inline-block cursor-pointer text-sm font-bold hover:underline"},n("client:post-preview.expand-tags","see all"))))):null};function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.createElement("div",{className:"flex w-full flex-row p-3"},u.createElement(Se,{viewModel:e})),Se=({viewModel:e})=>u.createElement("a",{key:"headline",href:e.singlePostPageUrl.toString(),className:i.tw`co-prose prose flex-grow self-center break-words hover:underline`},u.createElement("h3",null,e.headline)),Ce="flex flex-col items-center m-3 gap-3",Oe=({isDraft:e,reasons:t,viewModel:n,setRelevantClickthroughs:r,children:i,effectiveTags:a,highlightedTags:o})=>{const{t:s}=(0,y.$G)();return u.createElement("div",null,u.createElement("div",{className:Ce},e?u.createElement(ye,{boxType:"draft"}):null,u.createElement("div",{className:"flex flex-row items-center gap-3 self-stretch"},u.createElement(he,{reasons:t,cws:n.cws}),u.createElement(_e,{onClick:()=>r(!1),collapserButtonStyle:"default"},s("client:post-preview.hide-post","hide post")))),n.headline?u.createElement(Te,{viewModel:n}):null,i,a.length>0?u.createElement(Ee,{tags:a,highlightedTags:o}):null)},Ae=({isDraft:e,viewModel:t,children:n,effectiveTags:r,highlightedTags:i,setRelevantClickthroughs:a})=>{const{t:o}=(0,y.$G)();return u.createElement("div",null,u.createElement("div",{className:Ce},e?u.createElement(ye,{boxType:"draft"}):null,u.createElement("div",{className:"flex flex-row items-start justify-end gap-3 self-stretch p-3"},t.headline?u.createElement(Se,{viewModel:t}):null,u.createElement(_e,{as:"a",href:"https://help.antisoftware.club/a/solutions/articles/62000225024",target:"_blank",rel:"noreferrer",collapserButtonStyle:"18-badge"},o("client:post-preview.adult.expanded-content-note","18+")),u.createElement(_e,{onClick:()=>a(!1),collapserButtonStyle:"default"},o("client:post-preview.adult.hide-post","hide post")))),n,r.length>0?u.createElement(Ee,{tags:r,highlightedTags:i}):null)},Ie=({isDraft:e,viewModel:t,children:n,effectiveTags:r,highlightedTags:i})=>u.createElement("div",null,e?u.createElement("div",{className:Ce},u.createElement(ye,{boxType:"draft"})):null,t.headline?u.createElement(Te,{viewModel:t}):null,n,r.length>0?u.createElement(Ee,{tags:r,highlightedTags:i}):null),Ne=({isDraft:e,clickthroughMode:t,reasons:n,viewModel:r,effectiveTags:i,highlightedTags:a,setRelevantClickthroughs:o})=>{const{t:s}=(0,y.$G)(),[l,c]=(0,u.useState)(!1),f=(0,pe.oQ)((0,pe.TH)()),p=new URLSearchParams({originalUrl:f}).toString(),h=`${d.Wq.public.login}?${p}`;let m=u.createElement("div",{className:"flex flex-row items-center gap-3"},t.canShow?u.createElement(_e,{onClick:()=>o(!0),collapserButtonStyle:"default"},s("client:post-preview.adult.show-post","show post")):null,t.canLogIn?u.createElement(_e,{as:"a",href:h,collapserButtonStyle:"default"},s("client:post-preview.adult.log-in","log in")):null,t.canAssertAge?u.createElement(u.Fragment,null,u.createElement(_e,{onClick:()=>o(!0),collapserButtonStyle:"default"},s("client:post-preview.adult.i-am-18","I am 18+")),u.createElement(_e,{collapserButtonStyle:"default",onClick:()=>c(!0)},s("client:post-preview.adult.i-am-not-18","I am not 18+"))):null),g=null;if("none"!==r.limitedVisibilityReason){let e;switch(r.limitedVisibilityReason){case"log-in-first":e="log-in-first";break;case"unpublished":e="unpublished";break;case"deleted":e="deleted";break;case"blocked":break;case"adult-content":e="adult-collapsed"}void 0!==e&&(g=u.createElement(ye,{boxType:e}))}else n.hasAdultContent&&(g=u.createElement(ye,{boxType:"adult-collapsed"}));return n.hasAdultContent&&l&&(m=u.createElement("div",{className:"flex flex-row items-center gap-3 text-cherry"},s("client:post-preview.adult.the-wise-child","Thanks for being honest."))),u.createElement("div",null,u.createElement("div",{className:Ce},e?u.createElement(ye,{boxType:"draft"}):null,g,n.hasCws?u.createElement(ye,{boxType:"cw-collapsed"},u.createElement("span",{className:"font-bold"},r.cws.join(", "),".")):null,n.muffledTagsPresent?u.createElement(ye,{boxType:"muffled-tags-collapsed"},u.createElement("span",{className:"font-bold"},n.muffledTagsPresent.join(", "),".")):null,m),i.length>0?u.createElement(Ee,{tags:i,highlightedTags:a}):null)},Pe=e=>{const t=(0,g.Pc)(),{viewModel:n}=e,r=(0,W.Q)(),i=new Set([...e.effectiveTags,...n.tags]),a=function(e,t,n,r){const i=t.filter((e=>r.collapsedTags.includes(e)));return{isDeleted:"deleted"===e.viewModel.limitedVisibilityReason,isOtherAccountDraft:"unpublished"===e.viewModel.limitedVisibilityReason,hasCws:e.viewModel.cws.length>0,hasAdultContent:e.viewModel.effectiveAdultContent,muffledTagsPresent:i.length>0?i:null,loggedOutAndNotVisible:!n.loggedIn&&"none"===e.viewModel.postingProject.loggedOutPostVisibility}}(e,Array.from(i),t,r),s=function(e,t,n,r){const i={canShow:!0,canLogIn:!1,canAssertAge:!1,hasAdultContentAndShouldAutoexpand:t.hasAdultContent&&!r.explicitlyCollapseAdultContent,hasCwsAndAllShouldAutoexpand:t.hasCws&&(r.autoExpandAllCws||e.viewModel.cws.map((e=>e.toLowerCase())).every((e=>r.autoexpandCWs.includes(e))))};if(t.hasAdultContent)if(n){if(!r.isAdult&&!e.viewModel.isEditor)return i.canShow=!1,i}else i.canShow=!1,i.canLogIn=!0,i.canAssertAge="public"===e.viewModel.postingProject.loggedOutPostVisibility;return t.loggedOutAndNotVisible&&(i.canShow=!1,i.canLogIn=!0),(t.isDeleted||t.isOtherAccountDraft)&&(i.canShow=!1),i}(e,a,t.loggedIn,r),l=t.loggedIn&&s.canShow&&(!a.hasCws||s.hasCwsAndAllShouldAutoexpand)&&(!a.hasAdultContent||s.hasAdultContentAndShouldAutoexpand)&&!a.muffledTagsPresent,[c,f]=(0,u.useState)(a.hasCws&&l),[d,p]=(0,u.useState)(a.hasAdultContent&&l),[h,m]=(0,u.useState)(a.muffledTagsPresent&&l),v=e=>{a.hasCws&&f(e),a.hasAdultContent&&p(e),a.muffledTagsPresent&&m(e)},y=n.state===o.h.Unpublished;return a.isDeleted||a.isOtherAccountDraft?u.createElement(Ne,xe({isDraft:!1,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a,displayPrefs:r},e)):a.hasCws?c?u.createElement(Oe,xe({isDraft:y,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a},e)):u.createElement(Ne,xe({isDraft:y,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a,displayPrefs:r},e)):a.muffledTagsPresent?h?u.createElement(Oe,xe({isDraft:y,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a},e)):u.createElement(Ne,xe({isDraft:y,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a,displayPrefs:r},e)):a.hasAdultContent?d?u.createElement(Ae,xe({isDraft:y,setRelevantClickthroughs:v},e)):u.createElement(Ne,xe({isDraft:y,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a,displayPrefs:r},e)):a.loggedOutAndNotVisible?u.createElement(Ne,xe({isDraft:y,setRelevantClickthroughs:v,clickthroughMode:s,reasons:a,displayPrefs:r},e)):u.createElement(Ie,xe({isDraft:y},e))},Re=({viewModel:e,highlightedTags:t,skipCollapse:n=!1})=>u.createElement("div",null,u.createElement(Pe,{viewModel:e,effectiveTags:e.tags,highlightedTags:t},u.createElement(de.y,{viewModel:e,skipCollapse:n,effectiveDate:e.publishedAt})));var Le=n(15867),Me=n(95024),De=n(89760),Fe=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"}))})),je=n(46102),Be=n(91045);function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[a,o]=(0,u.useState)(!1),[s,l]=(0,u.useState)(!1),[c,f]=(0,u.useState)(""),d=r.S.posts.delete.useMutation();async function p(){try{await d.mutateAsync({projectHandle:e,postId:t}),f(""),l(!0)}catch(e){f(e.message)}finally{o(!1)}}const{t:h}=(0,y.$G)();return u.createElement(u.Fragment,null,u.createElement(Be.w,{isOpen:a,title:h("client:delete-post.confirm-title","Delete this post"),body:h("client:delete-post.confirm-message","Are you sure you want to delete this post? This cannot be undone."),confirm:{label:h("common:delete"),color:"destructive"},cancel:{label:h("common:cancel")},onConfirm:p,onCancel:()=>o(!1)}),u.createElement(Be.w,{isOpen:s,title:h("client:delete-post.finished-title","Post deleted successfully"),body:h("client:delete-post.finished-message","(You may need to manually reload for it to disappear from your screen.)"),cancel:{label:h("common:close","close")},confirm:{label:h("common:reload","reload")},onConfirm:()=>location.reload(),onCancel:()=>l(!1)}),u.createElement(Be.w,{isOpen:""!==c,body:h("client:delete-post.error-message",{defaultValue:"Error deleting post: {{error}}",error:c}),cancel:{label:h("common:cancel","cancel")},confirm:{label:h("common:retry","retry")},onConfirm:p,onCancel:()=>f("")}),u.createElement("button",qe({onClick:()=>{o(!0)}},n),u.createElement(H.Z,{className:i.tw`co-action-button h-6 w-6`})))};var ze=n(96320),Ue=n(64817);const Ve=({post:e,baseClasses:t,unlikedClasses:n,likedClasses:i})=>{const a=r.S.useContext(),{data:o}=r.S.posts.isLiked.useQuery(e.transparentShareOfPostId??e.postId,{initialData:e.isLiked}),s=(0,g.Pc)(),l=(0,b.dg)(),{t:c}=(0,y.$G)(),f=o?c("server:post-controls.unlike","unlike this post as {{ activeProjectHandle }}",{activeProjectHandle:l?.handle}):c("server:post-controls.like","like this post as {{ activeProjectHandle }}",{activeProjectHandle:l?.handle}),d=()=>({onError:async()=>{await a.posts.isLiked.invalidate(e.transparentShareOfPostId??e.postId)}}),p=r.S.relationships.like.useMutation(d()),h=r.S.relationships.unlike.useMutation(d()),m=(0,u.useCallback)((async()=>{s.loggedIn&&(a.posts.isLiked.setData(e.transparentShareOfPostId??e.postId,(e=>!e)),o?await h.mutateAsync({fromProjectId:s.projectId,toPostId:e.transparentShareOfPostId??e.postId}):await p.mutateAsync({fromProjectId:s.projectId,toPostId:e.transparentShareOfPostId??e.postId}))}),[s.loggedIn,s.projectId,a.posts.isLiked,e.transparentShareOfPostId,e.postId,o,p,h]);return s.loggedIn?u.createElement("button",{onClick:m,className:`${t} relative`,title:f},u.createElement(Ue.Z,{className:`${t} absolute top-0 left-0 ${i} ${o?"visible":"invisible"}`}),u.createElement(ze.Z,{className:`${t} absolute top-0 left-0 ${n} ${o?"invisible":"visible"}`})):null};var $e=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"}))})),We=n(91625);function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const i=r.S.posts.changePostState.useMutation(),a=(0,u.useCallback)((async()=>{try{await i.mutateAsync({projectHandle:e.postingProject.handle,postId:e.postId,operation:"publish"}),location.assign(d.ZP.public.home())}catch(e){console.error(e)}}),[i,e.postId,e.postingProject.handle]),[o,s]=(0,u.useState)(!1);return u.createElement(u.Fragment,null,u.createElement(Be.w,{isOpen:o,title:(0,We.t)("client:publish-post.confirm-title","Publish this draft?"),body:(0,We.t)("client:publish-post.confirm-body","Are you sure you want to publish this draft? It will become visible to others."),confirm:{label:(0,We.t)("common:publish","publish")},cancel:{label:(0,We.t)("common:cancel","cancel")},onConfirm:a,onCancel:()=>s(!1)}),u.createElement("button",Ge({onClick:()=>s(!0),className:`${t??""} relative`},n),u.createElement($e,{className:"absolute left-0 top-0"})))};var Ke=n(87335),Qe=n(81732);const Ye=({post:e})=>{const t=(0,b.dg)(),{t:n}=(0,y.$G)(),a=r.S.posts.quickShare.useMutation(),o=r.S.useContext(),s=(0,W.Q)(),{activated:l}=(0,g.Pc)(),c=(0,Qe.m)(),f=(0,u.useCallback)((t=>{if(!t.shiftKey){if(s.disableModalPostComposer)return;if(!l)return;if(t.ctrlKey||t.metaKey||3===t.button)return;return console.log(c.hasBeenSetup,"hasBeenSetup"),void(c.hasBeenSetup&&(t.preventDefault(),o.posts.singlePost.setData({postId:e.postId,handle:e.postingProject.handle,skipComments:!0},{comments:{},post:e}),c.activate({shareOf:{postId:e.postId,handle:e.postingProject.handle}})))}t.preventDefault(),a.mutateAsync({shareOfPostId:e.postId}).then((e=>console.log("done!",e.newPostId))).catch((e=>console.error(e)))}),[s.disableModalPostComposer,c,e,a,o.posts.singlePost]);return t?.handle?u.createElement("a",{onClick:f,href:d.ZP.public.project.composePost({projectHandle:t.handle,shareOfPostId:e.postId}).toString(),title:n("server:post-controls.share","share this post as {{ activeProjectHandle }}",{activeProjectHandle:t.handle})},u.createElement(Ke.Z,{className:`h-6 w-6 ${a.isSuccess?"text-green":a.isError?"text-red":i.tw`co-action-button`} ${a.isLoading?"motion-safe:animate-spin motion-reduce:animate-pulse":""}`})):null};var Je=({viewModel:e})=>{const t=(0,g.Pc)(),{t:n}=(0,y.$G)();if(t.loggedIn){const t=n("client:post-controls.delete","delete this post"),r=n("client:post-controls.publish","publish this post"),a=n("client:post-controls.edit","edit this post"),s=e.state===o.h.Published;return u.createElement("div",{className:"flex items-center justify-end gap-3"},e.isEditor?u.createElement(He,{postId:e.postId,projectHandle:e.postingProject.handle,title:t}):null,e.isEditor&&!s?u.createElement(Ze,{post:e,className:i.tw`co-action-button h-6 w-6 disabled:cursor-not-allowed`,disabled:!e.canPublish,title:r}):null,e.isEditor?u.createElement("a",{href:e.postEditUrl.toString(),className:i.tw`co-action-button h-6 w-6`,title:a},u.createElement(Fe,null)):null,s?u.createElement(u.Fragment,null,!0===e.canShare?u.createElement(Ye,{post:e}):null,u.createElement(Ve,{post:e,baseClasses:"w-6 h-6 pointer",likedClasses:"text-cherry",unlikedClasses:i.tw`co-action-button`})):null)}return u.createElement("div",{className:"flex justify-end gap-3"},u.createElement("a",{href:d.ZP.public.login().toString(),className:i.tw`co-action-button h-6 w-6`},u.createElement(je.Z,null)))};const Xe=({singlePostPageUrl:e,post:t})=>{const{t:n}=(0,y.$G)(),r=(0,Me.useFlag)(Le.T.Values["chaos-day-2023"]),{chaosDay2023_showNumbers:a}=(0,W.Q)(),o=(0,u.useMemo)((()=>{const t=new URL(e);return t.hash="#comments",t.toString()}),[e]);return u.createElement(u.Fragment,null,u.createElement("hr",{className:"co-hairline"}),u.createElement("footer",{className:i.tw`co-thread-footer w-full max-w-full rounded-b-lg p-3`},u.createElement("div",{className:"flex justify-between align-middle"},u.createElement("div",{className:"w-max flex-none"},u.createElement("a",{href:o,className:"text-sm hover:underline"},n("client:post-preview.num-comments",{count:t.numComments,defaultValue:"{{numComments}} comment",numComments:t.numComments}),t.numSharedComments?n("client:post-preview.num-shared-comments",{defaultValue:" + {{numSharedComments}} on shared posts",numSharedComments:t.numSharedComments}):null),r&&a?u.createElement("span",{className:"text-sm"},u.createElement("br",{className:"[@media(min-width:420px)]:hidden"}),u.createElement("span",{className:"[@media(max-width:419px)]:hidden"}," • "),u.createElement(De.u,{post:t})):null),u.createElement(Je,{viewModel:t}))))};var et=n(32903),tt=n(26645),nt=n(63442),rt=n(80095),it=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z"}))})),at=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 10.5V6.75a4.5 4.5 0 119 0v3.75M3.75 21.75h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H3.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"}))})),ot=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"}))})),st=n(44387),lt=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 001.5-.189m-1.5.189a6.01 6.01 0 01-1.5-.189m3.75 7.478a12.06 12.06 0 01-4.5 0m3.75 2.383a14.406 14.406 0 01-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 10-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"}))})),ut=n(85252),ct=n(70174),ft=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{fillRule:"evenodd",d:"M12 2.25a.75.75 0 01.75.75v16.19l6.22-6.22a.75.75 0 111.06 1.06l-7.5 7.5a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 111.06-1.06l6.22 6.22V3a.75.75 0 01.75-.75z",clipRule:"evenodd"}))})),dt=u.forwardRef((function({title:e,titleId:t,...n},r){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?u.createElement("title",{id:t},e):null,u.createElement("path",{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 011.06 0l7.5 7.5a.75.75 0 11-1.06 1.06l-6.22-6.22V21a.75.75 0 01-1.5 0V4.81l-6.22 6.22a.75.75 0 11-1.06-1.06l7.5-7.5z",clipRule:"evenodd"}))})),pt=n(74578),ht=n(32532);const mt=({postId:e})=>{const{loggedIn:t}=(0,g.Pc)(),n=r.S.useContext(),{mutate:i}=r.S.relationships.silencePost.useMutation({async onSettled(e,t,r){await n.relationships.isPostSilenced.invalidate({postId:r.toPostId})}}),{mutate:a}=r.S.relationships.unsilencePost.useMutation({async onSettled(e,t,r){await n.relationships.isPostSilenced.invalidate({postId:r.toPostId})}}),{data:o}=r.S.relationships.isPostSilenced.useQuery({postId:e},{enabled:t});return t?o?u.createElement("button",{className:"flex flex-row gap-2 hover:underline",onClick:()=>a({toPostId:e})},u.createElement(ht.$,{className:"h-6"}),"unsilence this post"):u.createElement("button",{className:"flex flex-row gap-2 hover:underline",onClick:()=>i({toPostId:e})},u.createElement(ht.$,{className:"h-6"}),"silence this post"):null},gt=({viewModel:e})=>{if(!e.shareTree.length)return null;const{postingProject:t}=e.shareTree[e.shareTree.length-1];return u.createElement(u.Fragment,null,u.createElement(ct.Z,{className:"co-project-display-name h-5 w-5"}),u.createElement(Y.H,{project:t}))},vt=()=>{const{refs:e,floatingStyles:t}=(0,et.YF)();return u.createElement(rt.J,{className:"leading-none"},u.createElement(rt.J.Button,{ref:e.setReference},u.createElement(it,{className:i.tw`co-action-button h-6 w-6`})),u.createElement(rt.J.Panel,{ref:e.setFloating,style:t,className:"cohost-shadow-light prose z-20 w-max max-w-full rounded-lg bg-notWhite p-3 text-center text-sm font-normal text-notBlack"},u.createElement("p",null,"This post is a response to an ask.")))},yt=({viewModel:e})=>u.createElement("div",{className:"co-post-header flex flex-row flex-wrap items-center gap-2 px-3 py-2"},u.createElement(Y.H,{project:e.postingProject,inline:!0}),e.publishedAt?u.createElement(K.Y,{dateISO:new Date(e.publishedAt).toISOString(),link:e.singlePostPageUrl}):null,e.responseToAskId&&u.createElement(vt,null)),bt=({viewModel:e,dynamicTheme:t})=>{const{isBrowser:n}=(0,$.NS)(),a=(0,u.useContext)(M.j),s=(0,g.Pc)(),{mutate:l}=r.S.posts.setPostPinned.useMutation({onSuccess:()=>location.reload()}),{mutate:c}=r.S.posts.setCommentsLocked.useMutation({onSuccess:()=>location.reload()}),{mutate:f}=r.S.posts.setSharesLocked.useMutation({onSuccess:()=>location.reload()}),{floatingStyles:p,refs:h}=(0,et.YF)({placement:"bottom-end",whileElementsMounted:tt.Me,middleware:[(0,nt.cv)(8)]}),m=(0,oe.Bj)();let v;switch(t.current){case"dark":v="light";break;case"light":v="dark";break;case"both":v=m?"light":"dark"}let y=null;n&&navigator.canShare&&navigator.canShare({url:e.singlePostPageUrl})&&(y=u.createElement(Z.X,{ItemIcon:F,text:"share post",onClick:()=>navigator.share({url:e.singlePostPageUrl}),disabled:!1}));const b=s.projectId===e.postingProject.projectId&&e.state===o.h.Published&&!e.transparentShareOfPostId;let w=null;b&&e.pinned?w=u.createElement("button",{className:"flex flex-row gap-2 hover:underline",onClick:()=>l({postId:e.postId,pinned:!1})},u.createElement(pt.G,{className:"h-6"}),"unpin this post"):b&&(w=u.createElement("button",{className:"flex flex-row gap-2 hover:underline",onClick:()=>l({postId:e.postId,pinned:!0})},u.createElement(pt.G,{className:"h-6"}),"pin this post"));const k=s.projectId===e.postingProject.projectId&&!e.transparentShareOfPostId;let _=null;k&&e.commentsLocked?_=u.createElement(Z.X,{ItemIcon:at,text:"unlock comments",onClick:()=>c({postId:e.postId,commentsLocked:!1}),disabled:!1}):k&&(_=u.createElement(Z.X,{ItemIcon:ot,text:"lock comments",onClick:()=>c({postId:e.postId,commentsLocked:!0}),disabled:!1}));let E=null;return s.projectId===e.postingProject.projectId&&!e.transparentShareOfPostId&&(E=e.sharesLocked?u.createElement(Z.X,{ItemIcon:at,text:"unlock shares",disabled:!1,onClick:()=>f({postId:e.postId,sharesLocked:!1})}):u.createElement(Z.X,{ItemIcon:ot,text:"lock shares",disabled:!1,onClick:()=>f({postId:e.postId,sharesLocked:!0})})),u.createElement(D.v,null,u.createElement(D.v.Button,{ref:h.setReference},u.createElement(st.Z,{className:i.tw`co-action-button h-6 w-6 transition-transform ui-open:rotate-90`})),u.createElement(D.v.Items,{ref:h.setFloating,style:p,className:"cohost-shadow-dark z-30 flex min-w-max flex-col gap-3 rounded-lg bg-notWhite p-3 text-notBlack focus:!outline-none"},y?u.createElement(D.v.Item,null,y):null,u.createElement(D.v.Item,null,u.createElement(Z.X,{ItemIcon:lt,text:"invert colors",disabled:!1,onClick:()=>t.forceTheme(v)})),w?u.createElement(D.v.Item,null,w):null,_?u.createElement(D.v.Item,null,_):null,E?u.createElement(D.v.Item,null,E):null,e.state===o.h.Published?u.createElement(D.v.Item,null,u.createElement(mt,{postId:e.transparentShareOfPostId??e.postId})):null,u.createElement(D.v.Item,null,u.createElement(Z.X,{onClick:()=>a.send({type:"START_REPORT",postId:e.transparentShareOfPostId??e.postId??-99999}),disabled:!e.transparentShareOfPostId&&!e.postId,ItemIcon:q.Z,text:"report this post"})),s.modMode?u.createElement(u.Fragment,null,u.createElement(D.v.Item,null,u.createElement("a",{className:"flex flex-row gap-2 hover:underline",href:d.ZP.public.moderation.managePost({postId:e.transparentShareOfPostId??e.postId}).toString()},u.createElement(ut.Z,{className:"h-6"}),"manage post")),e.responseToAskId?u.createElement(D.v.Item,null,u.createElement("a",{className:"flex flex-row gap-2 hover:underline",href:d.ZP.public.moderation.manageAsk({askId:e.responseToAskId}).toString()},u.createElement(ut.Z,{className:"h-6"}),"manage ask")):null):null))},wt=({viewModel:e,highlightedTags:t,showHeader:n,skipCollapse:r,showHairline:i})=>u.createElement("div",null,u.createElement("div",{id:`post-${e.postId??-99999}`,"data-testid":`post-body-${e.postId??-99999}`,className:"relative -top-20"}),n?u.createElement(yt,{viewModel:e}):null,u.createElement(Re,{viewModel:e,skipCollapse:r,highlightedTags:t}),i?u.createElement("hr",{className:"co-hairline"}):null),kt=({viewModel:e,highlightedTags:t,displayPrefs:n,condensed:r=!1,showFooter:a=!0,showLastPost:s=!0,showMeatballMenu:l=!0,showThreadCollapser:c=!0,skipCollapse:f=!1,commentThreads:p})=>{const{t:h}=(0,y.$G)(),[m,g]=(0,u.useState)(n.collapseLongThreads),v=(0,oe.rA)(),b=[...e.shareTree.filter((e=>("none"!==e.limitedVisibilityReason||e.blocks.length||e.headline.length)&&!(e.state===o.h.Deleted&&e.transparentShareOfPostId)))];let w;!e.transparentShareOfPostId&&s&&b.push(e);const k=()=>{g(!m)},_=e.transparentShareOfPostId&&e.tags.length?u.createElement("div",{className:"flex w-full max-w-full flex-col"},u.createElement("hr",{className:"co-hairline mb-3"}),u.createElement("div",{className:i.tw`co-ui-text px-3`},u.createElement("span",{className:"min-w-0 truncate"},u.createElement("a",{href:d.ZP.public.project.mainAppProfile({projectHandle:e.postingProject.handle}).toString(),className:"font-bold hover:underline"},"@",e.postingProject.handle)," ",u.createElement("span",null,"shared with:"))),u.createElement(Ee,{tags:e.tags,highlightedTags:t})):null;if(c&&b.length>3){const e=b[0],r=m?b.slice(-2):b.slice(1),a=b.length-3;w=u.createElement(u.Fragment,null,e?u.createElement(u.Fragment,null,u.createElement(wt,{key:e.postId,viewModel:e,highlightedTags:t,displayPrefs:n,showHeader:!0,showHairline:!0}),m?u.createElement(u.Fragment,null,u.createElement("button",{className:i.tw`co-link-button w-full cursor-pointer text-center font-bold`,onClick:k,type:"button"},u.createElement(ft,{className:"mr-1 inline-block w-4"}),h("client:post-preview.thread-collapser-show",{count:a,defaultValue:"show {{count}} posts"})),u.createElement("hr",{className:"co-hairline"}),u.createElement("hr",{className:"co-hairline my-1"}),u.createElement("hr",{className:"co-hairline"})):u.createElement(u.Fragment,null,u.createElement("button",{className:i.tw`co-link-button w-full cursor-pointer text-center font-bold`,onClick:k,type:"button"},u.createElement(dt,{className:"mr-1 inline-block w-4"}),h("client:post-preview.thread-collapser-hide",{count:a,defaultValue:"hide {{count}} posts"})),u.createElement("hr",{className:"co-hairline"}))):null,r.map(((e,i)=>{const a=i===r.length-1;return u.createElement(wt,{key:e.postId,viewModel:e,highlightedTags:t,displayPrefs:n,skipCollapse:a?f:void 0,showHeader:!0,showHairline:!a})})),_)}else w=u.createElement(u.Fragment,null,b.map(((r,i)=>{const a=i===b.length-1;return u.createElement(wt,{key:r.postId,viewModel:r,highlightedTags:t,displayPrefs:n,skipCollapse:a?f:void 0,showHeader:b.length>1||!!e.transparentShareOfPostId,showHairline:!a})})),_);return u.createElement("div",{"data-view":"post-preview","data-testid":`post-${e.postId}`,"data-postid":e.postId,key:e.postId,className:`grid ${r?"":"lg:grid-cols-[4rem_1fr]"} w-full gap-x-6 gap-y-2`},r?null:u.createElement(Q.t,{project:e.postingProject}),u.createElement("article",{"data-theme":v.current,className:"co-themed-box co-post-box"},u.createElement("header",{className:"co-thread-header"},u.createElement("div",{className:"flex min-w-0 flex-1 flex-row flex-wrap items-center gap-2 leading-none"},e.pinned?u.createElement(pt.G,{className:"co-project-display-name h-6"}):null,u.createElement(Y.H,{project:e.postingProject}),e.responseToAskId&&0===e.shareTree.length&&u.createElement(vt,null),e.publishedAt?u.createElement(K.Y,{dateISO:new Date(e.publishedAt).toISOString(),link:e.singlePostPageUrl}):null,e.shareTree.length>0?u.createElement(gt,{viewModel:e}):null),l?u.createElement(bt,{viewModel:e,dynamicTheme:v}):null),u.createElement("hr",{className:"co-hairline"}),w,a?u.createElement(Xe,{post:e,singlePostPageUrl:e.singlePostPageUrl}):null),p?u.createElement(ue,{post:e,commentThreads:p}):null)};var _t=kt},83052:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(76051),i=n(70769),a=n(57834),o=n(94159),s=n(12093),l=n(51540);const u=({project:e,inline:t=!1})=>o.createElement(o.Fragment,null,o.createElement(l.t,{project:e,noLink:!0,className:`h-8 w-8 ${t?"":"lg:hidden"} inline-block`,hideLock:!0}),e.displayName?o.createElement("a",{rel:"author",href:s.ZP.public.project.mainAppProfile({projectHandle:e.handle}).toString(),className:"co-project-display-name max-w-full flex-shrink truncate font-atkinson font-bold hover:underline",title:e.displayName},e.displayName):null,e.privacy===i.WL.Private?o.createElement(a.Z,{className:"co-project-display-name inline-block h-5 w-5"}):null,o.createElement("a",{href:s.ZP.public.project.mainAppProfile({projectHandle:e.handle}).toString(),className:r.tw`co-project-handle font-atkinson font-normal hover:underline`},"@",e.handle))},20616:function(e,t,n){"use strict";n.d(t,{Hg:function(){return te},w3:function(){return ee}});var r=n(12093),i=n(70769),a=n(55875),o=n(94159),s=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z"}))})),l=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"}))})),u=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z"}),o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6z"}))})),c=n(96320),f=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 00-5.78 1.128 2.25 2.25 0 01-2.4 2.245 4.5 4.5 0 008.4-2.245c0-.399-.078-.78-.22-1.128zm0 0a15.998 15.998 0 003.388-1.62m-5.043-.025a15.994 15.994 0 011.622-3.395m3.42 3.42a15.995 15.995 0 004.764-4.648l3.876-5.814a1.151 1.151 0 00-1.597-1.597L14.146 6.32a15.996 15.996 0 00-4.649 4.763m3.42 3.42a6.776 6.776 0 00-3.42-3.42"}))})),d=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}))})),p=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0012 15.75a7.488 7.488 0 00-5.982 2.975m11.963 0a9 9 0 10-11.963 0m11.963 0A8.966 8.966 0 0112 21a8.966 8.966 0 01-5.982-2.275M15 9.75a3 3 0 11-6 0 3 3 0 016 0z"}))})),h=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 13.5h3.86a2.25 2.25 0 012.012 1.244l.256.512a2.25 2.25 0 002.013 1.244h3.218a2.25 2.25 0 002.013-1.244l.256-.512a2.25 2.25 0 012.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 00-2.15-1.588H6.911a2.25 2.25 0 00-2.15 1.588L2.35 13.177a2.25 2.25 0 00-.1.661z"}))})),m=n(96054),g=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"}))})),v=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18 18.72a9.094 9.094 0 003.741-.479 3 3 0 00-4.682-2.72m.94 3.198l.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0112 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 016 18.719m12 0a5.971 5.971 0 00-.941-3.197m0 0A5.995 5.995 0 0012 12.75a5.995 5.995 0 00-5.058 2.772m0 0a3 3 0 00-4.681 2.72 8.986 8.986 0 003.74.477m.94-3.197a5.971 5.971 0 00-.94 3.197M15 6.75a3 3 0 11-6 0 3 3 0 016 0zm6 3a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0zm-13.5 0a2.25 2.25 0 11-4.5 0 2.25 2.25 0 014.5 0z"}))})),y=n(25384),b=n(85252),w=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.712 4.33a9.027 9.027 0 011.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 00-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 010 9.424m-4.138-5.976a3.736 3.736 0 00-.88-1.388 3.737 3.737 0 00-1.388-.88m2.268 2.268a3.765 3.765 0 010 2.528m-2.268-4.796a3.765 3.765 0 00-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 01-1.388.88m2.268-2.268l4.138 3.448m0 0a9.027 9.027 0 01-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0l-3.448-4.138m3.448 4.138a9.014 9.014 0 01-9.424 0m5.976-4.138a3.765 3.765 0 01-2.528 0m0 0a3.736 3.736 0 01-1.388-.88 3.737 3.737 0 01-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 01-1.652-1.306 9.027 9.027 0 01-1.306-1.652m0 0l4.138-3.448M4.33 16.712a9.014 9.014 0 010-9.424m4.138 5.976a3.765 3.765 0 010-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 011.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 00-1.652 1.306A9.025 9.025 0 004.33 7.288"}))})),k=n(11436),_=n(15674),E=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M4.125 3C3.089 3 2.25 3.84 2.25 4.875V18a3 3 0 003 3h15a3 3 0 01-3-3V4.875C17.25 3.839 16.41 3 15.375 3H4.125zM12 9.75a.75.75 0 000 1.5h1.5a.75.75 0 000-1.5H12zm-.75-2.25a.75.75 0 01.75-.75h1.5a.75.75 0 010 1.5H12a.75.75 0 01-.75-.75zM6 12.75a.75.75 0 000 1.5h7.5a.75.75 0 000-1.5H6zm-.75 3.75a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5H6a.75.75 0 01-.75-.75zM6 6.75a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h3a.75.75 0 00.75-.75v-3A.75.75 0 009 6.75H6z",clipRule:"evenodd"}),o.createElement("path",{d:"M18.75 6.75h1.875c.621 0 1.125.504 1.125 1.125V18a1.5 1.5 0 01-3 0V6.75z"}))})),x=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M5.25 9a6.75 6.75 0 0113.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 01-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 11-7.48 0 24.585 24.585 0 01-4.831-1.244.75.75 0 01-.298-1.205A8.217 8.217 0 005.25 9.75V9zm4.502 8.9a2.25 2.25 0 104.496 0 25.057 25.057 0 01-4.496 0z",clipRule:"evenodd"}))})),T=n(64817),S=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M20.599 1.5c-.376 0-.743.111-1.055.32l-5.08 3.385a18.747 18.747 0 00-3.471 2.987 10.04 10.04 0 014.815 4.815 18.748 18.748 0 002.987-3.472l3.386-5.079A1.902 1.902 0 0020.599 1.5zm-8.3 14.025a18.76 18.76 0 001.896-1.207 8.026 8.026 0 00-4.513-4.513A18.75 18.75 0 008.475 11.7l-.278.5a5.26 5.26 0 013.601 3.602l.502-.278zM6.75 13.5A3.75 3.75 0 003 17.25a1.5 1.5 0 01-1.601 1.497.75.75 0 00-.7 1.123 5.25 5.25 0 009.8-2.62 3.75 3.75 0 00-3.75-3.75z",clipRule:"evenodd"}))})),C=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}))})),O=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0021.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 003.065 7.097A9.716 9.716 0 0012 21.75a9.716 9.716 0 006.685-2.653zm-12.54-1.285A7.486 7.486 0 0112 15a7.486 7.486 0 015.855 2.812A8.224 8.224 0 0112 20.25a8.224 8.224 0 01-5.855-2.438zM15.75 9a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z",clipRule:"evenodd"}))})),A=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M6.912 3a3 3 0 00-2.868 2.118l-2.411 7.838a3 3 0 00-.133.882V18a3 3 0 003 3h15a3 3 0 003-3v-4.162c0-.299-.045-.596-.133-.882l-2.412-7.838A3 3 0 0017.088 3H6.912zm13.823 9.75l-2.213-7.191A1.5 1.5 0 0017.088 4.5H6.912a1.5 1.5 0 00-1.434 1.059L3.265 12.75H6.11a3 3 0 012.684 1.658l.256.513a1.5 1.5 0 001.342.829h3.218a1.5 1.5 0 001.342-.83l.256-.512a3 3 0 012.684-1.658h2.844z",clipRule:"evenodd"}))})),I=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625zM7.5 15a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5A.75.75 0 017.5 15zm.75 2.25a.75.75 0 000 1.5H12a.75.75 0 000-1.5H8.25z",clipRule:"evenodd"}),o.createElement("path",{d:"M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z"}))})),N=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{d:"M4.5 6.375a4.125 4.125 0 118.25 0 4.125 4.125 0 01-8.25 0zM14.25 8.625a3.375 3.375 0 116.75 0 3.375 3.375 0 01-6.75 0zM1.5 19.125a7.125 7.125 0 0114.25 0v.003l-.001.119a.75.75 0 01-.363.63 13.067 13.067 0 01-6.761 1.873c-2.472 0-4.786-.684-6.76-1.873a.75.75 0 01-.364-.63l-.001-.122zM17.25 19.128l-.001.144a2.25 2.25 0 01-.233.96 10.088 10.088 0 005.06-1.01.75.75 0 00.42-.643 4.875 4.875 0 00-6.957-4.611 8.586 8.586 0 011.71 5.157v.003z"}))})),P=n(54843),R=n(64636),L=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{d:"M17.004 10.407c.138.435-.216.842-.672.842h-3.465a.75.75 0 01-.65-.375l-1.732-3c-.229-.396-.053-.907.393-1.004a5.252 5.252 0 016.126 3.537zM8.12 8.464c.307-.338.838-.235 1.066.16l1.732 3a.75.75 0 010 .75l-1.732 3.001c-.229.396-.76.498-1.067.16A5.231 5.231 0 016.75 12c0-1.362.519-2.603 1.37-3.536zM10.878 17.13c-.447-.097-.623-.608-.394-1.003l1.733-3.003a.75.75 0 01.65-.375h3.465c.457 0 .81.408.672.843a5.252 5.252 0 01-6.126 3.538z"}),o.createElement("path",{fillRule:"evenodd",d:"M21 12.75a.75.75 0 000-1.5h-.783a8.22 8.22 0 00-.237-1.357l.734-.267a.75.75 0 10-.513-1.41l-.735.268a8.24 8.24 0 00-.689-1.191l.6-.504a.75.75 0 10-.964-1.149l-.6.504a8.3 8.3 0 00-1.054-.885l.391-.678a.75.75 0 10-1.299-.75l-.39.677a8.188 8.188 0 00-1.295-.471l.136-.77a.75.75 0 00-1.477-.26l-.136.77a8.364 8.364 0 00-1.377 0l-.136-.77a.75.75 0 10-1.477.26l.136.77c-.448.121-.88.28-1.294.47l-.39-.676a.75.75 0 00-1.3.75l.392.678a8.29 8.29 0 00-1.054.885l-.6-.504a.75.75 0 00-.965 1.149l.6.503a8.243 8.243 0 00-.689 1.192L3.8 8.217a.75.75 0 10-.513 1.41l.735.267a8.222 8.222 0 00-.238 1.355h-.783a.75.75 0 000 1.5h.783c.042.464.122.917.238 1.356l-.735.268a.75.75 0 10.513 1.41l.735-.268c.197.417.428.816.69 1.192l-.6.504a.75.75 0 10.963 1.149l.601-.505c.326.323.679.62 1.054.885l-.392.68a.75.75 0 101.3.75l.39-.679c.414.192.847.35 1.294.471l-.136.771a.75.75 0 101.477.26l.137-.772a8.376 8.376 0 001.376 0l.136.773a.75.75 0 101.477-.26l-.136-.772a8.19 8.19 0 001.294-.47l.391.677a.75.75 0 101.3-.75l-.393-.679a8.282 8.282 0 001.054-.885l.601.504a.75.75 0 10.964-1.15l-.6-.503a8.24 8.24 0 00.69-1.191l.735.268a.75.75 0 10.512-1.41l-.734-.268c.115-.438.195-.892.237-1.356h.784zm-2.657-3.06a6.744 6.744 0 00-1.19-2.053 6.784 6.784 0 00-1.82-1.51A6.704 6.704 0 0012 5.25a6.801 6.801 0 00-1.225.111 6.7 6.7 0 00-2.15.792 6.784 6.784 0 00-2.952 3.489.758.758 0 01-.036.099A6.74 6.74 0 005.251 12a6.739 6.739 0 003.355 5.835l.01.006.01.005a6.706 6.706 0 002.203.802c.007 0 .014.002.021.004a6.792 6.792 0 002.301 0l.022-.004a6.707 6.707 0 002.228-.816 6.781 6.781 0 001.762-1.483l.009-.01.009-.012a6.744 6.744 0 001.18-2.064c.253-.708.39-1.47.39-2.264a6.74 6.74 0 00-.408-2.308z",clipRule:"evenodd"}))})),M=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M19.449 8.448L16.388 11a4.52 4.52 0 010 2.002l3.061 2.55a8.275 8.275 0 000-7.103zM15.552 19.45L13 16.388a4.52 4.52 0 01-2.002 0l-2.55 3.061a8.275 8.275 0 007.103 0zM4.55 15.552L7.612 13a4.52 4.52 0 010-2.002L4.551 8.45a8.275 8.275 0 000 7.103zM8.448 4.55L11 7.612a4.52 4.52 0 012.002 0l2.55-3.061a8.275 8.275 0 00-7.103 0zm8.657-.86a9.776 9.776 0 011.79 1.415 9.776 9.776 0 011.414 1.788 9.764 9.764 0 010 10.211 9.777 9.777 0 01-1.415 1.79 9.777 9.777 0 01-1.788 1.414 9.764 9.764 0 01-10.212 0 9.776 9.776 0 01-1.788-1.415 9.776 9.776 0 01-1.415-1.788 9.764 9.764 0 010-10.212 9.774 9.774 0 011.415-1.788A9.774 9.774 0 016.894 3.69a9.764 9.764 0 0110.211 0zM14.121 9.88a2.985 2.985 0 00-1.11-.704 3.015 3.015 0 00-2.022 0 2.985 2.985 0 00-1.11.704c-.326.325-.56.705-.704 1.11a3.015 3.015 0 000 2.022c.144.405.378.785.704 1.11.325.326.705.56 1.11.704.652.233 1.37.233 2.022 0a2.985 2.985 0 001.11-.704c.326-.325.56-.705.704-1.11a3.016 3.016 0 000-2.022 2.985 2.985 0 00-.704-1.11z",clipRule:"evenodd"}))})),D=o.forwardRef((function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{fillRule:"evenodd",d:"M3 6.75A.75.75 0 013.75 6h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 6.75zM3 12a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75A.75.75 0 013 12zm0 5.25a.75.75 0 01.75-.75h16.5a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))})),F=n(65443),j=n.n(F),B=n(38934),q=n(67920),H=n(62745),z=n(21281),U=n(8227);function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement("svg",V({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 26 26"},e),o.createElement("path",{d:"M11.3119 5.42651 6.14576 1.57637l1.85085 7.14697L1 10.8444l6.40678 1.9135L1.38644 25l9.15256-7.3545 3.2542 6.8473.1424-8.9222 8.7864 5.5331-6.9762-8.438L25 7.317 13.4678 8.40058 15.1356 1l-3.8237 4.42651Z",stroke:"#E56B6F",strokeWidth:"2",strokeLinejoin:"round"}));var W=n(88658),G=n(49750),Z=n(95024),K=n(15867);function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[c,f]=(0,o.useState)(!1),{enableNotificationCount:d}=(0,H.Q)(),p=(0,o.useCallback)((e=>{u&&(e.preventDefault(),f((e=>!e)))}),[u]);let h="";return u&&(h+="transition-transform ",c&&(h+="rotate-180")),o.createElement(o.Fragment,null,o.createElement("a",{href:i,onClick:p},o.createElement("li",{className:j()("flex flex-row items-center\n gap-2 rounded-lg border border-transparent px-1 py-3\n hover:border-accent hover:text-accent\n lg:hover:border-sidebarAccent lg:hover:text-sidebarAccent",{"font-bold":a,"text-cherry-500 dark:text-mango-400":a&&l}),title:t??e.toString()},o.createElement("div",{className:"relative"},a&&r?o.createElement(r,{className:j()("inline-block h-6",h)}):n?o.createElement(n,{className:j()("inline-block h-6",h)}):null,l&&s?o.createElement(W.Ov,{className:"absolute -right-1 top-1 h-2 fill-sidebarAccent"}):null),l?null:e,!l&&s?o.createElement(W.Ov,{className:"ml-auto h-6 fill-sidebarAccent text-sidebarBg"},d?s>99?"99+":s:""):null)),u?u(c):null)},J=({bookmarkedTags:e})=>o.createElement("ul",{className:"my-1 ml-10"},e.tags.map((e=>o.createElement("li",{key:e,className:"hover:text-accent lg:hover:text-sidebarAccent"},o.createElement("a",{href:r.ZP.public.tags({tagSlug:e}).toString()},"#",e))))),X=({additionalNavItems:e=[],defaultBookmarkedTags:t,className:n,narrowMode:k=!1,..._})=>{const D=(0,U.Pc)(),F=(0,H.Q)(),j=(0,B.dg)(),V=(0,z.Z3)().get("ssrUrl"),W=[...e],{isBrowser:X}=(0,q.NS)(),ee=(0,B.GU)(),te=(0,B.fR)(),ne=(0,B.fj)(),{data:re}=(0,B.sm)(t),ie=re??{tags:t??[]},ae=(0,B._c)(),oe=(0,Z.useFlag)(K.T.Enum["artist-alley-listings"]);return D.loggedIn&&j&&W.push({label:"dashboard",Icon:s,ActiveIcon:E,href:r.ZP.public.dashboard().toString(),displayIf:"following"===F.homeView},{label:"notifications",Icon:l,ActiveIcon:x,href:r.ZP.public.project.notifications().toString(),eggCount:ee?.count},{label:"bookmarked tags",href:k?r.ZP.public.bookmarkedTagFeed().toString():"#",Icon:u,displayIf:ie.tags.length>0,render:k?void 0:e=>e?o.createElement(J,{bookmarkedTags:ie}):null},{label:"posts you've liked",Icon:c.Z,ActiveIcon:T.Z,href:r.ZP.public.likedPosts({}).toString()},{label:"artist alley",Icon:f,ActiveIcon:S,href:r.ZP.public.artistAlley.home().toString(),displayIf:oe},{label:"search",href:r.ZP.public.search().toString(),Icon:d,ActiveIcon:C},{label:"profile",Icon:p,ActiveIcon:O,href:r.ZP.public.project.mainAppProfile({projectHandle:j.handle}).toString()},{label:"inbox",Icon:h,ActiveIcon:A,href:r.ZP.public.project.inbox().toString(),displayIf:j?.askSettings.enabled,eggCount:ne.count??0},{label:"drafts",Icon:m.Z,ActiveIcon:I,href:r.ZP.public.project.unpublishedPosts().toString()},{label:"following",Icon:g,ActiveIcon:N,href:r.ZP.public.project.following().toString(),displayIf:"dashboard"===F.homeView},{label:"followers",Icon:v,ActiveIcon:P.Z,href:r.ZP.public.project.followers().toString()},{label:"follow requests",Icon:y.Z,ActiveIcon:R.Z,href:r.ZP.public.project.followRequests({projectHandle:j.handle}).toString(),eggCount:te?.count,displayIf:j?.privacy===i.WL.Private},{label:"settings",Icon:b.Z,ActiveIcon:L,href:r.ZP.public.userSettings().toString()},{label:"help / report a bug",Icon:w,ActiveIcon:M,href:"https://help.antisoftware.club/support/home"},{label:o.createElement(o.Fragment,null,"get cohost ",o.createElement("em",null,"Plus!")),plainTextLabel:"get cohost Plus!",Icon:$,href:r.ZP.public.subscriptions.manage().toString(),displayIf:!ae}),o.createElement(a.v.Items,{static:_.static,as:"ul",className:n},_.children,W.filter(G.f).filter((e=>!1!==e.displayIf)).map((e=>o.createElement(o.Suspense,{key:`${e.href}-${e.label.toString()}`},o.createElement(a.v.Item,Q({as:Y,key:`${e.href}-${e.label.toString()}`},e,{narrowMode:k,active:X?e.href===window.location.toString():e.href===V}))))))},ee=e=>{const t=(0,U.Pc)();return o.createElement(a.v,null,o.createElement(X,Q({static:!0,className:j()("hidden h-fit flex-col rounded-lg bg-sidebarBg p-6 text-sidebarText lg:flex",{"cohost-shadow-light dark:cohost-shadow-dark dark:border dark:border-gray-700":!e.narrowMode})},e),t.loggedIn?null:o.createElement(o.Fragment,null,o.createElement(a.v.Item,{as:"li"},o.createElement("a",{href:r.ZP.public.login().toString(),className:"cohost-shadow-dark my-3 flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-accent px-10 py-2 text-notBlack"},o.createElement(k.Z,{className:"h-6 w-6"}),o.createElement("span",{className:"font-bold leading-none"},"log in"))),o.createElement(a.v.Item,{as:"li"},o.createElement("a",{href:r.ZP.public.signup().toString(),className:"cohost-shadow-dark my-3 flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-notWhite px-10 py-2 text-notBlack"},o.createElement(y.Z,{className:"h-6 w-6"}),o.createElement("span",{className:"font-bold leading-none"},"sign up"))))))},te=e=>{const t=(0,B.GU)(),n=(0,B.fR)(),i=t.count+n.count,s=(0,B.dg)();return o.createElement(a.v,{as:"div",className:"lg:hidden"},o.createElement(a.v.Button,{className:"relative text-notWhite transition-transform ui-open:rotate-90 lg:hidden"},i?o.createElement(W.Ov,{className:"cohost-shadow-dark absolute -right-1 top-1 h-2 fill-accent"}):null,o.createElement(D,{className:"h-6 w-6"})),o.createElement(X,Q({static:!1,className:"fixed bottom-0 left-0 top-16 flex w-[61.8%] min-w-fit flex-col divide-y divide-foreground-500 overflow-y-auto bg-foreground p-2 text-notWhite !outline-none lg:hidden"},e),s?.handle?o.createElement(a.v.Item,{as:"li"},o.createElement("a",{href:r.ZP.public.project.composePost({projectHandle:s.handle}).toString(),className:"cohost-shadow-dark my-3 flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-accent px-10 py-2 text-notBlack"},o.createElement(_.Z,{className:"h-6 w-6"}),o.createElement("span",{className:"font-bold leading-none"},"post!"))):o.createElement(o.Fragment,null,o.createElement(a.v.Item,{as:"li"},o.createElement("a",{href:r.ZP.public.login().toString(),className:"cohost-shadow-dark my-3 flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-accent px-10 py-2 text-notBlack"},o.createElement(k.Z,{className:"h-6 w-6"}),o.createElement("span",{className:"font-bold leading-none"},"log in"))),o.createElement(a.v.Item,{as:"li"},o.createElement("a",{href:r.ZP.public.signup().toString(),className:"cohost-shadow-dark my-3 flex h-10 flex-row items-center justify-center gap-2 rounded-lg bg-notWhite px-10 py-2 text-notBlack"},o.createElement(y.Z,{className:"h-6 w-6"}),o.createElement("span",{className:"font-bold leading-none"},"sign up"))))))}},34450:function(e,t,n){"use strict";n.d(t,{b:function(){return c}});var r=n(36673),i=n(990),a=n(36612),o=n(94159),s=n(59134),l=n(81150);const u=e=>{const t="cohost-shadow-light dark:cohost-shadow-dark rounded-lg px-3 py-2 font-bold";switch(e){case"success":return`!bg-green-200 !text-green-800 ${t}`;case"error":return`!bg-red-200 !text-red-800 ${t}`;default:return`!bg-mango-200 !text-mango-800 ${t}`}},c=()=>o.createElement(s.x7,{position:"bottom-center",toastOptions:{success:{className:u("success"),icon:o.createElement(r.Z,{className:"h-6 flex-none text-green-800"})},error:{className:u("error"),icon:o.createElement(i.Z,{className:"h-6 flex-none text-red-800"})},loading:{className:u("loading"),icon:o.createElement(l.H,null)},icon:o.createElement(a.Z,{className:"h-6 flex-none text-mango-800"})}})},83797:function(e,t,n){"use strict";n.d(t,{r:function(){return be}});var r=n(76051),i=n(49750),a=n(81986),o=n(80692),s=n(26946),l=n(48041),u=n(39519),c=n.n(u),f=n(94159);n(20503);let d=e=>"object"==typeof e&&null!=e&&1===e.nodeType,p=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,h=(e,t)=>{if(e.clientHeight{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeightat||a>e&&o=t&&s>=n?a-e-r:o>t&&sn?o-t+i:0,g=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var v=n(98725),y=0;function b(){}function w(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function k(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,a=new Array(i),o=0;o1?n-1:0),i=1;i=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function C(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=O(e,o,n,r,i);return-1===s?t>=n?-1:t:s}function O(e,t,n,r,i){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o=0;s--)if(!r(s).hasAttribute("disabled"))return s;return i?e>0?O(1,0,n,r,!1):O(-1,n-1,n,r,!1):-1}function A(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(w(t,e,n)||r&&w(t,n.document.activeElement,n))}))}var I=k((function(e){P(e).textContent=""}),500);function N(e,t){var n=P(t);e&&(n.textContent=e,I(t))}function P(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var R=["isInitialMount","highlightedIndex","items","environment"],L={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var M=k((function(e,t){N(e(),t)}),200),D="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?f.useLayoutEffect:f.useEffect;function F(e){var t=e.id,n=void 0===t?"downshift-"+String(y++):t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId;return(0,f.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"}).current}function j(e,t,n,r){var i,a;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],a=t}else a=void 0===t?n.indexOf(e):t,i=e;return[i,a]}function B(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function q(e){var t=(0,f.useRef)(e);return t.current=e,t}function H(e,t,n){var r=(0,f.useRef)(),i=(0,f.useRef)(),a=(0,f.useCallback)((function(t,n){i.current=n,t=x(t,n.props);var r=e(t,n);return n.props.stateReducer(t,(0,l.Z)({},n,{changes:r}))}),[e]),o=(0,f.useReducer)(a,t),s=o[0],u=o[1],c=q(n),d=(0,f.useCallback)((function(e){return u((0,l.Z)({props:c.current},e))}),[c]),p=i.current;return(0,f.useEffect)((function(){p&&r.current&&r.current!==s&&function(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,o="on"+B(e)+"Change";i[o]&&void 0!==r[e]&&r[e]!==n[e]&&i[o]((0,l.Z)({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange((0,l.Z)({type:i},a))}(p,x(r.current,p.props),s),r.current=s}),[s,n,p]),[s,d]}var z={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:function(e,t){if(e){var n=((e,t)=>{var n,r,i,a,o,s;if("undefined"==typeof document)return[];let{scrollMode:l,block:u,inline:c,boundary:f,skipOverflowHiddenElements:p}=t,v="function"==typeof f?f:e=>e!==f;if(!d(e))throw new TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,b=[],w=e;for(;d(w)&&v(w);){if(w=g(w),w===y){b.push(w);break}null!=w&&w===document.body&&h(w)&&!h(document.documentElement)||null!=w&&h(w,p)&&b.push(w)}let k=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,_=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,E=null!=(o=window.scrollX)?o:pageXOffset,x=null!=(s=window.scrollY)?s:pageYOffset,{height:T,width:S,top:C,right:O,bottom:A,left:I}=e.getBoundingClientRect(),N="start"===u||"nearest"===u?C:"end"===u?A:C+T/2,P="center"===c?I+S/2:"end"===c?O:I,R=[];for(let e=0;e=0&&I>=0&&A<=_&&O<=k&&C>=i&&A<=o&&I>=s&&O<=a)return R;let f=getComputedStyle(t),d=parseInt(f.borderLeftWidth,10),p=parseInt(f.borderTopWidth,10),h=parseInt(f.borderRightWidth,10),g=parseInt(f.borderBottomWidth,10),v=0,w=0,L="offsetWidth"in t?t.offsetWidth-t.clientWidth-d-h:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-g:0,D="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(y===t)v="start"===u?N:"end"===u?N-_:"nearest"===u?m(x,x+_,_,p,g,x+N,x+N+T,T):N-_/2,w="start"===c?P:"center"===c?P-k/2:"end"===c?P-k:m(E,E+k,k,d,h,E+P,E+P+S,S),v=Math.max(0,v+x),w=Math.max(0,w+E);else{v="start"===u?N-i-p:"end"===u?N-o+g+M:"nearest"===u?m(i,o,n,p,g+M,N,N+T,T):N-(i+n/2)+M/2,w="start"===c?P-s-d:"center"===c?P-(s+r/2)+L/2:"end"===c?P-a+h+L:m(s,a,r,d,h+L,P,P+S,S);let{scrollLeft:e,scrollTop:l}=t;v=Math.max(0,Math.min(l+v/F,t.scrollHeight-n/F+M)),w=Math.max(0,Math.min(e+w/D,t.scrollWidth-r/D+L)),N+=l-v,P+=e-w}R.push({el:t,top:v,left:w})}return R})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}},environment:"undefined"==typeof window?{}:window};function U(e,t,n){void 0===n&&(n=L);var r=e["default"+B(t)];return void 0!==r?r:n[t]}function V(e,t,n){void 0===n&&(n=L);var r=e[t];if(void 0!==r)return r;var i=e["initial"+B(t)];return void 0!==i?i:U(e,t,n)}function $(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=t.selectedItem,s=t.highlightedIndex;return 0===r.length?-1:void 0!==i&&s===i?i:void 0!==a?a:o?r.indexOf(o):0===n?-1:n<0?r.length-1:0}var W=function(){return b};function G(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,a=n.items,o=n.environment,u=(0,s.Z)(n,R);(0,f.useEffect)((function(){r||M((function(){return e((0,l.Z)({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},u))}),o.document)}),t)}var Z=b;function K(e,t,n){var r;void 0===n&&(n=!0);var i=(null==(r=e.items)?void 0:r.length)&&t>=0;return(0,l.Z)({isOpen:!1,highlightedIndex:-1},i&&(0,l.Z)({selectedItem:e.items[t],isOpen:U(e,"isOpen"),highlightedIndex:U(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}c().array.isRequired,c().func,c().func,c().func,c().number,c().number,c().number,c().bool,c().bool,c().bool,c().any,c().any,c().any,c().string,c().string,c().string,c().func,c().string,c().func,c().func,c().func,c().func,c().func,c().shape({addEventListener:c().func,removeEventListener:c().func,document:c().shape({getElementById:c().func,activeElement:c().any,body:c().any})}),(0,v.pi)((0,v.pi)({},z),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}});var Q=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownPageUp:5,InputKeyDownPageDown:6,InputKeyDownEnter:7,InputChange:8,InputBlur:9,InputFocus:10,MenuMouseLeave:11,ItemMouseMove:12,ItemClick:13,ToggleButtonClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21,ControlledPropUpdatedSelectedItem:22});c().array.isRequired,c().func,c().func,c().func,c().func,c().number,c().number,c().number,c().bool,c().bool,c().bool,c().any,c().any,c().any,c().string,c().string,c().string,c().string,c().string,c().string,c().func,c().string,c().string,c().func,c().func,c().func,c().func,c().func,c().func,c().shape({addEventListener:c().func,removeEventListener:c().func,document:c().shape({getElementById:c().func,activeElement:c().any,body:c().any})});var Y=b,J=(0,l.Z)({},z,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}});function X(e,t){var n,r,i=t.type,a=t.props,o=t.altKey;switch(i){case 13:r={isOpen:U(a,"isOpen"),highlightedIndex:U(a,"highlightedIndex"),selectedItem:a.items[t.index],inputValue:a.itemToString(a.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:C(1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:o&&null==e.selectedItem?-1:$(a,e,1,t.getItemNodeFromIndex),isOpen:a.items.length>=0};break;case 1:r=e.isOpen?o?K(a,e.highlightedIndex):{highlightedIndex:C(-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:$(a,e,-1,t.getItemNodeFromIndex),isOpen:a.items.length>=0};break;case 7:r=K(a,e.highlightedIndex);break;case 2:r=(0,l.Z)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:r={highlightedIndex:C(-10,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,!1)};break;case 6:r={highlightedIndex:C(10,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,!1)};break;case 3:r={highlightedIndex:O(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:r={highlightedIndex:O(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 9:r=(0,l.Z)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&t.selectItem&&{selectedItem:a.items[e.highlightedIndex],inputValue:a.itemToString(a.items[e.highlightedIndex])});break;case 8:r={isOpen:!0,highlightedIndex:U(a,"highlightedIndex"),inputValue:t.inputValue};break;case 10:r={isOpen:!0,highlightedIndex:$(a,e,0)};break;case 19:r={selectedItem:t.selectedItem,inputValue:a.itemToString(t.selectedItem)};break;case 22:r={inputValue:t.inputValue};break;default:return function(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:$(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:$(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:U(a,"highlightedIndex"),isOpen:U(a,"isOpen"),selectedItem:U(a,"selectedItem"),inputValue:U(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return(0,l.Z)({},e,r)}(e,t,Q)}return(0,l.Z)({},e,r)}var ee=["onMouseLeave","refKey","ref"],te=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],ne=["onClick","onPress","refKey","ref"],re=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];function ie(e){void 0===e&&(e={}),Y(e,ie);var t=(0,l.Z)({},J,e),n=t.initialIsOpen,r=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,u=t.getA11yStatusMessage,c=t.getA11ySelectionMessage,d=t.itemToString,p=function(e){var t=function(e){var t=V(e,"selectedItem"),n=V(e,"isOpen"),r=V(e,"highlightedIndex"),i=V(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}(e),n=t.selectedItem,r=t.inputValue;return""===r&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(r=e.itemToString(n)),(0,l.Z)({},t,{inputValue:r})}(t),h=function(e,t,n){var r=(0,f.useRef)(),i=H(e,t,n),a=i[0],o=i[1];return(0,f.useEffect)((function(){T(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&o({type:22,inputValue:n.itemToString(n.selectedItem)}),r.current=a.selectedItem===r.current?n.selectedItem:a.selectedItem)}),[a.selectedItem,n.selectedItem]),[x(a,n),o]}(X,p,t),m=h[0],g=h[1],v=m.isOpen,y=m.highlightedIndex,b=m.selectedItem,w=m.inputValue,k=(0,f.useRef)(null),C=(0,f.useRef)({}),O=(0,f.useRef)(null),I=(0,f.useRef)(null),N=(0,f.useRef)(!0),P=F(t),R=(0,f.useRef)(),L=q({state:m,props:t}),M=(0,f.useCallback)((function(e){return C.current[P.getItemId(e)]}),[P]);G(u,[v,y,w,i],(0,l.Z)({isInitialMount:N.current,previousResultCount:R.current,items:i,environment:o,itemToString:d},m)),G(c,[b],(0,l.Z)({isInitialMount:N.current,previousResultCount:R.current,items:i,environment:o,itemToString:d},m));var B=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=(0,f.useRef)(!0);return D((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:o(i(t),a))}),[t]),s}({menuElement:k.current,highlightedIndex:y,isOpen:v,itemRefs:C,scrollIntoView:a,getItemNodeFromIndex:M});Z({isInitialMount:N.current,props:t,state:m}),(0,f.useEffect)((function(){(n||r||v)&&O.current&&O.current.focus()}),[]),(0,f.useEffect)((function(){N.current||(R.current=i.length)}));var z=function(e,t,n,r){var i=(0,f.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,f.useEffect)((function(){if(null!=(null==n?void 0:n.addEventListener)){var a=function(){i.current.isMouseDown=!0},o=function(a){i.current.isMouseDown=!1,e&&!A(a.target,t.map((function(e){return e.current})),n)&&r()},s=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},u=function(a){!e||i.current.isTouchMove||A(a.target,t.map((function(e){return e.current})),n,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",o),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",u)}}}),[e,n]),i}(v,[O,k,I],o,(function(){g({type:9,selectItem:!1})})),U=W();(0,f.useEffect)((function(){return N.current=!1,function(){N.current=!0}}),[]),(0,f.useEffect)((function(){var e;if(v){if((null==(e=o.document)?void 0:e.activeElement)!==O.current){var t;null==O||null==(t=O.current)||t.focus()}}else C.current={}}),[v,o]);var $=(0,f.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),g({type:0,altKey:e.altKey,getItemNodeFromIndex:M})},ArrowUp:function(e){e.preventDefault(),g({type:1,altKey:e.altKey,getItemNodeFromIndex:M})},Home:function(e){L.current.state.isOpen&&(e.preventDefault(),g({type:3,getItemNodeFromIndex:M}))},End:function(e){L.current.state.isOpen&&(e.preventDefault(),g({type:4,getItemNodeFromIndex:M}))},Escape:function(e){var t=L.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),g({type:2}))},Enter:function(e){L.current.state.isOpen&&229!==e.which&&(e.preventDefault(),g({type:7,getItemNodeFromIndex:M}))},PageUp:function(e){L.current.state.isOpen&&(e.preventDefault(),g({type:5,getItemNodeFromIndex:M}))},PageDown:function(e){L.current.state.isOpen&&(e.preventDefault(),g({type:6,getItemNodeFromIndex:M}))}}}),[g,L,M]),K=(0,f.useCallback)((function(e){return(0,l.Z)({id:P.labelId,htmlFor:P.inputId},e)}),[P]),Q=(0,f.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,o=void 0===a?"ref":a,u=r.ref,c=(0,s.Z)(r,ee),f=(void 0===t?{}:t).suppressRefError;return U("getMenuProps",void 0!==f&&f,o,k),(0,l.Z)(((n={})[o]=E(u,(function(e){k.current=e})),n.id=P.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+P.labelId,n.onMouseLeave=_(i,(function(){g({type:11})})),n),c)}),[g,U,P]),ae=(0,f.useCallback)((function(e){var t,n,r=void 0===e?{}:e,i=r.item,a=r.index,o=r.refKey,u=void 0===o?"ref":o,c=r.ref,f=r.onMouseMove,d=r.onMouseDown,p=r.onClick;r.onPress;var h=r.disabled,m=(0,s.Z)(r,te),v=L.current,y=v.props,b=v.state,w=j(i,a,y.items,"Pass either item or index to getItemProps!")[1],k=p;return(0,l.Z)(((t={})[u]=E(c,(function(e){e&&(C.current[P.getItemId(w)]=e)})),t.disabled=h,t.role="option",t["aria-selected"]=""+(w===b.highlightedIndex),t.id=P.getItemId(w),t),!h&&((n={}).onClick=_(k,(function(){g({type:13,index:w})})),n),{onMouseMove:_(f,(function(){w!==b.highlightedIndex&&(B.current=!1,g({type:12,index:w,disabled:h}))})),onMouseDown:_(d,(function(e){return e.preventDefault()}))},m)}),[g,L,B,P]),oe=(0,f.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var i=n.refKey,a=void 0===i?"ref":i,o=n.ref,u=(0,s.Z)(n,ne),c=L.current.state;return(0,l.Z)(((t={})[a]=E(o,(function(e){I.current=e})),t["aria-controls"]=P.menuId,t["aria-expanded"]=c.isOpen,t.id=P.toggleButtonId,t.tabIndex=-1,t),!u.disabled&&(0,l.Z)({},{onClick:_(r,(function(){g({type:14})}))}),u)}),[g,L,P]),se=(0,f.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onKeyDown,a=r.onChange,o=r.onInput,u=r.onFocus,c=r.onBlur;r.onChangeText;var f=r.refKey,d=void 0===f?"ref":f,p=r.ref,h=(0,s.Z)(r,re),m=(void 0===t?{}:t).suppressRefError;U("getInputProps",void 0!==m&&m,d,O);var v,y=L.current.state,b={};return h.disabled||((v={}).onChange=_(a,o,(function(e){g({type:8,inputValue:e.target.value})})),v.onKeyDown=_(i,(function(e){var t=S(e);t&&$[t]&&$[t](e)})),v.onBlur=_(c,(function(e){y.isOpen&&!z.current.isMouseDown&&g({type:9,selectItem:null!==e.relatedTarget})})),v.onFocus=_(u,(function(){y.isOpen||g({type:10})})),b=v),(0,l.Z)(((n={})[d]=E(p,(function(e){O.current=e})),n["aria-activedescendant"]=y.isOpen&&y.highlightedIndex>-1?P.getItemId(y.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=P.menuId,n["aria-expanded"]=y.isOpen,n["aria-labelledby"]=h&&h["aria-label"]?void 0:""+P.labelId,n.autoComplete="off",n.id=P.inputId,n.role="combobox",n.value=y.inputValue,n),b,h)}),[g,$,L,z,U,P]),le=(0,f.useCallback)((function(){g({type:15})}),[g]),ue=(0,f.useCallback)((function(){g({type:17})}),[g]),ce=(0,f.useCallback)((function(){g({type:16})}),[g]),fe=(0,f.useCallback)((function(e){g({type:18,highlightedIndex:e})}),[g]),de=(0,f.useCallback)((function(e){g({type:19,selectedItem:e})}),[g]);return{getItemProps:ae,getLabelProps:K,getMenuProps:Q,getInputProps:se,getToggleButtonProps:oe,toggleMenu:le,openMenu:ce,closeMenu:ue,setHighlightedIndex:fe,setInputValue:(0,f.useCallback)((function(e){g({type:20,inputValue:e})}),[g]),selectItem:de,reset:(0,f.useCallback)((function(){g({type:21})}),[g]),highlightedIndex:y,isOpen:v,selectedItem:b,inputValue:w}}ie.stateChangeTypes=Q;var ae={activeIndex:-1,selectedItems:[]};function oe(e,t){return V(e,t,ae)}function se(e,t){return U(e,t,ae)}function le(e){if(e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)return!1;var t=e.target;return!(t instanceof HTMLInputElement&&""!==t.value)||0===t.selectionStart&&0===t.selectionEnd}c().array,c().array,c().array,c().func,c().func,c().func,c().number,c().number,c().number,c().func,c().func,c().string,c().string,c().shape({addEventListener:c().func,removeEventListener:c().func,document:c().shape({getElementById:c().func,activeElement:c().any,body:c().any})});var ue={itemToString:z.itemToString,stateReducer:z.stateReducer,environment:z.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},ce=b,fe=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});function de(e,t){var n,r=t.type,i=t.index,a=t.props,o=t.selectedItem,s=e.activeIndex,u=e.selectedItems;switch(r){case 0:n={activeIndex:i};break;case 4:n={activeIndex:s-1<0?0:s-1};break;case 3:n={activeIndex:s+1>=u.length?-1:s+1};break;case 2:case 1:if(s<0)break;var c=s;1===u.length?c=-1:s===u.length-1&&(c=u.length-2),n=(0,l.Z)({selectedItems:[].concat(u.slice(0,s),u.slice(s+1))},{activeIndex:c});break;case 5:n={activeIndex:u.length-1};break;case 6:n={selectedItems:u.slice(0,u.length-1)};break;case 8:n={selectedItems:[].concat(u,[o])};break;case 7:n={activeIndex:-1};break;case 9:var f=s,d=u.indexOf(o);if(d<0)break;1===u.length?f=-1:d===u.length-1&&(f=u.length-2),n={selectedItems:[].concat(u.slice(0,d),u.slice(d+1)),activeIndex:f};break;case 10:n={selectedItems:t.selectedItems};break;case 11:n={activeIndex:t.activeIndex};break;case 12:n={activeIndex:se(a,"activeIndex"),selectedItems:se(a,"selectedItems")};break;default:throw new Error("Reducer called without proper action type.")}return(0,l.Z)({},e,n)}var pe=["refKey","ref","onClick","onKeyDown","selectedItem","index"],he=["refKey","ref","onKeyDown","onClick","preventKeyAction"];function me(e){void 0===e&&(e={}),ce(e,me);var t=(0,l.Z)({},ue,e),n=t.getA11yRemovalMessage,r=t.itemToString,i=t.environment,a=t.keyNavigationNext,o=t.keyNavigationPrevious,u=function(e,t,n){var r=H(e,t,n),i=r[0],a=r[1];return[x(i,n),a]}(de,function(e){return{activeIndex:oe(e,"activeIndex"),selectedItems:oe(e,"selectedItems")}}(t),t),c=u[0],d=u[1],p=c.activeIndex,h=c.selectedItems,m=(0,f.useRef)(!0),g=(0,f.useRef)(null),v=(0,f.useRef)(h),y=(0,f.useRef)();y.current=[];var b=q({state:c,props:t});(0,f.useEffect)((function(){if(!m.current){if(h.length-1&&m===h.activeIndex;return(0,l.Z)(((t={})[i]=E(a,(function(e){e&&y.current.push(e)})),t.tabIndex=g?0:-1,t.onClick=_(o,(function(){d({type:0,index:m})})),t.onKeyDown=_(u,(function(e){var t=S(e);t&&k[t]&&k[t](e)})),t),p)}),[d,b,k]),getDropdownProps:(0,f.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.refKey,a=void 0===i?"ref":i,o=r.ref,u=r.onKeyDown,c=r.onClick,f=r.preventKeyAction,p=void 0!==f&&f,h=(0,s.Z)(r,he),m=(void 0===t?{}:t).suppressRefError;return w("getDropdownProps",void 0!==m&&m,a,g),(0,l.Z)(((n={})[a]=E(o,(function(e){e&&(g.current=e)})),n),!p&&{onKeyDown:_(u,(function(e){var t=S(e);t&&T[t]&&T[t](e)})),onClick:_(c,(function(){d({type:7})}))},h)}),[d,T,w]),addSelectedItem:(0,f.useCallback)((function(e){d({type:8,selectedItem:e})}),[d]),removeSelectedItem:(0,f.useCallback)((function(e){d({type:9,selectedItem:e})}),[d]),setSelectedItems:(0,f.useCallback)((function(e){d({type:10,selectedItems:e})}),[d]),setActiveIndex:(0,f.useCallback)((function(e){d({type:11,activeIndex:e})}),[d]),reset:(0,f.useCallback)((function(){d({type:12})}),[d]),selectedItems:h,activeIndex:p}}me.stateChangeTypes=fe;var ge=n(59605);function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const[,d]=(0,f.useTransition)(),[p,h]=(0,f.useState)(""),[m,g]=(0,f.useState)(p),[v,y]=(0,f.useState)(!1),b=(0,f.useRef)(!1),{mappedSuggestions:w}=(0,ge.dm)(m),{getSelectedItemProps:k,getDropdownProps:_,addSelectedItem:E,removeSelectedItem:x}=me({selectedItems:e,onStateChange({selectedItems:e,type:n}){switch(n){case me.stateChangeTypes.SelectedItemKeyDownBackspace:case me.stateChangeTypes.SelectedItemKeyDownDelete:case me.stateChangeTypes.DropdownKeyDownBackspace:case me.stateChangeTypes.FunctionRemoveSelectedItem:case me.stateChangeTypes.FunctionAddSelectedItem:t(e??[])}}}),T=(0,f.useMemo)((()=>{if(void 0===u)return[];const t=u.filter((t=>-1===e.indexOf(t)));return""===p?t:t.filter((e=>e.toLowerCase().replace(/\s+/g,"").includes(p.toLowerCase().replace(/\s+/g,""))))}),[u,p,e]),S=u?.length?T:s?[p,...w].filter(i.f):p.length>0?[p]:[],{isOpen:C,getMenuProps:O,getInputProps:A,highlightedIndex:I,getItemProps:N,selectItem:P,setInputValue:R,openMenu:L}=ie({items:S,defaultHighlightedIndex:0,selectedItem:null,inputValue:p,stateReducer:(e,t)=>t.changes,onStateChange({inputValue:e,type:t,selectedItem:n}){switch(t){case ie.stateChangeTypes.InputKeyDownEnter:case ie.stateChangeTypes.ItemClick:case ie.stateChangeTypes.FunctionSelectItem:n&&(E(n),h(""),d((()=>{g("")})));break;case ie.stateChangeTypes.InputChange:if(b.current&&e){const t=e[e.length-1];if(t.match(ye)){let n=e;if(n){n.endsWith(t)&&(n=n.slice(0,n.length-1)),E(n),R(""),h(""),d((()=>{g("")}));break}}}h(e??""),d((()=>{g(e??"")}))}}});return f.createElement("div",{className:`${c.className??""} relative flex flex-row flex-wrap gap-3 text-sm`},v?f.createElement("div",{className:"absolute -top-10 flex flex-row items-center gap-2 rounded-lg border border-cherry bg-white p-2 text-xs text-cherry"},f.createElement(a.Z,{className:"h-4 w-4"}),f.createElement("span",null,"press ",f.createElement("kbd",null,",")," or ",f.createElement("kbd",null,"Enter")," to save your"," ",l,"!")):null,e.map(((e,t)=>f.createElement("div",ve({key:`selected-token-${e}`,className:"group h-max cursor-pointer select-none"},k({selectedItem:e,index:t})),f.createElement("button",{className:r.tw`co-filled-button flex items-center justify-start gap-1 rounded-full px-2 py-1 leading-none`,onClick:t=>{t.stopPropagation(),x(e)},type:"button"},f.createElement(c.TokenIcon,{className:"inline-block h-3.5 group-hover:hidden"}),f.createElement(o.Z,{className:"hidden h-3.5 group-hover:inline-block"}),f.createElement("span",{className:"block"},e))))),f.createElement("div",{className:"relative"},f.createElement("input",ve({placeholder:c.placeholder,className:"co-editable-body border-0 border-none bg-inherit p-0 text-sm outline-0 focus:ring-0"},A({..._({onKeyDown:e=>{if("Unidentified"===e.key&&(b.current=!0),e.key.match(ye)||"Tab"===e.key){const t=S[I];t&&(e.preventDefault(),e.stopPropagation(),P(t))}}}),onFocus:()=>{y(!0),u?.length&&L()},onBlur:()=>{y(!1)},onChange:e=>{h(e.target.value)},disabled:n}))),f.createElement("ul",ve({},O(),{className:(C&&S.length?"block":"hidden")+" w-prose cohost-shadow-light mt-3 flex flex-col divide-y divide-gray-200 rounded-lg bg-notWhite py-3 text-notBlack"}),C&&S.map(((e,t)=>f.createElement("li",ve({className:(I===t?"bg-strawberry-200":"")+" px-3 leading-relaxed",key:`${e}-${t}`},N({item:e,index:t})),e))))))}},96780:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(94159);const i=({className:e="bg-notBlack/90",zIndex:t=10})=>r.createElement("div",{className:`fixed inset-0 ${e}`,style:{zIndex:t},"aria-hidden":!0})},38934:function(e,t,n){"use strict";n.d(t,{FN:function(){return u},GU:function(){return f},_c:function(){return g},dg:function(){return m},fR:function(){return d},fj:function(){return p},sm:function(){return h},wU:function(){return c}});var r=n(71860),i=n(86036),a=n.n(i),o=n(94159),s=n(8227),l=n(4402);const u=e=>a().get(e).then((e=>e.data)),c=(e,t)=>{const[n,r]=(0,o.useState)(),i=(0,o.useRef)(!1),s=(0,o.useCallback)((e=>{if(!t)throw e;t(e)}),[t]);return(0,o.useEffect)((()=>{i.current||(i.current=!0,a().get(e).then((e=>{i.current=!1,r(e.data)})).catch(s))}),[e,s]),{isLoading:i.current,data:n}},f=({projectHandle:e}={})=>{const{loggedIn:t}=(0,s.Pc)(),n=m(),{data:i}=r.S.notifications.count.useQuery({projectHandle:e??n?.handle??void 0},{refetchInterval:3e4,enabled:t,notifyOnChangeProps:["data"],placeholderData:{count:0}});return i??{count:0}},d=({projectHandle:e}={})=>{const{loggedIn:t}=(0,s.Pc)(),n=m(),{data:i}=r.S.relationships.countFollowRequests.useQuery({projectHandle:e??n?.handle??void 0},{refetchInterval:3e4,enabled:t,notifyOnChangeProps:["data"],placeholderData:{count:0}});return i??{count:0}},p=({projectHandle:e}={})=>{const{loggedIn:t}=(0,s.Pc)(),n=m(),{data:i}=r.S.asks.unreadCount.useQuery({projectHandle:e??n?.handle??void 0},{refetchInterval:3e4,enabled:t,notifyOnChangeProps:["data"],placeholderData:{count:0}});return i??{count:0}},h=(e,t=!0)=>{const{loggedIn:n}=(0,s.Pc)();return r.S.bookmarks.tags.list.useQuery(void 0,{placeholderData:e?{tags:e}:void 0,suspense:!0,enabled:t&&n})},m=()=>{const{projectId:e}=(0,s.Pc)(),{projects:t}=(0,l.m)();return(0,o.useMemo)((()=>t.find((t=>t.projectId===e))),[e,t])},g=()=>r.S.subscriptions.hasActiveSubscription.useQuery(void 0,{suspense:!0,notifyOnChangeProps:["data","error"]}).data??!1},98074:function(e,t,n){"use strict";n.d(t,{Bj:function(){return o},rA:function(){return s}});var r=n(94159),i=n(56797),a=n(62745);const o=()=>(0,i.Z)("(prefers-color-scheme: dark)",!1);function s(){const e=(0,a.Q)().defaultPostBoxTheme,[t,n]=(0,r.useState)(null);return t?{current:t,forceTheme:n}:"prefers-color-scheme"===e?{current:"both",forceTheme:n}:{current:e,forceTheme:n}}},67920:function(e,t,n){"use strict";n.d(t,{NS:function(){return i}});var r=n(94159);const i=()=>{const[e,t]=(0,r.useState)(!0);return(0,r.useEffect)((()=>{t(!1)}),[]),{isServer:e,isBrowser:!e}}},59605:function(e,t,n){"use strict";n.d(t,{_q:function(){return s},cI:function(){return o},dm:function(){return a}});var r=n(94159),i=n(71860);const a=e=>{const t=i.S.tags.query.useQuery({query:e},{trpc:{ssr:!0},suspense:!0,initialData:()=>{if(e.length<3)return{result:[]}}});return{suggestions:t.data,mappedSuggestions:t.data?.result.map((e=>e.content))??[]}},o=(e,{skipMinimum:t=!1})=>({projects:i.S.projects.searchByHandle.useQuery({query:e,skipMinimum:t},{trpc:{ssr:!0},suspense:!0,initialData:()=>{if(e.length<3&&!t)return{projects:[]}}}).data?.projects}),s=e=>{const t=i.S.useContext(),n=i.S.moderation.user.findByEmail.useQuery({query:e},{});return{invalidate:(0,r.useCallback)((e=>t.moderation.user.findByEmail.invalidate({query:e})),[t]),users:n.data?.users}}},61421:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(61888),i=n(94159);function a(e,t){const[n,a]=(0,i.useState)({currentTime:0,totalDuration:0,isPlaying:!1}),o=(0,i.useMemo)((()=>t=>()=>{e.current&&(a({currentTime:e.current.currentTime,totalDuration:e.current.duration,isPlaying:!e.current.paused}),t())}),[e]),s=(0,i.useCallback)((t=>{if(!e.current)return r.noop;const n=o(t);return e.current.addEventListener("loadedmetadata",n),e.current.addEventListener("timeupdate",n),e.current.addEventListener("play",n),e.current.addEventListener("pause",n),()=>{e.current?.removeEventListener("loadedmetadata",n),e.current?.removeEventListener("timeupdate",n),e.current?.removeEventListener("play",n),e.current?.removeEventListener("pause",n)}}),[e,o]),l=(0,i.useCallback)((()=>n),[n]),u=(0,i.useSyncExternalStore)(s,l,(()=>({currentTime:0,totalDuration:0,isPlaying:!1})));return{togglePlayback:(0,i.useCallback)((async()=>{if(e.current)if(e.current.paused)try{await e.current.play()}catch(e){console.error(e),t&&t(e)}else e.current.pause()}),[e,t]),seek:(0,i.useCallback)((t=>{e.current&&(e.current.currentTime=t)}),[e]),...u}}},40862:function(e,t,n){"use strict";var r=n(94159);t.Z=e=>{const t=(0,r.useCallback)((t=>{const n=e(t);return n&&(t.preventDefault(),t.returnValue=n),n}),[e]);(0,r.useEffect)((()=>(window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t))),[t])}},62745:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});var r=n(71860),i=n(6285);const a=i.ZP.enum(["dashboard","following"]),o=i.ZP.enum(["light","dark"]).or(i.ZP.enum(["prefers-color-scheme"])),s=i.ZP.object({isAdult:i.ZP.boolean().default(!1),explicitlyCollapseAdultContent:i.ZP.boolean().default(!1),collapseLongThreads:i.ZP.boolean().default(!1),gifsStartPaused:i.ZP.boolean().default(!0),pauseProfileGifs:i.ZP.boolean().default(!1),disableEmbeds:i.ZP.boolean().default(!1),externalLinksInNewTab:i.ZP.boolean().default(!0),enableNotificationCount:i.ZP.boolean().default(!1),autoexpandCWs:i.ZP.array(i.ZP.string()).default([]),collapsedTags:i.ZP.array(i.ZP.string()).default([]),suggestedFollowsDismissed:i.ZP.boolean().default(!1),enableMobileQuickShare:i.ZP.boolean().default(!0),beatsTimestamps:i.ZP.boolean().default(!1),autoExpandAllCws:i.ZP.boolean().default(!1),disableModalPostComposer:i.ZP.boolean().default(!1),homeView:a.default("dashboard"),defaultShow18PlusPostsInSearches:i.ZP.boolean().default(!0),defaultPostBoxTheme:o.default("prefers-color-scheme"),previewFeatures_lexicalPostEditor:i.ZP.boolean().default(!0),chaosDay2023_showNumbers:i.ZP.boolean().default(!0)}),l=()=>r.S.users.displayPrefs.useQuery(void 0,{suspense:!0,keepPreviousData:!0,notifyOnChangeProps:["data","error"]}).data??s.parse({})},4402:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(71860),i=n(8227);const a=()=>{const{loggedIn:e}=(0,i.Pc)();return r.S.projects.listEditedProjects.useQuery(void 0,{suspense:!0,enabled:e,placeholderData:{projects:[]}}).data}},50196:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(94159);const i=(e,t,n)=>{const i=(0,r.useMemo)((()=>{if(!e)return;const r=new URL(e);return"blob:"===r.protocol||(r.searchParams.append("width",Math.floor(t).toString()),n&&(r.searchParams.append("height",Math.floor(t/n).toString()),r.searchParams.append("fit","crop")),r.searchParams.append("auto","webp")),r}),[n,t,e]);return(0,r.useCallback)((e=>{if(!i)return"";const t=new URL(i.toString());return"blob:"===t.protocol||t.searchParams.append("dpr",e.toString()),t.toString()}),[i])}},4699:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});const r=(0,n(94159).createContext)({info:[],error:[]})},21281:function(e,t,n){"use strict";n.d(t,{Dn:function(){return o},Z3:function(){return s}});var r=n(94159);class i{constructor(e){this._store=e,this._store=Object.assign({},e)}get(e){return this._store[e]}assign(e){Object.assign(this._store,e)}}const a=(0,r.createContext)(new i({ssrUrl:"",lightThemeOnly:!1})),o=r.memo((({children:e,store:t})=>{const n=new i(t);return r.createElement(a.Provider,{value:n},e)}));o.displayName="ReqMutableStoreProvider";const s=()=>(0,r.useContext)(a)},74487:function(e,t,n){"use strict";n.d(t,{B:function(){return s},F:function(){return l}});var r=n(94159),i=n(66816),a=n.n(i);const o=(0,r.createContext)(null),s=({config:e,children:t})=>{const n=new(a())({...e,ignoredMessages:["Minified React error"]});return(0,r.createElement)(o.Provider,{value:n},t)},l=()=>(0,r.useContext)(o)},40196:function(e,t,n){"use strict";n.d(t,{F:function(){return a},N:function(){return o}});var r=n(94159),i=n(95365);const a=(0,r.createContext)(i.u_),o=()=>(0,r.useContext)(a)},8227:function(e,t,n){"use strict";n.d(t,{Fk:function(){return c},if:function(){return d},Pc:function(){return f}});var r=n(71860),i=n(95024),a=n(94159);n(6285).z.enum(["application-error","not-authorized","not-logged-in","not-found","explicitly-disallowed","object-does-not-exist","user-does-not-exist","project-does-not-exist","post-does-not-exist","ask-does-not-exist","listing-does-not-exist","tag-does-not-exist","object-is-already-in-state","invalid-operation","login-failed","operation-failed","illegal-handle","handle-already-in-use","email-already-in-use","user-too-young","illegal-content-type","attachment-too-large","incorrect-totp","invalid-metadata"]),Error;class o extends Error{constructor(e="Requires login",t){super(e),this.message=e,this.redirectUrl=t}}var s=n(3160),l=n(84879);const u=a.createContext({loggedIn:!1,email:null,modMode:!1,projectId:null,userId:null,activated:!1,readOnly:!0,emailVerifyCanceled:null,emailVerified:null,twoFactorActive:!1,deleteAfter:null}),c=({children:e})=>{const{data:t}=r.S.login.loggedIn.useQuery(void 0,{refetchInterval:15e3,suspense:!0,notifyOnChangeProps:["data","error"]});let n;t&&t.loggedIn?n={...t,deleteAfter:t.deleteAfter?l.ou.fromISO(t.deleteAfter):null}:t&&(n=t);const o=(0,i.useUnleashContext)(),s=(e=>{const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e})),t.current})(n);return(0,a.useEffect)((()=>{!0===n?.loggedIn?s?.loggedIn&&(n.projectId===s.projectId&&n.userId===s.userId||window.location.reload()):s?.loggedIn&&window.location.reload()}),[s,s?.loggedIn,n?.loggedIn,n?.projectId,n?.userId]),(0,a.useEffect)((()=>{(0,a.startTransition)((()=>{o({userId:n?.loggedIn?n.userId.toString()??void 0:void 0})}))}),[o,n,n?.loggedIn]),a.createElement(u.Provider,{value:n},e)},f=()=>(0,a.useContext)(u),d=()=>{const e=f(),t=(0,s.TH)();if(!e.loggedIn)throw new o("Requires login",t.pathname)}},85277:function(e,t,n){"use strict";n.d(t,{q:function(){return v}});var r=n(12093),i=n(94159),a=n(3160),o=n(29598),s=n(91627),l=n(69024),u=n(73541);const c=(0,o.ZP)({resolved:{},chunkName:()=>"preact-components-pages-search",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(379).then(n.bind(n,17538)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>17538}),f=(0,o.ZP)({resolved:{},chunkName:()=>"components-pages-project-settings",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(8196),n.e(1458)]).then(n.bind(n,21917)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>21917}),d=(0,o.ZP)({resolved:{},chunkName:()=>"preact-components-pages-artist-alley-artist-alley",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(2803),n.e(4220)]).then(n.bind(n,44346)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>44346}),p=(0,o.ZP)({resolved:{},chunkName:()=>"preact-components-pages-artist-alley-create",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>Promise.all([n.e(8396),n.e(954)]).then(n.bind(n,72764)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>72764}),h=(0,o.ZP)({resolved:{},chunkName:()=>"preact-components-pages-artist-alley-payment-success",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(2156).then(n.bind(n,71363)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>71363}),m=(0,o.ZP)({resolved:{},chunkName:()=>"preact-components-pages-artist-alley-payment-cancelled",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(1090).then(n.bind(n,57579)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>57579}),g=(0,o.ZP)({resolved:{},chunkName:()=>"preact-components-pages-artist-alley-owner-manage-listings",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!n.m[t]},importAsync:()=>n.e(3633).then(n.bind(n,31389)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return n(t)},resolve:()=>31389}),v=({children:e})=>i.createElement(a.Z5,null,i.createElement(a.AW,{path:r.Wq.public.search,element:i.createElement(s.Z,null,i.createElement(c,null))}),i.createElement(a.AW,{path:r.Wq.public.project.settings,element:i.createElement(s.Z,null,i.createElement(f,null))}),i.createElement(a.AW,{path:r.Wq.public.artistAlley.home,element:i.createElement(u.c,null,i.createElement(d,null))}),i.createElement(a.AW,{path:r.Wq.public.artistAlley.create,element:i.createElement(s.Z,null,i.createElement(p,null))}),i.createElement(a.AW,{path:r.Wq.public.artistAlley.success,element:i.createElement(l.a,null,i.createElement(h,null))}),i.createElement(a.AW,{path:r.Wq.public.artistAlley.cancelled,element:i.createElement(l.a,null,i.createElement(m,null))}),i.createElement(a.AW,{path:r.Wq.public.artistAlley.ownerManage,element:i.createElement(s.Z,null,i.createElement(g,null))}),e)},44144:function(e,t,n){"use strict";n.d(t,{j:function(){return f},l:function(){return c}});var r=n(12093),i=n(86036),a=n.n(i),o=n(94159),s=n(72362),l=n(105),u=n(7449);const c=(0,s.C)({initial:"closed",strict:!0,context:{},states:{closed:{entry:(0,l.f0)((()=>({}))),on:{START_REPORT:{target:"editingReport",actions:(0,l.f0)(((e,t)=>({postId:t.postId,projectId:t.projectId,commentId:t.commentId,askId:t.askId,artistAlleyListingId:t.artistAlleyListingId})))}}},editingReport:{on:{CLOSE:{target:"closed"},SUBMIT:{target:"submitting",actions:(0,l.f0)(((e,t)=>({...e,reportingReason:t.reportingReason,additionalDetails:t.additionalDetails})))}}},submitting:{invoke:{src:"submit",onDone:{target:"acknowledging"},onError:{target:"displayingError"}}},acknowledging:{on:{ACKNOWLEDGE:{target:"closed"},CLOSE:{target:"closed"}}},displayingError:{on:{CLOSE:{target:"closed"}}}}},{services:{submit:async e=>{if(e.postId)return async function(e){const t=await a().post(r.ZP.public.apiV1.reporting.reportPost().toString(),{postId:e.postId,reportingReason:e.reportingReason,additionalDetails:e.additionalDetails});if(t.status>=200&&t.status<=400)return Promise.resolve();throw new Error(t.statusText)}(e);if(e.projectId)return async function(e){if(!e.projectId)throw new Error("project id not set");if(!e.reportingReason)throw new Error("reporting reason not set");const t=(0,u.I)();await t.reporting.reportProject.mutate({additionalDetails:e.additionalDetails,projectId:e.projectId,reportingReason:e.reportingReason})}(e);if(e.commentId)return async function(e){if(!e.commentId)throw new Error("comment id not set");if(!e.reportingReason)throw new Error("reporting reason not set");const t=(0,u.I)();await t.reporting.reportComment.mutate({additionalDetails:e.additionalDetails,commentId:e.commentId,reportingReason:e.reportingReason})}(e);if(e.askId)return async function(e){if(!e.askId)throw new Error("ask id not set");if(!e.reportingReason)throw new Error("reporting reason not set");const t=(0,u.I)();await t.reporting.reportAsk.mutate({additionalDetails:e.additionalDetails,askId:e.askId,reportingReason:e.reportingReason})}(e);if(e.artistAlleyListingId)return async function(e){if(!e.artistAlleyListingId)throw new Error("listing id not set");if(!e.reportingReason)throw new Error("reporting reason not set");const t=(0,u.I)();await t.reporting.reportArtistAlleyListing.mutate({additionalDetails:e.additionalDetails,artistAlleyListingId:e.artistAlleyListingId,reportingReason:e.reportingReason})}(e);throw new Error("submit with invalid state shape")}}}),f=(0,o.createContext)({})},22661:function(e,t,n){"use strict";n.d(t,{h:function(){return b}});var r=n(71298),i=n(94159),a=n(96780),o=n(4135),s=n(45072),l=n(76709),u=n(44144),c=n(12093),f=n(81942),d=n(99838),p=n(51028),h=n(38934);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const t=(0,i.useContext)(u.j),{t:n}=(0,p.$G)(),{register:a,handleSubmit:o,setError:s,formState:l}=(0,d.cI)({mode:"all"}),g=(v=(0,i.useCallback)((()=>{s("reportingReason",{message:n("common:report.loading-failed","Loading report form failed. Please e-mail support@cohost.org about your concerns.")})}),[s,n]),(0,h.wU)(c.ZP.public.apiV1.reporting.listReasons().toString(),v));var v;return i.createElement("div",{className:"cohost-shadow-light dark:cohost-shadow-dark relative mx-auto flex max-w-md flex-col rounded-lg"},i.createElement("div",{className:"flex flex-row rounded-t-lg bg-longan p-3 text-notBlack"},i.createElement("button",{className:"h-6 w-6",onClick:()=>t.send({type:"CLOSE"})},i.createElement(f.Z,{className:"h-6 w-6"})),i.createElement(r.V.Title,{as:"div",className:"text-xl font-bold leading-6"},n("common:report.title","Report an issue"))),i.createElement("form",{className:"flex flex-col rounded-b-lg bg-notWhite text-notBlack",onSubmit:o((e=>{t.send({type:"SUBMIT",reportingReason:e.reportingReason,additionalDetails:e.additionalDetails})}))},i.createElement("p",{className:"px-3 pt-3 text-xl font-bold text-foreground"},e),i.createElement("p",{className:"px-3 pb-3"},i.createElement(p.cC,{i18nKey:"common:report.moderation-guide"},"If you're not sure, check out"," ",i.createElement("a",{href:c.ZP.public.staticContent({slug:"community-guidelines"}).toString(),target:"_new",className:"text-secondary"},"our community guidelines")," ","for help.")),i.createElement("hr",{className:"border-gray-300"}),g.data?.map((e=>i.createElement(i.Fragment,null,i.createElement("div",{key:e.id,className:"flex flex-row items-center gap-3 p-3"},i.createElement("input",m({type:"radio",id:`reason-${e.id}`,value:e.text},a("reportingReason",{required:!0}))),i.createElement("label",{htmlFor:`reason-${e.id}`},e.text)),i.createElement("hr",{className:"border-gray-300"})))),i.createElement("p",{className:"m-3"},n("common:report.additional-details","Use the form below to provide any context you think is helpful:")),i.createElement("div",{className:"m-3"},i.createElement("textarea",m({className:"w-full",rows:4},a("additionalDetails")))),i.createElement("div",{className:"flex flex-row"},i.createElement("p",{className:"mr-3 flex-1 text-right align-top text-red"},l.errors.reportingReason&&(l.errors.reportingReason.message??i.createElement("span",null,n("common:report.must-select-reason","You must select a reporting reason.")))),i.createElement("button",{type:"submit",className:"mb-3 mr-3 min-w-0\n rounded-lg bg-foreground px-4 py-1 \n text-lg font-bold text-notWhite hover:bg-foreground-600 active:bg-foreground-700 disabled:bg-foreground-200",disabled:!l.isValid},n("common:report.report-button","report")))))};g.displayName="ReportForm";const v=()=>{const e=(0,i.useContext)(u.j),{t:t}=(0,p.$G)();return i.createElement("div",{className:"cohost-shadow-light dark:cohost-shadow-dark relative mx-auto flex max-w-md flex-col rounded-lg bg-notWhite p-3 text-notBlack"},t("common:report-post.thanks","Thanks for letting us know. We'll look into your report as soon as possible."),i.createElement("button",{type:"submit",className:"max-w-10 align-self-center mt-3 rounded-lg bg-foreground py-1 px-4 \n text-lg font-bold text-notWhite hover:bg-foreground-600 active:bg-foreground-700",onClick:()=>e.send({type:"ACKNOWLEDGE"})},t("common:ok","ok")))},y=()=>{const e=(0,i.useContext)(u.j),{t:t}=(0,p.$G)();return i.createElement("div",{className:"cohost-shadow-light dark:cohost-shadow-dark relative mx-auto flex max-w-md flex-col rounded-lg bg-notWhite p-3 text-notBlack"},i.createElement(p.cC,{i18nKey:"common:report.report-failed"},i.createElement("p",null,"Submitting your report failed. Please email support@cohost.org about your concerns, and include the following information:")),i.createElement("hr",null),e.state.context.postId?i.createElement("p",null,i.createElement(i.Fragment,null,"post id: ",e.state.context.postId)):null,e.state.context.projectId?i.createElement("p",null,i.createElement(i.Fragment,null,"page id: ",e.state.context.projectId)):null,e.state.context.commentId?i.createElement("p",null,i.createElement(i.Fragment,null,"comment id: ",e.state.context.commentId)):null,i.createElement("p",null,i.createElement(i.Fragment,null,"reporting reason: ",e.state.context.reportingReason)),i.createElement("p",null,i.createElement(i.Fragment,null,"additional details:"," ",e.state.context.additionalDetails)),i.createElement("button",{type:"submit",className:"max-w-10 align-self-center mt-3 rounded-lg bg-foreground py-1 px-4 \n text-lg font-bold text-notWhite hover:bg-foreground-600 active:bg-foreground-700",onClick:()=>e.send({type:"CLOSE"})},t("common:ok","ok")))},b=({children:e})=>{const t=(0,o.k)(u.l,{context:{}});return i.createElement(i.Fragment,null,i.createElement(u.j.Provider,{value:t},i.createElement(l.S,null,i.createElement(w,null)),e))},w=e=>{const{t:t}=(0,p.$G)(),n=(0,i.useContext)(u.j),o=(0,s.v)(n,(e=>!e.matches("closed"))),l=(0,s.v)(n,(e=>e.matches("editingReport")&&e.context.postId)),c=(0,s.v)(n,(e=>e.matches("editingReport")&&e.context.projectId)),f=(0,s.v)(n,(e=>e.matches("editingReport")&&e.context.commentId)),d=(0,s.v)(n,(e=>e.matches("editingReport")&&e.context.askId)),h=(0,s.v)(n,(e=>e.matches("editingReport")&&e.context.artistAlleyListingId)),m=(0,s.v)(n,(e=>e.matches("acknowledging"))),b=(0,s.v)(n,(e=>e.matches("displayingError"))),w=(0,i.useMemo)((()=>l?t("common:report.whats-wrong.post","Help us understand the problem. What's wrong with this post?"):c?t("common:report.whats-wrong.project","Help us understand the problem. What's wrong with this project?"):f?t("common:report.whats-wrong.comment","Help us understand the problem. What's wrong with this comment?"):d?t("common:report.whats-wrong.ask","Help us understand the problem. What's wrong with this ask?"):h?t("common:report.whats-wrong.artist-alley-listing","Help us understand the problem. What's wrong with this listing?"):""),[d,f,l,c,h,t]);return i.createElement(r.V,{open:o,onClose:()=>n.send({type:"CLOSE"})},i.createElement(a.Z,null),i.createElement("div",{className:"fixed inset-0 z-10 overflow-y-auto"},i.createElement("div",{className:"flex min-h-full items-center justify-center py-20"},w.length?i.createElement(r.V.Panel,{as:g,whatsWrong:w}):null,m?i.createElement(r.V.Panel,{as:v}):null,b?i.createElement(r.V.Panel,{as:y}):null)))}},72100:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});const r=new class{store={};setEnv(e){this.store={...e}}getEnvVal(e){return"undefined"==typeof window?process.env[e]:this.store[e]}get HOME_URL(){let e="";return"undefined"!=typeof window&&void 0!==window.location&&(e=window.location.origin),this.getEnvVal("HOME_URL")||e}get VERSION(){return this.getEnvVal("VERSION")||""}}},12093:function(e,t,n){"use strict";function r(e,t){return function(e,t){void 0===t&&(t={});var n=function(e){return e&&e.sensitive?"":"i"}(t),r=t.encode,i=void 0===r?function(e){return e}:r,a=t.validate,o=void 0===a||a,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,i=void 0===r?"./":r,a="[^"+function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?")+"]+?",o=[],s=0,l=0,u="",c=function(e){if(l{const t=s(u.public.home,{}),n=new URLSearchParams;return void 0!==e?.refTimestamp&&n.set("refTimestamp",e.refTimestamp.toString()),void 0!==e?.skipPosts&&n.set("skipPosts",e.skipPosts.toString()),t.search=n.toString(),t},dashboard:e=>{const t=s(u.public.dashboard,{}),n=new URLSearchParams;return void 0!==e?.refTimestamp&&n.set("refTimestamp",e.refTimestamp.toString()),void 0!==e?.skipPosts&&n.set("skipPosts",e.skipPosts.toString()),t.search=n.toString(),t},welcome:()=>s(u.public.welcome,{}),login:e=>{const t=s(u.public.login,{});if(e?.originalUrl){const n=new URLSearchParams;n.set("originalUrl",e.originalUrl),t.search=n.toString()}return t},logout:()=>s(u.public.logout,{}),signup:()=>s(u.public.signup,{}),createProject:()=>s(u.public.createProject,{}),switchProject:()=>s(u.public.switchProject,{}),userSettings:()=>s(u.public.settingsMain,{}),silencedPosts:e=>{const t=s(u.public.silencedPosts,{}),n=new URLSearchParams;return void 0!==e?.beforeTime&&n.set("beforeTime",e.beforeTime.toString()),void 0!==e?.afterTime&&n.set("afterTime",e.afterTime.toString()),t.search=n.toString(),t},verifyEmail:({userId:e,nonce:t})=>{const n=s(u.public.verifyEmail,{});return n.search=new URLSearchParams({userId:e.toString(),nonce:t}).toString(),n},cancelVerifyEmail:({userId:e,nonce:t})=>{const n=s(u.public.cancelVerifyEmail,{});return n.search=new URLSearchParams({userId:e.toString(),nonce:t}).toString(),n},redirectToAttachment:e=>s(u.public.redirectToAttachment,e),resetPassword:({email:e,nonce:t})=>{const n=s(u.public.resetPassword,{});return e&&t&&(n.search=new URLSearchParams({email:e,nonce:t}).toString()),n},staticContent:e=>s(u.public.staticContent,e),static:{staticAsset:e=>{let t=e.path;return t.startsWith("/srv/release/server/")&&(t=t.replace("/srv/release/server/","/static/")),s(t,{})}},apiV1:{createProject:()=>l(u.public.apiV1.createProject,{}),getProject:e=>l(u.public.apiV1.getProject,e),updateProject:()=>l(u.public.apiV1.updateProject,{}),getFollowingState:e=>l(u.public.apiV1.getFollowingState,e),updatePost:e=>l(u.public.apiV1.updatePost,e),startAttachment:e=>l(u.public.apiV1.startAttachment,e),finishAttachment:e=>l(u.public.apiV1.finishAttachment,e),listEditedProjects:()=>l(u.public.apiV1.listEditedProjects,{}),createComment:()=>l(u.public.apiV1.createComment,{}),editDeleteComment:e=>l(u.public.apiV1.editDeleteComment,e),register:()=>l(u.public.apiV1.register,{}),changePassword:()=>l(u.public.apiV1.changePassword,{}),requestPasswordReset:()=>l(u.public.apiV1.requestPasswordReset,{}),login:()=>l(u.public.apiV1.login,{}),logout:()=>l(u.public.apiV1.logout,{}),checkEmail:()=>l(u.public.apiV1.checkEmail,{}),projects:{followers:({offset:e=0,limit:t=10})=>{const n=l(u.public.apiV1.projects.followers,{});return n.search=new URLSearchParams({offset:e.toString(),limit:t.toString()}).toString(),n}},moderation:{changeSettings:()=>l(u.public.apiV1.moderation.changeSettings,{}),grantOrRevokePermission:()=>l(u.public.apiV1.moderation.grantOrRevokePermission,{})},reporting:{listReasons:()=>l(u.public.apiV1.reporting.listReasons,{}),reportPost:()=>l(u.public.apiV1.reporting.reportPost,{})},trpc:()=>l(u.public.apiV1.trpc,{})},unleashProxy:()=>s(u.public.unleashProxy,{}),relationshipAction:e=>function(e,t){return new URL(`.${r(e)(t)}`,new URL("/rc/relationships/",o.O.HOME_URL))}(u.public.relationshipAction,e),tags:e=>{const t=s(u.public.tags,{tagSlug:encodeURIComponent(e.tagSlug)}),n=new URLSearchParams;return void 0!==e?.show18PlusPosts&&n.set("show18PlusPosts",e.show18PlusPosts.toString()),void 0!==e?.refTimestamp&&n.set("refTimestamp",e.refTimestamp.toString()),void 0!==e?.skipPosts&&n.set("skipPosts",e.skipPosts.toString()),t.search=n.toString(),t},bookmarkedTagFeed:e=>{const t=s(u.public.bookmarkedTagFeed,{}),n=new URLSearchParams;return void 0!==e?.show18PlusPosts&&n.set("show18PlusPosts",e.show18PlusPosts.toString()),void 0!==e?.beforeTime&&n.set("beforeTime",e.beforeTime.toString()),void 0!==e?.afterTime&&n.set("afterTime",e.afterTime.toString()),t.search=n.toString(),t},likedPosts:e=>{const t=s(u.public.likedPosts,{}),n=new URLSearchParams;return void 0!==e?.refTimestamp&&n.set("refTimestamp",e.refTimestamp.toString()),void 0!==e?.skipPosts&&n.set("skipPosts",e.skipPosts.toString()),t.search=n.toString(),t},composePost:e=>{const t=s(u.public.composePost,e),n=new URLSearchParams;return void 0!==e?.shareOfPostId&&n.set("shareOfPostId",e.shareOfPostId.toString()),void 0!==e?.responseToAskId&&n.set("responseToAskId",e.responseToAskId.toString()),t.search=n.toString(),t},project:{home:e=>function(e,t){return new URL(r(e)(t),function(e){const t=a()(o.O.HOME_URL).hostname,n=a()(o.O.HOME_URL).port;return n?new URL(`https://${e}.${t}:${n}`):new URL(`https://${e}.${t}`)}(t.projectHandle))}(u.public.project.home,e),mainAppProfile:e=>s(u.public.project.mainAppProfile,e),profileEdit:()=>s(u.public.project.profileEdit,{}),followers:()=>s(u.public.project.followers,{}),following:()=>s(u.public.project.following,{}),notifications:()=>s(u.public.project.notifications,{}),followRequests:e=>s(u.public.project.followRequests,e),composePost:e=>{const t=s(u.public.project.composePost,e),n=new URLSearchParams;return void 0!==e?.shareOfPostId&&n.set("shareOfPostId",e.shareOfPostId.toString()),void 0!==e?.responseToAskId&&n.set("responseToAskId",e.responseToAskId.toString()),t.search=n.toString(),t},editPost:e=>s(u.public.project.editPost,e),singlePost:{published:e=>{const t=s(u.public.project.singlePost.published,e);return e.commentId&&(t.hash=`comment-${e.commentId}`),t},unpublished:e=>s(u.public.project.singlePost.unpublished,e)},unpublishedPosts:e=>{const t=s(u.public.project.unpublishedPosts,{}),n=new URLSearchParams;return void 0!==e?.refTimestamp&&n.set("refTimestamp",e.refTimestamp.toString()),void 0!==e?.skipPosts&&n.set("skipPosts",e.skipPosts.toString()),t.search=n.toString(),t},ask:e=>s(u.public.project.ask,e),inbox:()=>s(u.public.project.inbox,{}),rss:{publicRss:e=>{const t=s(u.public.project.rss.publicRss,e);if(void 0!==e.page){const n=new URLSearchParams({page:e.page.toString()});t.search=`?${n.toString()}`}return t},publicAtom:e=>{const t=s(u.public.project.rss.publicAtom,e);if(void 0!==e.page){const n=new URLSearchParams({page:e.page.toString()});t.search=`?${n.toString()}`}return t},publicJson:e=>{const t=s(u.public.project.rss.publicJson,e);if(void 0!==e.page){const n=new URLSearchParams({page:e.page.toString()});t.search=`?${n.toString()}`}return t}},tags:e=>{const t=s(u.public.project.tags,{tagSlug:encodeURIComponent(e.tagSlug),projectHandle:e.projectHandle}),n=new URLSearchParams;return void 0!==e?.refTimestamp&&n.set("refTimestamp",e.refTimestamp.toString()),void 0!==e?.skipPosts&&n.set("skipPosts",e.skipPosts.toString()),t.search=n.toString(),t},defaultAvatar:e=>s(u.public.project.defaultAvatar,e),settings:()=>s(u.public.project.settings,{})},invites:{manage:()=>s(u.public.invites.manage,{}),activate:e=>{const t=s(u.public.invites.activate,e),n=new URLSearchParams({inviteId:e.inviteId});return t.search=`?${n.toString()}`,t},create:()=>s(u.public.invites.create,{})},moderation:{home:()=>s(u.public.moderation.home,{}),manageUser:e=>{const t=s(u.public.moderation.manageUser,e),n=new URLSearchParams;return e.userId?n.set("userId",e.userId.toString()):e.email&&n.set("email",e.email),t.search=`?${n.toString()}`,t},managePost:e=>{const t=s(u.public.moderation.managePost,e),n=new URLSearchParams({postId:e.postId.toString()});return t.search=`?${n.toString()}`,t},manageProject:e=>{const t=s(u.public.moderation.managePage,{});if(e.projectHandle){const n=new URLSearchParams({handle:e.projectHandle});t.search=`?${n.toString()}`}return t},manageArtistAlleyListing:e=>{const t=s(u.public.moderation.manageArtistAlleyListing,{}),n=new URLSearchParams({adId:e.adId});return t.search=`?${n.toString()}`,t},cacheMaintenance:()=>s(u.public.moderation.cacheMaintenance,{}),bulkActivate:()=>s(u.public.moderation.bulkActivate,{}),createOAuthClient:()=>s(u.public.moderation.createOAuthClient,{}),manageAsk:e=>{const t=s(u.public.moderation.manageAsk,{});if(e.askId){const n=new URLSearchParams({askId:e.askId});t.search=`?${n.toString()}`}return t},artistAlleyPendingQueue:()=>s(u.public.moderation.artistAlleyPendingQueue,{}),tagOntology:{manageTags:()=>s(u.public.moderation.tagOntology.manageTags,{}),pendingRequests:()=>s(u.public.moderation.tagOntology.pendingRequests,{})}},subscriptions:{createCheckoutSession:()=>s(u.public.subscriptions.createCheckoutSession,{}),createPortalSession:()=>s(u.public.subscriptions.createPortalSession,{}),success:e=>{const t=s(u.public.subscriptions.success,{}),n=new URLSearchParams({sessionId:e.sessionId});return t.search=`?${n.toString()}`,t},cancelled:e=>{const t=s(u.public.subscriptions.cancelled,{}),n=new URLSearchParams({sessionId:e.sessionId});return t.search=`?${n.toString()}`,t},manage:()=>{const e=c.public.userSettings();return e.hash="cohost-plus",e}},search:(e={})=>{const t=s(u.public.search,{});if(e.query){const n=new URLSearchParams({q:e.query});t.search=`?${n.toString()}`}return t},artistAlley:{home:()=>s(u.public.artistAlley.home,{}),success:e=>s(u.public.artistAlley.success,e),cancelled:e=>s(u.public.artistAlley.cancelled,e),create:()=>s(u.public.artistAlley.create,{}),ownerManage:()=>s(u.public.artistAlley.ownerManage,{})}}};var f=c},45793:function(e,t,n){"use strict";n.d(t,{B:function(){return a},c:function(){return i}});var r=n(6285);let i=function(e){return e.Allowed="allowed",e.NotAllowed="not-allowed",e.LogInFirst="log-in-first",e.Blocked="blocked",e}({});const a=r.z.nativeEnum(i)},4003:function(e,t,n){"use strict";n.d(t,{p:function(){return o},s5:function(){return i}});var r=n(6285);let i=function(e){return e[e.Pending=0]="Pending",e[e.Finished=1]="Finished",e}({});r.ZP.enum(["audio","image"]);const a=r.ZP.object({title:r.ZP.string().optional(),artist:r.ZP.string().optional()}),o=r.ZP.object({});r.ZP.union([a,o])},25e3:function(e,t,n){"use strict";let r=function(e){return e.COHOST_LOADER_STATE="__COHOST_LOADER_STATE__",e.COHOST_LAYOUT="__COHOST_LAYOUT__",e.SITE_CONFIG="site-config",e.USER_INFO="user-info",e.INITIAL_I18N_STORE="initialI18nStore",e.INITIAL_LANGUAGE="initialLanguage",e.FLASHES="flashes",e.ROLLBAR_CONFIG="rollbar-config",e.UNLEASH_BOOTSTRAP="unleash-bootstrap",e.ENV_VARS="env-vars",e.TRPC_DEHYRDATED_STATE="trpc-dehydrated-state",e.INITIAL_MUTABLE_STORE="initial-mutable-store",e}({});t.Z=r},15867:function(e,t,n){"use strict";n.d(t,{T:function(){return r}});const r=n(6285).z.enum(["chaos-day-2022","chaos-day-2023","disable-account-signup","notifications-trpc","attachment-composer-v2","artist-alley-listings","tag-relation-request-ui"])},89109:function(e,t,n){"use strict";n.d(t,{y1:function(){return m},iB:function(){return p},I:function(){return o},do:function(){return f},iV:function(){return d},rU:function(){return s},UC:function(){return c},G9:function(){return l},cu:function(){return h},Et:function(){return u}}),n(91625),new RegExp("^[a-zA-Z0-9][a-zA-Z0-9-]{2,}$"),new Set(["rc","api","www","help","admin","support","staff","internal","status","mail","mobile","search","static"]);var r=n(84879),i=n(6285);const a=i.ZP.string().or(i.ZP.number().transform((e=>e.toString()))).refine((e=>{try{return BigInt(e)>BigInt(0)}catch(e){return!1}})),o=i.ZP.string().uuid().refine((function(e){return!0})),s=i.ZP.number().int().refine((function(e){return!0})),l=i.ZP.number().int().refine((function(e){return!0})),u=i.ZP.number().int().refine((function(e){return!0})),c=i.ZP.string().regex(/^[a-zA-Z0-9-]{3,}/).refine((function(e){return!0})),f=i.ZP.string().uuid().refine((function(e){return!0})),d=(a.refine((function(e){return!0})),i.ZP.string().uuid().refine((function(e){return!0})),i.ZP.string().uuid().refine((function(e){return!0})),i.ZP.string().uuid().refine((function(e){return!0})),i.ZP.string().uuid().refine((function(e){return!0})),i.ZP.string().refine((e=>r.ou.fromISO(e).isValid),{message:"Not a valid ISO date!"})),p=a.refine((function(e){return!0})),h=a.refine((function(e){return!0})),m=(i.ZP.string().refine((function(e){return!0})),i.ZP.string().refine((function(e){return!0})),a.refine((function(e){return!0})),i.ZP.string().refine((function(e){return!0})),i.ZP.string().refine((function(e){return!0})),i.ZP.string().uuid().refine((function(e){return!0})),a.refine((function(e){return!0})));a.refine((function(e){return!0})),a.refine((function(e){return!0}))},85771:function(e,t,n){"use strict";n.d(t,{gK:function(){return h},oD:function(){return _},Jp:function(){return P},dG:function(){return T},tm:function(){return O},x2:function(){return S},Y1:function(){return C},l7:function(){return E},E4:function(){return A},D_:function(){return x},WG:function(){return I},xy:function(){return N}});var r=n(6285),i=n(89109),a=n(70769);const o=r.z.enum(["pending","responded","deleted"]),s=r.z.object({projectId:i.G9,handle:i.UC,avatarURL:r.z.string().url(),avatarPreviewURL:r.z.string().url(),privacy:a.d5,flags:a.Xw.array(),avatarShape:a.oG,displayName:r.z.string()}),l=r.z.discriminatedUnion("anon",[r.z.object({anon:r.z.literal(!0),loggedIn:r.z.boolean(),askingProject:r.z.undefined(),askId:i.iB,content:r.z.string(),sentAt:i.iV}),r.z.object({anon:r.z.literal(!1),loggedIn:r.z.literal(!0),askingProject:s,askId:i.iB,content:r.z.string(),sentAt:i.iV})]);l.and(r.z.object({state:o}));var u=n(4003);const c=r.z.object({type:r.z.string()}),f=c.extend({type:r.z.literal("markdown"),markdown:r.z.object({content:r.z.string()})}),d=c.extend({type:r.z.literal("attachment"),attachment:r.z.object({attachmentId:i.I,altText:r.z.string().optional()})}),p=(d.extend({attachment:d.shape.attachment.extend({attachmentId:r.z.null()})}),c.extend({type:r.z.literal("attachment-row"),attachments:r.z.array(d)})),h=r.z.union([f,d,p]),m=f.extend({}),g=d.shape.attachment.extend({previewURL:r.z.string(),fileURL:r.z.string(),kind:r.z.literal("image"),width:r.z.number().nullish(),height:r.z.number().nullish()}).extend(u.p.shape),v=d.shape.attachment.extend({previewURL:r.z.string(),fileURL:r.z.string(),kind:r.z.literal("audio"),artist:r.z.string().optional(),title:r.z.string().optional()}),y=r.z.discriminatedUnion("kind",[g,v]),b=d.extend({attachment:y}),w=p.extend({attachments:r.z.array(b)}),k=c.extend({type:r.z.literal("ask"),ask:l}),_=r.z.union([m,b,k,w]);function E(e){return b.safeParse(e).success}function x(e){return m.safeParse(e).success}function T(e){return k.safeParse(e).success}function S(e){return w.safeParse(e).success}function C(e){return d.safeParse(e).success}function O(e){return p.safeParse(e).success}function A(e){return f.safeParse(e).success}function I(e){return r.z.preprocess((e=>r.z.array(r.z.any()).parse(e).filter(E)),r.z.array(b)).parse(e)}function N(e){switch(e.type){case"markdown":return e.markdown.content;case"attachment":{const t=e.attachment.fileURL.split("/").pop();return t?`[${e.attachment.kind}: ${decodeURIComponent(t)}]`:`[${e.attachment.kind}]`}case"attachment-row":return e.attachments.map((e=>N(e))).join("\n");case"ask":return`${e.ask.anon?e.ask.loggedIn?"Anonymous User asked:":"Anonymous Guest asked:":`@${e.ask.askingProject.handle} asked:`}\n> ${e.ask.content.split("\n").join("\n> ")}`}}function P(e){return e.reduce(((e,t)=>E(t)?[...e,t]:S(t)?[...e,...t.attachments]:e),[])}},22018:function(e,t,n){"use strict";n.d(t,{e:function(){return a},h:function(){return i}});var r=n(6285);let i=function(e){return e[e.Unpublished=0]="Unpublished",e[e.Published=1]="Published",e[e.Deleted=2]="Deleted",e}({});const a=r.z.nativeEnum(i)},70769:function(e,t,n){"use strict";n.d(t,{Fx:function(){return d},WL:function(){return a},Xw:function(){return s},d5:function(){return o},oG:function(){return u}});var r=n(6285),i=n(89109);let a=function(e){return e.Public="public",e.Private="private",e}({});const o=r.z.nativeEnum(a),s=r.z.enum(["staff","staffMember","friendOfTheSite","noTransparentAvatar","suspended","automated","parody"]),l=r.z.enum(["public","none"]),u=r.z.enum(["circle","roundrect","squircle","capsule-big","capsule-small","egg"]),c=r.z.enum(["public","logged-in","follows","following-you"]),f=r.z.object({service:r.z.string(),value:r.z.string(),visibility:c}),d=r.z.object({projectId:i.G9,handle:i.UC,displayName:r.z.string(),dek:r.z.string(),description:r.z.string(),avatarURL:r.z.string().url(),avatarPreviewURL:r.z.string().url(),headerURL:r.z.string().url().nullable(),headerPreviewURL:r.z.string().url().nullable(),privacy:o,url:r.z.string().nullable(),pronouns:r.z.string().nullable(),flags:s.array(),avatarShape:u,loggedOutPostVisibility:l,frequentlyUsedTags:r.z.string().array(),askSettings:r.z.object({enabled:r.z.boolean(),allowAnon:r.z.boolean(),requireLoggedInAnon:r.z.boolean()}),contactCard:f.array(),deleteAfter:i.iV.nullable(),isSelfProject:r.z.boolean().nullable()});d.extend({lastActivityTime:i.iV.nullable(),handleSuspicionResult:r.z.object({match:r.z.string(),score:r.z.number()}).nullable()}),r.z.object({asks:r.z.object({enabled:r.z.boolean().default(!1),allowAnon:r.z.boolean().default(!1),requireLoggedInAnon:r.z.boolean().default(!0)}).default({})}).default({})},49750:function(e,t,n){"use strict";n.d(t,{$:function(){return r},f:function(){return i}});const r=e=>null!=e,i=e=>!!e},95365:function(e,t,n){"use strict";n.d(t,{EC:function(){return a},Of:function(){return i},u_:function(){return r}});const r={HCAPTCHA_SITE_KEY:"",IFRAMELY_KEY:"",UNLEASH_APP_NAME:"",UNLEASH_CLIENT_KEY:"",limits:{attachmentSize:{normal:5242880,cohostPlus:10485760},attachmentCount:10,attachmentContentTypes:{"image/png":"image","image/jpeg":"image","image/gif":"image","image/webp":"image","image/svg+xml":"image","audio/aac":"audio","audio/mp4":"audio","audio/x-m4a":"audio","audio/flac":"audio","audio/x-flac":"audio","audio/mpeg":"audio","audio/wav":"audio"}},operatingPrime:1};function i(e,t){for(const n in e.limits.attachmentContentTypes){const r=e.limits.attachmentContentTypes[n];if(n.endsWith("/*")){if(t.startsWith(n.substring(0,n.length-1)))return{valid:!0,kind:r}}else if(t===n)return{valid:!0,kind:r}}return console.warn(`rejected mime type: ${t}`),{valid:!1}}function a(e){return Object.getOwnPropertyNames(e.limits.attachmentContentTypes)}class o{constructor(e){this._currentConfig=e}get currentConfig(){return this._currentConfig}assign(e){this._currentConfig={...this._currentConfig,...e}}static shared=new o({...r})}},64401:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&(i-=1)),[360*i,100*a,100*u]},o.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},o.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var t=i[e];if(t)return t;var n,a,o,s=1/0;for(var l in r)if(r.hasOwnProperty(l)){var u=(a=e,o=r[l],Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},o.hsl.rgb=function(e){var t,n,r,i,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=o+1/3*-(u-1))<0&&r++,r>1&&r--,a=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[u]=255*a;return i},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=a<=1?a:2-a,[t,100*(0===r?2*i/(a+i):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},o.hsv.hsl=function(e){var t,n,r,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return r=(2-a)*o,n=a*s,[i,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(r/=2)]},o.hwb.rgb=function(e){var t,n,r,i,a,o,s,l=e[0]/360,u=e[1]/100,c=e[2]/100,f=u+c;switch(f>1&&(u/=f,c/=f),r=6*l-(t=Math.floor(6*l)),0!=(1&t)&&(r=1-r),i=u+r*((n=1-c)-u),t){default:case 6:case 0:a=n,o=i,s=u;break;case 1:a=i,o=n,s=u;break;case 2:a=u,o=n,s=i;break;case 3:a=u,o=i,s=n;break;case 4:a=i,o=u,s=n;break;case 5:a=n,o=u,s=i}return[255*a,255*o,255*s]},o.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},o.xyz.rgb=function(e){var t,n,r,i=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*i+1.8758*a+.0415*o,r=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},o.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},o.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var a=Math.pow(n,3),o=Math.pow(t,3),s=Math.pow(r,3);return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},o.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},o.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,a=Math.max(Math.max(n,r),i),o=Math.min(Math.min(n,r),i),s=a-o;return t=s<=0?0:a===n?(r-i)/s%6:a===r?2+(i-n)/s:4+(n-r)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},o.hsl.hcg=function(e){var t,n=e[1]/100,r=e[2]/100,i=0;return(t=r<.5?2*n*r:2*n*(1-r))<1&&(i=(r-.5*t)/(1-t)),[e[0],100*t,100*i]},o.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,a=[0,0,0],o=t%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=l,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=l,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=l}return i=(1-n)*r,[255*(n*a[0]+i),255*(n*a[1]+i),255*(n*a[2]+i)]},o.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},14170:function(e,t,n){var r=n(53616),i=n(64774),a={};Object.keys(r).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});var t=i(e);Object.keys(t).forEach((function(n){var r=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=a},64774:function(e,t,n){var r=n(53616);function i(e,t){return function(n){return t(e(n))}}function a(e,t){for(var n=[t[e].parent,e],a=r[t[e].parent][e],o=t[e].parent;t[o].parent;)n.unshift(t[o].parent),a=i(r[t[o].parent][o],a),o=t[o].parent;return a.conversion=n,a}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,i=0;i=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return a[e.slice(0,3)]}},90094:function(e,t,n){"use strict";var r=n(6798),i=n(14170),a=[].slice,o=["keyword","gray","hex"],s={};Object.keys(i).forEach((function(e){s[a.call(i[e].labels).sort().join("")]=e}));var l={};function u(e,t){if(!(this instanceof u))return new u(e,t);if(t&&t in o&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);var n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof u)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var f=r.get(e);if(null===f)throw new Error("Unable to parse color from string: "+e);this.model=f.model,c=i[this.model].channels,this.color=f.value.slice(0,c),this.valpha="number"==typeof f.value[c]?f.value[c]:1}else if(e.length){this.model=t||"rgb",c=i[this.model].channels;var d=a.call(e,0,c);this.color=p(d,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)e&=16777215,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var h=Object.keys(e);"alpha"in e&&(h.splice(h.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var m=h.sort().join("");if(!(m in s))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=s[m];var g=i[this.model].labels,v=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return u.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return u.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}},Object.keys(i).forEach((function(e){if(-1===o.indexOf(e)){var t=i[e].channels;u.prototype[e]=function(){if(this.model===e)return new u(this);if(arguments.length)return new u(arguments,e);var n="number"==typeof arguments[t]?t:this.valpha;return new u(d(i[this.model][e].raw(this.color)).concat(n),e)},u[e]=function(n){return"number"==typeof n&&(n=p(a.call(arguments),t)),new u(n,e)}}})),e.exports=u},94559:function(e){"use strict";var t={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,r=/[ -,\.\/:-@\[\]\^`\{-~]/,i=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,a=function e(a,o){"single"!=(o=function(e,n){if(!e)return n;var r={};for(var i in n)r[i]=t.call(e,i)?e[i]:n[i];return r}(o,e.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var s="double"==o.quotes?'"':"'",l=o.isIdentifier,u=a.charAt(0),c="",f=0,d=a.length;f126){if(h>=55296&&h<=56319&&f";case s.Comment:return"\x3c!--"+e.data+"--\x3e";case s.CDATA:return function(e){return""}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=u.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&h.has(e.parent.name)&&(t=r(r({},t),{xmlMode:!1}))),!t.xmlMode&&m.has(e.name)&&(t=r(r({},t),{xmlMode:"foreign"}));var i="<"+e.name,a=function(e,t){if(e)return Object.keys(e).map((function(n){var r,i,a=null!==(r=e[n])&&void 0!==r?r:"";return"foreign"===t.xmlMode&&(n=null!==(i=u.attributeNames.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==a?n+'="'+(!1!==t.decodeEntities?l.encodeXML(a):a.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,t);return a&&(i+=" "+a),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&f.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=d(e.children,t)),!t.xmlMode&&f.has(e.name)||(i+="")),i}(e,t);case s.Text:return function(e,t){var n=e.data||"";return!1===t.decodeEntities||!t.xmlMode&&e.parent&&c.has(e.parent.name)||(n=l.encodeXML(n)),n}(e,t)}}t.default=d;var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=new Set(["svg","math"])},3642:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},96697:function(e,t,n){"use strict";var r=this&&this.__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=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(3642),o=n(13431);i(n(13431),t);var s=/\s+/g,l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function e(e,t,n){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=l),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:l,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new o.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&n.type===a.ElementType.Text)t?n.data=(n.data+e).replace(s," "):n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{t&&(e=e.replace(s," "));var r=new o.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.NodeWithChildren(a.ElementType.CDATA,[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new o.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=u,t.default=u},13431:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=p;var h=function(e){function t(t){return e.call(this,o.ElementType.Root,t)||this}return i(t,e),t}(p);t.Document=h;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var a=e.call(this,i,r)||this;return a.name=t,a.attribs=n,a}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,o.isTag)(e)}function v(e){return e.type===o.ElementType.CDATA}function y(e){return e.type===o.ElementType.Text}function b(e){return e.type===o.ElementType.Comment}function w(e){return e.type===o.ElementType.Directive}function k(e){return e.type===o.ElementType.Root}function _(e,t){var n;if(void 0===t&&(t=!1),y(e))n=new c(e.data);else if(b(e))n=new f(e.data);else if(g(e)){var r=t?E(e.children):[],i=new m(e.name,a({},e.attribs),r);r.forEach((function(e){return e.parent=i})),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(v(e)){r=t?E(e.children):[];var s=new p(o.ElementType.CDATA,r);r.forEach((function(e){return e.parent=s})),n=s}else if(k(e)){r=t?E(e.children):[];var l=new h(r);r.forEach((function(e){return e.parent=l})),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!w(e))throw new Error("Not implemented yet: "+e.type);var u=new d(e.name,e.data);null!=e["x-name"]&&(u["x-name"]=e["x-name"],u["x-publicId"]=e["x-publicId"],u["x-systemId"]=e["x-systemId"]),n=u}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,n}function E(e){for(var t=e.map((function(e){return _(e,!0)})),n=1;nu.indexOf(f)?l===t?20:4:l===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=i(e,t);return 2&n?-1:4&n?1:0})),e}},61027:function(e,t,n){"use strict";var r=this&&this.__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=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(70654),t),i(n(25499),t),i(n(75760),t),i(n(67549),t),i(n(79342),t),i(n(85814),t),i(n(90569),t);var a=n(96697);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return a.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return a.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return a.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return a.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return a.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return a.hasChildren}})},79342:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var r=n(96697),i=n(67549),a={tag_name:function(e){return"function"==typeof e?function(t){return(0,r.isTag)(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return(0,r.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,r.isText)(t)&&e(t.data)}:function(t){return(0,r.isText)(t)&&t.data===e}}};function o(e,t){return"function"==typeof t?function(n){return(0,r.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,r.isTag)(n)&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(a,t)?a[t](n):o(t,n)}));return 0===t.length?null:t.reduce(s)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var a=l(e);return a?(0,i.filter)(a,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(o("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(a.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,i.filter)(a.tag_type(e),t,n,r)}},75760:function(e,t){"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var a=r.children;a.splice(a.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},67549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var r=n(96697);function i(e,t,n,a){for(var o=[],s=0,l=t;s0){var c=i(e,u.children,n,a);if(o.push.apply(o,c),(a-=c.length)<=0)break}}return o}t.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),i(e,t,n,r)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var a=null,o=0;o0&&(a=e(t,s.children)))}return a},t.existsOne=function e(t,n){return n.some((function(n){return(0,r.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,i,a=[],o=t.filter(r.isTag);i=o.shift();){var s=null===(n=i.children)||void 0===n?void 0:n.filter(r.isTag);s&&s.length>0&&o.unshift.apply(o,s),e(i)&&a.push(i)}return a}},70654:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=n(96697),a=r(n(59489)),o=n(3642);function s(e,t){return(0,a.default)(e,t)}t.getOuterHTML=s,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return s(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===o.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},25499:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var r=n(96697),i=[];function a(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function o(e){return e.parent||null}t.getChildren=a,t.getParent=o,t.getSiblings=function(e){var t=o(e);if(null!=t)return a(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,r.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,r.isTag)(t);)t=t.prev;return t}},1054:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=r(n(5846)),a=r(n(52207)),o=r(n(30417)),s=r(n(42706));function l(e){var t=Object.keys(e).join("|"),n=c(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=l(o.default),t.decodeHTMLStrict=l(i.default);var u=function(e,t){return e=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)}},31129:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escape=t.encodeHTML=t.encodeXML=void 0;var i=l(r(n(30417)).default),a=u(i);t.encodeXML=d(i,a);var o=l(r(n(5846)).default),s=u(o);function l(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function u(e){for(var t=[],n=[],r=0,i=Object.keys(e);r\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},f=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},p=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,h=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,g={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},b=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],w=String.fromCharCode,k={}.hasOwnProperty,_=function(e,t){return k.call(e,t)},E=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=_(e,n)?e[n]:t[n];return r},x=function(e,t){var n="";return e>=55296&&e<=57343||e>1114111?(t&&C("character reference outside the permissible Unicode range"),"�"):_(y,e)?(t&&C("disallowed character reference"),y[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n65535&&(n+=w((e-=65536)>>>10&1023|55296),e=56320|1023&e),n+=w(e))},T=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},S=function(e){return"&#"+e+";"},C=function(e){throw Error("Parse error: "+e)},O=function(e,t){(t=E(t,O.options)).strict&&h.test(e)&&C("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,i=t.allowUnsafeSymbols,a=t.decimal?S:T,d=function(e){return a(e.charCodeAt(0))};return n?(e=e.replace(s,(function(e){return r&&_(c,e)?"&"+c[e]+";":d(e)})),r&&(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),r&&(e=e.replace(u,(function(e){return"&"+c[e]+";"})))):r?(i||(e=e.replace(f,(function(e){return"&"+c[e]+";"}))),e=(e=e.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(e){return"&"+c[e]+";"}))):i||(e=e.replace(f,d)),e.replace(o,(function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return a(1024*(t-55296)+n-56320+65536)})).replace(l,d)};O.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var A=function(e,t){var n=(t=E(t,A.options)).strict;return n&&p.test(e)&&C("malformed character reference"),e.replace(m,(function(e,r,i,a,o,s,l,u,c){var f,d,p,h,m,y;return r?g[m=r]:i?(m=i,(y=a)&&t.isAttributeValue?(n&&"="==y&&C("`&` did not start a character reference"),e):(n&&C("named character reference was not terminated by a semicolon"),v[m]+(y||""))):o?(p=o,d=s,n&&!d&&C("character reference was not terminated by a semicolon"),f=parseInt(p,10),x(f,n)):l?(h=l,d=u,n&&!d&&C("character reference was not terminated by a semicolon"),f=parseInt(h,16),x(f,n)):(n&&C("named character reference was not terminated by a semicolon"),e)}))};A.options={isAttributeValue:!1,strict:!1};var I={version:"1.2.0",encode:O,decode:A,escape:function(e){return e.replace(f,(function(e){return d[e]}))},unescape:A};void 0===(r=function(){return I}.call(t,n,t,e))||(e.exports=r)}()},26095:function(e,t,n){"use strict";var r=n(65566),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var s=l(t),m=l(n),g=0;gn?e(n.transform(t),n.next):t;return t=>e(t,this._wordTransformer)}_popStackItem(){const e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof o||this._stackItem instanceof s)&&(this._stackItem.isPre?this._stackItem.rawText+="\n":this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof o||this._stackItem instanceof s)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,t={}){"object"==typeof t?this._addInline(e,t):this._addInline(e,{noWordTransform:t})}_addInline(e,{noWordTransform:t=!1}={}){if(this._stackItem instanceof o||this._stackItem instanceof s)if(this._stackItem.isPre)this._stackItem.rawText+=e;else if(0!==e.length&&(!this._stackItem.stashedLineBreaks||this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){const t=this.whitespaceProcessor.countNewlinesNoWords(e);if(t>0)return void this._stackItem.inlineTextBuilder.startNewLine(t)}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,this._wordTransformer&&!t?this._getCombinedWordTransformer():void 0),this._stackItem.stashedLineBreaks=0}}openBlock(e={},t,n){"object"==typeof e?this._openBlock(e):this._openBlock({isPre:n,leadingLineBreaks:e,reservedLineLength:t})}_openBlock({leadingLineBreaks:e=1,reservedLineLength:t=0,isPre:n=!1}={}){const r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-t);this._stackItem=new o(this.options,this._stackItem,e,r),n&&(this._stackItem.isPre=!0)}closeBlock(e={},t){"object"==typeof e?this._closeBlock(e):this._closeBlock({trailingLineBreaks:e,blockTransform:t})}_closeBlock({trailingLineBreaks:e=1,blockTransform:t}={}){const n=this._popStackItem(),r=t?t(p(n)):p(n);h(this._stackItem,r,n.leadingLineBreaks,Math.max(n.stashedLineBreaks,e))}openTable(){this._stackItem=new u(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof u))throw new Error("Can't add table row to something that is not a table! Check the formatter.");this._stackItem=new l(this._stackItem)}openTableCell(e={}){"object"==typeof e?this._openTableCell(e):this._openTableCell({maxColumnWidth:e})}_openTableCell({maxColumnWidth:e}={}){if(!(this._stackItem instanceof l))throw new Error("Can't add table cell to something that is not a table row! Check the formatter.");this._stackItem=new s(this.options,this._stackItem,e)}closeTableCell(e={},t){"object"==typeof e?this._closeTableCell(e):this._closeTableCell({colspan:e,rowspan:t})}_closeTableCell({colspan:e=1,rowspan:t=1}={}){const n=this._popStackItem(),r=i(p(n),"\n");n.next.cells.push({colspan:e,rowspan:t,text:r})}closeTableRow(){const e=this._popStackItem();e.next.rows.push(e.cells)}closeTable(e={},t,n,r){"object"==typeof e?this._closeTable(e):this._closeTable({colSpacing:e,leadingLineBreaks:n,rowSpacing:t,trailingLineBreaks:r})}_closeTable({colSpacing:e=3,rowSpacing:t=0,leadingLineBreaks:n=2,trailingLineBreaks:r=2}={}){const i=this._popStackItem(),a=f(i.rows,t,e);a&&h(this._stackItem,a,n,r)}toString(){return p(this._stackItem.getRoot())}}}},98253:function(e,t,n){const r=n(41341),{get:i,numberToLetterSequence:a,numberToRoman:o,splitClassesAndIds:s,trimCharacter:l}=n(34594);function u(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks})}function c(e,t){return t?("string"==typeof t[0]?t[0]:"[")+e+("string"==typeof t[1]?t[1]:"]"):e}function f(e,t,n,r,a){const o="li"===i(e,["parent","name"]);let s=0;const l=(e.children||[]).filter((e=>"text"!==e.type||!/^\s*$/.test(e.data))).map((function(e){if("li"!==e.name)return{node:e,prefix:""};const t=o?a().trimStart():a();return t.length>s&&(s=t.length),{node:e,prefix:t}}));if(!l.length)return;const u=s,c="\n"+" ".repeat(u);n.openBlock({leadingLineBreaks:o?1:r.leadingLineBreaks||2});for(const{node:e,prefix:r}of l)n.openBlock({leadingLineBreaks:1,reservedLineLength:u}),t([e],n),n.closeBlock({trailingLineBreaks:1,blockTransform:e=>r+" ".repeat(u-r.length)+e.replace(/\n/g,c)});n.closeBlock({trailingLineBreaks:o?1:r.trailingLineBreaks||2})}function d(e,t,n,r){function a(e){const a=+i(e,["attribs","colspan"])||1,o=+i(e,["attribs","rowspan"])||1;n.openTableCell({maxColumnWidth:r.maxColumnWidth}),t(e.children,n),n.closeTableCell({colspan:a,rowspan:o})}n.openTable(),e.children.forEach((function e(t){if("tag"!==t.type)return;const i=!1!==r.uppercaseHeaderCells?e=>{n.pushWordTransform((e=>e.toUpperCase())),a(e),n.popWordTransform()}:a;switch(t.name){case"thead":case"tbody":case"tfoot":case"center":return void t.children.forEach(e);case"tr":n.openTableRow();for(const e of t.children)if("tag"===e.type)switch(e.name){case"th":i(e);break;case"td":a(e)}n.closeTableRow()}})),n.closeTable({colSpacing:r.colSpacing,leadingLineBreaks:r.leadingLineBreaks,rowSpacing:r.rowSpacing,trailingLineBreaks:r.trailingLineBreaks})}n(7441),e.exports={anchor:function(e,t,n,i){const a=function(){if(i.ignoreHref)return"";if(!e.attribs||!e.attribs.href)return"";let t=e.attribs.href.replace(/^mailto:/,"");return i.noAnchorUrl&&"#"===t[0]?"":(t=i.baseUrl&&"/"===t[0]?i.baseUrl+t:t,r.decode(t,n.options.decodeOptions))}();if(a){let r="";n.pushWordTransform((e=>(e&&(r+=e),e))),t(e.children,n),n.popWordTransform(),i.hideLinkHrefIfSameAsText&&a===r||n.addInline(r?" "+c(a,i.linkBrackets):a,{noWordTransform:!0})}else t(e.children,n)},block:u,blockquote:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2,reservedLineLength:2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2,blockTransform:e=>(!1!==r.trimEmptyLines?l(e,"\n"):e).split("\n").map((e=>"> "+e)).join("\n")})},dataTable:d,heading:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),!1!==r.uppercase?(n.pushWordTransform((e=>e.toUpperCase())),t(e.children,n),n.popWordTransform()):t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},horizontalLine:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),n.addInline("-".repeat(r.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},image:function(e,t,n,i){const a=e.attribs||{},o=a.alt?r.decode(a.alt,n.options.decodeOptions):"",s=a.src?i.baseUrl&&0===a.src.indexOf("/")?i.baseUrl+a.src:a.src:"",l=s?o?o+" "+c(s,i.linkBrackets):c(s,i.linkBrackets):o;n.addInline(l)},inline:function(e,t,n,r){t(e.children,n)},lineBreak:function(e,t,n,r){n.addLineBreak()},orderedList:function(e,t,n,r){let i=Number(e.attribs.start||"1");const s=function(e="1"){switch(e){case"a":return e=>a(e,"a");case"A":return e=>a(e,"A");case"i":return e=>o(e).toLowerCase();case"I":return e=>o(e);default:return e=>e.toString()}}(e.attribs.type);return f(e,t,n,r,(()=>" "+s(i++)+". "))},paragraph:function(e,t,n,r){n.openBlock({leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},pre:function(e,t,n,r){n.openBlock({isPre:!0,leadingLineBreaks:r.leadingLineBreaks||2}),t(e.children,n),n.closeBlock({trailingLineBreaks:r.trailingLineBreaks||2})},skip:function(e,t,n,r){},table:function(e,t,n,r){return function(e,t){if(!0===t)return!0;if(!e)return!1;const{classes:n,ids:r}=s(t),i=(e.class||"").split(" "),a=(e.id||"").split(" ");return i.some((e=>n.includes(e)))||a.some((e=>r.includes(e)))}(e.attribs,n.options.tables)?d(e,t,n,r):u(e,t,n,r)},unorderedList:function(e,t,n,r){const i=r.itemPrefix||" * ";return f(e,t,n,r,(()=>i))},wbr:function(e,t,n,r){n.addWordBreakOpportunity()}}},34594:function(e,t,n){const r=n(17789),i=["I","X","C","M"],a=["V","L","D"],o=(e,t,n)=>[...t];e.exports={get:function(e,t){for(const n of t){if(!e)return;e=e[n]}return e},limitedDepthRecursive:function e(t,n,r=(()=>{})){if(void 0===t){const e=function(...t){return n(e,...t)};return e}return t>=0?function(...i){return n(e(t-1,n,r),...i)}:r},mergeDuplicatesPreferLast:function(e,t){const n=new Map;for(let i=e.length;i-- >0;){const a=e[i],s=t(a);n.set(s,n.has(s)?r(a,n.get(s),{arrayMerge:o}):a)}return[...n.values()].reverse()},numberToLetterSequence:function(e,t="a",n=26){const r=[];do{e-=1,r.push(e%n),e=e/n>>0}while(e>0);const i=t.charCodeAt(0);return r.reverse().map((e=>String.fromCharCode(i+e))).join("")},numberToRoman:function(e){return[...e+""].map((e=>+e)).reverse().map(((e,t)=>e%5<4?(e<5?"":a[t])+i[t].repeat(e%5):i[t]+(e<5?a[t]:i[t+1]))).reverse().join("")},splitClassesAndIds:function(e){const t=[],n=[];for(const r of e)r.startsWith(".")?t.push(r.substring(1)):r.startsWith("#")&&n.push(r.substring(1));return{classes:t,ids:n}},trimCharacter:function(e,t){let n=0,r=e.length;for(;nn&&e[r-1]===t;)--r;return n>0||r[...t],m=(e,t,n)=>e.some((e=>"object"==typeof e))?((e,t,n)=>[...e,...t])(e,t):h(0,t);function g(e={}){(e=i(p,e,{arrayMerge:h,customMerge:e=>"selectors"===e?m:void 0})).formatters=Object.assign({},u,e.formatters),function(e){const t=e.selectors;if(e.tags){const n=Object.entries(e.tags).map((([e,t])=>({...t,selector:e||"*"})));t.push(...n)}function n(e,t,n){const r=t.pop();for(const n of t){let t=e[n];t||(t={},e[n]=t),e=t}e[r]=n}function r(r,i,a){if(void 0!==e[r])for(const o of t)o.format===i&&n(o,["options",a],e[r])}if(r("hideLinkHrefIfSameAsText","anchor","hideLinkHrefIfSameAsText"),r("ignoreHref","anchor","ignoreHref"),r("linkHrefBaseUrl","anchor","baseUrl"),r("noAnchorUrl","anchor","noAnchorUrl"),r("noLinkBrackets","anchor","noLinkBrackets"),r("linkHrefBaseUrl","image","baseUrl"),r("unorderedListItemPrefix","unorderedList","itemPrefix"),r("uppercaseHeadings","heading","uppercase"),r("uppercaseHeadings","table","uppercaseHeadings"),r("uppercaseHeadings","dataTable","uppercaseHeadings"),e.ignoreImage)for(const e of t)"image"===e.format&&(e.format="skip");if(e.singleNewLineParagraphs)for(const e of t)"paragraph"!==e.format&&"pre"!==e.format||(n(e,["options","leadingLineBreaks"],1),n(e,["options","trailingLineBreaks"],1));if(e.baseElement){const t=e.baseElement;n(e,["baseElements","selectors"],Array.isArray(t)?t:[t])}void 0!==e.returnDomByDefault&&n(e,["baseElements","returnDomByDefault"],e.returnDomByDefault);for(const e of t)"anchor"===e.format&&d(e,["options","noLinkBrackets"])&&n(e,["options","linkBrackets"],!1)}(e);const t=f(e.selectors,(e=>e.selector)),n=t.filter((e=>!e.format));if(n.length)throw new Error("Following selectors have no specified format: "+n.map((e=>`\`${e.selector}\``)).join(", "));const a=new s.DecisionTree(t.map((e=>[e.selector,e]))).build(r),g=new s.DecisionTree(e.baseElements.selectors.map(((e,t)=>[e,t+1]))).build(r);function v(t){return function(e,t,n){const r=[];return c(t.limits.maxDepth,(function(e,i){i=i.slice(0,t.limits.maxChildNodes);for(const a of i){if("tag"!==a.type)continue;const i=n.pick1(a);if(i>0?r.push({selectorIndex:i,element:a}):a.children&&e(a.children),r.length>=t.limits.maxBaseElements)return}}))(e),"occurrence"!==t.baseElements.orderBy&&r.sort(((e,t)=>e.selectorIndex-t.selectorIndex)),t.baseElements.returnDomByDefault&&0===r.length?e:r.map((e=>e.element))}(t,e,g)}const b=c(e.limits.maxDepth,y,(function(t,n){n.addInline(e.limits.ellipsis||"")}));return function(t){return function(e,t,n,r,i){const a=t.limits.maxInputLength;a&&e&&e.length>a&&(console.warn(`Input length ${e.length} is above allowed limit of ${a}. Truncating without ellipsis.`),e=e.substring(0,a));const s=new o.DomHandler;new o.Parser(s,{decodeEntities:!1}).parseComplete(e);const u=r(s.dom),c=new l(t,n);return i(u,c),c.toString()}(t,e,a,v,b)}}function v(e,t={}){return g(t)(e)}function y(e,t,n){if(!t)return;const r=n.options;t.length>r.limits.maxChildNodes&&(t=t.slice(0,r.limits.maxChildNodes)).push({data:r.limits.ellipsis,type:"text"});for(const i of t)switch(i.type){case"text":n.addInline(a.decode(i.data,r.decodeOptions));break;case"tag":{const t=n.picker.pick1(i);(0,r.formatters[t.format])(i,e,n,t.options||{});break}}}e.exports={compile:g,convert:v,fromString:(e,t={})=>v(e,t),htmlToText:v}},72174:function(e,t,n){n(7441),e.exports={InlineTextBuilder:class{constructor(e,t){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=e.longWordSplit.wrapCharacters||[],this.forceWrapOnLimit=e.longWordSplit.forceWrapOnLimit||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e){this.nextLineAvailableChars<=0&&this.startNewLine();const t=0===this.nextLineWords.length,n=e.length+(t?0:1);if(n<=this.nextLineAvailableChars)this.nextLineWords.push(e),this.nextLineAvailableChars-=n;else{const[n,...r]=this.splitLongWord(e);t||this.startNewLine(),this.nextLineWords.push(n),this.nextLineAvailableChars-=n.length;for(const e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){const e=this.nextLineWords.pop();if(void 0!==e){const t=0===this.nextLineWords.length,n=e.length+(t?0:1);this.nextLineAvailableChars+=n}return e}concatWord(e){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e),this.wordBreakOpportunity=!1;else{const t=this.popWord();this.pushWord(t?t.concat(e):e)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},(()=>[]))),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return 0===this.lines.length&&0===this.nextLineWords.length}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map((e=>e.join(" "))).join("\n")}splitLongWord(e){const t=[];let n=0;for(;e.length>this.maxLineLength;){const r=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),a=r.lastIndexOf(this.wrapCharacters[n]);if(a>-1)e=r.substring(a+1)+i,t.push(r.substring(0,a+1));else{if(n++,!(nthis.maxLineLength)continue}else e=r+i;break}e=r+i}}return t.push(e),t}}}},21489:function(e,t,n){const{InlineTextBuilder:r}=n(72174);class i{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}e.exports={BlockStackItem:class extends i{constructor(e,t=null,n=1,i){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new r(e,i),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre}},StackItem:i,TableCellStackItem:class extends i{constructor(e,t=null,n){super(t),this.inlineTextBuilder=new r(e,n),this.rawText="",this.stashedLineBreaks=0,this.isPre=t&&t.isPre}},TableRowStackItem:class extends i{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre}},TableStackItem:class extends i{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre}},TransformerStackItem:class extends i{constructor(e=null,t){super(e),this.transform=t}}}},47378:function(e){function t(e,t){return e[t]||(e[t]=[]),e[t]}function n(e,t=0){for(;e[t];)t++;return t}function r(e,n,r,i){for(let a=0;al?u.length:l}!function(e,n){for(let r=0;rl?u:l);const f=[],d=[0];for(let e=0;er?a.length:r}i(d,e,t.colspan,r+o),t.rendered=!0}n+=t.rowspan}}return f.join("\n")}}},7441:function(){},6124:function(e,t,n){const{InlineTextBuilder:r}=n(72174);n(7441),e.exports={WhitespaceProcessor:class{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;const t=(n=this.whitespaceChars,[...n].map((e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0"))).join(""));var n;if(this.leadingWhitespaceRe=new RegExp(`^[${t}]`),this.trailingWhitespaceRe=new RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${t}])`,"g"),e.preserveNewlines){const e=new RegExp(`\\n|[^\\n${t}]+`,"gm");this.shrinkWrapAdd=function(t,n,r=(e=>e)){if(!t)return;const i=n.stashedSpace;let a=!1,o=e.exec(t);if(o)for(a=!0,"\n"===o[0]?n.startNewLine():i||this.testLeadingWhitespace(t)?n.pushWord(r(o[0])):n.concatWord(r(o[0]));null!==(o=e.exec(t));)"\n"===o[0]?n.startNewLine():n.pushWord(r(o[0]));n.stashedSpace=i&&!a||this.testTrailingWhitespace(t)}}else{const e=new RegExp(`[^${t}]+`,"g");this.shrinkWrapAdd=function(t,n,r=(e=>e)){if(!t)return;const i=n.stashedSpace;let a=!1,o=e.exec(t);if(o)for(a=!0,i||this.testLeadingWhitespace(t)?n.pushWord(r(o[0])):n.concatWord(r(o[0]));null!==(o=e.exec(t));)n.pushWord(r(o[0]));n.stashedSpace=i&&!a||this.testTrailingWhitespace(t)}}}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let t,n=0;for(;null!==(t=this.newlineOrNonWhitespaceRe.exec(e));){if("\n"!==t[0])return 0;n++}return n}}}},3080:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=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])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__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=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&a(t,e,n);return o(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var u,c,f=l(n(96697)),d=s(n(61027)),p=n(50717);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(u||(u={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(c||(c={}));var h=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return i(t,e),t.prototype.onend=function(){var e,t,n=v(k,this.dom);if(n){var r={};if("feed"===n.name){var i=n.children;r.type="atom",w(r,"id","id",i),w(r,"title","title",i);var a=b("href",v("link",i));a&&(r.link=a),w(r,"description","subtitle",i),(o=y("updated",i))&&(r.updated=new Date(o)),w(r,"author","email",i,!0),r.items=g("entry",i).map((function(e){var t={},n=e.children;w(t,"id","id",n),w(t,"title","title",n);var r=b("href",v("link",n));r&&(t.link=r);var i=y("summary",n)||y("content",n);i&&(t.description=i);var a=y("updated",n);return a&&(t.pubDate=new Date(a)),t.media=m(n),t}))}else{var o;i=null!==(t=null===(e=v("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[],r.type=n.name.substr(0,3),r.id="",w(r,"title","title",i),w(r,"link","link",i),w(r,"description","description",i),(o=y("lastBuildDate",i))&&(r.updated=new Date(o)),w(r,"author","managingEditor",i,!0),r.items=g("item",n.children).map((function(e){var t={},n=e.children;w(t,"id","guid",n),w(t,"title","title",n),w(t,"link","link",n),w(t,"description","description",n);var r=y("pubDate",n);return r&&(t.pubDate=new Date(r)),t.media=m(n),t}))}this.feed=r,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(f.default);function m(e){return g("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function g(e,t){return d.getElementsByTagName(e,t,!0)}function v(e,t){return d.getElementsByTagName(e,t,!0,1)[0]}function y(e,t,n){return void 0===n&&(n=!1),d.getText(d.getElementsByTagName(e,t,n,1)).trim()}function b(e,t){return t?t.attribs[e]:null}function w(e,t,n,r,i){void 0===i&&(i=!1);var a=y(n,r,i);a&&(e[t]=a)}function k(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=h,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new h(t);return new p.Parser(n,t).end(e),n.feed}},50717:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=r(n(52281)),a=new Set(["input","option","optgroup","select","button","datalist","textarea"]),o=new Set(["p"]),s={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:o,h1:o,h2:o,h3:o,h4:o,h5:o,h6:o,select:a,input:a,output:a,button:a,datalist:a,textarea:a,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:o,article:o,aside:o,blockquote:o,details:o,div:o,dl:o,fieldset:o,figcaption:o,figure:o,footer:o,form:o,header:o,hr:o,main:o,nav:o,ol:o,pre:o,section:o,table:o,ul:o,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),u=new Set(["math","svg"]),c=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=/\s|\//,d=function(){function e(e,t){var n,r,a,o,s;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(a=t.Tokenizer)&&void 0!==a?a:i.default)(this.options,this),null===(s=(o=this.cbs).onparserinit)||void 0===s||s.call(o,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(s,e))for(var r=void 0;this.stack.length>0&&s[e].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&l.has(e)||(this.stack.push(e),u.has(e)?this.foreignContext.push(!0):c.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(u.has(e)||c.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&l.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(f),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,r,i;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(i=(r=this.cbs).oncommentend)||void 0===i||i.call(r)},e.prototype.oncdata=function(e){var t,n,r,i,a,o;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,e),null===(o=(a=this.cbs).oncdataend)||void 0===o||o.call(a)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=d},52281:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(42706)),a=r(n(5846)),o=r(n(52207)),s=r(n(30417));function l(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function c(e,t,n){var r=e.toLowerCase();return e===r?function(e,i){i===r?e._state=t:(e._state=n,e._index--)}:function(i,a){a===r||a===e?i._state=t:(i._state=n,i._index--)}}function f(e,t){var n=e.toLowerCase();return function(r,i){i===n||i===e?r._state=t:(r._state=3,r._index--)}}var d=c("C",24,16),p=c("D",25,16),h=c("A",26,16),m=c("T",27,16),g=c("A",28,16),v=f("R",35),y=f("I",36),b=f("P",37),w=f("T",38),k=c("R",40,1),_=c("I",41,1),E=c("P",42,1),x=c("T",43,1),T=f("Y",45),S=f("L",46),C=f("E",47),O=c("Y",49,1),A=c("L",50,1),I=c("E",51,1),N=f("I",54),P=f("T",55),R=f("L",56),L=f("E",57),M=c("I",58,1),D=c("T",59,1),F=c("L",60,1),j=c("E",61,1),B=c("#",63,64),q=c("X",66,65),H=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.isTagStartChar=function(e){return u(e)||this.xmlMode&&!l(e)&&"/"!==e&&">"!==e},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||l(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||l(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){l(e)||(">"===e?this._state=1:1!==this.special?4===this.special||"s"!==e&&"S"!==e?4!==this.special||"t"!==e&&"T"!==e?(this._state=1,this._index--):this._state=53:this._state=33:this.isTagStartChar(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||l(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:l(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):l(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||l(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):l(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):l(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){l(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||l(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||l(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?s.default:a.default),this.sectionStart+1=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(o.default,n))return this.emitPartial(o.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1"9")&&!u(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(o.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var r=this.sectionStart+e;if(r!==this._index){var a=this.buffer.substring(r,this._index),o=parseInt(a,t);this.emitPartial(i.default(o)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},38165:function(e){e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},51257:function(e){var t=Array.isArray;e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return t(e)?e:[e]}},71046:function(e){var t,n,r=Function.prototype,i=Object.prototype,a=r.toString,o=i.hasOwnProperty,s=a.call(Object),l=i.toString,u=(t=Object.getPrototypeOf,n=Object,function(e){return t(n(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=l.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=u(e);if(null===t)return!0;var n=o.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==s}},67460:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[a]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[o]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),h=t&&!t.nodeType&&t,m=h&&e&&!e.nodeType&&e,g=m&&m.exports===h,v=g&&f.process,y=function(){try{return m&&m.require&&m.require("util").types||v&&v.binding&&v.binding("util")}catch(e){}}(),b=y&&y.isTypedArray;function w(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var k,_,E,x=Array.prototype,T=Function.prototype,S=Object.prototype,C=p["__core-js_shared__"],O=T.toString,A=S.hasOwnProperty,I=(k=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",N=S.toString,P=O.call(Object),R=RegExp("^"+O.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=g?p.Buffer:void 0,M=p.Symbol,D=p.Uint8Array,F=(L&&L.allocUnsafe,_=Object.getPrototypeOf,E=Object,function(e){return _(E(e))}),j=Object.create,B=S.propertyIsEnumerable,q=x.splice,H=M?M.toStringTag:void 0,z=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),U=L?L.isBuffer:void 0,V=Math.max,$=Date.now,W=le(p,"Map"),G=le(Object,"create"),Z=function(){function e(){}return function(t){if(!we(t))return{};if(j)return j(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1},Q.prototype.set=function(e,t){var n=this.__data__,r=te(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new K,map:new(W||Q),string:new K}},Y.prototype.delete=function(e){var t=se(this,e).delete(e);return this.size-=t?1:0,t},Y.prototype.get=function(e){return se(this,e).get(e)},Y.prototype.has=function(e){return se(this,e).has(e)},Y.prototype.set=function(e,t){var n=se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},J.prototype.clear=function(){this.__data__=new Q,this.size=0},J.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Q){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Y(r)}return n.set(e,t),this.size=n.size,this};function re(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?function(e){var t=A.call(e,H),n=e[H];try{e[H]=void 0;var r=!0}catch(e){}var i=N.call(e);return r&&(t?e[H]=n:delete e[H]),i}(e):function(e){return N.call(e)}(e)}function ie(e){return ke(e)&&re(e)==a}function ae(e,t,n,r,i){e!==t&&function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}}(t,(function(a,o){if(i||(i=new J),we(a))!function(e,t,n,r,i,a,o){var l=fe(e,n),u=fe(t,n),c=o.get(u);if(c)X(e,n,c);else{var f,d,p,h,m,g=a?a(l,u,n+"",e,t,o):void 0,v=void 0===g;if(v){var y=me(u),b=!y&&ve(u),w=!y&&!b&&_e(u);g=u,y||b||w?me(l)?g=l:ke(m=l)&&ge(m)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(oe);function pe(e,t){return e===t||e!=e&&t!=t}var he=ie(function(){return arguments}())?ie:function(e){return ke(e)&&A.call(e,"callee")&&!B.call(e,"callee")},me=Array.isArray;function ge(e){return null!=e&&be(e.length)&&!ye(e)}var ve=U||function(){return!1};function ye(e){if(!we(e))return!1;var t=re(e);return t==o||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function we(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var _e=b?function(e){return function(t){return e(t)}}(b):function(e){return ke(e)&&be(e.length)&&!!c[re(e)]};function Ee(e){return ge(e)?function(e,t){var n=me(e),r=!n&&he(e),i=!n&&!r&&ve(e),a=!n&&!r&&!i&&_e(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=xe.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!we(n))return!1;var r=typeof t;return!!("number"==r?ge(n)&&ue(t,n.length):"string"==r&&t in n)&&pe(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n"']/g,G=RegExp($.source),Z=RegExp(W.source),K=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="["+xe+"]",Se="["+ke+"]",Ce="\\d+",Oe="["+_e+"]",Ae="[^\\ud800-\\udfff"+xe+Ce+"\\u2700-\\u27bf"+_e+Ee+"]",Ie="\\ud83c[\\udffb-\\udfff]",Ne="[^\\ud800-\\udfff]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ee+"]",Me="(?:"+Oe+"|"+Ae+")",De="(?:"+Le+"|"+Ae+")",Fe="(?:['’](?:d|ll|m|re|s|t|ve))?",je="(?:['’](?:D|LL|M|RE|S|T|VE))?",Be="(?:"+Se+"|"+Ie+")?",qe="[\\ufe0e\\ufe0f]?",He=qe+Be+"(?:\\u200d(?:"+[Ne,Pe,Re].join("|")+")"+qe+Be+")*",ze="(?:"+["[\\u2700-\\u27bf]",Pe,Re].join("|")+")"+He,Ue="(?:"+[Ne+Se+"?",Se,Pe,Re,"[\\ud800-\\udfff]"].join("|")+")",Ve=RegExp("['’]","g"),$e=RegExp(Se,"g"),We=RegExp(Ie+"(?="+Ie+")|"+Ue+He,"g"),Ge=RegExp([Le+"?"+Oe+"+"+Fe+"(?="+[Te,Le,"$"].join("|")+")",De+"+"+je+"(?="+[Te,Le+Me,"$"].join("|")+")",Le+"?"+Me+"+"+Fe,Le+"+"+je,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,ze].join("|"),"g"),Ze=RegExp("[\\u200d\\ud800-\\udfff"+ke+"\\ufe0e\\ufe0f]"),Ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ye=-1,Je={};Je[R]=Je[L]=Je[M]=Je[D]=Je[F]=Je[j]=Je[B]=Je[q]=Je[H]=!0,Je[m]=Je[g]=Je[N]=Je[v]=Je[P]=Je[y]=Je[b]=Je[w]=Je[_]=Je[E]=Je[x]=Je[S]=Je[C]=Je[O]=Je[I]=!1;var Xe={};Xe[m]=Xe[g]=Xe[N]=Xe[P]=Xe[v]=Xe[y]=Xe[R]=Xe[L]=Xe[M]=Xe[D]=Xe[F]=Xe[_]=Xe[E]=Xe[x]=Xe[S]=Xe[C]=Xe[O]=Xe[A]=Xe[j]=Xe[B]=Xe[q]=Xe[H]=!0,Xe[b]=Xe[w]=Xe[I]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,at=rt||it||Function("return this")(),ot=t&&!t.nodeType&&t,st=ot&&e&&!e.nodeType&&e,lt=st&&st.exports===ot,ut=lt&&rt.process,ct=function(){try{return st&&st.require&&st.require("util").types||ut&&ut.binding&&ut.binding("util")}catch(e){}}(),ft=ct&&ct.isArrayBuffer,dt=ct&&ct.isDate,pt=ct&&ct.isMap,ht=ct&&ct.isRegExp,mt=ct&&ct.isSet,gt=ct&&ct.isTypedArray;function vt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1}function xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Gt(e,t){for(var n=e.length;n--&&Rt(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Kt=jt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Qt=jt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yt(e){return"\\"+et[e]}function Jt(e){return Ze.test(e)}function Xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,a=[];++n",""":'"',"'":"'"}),un=function e(t){var n,r=(t=null==t?at:un.defaults(at.Object(),t,un.pick(at,Qe))).Array,ie=t.Date,ke=t.Error,_e=t.Function,Ee=t.Math,xe=t.Object,Te=t.RegExp,Se=t.String,Ce=t.TypeError,Oe=r.prototype,Ae=_e.prototype,Ie=xe.prototype,Ne=t["__core-js_shared__"],Pe=Ae.toString,Re=Ie.hasOwnProperty,Le=0,Me=(n=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Ie.toString,Fe=Pe.call(xe),je=at._,Be=Te("^"+Pe.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=lt?t.Buffer:i,He=t.Symbol,ze=t.Uint8Array,Ue=qe?qe.allocUnsafe:i,We=en(xe.getPrototypeOf,xe),Ze=xe.create,et=Ie.propertyIsEnumerable,rt=Oe.splice,it=He?He.isConcatSpreadable:i,ot=He?He.iterator:i,st=He?He.toStringTag:i,ut=function(){try{var e=ua(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==at.clearTimeout&&t.clearTimeout,It=ie&&ie.now!==at.Date.now&&ie.now,jt=t.setTimeout!==at.setTimeout&&t.setTimeout,cn=Ee.ceil,fn=Ee.floor,dn=xe.getOwnPropertySymbols,pn=qe?qe.isBuffer:i,hn=t.isFinite,mn=Oe.join,gn=en(xe.keys,xe),vn=Ee.max,yn=Ee.min,bn=ie.now,wn=t.parseInt,kn=Ee.random,_n=Oe.reverse,En=ua(t,"DataView"),xn=ua(t,"Map"),Tn=ua(t,"Promise"),Sn=ua(t,"Set"),Cn=ua(t,"WeakMap"),On=ua(xe,"create"),An=Cn&&new Cn,In={},Nn=ja(En),Pn=ja(xn),Rn=ja(Tn),Ln=ja(Sn),Mn=ja(Cn),Dn=He?He.prototype:i,Fn=Dn?Dn.valueOf:i,jn=Dn?Dn.toString:i;function Bn(e){if(ns(e)&&!$o(e)&&!(e instanceof Un)){if(e instanceof zn)return e;if(Re.call(e,"__wrapped__"))return Ba(e)}return new zn(e)}var qn=function(){function e(){}return function(t){if(!ts(t))return{};if(Ze)return Ze(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Hn(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function sr(e,t,n,r,a,o){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!ts(e))return e;var f=$o(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Ci(e,s)}else{var d=da(e),p=d==w||d==k;if(Ko(e))return ki(e,l);if(d==x||d==m||p&&!a){if(s=u||p?{}:ha(e),!l)return u?function(e,t){return Oi(e,fa(e),t)}(e,function(e,t){return e&&Oi(t,Rs(t),e)}(s,e)):function(e,t){return Oi(e,ca(e),t)}(e,rr(s,e))}else{if(!Xe[d])return a?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case N:return _i(e);case v:case y:return new i(+e);case P:return function(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case L:case M:case D:case F:case j:case B:case q:case H:return Ei(e,n);case _:return new i;case E:case O:return new i(e);case S:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case A:return r=e,Fn?xe(Fn.call(r)):{}}}(e,d,l)}}o||(o=new Zn);var h=o.get(e);if(h)return h;o.set(e,s),ss(e)?e.forEach((function(r){s.add(sr(r,t,n,r,e,o))})):rs(e)&&e.forEach((function(r,i){s.set(i,sr(r,t,n,i,e,o))}));var g=f?i:(c?u?na:ta:u?Rs:Ps)(e);return bt(g||e,(function(r,i){g&&(r=e[i=r]),er(s,i,sr(r,t,n,i,e,o))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=xe(e);r--;){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ce(a);return Aa((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,a=Et,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Tt(t,Ut(n))),r?(a=xt,o=!1):t.length>=200&&(a=$t,o=!1,t=new Gn(t));e:for(;++i-1},$n.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(xn||$n),string:new Vn}},Wn.prototype.delete=function(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return sa(this,e).get(e)},Wn.prototype.has=function(e){return sa(this,e).has(e)},Wn.prototype.set=function(e,t){var n=sa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Gn.prototype.add=Gn.prototype.push=function(e){return this.__data__.set(e,o),this},Gn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new $n,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ni(br),dr=Ni(wr,!0);function pr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function hr(e,t,n){for(var r=-1,a=e.length;++r0&&n(s)?t>1?gr(s,t-1,n,r,i):St(i,s):r||(i[i.length]=s)}return i}var vr=Pi(),yr=Pi(!0);function br(e,t){return e&&vr(e,t,Ps)}function wr(e,t){return e&&yr(e,t,Ps)}function kr(e,t){return _t(t,(function(t){return Jo(e[t])}))}function _r(e,t){for(var n=0,r=(t=vi(t,e)).length;null!=e&&nt}function Sr(e,t){return null!=e&&Re.call(e,t)}function Cr(e,t){return null!=e&&t in xe(e)}function Or(e,t,n){for(var a=n?xt:Et,o=e[0].length,s=e.length,l=s,u=r(s),c=1/0,f=[];l--;){var d=e[l];l&&t&&(d=Tt(d,Ut(t))),c=yn(d.length,c),u[l]=!n&&(t||o>=120&&d.length>=120)?new Gn(l&&d):i}d=e[0];var p=-1,h=u[0];e:for(;++p=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function Ur(e,t,n){for(var r=-1,i=t.length,a={};++r-1;)s!==e&&rt.call(s,l,1),rt.call(e,l,1);return e}function $r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ga(i)?rt.call(e,i,1):ui(e,i)}}return e}function Wr(e,t){return e+fn(kn()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ia(xa(e,t,il),e+"")}function Kr(e){return Qn(Hs(e))}function Qr(e,t){var n=Hs(e);return Ra(n,or(t,0,n.length))}function Yr(e,t,n,r){if(!ts(e))return e;for(var a=-1,o=(t=vi(t,e)).length,s=o-1,l=e;null!=l&&++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var o=r(a);++i>>1,o=e[a];null!==o&&!us(o)&&(n?o<=t:o=200){var u=t?null:Gi(e);if(u)return nn(u);o=!1,i=$t,l=new Gn}else l=t?[]:s;e:for(;++r=r?e:ti(e,t,n)}var wi=ct||function(e){return at.clearTimeout(e)};function ki(e,t){if(t)return e.slice();var n=e.length,r=Ue?Ue(n):new e.constructor(n);return e.copy(r),r}function _i(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Ei(e,t){var n=t?_i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,a=e==e,o=us(e),s=t!==i,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!a)return 1;if(!r&&!o&&!c&&e1?n[a-1]:i,s=a>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(a--,o):i,s&&va(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=xe(t);++r-1?a[o?t[s]:s]:i}}function Fi(e){return ea((function(t){var n=t.length,r=n,o=zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ce(a);if(o&&!l&&"wrapper"==ia(s))var l=new zn([],!0)}for(r=l?r:n;++r1&&b.reverse(),p&&fl))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&n?new Gn:i;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(h,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(r),n)))}function Pa(e){var t=0,n=0;return function(){var r=bn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ra(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ao(e,n)}));function po(e){var t=Bn(e);return t.__chain__=!0,t}function ho(e,t){return t(e)}var mo=ea((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&ga(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ho,args:[a],thisArg:i}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(a)})),go=Ai((function(e,t,n){Re.call(e,n)?++e[n]:ir(e,n,1)})),vo=Di(Ua),yo=Di(Va);function bo(e,t){return($o(e)?bt:fr)(e,oa(t,3))}function wo(e,t){return($o(e)?wt:dr)(e,oa(t,3))}var ko=Ai((function(e,t,n){Re.call(e,n)?e[n].push(t):ir(e,n,[t])})),_o=Zr((function(e,t,n){var i=-1,a="function"==typeof t,o=Go(e)?r(e.length):[];return fr(e,(function(e){o[++i]=a?vt(t,e,n):Ar(e,t,n)})),o})),Eo=Ai((function(e,t,n){ir(e,n,t)}));function xo(e,t){return($o(e)?Tt:Fr)(e,oa(t,3))}var To=Ai((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),So=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&va(e,t[0],t[1])?t=[]:n>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,gr(t,1),[])})),Co=It||function(){return at.Date.now()};function Oo(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ki(e,u,i,i,i,i,t)}function Ao(e,t){var n;if("function"!=typeof t)throw new Ce(a);return e=ms(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Io=Zr((function(e,t,n){var r=1;if(n.length){var i=tn(n,aa(Io));r|=l}return Ki(e,r,t,n,i)})),No=Zr((function(e,t,n){var r=3;if(n.length){var i=tn(n,aa(No));r|=l}return Ki(t,r,e,n,i)}));function Po(e,t,n){var r,o,s,l,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ce(a);function m(t){var n=r,a=o;return r=o=i,f=t,l=e.apply(a,n)}function g(e){return f=e,u=Aa(y,t),d?m(e):l}function v(e){var n=e-c;return c===i||n>=t||n<0||p&&e-f>=s}function y(){var e=Co();if(v(e))return b(e);u=Aa(y,function(e){var n=t-(e-c);return p?yn(n,s-(e-f)):n}(e))}function b(e){return u=i,h&&r?m(e):(r=o=i,l)}function w(){var e=Co(),n=v(e);if(r=arguments,o=this,c=e,n){if(u===i)return g(c);if(p)return wi(u),u=Aa(y,t),m(c)}return u===i&&(u=Aa(y,t)),l}return t=vs(t)||0,ts(n)&&(d=!!n.leading,s=(p="maxWait"in n)?vn(vs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),w.cancel=function(){u!==i&&wi(u),f=0,r=c=o=u=i},w.flush=function(){return u===i?l:b(Co())},w}var Ro=Zr((function(e,t){return ur(e,1,t)})),Lo=Zr((function(e,t,n){return ur(e,vs(t)||0,n)}));function Mo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Mo.Cache||Wn),n}function Do(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Mo.Cache=Wn;var Fo=yi((function(e,t){var n=(t=1==t.length&&$o(t[0])?Tt(t[0],Ut(oa())):Tt(gr(t,1),Ut(oa()))).length;return Zr((function(r){for(var i=-1,a=yn(r.length,n);++i=t})),Vo=Ir(function(){return arguments}())?Ir:function(e){return ns(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},$o=r.isArray,Wo=ft?Ut(ft):function(e){return ns(e)&&xr(e)==N};function Go(e){return null!=e&&es(e.length)&&!Jo(e)}function Zo(e){return ns(e)&&Go(e)}var Ko=pn||vl,Qo=dt?Ut(dt):function(e){return ns(e)&&xr(e)==y};function Yo(e){if(!ns(e))return!1;var t=xr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Jo(e){if(!ts(e))return!1;var t=xr(e);return t==w||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xo(e){return"number"==typeof e&&e==ms(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=pt?Ut(pt):function(e){return ns(e)&&da(e)==_};function is(e){return"number"==typeof e||ns(e)&&xr(e)==E}function as(e){if(!ns(e)||xr(e)!=x)return!1;var t=We(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Fe}var os=ht?Ut(ht):function(e){return ns(e)&&xr(e)==S},ss=mt?Ut(mt):function(e){return ns(e)&&da(e)==C};function ls(e){return"string"==typeof e||!$o(e)&&ns(e)&&xr(e)==O}function us(e){return"symbol"==typeof e||ns(e)&&xr(e)==A}var cs=gt?Ut(gt):function(e){return ns(e)&&es(e.length)&&!!Je[xr(e)]},fs=Vi(Dr),ds=Vi((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Go(e))return ls(e)?on(e):Ci(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=da(e);return(t==_?Xt:t==C?nn:Hs)(e)}function hs(e){return e?(e=vs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=hs(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?or(ms(e),0,p):0}function vs(e){if("number"==typeof e)return e;if(us(e))return d;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var n=he.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):pe.test(e)?d:+e}function ys(e){return Oi(e,Rs(e))}function bs(e){return null==e?"":si(e)}var ws=Ii((function(e,t){if(ka(t)||Go(t))Oi(t,Ps(t),e);else for(var n in t)Re.call(t,n)&&er(e,n,t[n])})),ks=Ii((function(e,t){Oi(t,Rs(t),e)})),_s=Ii((function(e,t,n,r){Oi(t,Rs(t),e,r)})),Es=Ii((function(e,t,n,r){Oi(t,Ps(t),e,r)})),xs=ea(ar),Ts=Zr((function(e,t){e=xe(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&va(t[0],t[1],a)&&(r=1);++n1),t})),Oi(e,na(e),n),r&&(n=sr(n,7,Ji));for(var i=t.length;i--;)ui(n,t[i]);return n})),Fs=ea((function(e,t){return null==e?{}:function(e,t){return Ur(e,t,(function(t,n){return Os(e,n)}))}(e,t)}));function js(e,t){if(null==e)return{};var n=Tt(na(e),(function(e){return[e]}));return t=oa(t),Ur(e,n,(function(e,n){return t(e,n[0])}))}var Bs=Zi(Ps),qs=Zi(Rs);function Hs(e){return null==e?[]:Vt(e,Ps(e))}var zs=Li((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Ys(bs(e).toLowerCase())}function Vs(e){return(e=bs(e))&&e.replace(ye,Kt).replace($e,"")}var $s=Li((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Li((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=Ri("toLowerCase"),Zs=Li((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Ks=Li((function(e,t,n){return e+(n?" ":"")+Ys(t)})),Qs=Li((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ys=Ri("toUpperCase");function Js(e,t,n){return e=bs(e),(t=n?i:t)===i?function(e){return Ke.test(e)}(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xs=Zr((function(e,t){try{return vt(e,i,t)}catch(e){return Yo(e)?e:new ke(e)}})),el=ea((function(e,t){return bt(t,(function(t){t=Fa(t),ir(e,t,Io(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Fi(),rl=Fi(!0);function il(e){return e}function al(e){return Lr("function"==typeof e?e:sr(e,1))}var ol=Zr((function(e,t){return function(n){return Ar(n,e,t)}})),sl=Zr((function(e,t){return function(n){return Ar(e,n,t)}}));function ll(e,t,n){var r=Ps(t),i=kr(t,r);null!=n||ts(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=kr(t,Ps(t)));var a=!(ts(n)&&"chain"in n&&!n.chain),o=Jo(e);return bt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=Ci(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,St([this.value()],arguments))})})),e}function ul(){}var cl=Hi(Tt),fl=Hi(kt),dl=Hi(At);function pl(e){return ya(e)?Ft(Fa(e)):function(e){return function(t){return _r(t,e)}}(e)}var hl=Ui(),ml=Ui(!0);function gl(){return[]}function vl(){return!1}var yl,bl=qi((function(e,t){return e+t}),0),wl=Wi("ceil"),kl=qi((function(e,t){return e/t}),1),_l=Wi("floor"),El=qi((function(e,t){return e*t}),1),xl=Wi("round"),Tl=qi((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Ce(a);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Oo,Bn.assign=ws,Bn.assignIn=ks,Bn.assignInWith=_s,Bn.assignWith=Es,Bn.at=xs,Bn.before=Ao,Bn.bind=Io,Bn.bindAll=el,Bn.bindKey=No,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $o(e)?e:[e]},Bn.chain=po,Bn.chunk=function(e,t,n){t=(n?va(e,t,n):t===i)?1:vn(ms(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var o=0,s=0,l=r(cn(a/t));oa?0:a+n),(r=r===i||r>a?a:ms(r))<0&&(r+=a),r=n>r?0:gs(r);n>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!os(t))&&!(t=si(t))&&Jt(e)?bi(on(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:vn(ms(t),0),Zr((function(n){var r=n[t],i=bi(n,0,t);return r&&St(i,r),vt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:ms(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:ms(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?fi(e,oa(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?fi(e,oa(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ce(a);return ts(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Po(e,t,{leading:r,maxWait:t,trailing:i})},Bn.thru=ho,Bn.toArray=ps,Bn.toPairs=Bs,Bn.toPairsIn=qs,Bn.toPath=function(e){return $o(e)?Tt(e,Fa):us(e)?[e]:Ci(Da(bs(e)))},Bn.toPlainObject=ys,Bn.transform=function(e,t,n){var r=$o(e),i=r||Ko(e)||cs(e);if(t=oa(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:ts(e)&&Jo(a)?qn(We(e)):{}}return(i?bt:br)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return Oo(e,1)},Bn.union=to,Bn.unionBy=no,Bn.unionWith=ro,Bn.uniq=function(e){return e&&e.length?li(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?li(e,oa(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?li(e,i,t):[]},Bn.unset=function(e,t){return null==e||ui(e,t)},Bn.unzip=io,Bn.unzipWith=ao,Bn.update=function(e,t,n){return null==e?e:ci(e,t,gi(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,gi(n),r)},Bn.values=Hs,Bn.valuesIn=function(e){return null==e?[]:Vt(e,Rs(e))},Bn.without=oo,Bn.words=Js,Bn.wrap=function(e,t){return jo(gi(t),e)},Bn.xor=so,Bn.xorBy=lo,Bn.xorWith=uo,Bn.zip=co,Bn.zipObject=function(e,t){return hi(e||[],t||[],er)},Bn.zipObjectDeep=function(e,t){return hi(e||[],t||[],Yr)},Bn.zipWith=fo,Bn.entries=Bs,Bn.entriesIn=qs,Bn.extend=ks,Bn.extendWith=_s,ll(Bn,Bn),Bn.add=bl,Bn.attempt=Xs,Bn.camelCase=zs,Bn.capitalize=Us,Bn.ceil=wl,Bn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=vs(n))==n?n:0),t!==i&&(t=(t=vs(t))==t?t:0),or(vs(e),t,n)},Bn.clone=function(e){return sr(e,4)},Bn.cloneDeep=function(e){return sr(e,5)},Bn.cloneDeepWith=function(e,t){return sr(e,5,t="function"==typeof t?t:i)},Bn.cloneWith=function(e,t){return sr(e,4,t="function"==typeof t?t:i)},Bn.conformsTo=function(e,t){return null==t||lr(e,t,Ps(t))},Bn.deburr=Vs,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=kl,Bn.endsWith=function(e,t,n){e=bs(e),t=si(t);var r=e.length,a=n=n===i?r:or(ms(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Bn.eq=Ho,Bn.escape=function(e){return(e=bs(e))&&Z.test(e)?e.replace(W,Qt):e},Bn.escapeRegExp=function(e){return(e=bs(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Bn.every=function(e,t,n){var r=$o(e)?kt:pr;return n&&va(e,t,n)&&(t=i),r(e,oa(t,3))},Bn.find=vo,Bn.findIndex=Ua,Bn.findKey=function(e,t){return Nt(e,oa(t,3),br)},Bn.findLast=yo,Bn.findLastIndex=Va,Bn.findLastKey=function(e,t){return Nt(e,oa(t,3),wr)},Bn.floor=_l,Bn.forEach=bo,Bn.forEachRight=wo,Bn.forIn=function(e,t){return null==e?e:vr(e,oa(t,3),Rs)},Bn.forInRight=function(e,t){return null==e?e:yr(e,oa(t,3),Rs)},Bn.forOwn=function(e,t){return e&&br(e,oa(t,3))},Bn.forOwnRight=function(e,t){return e&&wr(e,oa(t,3))},Bn.get=Cs,Bn.gt=zo,Bn.gte=Uo,Bn.has=function(e,t){return null!=e&&pa(e,t,Sr)},Bn.hasIn=Os,Bn.head=Wa,Bn.identity=il,Bn.includes=function(e,t,n,r){e=Go(e)?e:Hs(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=vn(i+n,0)),ls(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Rt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=vn(r+i,0)),Rt(e,t,i)},Bn.inRange=function(e,t,n){return t=hs(t),n===i?(n=t,t=0):n=hs(n),function(e,t,n){return e>=yn(t,n)&&e=-9007199254740991&&e<=f},Bn.isSet=ss,Bn.isString=ls,Bn.isSymbol=us,Bn.isTypedArray=cs,Bn.isUndefined=function(e){return e===i},Bn.isWeakMap=function(e){return ns(e)&&da(e)==I},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==xr(e)},Bn.join=function(e,t){return null==e?"":mn.call(e,t)},Bn.kebabCase=$s,Bn.last=Qa,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=ms(n))<0?vn(r+a,0):yn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Pt(e,Mt,a,!0)},Bn.lowerCase=Ws,Bn.lowerFirst=Gs,Bn.lt=fs,Bn.lte=ds,Bn.max=function(e){return e&&e.length?hr(e,il,Tr):i},Bn.maxBy=function(e,t){return e&&e.length?hr(e,oa(t,2),Tr):i},Bn.mean=function(e){return Dt(e,il)},Bn.meanBy=function(e,t){return Dt(e,oa(t,2))},Bn.min=function(e){return e&&e.length?hr(e,il,Dr):i},Bn.minBy=function(e,t){return e&&e.length?hr(e,oa(t,2),Dr):i},Bn.stubArray=gl,Bn.stubFalse=vl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=El,Bn.nth=function(e,t){return e&&e.length?Hr(e,ms(t)):i},Bn.noConflict=function(){return at._===this&&(at._=je),this},Bn.noop=ul,Bn.now=Co,Bn.pad=function(e,t,n){e=bs(e);var r=(t=ms(t))?an(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return zi(fn(i),n)+e+zi(cn(i),n)},Bn.padEnd=function(e,t,n){e=bs(e);var r=(t=ms(t))?an(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var a=kn();return yn(e+a*(t-e+tt("1e-"+((a+"").length-1))),t)}return Wr(e,t)},Bn.reduce=function(e,t,n){var r=$o(e)?Ct:Bt,i=arguments.length<3;return r(e,oa(t,4),n,i,fr)},Bn.reduceRight=function(e,t,n){var r=$o(e)?Ot:Bt,i=arguments.length<3;return r(e,oa(t,4),n,i,dr)},Bn.repeat=function(e,t,n){return t=(n?va(e,t,n):t===i)?1:ms(t),Gr(bs(e),t)},Bn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,a=(t=vi(t,e)).length;for(a||(a=1,e=i);++rf)return[];var n=p,r=yn(e,p);t=oa(t),e-=p;for(var i=Ht(r,t);++n=o)return e;var l=n-an(r);if(l<1)return r;var u=s?bi(s,0,l).join(""):e.slice(0,l);if(a===i)return u+r;if(s&&(l+=u.length-l),os(a)){if(e.slice(l).search(a)){var c,f=u;for(a.global||(a=Te(a.source,bs(de.exec(a))+"g")),a.lastIndex=0;c=a.exec(f);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(e.indexOf(si(a),l)!=l){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+r},Bn.unescape=function(e){return(e=bs(e))&&G.test(e)?e.replace($,ln):e},Bn.uniqueId=function(e){var t=++Le;return bs(e)+t},Bn.upperCase=Qs,Bn.upperFirst=Ys,Bn.each=bo,Bn.eachRight=wo,Bn.first=Wa,ll(Bn,(yl={},br(Bn,(function(e,t){Re.call(Bn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),Bn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),bt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:vn(ms(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:oa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(il)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Ar(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(Do(oa(e)))},Un.prototype.slice=function(e,t){e=ms(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ms(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(p)},br(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Bn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Un,u=s[0],c=l||$o(t),f=function(e){var t=a.apply(Bn,St([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=o&&!d,m=l&&!p;if(!o&&c){t=m?t:new Un(this);var g=e.apply(t,s);return g.__actions__.push({func:ho,args:[f],thisArg:i}),new zn(g,d)}return h&&m?e.apply(this,s):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply($o(i)?i:[],e)}return this[n]((function(n){return t.apply($o(n)?n:[],e)}))}})),br(Un.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Re.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[ji(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=Ci(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ci(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ci(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$o(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Hn;){var r=Ba(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:ho,args:[eo],thisArg:i}),new zn(t,this.__chain__)}return this.thru(eo)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,ot&&(Bn.prototype[ot]=function(){return this}),Bn}();at._=un,(r=function(){return un}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},84879:function(e,t){"use strict";function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var p=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(c(Error)),h=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return a(t,e),t}(p),m=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return a(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return a(t,e),t}(p),v=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(p),y=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return a(t,e),t}(p),b=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(p),w=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return a(t,e),t}(p),k="numeric",_="short",E="long",x={year:k,month:k,day:k},T={year:k,month:_,day:k},S={year:k,month:_,day:k,weekday:_},C={year:k,month:E,day:k},O={year:k,month:E,day:k,weekday:E},A={hour:k,minute:k},I={hour:k,minute:k,second:k},N={hour:k,minute:k,second:k,timeZoneName:_},P={hour:k,minute:k,second:k,timeZoneName:E},R={hour:k,minute:k,hourCycle:"h23"},L={hour:k,minute:k,second:k,hourCycle:"h23"},M={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:_},D={hour:k,minute:k,second:k,hourCycle:"h23",timeZoneName:E},F={year:k,month:k,day:k,hour:k,minute:k},j={year:k,month:k,day:k,hour:k,minute:k,second:k},B={year:k,month:_,day:k,hour:k,minute:k},q={year:k,month:_,day:k,hour:k,minute:k,second:k},H={year:k,month:_,day:k,weekday:_,hour:k,minute:k},z={year:k,month:E,day:k,hour:k,minute:k,timeZoneName:_},U={year:k,month:E,day:k,hour:k,minute:k,second:k,timeZoneName:_},V={year:k,month:E,day:k,weekday:E,hour:k,minute:k,timeZoneName:E},$={year:k,month:E,day:k,weekday:E,hour:k,minute:k,second:k,timeZoneName:E};function W(e){return void 0===e}function G(e){return"number"==typeof e}function Z(e){return"number"==typeof e&&e%1==0}function K(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Q(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function Y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function J(e,t,n){return Z(e)&&e>=t&&e<=n}function X(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function se(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function le(e){return e>99?e:e>60?1900+e:2e3+e}function ue(e,t,n,r){void 0===r&&(r=null);var a=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);var s=i({timeZoneName:t},o),l=new Intl.DateTimeFormat(n,s).formatToParts(a).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}function ce(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function fe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new b("Invalid unit value "+e);return t}function de(e,t){var n={};for(var r in e)if(Y(e,r)){var i=e[r];if(null==i)continue;n[t(r)]=fe(i)}return n}function pe(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+X(n,2)+":"+X(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+X(n,2)+X(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function he(e){return function(e,t){return["hour","minute","second","millisecond"].reduce((function(t,n){return t[n]=e[n],t}),{})}(e)}var me=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,ge=["January","February","March","April","May","June","July","August","September","October","November","December"],ve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ye=["J","F","M","A","M","J","J","A","S","O","N","D"];function be(e){switch(e){case"narrow":return[].concat(ye);case"short":return[].concat(ve);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var we=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ke=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_e=["M","T","W","T","F","S","S"];function Ee(e){switch(e){case"narrow":return[].concat(_e);case"short":return[].concat(ke);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var xe=["AM","PM"],Te=["Before Christ","Anno Domini"],Se=["BC","AD"],Ce=["B","A"];function Oe(e){switch(e){case"narrow":return[].concat(Ce);case"short":return[].concat(Se);case"long":return[].concat(Te);default:return null}}function Ae(e,t){for(var n,r="",i=d(e);!(n=i()).done;){var a=n.value;a.literal?r+=a.val:r+=t(a.val)}return r}var Ie={D:x,DD:T,DDD:C,DDDD:O,t:A,tt:I,ttt:N,tttt:P,T:R,TT:L,TTT:M,TTTT:D,f:F,ff:B,fff:z,ffff:V,F:j,FF:q,FFF:U,FFFF:$},Ne=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],a=0;a0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Ie[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,i({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,i({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(e,t);var n=i({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(e,n){return i?function(e,t){return be(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month")},u=function(e,n){return i?function(e,t){return Ee(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},c=function(e){return i?function(e,t){return Oe(t)[e.year<0?0:1]}(t,e):o({era:e},"era")};return Ae(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?function(e){return xe[e.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return a?o({day:"numeric"},"day"):r.num(t.day);case"dd":return a?o({day:"2-digit"},"day"):r.num(t.day,2);case"c":case"E":return r.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?o({month:"numeric"},"month"):r.num(t.month);case"MM":return a?o({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?o({year:"numeric"},"year"):r.num(t.year);case"yy":return a?o({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):r.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,a=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),s=o.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),l=t.shiftTo.apply(t,s.map(a).filter((function(e){return e})));return Ae(o,(r=l,function(e){var t=a(e);return t?i.num(r.get(t),e.length):e}))},e}(),Pe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Re=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new w},t.formatOffset=function(e,t){throw new w},t.offset=function(e){throw new w},t.equals=function(e){throw new w},r(e,[{key:"type",get:function(){throw new w}},{key:"name",get:function(){throw new w}},{key:"isUniversal",get:function(){throw new w}},{key:"isValid",get:function(){throw new w}}]),e}(),Le=null,Me=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.offsetName=function(e,t){return ue(e,t.format,t.locale)},n.formatOffset=function(e,t){return pe(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"system"===e.type},r(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Le&&(Le=new t),Le}}]),t}(Re),De=RegExp("^"+me.source+"$"),Fe={},je={year:0,month:1,day:2,hour:3,minute:4,second:5},Be={},qe=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}a(t,e),t.create=function(e){return Be[e]||(Be[e]=new t(e)),Be[e]},t.resetCache=function(){Be={},Fe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(De))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return ue(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return pe(this.offset(e),t)},n.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var n,r=(n=this.name,Fe[n]||(Fe[n]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[n]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?o:1e3+o))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},r(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Re),He=null,ze=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}a(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(ce(n[1],n[2]))}return null};var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return pe(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},r(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+pe(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===He&&(He=new t(0)),He}}]),t}(Re),Ue=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}a(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},r(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Re);function Ve(e,t){var n;if(W(e)||null===e)return t;if(e instanceof Re)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r||"system"===r?t:"utc"===r||"gmt"===r?ze.utcInstance:null!=(n=qe.parseGMTOffset(e))?ze.instance(n):qe.isValidSpecifier(r)?qe.create(e):ze.parseSpecifier(r)||new Ue(e)}return G(e)?ze.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ue(e)}var $e,We=function(){return Date.now()},Ge="system",Ze=null,Ke=null,Qe=null,Ye=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),qe.resetCache()},r(e,null,[{key:"now",get:function(){return We},set:function(e){We=e}},{key:"defaultZone",get:function(){return Ve(Ge,Me.instance)},set:function(e){Ge=e}},{key:"defaultLocale",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultNumberingSystem",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultOutputCalendar",get:function(){return Qe},set:function(e){Qe=e}},{key:"throwOnInvalid",get:function(){return $e},set:function(e){$e=e}}]),e}(),Je=["base"],Xe={};function et(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=Xe[n];return r||(r=new Intl.DateTimeFormat(e,t),Xe[n]=r),r}var tt={},nt={};var rt=null;function it(e,t,n,r,i){var a=e.listingMode(n);return"error"===a?null:"en"===a?r(t):i(t)}var at=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=tt[n];return r||(r=new Intl.NumberFormat(e,t),tt[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return X(this.floor?Math.floor(e):ne(e,3),this.padTo)},e}(),ot=function(){function e(e,t,n){var r;if(this.opts=n,e.zone.isUniversal){var a=e.offset/60*-1,o=a>=0?"Etc/GMT+"+a:"Etc/GMT"+a,s=qe.isValidZone(o);0!==e.offset&&s?(r=o,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:sr.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);var l=i({},this.opts);r&&(l.timeZone=r),this.dtf=et(t,l)}var t=e.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),st=function(){function e(e,t,n){this.opts=i({style:"long"},n),!t&&K()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=t;n.base;var r=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,Je),i=JSON.stringify([e,r]),a=nt[i];return a||(a=new Intl.RelativeTimeFormat(e,t),nt[i]=a),a}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,l=Math.abs(t),u=1===l,c=i[e],f=r?u?c[1]:c[2]||c[1]:u?i[e][0]:e;return s?l+" "+f+" ago":"in "+l+" "+f}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),lt=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=et(e).resolvedOptions()}catch(e){n=et(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),a=i[0],o=i[1],s=i[2];this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var a=t||Ye.defaultLocale;return new e(a||(i?"en-US":rt||(rt=(new Intl.DateTimeFormat).resolvedOptions().locale)),n||Ye.defaultNumberingSystem,r||Ye.defaultOutputCalendar,a)},e.resetCache=function(){rt=null,Xe={},tt={},nt={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.outputCalendar;return e.create(r,i,a)};var t=e.prototype;return t.listingMode=function(e){var t=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&n?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(i({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(i({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),it(this,e,n,be,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=sr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),it(this,e,n,Ee,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=sr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),it(this,void 0,e,(function(){return xe}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[sr.utc(2016,11,13,9),sr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),it(this,e,t,Oe,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[sr.utc(-40,1,1),sr.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ot(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},r(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ut(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?we.indexOf(e)+1:ke.indexOf(e)+1),s}var Nt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Pt(e){var t,n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],d=e[11],p=It(n,a,i,r,o,s,l);return t=u?At[u]:c?0:ce(f,d),[p,new ze(t)]}var Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Mt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Dt(e){var t=e[1],n=e[2],r=e[3];return[It(t,e[4],r,n,e[5],e[6],e[7]),ze.utcInstance]}function Ft(e){var t=e[1],n=e[2],r=e[3],i=e[4],a=e[5],o=e[6];return[It(t,e[7],n,r,i,a,o),ze.utcInstance]}var jt=ut(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gt),Bt=ut(/(\d{4})-?W(\d\d)(?:-?(\d))?/,gt),qt=ut(/(\d{4})-?(\d{3})/,gt),Ht=ut(mt),zt=ct(_t,Et,xt),Ut=ct(vt,Et,xt),Vt=ct(yt,Et,xt),$t=ct(Et,xt),Wt=ct(Et),Gt=ut(/(\d{4})-(\d\d)-(\d\d)/,wt),Zt=ut(bt),Kt=ct(_t,Et,xt,Tt),Qt=ct(Et,xt,Tt),Yt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Jt=i({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Yt),Xt=i({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Yt),en=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tn=en.slice(0).reverse();function nn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:i({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new an(r)}function rn(e,t,n,r,i){var a=e[i][n],o=t[n]/a,s=Math.sign(o)!==Math.sign(r[i])&&0!==r[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);r[i]+=s,t[n]-=s*a}var an=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xt:Jt,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject({milliseconds:t},n)},e.fromObject=function(t,n){if(void 0===n&&(n={}),null==t||"object"!=typeof t)throw new b("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:de(t,e.normalizeUnit),loc:lt.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return ft(e,[Ct,Ot])}(t),i=r[0];return i?e.fromObject(i,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return ft(e,[St,Wt])}(t),i=r[0];return i?e.fromObject(i,n):e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new b("need to specify a reason the Duration is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Ye.throwOnInvalid)throw new g(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new y(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=i({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ne.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(){return this.isValid?i({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ne(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=i({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var a=n.toFormat(r);return e.includePrefix&&(a="T"+a),a},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=on(e),r={},i=d(en);!(t=i()).done;){var a=t.value;(Y(n.values,a)||Y(this.values,a))&&(r[a]=n.get(a)+this.get(a))}return nn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=on(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=c;var f=0;for(var p in s)f+=this.matrix[p][c]*s[p],s[p]=0;G(l[c])&&(f+=l[c]);var h=Math.trunc(f);for(var m in o[c]=h,s[c]=f-h,l)en.indexOf(m)>en.indexOf(c)&&rn(this.matrix,l,m,o,c)}else G(l[c])&&(s[c]=l[c])}for(var g in s)0!==s[g]&&(o[i]+=g===i?s[g]:s[g]/this.matrix[i][g]);return nn(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:u;o.push(e.fromDateTimes(s,c)),s=c,l+=1}return o},t.splitBy=function(t){var n=on(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i=this.s,a=1,o=[];i+this.e?this.e:s,o.push(e.fromDateTimes(i,r)),i=r,a+=1}return o},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.e=r?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,a=0,o=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=d((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=l()).done;){var u=r.value;1===(a+="s"===u.type?1:-1)?i=u.time:(i&&+i!=+u.time&&o.push(e.fromDateTimes(i,u.time)),i=null)}return e.merge(o)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=o&&r<=s&&(t+=r-o)}}return parseInt(t,10)}return t}(n))}}}var vn="( |"+String.fromCharCode(160)+")",yn=new RegExp(vn,"g");function bn(e){return e.replace(/\./g,"\\.?").replace(yn,vn)}function wn(e){return e.replace(/\./g,"").replace(yn," ").toLowerCase()}function kn(e,t){return null===e?null:{regex:RegExp(e.map(bn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return wn(r)===wn(e)}))+t}}}function _n(e,t){return{regex:e,deser:function(e){return ce(e[1],e[2])},groups:t}}function En(e){return{regex:e,deser:function(e){return e[0]}}}var xn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Tn=null;function Sn(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return function(e,t){if(e.literal)return e;var n=Ne.macroTokenToFormatOpts(e.val);if(!n)return e;var r=Ne.create(t,n).formatDateTimeParts((Tn||(Tn=sr.fromMillis(1555555555555)),Tn)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var a=n[r],o=xn[r];return"object"==typeof o&&(o=o[a]),o?{literal:!1,val:o}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}(e,t)})))}(Ne.parseFormat(n),e),i=r.map((function(t){return n=t,i=mn(r=e),a=mn(r,"{2}"),o=mn(r,"{3}"),s=mn(r,"{4}"),l=mn(r,"{6}"),u=mn(r,"{1,2}"),c=mn(r,"{1,3}"),f=mn(r,"{1,6}"),d=mn(r,"{1,9}"),p=mn(r,"{2,4}"),h=mn(r,"{4,6}"),m=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},g=function(e){if(n.literal)return m(e);switch(e.val){case"G":return kn(r.eras("short",!1),0);case"GG":return kn(r.eras("long",!1),0);case"y":return gn(f);case"yy":case"kk":return gn(p,le);case"yyyy":case"kkkk":return gn(s);case"yyyyy":return gn(h);case"yyyyyy":return gn(l);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return gn(u);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return gn(a);case"MMM":return kn(r.months("short",!0,!1),1);case"MMMM":return kn(r.months("long",!0,!1),1);case"LLL":return kn(r.months("short",!1,!1),1);case"LLLL":return kn(r.months("long",!1,!1),1);case"o":case"S":return gn(c);case"ooo":case"SSS":return gn(o);case"u":return En(d);case"a":return kn(r.meridiems(),0);case"E":case"c":return gn(i);case"EEE":return kn(r.weekdays("short",!1,!1),1);case"EEEE":return kn(r.weekdays("long",!1,!1),1);case"ccc":return kn(r.weekdays("short",!0,!1),1);case"cccc":return kn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return _n(new RegExp("([+-]"+u.source+")(?::("+a.source+"))?"),2);case"ZZZ":return _n(new RegExp("([+-]"+u.source+")("+a.source+")?"),2);case"z":return En(/[a-z_+-/]{1,256}?/i);default:return m(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},g.token=n,g;var n,r,i,a,o,s,l,u,c,f,d,p,h,m,g})),a=i.find((function(e){return e.invalidReason}));if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};var o=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),s=o[0],l=o[1],u=RegExp(s,"i"),c=function(e,t,n){var r=e.match(t);if(r){var i={},a=1;for(var o in n)if(Y(n,o)){var s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}return[r,{}]}(t,u,l),f=c[0],d=c[1],p=d?function(e){var t;return t=W(e.Z)?W(e.z)?null:qe.create(e.z):new ze(e.Z),W(e.q)||(e.M=3*(e.q-1)+1),W(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),W(e.u)||(e.S=te(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(d):[null,null],h=p[0],m=p[1];if(Y(d,"a")&&Y(d,"H"))throw new v("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:u,rawMatches:f,matches:d,result:h,zone:m}}var Cn=[0,31,59,90,120,151,181,212,243,273,304,334],On=[0,31,60,91,121,152,182,213,244,274,305,335];function An(e,t){return new Pe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function In(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Nn(e,t,n){return n+(re(e)?On:Cn)[t-1]}function Pn(e,t){var n=re(e)?On:Cn,r=n.findIndex((function(e){return ese(n)?(t=n+1,l=1):t=n,i({weekYear:t,weekNumber:l,weekday:s},he(e))}function Ln(e){var t,n=e.weekYear,r=e.weekNumber,a=e.weekday,o=In(n,1,4),s=ie(n),l=7*r+a-o-3;l<1?l+=ie(t=n-1):l>s?(t=n+1,l-=ie(n)):t=n;var u=Pn(t,l);return i({year:t,month:u.month,day:u.day},he(e))}function Mn(e){var t=e.year;return i({year:t,ordinal:Nn(t,e.month,e.day)},he(e))}function Dn(e){var t=e.year,n=Pn(t,e.ordinal);return i({year:t,month:n.month,day:n.day},he(e))}function Fn(e){var t=Z(e.year),n=J(e.month,1,12),r=J(e.day,1,ae(e.year,e.month));return t?n?!r&&An("day",e.day):An("month",e.month):An("year",e.year)}function jn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,a=J(t,0,23)||24===t&&0===n&&0===r&&0===i,o=J(n,0,59),s=J(r,0,59),l=J(i,0,999);return a?o?s?!l&&An("millisecond",i):An("second",r):An("minute",n):An("hour",t)}var Bn="Invalid DateTime",qn=864e13;function Hn(e){return new Pe("unsupported zone",'the zone "'+e.name+'" is not supported')}function zn(e){return null===e.weekData&&(e.weekData=Rn(e.c)),e.weekData}function Un(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new sr(i({},n,t,{old:n}))}function Vn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var a=n.offset(r);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function $n(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Wn(e,t,n){return Vn(oe(e),t,n)}function Gn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),a=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=i({},e.c,{year:r,month:a,day:Math.min(e.c.day,ae(r,a))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=an.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=Vn(oe(o),n,e.zone),u=l[0],c=l[1];return 0!==s&&(u+=s,c=e.zone.offset(u)),{ts:u,o:c}}function Zn(e,t,n,r,a){var o=n.setZone,s=n.zone;if(e&&0!==Object.keys(e).length){var l=t||s,u=sr.fromObject(e,i({},n,{zone:l}));return o?u:u.setZone(s)}return sr.invalid(new Pe("unparsable",'the input "'+a+"\" can't be parsed as "+r))}function Kn(e,t,n){return void 0===n&&(n=!0),e.isValid?Ne.create(lt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,a=void 0!==i&&i,o=t.includeOffset,s=t.includePrefix,l=void 0!==s&&s,u=t.includeZone,c=void 0!==u&&u,f=t.spaceZone,d=void 0!==f&&f,p=t.format,h=void 0===p?"extended":p,m="basic"===h?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(m+="basic"===h?"ss":":ss",a&&0===e.millisecond||(m+=".SSS")),(c||o)&&d&&(m+=" "),c?m+="z":o&&(m+="basic"===h?"ZZZ":"ZZ");var g=Kn(e,m);return l&&(g="T"+g),g}var Yn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Jn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},er=["year","month","day","hour","minute","second","millisecond"],tr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nr=["year","ordinal","hour","minute","second","millisecond"];function rr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new y(e);return t}function ir(e,t){var n,r,i=Ve(t.zone,Ye.defaultZone),a=lt.fromObject(t),o=Ye.now();if(W(e.year))n=o;else{for(var s,l=d(er);!(s=l()).done;){var u=s.value;W(e[u])&&(e[u]=Yn[u])}var c=Fn(e)||jn(e);if(c)return sr.invalid(c);var f=Wn(e,i.offset(o),i);n=f[0],r=f[1]}return new sr({ts:n,zone:i,loc:a,o:r})}function ar(e,t,n){var r=!!W(n.round)||n.round,i=function(e,i){return e=ne(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},a=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(a(n.unit),n.unit);for(var o,s=d(n.units);!(o=s()).done;){var l=o.value,u=a(l);if(Math.abs(u)>=1)return i(u,l)}return i(e>t?-0:0,n.units[n.units.length-1])}function or(e){var t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}var sr=function(){function e(e){var t=e.zone||Ye.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Pe("invalid input"):null)||(t.isValid?null:Hn(t));this.ts=W(e.ts)?Ye.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var a=[e.old.c,e.old.o];r=a[0],i=a[1]}else{var o=t.offset(this.ts);r=$n(this.ts,o),r=(n=Number.isNaN(r.year)?new Pe("invalid input"):null)?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||lt.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(){var e=or(arguments),t=e[0],n=e[1],r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6];return ir({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)},e.utc=function(){var e=or(arguments),t=e[0],n=e[1],r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],u=n[6];return t.zone=ze.utcInstance,ir({year:r,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var a=Ve(n.zone,Ye.defaultZone);return a.isValid?new e({ts:i,zone:a,loc:lt.fromObject(n)}):e.invalid(Hn(a))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),G(t))return t<-qn||t>qn?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ve(n.zone,Ye.defaultZone),loc:lt.fromObject(n)});throw new b("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),G(t))return new e({ts:1e3*t,zone:Ve(n.zone,Ye.defaultZone),loc:lt.fromObject(n)});throw new b("fromSeconds requires a numerical input")},e.fromObject=function(t,n){void 0===n&&(n={}),t=t||{};var r=Ve(n.zone,Ye.defaultZone);if(!r.isValid)return e.invalid(Hn(r));var i=Ye.now(),a=r.offset(i),o=de(t,rr),s=!W(o.ordinal),l=!W(o.year),u=!W(o.month)||!W(o.day),c=l||u,f=o.weekYear||o.weekNumber,p=lt.fromObject(n);if((c||s)&&f)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new v("Can't mix ordinal dates with month/day");var h,m,g=f||o.weekday&&!c,y=$n(i,a);g?(h=tr,m=Jn,y=Rn(y)):s?(h=nr,m=Xn,y=Mn(y)):(h=er,m=Yn);for(var b,w=!1,k=d(h);!(b=k()).done;){var _=b.value;W(o[_])?o[_]=w?m[_]:y[_]:w=!0}var E=g?function(e){var t=Z(e.weekYear),n=J(e.weekNumber,1,se(e.weekYear)),r=J(e.weekday,1,7);return t?n?!r&&An("weekday",e.weekday):An("week",e.week):An("weekYear",e.weekYear)}(o):s?function(e){var t=Z(e.year),n=J(e.ordinal,1,ie(e.year));return t?!n&&An("ordinal",e.ordinal):An("year",e.year)}(o):Fn(o),x=E||jn(o);if(x)return e.invalid(x);var T=Wn(g?Ln(o):s?Dn(o):o,a,r),S=new e({ts:T[0],zone:r,o:T[1],loc:p});return o.weekday&&c&&t.weekday!==S.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+S.toISO()):S},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return ft(e,[jt,zt],[Bt,Ut],[qt,Vt],[Ht,$t])}(e);return Zn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return ft(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Nt,Pt])}(e);return Zn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return ft(e,[Rt,Dt],[Lt,Dt],[Mt,Ft])}(e);return Zn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),W(t)||W(n))throw new b("fromFormat requires an input string and a format");var i=r,a=i.locale,o=void 0===a?null:a,s=i.numberingSystem,l=void 0===s?null:s,u=function(e,t,n){var r=Sn(e,t,n);return[r.result,r.zone,r.invalidReason]}(lt.fromOpts({locale:o,numberingSystem:l,defaultToEN:!0}),t,n),c=u[0],f=u[1],d=u[2];return d?e.invalid(d):Zn(c,f,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return ft(e,[Gt,Kt],[Zt,Qt])}(e);return Zn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new b("need to specify a reason the DateTime is invalid");var r=t instanceof Pe?t:new Pe(t,n);if(Ye.throwOnInvalid)throw new h(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=Ne.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(ze.instance(e),t)},t.toLocal=function(){return this.setZone(Ye.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,a=void 0!==i&&i,o=r.keepCalendarTime,s=void 0!==o&&o;if((t=Ve(t,Ye.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(a||s){var u=t.offset(this.ts);l=Wn(this.toObject(),u,t)[0]}return Un(this,{ts:l,zone:t})}return e.invalid(Hn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Un(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=de(e,rr),r=!W(n.weekYear)||!W(n.weekNumber)||!W(n.weekday),a=!W(n.ordinal),o=!W(n.year),s=!W(n.month)||!W(n.day),l=o||s,u=n.weekYear||n.weekNumber;if((l||a)&&u)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new v("Can't mix ordinal dates with month/day");r?t=Ln(i({},Rn(this.c),n)):W(n.ordinal)?(t=i({},this.toObject(),n),W(n.day)&&(t.day=Math.min(ae(t.year,t.month),t.day))):t=Dn(i({},Mn(this.c),n));var c=Wn(t,this.o,this.zone);return Un(this,{ts:c[0],o:c[1]})},t.plus=function(e){return this.isValid?Un(this,Gn(this,on(e))):this},t.minus=function(e){return this.isValid?Un(this,Gn(this,on(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=an.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ne.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Bn},t.toLocaleString=function(e,t){return void 0===e&&(e=x),void 0===t&&(t={}),this.isValid?Ne.create(this.loc.clone(t),e).formatDateTime(this):Bn},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ne.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),Kn(this,n)},t.toISOWeekDate=function(){return Kn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,a=void 0!==i&&i,o=t.includeOffset,s=void 0===o||o,l=t.includePrefix,u=void 0!==l&&l,c=t.format;return Qn(this,{suppressSeconds:a,suppressMilliseconds:r,includeOffset:s,includePrefix:u,format:void 0===c?"extended":c})},t.toRFC2822=function(){return Kn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Kn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Kn(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return Qn(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Bn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=i({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return an.invalid("created by diffing an invalid DateTime");var r,a=i({locale:this.locale,numberingSystem:this.numberingSystem},n),o=(r=t,Array.isArray(r)?r:[r]).map(an.normalizeUnit),s=e.valueOf()>this.valueOf(),l=function(e,t,n,r){var i,a=function(e,t,n){for(var r,i,a={},o=0,s=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=fn(e,t);return(n-n%7)/7}],["days",fn]];o=0){var f;r=u;var d,p=c(e,t);(i=e.plus(((f={})[u]=p,f)))>t?(e=e.plus(((d={})[u]=p-1,d)),p-=1):e=i,a[u]=p}}return[e,a,i,r]}(e,t,n),o=a[0],s=a[1],l=a[2],u=a[3],c=t-o,f=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===f.length&&(l0?(d=an.fromMillis(c,r)).shiftTo.apply(d,f).plus(p):p}(s?this:e,s?e:this,o,a);return s?l.negate():l},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?un.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({},{zone:this.zone}),r=t.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return re(this.year)}},{key:"daysInMonth",get:function(){return ae(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ie(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?se(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return x}},{key:"DATE_MED",get:function(){return T}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return C}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return A}},{key:"TIME_WITH_SECONDS",get:function(){return I}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return N}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return R}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return D}},{key:"DATETIME_SHORT",get:function(){return F}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED",get:function(){return B}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return H}},{key:"DATETIME_FULL",get:function(){return z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_HUGE",get:function(){return V}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return $}}]),e}();function lr(e){if(sr.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return sr.fromJSDate(e);if(e&&"object"==typeof e)return sr.fromObject(e);throw new b("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=sr,t.nL=an},23080:function(e){"use strict";var t={};function n(e,r,i){var a,o,s,l,u,c="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n},10001:function(e,t,n){var r=n(76451),i=/\s+/g,a=/%[\dA-F]{2}/g,o=/"/g;function s(e){switch(e){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return e.toLowerCase()}}function l(e){if("string"!=typeof e)throw new TypeError("Expected a string, but received "+typeof e);var t,n;return 65279===e.charCodeAt(0)&&(e=e.slice(1)),"data:image/svg+xml,"+function(e){return encodeURIComponent(e).replace(a,s)}((n=e,t=n.trim().replace(i," "),Object.keys(r).forEach((function(e){r[e].test(t)&&(t=t.replace(r[e],e))})),t).replace(o,"'"))}l.toSrcset=function(e){return l(e).replace(/ /g,"%20")},e.exports=l},76451:function(e){e.exports={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi}},4861:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n="boolean"==typeof(new RegExp).sticky;function r(e){return e&&"[object RegExp]"===t.call(e)}function i(e){return e&&"object"==typeof e&&!r(e)&&!Array.isArray(e)}function a(e){return"("+e+")"}function o(e){return e.length?"(?:"+e.map((function(e){return"(?:"+e+")"})).join("|")+")":"(?!)"}function s(e){if("string"==typeof e)return"(?:"+(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(r(e)){if(e.ignoreCase)throw new Error("RegExp /i flag not allowed");if(e.global)throw new Error("RegExp /g flag is implied");if(e.sticky)throw new Error("RegExp /y flag is implied");if(e.multiline)throw new Error("RegExp /m flag is implied");return e.source}throw new Error("Not a pattern: "+e)}function l(t,n){if(i(n)||(n={match:n}),n.include)throw new Error("Matching rules cannot also include states");var a={defaultType:t,lineBreaks:!!n.error||!!n.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var o in n)e.call(n,o)&&(a[o]=n[o]);if("string"==typeof a.type&&t!==a.type)throw new Error("Type transform cannot be a string (type '"+a.type+"' for token '"+t+"')");var s=a.match;return a.match=Array.isArray(s)?s:s?[s]:[],a.match.sort((function(e,t){return r(e)&&r(t)?0:r(t)?-1:r(e)?1:t.length-e.length})),a}function u(e){return Array.isArray(e)?function(e){for(var t=[],n=0;n0)throw new Error("RegExp has capture groups: "+w+"\nUse (?: … ) instead");if(!m.lineBreaks&&w.test("\n"))throw new Error("Rule should declare lineBreaks: "+w);p.push(a(b))}}var k=i&&i.fallback,_=n&&!k?"ym":"gm",E=n||k?"":"|";return!0===f&&(_+="u"),{regexp:new RegExp(o(p)+E,_),groups:d,fast:l,error:i||c}}function d(e,t,n){var r=e&&(e.push||e.next);if(r&&!n[r])throw new Error("Missing state '"+r+"' (in token '"+e.defaultType+"' of state '"+t+"')");if(e&&e.pop&&1!=+e.pop)throw new Error("pop must be 1 (in token '"+e.defaultType+"' of state '"+t+"')")}var p=function(e,t){this.startState=t,this.states=e,this.buffer="",this.stack=[],this.reset()};p.prototype.reset=function(e,t){return this.buffer=e||"",this.index=0,this.line=t?t.line:1,this.col=t?t.col:1,this.queuedToken=t?t.queuedToken:null,this.queuedThrow=t?t.queuedThrow:null,this.setState(t?t.state:this.startState),this.stack=t&&t.stack?t.stack.slice():[],this},p.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},p.prototype.setState=function(e){if(e&&this.state!==e){this.state=e;var t=this.states[e];this.groups=t.groups,this.error=t.error,this.re=t.regexp,this.fast=t.fast}},p.prototype.popState=function(){this.setState(this.stack.pop())},p.prototype.pushState=function(e){this.stack.push(this.state),this.setState(e)};var h=n?function(e,t){return e.exec(t)}:function(e,t){var n=e.exec(t);return 0===n[0].length?null:n};function m(){return this.value}if(p.prototype._getGroup=function(e){for(var t=this.groups.length,n=0;n";throw new Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=void 0===e?this.symbols.map(o).join(" "):this.symbols.slice(0,e).map(o).join(" ")+" ● "+this.symbols.slice(e).map(o).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do{e.push(t.right.data),t=t.left}while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,a.fail))},n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,i=0;i0&&t.push(" ^ "+r+" more lines identical to this"),r=0,t.push(" "+o)),n=o}},a.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw new Error("Unknown symbol type: "+e)}}(e)},a.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var n=e.wantedBy[0],r=[e].concat(t),i=this.buildFirstStateStack(n,r);return null===i?null:[e].concat(i)},a.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},a.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},a.prototype.rewind=function(e){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},a.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&0===n.reference&&n.data!==a.fail&&e.push(n)})),e.map((function(e){return e.data}))},{Parser:a,Grammar:r,Rule:e}},e.exports?e.exports=t():this.nearley=t()},76743:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(28040),i="html",a=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],o=a.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],l=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],u=l.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function c(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function f(e,t){for(let n=0;n-1)return r.QUIRKS;let e=null===t?o:a;if(f(n,e))return r.QUIRKS;if(e=null===t?l:u,f(n,e))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},t.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+c(t):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+c(n)),r}},97700:function(e){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},11093:function(e,t,n){"use strict";const r=n(1672),i=n(28040),a=i.TAG_NAMES,o=i.NAMESPACES,s=i.ATTRS,l={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},u={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:o.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:o.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:o.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:o.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:o.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:o.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:o.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:o.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:o.XML},"xml:space":{prefix:"xml",name:"space",namespace:o.XML},xmlns:{prefix:"",name:"xmlns",namespace:o.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:o.XMLNS}},c=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},f={[a.B]:!0,[a.BIG]:!0,[a.BLOCKQUOTE]:!0,[a.BODY]:!0,[a.BR]:!0,[a.CENTER]:!0,[a.CODE]:!0,[a.DD]:!0,[a.DIV]:!0,[a.DL]:!0,[a.DT]:!0,[a.EM]:!0,[a.EMBED]:!0,[a.H1]:!0,[a.H2]:!0,[a.H3]:!0,[a.H4]:!0,[a.H5]:!0,[a.H6]:!0,[a.HEAD]:!0,[a.HR]:!0,[a.I]:!0,[a.IMG]:!0,[a.LI]:!0,[a.LISTING]:!0,[a.MENU]:!0,[a.META]:!0,[a.NOBR]:!0,[a.OL]:!0,[a.P]:!0,[a.PRE]:!0,[a.RUBY]:!0,[a.S]:!0,[a.SMALL]:!0,[a.SPAN]:!0,[a.STRONG]:!0,[a.STRIKE]:!0,[a.SUB]:!0,[a.SUP]:!0,[a.TABLE]:!0,[a.TT]:!0,[a.U]:!0,[a.UL]:!0,[a.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!(t!==a.FONT||null===r.getTokenAttr(e,s.COLOR)&&null===r.getTokenAttr(e,s.SIZE)&&null===r.getTokenAttr(e,s.FACE))||f[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||n.indexOf(e)>-1}},71210:function(e,t,n){"use strict";const r=n(24592);e.exports=class extends r{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},62951:function(e,t,n){"use strict";const r=n(71210),i=n(65319),a=n(84447),o=n(24592);e.exports=class extends r{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),o.install(this.tokenizer,i,e.opts),o.install(this.tokenizer,a)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},49298:function(e,t,n){"use strict";const r=n(71210),i=n(4315),a=n(24592);e.exports=class extends r{constructor(e,t){super(e,t),this.posTracker=a.install(e,i),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},65319:function(e,t,n){"use strict";const r=n(71210),i=n(49298),a=n(24592);e.exports=class extends r{constructor(e,t){super(e,t);const n=a.install(e.preprocessor,i,t);this.posTracker=n.posTracker}}},69134:function(e,t,n){"use strict";const r=n(24592);e.exports=class extends r{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},66010:function(e,t,n){"use strict";const r=n(24592),i=n(1672),a=n(84447),o=n(69134),s=n(28040).TAG_NAMES;e.exports=class extends r{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a={};t.type===i.END_TAG_TOKEN&&r===t.tagName?(a.endTag=Object.assign({},n),a.endLine=n.endLine,a.endCol=n.endCol,a.endOffset=n.endOffset):(a.endLine=n.startLine,a.endCol=n.startCol,a.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}_getOverriddenMethods(e,t){return{_bootstrap(n,i){t._bootstrap.call(this,n,i),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=r.install(this.tokenizer,a);e.posTracker=s.posTracker,r.install(this.openElements,o,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===i.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];if(this.treeAdapter.getTagName(r)===n.tagName){e._setEndLocation(r,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let t=0;t{const a=i.MODE[r];n[a]=function(n){e.ctLoc=e._getCurrentLocation(),t[a].call(this,n)}})),n}}},4315:function(e,t,n){"use strict";const r=n(24592);e.exports=class extends r{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}}},72485:function(e){"use strict";class t{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const n=[];if(this.length>=3){const r=this.treeAdapter.getAttrList(e).length,i=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const o=this.entries[e];if(o.type===t.MARKER_ENTRY)break;const s=o.element,l=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===i&&this.treeAdapter.getNamespaceURI(s)===a&&l.length===r&&n.push({idx:e,attrs:l})}}return n.length<3?[]:n}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const r=this.treeAdapter.getAttrList(e),i=r.length,a=Object.create(null);for(let e=0;e=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:t.MARKER_ENTRY}),this.length++}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.push({type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}insertElementAfterBookmark(e,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:t.ELEMENT_ENTRY,element:e,token:n}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===t.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===e)return r}return null}getElementEntry(e){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===t.ELEMENT_ENTRY&&r.element===e)return r}return null}}t.MARKER_ENTRY="MARKER_ENTRY",t.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=t},92860:function(e,t,n){"use strict";const r=n(1672),i=n(91619),a=n(72485),o=n(66010),s=n(62951),l=n(24592),u=n(17385),c=n(96308),f=n(76743),d=n(11093),p=n(97700),h=n(79740),m=n(28040),g=m.TAG_NAMES,v=m.NAMESPACES,y=m.ATTRS,b={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:u},w="hidden",k="INITIAL_MODE",_="BEFORE_HTML_MODE",E="BEFORE_HEAD_MODE",x="IN_HEAD_MODE",T="IN_HEAD_NO_SCRIPT_MODE",S="AFTER_HEAD_MODE",C="IN_BODY_MODE",O="TEXT_MODE",A="IN_TABLE_MODE",I="IN_TABLE_TEXT_MODE",N="IN_CAPTION_MODE",P="IN_COLUMN_GROUP_MODE",R="IN_TABLE_BODY_MODE",L="IN_ROW_MODE",M="IN_CELL_MODE",D="IN_SELECT_MODE",F="IN_SELECT_IN_TABLE_MODE",j="IN_TEMPLATE_MODE",B="AFTER_BODY_MODE",q="IN_FRAMESET_MODE",H="AFTER_FRAMESET_MODE",z="AFTER_AFTER_BODY_MODE",U="AFTER_AFTER_FRAMESET_MODE",V={[g.TR]:L,[g.TBODY]:R,[g.THEAD]:R,[g.TFOOT]:R,[g.CAPTION]:N,[g.COLGROUP]:P,[g.TABLE]:A,[g.BODY]:C,[g.FRAMESET]:q},$={[g.CAPTION]:A,[g.COLGROUP]:A,[g.TBODY]:A,[g.TFOOT]:A,[g.THEAD]:A,[g.COL]:P,[g.TR]:R,[g.TD]:L,[g.TH]:L},W={[k]:{[r.CHARACTER_TOKEN]:oe,[r.NULL_CHARACTER_TOKEN]:oe,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?m.DOCUMENT_MODE.QUIRKS:f.getDocumentMode(t);f.isConforming(t)||e._err(p.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=_},[r.START_TAG_TOKEN]:oe,[r.END_TAG_TOKEN]:oe,[r.EOF_TOKEN]:oe},[_]:{[r.CHARACTER_TOKEN]:se,[r.NULL_CHARACTER_TOKEN]:se,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?(e._insertElement(t,v.HTML),e.insertionMode=E):se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==g.HTML&&n!==g.HEAD&&n!==g.BODY&&n!==g.BR||se(e,t)},[r.EOF_TOKEN]:se},[E]:{[r.CHARACTER_TOKEN]:le,[r.NULL_CHARACTER_TOKEN]:le,[r.WHITESPACE_CHARACTER_TOKEN]:ee,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.HEAD?(e._insertElement(t,v.HTML),e.headElement=e.openElements.current,e.insertionMode=x):le(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HEAD||n===g.BODY||n===g.HTML||n===g.BR?le(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:le},[x]:{[r.CHARACTER_TOKEN]:fe,[r.NULL_CHARACTER_TOKEN]:fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:ue,[r.END_TAG_TOKEN]:ce,[r.EOF_TOKEN]:fe},[T]:{[r.CHARACTER_TOKEN]:de,[r.NULL_CHARACTER_TOKEN]:de,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?ue(e,t):n===g.NOSCRIPT?e._err(p.nestedNoscriptInHead):de(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=x):n===g.BR?de(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:de},[S]:{[r.CHARACTER_TOKEN]:pe,[r.NULL_CHARACTER_TOKEN]:pe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:te,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.BODY?(e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=C):n===g.FRAMESET?(e._insertElement(t,v.HTML),e.insertionMode=q):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),ue(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):pe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?pe(e,t):n===g.TEMPLATE?ce(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[r.EOF_TOKEN]:pe},[C]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Se,[r.END_TAG_TOKEN]:Ie,[r.EOF_TOKEN]:Ne},[O]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ie,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ee,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:ee,[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[r.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[A]:{[r.CHARACTER_TOKEN]:Pe,[r.NULL_CHARACTER_TOKEN]:Pe,[r.WHITESPACE_CHARACTER_TOKEN]:Pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:Re,[r.END_TAG_TOKEN]:Le,[r.EOF_TOKEN]:Ne},[I]:{[r.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[r.COMMENT_TOKEN]:De,[r.DOCTYPE_TOKEN]:De,[r.START_TAG_TOKEN]:De,[r.END_TAG_TOKEN]:De,[r.EOF_TOKEN]:De},[N]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A,e._processToken(t)):Se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE?e.openElements.hasInTableScope(g.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=A,n===g.TABLE&&e._processToken(t)):n!==g.BODY&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Ie(e,t)},[r.EOF_TOKEN]:Ne},[P]:{[r.CHARACTER_TOKEN]:Fe,[r.NULL_CHARACTER_TOKEN]:Fe,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.COL?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TEMPLATE?ue(e,t):Fe(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.COLGROUP?e.openElements.currentTagName===g.COLGROUP&&(e.openElements.pop(),e.insertionMode=A):n===g.TEMPLATE?ce(e,t):n!==g.COL&&Fe(e,t)},[r.EOF_TOKEN]:Ne},[R]:{[r.CHARACTER_TOKEN]:Pe,[r.NULL_CHARACTER_TOKEN]:Pe,[r.WHITESPACE_CHARACTER_TOKEN]:Pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,v.HTML),e.insertionMode=L):n===g.TH||n===g.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(g.TR),e.insertionMode=L,e._processToken(t)):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A,e._processToken(t)):Re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TBODY||n===g.TFOOT||n===g.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A):n===g.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=A,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH&&n!==g.TR)&&Le(e,t)},[r.EOF_TOKEN]:Ne},[L]:{[r.CHARACTER_TOKEN]:Pe,[r.NULL_CHARACTER_TOKEN]:Pe,[r.WHITESPACE_CHARACTER_TOKEN]:Pe,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TH||n===g.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,v.HTML),e.insertionMode=M,e.activeFormattingElements.insertMarker()):n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):Re(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TR?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R):n===g.TABLE?e.openElements.hasInTableScope(g.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):n===g.TBODY||n===g.TFOOT||n===g.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(g.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R,e._processToken(t)):(n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP||n!==g.HTML&&n!==g.TD&&n!==g.TH)&&Le(e,t)},[r.EOF_TOKEN]:Ne},[M]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.COL||n===g.COLGROUP||n===g.TBODY||n===g.TD||n===g.TFOOT||n===g.TH||n===g.THEAD||n===g.TR?(e.openElements.hasInTableScope(g.TD)||e.openElements.hasInTableScope(g.TH))&&(e._closeTableCell(),e._processToken(t)):Se(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=L):n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&Ie(e,t)},[r.EOF_TOKEN]:Ne},[D]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:je,[r.END_TAG_TOKEN]:Be,[r.EOF_TOKEN]:Ne},[F]:{[r.CHARACTER_TOKEN]:ie,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):je(e,t)},[r.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.CAPTION||n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR||n===g.TD||n===g.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(g.SELECT),e._resetInsertionMode(),e._processToken(t)):Be(e,t)},[r.EOF_TOKEN]:Ne},[j]:{[r.CHARACTER_TOKEN]:me,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE)ue(e,t);else{const r=$[n]||C;e._popTmplInsertionMode(),e._pushTmplInsertionMode(r),e.insertionMode=r,e._processToken(t)}},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.TEMPLATE&&ce(e,t)},[r.EOF_TOKEN]:qe},[B]:{[r.CHARACTER_TOKEN]:He,[r.NULL_CHARACTER_TOKEN]:He,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Se(e,t):He(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=z):He(e,t)},[r.EOF_TOKEN]:ae},[q]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.FRAMESET?e._insertElement(t,v.HTML):n===g.FRAME?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName!==g.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===g.FRAMESET||(e.insertionMode=H))},[r.EOF_TOKEN]:ae},[H]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:ie,[r.COMMENT_TOKEN]:ne,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:function(e,t){t.tagName===g.HTML&&(e.insertionMode=U)},[r.EOF_TOKEN]:ae},[z]:{[r.CHARACTER_TOKEN]:ze,[r.NULL_CHARACTER_TOKEN]:ze,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){t.tagName===g.HTML?Se(e,t):ze(e,t)},[r.END_TAG_TOKEN]:ze,[r.EOF_TOKEN]:ae},[U]:{[r.CHARACTER_TOKEN]:ee,[r.NULL_CHARACTER_TOKEN]:ee,[r.WHITESPACE_CHARACTER_TOKEN]:he,[r.COMMENT_TOKEN]:re,[r.DOCTYPE_TOKEN]:ee,[r.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.NOFRAMES&&ue(e,t)},[r.END_TAG_TOKEN]:ee,[r.EOF_TOKEN]:ae}};function G(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Ae(e,t),n}function Z(e,t){let n=null;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i)&&(n=i)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function K(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,o=i;o!==n;a++,o=i){i=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),s=n&&a>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Q(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Q(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Y(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===v.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function J(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a)}function X(e,t){let n;for(let r=0;r<8&&(n=G(e,t),n);r++){const t=Z(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const r=K(e,t,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),Y(e,i,r),J(e,t,n)}}function ee(){}function te(e){e._err(p.misplacedDoctype)}function ne(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function re(e,t){e._appendCommentNode(t,e.document)}function ie(e,t){e._insertCharacters(t)}function ae(e){e.stopped=!0}function oe(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,m.DOCUMENT_MODE.QUIRKS),e.insertionMode=_,e._processToken(t)}function se(e,t){e._insertFakeRootElement(),e.insertionMode=E,e._processToken(t)}function le(e,t){e._insertFakeElement(g.HEAD),e.headElement=e.openElements.current,e.insertionMode=x,e._processToken(t)}function ue(e,t){const n=t.tagName;n===g.HTML?Se(e,t):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META?(e._appendElement(t,v.HTML),t.ackSelfClosing=!0):n===g.TITLE?e._switchToTextParsing(t,r.MODE.RCDATA):n===g.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,r.MODE.RAWTEXT):(e._insertElement(t,v.HTML),e.insertionMode=T):n===g.NOFRAMES||n===g.STYLE?e._switchToTextParsing(t,r.MODE.RAWTEXT):n===g.SCRIPT?e._switchToTextParsing(t,r.MODE.SCRIPT_DATA):n===g.TEMPLATE?(e._insertTemplate(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=j,e._pushTmplInsertionMode(j)):n===g.HEAD?e._err(p.misplacedStartTagForHeadElement):fe(e,t)}function ce(e,t){const n=t.tagName;n===g.HEAD?(e.openElements.pop(),e.insertionMode=S):n===g.BODY||n===g.BR||n===g.HTML?fe(e,t):n===g.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function fe(e,t){e.openElements.pop(),e.insertionMode=S,e._processToken(t)}function de(e,t){const n=t.type===r.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=x,e._processToken(t)}function pe(e,t){e._insertFakeElement(g.BODY),e.insertionMode=C,e._processToken(t)}function he(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function me(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ge(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}function ve(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ye(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function be(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function we(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ke(e,t){e._appendElement(t,v.HTML),t.ackSelfClosing=!0}function _e(e,t){e._switchToTextParsing(t,r.MODE.RAWTEXT)}function Ee(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function xe(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,v.HTML)}function Te(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML)}function Se(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?ye(e,t):n===g.P?ge(e,t):n===g.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(X(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):Te(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ge(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==g.H1&&n!==g.H2&&n!==g.H3&&n!==g.H4&&n!==g.H5&&n!==g.H6||e.openElements.pop(),e._insertElement(t,v.HTML)}(e,t):n===g.LI||n===g.DD||n===g.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.items[t],i=e.treeAdapter.getTagName(r);let a=null;if(n===g.LI&&i===g.LI?a=g.LI:n!==g.DD&&n!==g.DT||i!==g.DD&&i!==g.DT||(a=i),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(i!==g.ADDRESS&&i!==g.DIV&&i!==g.P&&e._isSpecialElement(r))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n===g.EM||n===g.TT?ye(e,t):n===g.BR?we(e,t):n===g.HR?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,v.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===g.RB?xe(e,t):n===g.RT||n===g.RP?function(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,v.HTML)}(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&Te(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ge(e,t):n===g.PRE?ve(e,t):n===g.BIG?ye(e,t):n===g.IMG||n===g.WBR?we(e,t):n===g.XMP?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SVG?function(e,t){e._reconstructActiveFormattingElements(),d.adjustTokenSVGAttrs(t),d.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.SVG):e._insertElement(t,v.SVG),t.ackSelfClosing=!0}(e,t):n===g.RTC?xe(e,t):n!==g.COL&&Te(e,t);break;case 4:n===g.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===g.BASE||n===g.LINK||n===g.META?ue(e,t):n===g.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===g.MAIN||n===g.MENU?ge(e,t):n===g.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===g.CODE||n===g.FONT?ye(e,t):n===g.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(X(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,v.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===g.AREA?we(e,t):n===g.MATH?function(e,t){e._reconstructActiveFormattingElements(),d.adjustTokenMathMLAttrs(t),d.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,v.MATHML):e._insertElement(t,v.MATHML),t.ackSelfClosing=!0}(e,t):n===g.MENU?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML)}(e,t):n!==g.HEAD&&Te(e,t);break;case 5:n===g.STYLE||n===g.TITLE?ue(e,t):n===g.ASIDE?ge(e,t):n===g.SMALL?ye(e,t):n===g.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==m.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode=A}(e,t):n===g.EMBED?we(e,t):n===g.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,v.HTML);const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===w||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===g.PARAM||n===g.TRACK?ke(e,t):n===g.IMAGE?function(e,t){t.tagName=g.IMG,we(e,t)}(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&Te(e,t);break;case 6:n===g.SCRIPT?ue(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ge(e,t):n===g.BUTTON?function(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1}(e,t):n===g.STRIKE||n===g.STRONG?ye(e,t):n===g.APPLET||n===g.OBJECT?be(e,t):n===g.KEYGEN?we(e,t):n===g.SOURCE?ke(e,t):n===g.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,r.MODE.RAWTEXT)}(e,t):n===g.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,v.HTML),e.framesetOk=!1,e.insertionMode===A||e.insertionMode===N||e.insertionMode===R||e.insertionMode===L||e.insertionMode===M?e.insertionMode=F:e.insertionMode=D}(e,t):n===g.OPTION?Ee(e,t):Te(e,t);break;case 7:n===g.BGSOUND?ue(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ge(e,t):n===g.LISTING?ve(e,t):n===g.MARQUEE?be(e,t):n===g.NOEMBED?_e(e,t):n!==g.CAPTION&&Te(e,t);break;case 8:n===g.BASEFONT?ue(e,t):n===g.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,v.HTML),e.insertionMode=q)}(e,t):n===g.FIELDSET?ge(e,t):n===g.TEXTAREA?function(e,t){e._insertElement(t,v.HTML),e.skipNextNewLine=!0,e.tokenizer.state=r.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=O}(e,t):n===g.TEMPLATE?ue(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?_e(e,t):Te(e,t):n===g.OPTGROUP?Ee(e,t):n!==g.COLGROUP&&Te(e,t);break;case 9:n===g.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,v.HTML),e.tokenizer.state=r.MODE.PLAINTEXT}(e,t):Te(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ge(e,t):Te(e,t);break;default:Te(e,t)}}function Ce(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Oe(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function Ae(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t];if(e.treeAdapter.getTagName(r)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(r);break}if(e._isSpecialElement(r))break}}function Ie(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?X(e,t):n===g.P?function(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}(e):Ae(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Ce(e,t):n===g.LI?function(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}(e):n===g.DD||n===g.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===g.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===g.EM||n===g.TT?X(e,t):Ae(e,t);break;case 3:n===g.BIG?X(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Ce(e,t):Ae(e,t);break;case 4:n===g.BODY?function(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=B)}(e):n===g.HTML?function(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=B,e._processToken(t))}(e,t):n===g.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}(e):n===g.CODE||n===g.FONT||n===g.NOBR?X(e,t):n===g.MAIN||n===g.MENU?Ce(e,t):Ae(e,t);break;case 5:n===g.ASIDE?Ce(e,t):n===g.SMALL?X(e,t):Ae(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ce(e,t):n===g.APPLET||n===g.OBJECT?Oe(e,t):n===g.STRIKE||n===g.STRONG?X(e,t):Ae(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Ce(e,t):n===g.MARQUEE?Oe(e,t):Ae(e,t);break;case 8:n===g.FIELDSET?Ce(e,t):n===g.TEMPLATE?ce(e,t):Ae(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ce(e,t):Ae(e,t);break;default:Ae(e,t)}}function Ne(e,t){e.tmplInsertionModeStackTop>-1?qe(e,t):e.stopped=!0}function Pe(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=I,e._processToken(t)):Me(e,t)}function Re(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=R,e._processToken(t)}(e,t):Me(e,t);break;case 3:n===g.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=P,e._processToken(t)}(e,t):Me(e,t);break;case 4:n===g.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,v.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):Me(e,t);break;case 5:n===g.TABLE?function(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===g.STYLE?ue(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=R}(e,t):n===g.INPUT?function(e,t){const n=r.getTokenAttr(t,y.TYPE);n&&n.toLowerCase()===w?e._appendElement(t,v.HTML):Me(e,t),t.ackSelfClosing=!0}(e,t):Me(e,t);break;case 6:n===g.SCRIPT?ue(e,t):Me(e,t);break;case 7:n===g.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,v.HTML),e.insertionMode=N}(e,t):Me(e,t);break;case 8:n===g.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,v.HTML),e.insertionMode=P}(e,t):n===g.TEMPLATE?ue(e,t):Me(e,t);break;default:Me(e,t)}}function Le(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?ce(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Me(e,t)}function Me(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function De(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function He(e,t){e.insertionMode=C,e._processToken(t)}function ze(e,t){e.insertionMode=C,e._processToken(t)}e.exports=class{constructor(e){this.options=c(b,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&l.install(this,o),this.options.onParseError&&l.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(g.TEMPLATE,v.HTML,[]));const n=this.treeAdapter.createElement("documentmock",v.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===g.TEMPLATE&&this._pushTmplInsertionMode(j),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(e,t){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode=k,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new a(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==v.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,v.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=O}switchToPlaintextParsing(){this.insertionMode=O,this.originalInsertionMode=C,this.tokenizer.state=r.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===g.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===v.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===g.TITLE||e===g.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:e===g.STYLE||e===g.XMP||e===g.IFRAME||e===g.NOEMBED||e===g.NOFRAMES||e===g.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:e===g.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:e===g.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,v.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,v.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(g.HTML,v.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===v.HTML)return!1;if(this.treeAdapter.getTagName(t)===g.ANNOTATION_XML&&n===v.MATHML&&e.type===r.START_TAG_TOKEN&&e.tagName===g.SVG)return!1;const i=e.type===r.CHARACTER_TOKEN||e.type===r.NULL_CHARACTER_TOKEN||e.type===r.WHITESPACE_CHARACTER_TOKEN;return!((e.type===r.START_TAG_TOKEN&&e.tagName!==g.MGLYPH&&e.tagName!==g.MALIGNMARK||i)&&this._isIntegrationPoint(t,v.MATHML)||(e.type===r.START_TAG_TOKEN||i)&&this._isIntegrationPoint(t,v.HTML)||e.type===r.EOF_TOKEN)}_processToken(e){W[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){W.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===r.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===r.NULL_CHARACTER_TOKEN?function(e,t){t.chars=h.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===r.WHITESPACE_CHARACTER_TOKEN?ie(this,e):e.type===r.COMMENT_TOKEN?ne(this,e):e.type===r.START_TAG_TOKEN?function(e,t){if(d.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==v.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===v.MATHML?d.adjustTokenMathMLAttrs(t):r===v.SVG&&(d.adjustTokenSVGTagName(t),d.adjustTokenSVGAttrs(t)),d.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):e.type===r.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===v.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===r.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),i=this.treeAdapter.getAttrList(e);return d.isIntegrationPoint(n,r,i,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===a.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let r=t;r=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=V[r];if(i){this.insertionMode=i;break}if(!(t||r!==g.TD&&r!==g.TH)){this.insertionMode=M;break}if(!t&&r===g.HEAD){this.insertionMode=x;break}if(r===g.SELECT){this._resetInsertionModeForSelect(e);break}if(r===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===g.HTML){this.insertionMode=this.headElement?S:E;break}if(t){this.insertionMode=C;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===g.TEMPLATE)break;if(n===g.TABLE)return void(this.insertionMode=F)}this.insertionMode=D}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===g.TABLE||t===g.TBODY||t===g.TFOOT||t===g.THEAD||t===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===g.TEMPLATE&&i===v.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(r===g.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return m.SPECIAL_ELEMENTS[n][t]}}},91619:function(e,t,n){"use strict";const r=n(28040),i=r.TAG_NAMES,a=r.NAMESPACES;function o(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI;case 3:return e===i.RTC;case 6:return e===i.OPTION;case 8:return e===i.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===i.P;case 2:return e===i.RB||e===i.RP||e===i.RT||e===i.DD||e===i.DT||e===i.LI||e===i.TD||e===i.TH||e===i.TR;case 3:return e===i.RTC;case 5:return e===i.TBODY||e===i.TFOOT||e===i.THEAD;case 6:return e===i.OPTION;case 7:return e===i.CAPTION;case 8:return e===i.OPTGROUP||e===i.COLGROUP}return!1}function l(e,t){switch(e.length){case 2:if(e===i.TD||e===i.TH)return t===a.HTML;if(e===i.MI||e===i.MO||e===i.MN||e===i.MS)return t===a.MATHML;break;case 4:if(e===i.HTML)return t===a.HTML;if(e===i.DESC)return t===a.SVG;break;case 5:if(e===i.TABLE)return t===a.HTML;if(e===i.MTEXT)return t===a.MATHML;if(e===i.TITLE)return t===a.SVG;break;case 6:return(e===i.APPLET||e===i.OBJECT)&&t===a.HTML;case 7:return(e===i.CAPTION||e===i.MARQUEE)&&t===a.HTML;case 8:return e===i.TEMPLATE&&t===a.HTML;case 13:return e===i.FOREIGN_OBJECT&&t===a.SVG;case 14:return e===i.ANNOTATION_XML&&t===a.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===a.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===a.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6&&t===a.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===i.TD||e===i.TH&&t===a.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==a.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===i.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===i.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)return!0;if(l(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6)&&n===a.HTML)return!0;if(l(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)return!0;if((n===i.UL||n===i.OL)&&r===a.HTML||l(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===a.HTML)return!0;if(n===i.BUTTON&&r===a.HTML||l(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===a.HTML){if(n===e)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===a.HTML){if(t===i.TBODY||t===i.THEAD||t===i.TFOOT)return!0;if(t===i.TABLE||t===i.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===a.HTML){if(n===e)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;o(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;o(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},1672:function(e,t,n){"use strict";const r=n(47757),i=n(79740),a=n(30959),o=n(97700),s=i.CODE_POINTS,l=i.CODE_POINT_SEQUENCES,u={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},c="DATA_STATE",f="RCDATA_STATE",d="RAWTEXT_STATE",p="SCRIPT_DATA_STATE",h="PLAINTEXT_STATE",m="TAG_OPEN_STATE",g="END_TAG_OPEN_STATE",v="TAG_NAME_STATE",y="RCDATA_LESS_THAN_SIGN_STATE",b="RCDATA_END_TAG_OPEN_STATE",w="RCDATA_END_TAG_NAME_STATE",k="RAWTEXT_LESS_THAN_SIGN_STATE",_="RAWTEXT_END_TAG_OPEN_STATE",E="RAWTEXT_END_TAG_NAME_STATE",x="SCRIPT_DATA_LESS_THAN_SIGN_STATE",T="SCRIPT_DATA_END_TAG_OPEN_STATE",S="SCRIPT_DATA_END_TAG_NAME_STATE",C="SCRIPT_DATA_ESCAPE_START_STATE",O="SCRIPT_DATA_ESCAPE_START_DASH_STATE",A="SCRIPT_DATA_ESCAPED_STATE",I="SCRIPT_DATA_ESCAPED_DASH_STATE",N="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",P="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",R="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",L="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",M="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",D="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",F="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",j="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",B="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",q="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",H="BEFORE_ATTRIBUTE_NAME_STATE",z="ATTRIBUTE_NAME_STATE",U="AFTER_ATTRIBUTE_NAME_STATE",V="BEFORE_ATTRIBUTE_VALUE_STATE",$="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",W="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",G="ATTRIBUTE_VALUE_UNQUOTED_STATE",Z="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",K="SELF_CLOSING_START_TAG_STATE",Q="BOGUS_COMMENT_STATE",Y="MARKUP_DECLARATION_OPEN_STATE",J="COMMENT_START_STATE",X="COMMENT_START_DASH_STATE",ee="COMMENT_STATE",te="COMMENT_LESS_THAN_SIGN_STATE",ne="COMMENT_LESS_THAN_SIGN_BANG_STATE",re="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",ie="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",ae="COMMENT_END_DASH_STATE",oe="COMMENT_END_STATE",se="COMMENT_END_BANG_STATE",le="DOCTYPE_STATE",ue="BEFORE_DOCTYPE_NAME_STATE",ce="DOCTYPE_NAME_STATE",fe="AFTER_DOCTYPE_NAME_STATE",de="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",pe="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",he="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",me="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",ge="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",ve="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",ye="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",be="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",we="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",ke="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",_e="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ee="BOGUS_DOCTYPE_STATE",xe="CDATA_SECTION_STATE",Te="CDATA_SECTION_BRACKET_STATE",Se="CDATA_SECTION_END_STATE",Ce="CHARACTER_REFERENCE_STATE",Oe="NAMED_CHARACTER_REFERENCE_STATE",Ae="AMBIGUOS_AMPERSAND_STATE",Ie="NUMERIC_CHARACTER_REFERENCE_STATE",Ne="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",Pe="DECIMAL_CHARACTER_REFERENCE_START_STATE",Re="HEXADEMICAL_CHARACTER_REFERENCE_STATE",Le="DECIMAL_CHARACTER_REFERENCE_STATE",Me="NUMERIC_CHARACTER_REFERENCE_END_STATE";function De(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function Fe(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function je(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function Be(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function qe(e){return Be(e)||je(e)}function He(e){return qe(e)||Fe(e)}function ze(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function Ue(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function Ve(e){return e+32}function $e(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function We(e){return String.fromCharCode(Ve(e))}function Ge(e,t){const n=a[++e];let r=++e,i=r+n-1;for(;r<=i;){const e=r+i>>>1,o=a[e];if(ot))return a[e+n];i=e-1}}return-1}class Ze{constructor(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=c,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:Ze.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,i=!0;const a=e.length;let o,l=0,u=t;for(;l0&&(u=this._consume(),r++),u===s.EOF){i=!1;break}if(o=e[l],u!==o&&(n||u!==Ve(o))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==l.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(o.endTagWithAttributes),e.selfClosing&&this._err(o.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=Ze.CHARACTER_TOKEN;De(e)?t=Ze.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=Ze.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,$e(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){const e=a[r],i=e<7;i&&1&e&&(t=2&e?[a[++r],a[++r]]:[a[++r]],n=0);const o=this._consume();if(this.tempBuff.push(o),n++,o===s.EOF)break;r=i?4&e?Ge(r,o):-1:o===e?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return this.returnState===$||this.returnState===W||this.returnState===G}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||He(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=A,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=A,this._emitCodePoint(e))}[P](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=R):qe(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(M)):(this._emitChars("<"),this._reconsumeInState(A))}[R](e){qe(e)?(this._createEndTagToken(),this._reconsumeInState(L)):(this._emitChars("")):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.state=D,this._emitChars(i.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(o.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=D,this._emitCodePoint(e))}[B](e){e===s.SOLIDUS?(this.tempBuff=[],this.state=q,this._emitChars("/")):this._reconsumeInState(D)}[q](e){De(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?A:D,this._emitCodePoint(e)):je(e)?(this.tempBuff.push(Ve(e)),this._emitCodePoint(e)):Be(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(D)}[H](e){De(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState(U):e===s.EQUALS_SIGN?(this._err(o.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z):(this._createAttr(""),this._reconsumeInState(z)))}[z](e){De(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName(U),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName(V):je(e)?this.currentAttr.name+=We(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(o.unexpectedCharacterInAttributeName),this.currentAttr.name+=$e(e)):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.name+=i.REPLACEMENT_CHARACTER):this.currentAttr.name+=$e(e)}[U](e){De(e)||(e===s.SOLIDUS?this.state=K:e===s.EQUALS_SIGN?this.state=V:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(z)))}[V](e){De(e)||(e===s.QUOTATION_MARK?this.state=$:e===s.APOSTROPHE?this.state=W:e===s.GREATER_THAN_SIGN?(this._err(o.missingAttributeValue),this.state=c,this._emitCurrentToken()):this._reconsumeInState(G))}[$](e){e===s.QUOTATION_MARK?this.state=Z:e===s.AMPERSAND?(this.returnState=$,this.state=Ce):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=$e(e)}[W](e){e===s.APOSTROPHE?this.state=Z:e===s.AMPERSAND?(this.returnState=W,this.state=Ce):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=$e(e)}[G](e){De(e)?this._leaveAttrValue(H):e===s.AMPERSAND?(this.returnState=G,this.state=Ce):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentAttr.value+=i.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(o.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=$e(e)):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):this.currentAttr.value+=$e(e)}[Z](e){De(e)?this._leaveAttrValue(H):e===s.SOLIDUS?this._leaveAttrValue(K):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(c),this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.missingWhitespaceBetweenAttributes),this._reconsumeInState(H))}[K](e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInTag),this._emitEOFToken()):(this._err(o.unexpectedSolidusInTag),this._reconsumeInState(H))}[Q](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):this.currentToken.data+=$e(e)}[Y](e){this._consumeSequenceIfMatch(l.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=J):this._consumeSequenceIfMatch(l.DOCTYPE_STRING,e,!1)?this.state=le:this._consumeSequenceIfMatch(l.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=xe:(this._err(o.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Q):this._ensureHibernation()||(this._err(o.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Q))}[J](e){e===s.HYPHEN_MINUS?this.state=X:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):this._reconsumeInState(ee)}[X](e){e===s.HYPHEN_MINUS?this.state=oe:e===s.GREATER_THAN_SIGN?(this._err(o.abruptClosingOfEmptyComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[ee](e){e===s.HYPHEN_MINUS?this.state=ae:e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=te):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.data+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=$e(e)}[te](e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=ne):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(ee)}[ne](e){e===s.HYPHEN_MINUS?this.state=re:this._reconsumeInState(ee)}[re](e){e===s.HYPHEN_MINUS?this.state=ie:this._reconsumeInState(ae)}[ie](e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(o.nestedComment),this._reconsumeInState(oe)}[ae](e){e===s.HYPHEN_MINUS?this.state=oe:e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(ee))}[oe](e){e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state=se:e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(ee))}[se](e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=ae):e===s.GREATER_THAN_SIGN?(this._err(o.incorrectlyClosedComment),this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(ee))}[le](e){De(e)?this.state=ue:e===s.GREATER_THAN_SIGN?this._reconsumeInState(ue):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(ue))}[ue](e){De(e)||(je(e)?(this._createDoctypeToken(We(e)),this.state=ce):e===s.NULL?(this._err(o.unexpectedNullCharacter),this._createDoctypeToken(i.REPLACEMENT_CHARACTER),this.state=ce):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken($e(e)),this.state=ce))}[ce](e){De(e)?this.state=fe:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):je(e)?this.currentToken.name+=We(e):e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.name+=i.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=$e(e)}[fe](e){De(e)||(e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(l.PUBLIC_STRING,e,!1)?this.state=de:this._consumeSequenceIfMatch(l.SYSTEM_STRING,e,!1)?this.state=ye:this._ensureHibernation()||(this._err(o.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[de](e){De(e)?this.state=pe:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee))}[pe](e){De(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state=he):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state=me):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[he](e){e===s.QUOTATION_MARK?this.state=ge:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=$e(e)}[me](e){e===s.APOSTROPHE?this.state=ge:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.publicId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=$e(e)}[ge](e){De(e)?this.state=ve:e===s.GREATER_THAN_SIGN?(this.state=c,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this._err(o.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=ke):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee))}[ve](e){De(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ke):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[ye](e){De(e)?this.state=be:e===s.QUOTATION_MARK?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this._err(o.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=ke):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee))}[be](e){De(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state=we):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state=ke):e===s.GREATER_THAN_SIGN?(this._err(o.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=c,this._emitCurrentToken()):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ee)))}[we](e){e===s.QUOTATION_MARK?this.state=_e:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=$e(e)}[ke](e){e===s.APOSTROPHE?this.state=_e:e===s.NULL?(this._err(o.unexpectedNullCharacter),this.currentToken.systemId+=i.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(o.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=$e(e)}[_e](e){De(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.EOF?(this._err(o.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(o.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ee)))}[Ee](e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=c):e===s.NULL?this._err(o.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[xe](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Te:e===s.EOF?(this._err(o.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[Te](e){e===s.RIGHT_SQUARE_BRACKET?this.state=Se:(this._emitChars("]"),this._reconsumeInState(xe))}[Se](e){e===s.GREATER_THAN_SIGN?this.state=c:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(xe))}[Ce](e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state=Ie):He(e)?this._reconsumeInState(Oe):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Oe](e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(o.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=Ae}[Ae](e){He(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=$e(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(o.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[Ie](e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=Ne):this._reconsumeInState(Pe)}[Ne](e){!function(e){return Fe(e)||ze(e)||Ue(e)}(e)?(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Re)}[Pe](e){Fe(e)?this._reconsumeInState(Le):(this._err(o.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[Re](e){ze(e)?this.charRefCode=16*this.charRefCode+e-55:Ue(e)?this.charRefCode=16*this.charRefCode+e-87:Fe(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Me:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(Me))}[Le](e){Fe(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state=Me:(this._err(o.missingSemicolonAfterCharacterReference),this._reconsumeInState(Me))}[Me](){if(this.charRefCode===s.NULL)this._err(o.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(o.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isSurrogate(this.charRefCode))this._err(o.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(i.isUndefinedCodePoint(this.charRefCode))this._err(o.noncharacterCharacterReference);else if(i.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(o.controlCharacterReference);const e=u[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}Ze.CHARACTER_TOKEN="CHARACTER_TOKEN",Ze.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",Ze.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",Ze.START_TAG_TOKEN="START_TAG_TOKEN",Ze.END_TAG_TOKEN="END_TAG_TOKEN",Ze.COMMENT_TOKEN="COMMENT_TOKEN",Ze.DOCTYPE_TOKEN="DOCTYPE_TOKEN",Ze.EOF_TOKEN="EOF_TOKEN",Ze.HIBERNATION_TOKEN="HIBERNATION_TOKEN",Ze.MODE={DATA:c,RCDATA:f,RAWTEXT:d,SCRIPT_DATA:p,PLAINTEXT:h},Ze.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=Ze},30959:function(e){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},47757:function(e,t,n){"use strict";const r=n(79740),i=n(97700),a=r.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(r.isSurrogatePair(t))return this.pos++,this._addGap(),r.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,a.EOF;return this._err(i.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,a.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===a.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===a.CARRIAGE_RETURN?(this.skipNextNewLine=!0,a.LINE_FEED):(this.skipNextNewLine=!1,r.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===a.LINE_FEED||e===a.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){r.isControlCodePoint(e)?this._err(i.controlCharacterInInputStream):r.isUndefinedCodePoint(e)&&this._err(i.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},17385:function(e,t,n){"use strict";const{DOCUMENT_MODE:r}=n(28040);t.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const i=function(e){return{nodeName:"#text",value:e,parentNode:null}},a=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},o=t.insertBefore=function(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,r){let i=null;for(let t=0;t(Object.keys(t).forEach((n=>{e[n]=t[n]})),e)),Object.create(null))}},24592:function(e){"use strict";class t{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const r of Object.keys(n))"function"==typeof n[r]&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}t.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;iu){if(47===n.charCodeAt(s+f))return n.slice(s+f+1);if(0===f)return n.slice(s+f)}else o>u&&(47===e.charCodeAt(i+f)?c=f:0===f&&(c=0));break}var d=e.charCodeAt(i+f);if(d!==n.charCodeAt(s+f))break;47===d&&(c=f)}var p="";for(f=i+c+1;f<=a;++f)f!==a&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+c):(s+=c,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!o){i=r+1;break}}else-1===l&&(o=!1,l=r+1),s>=0&&(u===n.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=l))}return i===a?a=l:-1===a&&(a=e.length),e.slice(i,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===i&&(a=!1,i=s+1),46===l?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,l=-1,u=!0,c=e.length-1,f=0;c>=r;--c)if(47!==(i=e.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===i?-1===o?o=c:1!==f&&(f=1):-1!==o&&(f=-1);else if(!u){s=c+1;break}return-1===o||-1===l||0===f||1===f&&o===l-1&&o===s+1?-1!==l&&(n.base=n.name=0===s&&a?e.slice(1,l):e.slice(s,l)):(0===s&&a?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(s,o),n.base=e.slice(s,l)),n.ext=e.slice(o,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r},10793:function(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=n(),e.exports.createColors=n},92864:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(85270))&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(31642));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var s=function(e){return new i.default(e)};Object.assign(s,a),delete s.__esModule;var l=s;t.default=l,e.exports=t.default},26682:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i,a=x(n(49700)),o=x(n(92847)),s=x(n(29979)),l=x(n(5525)),u=x(n(69707)),c=x(n(28735)),f=x(n(68997)),d=x(n(28169)),p=E(n(59665)),h=x(n(45957)),m=x(n(9750)),g=x(n(73072)),v=x(n(79036)),y=E(n(59504)),b=E(n(24421)),w=E(n(81781)),k=n(36880);function _(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _=function(){return e},e}function E(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function x(e){return e&&e.__esModule?e:{default:e}}function T(e,t){for(var n=0;nthis.position&&(i=this.parseWhitespaceEquivalentTokens(t)),this.isNamedCombinator()?n=this.namedCombinator():this.currToken[y.FIELDS.TYPE]===b.combinator?(n=new m.default({value:this.content(),source:N(this.currToken),sourceIndex:this.currToken[y.FIELDS.START_POS]}),this.position++):S[this.currToken[y.FIELDS.TYPE]]||i||this.unexpected(),n){if(i){var a=this.convertWhitespaceNodesToSpace(i),o=a.space,s=a.rawSpace;n.spaces.before=o,n.rawSpaceBefore=s}}else{var l=this.convertWhitespaceNodesToSpace(i,!0),u=l.space,c=l.rawSpace;c||(c=u);var f={},d={spaces:{}};u.endsWith(" ")&&c.endsWith(" ")?(f.before=u.slice(0,u.length-1),d.spaces.before=c.slice(0,c.length-1)):u.startsWith(" ")&&c.startsWith(" ")?(f.after=u.slice(1),d.spaces.after=c.slice(1)):d.value=c,n=new m.default({value:" ",source:P(r,this.tokens[this.position-1]),sourceIndex:r[y.FIELDS.START_POS],spaces:f,raws:d})}return this.currToken&&this.currToken[y.FIELDS.TYPE]===b.space&&(n.spaces.after=this.optionalSpace(this.content()),this.position++),this.newNode(n)}var p=this.parseWhitespaceEquivalentTokens(t);if(p.length>0){var h=this.current.last;if(h){var g=this.convertWhitespaceNodesToSpace(p),v=g.space,w=g.rawSpace;void 0!==w&&(h.rawSpaceAfter+=w),h.spaces.after+=v}else p.forEach((function(t){return e.newNode(t)}))}},r.comma=function(){if(this.position===this.tokens.length-1)return this.root.trailingComma=!0,void this.position++;this.current._inferEndPosition();var e=new o.default({source:{start:O(this.tokens[this.position+1])}});this.current.parent.append(e),this.current=e,this.position++},r.comment=function(){var e=this.currToken;this.newNode(new l.default({value:this.content(),source:N(e),sourceIndex:e[y.FIELDS.START_POS]})),this.position++},r.error=function(e,t){throw this.root.error(e,t)},r.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.",{index:this.currToken[y.FIELDS.START_POS]})},r.missingParenthesis=function(){return this.expected("opening parenthesis",this.currToken[y.FIELDS.START_POS])},r.missingSquareBracket=function(){return this.expected("opening square bracket",this.currToken[y.FIELDS.START_POS])},r.unexpected=function(){return this.error("Unexpected '"+this.content()+"'. Escaping special characters with \\ may help.",this.currToken[y.FIELDS.START_POS])},r.namespace=function(){var e=this.prevToken&&this.content(this.prevToken)||!0;return this.nextToken[y.FIELDS.TYPE]===b.word?(this.position++,this.word(e)):this.nextToken[y.FIELDS.TYPE]===b.asterisk?(this.position++,this.universal(e)):void 0},r.nesting=function(){if(this.nextToken&&"|"===this.content(this.nextToken))this.position++;else{var e=this.currToken;this.newNode(new g.default({value:this.content(),source:N(e),sourceIndex:e[y.FIELDS.START_POS]})),this.position++}},r.parentheses=function(){var e=this.current.last,t=1;if(this.position++,e&&e.type===w.PSEUDO){var n=new o.default({source:{start:O(this.tokens[this.position-1])}}),r=this.current;for(e.append(n),this.current=n;this.position1&&e.nextToken&&e.nextToken[y.FIELDS.TYPE]===b.openParenthesis&&e.error("Misplaced parenthesis.",{index:e.nextToken[y.FIELDS.START_POS]})})):this.expected(["pseudo-class","pseudo-element"],this.position-1)},r.space=function(){var e=this.content();0===this.position||this.prevToken[y.FIELDS.TYPE]===b.comma||this.prevToken[y.FIELDS.TYPE]===b.openParenthesis||this.current.nodes.every((function(e){return"comment"===e.type}))?(this.spaces=this.optionalSpace(e),this.position++):this.position===this.tokens.length-1||this.nextToken[y.FIELDS.TYPE]===b.comma||this.nextToken[y.FIELDS.TYPE]===b.closeParenthesis?(this.current.last.spaces.after=this.optionalSpace(e),this.position++):this.combinator()},r.string=function(){var e=this.currToken;this.newNode(new f.default({value:this.content(),source:N(e),sourceIndex:e[y.FIELDS.START_POS]})),this.position++},r.universal=function(e){var t=this.nextToken;if(t&&"|"===this.content(t))return this.position++,this.namespace();var n=this.currToken;this.newNode(new h.default({value:this.content(),source:N(n),sourceIndex:n[y.FIELDS.START_POS]}),e),this.position++},r.splitWord=function(e,t){for(var n=this,r=this.nextToken,i=this.content();r&&~[b.dollar,b.caret,b.equals,b.word].indexOf(r[y.FIELDS.TYPE]);){this.position++;var a=this.content();if(i+=a,a.lastIndexOf("\\")===a.length-1){var o=this.nextToken;o&&o[y.FIELDS.TYPE]===b.space&&(i+=this.requiredSpace(this.content(o)),this.position++)}r=this.nextToken}var l=L(i,".").filter((function(e){var t="\\"===i[e-1],n=/^\d+\.\d+%$/.test(i);return!t&&!n})),f=L(i,"#").filter((function(e){return"\\"!==i[e-1]})),d=L(i,"#{");d.length&&(f=f.filter((function(e){return!~d.indexOf(e)})));var p=(0,v.default)(function(){var e=Array.prototype.concat.apply([],arguments);return e.filter((function(t,n){return n===e.indexOf(t)}))}([0].concat(l,f)));p.forEach((function(r,a){var o,d=p[a+1]||i.length,h=i.slice(r,d);if(0===a&&t)return t.call(n,h,p.length);var m=n.currToken,g=m[y.FIELDS.START_POS]+p[a],v=I(m[1],m[2]+r,m[3],m[2]+(d-1));if(~l.indexOf(r)){var b={value:h.slice(1),source:v,sourceIndex:g};o=new s.default(R(b,"value"))}else if(~f.indexOf(r)){var w={value:h.slice(1),source:v,sourceIndex:g};o=new u.default(R(w,"value"))}else{var k={value:h,source:v,sourceIndex:g};R(k,"value"),o=new c.default(k)}n.newNode(o,e),e=null})),this.position++},r.word=function(e){var t=this.nextToken;return t&&"|"===this.content(t)?(this.position++,this.namespace()):this.splitWord(e)},r.loop=function(){for(;this.position0)||e.quoted||0!==n.before.length||e.spaces.value&&e.spaces.value.after||(n.before=" "),b(t,n)})))),t.push("]"),t.push(this.rawSpaceAfter),t.join("")},a=r,(o=[{key:"quoted",get:function(){var e=this.quoteMark;return"'"===e||'"'===e},set:function(e){h()}},{key:"quoteMark",get:function(){return this._quoteMark},set:function(e){this._constructed?this._quoteMark!==e&&(this._quoteMark=e,this._syncRawValue()):this._quoteMark=e}},{key:"qualifiedAttribute",get:function(){return this.qualifiedName(this.raws.attribute||this.attribute)}},{key:"insensitiveFlag",get:function(){return this.insensitive?"i":""}},{key:"value",get:function(){return this._value},set:function(e){if(this._constructed){var t=g(e),n=t.deprecatedUsage,r=t.unescaped,i=t.quoteMark;if(n&&p(),r===this._value&&i===this._quoteMark)return;this._value=r,this._quoteMark=i,this._syncRawValue()}else this._value=e}},{key:"attribute",get:function(){return this._attribute},set:function(e){this._handleEscapes("attribute",e),this._attribute=e}}])&&u(a.prototype,o),r}(o.default);t.default=v,v.NO_QUOTE=null,v.SINGLE_QUOTE="'",v.DOUBLE_QUOTE='"';var y=((r={"'":{quotes:"single",wrap:!0},'"':{quotes:"double",wrap:!0}}).null={isIdentifier:!0},r);function b(e,t){return""+t.before+e+t.after}},29979:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(94559)),i=n(36880),a=s(n(46385)),o=n(81781);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e&&(this.indexes[n]=t-1);return this},c.removeAll=function(){for(var e,t=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}(this.nodes);!(e=t()).done;)e.value.parent=void 0;return this.nodes=[],this},c.empty=function(){return this.removeAll()},c.insertAfter=function(e,t){t.parent=this;var n,r=this.index(e);for(var i in this.nodes.splice(r+1,0,t),t.parent=this,this.indexes)r<=(n=this.indexes[i])&&(this.indexes[i]=n+1);return this},c.insertBefore=function(e,t){t.parent=this;var n,r=this.index(e);for(var i in this.nodes.splice(r,0,t),t.parent=this,this.indexes)(n=this.indexes[i])<=r&&(this.indexes[i]=n+1);return this},c._findChildAtPosition=function(e,t){var n=void 0;return this.each((function(r){if(r.atPosition){var i=r.atPosition(e,t);if(i)return n=i,!1}else if(r.isAtPosition(e,t))return n=r,!1})),n},c.atPosition=function(e,t){return this.isAtPosition(e,t)?this._findChildAtPosition(e,t)||this:void 0},c._inferEndPosition=function(){this.last&&this.last.source&&this.last.source.end&&(this.source=this.source||{},this.source.end=this.source.end||{},Object.assign(this.source.end,this.last.source.end))},c.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n,r;this.indexes[t]e||this.source.end.linet||this.source.end.line===e&&this.source.end.column0?(c=b+s,f=u-l[s].length):(c=b,f=y),h=a.comment,b=c,r=c,n=u-f):t===a.slash?(h=t,r=b,n=w-y,k=(u=w)+1):(u=d(g,w),h=a.word,r=b,n=u-y),k=u+1}m.push([h,b,w-y,r,n,w,k]),f&&(y=f,f=null),w=k}return m},t.FIELDS=void 0;var r,i,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(24421));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}for(var s=((r={})[a.tab]=!0,r[a.newline]=!0,r[a.cr]=!0,r[a.feed]=!0,r),l=((i={})[a.space]=!0,i[a.tab]=!0,i[a.newline]=!0,i[a.cr]=!0,i[a.feed]=!0,i[a.ampersand]=!0,i[a.asterisk]=!0,i[a.bang]=!0,i[a.comma]=!0,i[a.colon]=!0,i[a.semicolon]=!0,i[a.openParenthesis]=!0,i[a.closeParenthesis]=!0,i[a.openSquare]=!0,i[a.closeSquare]=!0,i[a.singleQuote]=!0,i[a.doubleQuote]=!0,i[a.plus]=!0,i[a.pipe]=!0,i[a.tilde]=!0,i[a.greaterThan]=!0,i[a.equals]=!0,i[a.dollar]=!0,i[a.caret]=!0,i[a.slash]=!0,i),u={},c="0123456789abcdefABCDEF",f=0;f1?t-1:0),r=1;r0;){var i=n.shift();e[i]||(e[i]={}),e=e[i]}},e.exports=t.default},67158:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0;){var i=n.shift();if(!e[i])return;e=e[i]}return e},e.exports=t.default},36880:function(e,t,n){"use strict";t.__esModule=!0,t.stripComments=t.ensureObject=t.getProp=t.unesc=void 0;var r=s(n(1798));t.unesc=r.default;var i=s(n(67158));t.getProp=i.default;var a=s(n(61548));t.ensureObject=a.default;var o=s(n(5994));function s(e){return e&&e.__esModule?e:{default:e}}t.stripComments=o.default},5994:function(e,t){"use strict";t.__esModule=!0,t.default=function(e){for(var t="",n=e.indexOf("/*"),r=0;n>=0;){t+=e.slice(r,n);var i=e.indexOf("*/",n+2);if(i<0)return t;r=i+2,n=e.indexOf("/*",r)}return t+e.slice(r)},e.exports=t.default},1798:function(e,t){"use strict";function n(e){for(var t=e.toLowerCase(),n="",r=!1,i=0;i<6&&void 0!==t[i];i++){var a=t.charCodeAt(i);if(r=32===a,!(a>=97&&a<=102||a>=48&&a<=57))break;n+=t[i]}if(0!==n.length){var o=parseInt(n,16);return o>=55296&&o<=57343||0===o||o>1114111?["�",n.length+(r?1:0)]:[String.fromCodePoint(o),n.length+(r?1:0)]}}t.__esModule=!0,t.default=function(e){if(!r.test(e))return e;for(var t="",i=0;i