!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=299)}([function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function u(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t *":{visibility:"hidden"}},fitContent:{maxWidth:"fit-content"},heightAuto:{height:"auto"}}}),{name:"MuiSkeleton"})(m),v=n(11),g=n(24),y=n.n(g),O="https://4f2e9e341cc542ca957d9c18745856c7@o263377.ingest.sentry.io/6038490",j="620c02857a83b63a0a6eb90d",E="276cfb980d217befba9ff137c3c95611b8745699c46c21a3fc90fcc8aa7cfb2f988ef1e61a98e68b05e8794876ac4c4c59aca1a4de853e9d62fb4d7d516a551f3fd9a1e133f06edc01592b6adad57f78f683460c2ea632e492ee72f9b8fc92d2",w={BASE_URL_ENV_LOCALSTORAGE_KEY:"topicEnvs",BASE_URL_KEYS:["TOPIC_BASE_URL","ADTHRIVE_PUBDASH_BASE_URL","ADTHRIVE_API_BASE_URL"],TOPIC_BASE_URL:{dev:"http://localhost:3000/api/",staging:"https://staging.usetopic.com/api/",production:"https://app.usetopic.com/api/"},ADTHRIVE_PUBDASH_BASE_URL:{dev:"http://localhost:4200/",qa:"https://qa-publisher.adthrive.com/",staging:"https://stage-publisher.adthrive.com/",production:"https://publisher.adthrive.com/"},ADTHRIVE_API_BASE_URL:{dev:"https://publisher-api.development.cafemedia.com/",staging:"https://stage-publisher-api.adthrive.com/",production:"https://publisher-api.adthrive.com/"},GET_ENV:function(e){w[e];var t=y.a.get(w.BASE_URL_ENV_LOCALSTORAGE_KEY);return t&&t[e]?t[e]:"production"},GET_BASE_URL:function(e){var t=w[e],n=w.GET_ENV(e);return n&&t[n]?t[n]:t.production},LOGIN_ENDPOINT:"login",GET_BRIEFS:"keyword_reports/",ASYNC_QUESTIONS_STATUS:"status/questions/",GENERATE_RELATIONSHIPS:"openai/generate_relationships/",GENERATE_RELATIONSHIPS_QUESTIONS:"openai/generate_relationships_questions/",ADTHRIVE_PUBDASH_LOGIN_ENDPOINT:"login",ADTHRIVE_GET_BRIEFS:function(e){var t=w.GET_ENV("ADTHRIVE_API_BASE_URL");return"".concat("dev"===t||"qa"===t?"develop/":"","sites/").concat(e,"/contentBriefs")},ADTHRIVE_MARK_BRIEF_COMPLETE:function(e,t){var n=w.GET_ENV("ADTHRIVE_API_BASE_URL");return"".concat("dev"===n||"qa"===n?"develop/":"","sites/").concat(e,"/contentBriefs/").concat(t,"/actions/completed")},ADTHRIVE_SITES_ENDPOINT:function(){var e=w.GET_ENV("ADTHRIVE_API_BASE_URL");return"".concat("dev"===e||"qa"===e?"develop/":"","sites")},ADTHRIVE_PUBDASH_BRIEFS:function(e){return"".concat(w.GET_BASE_URL("ADTHRIVE_PUBDASH_BASE_URL"),"sites/").concat(e,"/content-optimization/briefs")}},x={LOAD_BRIEF_HEADING:"Load Brief",BRIEF_TEXTFIELD_LABAL_TEXT:"Enter the URL to the Content Brief",BRIEF_TEXTFIELD_PLACEMENT_TEXT:"https://app.usetopic.com/briefs/xxxxxxx/overview",LOAD_BRIEF_BUTTON_TEXT:"GO",LOG_IN_BUTTON_TEXT:"Sign In (for non-AdThrive users)",SNACKBAR_TEXT_INVALID:"Invalid URL, Please make sure brief is public"},_={SIGN_IN_TEXT:"Sign In",EMAIL_TEXTFIELD_LABAL_TEXT:"Email",EMAIL_TEXTFIELD_PLACEMENT_TEXT:"login@email.com",PASSWORD_TEXTFIELD_LABAL_TEXT:"Password",PASSWORD_TEXTFIELD_PLACEMENT_TEXT:"*********",LOGIN_BUTTON_TEXT:"Log In",LOAD_BRIEF_BUTTON_TEXT:"Load Brief"},S={SIGN_IN_TEXT:"Sign In with AdThrive",LOAD_BRIEF_BUTTON_TEXT:"Load Brief"},k={SEARCH_BRIEF_TEXT_HEADING:"Search Briefs",BRIEF_SUB_HEADING_TEXT:"Content Briefs",BRIEF_HOVER_TOOLTIP_TEXT:"Select this Brief",BRIEF_LINK_TOOLTIP_TEXT:"View This Brief in Browser",BRIEF_SEARCH_PLACEHOLDER_TEXT:"Search briefs by keywords"},T={LOGGED_IN_TEXT:"Signed in as",NOT_LOGGED_IN_TEXT:"You are not signed in",LOGOUT_ICON_LABEL:"Logout",BACK_BUTTON_LABEL:"Back"},C={TOPIC_LOGO_URL_LINK:"https://www.usetopic.com",TOPIC_LOGO_LINK:"https://uploads-ssl.webflow.com/5d7bfb33d27da2d97219c009/5d927c199aec2843d190ea20_logo-rectangle.png",HELP_TXT_LINK:"https://help.adthrive.com/hc/en-us",WORDPRESS_RELEASE_LINK:"https://wordpress.org/plugins/topic/#developers"},R={HEADER_TEXT:"Competitor Outlines",DESCRIPTION_TEXT_1:"Easily see how others are covering this topic so that you can quickly create your own outline.",DESCRIPTION_TEXT_2:"Why are some outlines missing?",OUTLINE_DESCRIPTION_TEXT:"DESCRIPTION",OUTLINE_OUTLINE_TEXT:"OUTLINE"},I={CURRENT_GRADE_TEXT:"Current Grade",WORD_COUNT_TEXT:"Word Count : ",SELECT_TOPIC_TEXT:"Topics",SELECT_QUESTIONS_TEXT:"Questions",SELECT_OUTLINES_TEXT:"Outlines",TOPIC_CLUSTERING_TEXT_ERROR:"Something went wrong clustering the topics",QUESTIONS_CLUSTERING_TEXT_ERROR:"Something went wrong clustering the questions"},A={NO_QUESTIONS_ERROR_TEXT:"No questions were found for ",HEADER:"Questions To Answer",DESCRIPTION:"Looking at commonly searched questions can help you understand what kind of answers your audience is looking for. Find natural ways to answer these questions in your content.",GOOGLE_QUESTIONS_TEXT_HEADER:"Google People Also Ask",QUORA_QUESTIONS_TEXT_HEADER:"Quora",QUORA_FOLLOW_COUNT_TEXT:"Follow Count : ",AUTOCOMPLETE_QUESTIONS_TEXT_HEADER:"Google Suggest",QUESTIONS_TEXT:"Question",FETCHING_QUESTIONS_MESSAGE:"Fetching questions to answer"},P={HEADER:"Topics to Cover",SOURCES_TEXT_1:"used By",SOURCES_TEXT_2:"Sources"},N={HELP_TXT:"HELP",VERSION_NUMBER:"v1.0.19",MANUAL_LOGIC_TEXT:"Alternate Login Method",LOGOUT_TEXT:"Log out of Topic Plugin"};function M(){if(window.isClassicEditor)return tinymce.get("content").getContent({format:"raw"});var e=[document.getElementsByClassName("block-editor-writing-flow")[0].innerHTML];Object(o.useSelect)((function(e){return e("core/block-editor").getBlocks()}),[]);return e}function L(e){try{var t=0;return e.header_usage.map((function(e){t+=e.sentences.length})),t}catch(e){return 0}}function D(e){return new Promise((function(t,n){fetch(w.GET_BASE_URL("TOPIC_BASE_URL")+w.GET_BRIEFS+"".concat(e),{method:"GET"}).then((function(e){return e.json()})).then((function(e){e.error?t(!1):t(!0)})).catch((function(e){t(!1)}))}))}function B(e,t,n){fetch(w.GET_BASE_URL("TOPIC_BASE_URL")+w.GENERATE_RELATIONSHIPS+"".concat(e)).then((function(e){return e.json()})).then((function(e){!v.isEmpty(e.success)&&v.isFunction(t)?t():v.isFunction(n)&&n(e)}))}function F(e,t,n){fetch(w.GET_BASE_URL("TOPIC_BASE_URL")+w.GENERATE_RELATIONSHIPS_QUESTIONS+"".concat(e)).then((function(e){return e.json()})).then((function(e){!v.isEmpty(e.success)&&v.isFunction(t)?t():v.isFunction(n)&&n(e)}))}function z(e,t){switch(t){case"H1":case"H2":return Object(r.createElement)(i.a,{variant:"subtitle2",style:{fontWeight:"700",color:"#3e4b5b"}},e);case"H3":return Object(r.createElement)(i.a,{variant:"body2",style:{color:"#3e4b5b",marginLeft:"1rem"}},e);case"H4":return Object(r.createElement)(i.a,{variant:"body2",style:{color:"#3e4b5b",marginLeft:"1.3rem"}},e);case"H5":return Object(r.createElement)(i.a,{variant:"body2",style:{color:"#3e4b5b",marginLeft:"1.5rem"}},e);case"H6":default:return Object(r.createElement)(i.a,{variant:"body2",style:{color:"#3e4b5b",marginLeft:"1.6rem"}},e)}}function U(e){switch(e){case"#sidebar":return Object(r.createElement)("style",null," .edit-post-sidebar{ min-width: 24rem!important; padding-bottom:unset!important; } .topic-sidebar.components-panel{ height:calc(100vh - 135px) } ");default:return}}function H(e){switch(e){case"card":return Object(r.createElement)(a.a,{xs:"12"},Object(r.createElement)(c.a,{style:{marginBottom:"1rem",borderRadius:"0.5rem"}},Object(r.createElement)(s.a,null,Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null))),Object(r.createElement)(c.a,{style:{marginBottom:"1rem",borderRadius:"0.5rem"}},Object(r.createElement)(s.a,null,Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null))),Object(r.createElement)(c.a,{style:{marginBottom:"1rem",borderRadius:"0.5rem"}},Object(r.createElement)(s.a,null,Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null))));case"text":return Object(r.createElement)(i.a,{variant:"h3"},Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)("br",null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)("br",null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)("br",null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)("br",null),Object(r.createElement)(b,null),Object(r.createElement)(b,null),Object(r.createElement)(b,null));default:return}}function W(e,t){var n=Object(d.useRef)();Object(d.useEffect)((function(){n.current=e}),[e]),Object(d.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}function q(e){function t(e){var t=1e4*Math.sin(e++);return t-Math.floor(t)}return function(e,n){for(var r,o,i=e.length;i;)o=Math.floor(t(n)*i--),r=e[i],e[i]=e[o],e[o]=r,++n;return e}(["#EF4E4E","#F9AF67","#79CE87","#55D0DB","#55AAD4","#647ACB","#724BB7","#AD4BB8","#DA4A91"],e)}var V=function(e){try{if(e&&e.report){var t=e.report,n=t.related_questions,r=t.related_questions_quora,o=t.related_questions_autocomplete,i=n.questions.concat(r.questions).concat(o.questions);i=v.uniqBy(i,(function(e){return e.keyword.toLowerCase()}));var a=v.groupBy(i,"cluster");return delete a.undefined,a}return[]}catch(e){return console.log("Error in getClusteredQuestions",e),[]}},$=function(){return"true"===new URL(window.location.href).searchParams.get("topic_debug")};function G(e){function t(){var e=wp.data.select("core/editor").isSavingPost()||wp.data.select("core/editor").isAutosavingPost(),t=wp.data.select("core/editor").isEditedPostSaveable(),n=wp.data.select("core/editor").isPostSavingLocked(),r=wp.data.select("core/editor").hasNonPostEntityChanges();return!wp.data.select("core/editor").isAutosavingPost()&&e&&((e||!t||n)&&!r)}window.AP||(window.AP={}),window.AP.wasSaving=t(),wp.data.subscribe((function(){var n=t(),r=window.AP.wasSaving&&!n;window.AP.wasSaving=n,r&&e()}))}function X(e){return!new URL(e).search.includes("?p=")}},function(e,t,n){e.exports=n(205)()},function(e,t,n){"use strict";var r=n(2),o=n(247),i=n(58);t.a=function(e,t){return Object(o.a)(e,Object(r.a)({defaultTheme:i.a},t))}},function(e,t,n){"use strict";var r=n(15),o=n(74);function i(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}t.a=function(e){var t=e.prop,n=e.cssProperty,a=void 0===n?e.prop:n,c=e.themeKey,s=e.transform,u=function(e){if(null==e[t])return null;var n=e[t],u=i(e.theme,c)||{};return Object(o.b)(e,n,(function(e){var t;return"function"==typeof u?t=u(e):Array.isArray(u)?t=u[e]||e:(t=i(u,e)||e,s&&(t=s(t))),!1===a?t:Object(r.a)({},a,t)}))};return u.propTypes={},u.filterProps=[t],u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(105);function o(e){if("string"!=typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t,n){var r=n(191),o=n(192),i=n(143),a=n(193);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return f}));var r=n(105);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,c=r*Math.min(o,1-o),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-c*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(u+="a",l.push(t[3])),a({type:u,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?d(e,t):f(e,t)}function l(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.r(t),n.d(t,"chainPropTypes",(function(){return r})),n.d(t,"deepmerge",(function(){return o.a})),n.d(t,"elementAcceptingRef",(function(){return s})),n.d(t,"elementTypeAcceptingRef",(function(){return u})),n.d(t,"exactProp",(function(){return l})),n.d(t,"formatMuiErrorMessage",(function(){return d.a})),n.d(t,"getDisplayName",(function(){return g})),n.d(t,"HTMLElementType",(function(){return y})),n.d(t,"ponyfillGlobal",(function(){return O})),n.d(t,"refType",(function(){return j}));var o=n(123),i=n(7),a=n.n(i);var c=(a.a.element,function(){return null});c.isRequired=(a.a.element.isRequired,function(){return null});var s=c;var u=(i.elementType,function(){return null});n(15),n(2);function l(e){return e}var d=n(105),f=n(49),p=n(43),h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function m(e){var t="".concat(e).match(h);return t&&t[1]||""}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||m(e)||t}function v(e,t,n){var r=b(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function g(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return b(e,"Component");if("object"===Object(f.a)(e))switch(e.$$typeof){case p.ForwardRef:return v(e,e.render,"ForwardRef");case p.Memo:return v(e,e.type,"memo");default:return}}}function y(e,t,n,r,o){return null}var O="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),j=a.a.oneOfType([a.a.func,a.a.object])},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return O}));var r=n(0),o=n.n(r),i=o.a.createContext(null);var a=function(e){e()},c={notify:function(){}};function s(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var u=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=c,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=s())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=c)},e}();var l=function(e){var t=e.store,n=e.context,a=e.children,c=Object(r.useMemo)((function(){var e=new u(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),s=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=c.subscription;return e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[c,s]);var l=n||i;return o.a.createElement(l.Provider,{value:c},a)},d=(n(2),n(33),n(38),n(43),"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect);n(64);function f(){return Object(r.useContext)(i)}function p(e){void 0===e&&(e=i);var t=e===i?f:function(){return Object(r.useContext)(e)};return function(){return t().store}}var h=p();function m(e){void 0===e&&(e=i);var t=e===i?h:p(e);return function(){return t().dispatch}}var b=m(),v=function(e,t){return e===t};function g(e){void 0===e&&(e=i);var t=e===i?f:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=v);var o=t(),i=function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return new u(n,o)}),[n,o]),s=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)(),p=Object(r.useRef)(),h=n.getState();try{i=e!==l.current||h!==f.current||s.current?e(h):p.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return d((function(){l.current=e,f.current=h,p.current=i,s.current=void 0})),d((function(){function e(){try{var e=l.current(n.getState());if(t(e,p.current))return;p.current=e}catch(e){s.current=e}a()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),i}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(i),i}}var y,O=g(),j=n(20);y=j.unstable_batchedUpdates,a=y},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(47);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));var r=n(70),o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(e){var t;return void 0===e&&(e=null===(t=Object(r.b)().getClient())||void 0===t?void 0:t.getOptions()),!!e&&("tracesSampleRate"in e||"tracesSampler"in e)}function a(e){var t=e.match(o);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}function c(e){var t,n;return void 0===e&&(e=Object(r.b)()),null===(n=null===(t=e)||void 0===t?void 0:t.getScope())||void 0===n?void 0:n.getTransaction()}function s(e){return e/1e3}function u(e){return 1e3*e}},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(110);var o=n(77),i=n(111);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"k",(function(){return f})),n.d(t,"j",(function(){return p})),n.d(t,"l",(function(){return h}));var r="LOGIN_USER_SUCCESS",o="LOGOUT_USER_SUCCESS",i="LOGIN_ADTHRIVE_USER_SUCCESS",a="SET_ADTHRIVE_SITES",c="SET_ACTIVE_SITE",s="BRIEFS_SUCCESS",u="SET_BRIEFS_LOADING",l="SET_ACTIVE_BRIEF",d="SET_CURRENT_PAGE",f="SET_CURRENT_POST_ID",p="SET_CURRENT_PAGE_LOADING",h="SET_SHOULD_TRY_AUTOLOADING"},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(28),o=Object(r.e)(),i="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t"}return e.event_id||""}function u(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}function l(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function d(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function f(){var e=i();try{return e.document.location.href}catch(e){return""}}var p=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function h(e){var t=e.match(p)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),o=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function m(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}}).call(this,n(53))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Ok="ok",e.DeadlineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r||(r={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DeadlineExceeded;default:return e.InternalError}return e.UnknownError}}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},,function(e,t,n){"use strict";n(2);var r=n(54);t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return X})),n.d(t,"b",(function(){return J})),n.d(t,"c",(function(){return be})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return ge})),n.d(t,"f",(function(){return ve})),n.d(t,"g",(function(){return p}));var r=n(2),o=n(67),i=(n(57),n(40)),a=n(36),c=n(84),s=n(33),u={}.constructor;function l(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(l);if(e.constructor!==u)return e;var t={};for(var n in e)t[n]=l(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=l(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<+~=|^:(),"'`\s])/g,g="undefined"!=typeof CSS&&CSS.escape,y=function(e){return g?g(e):e.replace(v,"\\$1")},O=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var c=i&&a;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var s=this.options.sheet;return s&&s.attached,this},e}(),j=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u(Object(c.a)(Object(c.a)(o)),s),o.selectorText="."+y(o.id)),o}Object(a.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return b(this.selectorText,this.style,n)},Object(i.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(O),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new j(e,t,n)}},w={indent:1,children:!0},x=/@([\w-]+)/,_=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(x);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new X(Object(r.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=w);var t=h(e).linebreak;if(null==e.indent&&(e.indent=w.indent),null==e.children&&(e.children=w.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),S=/@media|@supports\s+/,k={onCreateRule:function(e,t,n){return S.test(e)?new _(e,t,n):null}},T={indent:1,children:!0},C=/@keyframes\s+([\w-]+)/,R=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(C);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,c=n.generateId;for(var s in this.id=!1===i?this.name:y(c(this,a)),this.rules=new X(Object(r.a)({},n,{parent:this})),t)this.rules.add(s,t[s],Object(r.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=T);var t=h(e).linebreak;if(null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),I=/@keyframes\s+/,A=/\$([\w-]+)/g,P=function(e,t){return"string"==typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},N=function(e,t,n){var r=e[t],o=P(r,n);o!==r&&(e[t]=o)},M={onCreateRule:function(e,t,n){return"string"==typeof e&&I.test(e)?new R(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&N(e,"animation-name",n.keyframes),"animation"in e&&N(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return P(e,r.keyframes);default:return e}}},L=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(r.a)({},e,{allowEmpty:!0}):e;return b(this.key,this.style,n)},t}(O),D={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new L(e,t,n):null}},B=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(s.a)(t,["attached"]),o=h(r).linebreak,i="",a=0;a-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},ce=function(e,t){return e.selectorText=t,e.selectorText===t},se=re((function(){return document.querySelector("head")}));function ue(e){var t=Q.registry;if(t.length>0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=se(),n=0;nn?n:t},pe=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ie,this.removeProperty=ae,this.setSelector=ce,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=le();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ue(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else se().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,c=void 0===n?i.standard:n,s=t.easing,u=void 0===s?o.easeInOut:s,l=t.delay,d=void 0===l?0:l;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof c?c:a(c)," ").concat(u," ").concat("string"==typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n"}try{c.currentTarget=Object(i.c)(a.currentTarget)?Object(o.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){c.currentTarget=""}for(var s in"undefined"!=typeof CustomEvent&&Object(i.g)(e,CustomEvent)&&(c.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,s)&&(c[s]=a[s]);return c}return e}function f(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function p(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=b(e,t);return f(r)>n?p(e,t-1,n):r}function h(t,n){return"domain"===n&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==e&&t===e?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":Object(i.l)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?"[Function: "+Object(c.a)(t)+"]":"symbol"==typeof t?"["+String(t)+"]":"bigint"==typeof t?"[BigInt: "+String(t)+"]":t}function m(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new a.a),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=h(e);return Object(i.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var o=h(t,e);if(Object(i.i)(o))return o;var c=d(t),s=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(s[u]=m(u,c[u],n-1,r));return r.unmemoize(t),s}function b(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return m(e,n,t)})))}catch(e){return"**non-serializable**"}}function v(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(s.d)(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:Object(s.d)(o,t)}return""}function g(e){var t,n;if(Object(i.h)(e)){var o=e,a={};try{for(var c=Object(r.f)(Object.keys(o)),s=c.next();!s.done;s=c.next()){var u=s.value;void 0!==o[u]&&(a[u]=g(o[u]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return a}return Array.isArray(e)?e.map(g):e}}).call(this,n(53))},,function(e,t,n){"use strict";e.exports=n(194)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(85);var o=n(108),i=n(77);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},,function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(27);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=i.default.memo(i.default.forwardRef((function(t,n){return i.default.createElement(a.default,(0,o.default)({ref:n},t),e)})));0;return n.muiName=a.default.muiName,n};var o=r(n(60)),i=r(n(0)),a=r(n(147))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};Object(l.a)(this,e),this.options=t}return Object(d.a)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new h.b;var n=Object(r.a)();return p.a.createElement(m.b,Object(u.a)({sheetsManager:t,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return p.a.createElement("style",Object(u.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),v=n(305),g=n(80),y=n(306),O=n(173),j=n(247),E=n(4),w=n(38),x=n.n(w);function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=function(e){var n=p.a.forwardRef((function(n,r){var o=n.innerRef,i=Object(E.a)(n,["innerRef"]),a=Object(O.a)()||t;return p.a.createElement(e,Object(u.a)({theme:a,ref:o||r},i))}));return x()(n,e),n};return n}var S=_()},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";var r=n(171),o=Object(r.a)();t.a=o},,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b}));var r=n(3),o=n(70),i=n(118),a=n(23),c=n(52),s=n(167),u=n(75),l=n(76),d=n(19);function f(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function p(e,t,n){return Object(d.c)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:i.a.Explicit}}),e):("function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:i.a.Sampler,rate:Number(r)}})):void 0!==n.parentSampled?(r=n.parentSampled,e.setMetadata({transactionSampling:{method:i.a.Inheritance}})):(r=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:i.a.Rate,rate:Number(r)}})),function(e){if(isNaN(e)||"number"!=typeof e&&"boolean"!=typeof e)return a.a.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(e)+" of type "+JSON.stringify(typeof e)+"."),!1;if(e<0||e>1)return a.a.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+e+"."),!1;return!0}(r)?r?(e.sampled=Math.random()0&&(t.__SENTRY__.integrations=Object(r.e)(t.__SENTRY__.integrations||[],i))}}(),Object(s.a)()}}).call(this,n(91)(e))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(3),o=n(28),i=n(79),a=n(41),c=n(29),s=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),u=function(){function e(e){if(this.traceId=Object(o.j)(),this.spanId=Object(o.j)().substring(16),this.startTimestamp=Object(i.d)(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(Object(r.a)(Object(r.a)({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=Object(r.a)(Object(r.a)({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=Object(r.a)(Object(r.a)({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=c.a.fromHttpCode(e);return t!==c.a.UnknownError&&this.setStatus(t),this},e.prototype.isSuccess=function(){return this.status===c.a.Ok},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:Object(i.d)()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return Object(a.a)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,o,i;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(o=e.tags)?o:{},this.traceId=null!=(i=e.traceId)?i:this.traceId,this},e.prototype.getTraceContext=function(){return Object(a.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return Object(a.a)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c}));var r=n(126),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},i={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(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 o;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(c)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,u=t,l=[],d=l,f=!1;function p(){d===l&&(d=l.slice())}function h(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1),l=null}}}function b(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,u=s(u,e)}finally{f=!1}for(var t=l=d,n=0;n1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r="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},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.a=o},function(e,t,n){"use strict";(function(e,r){function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return b.head.insertBefore(t,r),e}}function G(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function X(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function K(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Y(e){return e.size!==V.size||e.x!==V.x||e.y!==V.y||e.rotate!==V.rotate||e.flipX||e.flipY}function J(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),c="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(c)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Q={x:0,y:0,width:"100%",height:"100%"};function Z(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ee(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,u=e.title,l=e.maskId,d=e.titleId,f=e.extra,p=e.watchable,h=void 0!==p&&p,m=r.found?r:n,b=m.width,v=m.height,g="fak"===o,y=g?"":"fa-w-".concat(Math.ceil(b/v*16)),O=[x.replacementClass,i?"".concat(x.familyPrefix,"-").concat(i):"",y].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),j={children:[],attributes:c({},f.attributes,{"data-prefix":o,"data-icon":i,class:O,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(v)})},E=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(b/v*16*.0625,"em")}:{};h&&(j.attributes["data-fa-i2svg"]=""),u&&j.children.push({tag:"title",attributes:{id:j.attributes["aria-labelledby"]||"title-".concat(d||G())},children:[u]});var w=c({},j,{prefix:o,iconName:i,main:n,mask:r,maskId:l,transform:a,symbol:s,styles:c({},E,f.styles)}),_=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,a=e.maskId,s=e.transform,u=o.width,l=o.icon,d=i.width,f=i.icon,p=J({transform:s,containerWidth:d,iconWidth:u}),h={tag:"rect",attributes:c({},Q,{fill:"white"})},m=l.children?{children:l.children.map(Z)}:{},b={tag:"g",attributes:c({},p.inner),children:[Z(c({tag:l.tag,attributes:c({},l.attributes,p.path)},m))]},v={tag:"g",attributes:c({},p.outer),children:[b]},g="mask-".concat(a||G()),y="clip-".concat(a||G()),O={tag:"mask",attributes:c({},Q,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,v]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},O]};return n.push(j,{tag:"rect",attributes:c({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},Q)}),{children:n,attributes:r}}(w):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=K(e.styles);if(i.length>0&&(n.style=i),Y(o)){var a=J({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:c({},a.outer),children:[{tag:"g",attributes:c({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:c({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(w),S=_.children,k=_.attributes;return w.children=S,w.attributes=k,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:c({},o,{id:!0===i?"".concat(t,"-").concat(x.familyPrefix,"-").concat(n):i}),children:r}]}]}(w):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(Y(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=K(c({},i,{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(w)}var te=function(){},ne=(x.measurePerformance&&v&&v.mark&&v.measure,function(e,t,n,r){var o,i,a,c=Object.keys(e),s=c.length,u=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[c[0]]):(o=0,a=n);o2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,i=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof S.hooks.addPack||o?S.styles[e]=c({},S.styles[e]||{},i):S.hooks.addPack(e,i),"fas"===e&&re("fa",t)}var oe=S.styles,ie=S.shims,ae=function(){var e=function(e){return ne(oe,(function(t,n,r){return t[r]=ne(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in oe;ne(ie,(function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:i},e}),{})};ae();S.styles;function ce(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function se(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?X(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(X(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(se).join(""),"")}var ue=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),t):t};function le(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}le.prototype=Object.create(Error.prototype),le.prototype.constructor=le;var de={fill:"currentColor"},fe={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},pe={tag:"path",attributes:c({},de,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},he=c({},fe,{attributeName:"opacity"});c({},de,{cx:"256",cy:"364",r:"28"}),c({},fe,{attributeName:"r",values:"28;14;28;28;14;28;"}),c({},he,{values:"1;0;1;1;0;1;"}),c({},de,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),c({},he,{values:"1;0;0;0;0;1;"}),c({},de,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),c({},he,{values:"0;0;1;1;0;0;"}),S.styles;function me(e){var t=e[0],n=e[1],r=s(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(x.familyPrefix,"-").concat(j.GROUP)},children:[{tag:"path",attributes:{class:"".concat(x.familyPrefix,"-").concat(j.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(x.familyPrefix,"-").concat(j.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}S.styles;function be(){var e="svg-inline--fa",t=x.familyPrefix,n=x.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if("fa"!==t||n!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),i=new RegExp("\\--".concat("fa","\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(i,"--".concat(t,"-")).replace(a,".".concat(n))}return r}function ve(){x.autoAddCss&&!Ee&&($(be()),Ee=!0)}function ge(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return se(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(g){var t=b.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return ce(je.definitions,n,r)||ce(S.styles,n,r)}var Oe,je=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?V:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,s=void 0===a?null:a,u=t.maskId,l=void 0===u?null:u,d=t.title,f=void 0===d?null:d,p=t.titleId,h=void 0===p?null:p,m=t.classes,b=void 0===m?[]:m,v=t.attributes,g=void 0===v?{}:v,y=t.styles,O=void 0===y?{}:y;if(e){var j=e.prefix,E=e.iconName,w=e.icon;return ge(c({type:"icon"},e),(function(){return ve(),x.autoA11y&&(f?g["aria-labelledby"]="".concat(x.replacementClass,"-title-").concat(h||G()):(g["aria-hidden"]="true",g.focusable="false")),ee({icons:{main:me(w),mask:s?me(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:j,iconName:E,transform:c({},V,r),symbol:i,title:f,maskId:l,titleId:h,extra:{attributes:g,styles:O,classes:b}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ye(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ye(r||{})),Oe(n,c({},t,{mask:r}))})}).call(this,n(53),n(212).setImmediate)},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(26);function o(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var o=Math.max(t-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===o.a.Ok?this.update({status:o.a.Exited}):this.update()},e.prototype.toJSON=function(){return Object(l.a)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(l.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),f=function(){function e(e,t,n){void 0===t&&(t=new u.a),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version=3?(i.a.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus(c.a.DeadlineExceeded),this.setTag("heartbeat","failed"),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;i.a.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(s.a);function f(e){if(e){var t=e.getScope();if(t)t.getTransaction()&&t.setSpan(void 0)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(3),o=n(70),i=n(250),a=n(26),c=n(23),s=n(41),u=n(63),l=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=Object(o.b)(),Object(a.g)(n,o.a)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return Object(r.b)(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new u.b(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=Object(r.a)({},e)},t.prototype.setMetadata=function(e){this.metadata=Object(r.a)(Object(r.a)({},this.metadata),e)},t.prototype.finish=function(t){var n,r,o,a,s,u=this;if(void 0===this.endTimestamp){if(this.name||(c.a.warn("Transaction has no name, falling back to ``."),this.name=""),e.prototype.finish.call(this,t),!0!==this.sampled)return c.a.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(null===(s=null===(o=null===(n=this._hub.getClient())||void 0===n?void 0:(r=n).getTransport)||void 0===o?void 0:(a=o.call(r)).recordLostEvent)||void 0===s||s.call(a,i.a.SampleRate,"transaction"));var l=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==u&&e.endTimestamp})):[];this._trimEnd&&l.length>0&&(this.endTimestamp=l.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var d={contexts:{trace:this.getTraceContext()},spans:l,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",debug_meta:this.metadata};return Object.keys(this._measurements).length>0&&(c.a.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),d.measurements=this._measurements),c.a.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(d)}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return Object(s.a)(Object(r.a)(Object(r.a)({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(u.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(85);function o(e,t){if(e){if("string"==typeof e)return Object(r.a)(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)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(28),o=n(52),i={nowSeconds:function(){return Date.now()/1e3}};var a=Object(o.b)()?function(){try{return Object(o.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.e)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),c=void 0===a?i:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},s=i.nowSeconds.bind(i),u=c.nowSeconds.bind(c),l=u,d=function(){var e=Object(r.e)().performance;if(e&&e.now){var t=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,i=o<36e5,a=e.timing&&e.timing.navigationStart,c="number"==typeof a?Math.abs(a+t-n):36e5;return i||c<36e5?o<=c?("timeOrigin",e.timeOrigin):("navigationStart",a):("dateNow",n)}"none"}()}).call(this,n(91)(e))},function(e,t,n){"use strict";var r=n(92);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.c}))},function(e,t,n){"use strict";var r=n(27);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(48)).default)(o.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=i},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n2){if(!l[e])return[e];e=l[e]}var t=e.split(""),n=Object(r.a)(t,2),o=n[0],i=n[1],a=s[o],c=u[i]||"";return Array.isArray(c)?c.map((function(e){return a+e})):[a+c]},c={},function(e){return void 0===c[e]&&(c[e]=a(e)),c[e]}),f=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function p(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function h(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function m(e){var t=p(e.theme);return Object.keys(e).map((function(n){if(-1===f.indexOf(n))return null;var r=h(d(n),t),i=e[n];return Object(o.b)(e,i,r)})).reduce(i.a,{})}m.propTypes={},m.filterProps=f;t.b=m},function(e){e.exports=JSON.parse('{"locale":"en","long":{"year":{"previous":"last year","current":"this year","next":"next year","past":{"one":"{0} year ago","other":"{0} years ago"},"future":{"one":"in {0} year","other":"in {0} years"}},"quarter":{"previous":"last quarter","current":"this quarter","next":"next quarter","past":{"one":"{0} quarter ago","other":"{0} quarters ago"},"future":{"one":"in {0} quarter","other":"in {0} quarters"}},"month":{"previous":"last month","current":"this month","next":"next month","past":{"one":"{0} month ago","other":"{0} months ago"},"future":{"one":"in {0} month","other":"in {0} months"}},"week":{"previous":"last week","current":"this week","next":"next week","past":{"one":"{0} week ago","other":"{0} weeks ago"},"future":{"one":"in {0} week","other":"in {0} weeks"}},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":{"one":"{0} hour ago","other":"{0} hours ago"},"future":{"one":"in {0} hour","other":"in {0} hours"}},"minute":{"current":"this minute","past":{"one":"{0} minute ago","other":"{0} minutes ago"},"future":{"one":"in {0} minute","other":"in {0} minutes"}},"second":{"current":"now","past":{"one":"{0} second ago","other":"{0} seconds ago"},"future":{"one":"in {0} second","other":"in {0} seconds"}}},"short":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}},"narrow":{"year":{"previous":"last yr.","current":"this yr.","next":"next yr.","past":"{0} yr. ago","future":"in {0} yr."},"quarter":{"previous":"last qtr.","current":"this qtr.","next":"next qtr.","past":{"one":"{0} qtr. ago","other":"{0} qtrs. ago"},"future":{"one":"in {0} qtr.","other":"in {0} qtrs."}},"month":{"previous":"last mo.","current":"this mo.","next":"next mo.","past":"{0} mo. ago","future":"in {0} mo."},"week":{"previous":"last wk.","current":"this wk.","next":"next wk.","past":"{0} wk. ago","future":"in {0} wk."},"day":{"previous":"yesterday","current":"today","next":"tomorrow","past":{"one":"{0} day ago","other":"{0} days ago"},"future":{"one":"in {0} day","other":"in {0} days"}},"hour":{"current":"this hour","past":"{0} hr. ago","future":"in {0} hr."},"minute":{"current":"this minute","past":"{0} min. ago","future":"in {0} min."},"second":{"current":"now","past":"{0} sec. ago","future":"in {0} sec."}},"now":{"now":{"current":"now","future":"in a moment","past":"just now"}},"mini":{"year":"{0}yr","month":"{0}mo","week":"{0}wk","day":"{0}d","hour":"{0}h","minute":"{0}m","second":"{0}s","now":"now"},"short-time":{"year":"{0} yr.","month":"{0} mo.","week":"{0} wk.","day":{"one":"{0} day","other":"{0} days"},"hour":"{0} hr.","minute":"{0} min.","second":"{0} sec."},"long-time":{"year":{"one":"{0} year","other":"{0} years"},"month":{"one":"{0} month","other":"{0} months"},"week":{"one":"{0} week","other":"{0} weeks"},"day":{"one":"{0} day","other":"{0} days"},"hour":{"one":"{0} hour","other":"{0} hours"},"minute":{"one":"{0} minute","other":"{0} minutes"},"second":{"one":"{0} second","other":"{0} seconds"}}}')},function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n"}catch(e){return""}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(3),o=n(26),i=n(79),a=n(87),c=n(28),s=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(r.e)(t._breadcrumbs),n._tags=Object(r.a)({},t._tags),n._extra=Object(r.a)({},t._extra),n._contexts=Object(r.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(r.e)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(r.a)(Object(r.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(r.a)(Object(r.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,o=this.getSpan();return(null===(e=o)||void 0===e?void 0:e.transaction)?null===(t=o)||void 0===t?void 0:t.transaction:(null===(r=null===(n=o)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?o.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(r.a)(Object(r.a)({},this._tags),t._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(o.h)(t)&&(t=t,this._tags=Object(r.a)(Object(r.a)({},this._tags),t.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),t.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var o=Object(r.a)({timestamp:Object(i.b)()},e);return this._breadcrumbs=Object(r.e)(this._breadcrumbs,[o]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(r.a)(Object(r.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(r.a)(Object(r.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(r.a)(Object(r.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(r.a)({trace:this._span.getTraceContext()},e.contexts);var o=null===(n=this._span.transaction)||void 0===n?void 0:n.name;o&&(e.tags=Object(r.a)({transaction:o},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(r.e)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(r.e)(u(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,i){var c=this;return void 0===i&&(i=0),new a.a((function(a,s){var u=e[i];if(null===t||"function"!=typeof u)a(t);else{var l=u(Object(r.a)({},t),n);Object(o.m)(l)?l.then((function(t){return c._notifyEventProcessors(e,t,n,i+1).then(a)})).then(null,s):c._notifyEventProcessors(e,l,n,i+1).then(a).then(null,s)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function u(){var e=Object(c.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function l(e){u().push(e)}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Explicit="explicitly_set",e.Sampler="client_sampler",e.Rate="client_rate",e.Inheritance="inheritance"}(r||(r={}))},,,,function(e,t,n){"use strict";n.r(t);var r=n(95);n.d(t,"borders",(function(){return r.h})),n.d(t,"border",(function(){return r.a})),n.d(t,"borderTop",(function(){return r.g})),n.d(t,"borderRight",(function(){return r.f})),n.d(t,"borderBottom",(function(){return r.b})),n.d(t,"borderLeft",(function(){return r.d})),n.d(t,"borderColor",(function(){return r.c})),n.d(t,"borderRadius",(function(){return r.e}));var o=n(74);n.d(t,"breakpoints",(function(){return o.a}));var i=n(32);n.d(t,"compose",(function(){return i.a}));var a=n(96);n.d(t,"styleFunctionSx",(function(){return a.b})),n.d(t,"css",(function(){return a.a}));var c=n(153);n.d(t,"display",(function(){return c.a}));var s=n(97);n.d(t,"flexbox",(function(){return s.d})),n.d(t,"flexBasis",(function(){return s.f})),n.d(t,"flexDirection",(function(){return s.g})),n.d(t,"flexWrap",(function(){return s.j})),n.d(t,"justifyContent",(function(){return s.k})),n.d(t,"alignItems",(function(){return s.b})),n.d(t,"alignContent",(function(){return s.a})),n.d(t,"order",(function(){return s.n})),n.d(t,"flex",(function(){return s.e})),n.d(t,"flexGrow",(function(){return s.h})),n.d(t,"flexShrink",(function(){return s.i})),n.d(t,"alignSelf",(function(){return s.c})),n.d(t,"justifyItems",(function(){return s.l})),n.d(t,"justifySelf",(function(){return s.m}));var u=n(98);n.d(t,"grid",(function(){return u.a})),n.d(t,"gridGap",(function(){return u.h})),n.d(t,"gridColumnGap",(function(){return u.g})),n.d(t,"gridRowGap",(function(){return u.j})),n.d(t,"gridColumn",(function(){return u.f})),n.d(t,"gridRow",(function(){return u.i})),n.d(t,"gridAutoFlow",(function(){return u.d})),n.d(t,"gridAutoColumns",(function(){return u.c})),n.d(t,"gridAutoRows",(function(){return u.e})),n.d(t,"gridTemplateColumns",(function(){return u.l})),n.d(t,"gridTemplateRows",(function(){return u.m})),n.d(t,"gridTemplateAreas",(function(){return u.k})),n.d(t,"gridArea",(function(){return u.b}));var l=n(99);n.d(t,"palette",(function(){return l.c})),n.d(t,"color",(function(){return l.b})),n.d(t,"bgcolor",(function(){return l.a}));var d=n(100);n.d(t,"positions",(function(){return d.b})),n.d(t,"position",(function(){return d.d})),n.d(t,"zIndex",(function(){return d.g})),n.d(t,"top",(function(){return d.f})),n.d(t,"right",(function(){return d.e})),n.d(t,"bottom",(function(){return d.a})),n.d(t,"left",(function(){return d.c}));var f=n(154);n.d(t,"shadows",(function(){return f.a}));var p=n(101);n.d(t,"sizing",(function(){return p.b})),n.d(t,"width",(function(){return p.j})),n.d(t,"maxWidth",(function(){return p.e})),n.d(t,"minWidth",(function(){return p.g})),n.d(t,"height",(function(){return p.c})),n.d(t,"maxHeight",(function(){return p.d})),n.d(t,"minHeight",(function(){return p.f})),n.d(t,"sizeWidth",(function(){return p.i})),n.d(t,"sizeHeight",(function(){return p.h})),n.d(t,"boxSizing",(function(){return p.a}));var h=n(103);n.d(t,"spacing",(function(){return h.b})),n.d(t,"createUnarySpacing",(function(){return h.a}));var m=n(9);n.d(t,"style",(function(){return m.a}));var b=n(102);n.d(t,"typography",(function(){return b.a})),n.d(t,"fontFamily",(function(){return b.b})),n.d(t,"fontSize",(function(){return b.c})),n.d(t,"fontStyle",(function(){return b.d})),n.d(t,"fontWeight",(function(){return b.e})),n.d(t,"letterSpacing",(function(){return b.f})),n.d(t,"lineHeight",(function(){return b.g})),n.d(t,"textAlign",(function(){return b.h}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),o=n(49);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";var r=n(4),o=n(2),i=n(0),a=n(5),c=n(8),s=i.forwardRef((function(e,t){var n=e.classes,c=e.className,s=e.component,u=void 0===s?"div":s,l=e.square,d=void 0!==l&&l,f=e.elevation,p=void 0===f?1:f,h=e.variant,m=void 0===h?"elevation":h,b=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(u,Object(o.a)({className:Object(a.a)(n.root,c,"outlined"===m?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},b))}));t.a=Object(c.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(s)},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,c="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,u=c||s||Function("return this")(),l=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return u.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var c=o.test(e);return c||i.test(e)?a(e.slice(2),c?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,c,s,u=0,l=!1,b=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function y(e){return u=e,c=setTimeout(j,t),l?g(e):a}function O(e){var n=e-s;return void 0===s||n>=t||n<0||b&&e-u>=i}function j(){var e=p();if(O(e))return E(e);c=setTimeout(j,function(e){var n=t-(e-s);return b?f(n,i-(e-u)):n}(e))}function E(e){return c=void 0,v&&r?g(e):(r=o=void 0,a)}function w(){var e=p(),n=O(e);if(r=arguments,o=this,s=e,n){if(void 0===c)return y(s);if(b)return c=setTimeout(j,t),g(s)}return void 0===c&&(c=setTimeout(j,t)),a}return t=m(t)||0,h(n)&&(l=!!n.leading,i=(b="maxWait"in n)?d(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),w.cancel=function(){void 0!==c&&clearTimeout(c),u=0,r=s=o=c=void 0},w.flush=function(){return void 0===c?a:E(p())},w}}).call(this,n(53))},function(e,t,n){"use strict";(function(e,r){var o,i=n(156);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.a=a}).call(this,n(53),n(91)(e))},function(e,t,n){"use strict";(function(e){var r=n(0),o=n.n(r),i=n(36),a=n(7),c=n.n(a),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var l=o.a.createContext||function(e,t){var n,o,a,l="__create-react-context-"+((s[a="__global_unique_id__"]=(s[a]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}Object(i.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,o=e.value;((i=r)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?n=0:(n="function"==typeof t?t(r,o):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var i,a},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[l]=c.a.object.isRequired,n);var f=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(i.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return f.contextTypes=((o={})[l]=c.a.object,o),{Provider:d,Consumer:f}};t.a=l}).call(this,n(53))},function(e,t,n){var r=n(207);e.exports=p,e.exports.parse=i,e.exports.compile=function(e,t){return c(i(e,t),t)},e.exports.tokensToFunction=c,e.exports.tokensToRegExp=f;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,r=[],i=0,a=0,c="",l=t&&t.delimiter||"/";null!=(n=o.exec(e));){var d=n[0],f=n[1],p=n.index;if(c+=e.slice(a,p),a=p+d.length,f)c+=f[1];else{var h=e[a],m=n[2],b=n[3],v=n[4],g=n[5],y=n[6],O=n[7];c&&(r.push(c),c="");var j=null!=m&&null!=h&&h!==m,E="+"===y||"*"===y,w="?"===y||"*"===y,x=n[2]||l,_=v||g;r.push({name:b||i++,prefix:m||"",delimiter:x,optional:w,repeat:E,partial:j,asterisk:!!O,pattern:_?u(_):O?".*":"[^"+s(x)+"]+?"})}}return a ".length,s=void 0;n&&o++<5&&!("html"===(s=i(n,t))||o>1&&a+r.length*c+s.length>=80);)r.push(s),a+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return""}}function i(e,t){var n,o,i,a,c,s,u,l=e,d=[];if(!l||!l.tagName)return"";d.push(l.tagName.toLowerCase());var f=(null===(n=t)||void 0===n?void 0:n.length)?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(null===(o=f)||void 0===o?void 0:o.length)f.forEach((function(e){d.push("["+e[0]+'="'+e[1]+'"]')}));else if(l.id&&d.push("#"+l.id),(i=l.className)&&Object(r.k)(i))for(a=i.split(/\s+/),u=0;ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n1)for(var n=1;n=0)return 1;return 0}();var o=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function i(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function s(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:s(c(e))}function u(e){return e&&e.referenceNode?e.referenceNode:e}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?l:10===e?d:l||d}function p(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,c,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(c=(a=s).nodeName)||"HTML"!==c&&p(a.firstElementChild)!==a?p(s):s;var u=h(e);return u.host?m(u.host,t):m(e,h(t).host)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=b(t,"top"),o=b(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var j=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},E=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=f(10),o="HTML"===t.nodeName,i=S(e),c=S(t),u=s(e),l=a(t),d=parseFloat(l.borderTopWidth),p=parseFloat(l.borderLeftWidth);n&&o&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var h=_({top:i.top-c.top-d,left:i.left-c.left-p,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var m=parseFloat(l.marginTop),b=parseFloat(l.marginLeft);h.top-=d-m,h.bottom-=d-m,h.left-=p-b,h.right-=p-b,h.marginTop=m,h.marginLeft=b}return(r&&!n?t.contains(u):t===u&&"BODY"!==u.nodeName)&&(h=v(h,t)),h}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=k(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:b(n),c=t?0:b(n,"left"),s={top:a-r.top+r.marginTop,left:c-r.left+r.marginLeft,width:o,height:i};return _(s)}function C(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=c(e);return!!n&&C(n)}function R(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?R(e):m(e,u(t));if("viewport"===r)i=T(a,o);else{var l=void 0;"scrollParent"===r?"BODY"===(l=s(c(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===r?e.ownerDocument.documentElement:r;var d=k(l,a,o);if("HTML"!==l.nodeName||C(a))i=d;else{var f=O(e.ownerDocument),p=f.height,h=f.width;i.top+=d.top-d.marginTop,i.bottom=p+d.top,i.left+=d.left-d.marginLeft,i.right=h+d.left}}var b="number"==typeof(n=n||0);return i.left+=b?n:n.left||0,i.top+=b?n:n.top||0,i.right-=b?n:n.right||0,i.bottom-=b?n:n.bottom||0,i}function A(e){return e.width*e.height}function P(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=I(n,r,i,o),c={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},s=Object.keys(c).map((function(e){return x({key:e},c[e],{area:A(c[e])})})).sort((function(e,t){return t.area-e.area})),u=s.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=u.length>0?u[0].key:s[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function N(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?R(t):m(t,u(n));return k(n,o,r)}function M(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function L(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function D(e,t,n){n=n.split("-")[0];var r=M(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",c=i?"left":"top",s=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[s]/2-r[s]/2,o[c]=n===c?t[c]-r[u]:t[L(c)],o}function B(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=B(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&i(n)&&(t.offsets.popper=_(t.offsets.popper),t.offsets.reference=_(t.offsets.reference),t=n(t,e))})),t}function z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=N(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=P(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function H(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),r=Z.slice(n+1).concat(Z.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function oe(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=a.indexOf(B(a,(function(e){return-1!==e.search(/,|\s/)})));a[c]&&-1===a[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,u=-1!==c?[a.slice(0,c).concat([a[c].split(s)[0]]),[a[c].split(s)[1]].concat(a.slice(c+1))]:[a];return(u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var c=void 0;switch(a){case"%p":c=n;break;case"%":case"%r":default:c=r}return _(c)[t]/100*i}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i}return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){X(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ie={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,c=-1!==["bottom","top"].indexOf(n),s=c?"left":"top",u=c?"width":"height",l={start:w({},s,i[s]),end:w({},s,i[s]+i[u]-a[u])};e.offsets.popper=x({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,c=r.split("-")[0],s=void 0;return s=X(+n)?[+n,0]:oe(n,i,a,c),"left"===c?(i.top+=s[0],i.left-=s[1]):"right"===c?(i.top+=s[0],i.left+=s[1]):"top"===c?(i.left+=s[0],i.top-=s[1]):"bottom"===c&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=H("transform"),o=e.instance.popper.style,i=o.top,a=o.left,c=o[r];o.top="",o.left="",o[r]="";var s=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=c,t.boundaries=s;var u=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]s[e]&&!t.escapeWithReference&&(r=Math.min(l[n],s[e]-("right"===e?l.width:l.height))),w({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=x({},l,d[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),c=a?"right":"bottom",s=a?"left":"top",u=a?"width":"height";return n[c]i(r[c])&&(e.offsets.popper[s]=i(r[c])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,c=i.popper,s=i.reference,u=-1!==["left","right"].indexOf(o),l=u?"height":"width",d=u?"Top":"Left",f=d.toLowerCase(),p=u?"left":"top",h=u?"bottom":"right",m=M(r)[l];s[h]-mc[h]&&(e.offsets.popper[f]+=s[f]+m-c[h]),e.offsets.popper=_(e.offsets.popper);var b=s[f]+s[l]/2-m/2,v=a(e.instance.popper),g=parseFloat(v["margin"+d]),y=parseFloat(v["border"+d+"Width"]),O=b-e.offsets.popper[f]-g-y;return O=Math.max(Math.min(c[l]-m,O),0),e.arrowElement=r,e.offsets.arrow=(w(n={},f,Math.round(O)),w(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(U(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=L(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,o];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(c,s){if(r!==c||a.length===s+1)return e;r=e.placement.split("-")[0],o=L(r);var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,f="left"===r&&d(u.right)>d(l.left)||"right"===r&&d(u.left)d(l.top)||"bottom"===r&&d(u.top)d(n.right),m=d(u.top)d(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&b,g=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(g&&"start"===i&&p||g&&"end"===i&&h||!g&&"start"===i&&m||!g&&"end"===i&&b),O=!!t.flipVariationsByContent&&(g&&"start"===i&&h||g&&"end"===i&&p||!g&&"start"===i&&b||!g&&"end"===i&&m),j=y||O;(f||v||j)&&(e.flipped=!0,(f||v)&&(r=a[s+1]),j&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=x({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),c=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(c?o[a?"width":"height"]:0),e.placement=L(t),e.offsets.popper=_(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=B(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};j(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=o(this.update.bind(this)),this.options=x({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=x({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return x({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&i(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var c=this.options.eventsEnabled;c&&this.enableEventListeners(),this.state.eventsEnabled=c}return E(e,[{key:"update",value:function(){return z.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Q,ae.Defaults=ie,t.a=ae}).call(this,n(53))},function(e,t,n){"use strict";var r=n(27);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(48)).default)(o.default.createElement("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"VpnKey");t.default=i},function(e,t,n){"use strict";var r=n(27);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(48)).default)(o.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");t.default=i},function(e,t,n){"use strict";var r=n(27);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(48)).default)(o.default.createElement("path",{d:"M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"}),"KeyboardBackspace");t.default=i},function(e,t,n){"use strict";var r=n(27);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(0)),i=(0,r(n(48)).default)(o.default.createElement("path",{transform:"scale(1.2, 1.2)",d:"M15.95 10.78c.03-.25.05-.51.05-.78s-.02-.53-.06-.78l1.69-1.32c.15-.12.19-.34.1-.51l-1.6-2.77c-.1-.18-.31-.24-.49-.18l-1.99.8c-.42-.32-.86-.58-1.35-.78L12 2.34c-.03-.2-.2-.34-.4-.34H8.4c-.2 0-.36.14-.39.34l-.3 2.12c-.49.2-.94.47-1.35.78l-1.99-.8c-.18-.07-.39 0-.49.18l-1.6 2.77c-.1.18-.06.39.1.51l1.69 1.32c-.04.25-.07.52-.07.78s.02.53.06.78L2.37 12.1c-.15.12-.19.34-.1.51l1.6 2.77c.1.18.31.24.49.18l1.99-.8c.42.32.86.58 1.35.78l.3 2.12c.04.2.2.34.4.34h3.2c.2 0 .37-.14.39-.34l.3-2.12c.49-.2.94-.47 1.35-.78l1.99.8c.18.07.39 0 .49-.18l1.6-2.77c.1-.18.06-.39-.1-.51l-1.67-1.32zM10 13c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Settings");t.default=i},function(e,t,n){e.exports=function(){"use strict";var e="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},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=o,this.iframesTimeout=i}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach((function(t){var n=e.filter((function(e){return e.contains(t)})).length>0;-1!==e.indexOf(t)||n||e.push(t)})),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var o=e.contentWindow;if(r=o.document,!o||!r)throw new Error("iframe inaccessible")}catch(e){n()}r&&t(r)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var r=this,o=!1,i=null,a=function a(){if(!o){o=!0,clearTimeout(i);try{r.isIframeBlank(e)||(e.removeEventListener("load",a),r.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",a),i=setTimeout(a,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,r=0;this.forEachIframe(e,(function(){return!0}),(function(e){r++,n.waitForIframes(e.querySelector("html"),(function(){--r||t()}))}),(function(e){e||t()}))}},{key:"forEachIframe",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=t.querySelectorAll("iframe"),c=a.length,s=0;a=Array.prototype.slice.call(a);var u=function(){--c<=0&&i(s)};c||u(),a.forEach((function(t){e.matches(t,o.exclude)?u():o.onIframeReady(t,(function(e){n(t)&&(s++,r(e)),u()}),u)}))}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,r){var o=!1,i=!1;return r.forEach((function(e,t){e.val===n&&(o=t,i=e.handled)})),this.compareNodeIframe(e,t,n)?(!1!==o||i?!1===o||i||(r[o].handled=!0):r.push({val:n,handled:!0}),!0):(!1===o&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,r){var o=this;e.forEach((function(e){e.handled||o.getIframeContents(e.val,(function(e){o.createInstanceOnIframe(e).forEachNode(t,n,r)}))}))}},{key:"iterateThroughNodes",value:function(e,t,n,r,o){for(var i,a=this,c=this.createIterator(t,e,r),s=[],u=[],l=void 0,d=void 0;i=void 0,i=a.getIteratorNode(c),d=i.prevNode,l=i.node;)this.iframes&&this.forEachIframe(t,(function(e){return a.checkIframeFilter(l,d,e,s)}),(function(t){a.createInstanceOnIframe(t).forEachNode(e,(function(e){return u.push(e)}),r)})),u.push(l);u.forEach((function(e){n(e)})),this.iframes&&this.handleOpenIframes(s,e,n,r),o()}},{key:"forEachNode",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=this.getContexts(),a=i.length;a||o(),i.forEach((function(i){var c=function(){r.iterateThroughNodes(e,i,t,n,(function(){--a<=0&&o()}))};r.iframes?r.waitForIframes(i,c):c()}))}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var o=!1;return n.every((function(t){return!r.call(e,t)||(o=!0,!1)})),o}return!1}}]),e}(),i=function(){function i(e){t(this,i),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(i,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":e(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var o in t)if(t.hasOwnProperty(o)){var i=t[o],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o),c="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i);""!==a&&""!==c&&(e=e.replace(new RegExp("("+this.escapeStr(a)+"|"+this.escapeStr(c)+")","gm"+n),r+"("+this.processSynomyms(a)+"|"+this.processSynomyms(c)+")"+r))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,(function(e){return"\\"===e.charAt(0)?"?":""}))).replace(/(?:\\)*\*/g,(function(e){return"\\"===e.charAt(0)?"*":""}))}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,(function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||""===r?e:e+"\0"}))}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],r=[];return e.split("").forEach((function(o){n.every((function(n){if(-1!==n.indexOf(o)){if(r.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),r.push(n)}return!0}))})),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,r="string"==typeof n?n:n.value,o="string"==typeof n?[]:n.limiters,i="";switch(o.forEach((function(e){i+="|"+t.escapeStr(e)})),r){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+i+"]*)";case"exactly":return"(^|\\s"+i+")("+e+")(?=$|\\s"+i+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach((function(e){t.opt.separateWordSearch?e.split(" ").forEach((function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)})):e.trim()&&-1===n.indexOf(e)&&n.push(e)})),{keywords:n.sort((function(e,t){return t.length-e.length})),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],r=0;return e.sort((function(e,t){return e.start-t.start})).forEach((function(e){var o=t.callNoMatchOnInvalidRanges(e,r),i=o.start,a=o.end;o.valid&&(e.start=i,e.length=a-i,n.push(e),r=a)})),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,r=void 0,o=!1;return e&&void 0!==e.start?(r=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?o=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:o}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var r=void 0,o=!0,i=n.length,a=t-i,c=parseInt(e.start,10)-a;return(r=(c=c>i?i:c)+parseInt(e.length,10))>i&&(r=i,this.log("End range automatically set to the max value of "+i)),c<0||r-c<0||c>i||r>i?(o=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(c,r).replace(/\s+/g,"")&&(o=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:r,valid:o}}},{key:"getTextNodes",value:function(e){var t=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})}),(function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),(function(){e({value:n,nodes:r})}))}},{key:"matchesExclude",value:function(e){return o.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var r=this.opt.element?this.opt.element:"mark",o=e.splitText(t),i=o.splitText(n-t),a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=o.textContent,o.parentNode.replaceChild(a,o),i}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,r,o){var i=this;e.nodes.every((function(a,c){var s=e.nodes[c+1];if(void 0===s||s.start>t){if(!r(a.node))return!1;var u=t-a.start,l=(n>a.end?a.end:n)-a.start,d=e.value.substr(0,a.start),f=e.value.substr(l+a.start);if(a.node=i.wrapRangeInTextNode(a.node,u,l),e.value=d+f,e.nodes.forEach((function(t,n){n>=c&&(e.nodes[n].start>0&&n!==c&&(e.nodes[n].start-=l),e.nodes[n].end-=l)})),n-=l,o(a.node.previousSibling,a.start),!(n>a.end))return!1;t=a.end}return!0}))}},{key:"wrapMatches",value:function(e,t,n,r,o){var i=this,a=0===t?0:t+1;this.getTextNodes((function(t){t.nodes.forEach((function(t){t=t.node;for(var o=void 0;null!==(o=e.exec(t.textContent))&&""!==o[a];)if(n(o[a],t)){var c=o.index;if(0!==a)for(var s=1;s Global error occured"),e.setStatus(i.a.InternalError))}},function(e,t,n){var r;window,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}([function(e,t){e.exports=function(e,t,n){var r;if(!e)return 0;if(n=n||e,e instanceof Array){for(r=0;r-1};h.prototype.append=function(e,t){e=d(e),t=f(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[d(e)]},h.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},h.prototype.set=function(e,t){this.map[d(e)]=f(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];O.prototype.clone=function(){return new O(this,{body:this._bodyInit})},y.call(O.prototype),y.call(E.prototype),E.prototype.clone=function(){return new E(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},E.error=function(){var e=new E(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];E.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new E(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=O,e.Response=E,e.fetch=function(e,t){return new Promise((function(n,o){var i=new O(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new E(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function b(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=b(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&r&&c(e))this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!s(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=g(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=b(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function j(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function E(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e){e.exports={name:"keen-tracking",version:"5.0.1",description:"Track events - custom user actions, clicks, pageviews, purchases.",main:"dist/node/keen-tracking.js",browser:"dist/keen-tracking.js",repository:{type:"git",url:"https://github.com/keen/keen-tracking.js.git"},scripts:{start:"NODE_ENV=development webpack-dev-server",test:"NODE_ENV=test jest && npm run test:node","test:node":"NODE_ENV=test TEST_ENV=node jest","test:watch":"NODE_ENV=test jest --watch","test:node:watch":"NODE_ENV=test TEST_ENV=node jest --watch",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:node","build:node":"TARGET=node NODE_ENV=production webpack -p",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist",preversion:"npm run build:node && npm run test",version:"npm run build && git add .",postversion:"git push && git push --tags && npm publish",demo:"node ./test/demo/index.node.js"},bugs:"https://github.com/keen/keen-tracking.js/issues",author:"Keen IO (https://keen.io/)",homepage:"https://keen.io",keywords:["Tracking","Tracker","Event Tracker","Event tracking","Track events","Page tracking","User tracking","Analytics event tracking","Analytics events","Analytics tracking","Custom events","Analytics","Stats","Statistics","Monitoring","Metrics","Pageviews","Segmentation","Funnel","Conversion","Log","Logger","Logging","Javascript events","Universal tracking","Click analytics"],contributors:["Dustin Larimer (https://github.com/dustinlarimer)","Eric Anderson (https://github.com/aroc)","Joe Wegner (http://www.wegnerdesign.com)","Alex Kleissner (https://github.com/hex337)","Adam Kasprowicz (https://github.com/adamkasprowicz)","Dariusz Łacheta (https://github.com/dariuszlacheta)"],license:"MIT",dependencies:{"component-emitter":"^1.2.0","js-cookie":"2.1.0","keen-core":"^0.1.3","promise-polyfill":"^8.0.0","whatwg-fetch":"^2.0.4"},devDependencies:{"babel-core":"^6.26.3","babel-jest":"^23.0.1","babel-loader":"^7.1.5","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","html-loader":"^0.5.5","html-webpack-plugin":"^3.2.0",jest:"^22.4.3","jest-fetch-mock":"^1.6.5",merge:"^1.2.1",nock:"^9.2.6","regenerator-runtime":"^0.11.1","replace-in-file":"^3.4.0","url-parse":"^1.4.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.14","xhr-mock":"^2.3.2"}}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o1?t.unshift(e.nodeName.toLowerCase()+":eq("+r+")"):t.unshift(e.nodeName.toLowerCase()),e=e.parentNode}return t.slice(1).join(" > ")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getWindowProfile=function(){var e,t,n;return"undefined"==typeof document?{}:(e=document.body||{},t=document.documentElement||{},n={height:"innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight,width:"innerWidth"in window?window.innerWidth:document.documentElement.offsetWidth,scrollHeight:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)||null},window.screen&&(n.ratio={height:window.screen.availHeight?parseFloat((window.innerHeight/window.screen.availHeight).toFixed(2)):null,width:window.screen.availWidth?parseFloat((window.innerWidth/window.screen.availWidth).toFixed(2)):null}),n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getScreenProfile=function(){var e,t;if("undefined"==typeof window||!window.screen)return{};e=["height","width","colorDepth","pixelDepth","availHeight","availWidth"],t={};for(var n=0;nwindow.innerHeight?"landscape":"portrait"},t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.MD5=function(e){return function(e){for(var t,n="0123456789ABCDEF",r="",o=0;o>>4&15)+n.charAt(15&t);return r}(function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}(function(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,l=271733878,d=0;d>2),n=0;n>5]|=(255&e.charCodeAt(n/8))<>>32-t}(u(u(t,e),u(r,i)),o),n)}function i(e,t,n,r,i,a,c){return o(t&n|~t&r,e,t,i,a,c)}function a(e,t,n,r,i,a,c){return o(t&r|n&~r,e,t,i,a,c)}function c(e,t,n,r,i,a,c){return o(t^n^r,e,t,i,a,c)}function s(e,t,n,r,i,a,c){return o(n^(t|~r),e,t,i,a,c)}function u(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e){return JSON.parse(JSON.stringify(e))}t.deepExtend=function e(t){for(var n=1;n0&&(0,c.default)(t,(function(t,n){var r="function"==typeof t?t():t;(0,i.deepExtend)(e,r)})),e};var o,i=n(14),a=n(0),c=(o=a)&&o.__esModule?o:{default:o};function s(e){this.emit("error","Event(s) not extended: "+e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLocalStorageAvailable=function(){try{return localStorage.setItem("test","test"),localStorage.removeItem("test"),!0}catch(e){return!1}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setOptOut=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];r.isLocalStorageAvailable&&(e?localStorage.setItem("optout",e):localStorage.removeItem("optout"))};var r=n(16)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return this instanceof c==0?new c(e):(this.capacity=0,this.config=r({},i.default.queue,e),this.events={},this.interval=0,this.timer=null,this)}(0,o.default)(c.prototype),c.prototype.check=function(){return((e=this).capacity>0&&e.interval>=e.config.interval||e.capacity>=e.config.capacity)&&this.flush(),0!==this.config.interval&&0!==this.capacity||this.pause(),this;var e},c.prototype.flush=function(){return this.emit("flush"),this.interval=0,this},c.prototype.pause=function(){return this.timer&&(clearInterval(this.timer),this.timer=null),this},c.prototype.start=function(){var e=this;return e.pause(),e.timer=setInterval((function(){e.interval++,e.check()}),1e3),e}},function(e,t,n){"use strict";(function(e){var r=n(5),o=setTimeout;function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void f((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,o}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&a._immediateFn((function(){e._handled||a._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t-1)&&(t.disabled||!f.disabled)&&f.name&&i.test(f.nodeName)&&!o.test(f.type)){var p=f.name,h=f.value;if("checkbox"!==f.type&&"radio"!==f.type||f.checked||(h=void 0),t.empty){if("checkbox"!==f.type||f.checked||(h=""),"radio"===f.type&&(l[f.name]||f.checked?f.checked&&(l[f.name]=!0):l[f.name]=!1),null==h&&"radio"==f.type)continue}else if(!h)continue;if("select-multiple"!==f.type)n=a(n,p,h);else{h=[];for(var m=f.options,b=!1,v=0;v1){if("number"==typeof(i=e({path:"/"},r.defaults,i)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=n.write?n.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,i.expires&&"; expires="+i.expires.toUTCString(),i.path&&"; path="+i.path,i.domain&&"; domain="+i.domain,i.secure?"; secure":""].join("")}t||(a={});for(var s=document.cookie?document.cookie.split("; "):[],u=/(%[0-9A-Z]{2})+/g,l=0;l=2?this.data[e]=t||null:"object"===(void 0===e?"undefined":r(e))&&1===arguments.length&&(0,i.default)(this.data,e),o.default.set(this.config.key,this.data,(0,i.default)(this.config.options,n||{})),this):this},c.prototype.expire=function(e){return e?o.default.set(this.config.key,this.data,(0,i.default)(this.config.options,{expires:e})):(o.default.remove(this.config.key),this.data={}),this},c.prototype.options=function(e){return arguments.length?(this.config.options="object"===(void 0===e?"undefined":r(e))?e:{},this):this.config.options},c.prototype.enabled=function(){return navigator.cookieEnabled}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=function(){return"undefined"!=typeof crypto&&crypto.getRandomValues?([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="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};t.getScrollState=function(e){var t="object"===(void 0===e?"undefined":r(e))?e:{},n=(0,a.default)({pixel:0,pixel_max:0,ratio:null,ratio_max:null},t);return void 0===("undefined"==typeof window?"undefined":r(window))&&void 0===("undefined"==typeof document?"undefined":r(document))||(n.pixel=(void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop)+(window.innerHeight||document.documentElement.clientHeight),n.pixel>n.pixel_max&&(n.pixel_max=n.pixel),n.ratio=parseFloat(Number(n.pixel/c()).toFixed(2)),n.ratio_max=parseFloat(Number(n.pixel_max/c()).toFixed(2))),n};var o,i=n(1),a=(o=i)&&o.__esModule?o:{default:o};function c(){var e=document.body,t=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)||null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomNodeProfile=function(e){return{action:e.action,class:e.className,href:o(e,"href"),id:o(e,"id"),event_key:o(e,"data-event-key"),method:e.method,name:e.name,node_name:e.nodeName,selector:(0,r.getDomNodePath)(e),text:o(e,"text"),title:o(e,"title"),type:e.type,x_position:e.offsetLeft||e.clientLeft||null,y_position:e.offsetTop||e.clientTop||null}};var r=n(10),o=function e(t,n){return t[n]?t[n]:t.hasAttribute&&t.hasAttribute(n)?t.getAttribute(n):t.parentNode?e(t.parentNode,n):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainName=function(e){var t=function(e){return(e.indexOf("://")>-1?e.split("/")[2]:e.split("/")[0]).split(":")[0].split("?")[0]}(e),n=t.split("."),r=n.length;return r>2&&(t=n[r-2]+"."+n[r-1],2==n[r-2].length&&2==n[r-1].length&&(t=n[r-3]+"."+t)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDatetimeIndex=function(e){var t=e||new Date;return{hour_of_day:t.getHours(),day_of_week:parseInt(1+t.getDay()),day_of_month:t.getDate(),month:parseInt(1+t.getMonth()),year:t.getFullYear()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBrowserProfile=function(){return{cookies:void 0!==navigator.cookieEnabled&&navigator.cookieEnabled,codeName:navigator.appCodeName,description:(document&&"function"==typeof document.querySelector&&(e=document.querySelector('meta[name="description"]')),e?e.content:""),language:navigator.language,name:navigator.appName,online:navigator.onLine,platform:navigator.platform,useragent:navigator.userAgent,version:navigator.appVersion,doNotTrack:navigator.doNotTrack,screen:(0,r.getScreenProfile)(),window:(0,o.getWindowProfile)()};var e};var r=n(12),o=n(11)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0?d:c(l),time_on_page_ms:f>0?f:s(l)},ip_address:"${keen.ip}",geo:{},user_agent:"${keen.user_agent}",tech:{profile:e},url:{full:window?window.location.href:"",info:{}},referrer:{initial:y,full:document?document.referrer:"",info:{}},time:{local:{},utc:{}},keen:{timestamp:(new Date).toISOString(),addons:j}}})),!0===u.recordClicks&&i.listener("a, a *").on("click",(function(e){var t=e.target,i={element:o.getDomNodeProfile(t),local_time_full:(new Date).toISOString()};if(!0===u.recordClicksPositionPointer){var a={x_position:e.pageX,y_position:e.pageY};i=r({},i,{pointer:a})}return u.catchError?n.recordEvent({collection:"clicks",event:i}).catch((function(e){u.catchError(e)})):n.recordEvent({collection:"clicks",event:i})})),!0===u.recordFormSubmits&&i.listener("form").on("submit",(function(e){var t=e.target,r={disabled:u.ignoreDisabledFormFields,ignoreTypes:u.ignoreFormFieldTypes},a={form:{action:t.action,fields:i.serializeForm(t,r),method:t.method},element:o.getDomNodeProfile(t),local_time_full:(new Date).toISOString()};return u.catchError?n.recordEvent({collection:"form_submissions",event:a}).catch((function(e){u.catchError(e)})):n.recordEvent({collection:"form_submissions",event:a})})),!0!==u.recordPageViews||u.recordPageViewsOnExit||(u.catchError?n.recordEvent({collection:"pageviews"}).catch((function(e){u.catchError(e)})):n.recordEvent({collection:"pageviews"})),u.recordPageViewsOnExit&&"undefined"!=typeof window&&window.addEventListener("beforeunload",(function(){n.config.requestType="beaconAPI",n.recordEvent({collection:"pageviews"})})),!0===u.recordElementViews&&"undefined"!=typeof IntersectionObserver){var E=new IntersectionObserver((function(e,t){e.forEach((function(e){if(e.isIntersecting){var t={element:o.getDomNodeProfile(e.target),local_time_full:(new Date).toISOString()};return u.catchError?n.recordEvent({collection:"element_views",event:t}).catch((function(e){u.catchError(e)})):n.recordEvent({collection:"element_views",event:t})}}))}),{threshold:1});document.querySelectorAll(".track-element-view").forEach((function(e){E.observe(e)})),n.observers.IntersectionObserver=E}return n}};var o,i=n(7),a=(o=i)&&o.__esModule?o:{default:o};function c(e){return Math.round(s(e)/1e3)}function s(e){return(new Date).getTime()-e.getTime()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0){e.queue.pause();var t=r({},e.queue.config),n=r({},e.queue.events);e.queue=(0,a.queue)(),e.queue.config=t,e.queue.on("flush",(function(){e.recordDeferredEvents()})),e.emit("recordDeferredEvents",n),e.recordEvents(n,(function(t,r){t&&e.emit("recordDeferredEventsError",t,n)}))}return e},c(n(9));var i=c(n(0)),a=n(18);function c(e){return e&&e.__esModule?e:{default:e}}function s(e){this.emit("error","Event(s) not deferred: "+e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFromCache=t.saveToCache=void 0;var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return s?Promise.resolve():c?(u=r({},u,e),new Promise((function(e,t){var n=self.indexedDB.open(u.dbName);n.onerror=function(t){c=!1,e()},n.onupgradeneeded=function(e){var t=e.target.result.createObjectStore(u.dbCollectionName,{keyPath:u.dbCollectionKey});t.createIndex(u.dbCollectionKey,u.dbCollectionKey,{unique:!0}),t.createIndex("expiryTime","expiryTime",{unique:!1})},n.onsuccess=function(t){(s=t.target.result).onerror=function(e){c=!1},e(s)}}))):Promise.resolve()}t.saveToCache=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(t).then((function(){var t=s.transaction(u.dbCollectionName,"readwrite").objectStore(u.dbCollectionName).add({hash:e,expiryTime:Date.now()+u.maxAge});t.onsuccess=function(e){},t.onerror=function(e){c=!1}}))},t.getFromCache=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(n).then((function(){return new Promise((function(r,o){if(!c)return r(null);var i=s.transaction(u.dbCollectionName,"readwrite").objectStore(u.dbCollectionName).index("expiryTime"),a=IDBKeyRange.upperBound(Date.now(),!0);i.openCursor(a).onsuccess=function(e){var t=e.target.result;t&&(s.transaction(u.dbCollectionName,"readwrite").objectStore(u.dbCollectionName).delete(e.target.result.value[u.dbCollectionKey]),t.continue())};var l=s.transaction(u.dbCollectionName,"readwrite").objectStore(u.dbCollectionName).index(u.dbCollectionKey).get(t);l.onsuccess=function(o){if(!o.target.result||o.target.result.expiryTimep}))}var h=s.find((function(e){return e.hash===l}));if(h){if(!(h.expiryTime&&h.expiryTime0?f():o(e)})).catch((function(e){if(e.code===DOMException.ABORT_ERR)return o(i.default.REQUEST_ABORTED);a>0?f():o(e)}))};function f(){u+=1,setTimeout((function(){d(a-u)}),2^u*c)}d(a-u)}));return d.abort=function(){l.abort()},d},n(2),n(6);var o=a(n(3)),i=a(n(34));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports={map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){"use strict";var t,n,r,o,i,a,c,s="",u=0,l=this.map;for(e=this.utf8.encode(e);u>2,i=(3&t)<<4|n>>4,a=isNaN(n)?64:(15&n)<<2|r>>6,c=isNaN(n)||isNaN(r)?64:63&r,s=s+l.charAt(o)+l.charAt(i)+l.charAt(a)+l.charAt(c);return s},decode:function(e){"use strict";var t,n,r,o,i,a,c="",s=0,u=this.map,l=String.fromCharCode;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");s>2,a=(3&r)<<6|(o=u.indexOf(e.charAt(s++))),c=c+(l(t<<2|n>>4)+(64!=r?l(i):""))+(64!=o?l(a):"");return this.utf8.decode(c)},utf8:{encode:function(e){"use strict";for(var t,n="",r=0,o=String.fromCharCode;r127&&t<2048?o(t>>6|192)+o(63&t|128):o(t>>12|224)+o(t>>6&63|128)+o(63&t|128);return n},decode:function(e){"use strict";for(var t,n="",r=0,o=String.fromCharCode;r191&&t<224?[o((31&t)<<6|63&e.charCodeAt(r+1)),r+=2][0]:[o((15&t)<<12|(63&e.charCodeAt(r+1))<<6|63&(c3=e.charCodeAt(r+2))),r+=3][0];return n}}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],l=!1,d=-1;function f(){l&&s&&(l=!1,s.length?u=s.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=c(f);l=!0;for(var t=u.length;t;){for(s=u,u=[];++d1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(38),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t2)){var i={};return(0,a.default)(e,(function(e,t){i[t]=i[t]||[],(0,a.default)(e,(function(e,r){var o={};(0,l.getExtendedEventBody)(o,n.extensions.events),(0,l.getExtendedEventBody)(o,n.extensions.collections[t]),(0,l.getExtendedEventBody)(o,[e]),i[t].push(o)}))})),this.emit("recordEvents",i),s.default.enabled?s.default.optedOut?Promise.resolve({created:!1,message:"Keen.optedOut is set to true."}):s.default.doNotTrack?Promise.resolve({created:!1,message:"Keen.doNotTrack is set to true."}):h.call(this,{url:r,extendedEventsHash:i,callback:t}):(g.call(this,"Keen.enabled is set to false.",t),!1)}g.call(this,"Incorrect arguments provided to #recordEvents method",t)}},n(2),n(6);var i=p(n(36)),a=p(n(0)),c=p(n(1)),s=p(n(9)),u=n(7),l=n(15),d=p(n(35)),f=p(n(33));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){var t=e.url,n=e.extendedEventsHash,r=e.callback,o=e.configObject,a=void 0===o?{}:o,c=e.eventCollection,s=(this.config,a.requestType||this.config.requestType);if(navigator&&navigator.sendBeacon&&"beaconAPI"===s)return navigator.sendBeacon(t+"?api_key="+this.writeKey(),JSON.stringify(n)),r&&r(),this;if("beacon"===s||"img"===s){var u=this.url("events",encodeURIComponent(c),{api_key:this.writeKey(),data:encodeURIComponent(i.default.encode(JSON.stringify(n))),modified:(new Date).getTime()});return u.length<("undefined"!=typeof window&&navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)?1900:16e3)?y.call(this,u,r):r&&r("Beacon URL length exceeds current browser limit, and XHR is not supported.",null),this}return"undefined"!=typeof fetch?m.call(this,"POST",t,n,r):this}function m(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=this,i=(0,d.default)(t,{method:e,body:n?JSON.stringify(n):"",mode:"cors",redirect:"follow",referrerPolicy:o.referrerPolicy()||"unsafe-url",headers:{Authorization:o.writeKey(),"Content-Type":"application/json","keen-sdk":"javascript-"+u.version},retry:o.config.retry});return i.catch((function(e){return void 0!==r&&r.call(o,e,null),o.emit("error",e),Promise.reject(e)})).then((function(e){return e.ok?e.json():e.json().then((function(t){return Promise.reject({error_code:t.error_code,body:t.message,status:e.status,ok:!1,statusText:e.statusText})}))})).then((function(e){return b(e)?(void 0!==r&&r.call(o,null,e),Promise.resolve(e)):(void 0!==r&&r.call(o,e,null),o.emit("error",e),Promise.reject(e))})),i}function b(e){return void 0!==e.created?!!e.created:0===Object.keys(e).map((function(t){return e[t].filter((function(e){return!e.success}))})).filter((function(e){return e.length>0})).length}function v(e){return this.projectId()?!!this.writeKey()||(g.call(this,"Keen.Client is missing a writeKey property.",e),!1):(g.call(this,"Keen.Client is missing a projectId property.",e),!1)}function g(e,t){var n="Event(s) not recorded: "+e;this.emit("error",n),t&&t.call(this,n,null)}function y(e,t){var n=this,r=document.createElement("img");r.onload=function(){if("naturalHeight"in this){if(this.naturalHeight+this.naturalWidth===0)return void this.onerror()}else if(this.width+this.height===0)return void this.onerror();t&&t.call(n)},r.onerror=function(){t&&t.call(n,"An error occurred!",null)},r.src=e+"&c=clv1"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listenerCore=void 0,o(n(8));var r=o(n(0));function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){document.addEventListener?document.addEventListener(e,t,!1):document.attachEvent("on"+e,t)}t.listenerCore=function(e){function t(e){if(e)return this instanceof t==0?new t(e):(this.selector=e,this)}function n(t){return function(n){var o,i;o=n||window.event,i=o.target||o.srcElement,"undefined"!==e.domListeners[t]&&(0,r.default)(e.domListeners[t],(function(e,n){!function(e,t){for(var n=(e.parentNode||document).querySelectorAll(t)||[],r=n.length;r--;)if(n[r]==e)return!0;return!1}(i,n)?"window"===n&&(0,r.default)(e,(function(e,t){e(o)})):(0,r.default)(e,(function(e,n){"click"===t&&"A"===i.nodeName?function(e,t,n){var r,o;if(void 0!==t.getAttribute?r=t.getAttribute("target"):t.target&&(r=t.target),"boolean"==typeof(o=n(e))&&!1===o||e.defaultPrevented||!1===e.returnValue)return e.preventDefault&&e.preventDefault(),e.returnValue=!1,!1;if("_blank"!==r&&"blank"!==r&&!e.metaKey&&!t.hasAttribute("download")&&(e.preventDefault&&e.preventDefault(),e.returnValue=!1,t.href&&"#"!==t.href&&t.href!==window.location+"#"))if(void 0!==o){if(navigator&&navigator.sendBeacon)return void(window.location=t.href);o.then((function(){window.location=t.href})).catch((function(e){window.location=t.href}))}else setTimeout((function(){window.location=t.href}),500)}(o,i,e):"submit"===t&&"FORM"===i.nodeName?function(e,t,n){var r=n(e);if("boolean"==typeof r&&!1===r||e.defaultPrevented||!1===e.returnValue)return e.preventDefault&&e.preventDefault(),e.returnValue=!1,!1;if(e.preventDefault&&e.preventDefault(),e.returnValue=!1,void 0!==r){if(navigator&&navigator.sendBeacon)return void t.submit();r.then((function(){t.submit()})).catch((function(e){t.submit()}))}else setTimeout((function(){t.submit()}),500)}(o,i,e):e(o)}))}))}}return e.domListeners=e.domListeners||{},t.prototype.on=function(t,r){var o=this;return 2!==arguments.length||"string"!=typeof t||"function"!=typeof r?this:(void 0===e.domListeners[t]&&(i(t,n(t)),e.domListeners[t]={}),e.domListeners[t][o.selector]=e.domListeners[t][o.selector]||[],e.domListeners[t][o.selector].push(r),o)},t.prototype.once=function(e,t){var n=this;function r(){return n.off(e,r),t.apply(n,arguments)}return r.fn=t,n.on(e,r),n},t.prototype.off=function(t,n){var o=this,i=[];if(2===arguments.length)(0,r.default)(e.domListeners[t][o.selector],(function(e,t){e!==n&&e.fn!==n&&i.push(e)})),e.domListeners[t][o.selector]=i;else if(1===arguments.length)try{delete e.domListeners[t][o.selector]}catch(n){e.domListeners[t][o.selector]=[]}else(0,r.default)(e.domListeners,(function(t,n){try{delete e.domListeners[n][o.selector]}catch(t){e.domListeners[n][o.selector]=function(){}}}));return o},t}},function(e,t,n){var r=n(0);n(1),e.exports=function(e){var t=[];return r(e,(function(e,n){"string"!=typeof e&&(e=JSON.stringify(e)),t.push(n+"="+encodeURIComponent(e))})),t.join("&")}},function(e,t){e.exports=function(e){for(var t,n={},r=/\+/g,o=/([^&=]+)=?([^&]*)/g,i=function(e){return decodeURIComponent(e.replace(r," "))},a=e.split("?")[1];t=o.exec(a);)n[i(t[1])]=i(t[2]);return n}},function(e,t,n){(function(t){(function(t){var r,o=t.Keen||void 0,i=n(0),a=n(1),c=n(43),s=n(42),u=n(8);function l(e){if(this instanceof l==0)return new l(e);this.configure(e),l.debug&&this.on("error",l.log),this.emit("ready"),l.emit("client",this)}function d(e){return void 0!==e}o&&void 0===o.resources&&(l.legacyVersion=o),u(l),u(l.prototype),a(l,{debug:!1,enabled:!0,loaded:!1,version:"__VERSION__"}),l.helpers=l.helpers||{},l.resources=l.resources||{},a(l.resources,{base:"{protocol}://{host}",version:"{protocol}://{host}/3.0",projects:"{protocol}://{host}/3.0/projects",projectId:"{protocol}://{host}/3.0/projects/{projectId}",events:"{protocol}://{host}/3.0/projects/{projectId}/events",queries:"{protocol}://{host}/3.0/projects/{projectId}/queries"}),l.utils=l.utils||{},a(l.utils,{each:i,extend:a,parseParams:c,serialize:s}),l.extendLibrary=function(e,t){var n=o||t;return d(n)&&d(n.resources)&&(i(n,(function(t,n){"object"==typeof t?(e[n]=e[n]||{},a(e[n],t)):e[n]=e[n]||t})),a(e.prototype,n.prototype)),e},l.log=function(e){l.debug&&"object"==typeof console&&console.log("[Keen]",e)},l.noConflict=function(){return void 0!==t.Keen&&(t.Keen=l.legacyVersion||o),l},l.ready=function(e){l.loaded?e():l.once("ready",e)},l.prototype.configure=function(e){var t=e||{};return this.config=this.config||{projectId:void 0,writeKey:void 0,host:"api.keen.io",protocol:"https",requestType:"jsonp",resources:a({},l.resources)},"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1&&(t.protocol=document.location.protocol.replace(":","")),t.host&&t.host.replace(/.*?:\/\//g,""),a(this.config,t),this},l.prototype.masterKey=function(e){return arguments.length?(this.config.masterKey=e?String(e):null,this):this.config.masterKey},l.prototype.projectId=function(e){return arguments.length?(this.config.projectId=e?String(e):null,this):this.config.projectId},l.prototype.resources=function(e){if(!arguments.length)return this.config.resources;var t=this;return"object"==typeof e&&i(e,(function(e,n){t.config.resources[n]=e||null})),t},l.prototype.url=function(e){var t,n=Array.prototype.slice.call(arguments,1),r=this.config.resources.base||"{protocol}://{host}";return t=e&&"string"==typeof e?this.config.resources[e]?this.config.resources[e]:r+e:r,i(this.config,(function(e,n){"object"!=typeof e&&(t=t.replace("{"+n+"}",e))})),i(n,(function(e,n){"string"==typeof e?t+="/"+e:"object"==typeof e&&(t+="?",i(e,(function(e,n){t+=n+"="+e+"&"})),t=t.slice(0,-1))})),t},r=function(){l.loaded=!0,l.emit("ready")},l.loaded||"undefined"==typeof document?r():(null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",(function e(){document.removeEventListener("DOMContentLoaded",e,!1),document.readyState="complete"}),!1),document.readyState="loading"),function e(t){/in/.test(document.readyState)?setTimeout((function(){e(t)}),9):t()}(r)),e.exports=l}).call(this,"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{})}).call(this,n(4))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeenTracking=t.Keen=t.keenGlobals=void 0;var r=S(n(9)),o=S(n(0)),i=S(n(1)),a=n(41),c=n(40),s=n(31),u=n(15),l=n(30),d=n(29),f=n(28),p=n(27),h=n(10),m=n(26),b=n(12),v=n(25),g=n(24),y=n(11),O=n(23),j=n(14),E=n(21),w=n(20),x=n(17),_=n(16);function S(e){return e&&e.__esModule?e:{default:e}}(0,i.default)(r.default.prototype,{recordEvent:c.recordEvent,recordEvents:c.recordEvents}),(0,i.default)(r.default.prototype,{deferEvent:s.deferEvent,deferEvents:s.deferEvents,queueCapacity:s.queueCapacity,queueInterval:s.queueInterval,recordDeferredEvents:s.recordDeferredEvents,setOptOut:x.setOptOut}),(0,i.default)(r.default.prototype,{extendEvent:u.extendEvent,extendEvents:u.extendEvents});var k=(0,l.initAutoTrackingCore)(r.default);(0,i.default)(r.default.prototype,{initAutoTracking:k}),(0,i.default)(r.default.helpers,{getBrowserProfile:d.getBrowserProfile,getDatetimeIndex:f.getDatetimeIndex,getDomainName:p.getDomainName,getDomNodePath:h.getDomNodePath,getDomNodeProfile:m.getDomNodeProfile,getScreenProfile:b.getScreenProfile,getScrollState:v.getScrollState,getUniqueId:g.getUniqueId,getWindowProfile:y.getWindowProfile});var T=(0,a.listenerCore)(r.default);(0,i.default)(r.default.utils,{cookie:O.cookie,deepExtend:j.deepExtend,listener:T,serializeForm:E.serializeForm,timer:w.timer}),r.default.listenTo=function(e){(0,o.default)(e,(function(e,t){var n=t.split(" "),r=n[0],o=n.slice(1,n.length).join(" ");return T(o).on(r,e)}))},t.keenGlobals=void 0,"undefined"!=typeof webpackKeenGlobals&&(t.keenGlobals=webpackKeenGlobals),_.isLocalStorageAvailable&&localStorage.getItem("optout")&&(r.default.optedOut=!0),"1"!==navigator.doNotTrack&&"yes"!==navigator.doNotTrack||(r.default.doNotTrack=!0);var C=t.Keen=r.default.extendLibrary(r.default);t.KeenTracking=C,t.default=C},function(e,t,n){e.exports=n(45)}])},e.exports=r()},function(e,t,n){"use strict";var r=n(12),o=n.n(r),i=n(1),a=n(0),c=n.n(a),s=n(16),u=n(4),l=n(2),d=n(5),f=n(8),p=n(13),h=n(254),m=n(10),b=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,c=void 0===i?"default":i,s=e.component,f=void 0===s?"button":s,p=e.disabled,b=void 0!==p&&p,v=e.disableElevation,g=void 0!==v&&v,y=e.disableFocusRipple,O=void 0!==y&&y,j=e.endIcon,E=e.focusVisibleClassName,w=e.fullWidth,x=void 0!==w&&w,_=e.size,S=void 0===_?"medium":_,k=e.startIcon,T=e.type,C=void 0===T?"button":T,R=e.variant,I=void 0===R?"text":R,A=Object(u.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=k&&a.createElement("span",{className:Object(d.a)(r.startIcon,r["iconSize".concat(Object(m.a)(S))])},k),N=j&&a.createElement("span",{className:Object(d.a)(r.endIcon,r["iconSize".concat(Object(m.a)(S))])},j);return a.createElement(h.a,Object(l.a)({className:Object(d.a)(r.root,r[I],o,"inherit"===c?r.colorInherit:"default"!==c&&r["".concat(I).concat(Object(m.a)(c))],"medium"!==S&&[r["".concat(I,"Size").concat(Object(m.a)(S))],r["size".concat(Object(m.a)(S))]],g&&r.disableElevation,b&&r.disabled,x&&r.fullWidth),component:f,disabled:b,focusRipple:!O,focusVisibleClassName:Object(d.a)(r.focusVisible,E),ref:t,type:C},A),a.createElement("span",{className:r.label},P,n,N))})),v=Object(f.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(p.c)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(p.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(p.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(p.c)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(p.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(p.c)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(p.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(b);function g(e){var t,n,r;return t=e,n=0,r=1,e=(Math.min(Math.max(n,t),r)-n)/(r-n),e=(e-=1)*e*e+1}var y=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,c=e.disableShrink,s=void 0!==c&&c,f=e.size,p=void 0===f?40:f,h=e.style,b=e.thickness,v=void 0===b?3.6:b,y=e.value,O=void 0===y?0:y,j=e.variant,E=void 0===j?"indeterminate":j,w=Object(u.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),x={},_={},S={};if("determinate"===E||"static"===E){var k=2*Math.PI*((44-v)/2);x.strokeDasharray=k.toFixed(3),S["aria-valuenow"]=Math.round(O),"static"===E?(x.strokeDashoffset="".concat(((100-O)/100*k).toFixed(3),"px"),_.transform="rotate(-90deg)"):(x.strokeDashoffset="".concat((function(e){return e*e}((100-O)/100)*k).toFixed(3),"px"),_.transform="rotate(".concat((270*g(O/70)).toFixed(3),"deg)"))}return a.createElement("div",Object(l.a)({className:Object(d.a)(n.root,r,"inherit"!==i&&n["color".concat(Object(m.a)(i))],{indeterminate:n.indeterminate,static:n.static}[E]),style:Object(l.a)({width:p,height:p},_,h),ref:t,role:"progressbar"},S,w),a.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},a.createElement("circle",{className:Object(d.a)(n.circle,s&&n.circleDisableShrink,{indeterminate:n.circleIndeterminate,static:n.circleStatic}[E]),style:x,cx:44,cy:44,r:(44-v)/2,fill:"none",strokeWidth:v})))})),O=Object(f.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(y),j=a.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,c=e.component,s=void 0===c?"hr":c,f=e.flexItem,p=void 0!==f&&f,h=e.light,m=void 0!==h&&h,b=e.orientation,v=void 0===b?"horizontal":b,g=e.role,y=void 0===g?"hr"!==s?"separator":void 0:g,O=e.variant,j=void 0===O?"fullWidth":O,E=Object(u.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return a.createElement(s,Object(l.a)({className:Object(d.a)(o.root,i,"fullWidth"!==j&&o[j],r&&o.absolute,p&&o.flexItem,m&&o.light,"vertical"===v&&o.vertical),role:y,ref:t},E))})),E=Object(f.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(p.c)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(j),w=n(302),x=n(300),S=n(145),k=n(255),T=a.forwardRef((function(e,t){var n=e.disableUnderline,r=e.classes,o=e.fullWidth,i=void 0!==o&&o,c=e.inputComponent,s=void 0===c?"input":c,f=e.multiline,p=void 0!==f&&f,h=e.type,m=void 0===h?"text":h,b=Object(u.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(k.a,Object(l.a)({classes:Object(l.a)({},r,{root:Object(d.a)(r.root,!n&&r.underline),underline:null}),fullWidth:i,inputComponent:s,multiline:p,ref:t,type:m},b))}));T.muiName="Input";var C=Object(f.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(T),R=n(15),I=n(173),A=n(58);function P(){return Object(I.a)()||A.a}var N=a.forwardRef((function(e,t){e.children;var n=e.classes,r=e.className,o=e.label,i=e.labelWidth,c=e.notched,s=e.style,f=Object(u.a)(e,["children","classes","className","label","labelWidth","notched","style"]),p="rtl"===P().direction?"right":"left";if(void 0!==o)return a.createElement("fieldset",Object(l.a)({"aria-hidden":!0,className:Object(d.a)(n.root,r),ref:t,style:s},f),a.createElement("legend",{className:Object(d.a)(n.legendLabelled,c&&n.legendNotched)},o?a.createElement("span",null,o):a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var h=i>0?.75*i+8:.01;return a.createElement("fieldset",Object(l.a)({"aria-hidden":!0,style:Object(l.a)(Object(R.a)({},"padding".concat(Object(m.a)(p)),8),s),className:Object(d.a)(n.root,r),ref:t},f),a.createElement("legend",{className:n.legend,style:{width:c?h:.01}},a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),M=Object(f.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(N),L=a.forwardRef((function(e,t){var n=e.classes,r=e.fullWidth,o=void 0!==r&&r,i=e.inputComponent,c=void 0===i?"input":i,s=e.label,f=e.labelWidth,p=void 0===f?0:f,h=e.multiline,m=void 0!==h&&h,b=e.notched,v=e.type,g=void 0===v?"text":v,y=Object(u.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return a.createElement(k.a,Object(l.a)({renderSuffix:function(e){return a.createElement(M,{className:n.notchedOutline,label:s,labelWidth:p,notched:void 0!==b?b:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(l.a)({},n,{root:Object(d.a)(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:c,multiline:m,ref:t,type:g},y))}));L.muiName="Input";var D=Object(f.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(L),B=n(46),F=n(65);function z(){return a.useContext(F.a)}var U=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=(e.color,e.component),c=void 0===i?"label":i,s=(e.disabled,e.error,e.filled,e.focused,e.required,Object(u.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),f=z(),p=Object(B.a)({props:e,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]});return a.createElement(c,Object(l.a)({className:Object(d.a)(r.root,r["color".concat(Object(m.a)(p.color||"primary"))],o,p.disabled&&r.disabled,p.error&&r.error,p.filled&&r.filled,p.focused&&r.focused,p.required&&r.required),ref:t},s),n,p.required&&a.createElement("span",{"aria-hidden":!0,className:Object(d.a)(r.asterisk,p.error&&r.error)}," ","*"))})),H=Object(f.a)((function(e){return{root:Object(l.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(U),W=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disableAnimation,i=void 0!==o&&o,c=(e.margin,e.shrink),s=(e.variant,Object(u.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),f=z(),p=c;void 0===p&&f&&(p=f.filled||f.focused||f.adornedStart);var h=Object(B.a)({props:e,muiFormControl:f,states:["margin","variant"]});return a.createElement(H,Object(l.a)({"data-shrink":p,className:Object(d.a)(n.root,r,f&&n.formControl,!i&&n.animated,p&&n.shrink,"dense"===h.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[h.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),q=Object(f.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(W),V=n(66);function $(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var G=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,c=void 0===i?"primary":i,s=e.component,f=void 0===s?"div":s,p=e.disabled,h=void 0!==p&&p,b=e.error,v=void 0!==b&&b,g=e.fullWidth,y=void 0!==g&&g,O=e.focused,j=e.hiddenLabel,E=void 0!==j&&j,w=e.margin,x=void 0===w?"none":w,_=e.required,S=void 0!==_&&_,k=e.size,T=e.variant,C=void 0===T?"standard":T,R=Object(u.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),I=a.useState((function(){var e=!1;return n&&a.Children.forEach(n,(function(t){if($(t,["Input","Select"])){var n=$(t,["Select"])?t.props.input:t;n&&Object(V.a)(n.props)&&(e=!0)}})),e})),A=I[0],P=I[1],N=a.useState((function(){var e=!1;return n&&a.Children.forEach(n,(function(t){$(t,["Input","Select"])&&Object(V.b)(t.props,!0)&&(e=!0)})),e})),M=N[0],L=N[1],D=a.useState(!1),B=D[0],z=D[1],U=void 0!==O?O:B;h&&U&&z(!1);var H=a.useCallback((function(){L(!0)}),[]),W={adornedStart:A,setAdornedStart:P,color:c,disabled:h,error:v,filled:M,focused:U,fullWidth:y,hiddenLabel:E,margin:("small"===k?"dense":void 0)||x,onBlur:function(){z(!1)},onEmpty:a.useCallback((function(){L(!1)}),[]),onFilled:H,onFocus:function(){z(!0)},registerEffect:void 0,required:S,variant:C};return a.createElement(F.a.Provider,{value:W},a.createElement(f,Object(l.a)({className:Object(d.a)(r.root,o,"none"!==x&&r["margin".concat(Object(m.a)(x))],y&&r.fullWidth),ref:t},R),n))})),X=Object(f.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(G),K=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,c=void 0===i?"p":i,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(u.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),f=z(),p=Object(B.a)({props:e,muiFormControl:f,states:["variant","margin","disabled","error","filled","focused","required"]});return a.createElement(c,Object(l.a)({className:Object(d.a)(r.root,("filled"===p.variant||"outlined"===p.variant)&&r.contained,o,p.disabled&&r.disabled,p.error&&r.error,p.filled&&r.filled,p.focused&&r.focused,p.required&&r.required,"dense"===p.margin&&r.marginDense),ref:t},s)," "===n?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),Y=Object(f.a)((function(e){return{root:Object(l.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(K),J=n(301),Q=n(21),Z=n(49),ee=n(105);n(43);function te(e){return e&&e.ownerDocument||document}var ne=n(20),re=n.n(ne),oe=n(50);function ie(e){return te(e).defaultView||window}function ae(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(be.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&ge(e,o)}))}function je(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Ee(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=te(e);return t.body===e?ie(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=ve();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(ye(i)+a,"px"),n=te(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(ye(e)+a,"px")}))}var c=i.parentElement,s="HTML"===c.nodeName&&"scroll"===window.getComputedStyle(c)["overflow-y"]?c:i;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var we=function(){function e(){Object(he.a)(this,e),this.modals=[],this.containers=[]}return Object(me.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ge(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Oe(t,e.mountNode,e.modalRef,r,!0);var o=je(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=je(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Ee(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=je(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ge(e.modalRef,!0),Oe(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&ge(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var xe=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,c=e.disableRestoreFocus,s=void 0!==c&&c,u=e.getDoc,l=e.isEnabled,d=e.open,f=a.useRef(),p=a.useRef(null),h=a.useRef(null),m=a.useRef(),b=a.useRef(null),v=a.useCallback((function(e){b.current=ne.findDOMNode(e)}),[]),g=Object(ue.a)(t.ref,v),y=a.useRef();return a.useEffect((function(){y.current=d}),[d]),!y.current&&d&&"undefined"!=typeof window&&(m.current=u().activeElement),a.useEffect((function(){if(d){var e=te(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){e.hasFocus()&&!i&&l()&&!f.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():f.current=!1},n=function(t){!i&&l()&&9===t.keyCode&&e.activeElement===b.current&&(f.current=!0,t.shiftKey?h.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,l,d]),a.createElement(a.Fragment,null,a.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),a.cloneElement(t,{ref:g}),a.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))},_e={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Se=a.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Object(u.a)(e,["invisible","open"]);return o?a.createElement("div",Object(l.a)({"aria-hidden":!0,ref:t},i,{style:Object(l.a)({},_e.root,r?_e.invisible:{},i.style)})):null}));var ke=new we,Te=a.forwardRef((function(e,t){var n=Object(I.a)(),r=Object(ce.a)({name:"MuiModal",props:Object(l.a)({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Se:o,c=r.BackdropProps,s=r.children,d=r.closeAfterTransition,f=void 0!==d&&d,p=r.container,h=r.disableAutoFocus,m=void 0!==h&&h,b=r.disableBackdropClick,v=void 0!==b&&b,g=r.disableEnforceFocus,y=void 0!==g&&g,O=r.disableEscapeKeyDown,j=void 0!==O&&O,E=r.disablePortal,w=void 0!==E&&E,x=r.disableRestoreFocus,_=void 0!==x&&x,S=r.disableScrollLock,k=void 0!==S&&S,T=r.hideBackdrop,C=void 0!==T&&T,R=r.keepMounted,A=void 0!==R&&R,P=r.manager,N=void 0===P?ke:P,M=r.onBackdropClick,L=r.onClose,D=r.onEscapeKeyDown,B=r.onRendered,F=r.open,z=Object(u.a)(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),U=a.useState(!0),H=U[0],W=U[1],q=a.useRef({}),V=a.useRef(null),$=a.useRef(null),G=Object(ue.a)($,t),X=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return te(V.current)},Y=function(){return q.current.modalRef=$.current,q.current.mountNode=V.current,q.current},J=function(){N.mount(Y(),{disableScrollLock:k}),$.current.scrollTop=0},Q=Object(fe.a)((function(){var e=function(e){return e="function"==typeof e?e():e,ne.findDOMNode(e)}(p)||K().body;N.add(Y(),e),$.current&&J()})),Z=a.useCallback((function(){return N.isTopModal(Y())}),[N]),ee=Object(fe.a)((function(e){V.current=e,e&&(B&&B(),F&&Z()?J():ge($.current,!0))})),re=a.useCallback((function(){N.remove(Y())}),[N]);if(a.useEffect((function(){return function(){re()}}),[re]),a.useEffect((function(){F?Q():X&&f||re()}),[F,re,X,f,Q]),!A&&!F&&(!X||H))return null;var oe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:pe.a}),ie={};return void 0===s.props.tabIndex&&(ie.tabIndex=s.props.tabIndex||"-1"),X&&(ie.onEnter=ae((function(){W(!1)}),s.props.onEnter),ie.onExited=ae((function(){W(!0),f&&re()}),s.props.onExited)),a.createElement(de,{ref:ee,container:p,disablePortal:w},a.createElement("div",Object(l.a)({ref:G,onKeyDown:function(e){"Escape"===e.key&&Z()&&(D&&D(e),j||(e.stopPropagation(),L&&L(e,"escapeKeyDown")))},role:"presentation"},z,{style:Object(l.a)({},oe.root,!F&&H?oe.hidden:{},z.style)}),C?null:a.createElement(i,Object(l.a)({open:F,onClick:function(e){e.target===e.currentTarget&&(M&&M(e),!v&&L&&L(e,"backdropClick"))}},c)),a.createElement(xe,{disableEnforceFocus:y,disableAutoFocus:m,disableRestoreFocus:_,getDoc:K,isEnabled:Z,open:F},a.cloneElement(s,ie))))})),Ce=n(33),Re=n(36),Ie=!1,Ae=n(78),Pe=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(Re.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:re.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[re.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||Ie?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:re.a.findDOMNode(this);t&&!Ie?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:re.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(Ce.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return c.a.createElement(Ae.a.Provider,{value:null},"function"==typeof n?n(e,r):c.a.cloneElement(c.a.Children.only(n),r))},t}(c.a.Component);function Ne(){}Pe.contextType=Ae.a,Pe.propTypes={},Pe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ne,onEntering:Ne,onEntered:Ne,onExit:Ne,onExiting:Ne,onExited:Ne},Pe.UNMOUNTED="unmounted",Pe.EXITED="exited",Pe.ENTERING="entering",Pe.ENTERED="entered",Pe.EXITING="exiting";var Me=Pe,Le=function(e){return e.scrollTop};function De(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function Be(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Fe={entering:{opacity:1,transform:Be(1)},entered:{opacity:1,transform:"none"}},ze=a.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,c=e.onEnter,s=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,h=e.onExiting,m=e.style,b=e.timeout,v=void 0===b?"auto":b,g=e.TransitionComponent,y=void 0===g?Me:g,O=Object(u.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),j=a.useRef(),E=a.useRef(),w=P(),x=w.unstable_strictMode&&!o,_=a.useRef(null),S=Object(ue.a)(n.ref,t),k=Object(ue.a)(x?_:void 0,S),T=function(e){return function(t,n){if(e){var r=x?[_.current,t]:[t,n],o=Object(Q.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},C=T(d),R=T((function(e,t){Le(e);var n,r=De({style:m,timeout:v},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===v?(n=w.transitions.getAutoHeightDuration(e.clientHeight),E.current=n):n=o,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:i}),w.transitions.create("transform",{duration:.666*n,delay:i})].join(","),c&&c(e,t)})),I=T(s),A=T(h),N=T((function(e){var t,n=De({style:m,timeout:v},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===v?(t=w.transitions.getAutoHeightDuration(e.clientHeight),E.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Be(.75),f&&f(e)})),M=T(p);return a.useEffect((function(){return function(){clearTimeout(j.current)}}),[]),a.createElement(y,Object(l.a)({appear:!0,in:i,nodeRef:x?_:void 0,onEnter:R,onEntered:I,onEntering:C,onExit:N,onExited:M,onExiting:A,addEndListener:function(e,t){var n=x?e:t;"auto"===v&&(j.current=setTimeout(n,E.current||0))},timeout:"auto"===v?null:v},O),(function(e,t){return a.cloneElement(n,Object(l.a)({style:Object(l.a)({opacity:0,transform:Be(.75),visibility:"exited"!==e||i?void 0:"hidden"},Fe[e],m,n.props.style),ref:k},t))}))}));ze.muiSupportAuto=!0;var Ue=ze,He=n(124);function We(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function qe(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ve(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function $e(e){return"function"==typeof e?e():e}var Ge=a.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,c=e.anchorPosition,s=e.anchorReference,f=void 0===s?"anchorEl":s,p=e.children,h=e.classes,m=e.className,b=e.container,v=e.elevation,g=void 0===v?8:v,y=e.getContentAnchorEl,O=e.marginThreshold,j=void 0===O?16:O,E=e.onEnter,w=e.onEntered,x=e.onEntering,_=e.onExit,S=e.onExited,k=e.onExiting,T=e.open,C=e.PaperProps,R=void 0===C?{}:C,I=e.transformOrigin,A=void 0===I?{vertical:"top",horizontal:"left"}:I,P=e.TransitionComponent,N=void 0===P?Ue:P,M=e.transitionDuration,L=void 0===M?"auto":M,D=e.TransitionProps,B=void 0===D?{}:D,F=Object(u.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=a.useRef(),U=a.useCallback((function(e){if("anchorPosition"===f)return c;var t=$e(r),n=(t&&1===t.nodeType?t:te(z.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+We(n,o),left:n.left+qe(n,i.horizontal)}}),[r,i.horizontal,i.vertical,c,f]),H=a.useCallback((function(e){var t=0;if(y&&"anchorEl"===f){var n=y(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[i.vertical,f,y]),W=a.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:We(e,A.vertical)+t,horizontal:qe(e,A.horizontal)}}),[A.horizontal,A.vertical]),q=a.useCallback((function(e){var t=H(e),n={width:e.offsetWidth,height:e.offsetHeight},o=W(n,t);if("none"===f)return{top:null,left:null,transformOrigin:Ve(o)};var i=U(t),a=i.top-o.vertical,c=i.left-o.horizontal,s=a+n.height,u=c+n.width,l=ie($e(r)),d=l.innerHeight-j,p=l.innerWidth-j;if(ad){var m=s-d;a-=m,o.vertical+=m}if(cp){var v=u-p;c-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(c),"px"),transformOrigin:Ve(o)}}),[r,f,U,H,W,j]),V=a.useCallback((function(){var e=z.current;if(e){var t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[q]),$=a.useCallback((function(e){z.current=ne.findDOMNode(e)}),[]);a.useEffect((function(){T&&V()})),a.useImperativeHandle(n,(function(){return T?{updatePosition:function(){V()}}:null}),[T,V]),a.useEffect((function(){if(T){var e=Object(oe.a)((function(){V()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,V]);var G=L;"auto"!==L||N.muiSupportAuto||(G=void 0);var X=b||(r?te($e(r)).body:void 0);return a.createElement(Te,Object(l.a)({container:X,open:T,ref:t,BackdropProps:{invisible:!0},className:Object(d.a)(h.root,m)},F),a.createElement(N,Object(l.a)({appear:!0,in:T,onEnter:E,onEntered:w,onExit:_,onExited:S,onExiting:k,timeout:G},B,{onEntering:ae((function(e,t){x&&x(e,t),V()}),B.onEntering)}),a.createElement(He.a,Object(l.a)({elevation:g,ref:$},R,{className:Object(d.a)(h.paper,R.className)}),p)))})),Xe=Object(f.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Ge);var Ke=a.createContext({}),Ye=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,c=void 0===i?"ul":i,s=e.dense,f=void 0!==s&&s,p=e.disablePadding,h=void 0!==p&&p,m=e.subheader,b=Object(u.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),v=a.useMemo((function(){return{dense:f}}),[f]);return a.createElement(Ke.Provider,{value:v},a.createElement(c,Object(l.a)({className:Object(d.a)(r.root,o,f&&r.dense,!h&&r.padding,m&&r.subheader),ref:t},b),m,n))})),Je=Object(f.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ye);function Qe(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Ze(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function et(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function tt(e,t,n,r,o,i){for(var a=!1,c=o(e,t,!!t&&n);c;){if(c===e.firstChild){if(a)return;a=!0}var s=!r&&(c.disabled||"true"===c.getAttribute("aria-disabled"));if(c.hasAttribute("tabindex")&&et(c,i)&&!s)return void c.focus();c=o(e,c,n)}}var nt="undefined"==typeof window?a.useEffect:a.useLayoutEffect,rt=a.forwardRef((function(e,t){var n=e.actions,r=e.autoFocus,o=void 0!==r&&r,i=e.autoFocusItem,c=void 0!==i&&i,s=e.children,d=e.className,f=e.disabledItemsFocusable,p=void 0!==f&&f,h=e.disableListWrap,m=void 0!==h&&h,b=e.onKeyDown,v=e.variant,g=void 0===v?"selectedMenu":v,y=Object(u.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),O=a.useRef(null),j=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nt((function(){o&&O.current.focus()}),[o]),a.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!O.current.style.width;if(e.clientHeight0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var c=r&&!o.repeating&&et(r,o);o.previousKeyMatched&&(c||tt(t,r,!1,p,Qe,o))?e.preventDefault():o.previousKeyMatched=!1}b&&b(e)},tabIndex:o?0:-1},y),_)})),ot={vertical:"top",horizontal:"right"},it={vertical:"top",horizontal:"left"},at=a.forwardRef((function(e,t){var n=e.autoFocus,r=void 0===n||n,o=e.children,i=e.classes,c=e.disableAutoFocusItem,s=void 0!==c&&c,f=e.MenuListProps,p=void 0===f?{}:f,h=e.onClose,m=e.onEntering,b=e.open,v=e.PaperProps,g=void 0===v?{}:v,y=e.PopoverClasses,O=e.transitionDuration,j=void 0===O?"auto":O,E=e.variant,w=void 0===E?"selectedMenu":E,x=Object(u.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),_=P(),S=r&&!s&&b,k=a.useRef(null),T=a.useRef(null),C=-1;a.Children.map(o,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===C)&&(C=t))}));var R=a.Children.map(o,(function(e,t){return t===C?a.cloneElement(e,{ref:function(t){T.current=ne.findDOMNode(t),Object(se.a)(e.ref,t)}}):e}));return a.createElement(Xe,Object(l.a)({getContentAnchorEl:function(){return T.current},classes:y,onClose:h,onEntering:function(e,t){k.current&&k.current.adjustStyleForScrollbar(e,_),m&&m(e,t)},anchorOrigin:"rtl"===_.direction?ot:it,transformOrigin:"rtl"===_.direction?ot:it,PaperProps:Object(l.a)({},g,{classes:Object(l.a)({},g.classes,{root:i.paper})}),open:b,ref:t,transitionDuration:j},x),a.createElement(rt,Object(l.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:k,autoFocus:r&&(-1===C||s),autoFocusItem:S,variant:w},p,{className:Object(d.a)(i.list,p.className)}),R))})),ct=Object(f.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(at);function st(e){var t=e.controlled,n=e.default,r=(e.name,e.state,a.useRef(void 0!==t).current),o=a.useState(n),i=o[0],c=o[1];return[r?t:i,a.useCallback((function(e){r||c(e)}),[])]}function ut(e,t){return"object"===Object(Z.a)(t)&&null!==t?e===t:String(e)===String(t)}var lt=a.forwardRef((function(e,t){var n=e["aria-label"],r=e.autoFocus,o=e.autoWidth,i=e.children,c=e.classes,s=e.className,f=e.defaultValue,p=e.disabled,h=e.displayEmpty,b=e.IconComponent,v=e.inputRef,g=e.labelId,y=e.MenuProps,O=void 0===y?{}:y,j=e.multiple,E=e.name,w=e.onBlur,x=e.onChange,_=e.onClose,S=e.onFocus,k=e.onOpen,T=e.open,C=e.readOnly,R=e.renderValue,I=e.SelectDisplayProps,A=void 0===I?{}:I,P=e.tabIndex,N=(e.type,e.value),M=e.variant,L=void 0===M?"standard":M,D=Object(u.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),B=st({controlled:N,default:f,name:"Select"}),F=Object(Q.a)(B,2),z=F[0],U=F[1],H=a.useRef(null),W=a.useState(null),q=W[0],$=W[1],G=a.useRef(null!=T).current,X=a.useState(),K=X[0],Y=X[1],J=a.useState(!1),Z=J[0],ne=J[1],re=Object(ue.a)(t,v);a.useImperativeHandle(re,(function(){return{focus:function(){q.focus()},node:H.current,value:z}}),[q,z]),a.useEffect((function(){r&&q&&q.focus()}),[r,q]),a.useEffect((function(){if(q){var e=te(q).getElementById(g);if(e){var t=function(){getSelection().isCollapsed&&q.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[g,q]);var oe,ie,ae=function(e,t){e?k&&k(t):_&&_(t),G||(Y(o?null:q.clientWidth),ne(e))},ce=a.Children.toArray(i),se=function(e){return function(t){var n;if(j||ae(!1,t),j){n=Array.isArray(z)?z.slice():[];var r=z.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),z!==n&&(U(n),x&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:E}}),x(t,e)))}},le=null!==q&&(G?T:Z);delete D["aria-invalid"];var de=[],fe=!1;(Object(V.b)({value:z})||h)&&(R?oe=R(z):fe=!0);var pe=ce.map((function(e){if(!a.isValidElement(e))return null;var t;if(j){if(!Array.isArray(z))throw new Error(Object(ee.a)(2));(t=z.some((function(t){return ut(t,e.props.value)})))&&fe&&de.push(e.props.children)}else(t=ut(z,e.props.value))&&fe&&(ie=e.props.children);return t&&!0,a.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:se(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));fe&&(oe=j?de.join(", "):ie);var he,me=K;!o&&G&&q&&(me=q.clientWidth),he=void 0!==P?P:p?null:0;var be=A.id||(E?"mui-component-select-".concat(E):void 0);return a.createElement(a.Fragment,null,a.createElement("div",Object(l.a)({className:Object(d.a)(c.root,c.select,c.selectMenu,c[L],s,p&&c.disabled),ref:$,tabIndex:he,role:"button","aria-disabled":p?"true":void 0,"aria-expanded":le?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[g,be].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ae(!0,e))}},onMouseDown:p||C?null:function(e){0===e.button&&(e.preventDefault(),q.focus(),ae(!0,e))},onBlur:function(e){!le&&w&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:z,name:E}}),w(e))},onFocus:S},A,{id:be}),function(e){return null==e||"string"==typeof e&&!e.trim()}(oe)?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):oe),a.createElement("input",Object(l.a)({value:Array.isArray(z)?z.join(","):z,name:E,ref:H,"aria-hidden":!0,onChange:function(e){var t=ce.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=ce[t];U(n.props.value),x&&x(e,n)}},tabIndex:-1,className:c.nativeInput,autoFocus:r},D)),a.createElement(b,{className:Object(d.a)(c.icon,c["icon".concat(Object(m.a)(L))],le&&c.iconOpen,p&&c.disabled)}),a.createElement(ct,Object(l.a)({id:"menu-".concat(E||""),anchorEl:q,open:le,onClose:function(e){ae(!1,e)}},O,{MenuListProps:Object(l.a)({"aria-labelledby":g,role:"listbox",disableListWrap:!0},O.MenuListProps),PaperProps:Object(l.a)({},O.PaperProps,{style:Object(l.a)({minWidth:me},null!=O.PaperProps?O.PaperProps.style:null)})}),pe))})),dt=n(146);function ft(e,t){var n=function(t,n){return c.a.createElement(dt.a,Object(l.a)({ref:n},t),e)};return n.muiName=dt.a.muiName,c.a.memo(c.a.forwardRef(n))}var pt=ft(a.createElement("path",{d:"M7 10l5 5 5-5z"})),ht=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.disabled,i=e.IconComponent,c=e.inputRef,s=e.variant,f=void 0===s?"standard":s,p=Object(u.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return a.createElement(a.Fragment,null,a.createElement("select",Object(l.a)({className:Object(d.a)(n.root,n.select,n[f],r,o&&n.disabled),disabled:o,ref:c||t},p)),e.multiple?null:a.createElement(i,{className:Object(d.a)(n.icon,n["icon".concat(Object(m.a)(f))],o&&n.disabled)}))})),mt=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},bt=a.createElement(S.a,null),vt=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.IconComponent,i=void 0===o?pt:o,c=e.input,s=void 0===c?bt:c,d=e.inputProps,f=(e.variant,Object(u.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=z(),h=Object(B.a)({props:e,muiFormControl:p,states:["variant"]});return a.cloneElement(s,Object(l.a)({inputComponent:ht,inputProps:Object(l.a)({children:n,classes:r,IconComponent:i,variant:h.variant,type:void 0},d,s?s.props.inputProps:{}),ref:t},f))}));vt.muiName="Select";Object(f.a)(mt,{name:"MuiNativeSelect"})(vt);var gt=mt,yt=a.createElement(S.a,null),Ot=a.createElement(C,null),jt=a.forwardRef((function e(t,n){var r=t.autoWidth,o=void 0!==r&&r,i=t.children,c=t.classes,s=t.displayEmpty,d=void 0!==s&&s,f=t.IconComponent,p=void 0===f?pt:f,h=t.id,m=t.input,b=t.inputProps,v=t.label,g=t.labelId,y=t.labelWidth,O=void 0===y?0:y,j=t.MenuProps,E=t.multiple,w=void 0!==E&&E,x=t.native,_=void 0!==x&&x,S=t.onClose,k=t.onOpen,T=t.open,C=t.renderValue,R=t.SelectDisplayProps,I=t.variant,A=void 0===I?"standard":I,P=Object(u.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),N=_?ht:lt,M=z(),L=Object(B.a)({props:t,muiFormControl:M,states:["variant"]}).variant||A,F=m||{standard:yt,outlined:a.createElement(D,{label:v,labelWidth:O}),filled:Ot}[L];return a.cloneElement(F,Object(l.a)({inputComponent:N,inputProps:Object(l.a)({children:i,IconComponent:p,variant:L,type:void 0,multiple:w},_?{id:h}:{autoWidth:o,displayEmpty:d,labelId:g,MenuProps:j,onClose:S,onOpen:k,open:T,renderValue:C,SelectDisplayProps:Object(l.a)({id:h},R)},b,{classes:b?Object(J.a)({baseClasses:c,newClasses:b.classes,Component:e}):c},m?m.props.inputProps:{}),ref:n},P))}));jt.muiName="Select";var Et=Object(f.a)(gt,{name:"MuiSelect"})(jt),wt={standard:S.a,filled:C,outlined:D},xt=a.forwardRef((function(e,t){var n=e.autoComplete,r=e.autoFocus,o=void 0!==r&&r,i=e.children,c=e.classes,s=e.className,f=e.color,p=void 0===f?"primary":f,h=e.defaultValue,m=e.disabled,b=void 0!==m&&m,v=e.error,g=void 0!==v&&v,y=e.FormHelperTextProps,O=e.fullWidth,j=void 0!==O&&O,E=e.helperText,w=e.hiddenLabel,x=e.id,_=e.InputLabelProps,S=e.inputProps,k=e.InputProps,T=e.inputRef,C=e.label,R=e.multiline,I=void 0!==R&&R,A=e.name,P=e.onBlur,N=e.onChange,M=e.onFocus,L=e.placeholder,D=e.required,B=void 0!==D&&D,F=e.rows,z=e.rowsMax,U=e.select,H=void 0!==U&&U,W=e.SelectProps,V=e.type,$=e.value,G=e.variant,K=void 0===G?"standard":G,J=Object(u.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var Q={};if("outlined"===K&&(_&&void 0!==_.shrink&&(Q.notched=_.shrink),C)){var Z,ee=null!==(Z=null==_?void 0:_.required)&&void 0!==Z?Z:B;Q.label=a.createElement(a.Fragment,null,C,ee&&" *")}H&&(W&&W.native||(Q.id=void 0),Q["aria-describedby"]=void 0);var te=E&&x?"".concat(x,"-helper-text"):void 0,ne=C&&x?"".concat(x,"-label"):void 0,re=wt[K],oe=a.createElement(re,Object(l.a)({"aria-describedby":te,autoComplete:n,autoFocus:o,defaultValue:h,fullWidth:j,multiline:I,name:A,rows:F,rowsMax:z,type:V,value:$,id:x,inputRef:T,onBlur:P,onChange:N,onFocus:M,placeholder:L,inputProps:S},Q,k));return a.createElement(X,Object(l.a)({className:Object(d.a)(c.root,s),disabled:b,error:g,fullWidth:j,hiddenLabel:w,ref:t,required:B,color:p,variant:K},J),C&&a.createElement(q,Object(l.a)({htmlFor:x,id:ne},_),C),H?a.createElement(Et,Object(l.a)({"aria-describedby":te,id:x,labelId:ne,value:$,input:oe},W),i):oe,E&&a.createElement(Y,Object(l.a)({id:te},y),E))})),_t=Object(f.a)({root:{}},{name:"MuiTextField"})(xt),St=n(176);var kt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(St.a)(e,Object(l.a)({defaultTheme:A.a},t))},Tt=n(22),Ct=n(6),Rt=n(24),It=n.n(Rt),At=n(11),Pt=n.n(At);function Nt(e){return{type:Tt.c,token:e}}function Mt(e,t,n){return{type:Tt.b,token:e,name:t,email:n}}function Lt(e){return{type:Tt.f,site:e}}function Dt(){return function(e,t){e({type:Tt.d})}}function Bt(e){var t=It.a.get("adthriveAuthObj"),n=t&&t.token;return function(t,r){var o="".concat(Ct.o.GET_BASE_URL("ADTHRIVE_API_BASE_URL")).concat(Ct.o.ADTHRIVE_SITES_ENDPOINT(),"?sort=name");return fetch(o,{method:"GET",headers:{Authorization:"Bearer ".concat(n)}}).then((function(e){return e.json()})).then((function(n){var r;t((r=n.data,{type:Tt.g,sites:r})),Pt.a.isFunction(e)&&e()})).catch((function(e){console.log("something went wrong getting adthrive sites")}))}}var Ft=n(253);function zt(e){return{type:Tt.h,isLoading:e}}function Ut(e){return{type:Tt.a,briefs:e}}function Ht(e){return{type:Tt.e,activeBrief:e}}function Wt(){var e=It.a.get("topicToken");return function(t,n){return fetch(Ct.o.GET_BASE_URL("TOPIC_BASE_URL")+Ct.o.GET_BRIEFS,{method:"GET",headers:{Authorization:"Bearer ".concat(e)}}).then((function(e){return e.json()})).then((function(e){if(e.error)throw e.error.message;return t(Ut(e))})).catch((function(e){throw e}))}}function qt(){var e=It.a.get("adthriveAuthObj"),t=e&&e.token;return function(e,n){return e(zt(!0)),fetch(Ct.o.GET_BASE_URL("ADTHRIVE_API_BASE_URL")+Ct.o.ADTHRIVE_GET_BRIEFS(n().auth.activeSite.id),{method:"GET",headers:{Authorization:"Bearer ".concat(t)}}).then((function(e){return e.json()})).then((function(t){if(t.errors)throw t.errors;try{return t.data=_.sortBy(t.data,(function(e){return-1*new Date(e.createdAt).getTime()})),e(Ut(t))}catch(n){return e(Ut(t))}})).catch((function(t){return e(Dt()),t}))}}function Vt(e){return function(t,n){return fetch(Ct.o.GET_BASE_URL("TOPIC_BASE_URL")+Ct.o.GET_BRIEFS+"".concat(e),{method:"GET"}).then((function(e){return e.json()})).then((function(e){console.log(e),e.report.recommended_topics=e.report.recommended_topics.map((function(e){return e.covered=!1,e}));var r=Object.assign({},n().briefs.activeBrief,e);return t(Ht(r))})).catch((function(e){console.log(e)}))}}var $t=kt({root:{"& .MuiInputBase-input":{borderRaduis:"4px",border:"none",boxShadow:"0px 1px 6px #7784945e",padding:"5px 10px",margin:0},"& .MuiInputBase-input:focus":{boxShadow:"none",outline:"none"}}});var Gt=function(e){var t=$t().root,n=Object(s.b)(),r=Object(Ft.c)(),a=React.useState(),c=o()(a,2),u=c[0],l=c[1],d=React.useState(),f=o()(d,2),p=f[0],h=f[1],m=React.useState(!1),b=o()(m,2),g=b[0],y=b[1];return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"column",alignItems:"center",justify:"center",spacing:1,style:{position:"absolute",top:"8rem"}},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold",textAlign:"center"}},Ct.j.SIGN_IN_TEXT),Object(i.createElement)("p",null,"(for non-AdThrive users)")),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(_t,{className:t,id:"standard-full-width",label:Ct.j.EMAIL_TEXTFIELD_LABAL_TEXT,style:{margin:8},placeholder:Ct.j.EMAIL_TEXTFIELD_PLACEMENT_TEXT,type:"email",fullWidth:!0,value:u,onChange:function(e){l(e.target.value)},margin:"normal",InputLabelProps:{shrink:!0}})),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(_t,{className:t,id:"standard-full-width",label:Ct.j.PASSWORD_TEXTFIELD_LABAL_TEXT,type:"password",value:p,onChange:function(e){h(e.target.value)},style:{margin:8},placeholder:Ct.j.PASSWORD_TEXTFIELD_PLACEMENT_TEXT,fullWidth:!0,margin:"normal",InputLabelProps:{shrink:!0}})),Object(i.createElement)(w.a,{item:!0,alignItems:"center",justify:"center",style:{textAlign:"center"}},Object(i.createElement)(v,{variant:"contained",color:"primary",size:"small",disabled:g,onClick:function(){u&&p&&(y(!0),n(function(e,t,n,r,o){return function(i,a){return fetch(Ct.o.GET_BASE_URL("TOPIC_BASE_URL")+Ct.o.LOGIN_ENDPOINT+"?email=".concat(encodeURIComponent(e),"&password=").concat(encodeURIComponent(t)),{method:"GET"}).then((function(e){return e.json()})).then((function(e){i(Nt(e.token)),Pt.a.isFunction(o)&&o()})).catch((function(e){r(!1),n("Invalid Email/Password")}))}}(u,p,e.openSnackbar,y,(function(){window.AP.tanalytics.identify({email:u,legacy:!0}),window.AP.tanalytics.track("User Login (Legacy)"),n(Wt()),r.push({pathname:"/dashboard_legacy"})}))))}},g?Object(i.createElement)(O,{size:24}):Ct.j.SIGN_IN_TEXT)),Object(i.createElement)(w.a,{item:!0,align:"center"},Object(i.createElement)(E,null),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)("a",{variant:"subtitle2",onClick:function(){r.push({pathname:"/login_adthrive",state:{openSnackbar:e.openSnackbar}})},className:"link",style:{textDecoration:"underline",cursor:"pointer"}},"Log in (AdThrive)")),Object(i.createElement)(w.a,{item:!0,style:{marginTop:"6px"}},Object(i.createElement)("a",{variant:"subtitle2",onClick:function(){r.push({pathname:"/load_brief",state:{openSnackbar:e.openSnackbar}})},className:"link",style:{textDecoration:"underline",cursor:"pointer"}},Ct.j.LOAD_BRIEF_BUTTON_TEXT))),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)("div",{style:{margin:"20px",backgroundColor:"white",padding:"10px",borderRadius:"4px",boxShadow:"0px 1px 6px #7784945e"}},Object(i.createElement)("span",{style:{fontWeight:"bold"}},"Are you an AdThrive Publisher?"),Object(i.createElement)("p",{style:{marginTop:"10px",marginBottom:"0"}},"Watch ",Object(i.createElement)("a",{href:"https://vimeo.com/594907722",target:"_blank"},"this short video")," to learn how to use this plugin with your AdThrive account."))))},Xt=kt({root:{"& .MuiInputBase-input":{borderRaduis:"4px",border:"none",boxShadow:"0px 1px 6px #7784945e",padding:"5px 10px",margin:0},"& .MuiInputBase-input:focus":{boxShadow:"none",outline:"none"}}});var Kt=function(e){Xt().root;var t=Object(s.b)(),n=Object(Ft.c)(),r=React.useState(),a=o()(r,2),c=(a[0],a[1],React.useState()),u=o()(c,2),l=(u[0],u[1],React.useState(!1)),d=o()(l,2),f=d[0],p=d[1];return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"column",alignItems:"center",justify:"center",spacing:1,style:{paddingTop:"200px",position:"absolute"}},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold",textAlign:"center"}},Ct.i.SIGN_IN_TEXT)),Object(i.createElement)(w.a,{item:!0,alignItems:"center",justify:"center",style:{textAlign:"center"}},Object(i.createElement)(v,{variant:"contained",color:"primary",size:"small",disabled:f,onClick:function(){t(function(e,t){return function(n,r){var o="".concat(Ct.o.GET_BASE_URL("ADTHRIVE_PUBDASH_BASE_URL")).concat(Ct.o.ADTHRIVE_PUBDASH_LOGIN_ENDPOINT).concat(/\?/.test(Ct.o.GET_BASE_URL("ADTHRIVE_PUBDASH_BASE_URL"))?"&":"?","plugin=topic");window.open(o,"AdThrive Login","width=600,height=700,left=100,top=100");window.addEventListener("message",(function(r){console.log("RECEIVED MESSAGE",r),window.removeEventListener("message");var o=r.data,i=o.token,a=o.name,c=o.email;n(Mt(i,a,c)),e(!1),Pt.a.isFunction(t)&&t()}))}}(p,(function(){n.push("/choose_site"),window.AP.tanalytics.track("User Login")})))}},f?Object(i.createElement)(O,{size:24}):"Sign in with Google")),Object(i.createElement)(w.a,{item:!0,style:{textAlign:"center"}},Object(i.createElement)(E,{style:{marginTop:"10px",marginBottom:"10px"}}),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)("a",{variant:"subtitle2",onClick:function(){n.push({pathname:"/load_brief",state:{openSnackbar:e.openSnackbar}})},className:"link",style:{textDecoration:"underline",cursor:"pointer"}},Ct.i.LOAD_BRIEF_BUTTON_TEXT)),Object(i.createElement)(w.a,{item:!0,style:{marginTop:"6px"}},Object(i.createElement)("a",{variant:"subtitle2",onClick:function(){n.push({pathname:"/login_legacy"})},className:"link",style:{textDecoration:"underline",cursor:"pointer",color:"#7b97b1",display:"none"}},"Log in (Legacy)"))),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)("div",{style:{margin:"20px",backgroundColor:"white",padding:"10px",borderRadius:"4px",boxShadow:"0px 1px 6px #7784945e"}},Object(i.createElement)("span",{style:{fontWeight:"bold"}},"Are you an AdThrive Publisher?"),Object(i.createElement)("p",{style:{marginTop:"10px",marginBottom:"0"}},"Watch ",Object(i.createElement)("a",{href:"https://vimeo.com/594907722",target:"_blank"},"this short video")," to learn how to use this plugin with your AdThrive account."))))},Yt=n(35),Jt=n.n(Yt),Qt=ft(a.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));var Zt=a.forwardRef((function(e,t){var n=e.alt,r=e.children,o=e.classes,i=e.className,c=e.component,s=void 0===c?"div":c,f=e.imgProps,p=e.sizes,h=e.src,m=e.srcSet,b=e.variant,v=void 0===b?"circle":b,g=Object(u.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),y=null,O=function(e){var t=e.src,n=e.srcSet,r=a.useState(!1),o=r[0],i=r[1];return a.useEffect((function(){if(t||n){i(!1);var e=!0,r=new Image;return r.src=t,r.srcSet=n,r.onload=function(){e&&i("loaded")},r.onerror=function(){e&&i("error")},function(){e=!1}}}),[t,n]),o}({src:h,srcSet:m}),j=h||m,E=j&&"error"!==O;return y=E?a.createElement("img",Object(l.a)({alt:n,src:h,srcSet:m,sizes:p,className:o.img},f)):null!=r?r:j&&n?n[0]:a.createElement(Qt,{className:o.fallback}),a.createElement(s,Object(l.a)({className:Object(d.a)(o.root,o.system,o[v],i,!E&&o.colorDefault),ref:t},g),y)})),en=Object(f.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(Zt),tn=n(81),nn=n.n(tn);var rn=function(e){return Object(a.useEffect)((function(){var t=jQuery(jQuery(".topic-sidebar").closest(".interface-interface-skeleton__sidebar")[0]||jQuery("#usetopicData")[0]);e.open?t.addClass("topic-noscroll"):t.removeClass("topic-noscroll")}),[e.open]),Object(i.createElement)(Te,{open:e.open,onClose:e.onClose,container:function(){return jQuery(".topic-wp-plugin")[0]},className:"topic-plugin-modal",BackdropProps:{style:{position:"absolute"}}},Object(i.createElement)("div",{className:"topic-plugin-modal-container",onClick:e.onClose},Object(i.createElement)("div",{className:"topic-plugin-modal-content",onClick:function(e){e.stopPropagation()}},Object(i.createElement)(nn.a,{className:"topic-plugin-modal-close",onClick:e.onClose}),e.children)))};var on=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?gn(Cn,--kn):0,_n--,10===Tn&&(_n=1,xn--),Tn}function Pn(){return Tn=kn2||Dn(Tn)>3?"":" "}function Hn(e,t){for(;--t&&Pn()&&!(Tn<48||Tn>102||Tn>57&&Tn<65||Tn>70&&Tn<97););return Ln(e,Mn()+(t<6&&32==Nn()&&32==Pn()))}function Wn(e,t){for(;Pn()&&e+Tn!==57&&(e+Tn!==84||47!==Nn()););return"/*"+Ln(t,kn-1)+"*"+pn(47===e?e:Pn())}function qn(e){for(;!Dn(Nn());)Pn();return Ln(e,kn)}function Vn(e){return Fn(function e(t,n,r,o,i,a,c,s,u){var l=0,d=0,f=c,p=0,h=0,m=0,b=1,v=1,g=1,y=0,O="",j=i,E=a,w=o,x=O;for(;v;)switch(m=y,y=Pn()){case 40:if(108!=m&&58==x.charCodeAt(f-1)){-1!=vn(x+=bn(zn(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:x+=zn(y);break;case 9:case 10:case 13:case 32:x+=Un(m);break;case 92:x+=Hn(Mn()-1,7);continue;case 47:switch(Nn()){case 42:case 47:En(Gn(Wn(Pn(),Mn()),n,r),u);break;default:x+="/"}break;case 123*b:s[l++]=On(x)*g;case 125*b:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+d:h>0&&On(x)-f&&En(h>32?Xn(x+";",o,r,f-1):Xn(bn(x," ","")+";",o,r,f-2),u);break;case 59:x+=";";default:if(En(w=$n(x,n,r,l,d,i,s,O,j=[],E=[],f),a),123===y)if(0===d)e(x,n,w,w,j,a,f,s,E);else switch(p){case 100:case 109:case 115:e(t,w,w,o&&En($n(t,w,w,0,0,i,s,O,i,j=[],f),E),i,E,f,s,o?j:E);break;default:e(x,w,w,w,[""],E,0,s,E)}}l=d=h=0,b=g=1,O=x="",f=c;break;case 58:f=1+On(x),h=m;default:if(b<1)if(123==y)--b;else if(125==y&&0==b++&&125==An())continue;switch(x+=pn(y),y*b){case 38:g=d>0?1:(x+="\f",-1);break;case 44:s[l++]=(On(x)-1)*g,g=1;break;case 64:45===Nn()&&(x+=zn(Pn())),p=Nn(),d=f=On(O=x+=qn(Mn())),y++;break;case 45:45===m&&2==On(x)&&(b=0)}}return a}("",null,null,null,[""],e=Bn(e),0,[0],e))}function $n(e,t,n,r,o,i,a,c,s,u,l){for(var d=o-1,f=0===o?i:[""],p=jn(f),h=0,m=0,b=0;h0?f[v]+" "+g:bn(g,/&\f/g,f[v])))&&(s[b++]=y);return Rn(e,t,n,0===o?un:c,s,u,l)}function Gn(e,t,n){return Rn(e,t,n,sn,pn(Tn),yn(e,2,-2),0)}function Xn(e,t,n,r){return Rn(e,t,n,ln,yn(e,0,r),yn(e,r+1,-1),r)}function Kn(e,t){switch(function(e,t){return(((t<<2^gn(e,0))<<2^gn(e,1))<<2^gn(e,2))<<2^gn(e,3)}(e,t)){case 5103:return cn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return cn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return cn+e+an+e+"-ms-"+e+e;case 6828:case 4268:return cn+e+"-ms-"+e+e;case 6165:return cn+e+"-ms-flex-"+e+e;case 5187:return cn+e+bn(e,/(\w+).+(:[^]+)/,cn+"box-$1$2-ms-flex-$1$2")+e;case 5443:return cn+e+"-ms-flex-item-"+bn(e,/flex-|-self/,"")+e;case 4675:return cn+e+"-ms-flex-line-pack"+bn(e,/align-content|flex-|-self/,"")+e;case 5548:return cn+e+"-ms-"+bn(e,"shrink","negative")+e;case 5292:return cn+e+"-ms-"+bn(e,"basis","preferred-size")+e;case 6060:return cn+"box-"+bn(e,"-grow","")+cn+e+"-ms-"+bn(e,"grow","positive")+e;case 4554:return cn+bn(e,/([^-])(transform)/g,"$1"+cn+"$2")+e;case 6187:return bn(bn(bn(e,/(zoom-|grab)/,cn+"$1"),/(image-set)/,cn+"$1"),e,"")+e;case 5495:case 3959:return bn(e,/(image-set\([^]*)/,cn+"$1$`$1");case 4968:return bn(bn(e,/(.+:)(flex-)?(.*)/,cn+"box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+cn+e+e;case 4095:case 3583:case 4068:case 2532:return bn(e,/(.+)-inline(.+)/,cn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(On(e)-1-t>6)switch(gn(e,t+1)){case 109:if(45!==gn(e,t+4))break;case 102:return bn(e,/(.+:)(.+)-([^]+)/,"$1"+cn+"$2-$3$1"+an+(108==gn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~vn(e,"stretch")?Kn(bn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==gn(e,t+1))break;case 6444:switch(gn(e,On(e)-3-(~vn(e,"!important")&&10))){case 107:return bn(e,":",":"+cn)+e;case 101:return bn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+cn+(45===gn(e,14)?"inline-":"")+"box$3$1"+cn+"$2$3$1-ms-$2box$3")+e}break;case 5936:switch(gn(e,t+11)){case 114:return cn+e+"-ms-"+bn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return cn+e+"-ms-"+bn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return cn+e+"-ms-"+bn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return cn+e+"-ms-"+e+e}return e}function Yn(e,t){for(var n="",r=jn(e),o=0;o-1&&!e.return)switch(e.type){case ln:e.return=Kn(e.value,e.length);break;case dn:return Yn([In(e,{value:bn(e.value,"@","@"+cn)})],r);case un:if(e.length)return wn(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yn([In(e,{props:[bn(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Yn([In(e,{props:[bn(t,/:(plac\w+)/,":"+cn+"input-$1")]}),In(e,{props:[bn(t,/:(plac\w+)/,":-moz-$1")]}),In(e,{props:[bn(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}var tr=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},nr=function(e,t,n){for(var r=0,o=0;r=o,o=Nn(),38===r&&12===o&&(t[n]=1),!Dn(o);)Pn();return Ln(e,kn)},rr=function(e,t){return Fn(function(e,t){var n=-1,r=44;do{switch(Dn(r)){case 0:38===r&&12===Nn()&&(t[n]=1),e[n]+=nr(kn-1,t,n);break;case 2:e[n]+=zn(r);break;case 4:if(44===r){e[++n]=58===Nn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=pn(r)}}while(r=Pn());return e}(Bn(e),t))},or=new WeakMap,ir=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||or.get(n))&&!r){or.set(e,!0);for(var o=[],i=rr(t,o),a=n.props,c=0,s=0;c=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},pr={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hr=/[A-Z]|^ms/g,mr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,br=function(e){return 45===e.charCodeAt(1)},vr=function(e){return null!=e&&"boolean"!=typeof e},gr=tr((function(e){return br(e)?e:e.replace(hr,"-$&").toLowerCase()})),yr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(mr,(function(e,t,n){return jr={name:t,styles:n,next:jr},t}))}return 1===pr[e]||br(e)||"number"!=typeof t||0===t?t:t+"px"};function Or(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return jr={name:n.name,styles:n.styles,next:jr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)jr={name:r.name,styles:r.styles,next:jr},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o-1}function no(e){return to(e)?window.pageYOffset:e.scrollTop}function ro(e,t){to(e)?window.scrollTo(0,t):e.scrollTop=t}function oo(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function io(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yr,o=no(e),i=t-o,a=10,c=0;function s(){var t=oo(c+=a,o,i,n);ro(e,t),c=p)return{placement:"bottom",maxHeight:t};if(w>=p&&!a)return i&&io(s,x,160),{placement:"bottom",maxHeight:t};if(!a&&w>=r||a&&j>=r)return i&&io(s,x,160),{placement:"bottom",maxHeight:a?j-g:w-g};if("auto"===o||a){var S=t,k=a?O:E;return k>=r&&(S=Math.min(k-g-c.controlHeight,t)),{placement:"top",maxHeight:S}}if("bottom"===o)return i&&ro(s,x),{placement:"bottom",maxHeight:t};break;case"top":if(O>=p)return{placement:"top",maxHeight:t};if(E>=p&&!a)return i&&io(s,_,160),{placement:"top",maxHeight:t};if(!a&&E>=r||a&&O>=r){var T=t;return(!a&&E>=r||a&&O>=r)&&(T=a?O-y:E-y),i&&io(s,_,160),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}var mo=function(e){return"auto"===e?"bottom":e},bo=Object(a.createContext)({getPortalPlacement:null}),vo=function(e){Hr(n,e);var t=Xr(n);function n(){var e;Object(he.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,c=e.isDisabled,s=e.isSelected,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t){var l=c?" disabled":"",d="".concat(s?"selected":"focused").concat(l);return"option ".concat(i," ").concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Zo=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,c=e.selectValue,s=e.selectProps,u=e.id,l=s.ariaLiveMessages,d=s.getOptionLabel,f=s.inputValue,p=s.isMulti,h=s.isOptionDisabled,m=s.isSearchable,b=s.menuIsOpen,v=s.options,g=s.screenReaderStatus,y=s.tabSelectsValue,O=s["aria-label"],j=s["aria-live"],E=Object(a.useMemo)((function(){return Vr(Vr({},Qo),l||{})}),[l]),w=Object(a.useMemo)((function(){var e,n="";if(t&&E.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,s=t.value,u=i||r||(e=s,Array.isArray(e)?null:e),l=u?d(u):"",f=o||a||void 0,p=f?f.map(d):[],m=Vr({isDisabled:u&&h(u,c),label:l,labels:p},t);n=E.onChange(m)}return n}),[t,E,h,c,d]),x=Object(a.useMemo)((function(){var e="",t=n||r,o=!!(n&&c&&c.includes(n));if(t&&E.onFocus){var i={focused:t,label:d(t),isDisabled:h(t,c),isSelected:o,options:v,context:t===n?"menu":"value",selectValue:c};e=E.onFocus(i)}return e}),[n,r,d,h,E,v,c]),_=Object(a.useMemo)((function(){var e="";if(b&&v.length&&E.onFilter){var t=g({count:o.length});e=E.onFilter({inputValue:f,resultsMessage:t})}return e}),[o,f,b,E,v,g]),S=Object(a.useMemo)((function(){var e="";if(E.guidance){var t=r?"value":b?"menu":"input";e=E.guidance({"aria-label":O,context:t,isDisabled:n&&h(n,c),isMulti:p,isSearchable:m,tabSelectsValue:y})}return e}),[O,n,r,p,h,m,b,E,c,y]),k="".concat(x," ").concat(_," ").concat(S),T=Mr(a.Fragment,null,Mr("span",{id:"aria-selection"},w),Mr("span",{id:"aria-context"},k)),C="initial-input-focus"===(null==t?void 0:t.action);return Mr(a.Fragment,null,Mr(Jo,{id:u},C&&T),Mr(Jo,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text"},i&&!C&&T))},ei=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ti=new RegExp("["+ei.map((function(e){return e.letters})).join("")+"]","g"),ni={},ri=0;ri0,m=d-f-u,b=!1;m>t&&c.current&&(r&&r(e),c.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!c.current&&n(e),p.scrollTop=d,b=!0,c.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),p.scrollTop=0,b=!0,s.current=!0),b&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),f=Object(a.useCallback)((function(e){d(e,e.deltaY)}),[d]),p=Object(a.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=Object(a.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;d(e,t)}),[d]),m=Object(a.useCallback)((function(e){if(e){var t=!!lo&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,f]),b=Object(a.useCallback)((function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,f]);return Object(a.useEffect)((function(){if(t){var e=l.current;return m(e),function(){b(e)}}}),[t,m,b]),function(e){l.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=Object(a.useRef)({}),i=Object(a.useRef)(null),c=Object(a.useCallback)((function(e){if(gi){var t=document.body,n=t&&t.style;if(r&&fi.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&yi<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,c=window.innerWidth-a+i||0;Object.keys(pi).forEach((function(e){var t=pi[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(c,"px"))}t&&vi()&&(t.addEventListener("touchmove",hi,Oi),e&&(e.addEventListener("touchstart",bi,Oi),e.addEventListener("touchmove",mi,Oi))),yi+=1}}),[r]),s=Object(a.useCallback)((function(e){if(gi){var t=document.body,n=t&&t.style;yi=Math.max(yi-1,0),r&&yi<1&&fi.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&vi()&&(t.removeEventListener("touchmove",hi,Oi),e&&(e.removeEventListener("touchstart",bi,Oi),e.removeEventListener("touchmove",mi,Oi)))}}),[r]);return Object(a.useEffect)((function(){if(t){var e=i.current;return c(e),function(){s(e)}}}),[t,c,s]),function(e){i.current=e}}({isEnabled:n});return Mr(a.Fragment,null,n&&Mr("div",{onClick:ji,css:Ei}),t((function(e){o(e),i(e)})))}var xi={clearIndicator:No,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):void 0,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:Po,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.value,r=e.theme,o=r.spacing,i=r.colors;return Vr({margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:i.neutral80,transform:n?"translateZ(0)":""},Uo)},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:Oo,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return t={label:"menu"},Object(R.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(R.a)(t,"backgroundColor",a.neutral0),Object(R.a)(t,"borderRadius",o),Object(R.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(R.a)(t,"marginBottom",i.menuGutter),Object(R.a)(t,"marginTop",i.menuGutter),Object(R.a)(t,"position","absolute"),Object(R.a)(t,"width","100%"),Object(R.a)(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused?o.dangerLight:void 0,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:yo,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:t?void 0:r?a.primary:a.primary50}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,gridArea:"1 / 1 / 2 / 3",marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,gridArea:"1 / 1 / 2 / 3",marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},valueContainer:function(e){var t=e.theme.spacing,n=e.isMulti,r=e.hasValue,o=e.selectProps.controlShouldRenderValue;return{alignItems:"center",display:n&&r&&o?"flex":"grid",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}};var _i,Si={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ki={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ao(),captureMenuScroll:!ao(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Vr({ignoreCase:!0,ignoreAccents:!0,stringify:ui,trim:!0,matchFrom:"any"},_i),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,c=n.matchFrom,s=a?si(t):t,u=a?si(i(e)):i(e);return r&&(s=s.toLowerCase(),u=u.toLowerCase()),o&&(s=ci(s),u=ai(u)),"start"===c?u.substr(0,s.length)===s:u.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function Ti(e,t,n,r){return{type:"option",data:t,isDisabled:Ni(e,t,n),isSelected:Mi(e,t,n),label:Ai(e,t),value:Pi(e,t),index:r}}function Ci(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return Ti(e,n,t,r)})).filter((function(t){return Ii(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Ti(e,n,t,r);return Ii(e,i)?i:void 0})).filter(fo)}function Ri(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Object(be.a)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ii(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,c=t.value;return(!Di(e)||!i)&&Li(e,{label:a,value:c,data:o},r)}var Ai=function(e,t){return e.getOptionLabel(t)},Pi=function(e,t){return e.getOptionValue(t)};function Ni(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Mi(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Pi(e,t);return n.some((function(t){return Pi(e,t)===r}))}function Li(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Di=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Bi=1,Fi=function(e){Hr(n,e);var t=Xr(n);function n(e){var r;return Object(he.a)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,c=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:c}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,c=o&&r.isOptionSelected(e,a),s=r.isOptionDisabled(e,a);if(c){var u=r.getOptionValue(e);r.setValue(a.filter((function(e){return r.getOptionValue(e)!==u})),"deselect-option",e)}else{if(s)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(Object(be.a)(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter((function(e){return r.getOptionValue(e)!==o})),a=po(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(po(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=po(e,o,o[0]||null);r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return Di(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,c=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,d=t.tabSelectsValue,f=t.openMenuOnFocus,p=r.state,h=p.focusedOption,m=p.focusedValue,b=p.selectValue;if(!(s||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():c&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!d||!h||f&&r.isOptionSelected(h,b))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):c&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++Bi),r.state.selectValue=Zr(e.value),r}return Object(me.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,c=a.isDisabled,s=a.menuIsOpen,u=this.state.isFocused;(u&&!c&&e.isDisabled||u&&s&&!e.menuIsOpen)&&this.focusInput(),u&&c&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?ro(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i-1&&(a=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Si):Vr(Vr({},Si),this.props.theme):Si}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,c=a.isMulti,s=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:c,isRtl:s,options:u,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Ni(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Mi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Li(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,c=e.form,s=e.menuIsOpen,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,p=d.ariaSelection,h=this.commonProps,m=r||this.getElementId("input"),b=Vr(Vr({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?a.createElement(u,Object(l.a)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:c,type:"text",value:o},b)):a.createElement(di,Object(l.a)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Yr,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:c,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,c=t.SingleValue,s=t.Placeholder,u=this.commonProps,d=this.props,f=d.controlShouldRenderValue,p=d.isDisabled,h=d.isMulti,m=d.inputValue,b=d.placeholder,v=this.state,g=v.selectValue,y=v.focusedValue,O=v.isFocused;if(!this.hasValue()||!f)return m?null:a.createElement(s,Object(l.a)({},u,{key:"placeholder",isDisabled:p,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),b);if(h)return g.map((function(t,c){var s=t===y,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return a.createElement(n,Object(l.a)({},u,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:d,index:c,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var j=g[0];return a.createElement(c,Object(l.a)({},u,{data:j,isDisabled:p}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,Object(l.a)({},t,{innerProps:c,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;return a.createElement(e,Object(l.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.createElement(n,Object(l.a)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.createElement(e,Object(l.a)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,c=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,d=t.Option,f=this.commonProps,p=this.state.focusedOption,h=this.props,m=h.captureMenuScroll,b=h.inputValue,v=h.isLoading,g=h.loadingMessage,y=h.minMenuHeight,O=h.maxMenuHeight,j=h.menuIsOpen,E=h.menuPlacement,w=h.menuPosition,x=h.menuPortalTarget,_=h.menuShouldBlockScroll,S=h.menuShouldScrollIntoView,k=h.noOptionsMessage,T=h.onMenuScrollToTop,C=h.onMenuScrollToBottom;if(!j)return null;var R,I=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,c=t.isSelected,s=t.label,u=t.value,h=p===o,m=i?void 0:function(){return e.onOptionHover(o)},b=i?void 0:function(){return e.selectOption(o)},v="".concat(e.getElementId("option"),"-").concat(n),g={id:v,onClick:b,onMouseMove:m,onMouseOver:m,tabIndex:-1};return a.createElement(d,Object(l.a)({},f,{innerProps:g,data:o,isDisabled:i,isSelected:c,key:v,label:s,type:r,value:u,isFocused:h,innerRef:h?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())R=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,c=t.index,s="".concat(e.getElementId("group"),"-").concat(c),u="".concat(s,"-heading");return a.createElement(n,Object(l.a)({},f,{key:s,data:o,options:i,Heading:r,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(c,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(v){var A=g({inputValue:b});if(null===A)return null;R=a.createElement(s,f,A)}else{var P=k({inputValue:b});if(null===P)return null;R=a.createElement(u,f,P)}var N={minMenuHeight:y,maxMenuHeight:O,menuPlacement:E,menuPosition:w,menuShouldScrollIntoView:S},M=a.createElement(vo,Object(l.a)({},f,N),(function(t){var n=t.ref,r=t.placerProps,c=r.placement,s=r.maxHeight;return a.createElement(o,Object(l.a)({},f,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:v,placement:c}),a.createElement(wi,{captureEnabled:m,onTopArrive:T,onBottomArrive:C,lockEnabled:_},(function(t){return a.createElement(i,Object(l.a)({},f,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:s,focusedOption:p}),R)})))}));return x||"fixed"===w?a.createElement(c,Object(l.a)({},f,{appendTo:x,controlElement:this.controlRef,menuPlacement:E,menuPosition:w}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,c=this.state.selectValue;if(i&&!r){if(o){if(n){var s=c.map((function(t){return e.getOptionValue(t)})).join(n);return a.createElement("input",{name:i,type:"hidden",value:s})}var u=c.length>0?c.map((function(t,n){return a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.createElement("input",{name:i,type:"hidden"});return a.createElement("div",null,u)}var l=c[0]?this.getOptionValue(c[0]):"";return a.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,c=t.selectValue,s=this.getFocusableOptions();return a.createElement(Zo,Object(l.a)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:c,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,c=i.className,s=i.id,u=i.isDisabled,d=i.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return a.createElement(r,Object(l.a)({},p,{className:c,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),a.createElement(t,Object(l.a)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:d}),a.createElement(o,Object(l.a)({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),a.createElement(n,Object(l.a)({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,c=t.prevWasFocused,s=e.options,u=e.value,l=e.menuIsOpen,d=e.inputValue,f=e.isMulti,p=Zr(u),h={};if(n&&(u!==n.value||s!==n.options||l!==n.menuIsOpen||d!==n.inputValue)){var m=l?function(e,t){return Ri(Ci(e,t))}(e,p):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,m),focusedValue:b,clearFocusValueOnUpdate:!1}}var v=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},g=i,y=a&&c;return a&&!y&&(g={value:po(f,p,p[0]||null),options:p,action:"initial-input-focus"},y=!c),"initial-input-focus"===(null==i?void 0:i.action)&&(g=null),Vr(Vr(Vr({},h),v),{},{prevProps:e,ariaSelection:g,prevWasFocused:y})}}]),n}(a.Component);Fi.defaultProps=ki;var zi=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),J.current&&"touchstart"!==t.type||($&&$.removeAttribute("title"),clearTimeout(ee.current),clearTimeout(te.current),g||da&&O?(t.persist(),ee.current=setTimeout((function(){fe(t)}),da?O:g)):fe(t))}},he=Object(ua.a)(),me=he.isFocusVisible,be=he.onBlurVisible,ve=he.ref,ge=a.useState(!1),ye=ge[0],Oe=ge[1],je=function(){ye&&(Oe(!1),be())},Ee=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){$||G(t.currentTarget),me(t)&&(Oe(!0),pe()(t));var n=o.props;n.onFocus&&e&&n.onFocus(t)}},we=function(e){clearTimeout(fa),fa=setTimeout((function(){da=!1}),800+k),ce(!1),R&&R(e),clearTimeout(Z.current),Z.current=setTimeout((function(){J.current=!1}),q.transitions.duration.shortest)},xe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=o.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),je()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===$&&n.onMouseLeave(t),clearTimeout(ee.current),clearTimeout(te.current),t.persist(),te.current=setTimeout((function(){we(t)}),k)}},_e=function(e){J.current=!0;var t=o.props;t.onTouchStart&&t.onTouchStart(e)},Se=Object(ue.a)(G,t),ke=Object(ue.a)(ve,Se),Te=a.useCallback((function(e){Object(se.a)(ke,ne.findDOMNode(e))}),[ke]),Ce=Object(ue.a)(o.ref,Te);""===F&&(le=!1);var Re=!le&&!p,Ie=Object(l.a)({"aria-describedby":le?de:null,title:Re&&"string"==typeof F?F:null},W,o.props,{className:Object(d.a)(W.className,o.props.className),onTouchStart:_e,ref:Ce}),Ae={};b||(Ie.onTouchStart=function(e){_e(e),clearTimeout(te.current),clearTimeout(Z.current),clearTimeout(re.current),e.persist(),re.current=setTimeout((function(){pe()(e)}),E)},Ie.onTouchEnd=function(e){o.props.onTouchEnd&&o.props.onTouchEnd(e),clearTimeout(re.current),clearTimeout(te.current),e.persist(),te.current=setTimeout((function(){we(e)}),C)}),p||(Ie.onMouseOver=pe(),Ie.onMouseLeave=xe(),_&&(Ae.onMouseOver=pe(!1),Ae.onMouseLeave=xe(!1))),s||(Ie.onFocus=Ee(),Ie.onBlur=xe(),_&&(Ae.onFocus=Ee(!1),Ae.onBlur=xe(!1)));var Pe=a.useMemo((function(){return Object(ra.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(K),element:K}}}},B)}),[K,B]);return a.createElement(a.Fragment,null,a.cloneElement(o,Ie),a.createElement(D,Object(l.a)({className:Object(d.a)(i.popper,_&&i.popperInteractive,r&&i.popperArrow),placement:M,anchorEl:$,open:!!$&&le,id:Ie["aria-describedby"],transition:!0},Ae,Pe),(function(e){var t=e.placement,n=e.TransitionProps;return a.createElement(U,Object(l.a)({timeout:q.transitions.duration.shorter},n,H),a.createElement("div",{className:Object(d.a)(i.tooltip,i["tooltipPlacement".concat(Object(m.a)(t.split("-")[0]))],J.current&&i.touch,r&&i.tooltipArrow)},F,r?a.createElement("span",{className:i.arrow,ref:Y}):null))})))})),ha=Object(f.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(p.c)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(la(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(p.c)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(la(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(R.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(R.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(R.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(R.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(pa);var ma=function(e){var t=Object(s.b)(),n=Object(Ft.c)(),r=Object(a.useState)(!1),u=o()(r,2),l=u[0],d=u[1],f=Object(a.useState)(""),p=o()(f,2),h=p[0],m=p[1],b=function(){if(h&&""!=h){var e=JSON.parse(h),r=e.name,o=e.token,i=e.email;r&&o&&i&&(console.log("Setting user",o),t(function(e,t,n,r){return function(o,i){o(Mt(e,t,n)),Pt.a.isFunction(r)&&r()}}(o,r,i,(function(){n.push("/choose_site"),window.AP.tanalytics.track("User Login"),d(!1)}))))}};return Object(i.createElement)(c.a.Fragment,null,Object(i.createElement)(ha,{title:Ct.c.MANUAL_LOGIC_TEXT,arrow:!0,style:{marginRight:"0.5rem",padding:"10px"}},Object(i.createElement)(v,{onClick:function(){d(!0)},style:{color:"#8080808f",float:"right"}},Object(i.createElement)(ea.a,null))),Object(i.createElement)(ha,{title:Ct.c.LOGOUT_TEXT,arrow:!0,style:{marginRight:"0.5rem",padding:"10px"}},Object(i.createElement)(v,{onClick:function(){t(Dt()),n.push("/login_adthrive")},style:{color:"#8080808f",float:"right"}},Object(i.createElement)(na.a,null))),Object(i.createElement)(rn,{open:l,onClose:function(){d(!1)}},Object(i.createElement)("div",{style:{margin:"0rem auto",display:"flex",flexDirection:"column",padding:20,justifyContent:"space-between"}},Object(i.createElement)(x.a,{variant:"subtitle2",color:"primary",style:{textAlign:"left",color:"#859fbd",float:"left",marginTop:10}},"Paste your authentication key below:"),Object(i.createElement)(_t,{onChange:function(e){m(e.target.value)},fullWidth:!0,type:"search",variant:"filled"}),Object(i.createElement)(v,{variant:"contained",color:"primary",onClick:function(){b()},style:{marginTop:10}},"Login"))))};var ba=function(){var e;return Object(Ft.d)(),Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row",alignItems:"center",justify:"center",spacing:1,style:(e={position:"sticky",bottom:"0",zIndex:999,backgroundColor:"#F9F9FA",borderTopColor:"#EAEAE9",borderTopStyle:"solid"},Jt()(e,"backgroundColor","#F9F9FA"),Jt()(e,"padding",window.window.isClassicEditor?"0rem 0rem 1rem 1rem":"unset"),e)},Object(i.createElement)(w.a,{item:!0,direction:"row",xs:"12"},Object(i.createElement)("a",{href:Ct.d.TOPIC_LOGO_URL_LINK,target:"_blank"},Object(i.createElement)(en,{variant:"square",src:Ct.d.TOPIC_LOGO_LINK,style:{width:85,display:"inline-block",float:"left"}})),Object(i.createElement)("a",{target:"_blank",href:Ct.d.WORDPRESS_RELEASE_LINK,style:{fontSize:"0.6rem",textDecoration:"underline"}},Ct.c.VERSION_NUMBER),Object(Ct.w)()&&Object(i.createElement)(Qi,null),Object(i.createElement)("a",{href:Ct.d.HELP_TXT_LINK,target:"_blank"},Object(i.createElement)(x.a,{variant:"caption",style:{display:"inline-block",margin:"0.5rem",float:"right"}},Ct.c.HELP_TXT)),Object(i.createElement)(ma,null)))},va=n(151),ga=n(161),ya=n.n(ga),Oa=n(162),ja=n.n(Oa),Ea=n(160),wa=n.n(Ea),xa=kt((function(e){return{arrow:{color:e.palette.common.white},tooltip:{backgroundColor:e.palette.primary.main}}})),_a=kt((function(e){return{root:{transform:"translateZ(0px)",flexGrow:1},exampleWrapper:{position:"relative",marginTop:e.spacing(3),height:380},radioGroup:{margin:e.spacing(1,0)},speedDial:{position:"absolute","&.MuiSpeedDial-directionUp, &.MuiSpeedDial-directionLeft":{bottom:e.spacing(2),right:e.spacing(2)},"&.MuiSpeedDial-directionDown, &.MuiSpeedDial-directionRight":{top:e.spacing(2),left:e.spacing(2)}}}}));var Sa=function(e){_a();var t=Object(s.b)(),n=Object(Ft.c)(),r=(Object(Ft.d)(),Object(s.c)((function(e){return e.auth}))),c=Object(s.c)((function(e){return e.currentPage})),u=React.useState(!1),l=o()(u,2),d=l[0],f=l[1];Object(i.createElement)(wa.a,null),e.Briefs.users&&e.Briefs.users[0][1],Object(i.createElement)(na.a,null),Object(a.useEffect)((function(){d||r.isLoggedInAdthrive&&_.isEmpty(r.adthriveSites)&&(f(!0),t(Bt((function(){f(!1)}))))}));var p,h=r.activeSite;return p=r.isLoggedInAdthrive?"Logged in (".concat(h?h.name:"AdThrive",")"):r.isLoggedIn?"Logged in (legacy)":"Not logged in",Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row",alignItems:"center",style:{padding:"0",textAlign:"center",background:"rgb(249, 249, 249)"}},e.goBack?Object(i.createElement)(w.a,{item:!0,direction:"row",xs:"3"},Object(i.createElement)(ha,{title:Ct.e.BACK_BUTTON_LABEL,arrow:!0,classes:xa(),style:{marginLeft:"0.5rem",padding:"10px"}},Object(i.createElement)(va.a,{"aria-label":"Back",onClick:function(){var e=localStorage.previousURLObject&&JSON.parse(localStorage.previousURLObject)?JSON.parse(localStorage.previousURLObject):{};e[c.postId]&&(delete e[c.postId],localStorage.setItem("previousURLObject",JSON.stringify(e))),r.isLoggedInAdthrive?n.push("/dashboard_adthrive"):r.isLoggedIn?n.push("/dashboard_legacy"):n.push("/login_adthrive"),t(Ht({}))}},Object(i.createElement)(ya.a,{color:"primary",style:{color:"#859fbd"}})))):null,Object(i.createElement)(w.a,{item:!0,direction:"row",xs:e.goBack?"6":"9",style:{padding:"0.7rem 0rem"}},e.TopicName||e.goBack?Object(i.createElement)(x.a,{variant:"subtitle2",color:"primary",style:{fontSize:"12px",fontWeight:"bold",color:"#9ca2aa"}},e.TopicName):Object(i.createElement)("div",null,Object(i.createElement)(x.a,{variant:"subtitle2",color:"primary",style:{textAlign:"left",marginLeft:"20px",color:"#859fbd",float:"left"}},p),!_.isEmpty(h)&&r&&r.adthriveSites&&r.adthriveSites.length>1&&Object(i.createElement)(ha,{title:"Switch Site"},Object(i.createElement)(ja.a,{fontSize:"small",style:{color:"#859fbd",cursor:"pointer",float:"left",marginLeft:"7px",opacity:"0.8"},onClick:function(){t(Lt()),n.push("/choose_site")}})))),Object(i.createElement)(w.a,{item:!0,direction:"row",xs:"3"},e.isNotLoggedIn?null:Object(i.createElement)("div",{style:{color:"#859fbd",cursor:"pointer"},"aria-label":"Logout",onClick:function(){t(Dt()),n.push("/login_adthrive")}},"Log Out")))},ka=ft(a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Ta(e){return"Backspace"===e.key||"Delete"===e.key}var Ca=a.forwardRef((function(e,t){var n=e.avatar,r=e.classes,o=e.className,i=e.clickable,c=e.color,s=void 0===c?"default":c,f=e.component,p=e.deleteIcon,b=e.disabled,v=void 0!==b&&b,g=e.icon,y=e.label,O=e.onClick,j=e.onDelete,E=e.onKeyDown,w=e.onKeyUp,x=e.size,_=void 0===x?"medium":x,S=e.variant,k=void 0===S?"default":S,T=Object(u.a)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),C=a.useRef(null),R=Object(ue.a)(C,t),I=function(e){e.stopPropagation(),j&&j(e)},A=!(!1===i||!O)||i,P="small"===_,N=f||(A?h.a:"div"),M=N===h.a?{component:"div"}:{},L=null;if(j){var D=Object(d.a)("default"!==s&&("default"===k?r["deleteIconColor".concat(Object(m.a)(s))]:r["deleteIconOutlinedColor".concat(Object(m.a)(s))]),P&&r.deleteIconSmall);L=p&&a.isValidElement(p)?a.cloneElement(p,{className:Object(d.a)(p.props.className,r.deleteIcon,D),onClick:I}):a.createElement(ka,{className:Object(d.a)(r.deleteIcon,D),onClick:I})}var B=null;n&&a.isValidElement(n)&&(B=a.cloneElement(n,{className:Object(d.a)(r.avatar,n.props.className,P&&r.avatarSmall,"default"!==s&&r["avatarColor".concat(Object(m.a)(s))])}));var F=null;return g&&a.isValidElement(g)&&(F=a.cloneElement(g,{className:Object(d.a)(r.icon,g.props.className,P&&r.iconSmall,"default"!==s&&r["iconColor".concat(Object(m.a)(s))])})),a.createElement(N,Object(l.a)({role:A||j?"button":void 0,className:Object(d.a)(r.root,o,"default"!==s&&[r["color".concat(Object(m.a)(s))],A&&r["clickableColor".concat(Object(m.a)(s))],j&&r["deletableColor".concat(Object(m.a)(s))]],"default"!==k&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[s]],v&&r.disabled,P&&r.sizeSmall,A&&r.clickable,j&&r.deletable),"aria-disabled":!!v||void 0,tabIndex:A||j?0:void 0,onClick:O,onKeyDown:function(e){e.currentTarget===e.target&&Ta(e)&&e.preventDefault(),E&&E(e)},onKeyUp:function(e){e.currentTarget===e.target&&(j&&Ta(e)?j(e):"Escape"===e.key&&C.current&&C.current.blur()),w&&w(e)},ref:R},M,T),B||F,a.createElement("span",{className:Object(d.a)(r.label,P&&r.labelSmall)},y),L)})),Ra=Object(f.a)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Object(p.c)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:Object(p.b)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(p.b)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(p.b)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(p.b)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(p.b)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(p.b)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(p.c)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(p.c)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(p.c)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(p.c)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(p.c)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(p.c)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(p.c)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(p.c)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(Ca),Ia=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disabled,c=void 0!==i&&i,s=e.disableFocusRipple,f=void 0!==s&&s,p=e.onChange,b=e.onClick,v=e.selected,g=e.size,y=void 0===g?"medium":g,O=e.value,j=Object(u.a)(e,["children","classes","className","disabled","disableFocusRipple","onChange","onClick","selected","size","value"]);return a.createElement(h.a,Object(l.a)({className:Object(d.a)(r.root,o,c&&r.disabled,v&&r.selected,"medium"!==y&&r["size".concat(Object(m.a)(y))]),disabled:c,focusRipple:!f,ref:t,onClick:function(e){b&&(b(e,O),e.isDefaultPrevented())||p&&p(e,O)},onChange:p,value:O,"aria-pressed":v},j),a.createElement("span",{className:r.label},n))})),Aa=Object(f.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",borderRadius:e.shape.borderRadius,padding:11,border:"1px solid ".concat(Object(p.c)(e.palette.action.active,.12)),color:Object(p.c)(e.palette.action.active,.38),"&$selected":{color:e.palette.action.active,backgroundColor:Object(p.c)(e.palette.action.active,.12),"&:hover":{backgroundColor:Object(p.c)(e.palette.action.active,.15)},"& + &":{borderLeft:0,marginLeft:0}},"&$disabled":{color:Object(p.c)(e.palette.action.disabled,.12)},"&:hover":{textDecoration:"none",backgroundColor:Object(p.c)(e.palette.text.primary,.05),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}}}),disabled:{},selected:{},label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},sizeSmall:{padding:7,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:15,fontSize:e.typography.pxToRem(15)}}}),{name:"MuiToggleButton"})(Ia);function Pa(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var Na=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.exclusive,c=void 0!==i&&i,s=e.onChange,f=e.orientation,p=void 0===f?"horizontal":f,h=e.size,b=void 0===h?"medium":h,v=e.value,g=Object(u.a)(e,["children","classes","className","exclusive","onChange","orientation","size","value"]),y=function(e,t){if(s){var n,r=v&&v.indexOf(t);v&&r>=0?(n=v.slice()).splice(r,1):n=v?v.concat(t):[t],s(e,n)}},O=function(e,t){s&&s(e,v===t?null:t)};return a.createElement("div",Object(l.a)({role:"group",className:Object(d.a)(r.root,o,"vertical"===p&&r.vertical),ref:t},g),a.Children.map(n,(function(e){return a.isValidElement(e)?a.cloneElement(e,{className:Object(d.a)(r.grouped,r["grouped".concat(Object(m.a)(p))],e.props.className),onChange:c?O:y,selected:void 0===e.props.selected?Pa(e.props.value,v):e.props.selected,size:e.props.size||b}):null})))})),Ma=Object(f.a)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},vertical:{flexDirection:"column"},grouped:{},groupedHorizontal:{"&:not(:first-child)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-child)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}}),{name:"MuiToggleButtonGroup"})(Na),La=n(164),Da=n.n(La),Ba=n(163),Fa=n.n(Ba),za=kt((function(e){return{arrow:{color:e.palette.common.white},tooltip:{backgroundColor:e.palette.primary.main}}}));var Ua=function(e){return setTimeout((function(){new Fa.a(document.querySelectorAll(".topicMarkDown")).mark(e.topic.name,[,{acrossElements:!0}])}),1e3),Object(i.createElement)(w.a,{style:{minWidth:"20rem",maxWidth:"30rem",overflowX:"hidden"}},Object(i.createElement)("style",null," mark{ background: transparent; color: black; font-weight: bold; } "),Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row",justify:"flex-start",alignItems:"baseline"},Object(i.createElement)(w.a,{item:!0,xs:"12",style:{padding:"1rem,1rem"}},Object(i.createElement)(ha,{title:"Back",arrow:!0,classes:za(),style:{float:"left"}},Object(i.createElement)(va.a,{"aria-label":"Back",onClick:function(){return e.close()}},Object(i.createElement)(Da.a,{color:"primary"}))),Object(i.createElement)(x.a,{align:"center",variant:"subtitle2",style:{color:"#3e4b5b",fontWeight:"bold",margin:"0.5rem"}},"Example of ",Object(i.createElement)(x.a,{display:"inline",variant:"subtitle1",style:{fontStyle:"italic",fontWeight:"bold"}},e.topic.name),e.topic.similar_keywords.length>0?Object(i.createElement)(x.a,{display:"block",variant:"caption",style:{color:"grey",fontWeight:"500"}},"Similar: ",e.topic.similar_keywords.toString()):null))),Object(i.createElement)(E,null),Object(i.createElement)(w.a,{container:!0,justify:"space-between",alignItems:"baseline",style:{margin:"0.5rem 0.5rem"}},Object(i.createElement)(w.a,{item:!0,xs:"4"},Object(i.createElement)(x.a,{align:"center",variant:"caption",display:"block"},"Relevance"),Object(i.createElement)(x.a,{align:"center",variant:"subtitle2",display:"block",style:{color:"#3e4b5b",fontStyle:"italic",fontWeight:"bold"}},Math.round(parseFloat(e.topic.relevance)),"%")),Object(i.createElement)(w.a,{item:!0,xs:"4"},Object(i.createElement)(x.a,{align:"center",variant:"caption",display:"block"},"Typical Usage"),Object(i.createElement)(x.a,{align:"center",variant:"subtitle2",display:"block",style:{color:"#3e4b5b",fontStyle:"italic",fontWeight:"bold"}},parseInt(e.topic.count.reduce((function(e,t){return e+t}),0)/e.topic.count.length)," Uses")),Object(i.createElement)(w.a,{item:!0,xs:"4"},Object(i.createElement)(x.a,{align:"center",variant:"caption",display:"block"},"Current Usage"),Object(i.createElement)(x.a,{align:"center",variant:"subtitle2",display:"block",style:{color:"#3e4b5b",fontStyle:"italic",fontWeight:"bold"}},e.topic.covered?"".concat(e.topic.num_occurences_in_content," Use").concat(e.topic.num_occurences_in_content>1?"s":""):"Not Used"))),Object(i.createElement)(E,null),Object(Ct.u)(e.topic)>0&&Object(i.createElement)(w.a,{container:!0,xs:"11",direction:"row",justify:"flex-start",alignItems:"baseline",style:{margin:"0.5rem 0.5rem"}},Object(i.createElement)(w.a,{item:!0,xs:"12"},Object(i.createElement)(x.a,{variant:"h6",style:{color:"#3f4b5b",fontWeight:"bold",marginTop:"0.5rem"}},"Used in ",Object(Ct.u)(e.topic)," Headings")),Object(i.createElement)(E,null),e.topic.header_usage.map((function(e){return Object(i.createElement)(w.a,{item:!0,xs:"12",style:{margin:"0.5rem 0.5rem"}},Object(i.createElement)(x.a,{style:{color:"#3e4b5b",fontWeight:"bold",marginTop:"0.5rem"}},e.title.substring(0,55)+"..."),Object(i.createElement)("img",{class:"topic-detail-outline-icon",src:"https://www.google.com/s2/favicons?domain_url=".concat(e.url),style:{verticalAlign:"middle",marginRight:"0.2rem"}}),Object(i.createElement)("a",{target:"_blank",href:e.url},e.url.split("/")[0]+"//"+e.url.split("/")[2]),Object(i.createElement)(w.a,{style:{margin:"1rem 1rem"},className:"topicMarkDown"},e.sentences.map((function(e){return Object(i.createElement)("li",{onCopy:function(e){navigator.clipboard.writeText(e.target.innerText)}},e)}))),Object(i.createElement)(E,null))}))),Array.isArray(e.topic.summary)&&Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row",justify:"flex-start",alignItems:"baseline",style:{margin:"0.5rem 0.5rem"}},Object(i.createElement)(w.a,{item:!0,xs:"12"},Object(i.createElement)(x.a,{variant:"h6",style:{color:"#3e4b5b",fontWeight:"bold",marginTop:"0.5rem"}},"Used in ",e.topic.summary.length," Sources")),Object(i.createElement)(E,null),e.topic.summary.map((function(e){return Object(i.createElement)(w.a,{item:!0,xs:"12",style:{margin:"0.5rem 0.5rem"}},Object(i.createElement)(x.a,{style:{color:"#3e4b5b",fontWeight:"bold",marginTop:"0.5rem"}},e.title.substring(0,55)+"..."),Object(i.createElement)("img",{class:"topic-detail-outline-icon",src:"https://www.google.com/s2/favicons?domain_url=".concat(e.url),style:{verticalAlign:"middle",marginRight:"0.2rem"}}),Object(i.createElement)("a",{target:"_blank",href:e.url},e.url.split("/")[0]+"//"+e.url.split("/")[2]),Object(i.createElement)(w.a,{style:{margin:"1rem 1rem"},className:"topicMarkDown"},e.sentences.map((function(e){return Object(i.createElement)("li",{onCopy:function(e){navigator.clipboard.writeText(e.target.innerText)}},e)}))),Object(i.createElement)(E,null))}))))},Ha=n(39),Wa={entering:{opacity:1},entered:{opacity:1}},qa={enter:Ha.b.enteringScreen,exit:Ha.b.leavingScreen},Va=a.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,c=e.onEnter,s=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,h=e.onExiting,m=e.style,b=e.TransitionComponent,v=void 0===b?Me:b,g=e.timeout,y=void 0===g?qa:g,O=Object(u.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),j=P(),E=j.unstable_strictMode&&!o,w=a.useRef(null),x=Object(ue.a)(n.ref,t),_=Object(ue.a)(E?w:void 0,x),S=function(e){return function(t,n){if(e){var r=E?[w.current,t]:[t,n],o=Object(Q.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},k=S(d),T=S((function(e,t){Le(e);var n=De({style:m,timeout:y},{mode:"enter"});e.style.webkitTransition=j.transitions.create("opacity",n),e.style.transition=j.transitions.create("opacity",n),c&&c(e,t)})),C=S(s),R=S(h),I=S((function(e){var t=De({style:m,timeout:y},{mode:"exit"});e.style.webkitTransition=j.transitions.create("opacity",t),e.style.transition=j.transitions.create("opacity",t),f&&f(e)})),A=S(p);return a.createElement(v,Object(l.a)({appear:!0,in:i,nodeRef:E?w:void 0,onEnter:T,onEntered:C,onEntering:k,onExit:I,onExited:A,onExiting:R,timeout:y},O),(function(e,t){return a.cloneElement(n,Object(l.a)({style:Object(l.a)({opacity:0,visibility:"exited"!==e||i?void 0:"hidden"},Wa[e],m,n.props.style),ref:_},t))}))})),$a=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.invisible,c=void 0!==i&&i,s=e.open,f=e.transitionDuration,p=e.TransitionComponent,h=void 0===p?Va:p,m=Object(u.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return a.createElement(h,Object(l.a)({in:s,timeout:f},m),a.createElement("div",{className:Object(d.a)(r.root,o,c&&r.invisible),"aria-hidden":!0,ref:t},n))})),Ga=Object(f.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})($a);function Xa(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"==typeof n){var c=n.split("(")[1].split(")")[0].split(",");i=parseInt(c[4],10),a=parseInt(c[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var Ka={enter:Ha.b.enteringScreen,exit:Ha.b.leavingScreen},Ya=a.forwardRef((function(e,t){var n=e.children,r=e.direction,o=void 0===r?"down":r,i=e.in,c=e.onEnter,s=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,h=e.onExiting,m=e.style,b=e.timeout,v=void 0===b?Ka:b,g=e.TransitionComponent,y=void 0===g?Me:g,O=Object(u.a)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),j=P(),E=a.useRef(null),w=a.useCallback((function(e){E.current=ne.findDOMNode(e)}),[]),x=Object(ue.a)(n.ref,w),_=Object(ue.a)(x,t),S=function(e){return function(t){e&&(void 0===t?e(E.current):e(E.current,t))}},k=S((function(e,t){Xa(o,e),Le(e),c&&c(e,t)})),T=S((function(e,t){var n=De({timeout:v,style:m},{mode:"enter"});e.style.webkitTransition=j.transitions.create("-webkit-transform",Object(l.a)({},n,{easing:j.transitions.easing.easeOut})),e.style.transition=j.transitions.create("transform",Object(l.a)({},n,{easing:j.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",d&&d(e,t)})),C=S(s),R=S(h),I=S((function(e){var t=De({timeout:v,style:m},{mode:"exit"});e.style.webkitTransition=j.transitions.create("-webkit-transform",Object(l.a)({},t,{easing:j.transitions.easing.sharp})),e.style.transition=j.transitions.create("transform",Object(l.a)({},t,{easing:j.transitions.easing.sharp})),Xa(o,e),f&&f(e)})),A=S((function(e){e.style.webkitTransition="",e.style.transition="",p&&p(e)})),N=a.useCallback((function(){E.current&&Xa(o,E.current)}),[o]);return a.useEffect((function(){if(!i&&"down"!==o&&"right"!==o){var e=Object(oe.a)((function(){E.current&&Xa(o,E.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[o,i]),a.useEffect((function(){i||N()}),[i,N]),a.createElement(y,Object(l.a)({nodeRef:E,onEnter:k,onEntered:C,onEntering:T,onExit:I,onExited:A,onExiting:R,appear:!0,in:i,timeout:v},O),(function(e,t){return a.cloneElement(n,Object(l.a)({ref:_,style:Object(l.a)({visibility:"exited"!==e||i?void 0:"hidden"},m,n.props.style)},t))}))})),Ja={left:"right",right:"left",top:"down",bottom:"up"};var Qa={enter:Ha.b.enteringScreen,exit:Ha.b.leavingScreen},Za=a.forwardRef((function(e,t){var n=e.anchor,r=void 0===n?"left":n,o=e.BackdropProps,i=e.children,c=e.classes,s=e.className,f=e.elevation,p=void 0===f?16:f,h=e.ModalProps,b=(h=void 0===h?{}:h).BackdropProps,v=Object(u.a)(h,["BackdropProps"]),g=e.onClose,y=e.open,O=void 0!==y&&y,j=e.PaperProps,E=void 0===j?{}:j,w=e.SlideProps,x=e.TransitionComponent,_=void 0===x?Ya:x,S=e.transitionDuration,k=void 0===S?Qa:S,T=e.variant,C=void 0===T?"temporary":T,R=Object(u.a)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),I=P(),A=a.useRef(!1);a.useEffect((function(){A.current=!0}),[]);var N=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?Ja[t]:t}(I,r),M=a.createElement(He.a,Object(l.a)({elevation:"temporary"===C?p:0,square:!0},E,{className:Object(d.a)(c.paper,c["paperAnchor".concat(Object(m.a)(N))],E.className,"temporary"!==C&&c["paperAnchorDocked".concat(Object(m.a)(N))])}),i);if("permanent"===C)return a.createElement("div",Object(l.a)({className:Object(d.a)(c.root,c.docked,s),ref:t},R),M);var L=a.createElement(_,Object(l.a)({in:O,direction:Ja[N],timeout:k,appear:A.current},w),M);return"persistent"===C?a.createElement("div",Object(l.a)({className:Object(d.a)(c.root,c.docked,s),ref:t},R),L):a.createElement(Te,Object(l.a)({BackdropProps:Object(l.a)({},o,b,{transitionDuration:k}),BackdropComponent:Ga,className:Object(d.a)(c.root,c.modal,s),open:O,onClose:g,ref:t},R,v),L)})),ec=Object(f.a)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(Za),tc=n(125),nc=n.n(tc),rc=a.forwardRef((function(e,t){e.checked;var n=e.classes,r=e.className,o=e.control,i=e.disabled,c=(e.inputRef,e.label),s=e.labelPlacement,f=void 0===s?"end":s,p=(e.name,e.onChange,e.value,Object(u.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),h=z(),b=i;void 0===b&&void 0!==o.props.disabled&&(b=o.props.disabled),void 0===b&&h&&(b=h.disabled);var v={disabled:b};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===o.props[t]&&void 0!==e[t]&&(v[t]=e[t])})),a.createElement("label",Object(l.a)({className:Object(d.a)(n.root,r,"end"!==f&&n["labelPlacement".concat(Object(m.a)(f))],b&&n.disabled),ref:t},p),a.cloneElement(o,v),a.createElement(x.a,{component:"span",className:Object(d.a)(n.label,b&&n.disabled)},c))})),oc=Object(f.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(rc),ic=a.forwardRef((function(e,t){var n=e.autoFocus,r=e.checked,o=e.checkedIcon,i=e.classes,c=e.className,s=e.defaultChecked,f=e.disabled,p=e.icon,h=e.id,m=e.inputProps,b=e.inputRef,v=e.name,g=e.onBlur,y=e.onChange,O=e.onFocus,j=e.readOnly,E=e.required,w=e.tabIndex,x=e.type,_=e.value,S=Object(u.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),k=st({controlled:r,default:Boolean(s),name:"SwitchBase",state:"checked"}),T=Object(Q.a)(k,2),C=T[0],R=T[1],I=z(),A=f;I&&void 0===A&&(A=I.disabled);var P="checkbox"===x||"radio"===x;return a.createElement(va.a,Object(l.a)({component:"span",className:Object(d.a)(i.root,c,C&&i.checked,A&&i.disabled),disabled:A,tabIndex:null,role:void 0,onFocus:function(e){O&&O(e),I&&I.onFocus&&I.onFocus(e)},onBlur:function(e){g&&g(e),I&&I.onBlur&&I.onBlur(e)},ref:t},S),a.createElement("input",Object(l.a)({autoFocus:n,checked:r,defaultChecked:s,className:i.input,disabled:A,id:P&&h,name:v,onChange:function(e){var t=e.target.checked;R(t),y&&y(e,t)},readOnly:j,ref:b,required:E,tabIndex:w,type:x,value:_},m)),C?o:p)})),ac=Object(f.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(ic),cc=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"secondary":o,c=e.edge,s=void 0!==c&&c,f=e.size,p=void 0===f?"medium":f,h=Object(u.a)(e,["classes","className","color","edge","size"]),b=a.createElement("span",{className:n.thumb});return a.createElement("span",{className:Object(d.a)(n.root,r,{start:n.edgeStart,end:n.edgeEnd}[s],"small"===p&&n["size".concat(Object(m.a)(p))])},a.createElement(ac,Object(l.a)({type:"checkbox",icon:b,checkedIcon:b,classes:{root:Object(d.a)(n.switchBase,n["color".concat(Object(m.a)(i))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},h)),a.createElement("span",{className:n.track}))})),sc=Object(f.a)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(p.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(p.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(cc),uc=n(68),lc=n(7),dc=n.n(lc);function fc(e){return(fc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hc(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 mc(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||!Array.isArray(t)&&t?pc({},e,t):{}}function wc(e){var t=e.forwardedRef,n=bc(e,["forwardedRef"]),r=n.icon,o=n.mask,i=n.symbol,a=n.className,c=n.title,s=n.titleId,u=jc(r),l=Ec("classes",[].concat(vc(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,a=e.border,c=e.listItem,s=e.flip,u=e.size,l=e.rotation,d=e.pull,f=(pc(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":a,"fa-li":c,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(u),null!=u),pc(t,"fa-rotate-".concat(l),null!=l&&0!==l),pc(t,"fa-pull-".concat(d),null!=d),pc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(f).map((function(e){return f[e]?e:null})).filter((function(e){return e}))}(n)),vc(a.split(" ")))),d=Ec("transform","string"==typeof n.transform?uc.c.transform(n.transform):n.transform),f=Ec("mask",jc(o)),p=Object(uc.a)(u,mc({},l,{},d,{},f,{symbol:i,title:c,titleId:s}));if(!p)return function(){var e;!Oc&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var h=p.abstract,m={ref:t};return Object.keys(n).forEach((function(e){wc.defaultProps.hasOwnProperty(e)||(m[e]=n[e])})),xc(h[0],m)}wc.displayName="FontAwesomeIcon",wc.propTypes={border:dc.a.bool,className:dc.a.string,mask:dc.a.oneOfType([dc.a.object,dc.a.array,dc.a.string]),fixedWidth:dc.a.bool,inverse:dc.a.bool,flip:dc.a.oneOf(["horizontal","vertical","both"]),icon:dc.a.oneOfType([dc.a.object,dc.a.array,dc.a.string]),listItem:dc.a.bool,pull:dc.a.oneOf(["right","left"]),pulse:dc.a.bool,rotation:dc.a.oneOf([0,90,180,270]),size:dc.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:dc.a.bool,symbol:dc.a.oneOfType([dc.a.bool,dc.a.string]),title:dc.a.string,transform:dc.a.oneOfType([dc.a.string,dc.a.object]),swapOpacity:dc.a.bool},wc.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var xc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=yc(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[gc(t)]=r}return e}),{attrs:{}}),a=r.style,c=void 0===a?{}:a,s=bc(r,["style"]);return i.attrs.style=mc({},i.attrs.style,{},c),t.apply(void 0,[n.tag,mc({},i.attrs,{},s)].concat(vc(o)))}.bind(null,c.a.createElement);var _c=function(e){var t,n=e.showUnused,r=e.setShowUnused,o=e.viewHeadings,a=e.topics,c=e.topicName,s=e.topicClusteringSwitch,u=e.setTopicClusteringSwitch,l=e.topicClustering,d=e.clusteringLoadingState;if(s&&l){a=_.sortBy(a,(function(e){return e.cluster}));var f=c.length;t=Object(Ct.v)(f)}else a=_.sortBy(a,(function(e){return-1*e.score}));return Object(i.createElement)(w.a,{className:"brief-topic",container:!0,xs:"12",direction:"row",spacing:1,style:{backgroundColor:"white"}},Object(i.createElement)("style",null,"\n .brief-topic .brief-topic-switch-label span{\n font-size: 12px !important;\n }\n "),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{textAlign:"center"}}),Object(i.createElement)(w.a,{item:!0,xs:"12",direction:"column",spacing:1,style:{margin:"0rem 0rem 0rem 0rem",background:"white"}},Object(i.createElement)("div",{style:{paddingLeft:"1rem",marginBottom:"8px"}},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold"},gutterBottom:!0},Ct.n.HEADER),Object(i.createElement)(oc,{value:"Show Only Unused",className:"brief-topic-switch-label",control:Object(i.createElement)(sc,{color:"primary",checked:n,onChange:function(){return r(!n)}}),label:"Show Only Unused",labelPlacement:"end",style:{display:"block"},gutterBottom:!0}),Object(i.createElement)(oc,{value:"Group By Theme",className:"brief-topic-switch-label",control:Object(i.createElement)(sc,{color:"primary",checked:s,onChange:function(){return u(!s)}}),label:"Group By Theme",labelPlacement:"end",gutterBottom:!0}),d?Object(i.createElement)(O,{size:24}):null),a.length>0?a.map((function(e,r){var a,c=_.isNumber(e.cluster)&&_.isArray(t);if(!n||!e.covered)return c&&(a=t[e.cluster%t.length]),Object(i.createElement)(w.a,{container:!0,xs:"12",alignItems:"center",style:{padding:"0.5rem 1rem",cursor:"pointer",backgroundColor:e.covered?"rgb(213 233 214)":"inherit",borderLeft:a?"5px solid ".concat(a):"unset"}},Object(i.createElement)(ha,{title:"Click to view Examples",arrow:!0},Object(i.createElement)(w.a,{item:!0,xs:"10",onClick:function(){return o(e)}},Object(i.createElement)(x.a,{variant:"subtitle1",style:{float:"left",width:"100%",fontWeight:"700",color:"#3e4b5b"}},e.name),Object(i.createElement)(x.a,{variant:"caption",style:{float:"left",color:"grey"}},Ct.n.SOURCES_TEXT_1," ",Object(i.createElement)(x.a,{variant:"caption",style:{fontStyle:"italic"}},e.summary&&e.summary.length)," ",Ct.n.SOURCES_TEXT_2))),Object(i.createElement)(w.a,{item:!0,xs:"2"},Object(Ct.u)(e)>0&&Object(i.createElement)(ha,{title:"used in ".concat(Object(Ct.u)(e)," Headings")},Object(i.createElement)("div",{style:{textAlign:"right"}},Object(i.createElement)(wc,{icon:"heading",style:{opacity:"0.5"}})))))})):Object(Ct.y)("text")))},Sc=n(86),kc=n.n(Sc);var Tc=a.createContext(),Cc=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"table":o,c=e.padding,s=void 0===c?"default":c,f=e.size,p=void 0===f?"medium":f,h=e.stickyHeader,m=void 0!==h&&h,b=Object(u.a)(e,["classes","className","component","padding","size","stickyHeader"]),v=a.useMemo((function(){return{padding:s,size:p,stickyHeader:m}}),[s,p,m]);return a.createElement(Tc.Provider,{value:v},a.createElement(i,Object(l.a)({role:"table"===i?null:"table",ref:t,className:Object(d.a)(n.root,r,m&&n.stickyHeader)},b)))})),Rc=Object(f.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(l.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(Cc);var Ic=a.createContext(),Ac={variant:"body"},Pc=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tbody":o,c=Object(u.a)(e,["classes","className","component"]);return a.createElement(Ic.Provider,{value:Ac},a.createElement(i,Object(l.a)({className:Object(d.a)(n.root,r),ref:t,role:"tbody"===i?null:"rowgroup"},c)))})),Nc=Object(f.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(Pc),Mc=a.forwardRef((function(e,t){var n,r,o=e.align,i=void 0===o?"inherit":o,c=e.classes,s=e.className,f=e.component,p=e.padding,h=e.scope,b=e.size,v=e.sortDirection,g=e.variant,y=Object(u.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),O=a.useContext(Tc),j=a.useContext(Ic),E=j&&"head"===j.variant;f?(r=f,n=E?"columnheader":"cell"):r=E?"th":"td";var w=h;!w&&E&&(w="col");var x=p||(O&&O.padding?O.padding:"default"),_=b||(O&&O.size?O.size:"medium"),S=g||j&&j.variant,k=null;return v&&(k="asc"===v?"ascending":"descending"),a.createElement(r,Object(l.a)({ref:t,className:Object(d.a)(c.root,c[S],s,"inherit"!==i&&c["align".concat(Object(m.a)(i))],"default"!==x&&c["padding".concat(Object(m.a)(x))],"medium"!==_&&c["size".concat(Object(m.a)(_))],"head"===S&&O&&O.stickyHeader&&c.stickyHeader),"aria-sort":k,role:n,scope:w},y))})),Lc=Object(f.a)((function(e){return{root:Object(l.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Object(p.e)(Object(p.c)(e.palette.divider,1),.88):Object(p.a)(Object(p.c)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(Mc),Dc=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,c=Object(u.a)(e,["classes","className","component"]);return a.createElement(i,Object(l.a)({ref:t,className:Object(d.a)(n.root,r)},c))})),Bc=Object(f.a)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(Dc),Fc=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"tr":o,c=e.hover,s=void 0!==c&&c,f=e.selected,p=void 0!==f&&f,h=Object(u.a)(e,["classes","className","component","hover","selected"]),m=a.useContext(Ic);return a.createElement(i,Object(l.a)({ref:t,className:Object(d.a)(n.root,r,m&&{head:n.head,footer:n.footer}[m.variant],s&&n.hover,p&&n.selected),role:"tr"===i?null:"row"},h))})),zc=Object(f.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:Object(p.c)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(Fc),Uc=n(110),Hc=n(108),Wc=n(77),qc=n(111);var Vc=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.collapsedHeight,c=void 0===i?"0px":i,s=e.component,f=void 0===s?"div":s,p=e.disableStrictModeCompat,h=void 0!==p&&p,m=e.in,b=e.onEnter,v=e.onEntered,g=e.onEntering,y=e.onExit,O=e.onExited,j=e.onExiting,E=e.style,w=e.timeout,x=void 0===w?Ha.b.standard:w,_=e.TransitionComponent,S=void 0===_?Me:_,k=Object(u.a)(e,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=P(),C=a.useRef(),R=a.useRef(null),I=a.useRef(),A="number"==typeof c?"".concat(c,"px"):c;a.useEffect((function(){return function(){clearTimeout(C.current)}}),[]);var N=T.unstable_strictMode&&!h,M=a.useRef(null),L=Object(ue.a)(t,N?M:void 0),D=function(e){return function(t,n){if(e){var r=N?[M.current,t]:[t,n],o=Object(Q.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},B=D((function(e,t){e.style.height=A,b&&b(e,t)})),F=D((function(e,t){var n=R.current?R.current.clientHeight:0,r=De({style:E,timeout:x},{mode:"enter"}).duration;if("auto"===x){var o=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(o,"ms"),I.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),g&&g(e,t)})),z=D((function(e,t){e.style.height="auto",v&&v(e,t)})),U=D((function(e){var t=R.current?R.current.clientHeight:0;e.style.height="".concat(t,"px"),y&&y(e)})),H=D(O),W=D((function(e){var t=R.current?R.current.clientHeight:0,n=De({style:E,timeout:x},{mode:"exit"}).duration;if("auto"===x){var r=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),I.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height=A,j&&j(e)}));return a.createElement(S,Object(l.a)({in:m,onEnter:B,onEntered:z,onEntering:F,onExit:U,onExited:H,onExiting:W,addEndListener:function(e,t){var n=N?e:t;"auto"===x&&(C.current=setTimeout(n,I.current||0))},nodeRef:N?M:void 0,timeout:"auto"===x?null:x},k),(function(e,t){return a.createElement(f,Object(l.a)({className:Object(d.a)(r.container,o,{entered:r.entered,exited:!m&&"0px"===A&&r.hidden}[e]),style:Object(l.a)({minHeight:A},E),ref:L},t),a.createElement("div",{className:r.wrapper,ref:R},a.createElement("div",{className:r.wrapperInner},n)))}))}));Vc.muiSupportAuto=!0;var $c=Object(f.a)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Vc);var Gc=a.createContext({}),Xc=a.forwardRef((function(e,t){var n,r=e.children,o=e.classes,i=e.className,c=e.defaultExpanded,s=void 0!==c&&c,f=e.disabled,p=void 0!==f&&f,h=e.expanded,m=e.onChange,b=e.square,v=void 0!==b&&b,g=e.TransitionComponent,y=void 0===g?$c:g,O=e.TransitionProps,j=Object(u.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),E=st({controlled:h,default:s,name:"Accordion",state:"expanded"}),w=Object(Q.a)(E,2),x=w[0],_=w[1],S=a.useCallback((function(e){_(!x),m&&m(e,!x)}),[x,m,_]),k=a.Children.toArray(r),T=(n=k,Object(Uc.a)(n)||Object(Hc.a)(n)||Object(Wc.a)(n)||Object(qc.a)()),C=T[0],R=T.slice(1),I=a.useMemo((function(){return{expanded:x,disabled:p,toggle:S}}),[x,p,S]);return a.createElement(He.a,Object(l.a)({className:Object(d.a)(o.root,i,x&&o.expanded,p&&o.disabled,!v&&o.rounded),ref:t,square:v},j),a.createElement(Gc.Provider,{value:I},C),a.createElement(y,Object(l.a)({in:x,timeout:"auto"},O),a.createElement("div",{"aria-labelledby":C.props.id,id:C.props["aria-controls"],role:"region"},R)))})),Kc=Object(f.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(Xc),Yc=a.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.expandIcon,c=e.IconButtonProps,s=e.onBlur,f=e.onClick,p=e.onFocusVisible,m=Object(u.a)(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),b=a.useState(!1),v=b[0],g=b[1],y=a.useContext(Gc),O=y.disabled,j=void 0!==O&&O,E=y.expanded,w=y.toggle;return a.createElement(h.a,Object(l.a)({focusRipple:!1,disableRipple:!0,disabled:j,component:"div","aria-expanded":E,className:Object(d.a)(r.root,o,j&&r.disabled,E&&r.expanded,v&&r.focused),onFocusVisible:function(e){g(!0),p&&p(e)},onBlur:function(e){g(!1),s&&s(e)},onClick:function(e){w&&w(e),f&&f(e)},ref:t},m),a.createElement("div",{className:Object(d.a)(r.content,E&&r.expanded)},n),i&&a.createElement(va.a,Object(l.a)({className:Object(d.a)(r.expandIcon,E&&r.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},c),i))})),Jc=Object(f.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(Yc),Qc=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Object(u.a)(e,["classes","className"]);return a.createElement("div",Object(l.a)({className:Object(d.a)(n.root,r),ref:t},o))})),Zc=Object(f.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(Qc);var es=function(e){var t,n,r=e.briefInfo,c=e.setQuestionsClusteringSwitch,u=e.questionsClusteringSwitch,l=e.questionsClustering,d=e.clusteringLoadingState,f=e.updateContentCall,p=e.fetchReport,h=Object(s.b)(),m=Object(Ft.e)().id,b=React.useState(!(r.report&&r.report.related_questions&&r.report.related_questions_quora&&r.report.related_questions_autocomplete)),v=o()(b,2),g=v[0],y=v[1];Object(a.useEffect)((function(){g&&Date.parse(new Date)>new Date(r.created_at).setMinutes(new Date(r.created_at).getMinutes()+30)&&y(!1)}),[]),Object(Ct.C)((function(){var e,t;h((e=m,t=function(){y(!1),p().then((function(){f()}))},function(n,r){return fetch(Ct.o.GET_BASE_URL("TOPIC_BASE_URL")+Ct.o.GET_BRIEFS+Ct.o.ASYNC_QUESTIONS_STATUS+"".concat(e),{method:"GET"}).then((function(e){return e.json()})).then((function(r){try{"Success"==r.status&&_.isFunction(t)&&t()}catch(t){return n(Vt(e))}})).catch((function(e){throw e}))}))}),g?7e3:null);var j="\n .brief-questions .MuiTableCell-root{\n padding: 16px 0;\n }\n\n .brief-questions .MuiAccordionSummary-root, .brief-questions .MuiAccordionDetails-root{\n padding: 0;\n }\n\n .brief-topic-switch-label span{\n font-size: 12px !important;\n }\n ",E=!1,S=[],k=r&&r.name?r.name.length:null,T=Object(Ct.v)(k);return l&&u&&(E=!0,S=Object(Ct.s)(r),S=_.filter(S,(function(e){return e.length>1}))),Object(i.createElement)(w.a,null,g?Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row",className:"brief-questions",spacing:1,style:{padding:"1rem",backgroundColor:"white"}},Object(i.createElement)(w.a,{item:!0,xs:"12",style:(t={marginBottom:"1rem",position:"sticky"},Jt()(t,"position","-webkit-sticky"),Jt()(t,"top","0"),t)},Object(i.createElement)("style",null,j),Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{fontWeight:"800",color:"#334152"}},Ct.l.HEADER),Object(i.createElement)(x.a,{variant:"caption",display:"block",style:{color:"#334152"}},Ct.l.DESCRIPTION),Object(i.createElement)(w.a,{style:{margin:"1.5rem",textAlign:"center"}},Object(i.createElement)(x.a,{variant:"caption",display:"block",style:{fontWeight:"500",color:"#334152"}},Ct.l.FETCHING_QUESTIONS_MESSAGE),Object(i.createElement)(O,{size:24,style:{marginTop:"1rem"}})))):Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row",className:"brief-questions",spacing:1,style:{padding:"1rem",backgroundColor:"white"}},Object(i.createElement)("style",null,j),Object(i.createElement)(w.a,{item:!0,xs:"12",style:(n={marginBottom:"1rem",position:"sticky"},Jt()(n,"position","-webkit-sticky"),Jt()(n,"top","0"),n)},Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{fontWeight:"800",color:"#334152"}},Ct.l.HEADER),Object(i.createElement)(x.a,{variant:"caption",display:"block",style:{color:"#334152"}},Ct.l.DESCRIPTION),Object(i.createElement)(oc,{value:"Group By Theme",className:"brief-topic-switch-label",control:Object(i.createElement)(sc,{color:"primary",checked:u,onChange:function(){return c(!u)}}),label:"Group By Theme",labelPlacement:"end",gutterBottom:!0}),d?Object(i.createElement)(O,{size:24}):null),E?Object(i.createElement)(w.a,{item:!0,xs:"12",alignItems:"center",direction:"row",style:{marginBottom:20}},_.map(S,(function(e,t){var n=T[t%T.length];return Object(i.createElement)("div",{style:{borderLeft:n?"5px solid ".concat(n):"unset",backgroundColor:"#80808014",marginBottom:"1rem",paddingTop:"0.5rem",paddingBottom:"0.2rem"}},_.map(e,(function(e,t){return Object(i.createElement)("p",{style:{color:"#334152",fontWeight:0==t?800:"unset",marginLeft:10}},e.keyword)})))}))):Object(i.createElement)(w.a,{item:!0,xs:"12",alignItems:"center",direction:"row",style:{marginBottom:20}},r.report?function(e){if(!g&&e.report&&e.report.related_questions&&!Array.isArray(e.report.related_questions.questions)&&!Array.isArray(e.report.related_questions_quora.questions)&&!Array.isArray(e.report.related_questions_autocomplete.questions))return Object(i.createElement)(x.a,null,Ct.l.NO_QUESTIONS_ERROR_TEXT,' "',e.report.focus_keyword,'"')}(r):Object(Ct.y)("text"),r.report&&r.report.related_questions&&r.report.related_questions.questions&&r.report.related_questions.questions.length>0?Object(i.createElement)(Kc,{square:!0,style:{boxShadow:"none"},defaultExpanded:!0},Object(i.createElement)(Jc,{expandIcon:Object(i.createElement)(kc.a,null),"aria-controls":"question-panel",id:"question-panel-id"},Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{fontWeight:"800",color:"#334152",fontSize:"0.8rem"}},Ct.l.GOOGLE_QUESTIONS_TEXT_HEADER)),Object(i.createElement)(Zc,null,Object(i.createElement)(Bc,null,Object(i.createElement)(Rc,{"aria-label":"simple table"},Object(i.createElement)(Nc,null,r.report&&r.report.related_questions&&Array.isArray(r.report.related_questions.questions)?r.report.related_questions.questions.map((function(e,t){return Object(i.createElement)(zc,{key:e.keyword},Object(i.createElement)(Lc,{component:"th",scope:"row"},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"12px",color:"#3e4b5b",cursor:"pointer"},onClick:function(){return window.open("https://www.google.com/search?q=".concat(e.keyword),"_blank")}},e.keyword,Object(i.createElement)(va.a,{size:"small","aria-label":"question-link",style:{float:"right"}},Object(i.createElement)(wc,{icon:"external-link-alt",style:{fontSize:"12px"}})))))})):Object(i.createElement)(zc,null,Object(i.createElement)(Lc,null,Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"12px",color:"#3e4b5b"}},"No Questions Found")))))))):null,r.report&&r.report.related_questions_quora&&r.report.related_questions_quora.questions&&r.report.related_questions_quora.questions.length>0?Object(i.createElement)(Kc,{square:!0,style:{boxShadow:"none"},defaultExpanded:!0},Object(i.createElement)(Jc,{expandIcon:Object(i.createElement)(kc.a,null),"aria-controls":"question-panel",id:"question-panel-id"},Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{fontWeight:"800",color:"#334152",fontSize:"0.8rem"}},Ct.l.QUORA_QUESTIONS_TEXT_HEADER)),Object(i.createElement)(Zc,null,Object(i.createElement)(Bc,null,Object(i.createElement)(Rc,{"aria-label":"simple table"},Object(i.createElement)(Nc,null,r.report&&r.report.related_questions_quora&&Array.isArray(r.report.related_questions_quora.questions)?r.report.related_questions_quora.questions.map((function(e,t){return Object(i.createElement)(zc,{key:e.keyword},Object(i.createElement)(Lc,{component:"th",scope:"row"},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"12px",color:"#3e4b5b",cursor:"pointer"},onClick:function(){return window.open("".concat(e.link),"_blank")}},e.question,Object(i.createElement)(va.a,{size:"small","aria-label":"question-link",style:{float:"right"}},Object(i.createElement)(wc,{icon:"external-link-alt",style:{fontSize:"12px"}})))))})):Object(i.createElement)(zc,null,Object(i.createElement)(Lc,null,Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"12px",color:"#3e4b5b"}},"No Questions Found")))))))):null,r.report&&r.report.related_questions_autocomplete&&r.report.related_questions_autocomplete.questions&&r.report.related_questions_autocomplete.questions.length>0?Object(i.createElement)(Kc,{square:!0,style:{boxShadow:"none"},defaultExpanded:!0},Object(i.createElement)(Jc,{expandIcon:Object(i.createElement)(kc.a,null),"aria-controls":"question-panel",id:"question-panel-id"},Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{fontWeight:"800",color:"#334152",fontSize:"0.8rem"}},Ct.l.AUTOCOMPLETE_QUESTIONS_TEXT_HEADER)),Object(i.createElement)(Zc,null,Object(i.createElement)(Bc,null,Object(i.createElement)(Rc,{"aria-label":"simple table"},Object(i.createElement)(Nc,null,r.report&&r.report.related_questions_autocomplete&&Array.isArray(r.report.related_questions_autocomplete.questions)?r.report.related_questions_autocomplete.questions.map((function(e,t){return Object(i.createElement)(zc,{key:e.keyword},Object(i.createElement)(Lc,{component:"th",scope:"row"},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"12px",color:"#3e4b5b",cursor:"pointer"},onClick:function(){return window.open("https://www.google.com/search?q=".concat(e.keyword),"_blank")}},e.keyword,"?",Object(i.createElement)(va.a,{size:"small","aria-label":"question-link",style:{float:"right"}},Object(i.createElement)(wc,{icon:"external-link-alt",style:{fontSize:"12px"}})))))})):Object(i.createElement)(zc,null,Object(i.createElement)(Lc,null,Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"12px",color:"#3e4b5b"}},"No Questions Found")))))))):null)))},ts=n(303),ns=n(304),rs="en",os={},is={};function as(){return rs}function cs(e){return os[e]?e:is[e.toLowerCase()]?is[e.toLowerCase()]:void 0}function ss(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":case"best fit":return us(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function us(e){var t=cs(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop();var r=cs(e=n.join("-"));if(r)return r}}var ls={af:function(e){return 1==e?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ast:function(e){var t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},be:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),o=n&&t[0].slice(-2);return 1==r&&11!=o?"one":r>=2&&r<=4&&(o<12||o>14)?"few":n&&0==r||r>=5&&r<=9||o>=11&&o<=14?"many":"other"},br:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),o=n&&t[0].slice(-2),i=n&&t[0].slice(-6);return 1==r&&11!=o&&71!=o&&91!=o?"one":2==r&&12!=o&&72!=o&&92!=o?"two":(3==r||4==r||9==r)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":0!=e&&n&&0==i?"many":"other"},bs:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",o=!t[1],i=n.slice(-1),a=n.slice(-2),c=r.slice(-1),s=r.slice(-2);return o&&1==i&&11!=a||1==c&&11!=s?"one":o&&i>=2&&i<=4&&(a<12||a>14)||c>=2&&c<=4&&(s<12||s>14)?"few":"other"},cs:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==e&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},cy:function(e){return 0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e;return 1!=e&&(r||0!=n&&1!=n)?"other":"one"},dsb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",o=!t[1],i=n.slice(-2),a=r.slice(-2);return o&&1==i||1==a?"one":o&&2==i||2==a?"two":o&&(3==i||4==i)||3==a||4==a?"few":"other"},dz:function(e){return"other"},fil:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",o=!t[1],i=n.slice(-1),a=r.slice(-1);return o&&(1==n||2==n||3==n)||o&&4!=i&&6!=i&&9!=i||!o&&4!=a&&6!=a&&9!=a?"one":"other"},fr:function(e){return e>=0&&e<2?"one":"other"},ga:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},he:function(e){var t=String(e).split("."),n=t[0],r=!t[1],o=Number(t[0])==e,i=o&&t[0].slice(-1);return 1==e&&r?"one":2==n&&r?"two":r&&(e<0||e>10)&&o&&0==i?"many":"other"},is:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e,o=n.slice(-1),i=n.slice(-2);return r&&1==o&&11!=i||!r?"one":"other"},ksh:function(e){return 0==e?"zero":1==e?"one":"other"},lt:function(e){var t=String(e).split("."),n=t[1]||"",r=Number(t[0])==e,o=r&&t[0].slice(-1),i=r&&t[0].slice(-2);return 1==o&&(i<11||i>19)?"one":o>=2&&o<=9&&(i<11||i>19)?"few":0!=n?"many":"other"},lv:function(e){var t=String(e).split("."),n=t[1]||"",r=n.length,o=Number(t[0])==e,i=o&&t[0].slice(-1),a=o&&t[0].slice(-2),c=n.slice(-2),s=n.slice(-1);return o&&0==i||a>=11&&a<=19||2==r&&c>=11&&c<=19?"zero":1==i&&11!=a||2==r&&1==s&&11!=c||2!=r&&1==s?"one":"other"},mk:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",o=!t[1],i=n.slice(-1),a=n.slice(-2),c=r.slice(-1),s=r.slice(-2);return o&&1==i&&11!=a||1==c&&11!=s?"one":"other"},mt:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":0==e||n>=2&&n<=10?"few":n>=11&&n<=19?"many":"other"},pa:function(e){return 0==e||1==e?"one":"other"},pl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],o=n.slice(-1),i=n.slice(-2);return 1==e&&r?"one":r&&o>=2&&o<=4&&(i<12||i>14)?"few":r&&1!=n&&(0==o||1==o)||r&&o>=5&&o<=9||r&&i>=12&&i<=14?"many":"other"},pt:function(e){var t=String(e).split(".")[0];return 0==t||1==t?"one":"other"},ro:function(e){var t=String(e).split("."),n=!t[1],r=Number(t[0])==e&&t[0].slice(-2);return 1==e&&n?"one":!n||0==e||1!=e&&r>=1&&r<=19?"few":"other"},ru:function(e){var t=String(e).split("."),n=t[0],r=!t[1],o=n.slice(-1),i=n.slice(-2);return r&&1==o&&11!=i?"one":r&&o>=2&&o<=4&&(i<12||i>14)?"few":r&&0==o||r&&o>=5&&o<=9||r&&i>=11&&i<=14?"many":"other"},se:function(e){return 1==e?"one":2==e?"two":"other"},si:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"";return 0==e||1==e||0==n&&1==r?"one":"other"},sl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],o=n.slice(-2);return r&&1==o?"one":r&&2==o?"two":r&&(3==o||4==o)||!r?"few":"other"}};ls.as=ls.am,ls.az=ls.af,ls.bg=ls.af,ls.bn=ls.am,ls.ca=ls.ast,ls.ce=ls.af,ls.chr=ls.af,ls.de=ls.ast,ls.ee=ls.af,ls.el=ls.af,ls.en=ls.ast,ls.es=ls.af,ls.et=ls.ast,ls.eu=ls.af,ls.fa=ls.am,ls.fi=ls.ast,ls.fo=ls.af,ls.fur=ls.af,ls.fy=ls.ast,ls.gl=ls.ast,ls.gu=ls.am,ls.hi=ls.am,ls.hr=ls.bs,ls.hsb=ls.dsb,ls.hu=ls.af,ls.hy=ls.fr,ls.ia=ls.ast,ls.id=ls.dz,ls.it=ls.ast,ls.ja=ls.dz,ls.jgo=ls.af,ls.jv=ls.dz,ls.ka=ls.af,ls.kea=ls.dz,ls.kk=ls.af,ls.kl=ls.af,ls.km=ls.dz,ls.kn=ls.am,ls.ko=ls.dz,ls.ku=ls.af,ls.ky=ls.af,ls.lb=ls.af,ls.lkt=ls.dz,ls.lo=ls.dz,ls.ml=ls.af,ls.mn=ls.af,ls.mr=ls.am,ls.ms=ls.dz,ls.my=ls.dz,ls.nb=ls.af,ls.ne=ls.af,ls.nl=ls.ast,ls.nn=ls.af,ls.or=ls.af,ls.ps=ls.af,ls["pt-PT"]=ls.ast,ls.sah=ls.dz,ls.sd=ls.af,ls.sk=ls.cs,ls.so=ls.af,ls.sq=ls.af,ls.sr=ls.bs,ls.sv=ls.ast,ls.sw=ls.ast,ls.ta=ls.af,ls.te=ls.af,ls.th=ls.dz,ls.ti=ls.pa,ls.tk=ls.af,ls.to=ls.dz,ls.tr=ls.af,ls.ug=ls.af,ls.uk=ls.ru,ls.ur=ls.ast,ls.uz=ls.af,ls.vi=ls.dz,ls.wae=ls.af,ls.yi=ls.ast,ls.yue=ls.dz,ls.zh=ls.dz,ls.zu=ls.am;var ds=ls;function fs(e){return"pt-PT"===e?e:function(e){var t=e.match(ps);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}(e)}var ps=/^([a-z0-9]+)/i;function hs(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ys(this,e),js(this,"numeric","always"),js(this,"style","long"),js(this,"localeMatcher","lookup");var r=n.numeric,o=n.style,i=n.localeMatcher;if(void 0!==r){if(ws.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(void 0!==o){if(xs.indexOf(o)<0)throw new RangeError('Invalid "style" option: '.concat(o));this.style=o}if(void 0!==i){if(_s.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if("string"==typeof t&&(t=[t]),t.push(as()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");ms.supportedLocalesOf(this.locale).length>0?this.pluralRules=new ms(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),"undefined"!=typeof Intl&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=ss(this.locale,{localeMatcher:this.localeMatcher})}var t,n,r;return t=e,(n=[{key:"format",value:function(){var e=Rs(arguments),t=gs(e,2),n=t[0],r=t[1];return this.getRule(n,r).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"formatToParts",value:function(){var e=Rs(arguments),t=gs(e,2),n=t[0],r=t[1],o=this.getRule(n,r),i=o.indexOf("{0}");if(i<0)return[{type:"literal",value:o}];var a=[];return i>0&&a.push({type:"literal",value:o.slice(0,i)}),a=a.concat(this.formatNumberToParts(Math.abs(n)).map((function(e){return vs({},e,{unit:r})}))),i+"{0}".length1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e)e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter((function(e){return ss(e,t)}))},Ss.addLocale=function(e){if(!e)throw new Error("No locale data passed");os[e.locale]=e,is[e.locale.toLowerCase()]=e.locale},Ss.setDefaultLocale=function(e){rs=e},Ss.getDefaultLocale=as,Ss.PluralRules=ms;var ks='Invalid "unit" argument';function Ts(e){if("symbol"===bs(e))throw new TypeError(ks);if("string"!=typeof e)throw new RangeError("".concat(ks,": ").concat(e));if("s"===e[e.length-1]&&(e=e.slice(0,e.length-1)),Es.indexOf(e)<0)throw new RangeError("".concat(ks,": ").concat(e));return e}function Cs(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat('Invalid "number" argument',": ").concat(e));return e}function Rs(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[Cs(e[0]),Ts(e[1])]}function Is(e){return(Is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function As(e,t){for(var n=0;n=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;if(t(a))return a;for(var c=a.split("-");c.length>1;)if(c.pop(),t(a=c.join("-")))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function Ls(){return"object"===("undefined"==typeof Intl?"undefined":Ns(Intl))&&"function"==typeof Intl.DateTimeFormat}var Ds=86400;function Bs(e){switch(e){case"second":return 1;case"minute":return 60;case"hour":return 3600;case"day":return Ds;case"week":return 604800;case"month":return 2630016;case"year":return 31556952}}function Fs(e){return void 0!==e.factor?e.factor:Bs(e.unit||e.formatAs)||1}function zs(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function Us(e){switch(e){case"floor":return 1;default:return.5}}function Hs(e){return(Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ws(e,t){var n,r=t.prevStep,o=t.timestamp,i=t.now,a=t.future,c=t.round;return r&&(r.id||r.unit)&&(n=e["threshold_for_".concat(r.id||r.unit)]),void 0===n&&void 0!==e.threshold&&"function"==typeof(n=e.threshold)&&(n=n(i,a)),void 0===n&&(n=e.minTime),"object"===Hs(n)&&(n=r&&r.id&&void 0!==n[r.id]?n[r.id]:n.default),"function"==typeof n&&(n=n(o,{future:a,getMinTimeForUnit:function(e,t){return qs(e,t||r&&r.formatAs,{round:c})}})),void 0===n&&e.test&&(n=e.test(o,{now:i,future:a})?0:9007199254740991),void 0===n&&(r?e.formatAs&&r.formatAs&&(n=qs(e.formatAs,r.formatAs,{round:c})):n=0),void 0===n&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),n}function qs(e,t,n){var r,o=n.round,i=Bs(e);if(r=Bs("now"===t?e:t),void 0!==i&&void 0!==r)return i-r*(1-Us(o))}function Vs(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:0,i=Ws(t[o],Vs({prevStep:t[o-1],timestamp:r.now-1e3*n},r));if(void 0===i)return o-1;if(Math.abs(n)0)return e[a-1]}return c}(e=function(e,t){return e.filter((function(e){var n=e.unit,r=e.formatAs;return!(n=n||r)||t.indexOf(n)>=0}))}(e,a),t,{now:r,future:o,round:i});return c?s?[e[e.indexOf(s)-1],s,e[e.indexOf(s)+1]]:[void 0,void 0,e[0]]:s}function Xs(e,t,n){var r=n.now,o=n.round;if(Bs(e)){var i=1e3*Bs(e),a=t>r,c=Math.abs(t-r),s=zs(o)(c/i)*i;return a?s>0?c-s+function(e,t){return(1-Us(e))*t+1}(o,i):c-s+1:-(c-s)+function(e,t){return Us(e)*t}(o,i)}}function Ks(e,t,n){var r=n.prevStep,o=n.nextStep,i=n.now,a=n.future,c=n.round,s=e.getTime?e.getTime():e,u=function(e){return Xs(e,s,{now:i,round:c})},l=function(e,t,n){var r=n.now,o=n.future,i=n.round,a=n.prevStep;if(e){var c=function(e,t,n){var r=n.now,o=n.future,i=n.round,a=n.prevStep,c=Ws(e,{timestamp:t,now:r,future:o,round:i,prevStep:a});if(void 0===c)return;return o?t-1e3*c+1:0===c&&t===r?31536e9:t+1e3*c}(e,t,{now:r,future:o,round:i,prevStep:a});if(void 0===c)return;return c-r}return o?t-r+1:31536e9}(a?t:o,s,{future:a,now:i,round:c,prevStep:a?r:t});if(void 0!==l){var d;if(t&&(t.getTimeToNextUpdate&&(d=t.getTimeToNextUpdate(s,{getTimeToNextUpdateForUnit:u,getRoundFunction:zs,now:i,future:a,round:c})),void 0===d)){var f=t.unit||t.formatAs;f&&(d=u(f))}return void 0===d?l:Math.min(d,l)}}var Ys={};function Js(e){return Ys[e]}function Qs(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");Ys[e.locale]=e}var Zs=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:60,unit:"minute"},{threshold:150,granularity:5,factor:60,unit:"minute"},{threshold:1350,factor:1800,unit:"half-hour"},{threshold:2550,threshold_for_minute:3150,factor:3600,unit:"hour"},{threshold:73800,factor:Ds,unit:"day"},{threshold:475200,factor:604800,unit:"week"},{threshold:2116800,factor:2630016,unit:"month"},{threshold:27615168,factor:31556952,unit:"year"}],eu={gradation:Zs,flavour:"long",units:["now","minute","hour","day","week","month","year"]},tu={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ru=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.polyfill;Ru(this,e),"string"==typeof t&&(t=[t]),this.locale=Ms(t.concat(e.getDefaultLocale()),Js),"undefined"!=typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===r?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Ss,this.IntlPluralRules=Ss.PluralRules),this.relativeTimeFormatCache=new Ps,this.pluralRulesCache=new Ps}var t,n,r;return t=e,(n=[{key:"format",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eu,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"string"==typeof t&&(t=ku(t));var r,o=Mu(e),i=this.getLabels(t.flavour||t.labels),a=i.labels,c=i.labelsType;void 0!==t.now&&(r=t.now),void 0===r&&void 0!==n.now&&(r=n.now),void 0===r&&(r=Date.now());var s=(r-o)/1e3,u=n.future||s<0,l=Du(a,Js(this.locale).now,Js(this.locale).long,u);if(t.custom){var d=t.custom({now:r,date:new Date(o),time:o,elapsed:s,locale:this.locale});if(void 0!==d)return d}var f=Lu(t.units,a,l),p=n.round||t.round,h=Gs(t.gradation||t.steps||eu.gradation,s,{now:r,units:f,round:p,future:u,getNextStep:!0}),m=Cu(h,3),b=m[0],v=m[1],g=m[2],y=this.formatDateForStep(o,v,s,{labels:a,labelsType:c,nowLabel:l,now:r,future:u,round:p})||"";if(n.getTimeToNextUpdate){var O=Ks(o,v,{nextStep:g,prevStep:b,now:r,future:u,round:p});return[y,O]}return y}},{key:"formatDateForStep",value:function(e,t,n,r){var o=this,i=r.labels,a=r.labelsType,c=r.nowLabel,s=r.now,u=r.future,l=r.round;if(t){if(t.format)return t.format(e,this.locale,{formatAs:function(e,t){return o.formatValue(t,e,{labels:i,future:u})},now:s,future:u});var d=t.unit||t.formatAs;if(!d)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(t)));if("now"===d)return c;var f=Math.abs(n)/Fs(t);t.granularity&&(f=zs(l)(f/t.granularity)*t.granularity);var p=-1*Math.sign(n)*zs(l)(f);switch(0===p&&(p=u?0:-0),a){case"long":case"short":case"narrow":return this.getFormatter(a).format(p,d);default:return this.formatValue(p,d,{labels:i,future:u})}}}},{key:"formatValue",value:function(e,t,n){var r=n.labels,o=n.future;return this.getFormattingRule(r,t,e,{future:o}).replace("{0}",this.formatNumber(Math.abs(e)))}},{key:"getFormattingRule",value:function(e,t,n,r){var o=r.future;if(this.locale,"string"==typeof(e=e[t]))return e;var i=e[0===n?o?"future":"past":n<0?"past":"future"]||e;return"string"==typeof i?i:i[this.getPluralRules().select(Math.abs(n))]||i.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"getFormatter",value:function(e){return this.relativeTimeFormatCache.get(this.locale,e)||this.relativeTimeFormatCache.put(this.locale,e,new this.IntlRelativeTimeFormat(this.locale,{style:e}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"==typeof e&&(e=[e]),e=(e=e.map((function(e){switch(e){case"tiny":case"mini-time":return"mini";default:return e}}))).concat("long");var t=Js(this.locale),n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}var a=i;if(t[a])return{labelsType:a,labels:t[a]}}}}])&&Iu(t.prototype,n),r&&Iu(t,r),e}(),Nu="en";function Mu(e){if(e.constructor===Date||"object"===Tu(t=e)&&"function"==typeof t.getTime)return e.getTime();var t;if("number"==typeof e)return e;throw new Error("Unsupported relative time formatter input: ".concat(Tu(e),", ").concat(e))}function Lu(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter((function(e){return"now"===e||r.indexOf(e)>=0}))),r}function Du(e,t,n,r){var o=e.now||t&&t.now;return o?"string"==typeof o?o:r?o.future:o.past:n&&n.second&&n.second.current?n.second.current:void 0}Pu.getDefaultLocale=function(){return Nu},Pu.setDefaultLocale=function(e){return Nu=e},Pu.addDefaultLocale=function(e){if(Au)throw new Error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");Au=!0,Pu.setDefaultLocale(e.locale),Pu.addLocale(e)},Pu.addLocale=function(e){Qs(e),Ss.addLocale(e)},Pu.locale=Pu.addLocale,Pu.addLabels=function(e,t,n){var r=Js(e);r||(Qs({locale:e}),r=Js(e)),r[t]=n};var Bu=function(e){var t,n=e.briefInfo;return new Pu("en-US"),Object(i.createElement)("div",{className:"brief-outline"},Object(i.createElement)("style",null,"\n .brief-outline .MuiGrid-root{\n margin-left: 0 !important;\n }\n .brief-outline .MuiAccordionDetails-root, .brief-outline .MuiAccordionSummary-root{\n padding: 0 !important;\n }\n "),Object(i.createElement)(w.a,{item:!0,xs:"12",style:{backgroundColor:"white",padding:"0rem"}},Object(i.createElement)(ts.a,null,Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row",spacing:1,style:{padding:"1rem"}},Object(i.createElement)(w.a,{item:!0,xs:"12",style:(t={marginBottom:"1rem",position:"sticky"},Jt()(t,"position","-webkit-sticky"),Jt()(t,"top","0"),t)},Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{fontWeight:"800",color:"#334152"}},Ct.k.HEADER_TEXT),Object(i.createElement)(x.a,{variant:"caption",display:"block",style:{color:"#334152"}},Ct.k.DESCRIPTION_TEXT_1," ",Object(i.createElement)("a",{href:"https://usetopic.zendesk.com/hc/en-us/articles/360051872774"},Ct.k.DESCRIPTION_TEXT_2))),n.report&&n.report.competitors?n.report.competitors.map((function(e){return Object(i.createElement)(w.a,{item:!0,xs:"12",md:"12",alignItems:"center",direction:"row",style:{marginBottom:20}},Object(i.createElement)(ts.a,null,Object(i.createElement)(ns.a,{style:{backgroundColor:"#f2f4f8"}},Object(i.createElement)(x.a,{variant:"caption"},"Position ".concat(e.position," / Content Grade ").concat(e.grade," ").concat(""))),Object(i.createElement)(ns.a,null,Object(i.createElement)(x.a,{variant:"subtitle2",style:{color:"#3e4b5b",fontWeight:"bold",marginTop:"0.5rem"}},Object(i.createElement)("img",{class:"topic-detail-outline-icon",src:"https://www.google.com/s2/favicons?domain_url=".concat(e.url),style:{verticalAlign:"middle",marginRight:"0.2rem"}}),e.title.substring(0,60)+"..."),Object(i.createElement)("a",{target:"_blank",href:e.url},e.url.split("/")[0]+"//"+e.url.split("/")[2])),e.description?Object(i.createElement)(ns.a,null,Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontWeight:"700",color:"#859fbd"}},Ct.k.OUTLINE_DESCRIPTION_TEXT),Object(i.createElement)(x.a,{variant:"caption"},e.description)):null,Object(i.createElement)(ns.a,{style:{overflow:"auto",scrollbarWidth:"none"}},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontWeight:"700",color:"#859fbd",marginBottom:"6px"}},Ct.k.OUTLINE_OUTLINE_TEXT),Object(i.createElement)(w.a,{style:{margin:"1rem 1rem"}},e.headings.map((function(e){return Object(Ct.r)(e.text,e.tag)}))))))})):null))))},Fu=n(82),zu=n.n(Fu),Uu={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Hu=function(e){var t=e.map((function(){return Object(a.useRef)()})),n=Object(a.useRef)(null);return Object(a.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(o){var i=t[o].current;if(i){r=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(a.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]},Wu=function(e){var t=e.className,n=e.percent,r=e.prefixCls,o=e.strokeColor,i=e.strokeLinecap,c=e.strokeWidth,s=e.style,l=e.trailColor,d=e.trailWidth,f=e.transition,p=Object(u.a)(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete p.gapPosition;var h=Array.isArray(n)?n:[n],m=Array.isArray(o)?o:[o],b=Hu(h),v=Object(Q.a)(b,1)[0],g=c/2,y=100-c/2,O="M ".concat("round"===i?g:0,",").concat(g,"\n L ").concat("round"===i?y:100,",").concat(g),j="0 0 100 ".concat(c),E=0;return a.createElement("svg",Object.assign({className:zu()("".concat(r,"-line"),t),viewBox:j,preserveAspectRatio:"none",style:s},p),a.createElement("path",{className:"".concat(r,"-line-trail"),d:O,strokeLinecap:i,stroke:l,strokeWidth:d||c,fillOpacity:"0"}),h.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(E,"px"),transition:f||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},o=m[t]||m[m.length-1];return E+=e,a.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:O,strokeLinecap:i,stroke:o,strokeWidth:c,fillOpacity:"0",ref:v[t],style:n})})))};Wu.defaultProps=Uu,Wu.displayName="Line";var qu=Wu,Vu=0;function $u(e){return+e.replace("%","")}function Gu(e){return Array.isArray(e)?e:[e]}function Xu(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=50-r/2,c=0,s=-a,u=0,l=-2*a;switch(i){case"left":c=-a,s=0,u=2*a,l=0;break;case"right":c=a,s=0,u=-2*a,l=0;break;case"bottom":s=a,l=2*a}var d="M 50,50 m ".concat(c,",").concat(s,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(u,",").concat(-l,"\n a ").concat(a,",").concat(a," 0 1 1 ").concat(-u,",").concat(l),f=2*Math.PI*a,p={stroke:n,strokeDasharray:"".concat(t/100*(f-o),"px ").concat(f,"px"),strokeDashoffset:"-".concat(o/2+e/100*(f-o),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:d,pathStyle:p}}var Ku=function(e){var t,n=e.prefixCls,r=e.strokeWidth,o=e.trailWidth,i=e.gapDegree,c=e.gapPosition,s=e.trailColor,l=e.strokeLinecap,d=e.style,f=e.className,p=e.strokeColor,h=e.percent,m=Object(u.a)(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),b=a.useMemo((function(){return Vu+=1}),[]),v=Xu(0,100,s,r,i,c),g=v.pathString,y=v.pathStyle,O=Gu(h),j=Gu(p),E=j.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),w=Hu(O),x=Object(Q.a)(w,1)[0];return a.createElement("svg",Object.assign({className:zu()("".concat(n,"-circle"),f),viewBox:"0 0 100 100",style:d},m),E&&a.createElement("defs",null,a.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(b),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(E).sort((function(e,t){return $u(e)-$u(t)})).map((function(e,t){return a.createElement("stop",{key:t,offset:e,stopColor:E[e]})})))),a.createElement("path",{className:"".concat(n,"-circle-trail"),d:g,stroke:s,strokeLinecap:l,strokeWidth:o||r,fillOpacity:"0",style:y}),(t=0,O.map((function(e,o){var s=j[o]||j[j.length-1],u="[object Object]"===Object.prototype.toString.call(s)?"url(#".concat(n,"-gradient-").concat(b,")"):"",d=Xu(t,e,s,r,i,c);return t+=e,a.createElement("path",{key:o,className:"".concat(n,"-circle-path"),d:d.pathString,stroke:u,strokeLinecap:l,strokeWidth:r,opacity:0===e?0:1,fillOpacity:"0",style:d.pathStyle,ref:x[o]})}))).reverse())};Ku.defaultProps=Uu,Ku.displayName="Circle";var Yu=function(e){var t,n,r,u=Object(Ft.e)().id,l=Object(s.c)((function(e){return e.auth})),d=Object(s.c)((function(e){return e.currentPage})),f=c.a.useState(!1),p=o()(f,2),h=p[0],m=p[1],b=c.a.useState((new Date).toISOString().split("T")[0]),g=o()(b,2),y=g[0],O=g[1],j=c.a.useState(""),E=o()(j,2),w=E[0],x=E[1],S=c.a.useState(!0),k=o()(S,2),T=k[0],C=k[1],R=Object(s.b)();if(Object(a.useEffect)((function(){x(d.permalink)}),[d.permalink]),Object(a.useEffect)((function(){w&&Object(Ct.x)(w)?C(!0):C(!1)}),[w]),Object(a.useEffect)((function(){h||x(d.permalink)}),[h]),e.Briefs&&e.Briefs.briefs&&e.Briefs.briefs.data){var I=Pt.a.find(e.Briefs.briefs.data,{id:u});I&&(r=(n="string"==typeof(t=I.publishDate))?new Date(t):null)}var A={textTransform:"none"},P={marginBottom:"20px",width:"100%"};return Object(i.createElement)(c.a.Fragment,null,Object(i.createElement)("div",null,!n&&Object(i.createElement)(ha,{title:T?"":"Unable to mark this post as complete because it is either not published or the permalink is invalid. Please try publishing the post first or checking permalink settings."},Object(i.createElement)("span",null,Object(i.createElement)(v,{style:A,color:T?"primary":"grey",disabled:!T,onClick:function(){m(!0)}},"Mark Complete"))),n&&Object(i.createElement)(ha,{title:"Click to go to AdThrive dashboard to edit completion details"},Object(i.createElement)(v,{style:A,color:"primary",onClick:function(){window.open(Ct.o.ADTHRIVE_PUBDASH_BRIEFS(l.activeSite.id),"_blank")}},"Published on ","".concat(r.getUTCMonth()+1,"/").concat(r.getUTCDate(),"/").concat(r.getUTCFullYear())))),Object(i.createElement)(rn,{open:h,onClose:function(){m(!1)}},Object(i.createElement)("div",{style:{display:"flex",flexDirection:"column"}},Object(i.createElement)("form",{onSubmit:function(t){t.preventDefault(),R(function(e){var t=e.briefId,n=e.completedAt,r=e.permalink,o=e.callback,i=It.a.get("adthriveAuthObj"),a=i&&i.token;return function(e,i){return fetch(Ct.o.GET_BASE_URL("ADTHRIVE_API_BASE_URL")+Ct.o.ADTHRIVE_MARK_BRIEF_COMPLETE(i().auth.activeSite.id,t),{method:"POST",headers:{Authorization:"Bearer ".concat(a),"Content-Type":"application/json"},body:JSON.stringify({publishDate:n,id:t,status:"COMPLETED",url:r})}).then((function(e){return e.json()})).then((function(e){if(e.error)throw e.error.message;_.isFunction(o)&&o(e)})).catch((function(e){throw e}))}}({briefId:u,completedAt:y,permalink:w,callback:function(t){console.log("finished marking complete ",t),m(!1),e.handleFinishMarkComplete(),setTimeout((function(){e.updateContentCall()}),1500)}}))}},Object(i.createElement)("div",null,Object(i.createElement)(_t,{id:"completedAt",label:"Date Published",type:"date",defaultValue:"2017-05-24",InputLabelProps:{shrink:!0},onChange:function(e){O(e.target.value)},value:y,style:P,required:!0})),Object(i.createElement)("div",null,Object(i.createElement)(_t,{label:"URL",onChange:function(e){x(e.target.value)},value:w,style:P,placeholder:"https://www.blog.com/post",required:!0,type:"url",disabled:!0})),Object(i.createElement)(v,{variant:"contained",color:"primary",type:"submit",style:{width:"100%"}},"Mark Complete")))))},Ju=kt((function(e){return{root:{color:e.palette.common.black,border:"unset!important"},selected:{color:e.palette.common.black+"!important",backgroundColor:e.palette.common.white+"!important",border:"unset!important",borderBottomLeftRadius:"0!important",borderBottomRightRadius:"0!important"}}}));var Qu=function(e){var t=Ju(),n=Object(Ft.d)(),r=Object(s.b)(),c=Object(Ft.e)().id,u=Object(a.useState)("topic"),l=o()(u,2),d=l[0],f=l[1],p=Object(a.useState)([]),h=o()(p,2),m=h[0],b=h[1],v=Object(a.useState)(!1),g=o()(v,2),y=g[0],j=g[1],E=Object(a.useState)({}),S=o()(E,2),k=S[0],T=S[1],C=Object(Ct.q)(),R=React.useState(!1),I=o()(R,2),A=I[0],P=I[1],N=React.useState(!1),M=o()(N,2),L=M[0],D=M[1],B=React.useState(!1),F=o()(B,2),z=F[0],U=F[1],H=Object(a.useState)(!1),W=o()(H,2),q=W[0],V=W[1],$=Object(a.useState)(!1),G=o()($,2),X=G[0],K=G[1],Y=Object(a.useState)(!1),J=o()(Y,2),Q=J[0],Z=J[1],ee=Object(s.c)((function(e){return e.auth})),te=Object(s.c)((function(e){return e.briefs.activeBrief})),ne=Pt.a.get(te,"content_gdocs.grade")||"",re=Pt.a.get(te,"content_gdocs.word_count")||0,oe=Pt.a.get(te,"content_gdocs.topics_for_next_grade")||0,ie=Pt.a.get(te,"report.recommended_topics")||[],ae=Pt.a.get(te,"name")||"",ce=Object(a.useCallback)(nc()((function(e,t){console.log("setting content"),e.toString()!=t.toString()&&b(e)}),500),[]),se=function(){return new Promise((function(e,t){r(Vt(c)).then((function(t){e(t)})).catch((function(e){t(e)}))}))},ue=function(){m&&m.length>0&&r(function(e,t){return function(n,r){fetch(Ct.o.GET_BASE_URL("TOPIC_BASE_URL")+Ct.o.GET_BRIEFS+"".concat(e),{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({editor_content_gdocs:t.toString()})}).then((function(e){return e.json()})).then((function(e){console.log(e);var t=Object.assign({},r().briefs.activeBrief);return _.isEmpty(t)||(t.report.recommended_topics=t.report.recommended_topics.map((function(t){return t.num_occurences_in_content=_.get(e.report.content_gdocs.covered_topics,t.name,0),t.covered=!!t.num_occurences_in_content,t})),t.content_gdocs=e.report.content_gdocs),n(Ht(t))})).catch((function(e){console.log(e)}))}}(c,m))};Object(a.useEffect)((function(){se(),window.AP.tanalytics.track("Brief Loaded",{brief:Ct.o.GET_BASE_URL("TOPIC_BASE_URL")+Ct.o.GET_BRIEFS+"".concat(c)})}),[]),Object(a.useEffect)((function(){ue()}),[m]),Object(a.useEffect)((function(){L&&!q&&(!Pt.a.isEmpty(ie)&&Pt.a.isNumber(ie[0].cluster)?V(!0):(Z(!0),Object(Ct.B)(c,(function(){se().then((function(){V(!0),Z(!1),ue()}))}),(function(){e.openSnackbar(Ct.a.TOPIC_CLUSTERING_TEXT_ERROR),Z(!1)}))))}),[L]),Object(a.useEffect)((function(){if(z&&!X){var t=function(e){return Pt.a.isEmpty(e)||!Pt.a.isArray(e.questions)||Pt.a.isEmpty(e.questions)?[]:e.questions},n=te.report,r=n.related_questions_quora,o=n.related_questions_autocomplete,i=n.related_questions,a=t(r),s=t(o),u=t(i),l=a.concat(s).concat(u);!Pt.a.isEmpty(l)&&Pt.a.isNumber(l[0].cluster)?K(!0):(Z(!0),Object(Ct.A)(c,(function(){se().then((function(){K(!0),Z(!1),ue()}))}),(function(){e.openSnackbar(Ct.a.QUESTIONS_CLUSTERING_TEXT_ERROR),Z(!1)})))}}),[z]),window.isClassicEditor?(Object(a.useEffect)((function(){ie.length>0&&ce(Object(Ct.q)(),m)}),[ie]),Object(a.useEffect)((function(){return tinymce.activeEditor.on("keyup",(function(){ie.length>0&&ce(Object(Ct.q)(),m)})),function(){tinymce.activeEditor.off("keyup")}}))):Object(a.useEffect)((function(){ie&&ie.length>0&&ce(C,m)}),[C]);var le=function(e,t){if(Pt.a.isEmpty(ie))return"";if("percentage"==e){var n=ie.length,r=0;ie.map((function(e){e.covered&&r++}));var o=parseInt(r/n*100);return o>5?o:5}if("color"==e){if(""==t)return"rgb(255, 76, 76)";if("F"==t)return"#ff4c4c";if("D-"==t)return"#fd6f4b";if("D"==t||"D+"==t)return"#005a87";if("C-"==t||"C"==t||"C+"==t)return"#9c9c31";if("B-"==t||"B"==t||"B+"==t)return"#8FBC8F";if("A-"==t)return"#556B2F";if("A"==t||"A+"==t||"A++"==t)return"#006400"}};return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row",className:"brief",style:{overflow:"hidden"}},Object(i.createElement)("style",null,'\n .brief button[aria-pressed="true"] .MuiTypography-subtitle2{\n font-weight: bold !important;\n }\n .brief button[aria-pressed="false"] .MuiTypography-subtitle2{\n font-weight: normal !important;\n }\n '),Object(i.createElement)(w.a,null),Object(i.createElement)(Sa,{goBack:!0,TopicName:ae,Briefs:e.Briefs,isNotLoggedIn:!!(n&&n.state&&n.state.isNotLoggedIn)}),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{textAlign:"center",background:"rgb(249, 249, 249)"}},Object(i.createElement)(w.a,{container:!0,xs:"12",alignContent:"center",justify:"center"},Object(i.createElement)(w.a,{item:!0,xs:"8",style:{textAlign:"center"}},Object(i.createElement)(x.a,{variant:"caption",display:"block",style:{fontWeight:"500",color:"#334152"}},Ct.a.CURRENT_GRADE_TEXT),function(e){return""==e?Object(i.createElement)(x.a,{variant:"h4",style:{fontWeight:"800",color:"rgb(62 75 92)"},gutterBottom:!0},Object(i.createElement)(O,{size:24})," "):"F"==e||"D-"==e||"D"==e||"D+"==e||"C-"==e||"C"==e||"C+"==e||"B-"==e||"B"==e||"B+"==e||"A-"==e||"A"==e||"A+"==e||"A++"==e?Object(i.createElement)(x.a,{variant:"h4",style:{fontWeight:"800",color:"rgb(62 75 92)"},gutterBottom:!0},e):void 0}(ne),te&&te.report?Object(i.createElement)("div",{style:{position:"absolute",top:"97px",right:"75px",fontSize:"14px",display:"none"}},Object(i.createElement)(x.a,{variant:"h4",style:{fontWeight:"800",color:"#567393"}},te.report.recommended_grade),Object(i.createElement)("div",{style:{height:"24px",width:"1px",borderLeft:"1px dashed",marginLeft:"14px"}})):null,Object(i.createElement)(qu,{percent:le("percentage"),strokeWidth:"7",trailWidth:"7",strokeColor:le("color",ne)}))),Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{color:"#334152",marginBottom:"20px",fontSize:"12px"}},"Cover ",0===oe?1:oe," more topic",oe<=1?"":"s"," to reach next grade"),Object(i.createElement)(x.a,{variant:"subtitle2",display:"block",style:{color:"#334152"}},Ct.a.WORD_COUNT_TEXT," ",function(){if(te.report){var e=parseInt(re/te.report.recommended_word_count*100);return e<35?Object(i.createElement)(Ra,{size:"small",label:"".concat(re),style:{color:"white",background:"rgb(255, 76, 76)",opacity:".5"}}):e<75?Object(i.createElement)(Ra,{size:"small",label:"".concat(re),style:{color:"white",background:"#fb924a",opacity:".5"}}):e>75?Object(i.createElement)(Ra,{size:"small",label:"".concat(re),style:{color:"white",background:"#28b32c",opacity:".5"}}):Object(i.createElement)(Ra,{size:"small",label:"".concat(re),style:{color:"white",background:"#334152",opacity:".5"}})}return Object(i.createElement)(Ra,{size:"small",label:"",style:{color:"white",background:"#334152",opacity:"0"}})}(),"  /  ",te.report?te.report.recommended_word_count:"loading.."),ee.isLoggedInAdthrive&&Object(i.createElement)(Yu,{Briefs:e.Briefs,updateContentCall:ue,handleFinishMarkComplete:function(e){r(qt()),se()}})),Object(i.createElement)(w.a,{item:!0,xs:"12",style:{textAlign:"center",background:"rgb(249, 249, 249)",marginTop:"5px"}},Object(i.createElement)(w.a,{container:!0,spacing:2,direction:"column",alignItems:"center"},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(Ma,{value:d,exclusive:!0,onChange:function(e,t){!function(e){e&&f(e)}(t)}},Object(i.createElement)(Aa,{value:"topic",classes:t},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"0.8rem"}},Ct.a.SELECT_TOPIC_TEXT)),Object(i.createElement)(Aa,{value:"questions",classes:t},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"0.8rem"}},Ct.a.SELECT_QUESTIONS_TEXT)),Object(i.createElement)(Aa,{value:"outlines",classes:t},Object(i.createElement)(x.a,{variant:"subtitle2",style:{fontSize:"0.8rem"}},Ct.a.SELECT_OUTLINES_TEXT)))))),"topic"==d?Object(i.createElement)(_c,{showUnused:A,setShowUnused:P,viewHeadings:function(e){T(e),j(!0)},topics:ie,topicName:ae,setTopicClusteringSwitch:D,topicClusteringSwitch:L,topicClustering:q,clusteringLoadingState:Q}):null,"questions"==d?Object(i.createElement)(es,{briefInfo:te,setQuestionsClusteringSwitch:U,questionsClusteringSwitch:z,questionsClustering:X,clusteringLoadingState:Q,updateContentCall:ue,fetchReport:se}):null,"outlines"==d?Object(i.createElement)(Bu,{briefInfo:te}):null,Object(i.createElement)(ec,{anchor:"right",open:y,onClose:function(){return j(!1)}},Object(i.createElement)(Ua,{topic:k,close:function(){return j(!1)}})))},Zu=(n(214),n(104)),el=n(83),tl=n.n(el),nl=n(115);Pu.addDefaultLocale(Zu);var rl=kt((function(e){return{arrow:{color:e.palette.common.white},tooltip:{backgroundColor:e.palette.primary.main}}})),ol=Object(f.a)({root:{"& .MuiInputBase-input":{background:"none",border:"none",width:"12rem",fontSize:"14px"},"& .MuiInputBase-input:focus":{boxShadow:"none",outline:"none"},"& .MuiInput-underline:hover:not(.Mui-disabled):before":{borderBottom:"unset"},"& .MuiInput-underline:before":{borderBottom:"unset"},"& .MuiInput-underline:after":{borderBottom:"unset"}}})(nl.DebounceInput);var il=function(e){rl();var t=new Pu("en-US"),n=Object(a.useState)(""),r=o()(n,2),c=r[0],u=r[1],l=Object(Ft.c)(),d=Object(s.b)();return Object(a.useEffect)((function(){if(c.length>1){if(e.Briefs){var t="".concat(Ct.o.GET_BASE_URL("TOPIC_BASE_URL"),"keyword_reports?filters=filter%5Buser_id%5D=all&filter%5Bsearch%5D=").concat(c);fetch(t,{headers:{accept:"*/*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/json",authorization:"Bearer ".concat(It.a.get("topicToken"))},method:"GET"}).then((function(e){return e.json()})).then((function(e){d(Ut(e))}))}}else d(Wt())}),[c]),Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row",spacing:1},Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0.5rem 1.5rem"}},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold"}},Ct.b.SEARCH_BRIEF_TEXT_HEADING)),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{textAlign:"center",padding:"0.3rem 1.8rem"}},Object(i.createElement)(ts.a,{style:{padding:"0.3rem 2rem",paddingLeft:"14px",borderRadius:"30rem"}},Object(i.createElement)(w.a,{container:!0,display:"flex"},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(tl.a,{color:"primary",size:"small",style:{position:"relative",top:"3px",opacity:"0.6"}})),Object(i.createElement)(w.a,{item:!0,style:{flexGrow:"1"}},Object(i.createElement)(ol,{fullWidth:!0,minLength:2,debounceTimeout:300,onChange:function(e){u(e.target.value)},style:{all:"initial",marginBottom:"0.4rem",height:"100%",width:"100%",fontFamily:"inherit"},placeholder:Ct.b.BRIEF_SEARCH_PLACEHOLDER_TEXT,type:"text",value:c}))))),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0.5rem 1.5rem",marginTop:"21px"}},Object(i.createElement)(x.a,{variant:"h6",color:"primary",gutterBottom:!0,style:{fontWeight:"bold"}},Ct.b.BRIEF_SUB_HEADING_TEXT),Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row"},Object(i.createElement)(w.a,{item:!0,xs:"9"},Object(i.createElement)(x.a,{variant:"body1",color:"primary",style:{paddingLeft:"13px",fontSize:"14px"}},"Keyword")),Object(i.createElement)(w.a,{item:!0,xs:"3"},Object(i.createElement)(x.a,{variant:"body1",color:"primary",style:{paddingRight:"13px",fontSize:"14px"}},"Created")))),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0.5rem 1.5rem"}},e.Briefs&&e.Briefs.briefs&&!Pt.a.isEmpty(e.Briefs.briefs.reports)?e.Briefs.briefs.reports.map((function(e){return Object(i.createElement)(ts.a,{style:{marginBottom:10,borderRadius:"0.3rem",cursor:"pointer"},onClick:function(){return t=e.id,void l.push("/brief/".concat(t));var t}},Object(i.createElement)(ns.a,{style:{paddingBottom:"13px",padding:"13px"}},Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row"},Object(i.createElement)(w.a,{item:!0,xs:"9"},Object(i.createElement)(x.a,{variant:"body1",color:"primary",style:{fontSize:"14px"}},e.name)),Object(i.createElement)(w.a,{item:!0,xs:"3"},Object(i.createElement)(x.a,{variant:"caption",color:"primary",style:{color:"grey"}},t.format(new Date(e.created_at),"round"))))))})):Object(Ct.y)("card")))};var al,cl=function(e){return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row"},Object(i.createElement)(Sa,{Briefs:e.Briefs}),Object(i.createElement)(il,{Briefs:e.Briefs}))},sl=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=void 0===o?"primary":o,c=e.value,s=e.valueBuffer,f=e.variant,p=void 0===f?"indeterminate":f,h=Object(u.a)(e,["classes","className","color","value","valueBuffer","variant"]),b=P(),v={},g={bar1:{},bar2:{}};if("determinate"===p||"buffer"===p)if(void 0!==c){v["aria-valuenow"]=Math.round(c),v["aria-valuemin"]=0,v["aria-valuemax"]=100;var y=c-100;"rtl"===b.direction&&(y=-y),g.bar1.transform="translateX(".concat(y,"%)")}else 0;if("buffer"===p)if(void 0!==s){var O=(s||0)-100;"rtl"===b.direction&&(O=-O),g.bar2.transform="translateX(".concat(O,"%)")}else 0;return a.createElement("div",Object(l.a)({className:Object(d.a)(n.root,n["color".concat(Object(m.a)(i))],r,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[p]),role:"progressbar"},v,{ref:t},h),"buffer"===p?a.createElement("div",{className:Object(d.a)(n.dashed,n["dashedColor".concat(Object(m.a)(i))])}):null,a.createElement("div",{className:Object(d.a)(n.bar,n["barColor".concat(Object(m.a)(i))],("indeterminate"===p||"query"===p)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[p]),style:g.bar1}),"determinate"===p?null:a.createElement("div",{className:Object(d.a)(n.bar,("indeterminate"===p||"query"===p)&&n.bar2Indeterminate,"buffer"===p?[n["color".concat(Object(m.a)(i))],n.bar2Buffer]:n["barColor".concat(Object(m.a)(i))]),style:g.bar2}))})),ul=Object(f.a)((function(e){var t=function(t){return"light"===e.palette.type?Object(p.e)(t,.62):Object(p.a)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(sl),ll="undefined"==typeof window?a.useEffect:a.useLayoutEffect,dl=a.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,c=e.button,s=void 0!==c&&c,f=e.children,p=e.classes,m=e.className,b=e.component,v=e.ContainerComponent,g=void 0===v?"li":v,y=e.ContainerProps,O=(y=void 0===y?{}:y).className,j=Object(u.a)(y,["className"]),E=e.dense,w=void 0!==E&&E,x=e.disabled,_=void 0!==x&&x,S=e.disableGutters,k=void 0!==S&&S,T=e.divider,C=void 0!==T&&T,R=e.focusVisibleClassName,I=e.selected,A=void 0!==I&&I,P=Object(u.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),N=a.useContext(Ke),M={dense:w||N.dense||!1,alignItems:r},L=a.useRef(null);ll((function(){i&&L.current&&L.current.focus()}),[i]);var D=a.Children.toArray(f),B=D.length&&$(D[D.length-1],["ListItemSecondaryAction"]),F=a.useCallback((function(e){L.current=ne.findDOMNode(e)}),[]),z=Object(ue.a)(F,t),U=Object(l.a)({className:Object(d.a)(p.root,m,M.dense&&p.dense,!k&&p.gutters,C&&p.divider,_&&p.disabled,s&&p.button,"center"!==r&&p.alignItemsFlexStart,B&&p.secondaryAction,A&&p.selected),disabled:_},P),H=b||"li";return s&&(U.component=b||"div",U.focusVisibleClassName=Object(d.a)(p.focusVisible,R),H=h.a),B?(H=U.component||b?H:"div","li"===g&&("li"===H?H="div":"li"===U.component&&(U.component="div")),a.createElement(Ke.Provider,{value:M},a.createElement(g,Object(l.a)({className:Object(d.a)(p.container,O),ref:z},j),a.createElement(H,U,D),D.pop()))):a.createElement(Ke.Provider,{value:M},a.createElement(H,Object(l.a)({ref:z},U),D))})),fl=Object(f.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(dl),pl=a.forwardRef((function(e,t){var n,r=e.classes,o=e.className,i=e.component,c=void 0===i?"li":i,s=e.disableGutters,f=void 0!==s&&s,p=e.ListItemClasses,h=e.role,m=void 0===h?"menuitem":h,b=e.selected,v=e.tabIndex,g=Object(u.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==v?v:-1),a.createElement(fl,Object(l.a)({button:!0,role:m,tabIndex:n,component:c,selected:b,disableGutters:f,classes:Object(l.a)({dense:r.dense},p),className:Object(d.a)(r.root,o,b&&r.selected,!f&&r.gutters),ref:t},g))})),hl=Object(f.a)((function(e){return{root:Object(l.a)({},e.typography.body1,Object(R.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(l.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(pl);function ml(){if(al)return al;var e=document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),al="reverse",e.scrollLeft>0?al="default":(e.scrollLeft=1,0===e.scrollLeft&&(al="negative")),document.body.removeChild(e),al}function bl(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(ml()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function vl(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var gl={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function yl(e){var t=e.onChange,n=Object(u.a)(e,["onChange"]),r=a.useRef(),o=a.useRef(null),i=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return a.useEffect((function(){var e=Object(oe.a)((function(){var e=r.current;i(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),a.useEffect((function(){i(),t(r.current)}),[t]),a.createElement("div",Object(l.a)({style:gl,ref:o},n))}var Ol=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,i=e.orientation,c=Object(u.a)(e,["classes","className","color","orientation"]);return a.createElement("span",Object(l.a)({className:Object(d.a)(n.root,n["color".concat(Object(m.a)(o))],r,"vertical"===i&&n.vertical),ref:t},c))})),jl=Object(f.a)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(Ol),El=ft(a.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),wl=ft(a.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),xl=a.createElement(El,{fontSize:"small"}),_l=a.createElement(wl,{fontSize:"small"}),Sl=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,i=e.orientation,c=e.disabled,s=Object(u.a)(e,["classes","className","direction","orientation","disabled"]);return a.createElement(h.a,Object(l.a)({component:"div",className:Object(d.a)(n.root,r,c&&n.disabled,"vertical"===i&&n.vertical),ref:t,role:null,tabIndex:null},s),"left"===o?xl:_l)})),kl=Object(f.a)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(Sl),Tl=a.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],o=e.action,i=e.centered,c=void 0!==i&&i,s=e.children,f=e.classes,p=e.className,h=e.component,m=void 0===h?"div":h,b=e.indicatorColor,v=void 0===b?"secondary":b,g=e.onChange,y=e.orientation,O=void 0===y?"horizontal":y,j=e.ScrollButtonComponent,E=void 0===j?kl:j,w=e.scrollButtons,x=void 0===w?"auto":w,_=e.selectionFollowsFocus,S=e.TabIndicatorProps,k=void 0===S?{}:S,T=e.TabScrollButtonProps,C=e.textColor,I=void 0===C?"inherit":C,A=e.value,N=e.variant,M=void 0===N?"standard":N,L=Object(u.a)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),D=P(),B="scrollable"===M,F="rtl"===D.direction,z="vertical"===O,U=z?"scrollTop":"scrollLeft",H=z?"top":"left",W=z?"bottom":"right",q=z?"clientHeight":"clientWidth",V=z?"height":"width";var $=a.useState(!1),G=$[0],X=$[1],K=a.useState({}),Y=K[0],J=K[1],Q=a.useState({start:!1,end:!1}),Z=Q[0],ee=Q[1],te=a.useState({overflow:"hidden",marginBottom:null}),ne=te[0],re=te[1],ae=new Map,ce=a.useRef(null),se=a.useRef(null),ue=function(){var e,t,n=ce.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:bl(n,D.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==A){var o=se.current.children;if(o.length>0){var i=o[ae.get(A)];0,t=i?i.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},le=Object(fe.a)((function(){var e,t=ue(),n=t.tabsMeta,r=t.tabMeta,o=0;if(r&&n)if(z)o=r.top-n.top+n.scrollTop;else{var i=F?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;o=r.left-n.left+i}var a=(e={},Object(R.a)(e,H,o),Object(R.a)(e,V,r?r[V]:0),e);if(isNaN(Y[H])||isNaN(Y[V]))J(a);else{var c=Math.abs(Y[H]-a[H]),s=Math.abs(Y[V]-a[V]);(c>=1||s>=1)&&J(a)}})),de=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},i=r.ease,a=void 0===i?vl:i,c=r.duration,s=void 0===c?300:c,u=null,l=t[e],d=!1,f=function(){d=!0},p=function r(i){if(d)o(new Error("Animation cancelled"));else{null===u&&(u=i);var c=Math.min(1,(i-u)/s);t[e]=a(c)*(n-l)+l,c>=1?requestAnimationFrame((function(){o(null)})):requestAnimationFrame(r)}};l===n?o(new Error("Element already at target position")):requestAnimationFrame(p)}(U,ce.current,e)},pe=function(e){var t=ce.current[U];z?t+=e:(t+=e*(F?-1:1),t*=F&&"reverse"===ml()?-1:1),de(t)},he=function(){pe(-ce.current[q])},me=function(){pe(ce.current[q])},be=a.useCallback((function(e){re({overflow:null,marginBottom:-e})}),[]),ve=Object(fe.a)((function(){var e=ue(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[H]t[W]){var o=t[U]+(n[W]-t[W]);de(o)}})),ge=Object(fe.a)((function(){if(B&&"off"!==x){var e,t,n=ce.current,r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight,a=n.scrollWidth,c=n.clientWidth;if(z)e=r>1,t=r1,t=F?s>1:s *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(Rl),Al=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];n(240),n(241),n(242);var Pl=Object(a.forwardRef)((function(e,t){var n=$o(function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,i=e.loadOptions;e.options;var c=e.isLoading,s=void 0!==c&&c,l=e.onInputChange,d=e.filterOption,f=void 0===d?null:d,p=Object(u.a)(e,Al),h=p.inputValue,m=Object(a.useRef)(void 0),b=Object(a.useRef)(!1),v=Object(a.useState)(Array.isArray(n)?n:void 0),g=Object(Q.a)(v,2),y=g[0],O=g[1],j=Object(a.useState)(void 0!==h?h:""),E=Object(Q.a)(j,2),w=E[0],x=E[1],_=Object(a.useState)(!0===n),S=Object(Q.a)(_,2),k=S[0],T=S[1],C=Object(a.useState)(void 0),I=Object(Q.a)(C,2),A=I[0],P=I[1],N=Object(a.useState)([]),M=Object(Q.a)(N,2),L=M[0],D=M[1],B=Object(a.useState)(!1),F=Object(Q.a)(B,2),z=F[0],U=F[1],H=Object(a.useState)({}),W=Object(Q.a)(H,2),q=W[0],V=W[1],$=Object(a.useState)(void 0),G=Object(Q.a)($,2),X=G[0],K=G[1],Y=Object(a.useState)(void 0),J=Object(Q.a)(Y,2),Z=J[0],ee=J[1];o!==Z&&(V({}),ee(o)),n!==X&&(O(Array.isArray(n)?n:void 0),K(n)),Object(a.useEffect)((function(){return b.current=!0,function(){b.current=!1}}),[]);var te=Object(a.useCallback)((function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[i]);Object(a.useEffect)((function(){!0===n&&te(w,(function(e){b.current&&(O(e||[]),T(!!m.current))}))}),[]);var ne=Object(a.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n)return m.current=void 0,x(""),P(""),D([]),T(!1),void U(!1);if(o&&q[n])x(n),P(n),D(q[n]),T(!1),U(!1);else{var r=m.current={};x(n),T(!0),U(!A),te(n,(function(e){b&&r===m.current&&(m.current=void 0,T(!1),P(n),D(e||[]),U(!1),V(e?Vr(Vr({},q),{},Object(R.a)({},n,e)):q))}))}}),[o,te,A,q,l]),re=z?[]:w&&A?L:y||[];return Vr(Vr({},p),{},{options:re,isLoading:k||s,onInputChange:ne,filterOption:f})}(e));return a.createElement(Fi,Object(l.a)({ref:t},n))})),Nl=n(165),Ml=n.n(Nl),Ll=kt({root:{"& .MuiInputBase-input":{border:"none",width:"100%"},"& .MuiInputBase-input:focus":{outline:"none",boxShadow:"none"}}});var Dl=function(e){var t="update"===e.type,n=Object(s.b)(),r=(Object(Ft.c)(),Object(Ft.d)(),c.a.useState("")),a=o()(r,2),u=a[0],l=a[1],d=Object(s.c)((function(e){return e.currentPage})),f=c.a.useState(null),p=o()(f,2),h=p[0],m=p[1],b=Ll();return Object(i.createElement)(ts.a,{style:{marginBottom:10,borderRadius:"0.3rem",cursor:"pointer",overflow:"visible",position:"relative"}},Object(i.createElement)(ns.a,{style:{paddingBottom:"13px",padding:"13px"}},Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row"},Object(i.createElement)(w.a,{item:!0,xs:"9"},Object(i.createElement)(_t,{placeholder:"keyword",type:"text",value:u,onChange:function(e){l(e.target.value)},className:b.root})),Object(i.createElement)(w.a,{item:!0,xs:"3"},Object(i.createElement)(v,{variant:"contained",color:"primary",size:"small",onClick:function(){if(Pt.a.isEmpty(u))alert("Please choose a valid keyword");else{var r="";t&&(r=h.value.permalink),n(function(e){var t=e.keyword,n=e.url,r=It.a.get("adthriveAuthObj"),o=r&&r.token;return function(e,r){var i;return e(zt(!0)),i=_.isEmpty(n)?{keyword:t,type:"New"}:{keyword:t,type:"Updated",url:n},fetch(Ct.o.GET_BASE_URL("ADTHRIVE_API_BASE_URL")+Ct.o.ADTHRIVE_GET_BRIEFS(r().auth.activeSite.id),{method:"POST",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"},body:JSON.stringify(i)}).then((function(e){return e.json()})).then((function(t){if(t.errors)throw t.errors;return e(qt())})).catch((function(e){throw e}))}}({keyword:u,url:r})).then((function(){t?window.AP.tanalytics.track("Brief Created",{type:"updated",brief:r}):window.AP.tanalytics.track("Brief Created",{type:"new"}),l(""),Pt.a.isFunction(e.onCreate)&&e.onCreate()})).catch((function(e){console.log("errors when creating content brief",e),e&&e[0]&&e[0].detail&&alert("Something went wrong creating the brief. Message: "+e[0].detail)}))}}},"Create")),t&&Object(i.createElement)(w.a,{item:!0,xs:"12"},Object(i.createElement)("div",{style:{marginTop:"5px"}},"For post: "),Object(i.createElement)(Pl,{loadOptions:function(e,t){jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"search_posts",s:e}}).then((function(e){var n=Pt.a.map(e.posts,(function(e){return{label:e.post_title,value:e}}));if(t(n),null===h){var r=Pt.a.find(e.posts,{ID:"".concat(d.postId)});Object(Ct.x)(r.permalink)&&m({label:r.post_title,value:r})}}))},defaultOptions:!0,onChange:function(e){m(e)},classNamePrefix:"react-select",value:h}))),Object(i.createElement)(Ml.a,{style:{position:"absolute",top:"-10px",right:"-11px",color:"#50575e"},onClick:e.handleClose})))};function Bl(){return function(e,t){var n=new URL(window.location.href).searchParams.get("post");return e(function(e){return{type:Tt.k,postId:e}}(n)),jQuery.ajax({url:ajaxurl,type:"POST",data:{action:"get_permalink_for_post_id",post_id:n}}).then((function(t){if(console.log("data is ",t),t.error)throw t.error.message;return e((n=t.permalink,{type:Tt.i,permalink:n}));var n}))}}var Fl=kt((function(e){return{arrow:{color:e.palette.common.white},tooltip:{backgroundColor:e.palette.primary.main}}}));var zl=function(e){var t=Object(s.b)(),n=(Fl(),new Pu("en-US")),r=Object(a.useState)(""),c=o()(r,2),u=c[0],l=c[1],d=Object(a.useState)(!1),f=o()(d,2),p=f[0],h=f[1],m=Object(a.useState)(!1),b=o()(m,2),g=b[0],y=b[1],O=React.useState(null),j=o()(O,2),E=j[0],_=j[1],S=React.useState(0),k=o()(S,2),T=k[0],C=k[1],R=Object(s.c)((function(e){return e.briefs})),I=Object(s.c)((function(e){return e.currentPage})),A=(Object(s.c)((function(e){return e.auth})),Object(Ft.c)()),P=function(e){A.push("/brief/".concat(e))};Object(a.useEffect)((function(){if(I.shouldTryAutoloading&&R&&!Pt.a.isEmpty(R.briefs)&&I.permalink){t(function(e){return{type:Tt.l,shouldTryAutoloading:e}}(!1));var e=R.briefs.data,n=Pt.a.find(e,{url:I.permalink});n&&(console.log("currentPage: "+I.permalink),console.log(n),P(n.id))}else Pt.a.isEmpty(R.activeBrief)||(console.log("Loading breif after minimizing WP"),P(R.activeBrief.id))}));var N,M=R.isLoading;R&&R.briefs&&R.briefs.data&&(N=R.briefs.data,N=Pt.a.filter(N,(function(e){return!(u.length>1&&!Pt.a.includes(e.keyword.toLowerCase(),u.toLowerCase()))}))),0===T?(N=Pt.a.filter(N,(function(e){return!(!e||"COMPLETED"===e.status)})),N=Pt.a.sortBy(N,(function(e){return-1*new Date(e.createdAt)}))):(N=Pt.a.filter(N,(function(e){return!(!e||"COMPLETED"!==e.status)})),N=Pt.a.sortBy(N,(function(e){return-1*new Date(e.completedAt)})));var L=Pt.a.filter(N,{status:"GENERATING"}).length>0;Object(Ct.C)((function(){t(qt())}),L?7e3:null);var D=M&&!L,B=!Pt.a.isEmpty(N);return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row",spacing:1},Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0.5rem 1.5rem"}},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold"}},Ct.b.SEARCH_BRIEF_TEXT_HEADING)),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{textAlign:"center",padding:"0.3rem 1.8rem"}},Object(i.createElement)(ts.a,{style:{padding:"0.3rem 2rem",paddingLeft:"14px",borderRadius:"30rem"}},Object(i.createElement)(w.a,{container:!0,display:"flex"},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(tl.a,{color:"primary",size:"small",style:{position:"relative",top:"3px",opacity:"0.6",paddingRight:"6px"}})),Object(i.createElement)(w.a,{item:!0,style:{flexGrow:"1"}},Object(i.createElement)(nl.DebounceInput,{fullWidth:!0,minLength:2,debounceTimeout:300,onChange:function(e){l(e.target.value)},style:{all:"initial",marginBottom:"0.4rem",height:"100%",width:"100%",fontFamily:"inherit"},placeholder:Ct.b.BRIEF_SEARCH_PLACEHOLDER_TEXT,type:"text",value:u}))))),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0.5rem 1.5rem",marginTop:"21px"}},Object(i.createElement)("div",{style:{display:"flex",flexDirection:"row"}},Object(i.createElement)(x.a,{variant:"h6",color:"primary",gutterBottom:!0,style:{fontWeight:"bold",flexGrow:1}},Ct.b.BRIEF_SUB_HEADING_TEXT),Object(i.createElement)("div",null,Object(i.createElement)(v,{variant:"contained",color:"primary",size:"small",onClick:function(e){_(e.currentTarget)}},"+ New"),Object(i.createElement)(ct,{anchorEl:E,keepMounted:!0,open:Boolean(E),onClose:function(){_(null)}},Object(i.createElement)(hl,{onClick:function(){h(!0),y(!1),_(null)}},"For New Post"),Object(i.createElement)(hl,{onClick:function(){y(!0),h(!1),_(null)}},"For Existing Post"))))),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0 1.5rem"}},Object(i.createElement)(Cl,{value:T,onChange:function(e,t){C(t)},"aria-label":"Content Brief Status",indicatorColor:"primary"},Object(i.createElement)(Il,{label:"In Progress"}),Object(i.createElement)(Il,{label:"Completed"}))),Object(i.createElement)(w.a,{xs:"12",item:!0,style:{padding:"0.5rem 1.5rem"}},p&&Object(i.createElement)(Dl,{onCreate:function(){h(!1)},type:"new",handleClose:function(){h(!1)}}),g&&Object(i.createElement)(Dl,{onCreate:function(){y(!1)},type:"update",handleClose:function(){y(!1)}}),B&&N.map((function(e){var t="GENERATING"===e.status,r=new Date(e.createdAt);return e.status&&"COMPLETED"===e.status&&e.completedAt&&(r=new Date(e.completedAt)),Object(i.createElement)(ts.a,{style:{marginBottom:10,borderRadius:"0.3rem",cursor:"".concat(t?"default":"pointer")},onClick:function(){!t&&P(e.id)}},Object(i.createElement)(ns.a,{style:{paddingBottom:"13px",padding:"13px"}},Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"row"},Object(i.createElement)(w.a,{item:!0,xs:"9"},Object(i.createElement)(x.a,{variant:"body1",color:"primary",style:{fontSize:"14px"}},e.keyword)),Object(i.createElement)(w.a,{item:!0,xs:"3"},Object(i.createElement)(x.a,{variant:"caption",color:"primary",style:{color:"grey"}},!t&&n.format(r,"round"),t&&"generating...")),t&&Object(i.createElement)(w.a,{item:!0,xs:"12",style:{marginTop:"5px"}},Object(i.createElement)(ul,null)))))})),!M&&Pt.a.isEmpty(N)&&Object(i.createElement)("div",{style:{marginBottom:"10px"}},"No briefs found"),D&&Object(Ct.y)("card")))};var Ul=function(e){var t=Object(s.c)((function(e){return e.currentPage})),n=!t.shouldTryAutoloading;return n=!(!n&&t.postId),Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"row",style:{opacity:n?"1":"0"}},Object(i.createElement)(Sa,{Briefs:e.Briefs}),Object(i.createElement)(zl,{Briefs:e.Briefs}))},Hl=kt({root:{"& .MuiInputBase-input":{borderRadius:"4px",border:"none",boxShadow:"0px 1px 6px #7784945e",padding:"5px 10px",margin:0},"& .MuiInputBase-input:focus":{boxShadow:"none",outline:"none"},"& .MuiFormLabel-root":{textAlign:"center"}}});var Wl=function(e){var t=Hl(),n=Object(Ft.c)(),r=c.a.useState(),u=o()(r,2),l=u[0],d=u[1],f=Object(s.c)((function(e){return e.currentPage})),p=(Object(Ft.d)(),c.a.useState(!1)),h=o()(p,2),m=h[0],b=h[1];Object(a.useEffect)((function(){localStorage.previousURLObject&&JSON.parse(localStorage.previousURLObject)[f.postId]&&JSON.parse(localStorage.previousURLObject)[f.postId].length>0&&g()}),[]);var g=function(){var t=localStorage.previousURLObject&&JSON.parse(localStorage.previousURLObject)?JSON.parse(localStorage.previousURLObject):{};if(l&&l.length>0||f.postId&&t[f.postId]){var r=t[f.postId]?t[f.postId]:l;try{b(!0);var o=new URL(r).pathname.split("/")[2];Object(Ct.p)(o).then((function(i){if(!i)return b(!1),e.openSnackbar(Ct.h.SNACKBAR_TEXT_INVALID),0;t[f.postId]=r,localStorage.setItem("previousURLObject",JSON.stringify(t)),n.push({pathname:"/brief/".concat(o),state:{isNotLoggedIn:!0}},{linkView:!0}),window.AP.tanalytics.track("Brief Link Loaded",{brief:r})}))}catch(t){b(!1),e.openSnackbar("Sorry, Couldn't load Brief.")}}};return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"column",alignItems:"center",justify:"center",spacing:1,style:{position:"absolute",top:"8rem"},className:"load-brief-form"},Object(i.createElement)("style",null,"\n .load-brief-form .MuiGrid-root{\n text-align: center;\n }\n\n .load-brief-form label{\n font-size: 12px !important;\n transition: none !important;\n transform: none !important; \n height: 20px !important;\n width: auto !important;\n position: relative !important;\n margin-top:8px !important;\n margin-bottom:6px;\n }\n\n .load-brief-form .MuiInput-formControl{\n margin-top: 0 !important;\n }\n "),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold",textAlign:"center"}},Ct.h.LOAD_BRIEF_HEADING),Object(i.createElement)(_t,{className:t.root,label:Ct.h.BRIEF_TEXTFIELD_LABAL_TEXT,placeholder:Ct.h.BRIEF_TEXTFIELD_PLACEMENT_TEXT,type:"text",value:l,onChange:function(e){d(e.target.value)},InputLabelProps:{shrink:!0}})),Object(i.createElement)(w.a,{item:!0,alignItems:"center",justify:"center",style:{textAlign:"center"}},Object(i.createElement)(v,{variant:"contained",color:"primary",size:"small",disabled:m,onClick:g},m?Object(i.createElement)(O,{size:24}):Ct.h.LOAD_BRIEF_BUTTON_TEXT)),Object(i.createElement)(w.a,{item:!0},Object(i.createElement)("div",{style:{margin:"20px",backgroundColor:"white",padding:"10px",borderRadius:"4px",boxShadow:"0px 1px 6px #7784945e"}},Object(i.createElement)("span",{style:{fontWeight:"bold"}},"Are you an AdThrive Publisher?"),Object(i.createElement)("p",{style:{marginTop:"10px",marginBottom:"0"}},"Watch ",Object(i.createElement)("a",{href:"https://vimeo.com/594907722",target:"_blank"},"this short video")," to learn how to use this plugin with your AdThrive account."))),Object(i.createElement)(w.a,{item:!0,style:{textAlign:"center"}},Object(i.createElement)(E,{style:{marginTop:"10px",marginBottom:"10px"}}),Object(i.createElement)(w.a,{item:!0,xs:12},Object(i.createElement)("a",{variant:"subtitle2",onClick:function(){n.push({pathname:"/login_adthrive"})},style:{textDecoration:"underline",cursor:"pointer"}},"Log In (AdThrive)")),Object(i.createElement)(w.a,{item:!0,xs:12,style:{marginTop:"6px"}},Object(i.createElement)("a",{variant:"subtitle2",onClick:function(){n.push({pathname:"/login_legacy"})},style:{textDecoration:"underline",cursor:"pointer",color:"#7b97b1",display:"none"}},"Log In (legacy)"))))};var ql=function(e){var t=Object(s.b)(),n=Object(Ft.c)(),r=Object(s.c)((function(e){return e.auth})),u=(Object(Ft.d)(),c.a.useState(!1)),l=o()(u,2),d=l[0],f=l[1];Object(a.useEffect)((function(){d||Pt.a.isEmpty(r.adthriveSites)&&(f(!0),t(Bt((function(){f(!1)}))))})),Object(a.useEffect)((function(){var e=r.adthriveSites;e&&1===e.length&&p(e[0])}),[r]);var p=function(e){t(Lt(e)),n.push("/dashboard_adthrive"),t(qt())},h=r.adthriveSites,m=Pt.a.isEmpty(h);return Object(i.createElement)(w.a,{container:!0,xs:"12",direction:"column",spacing:1},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)(x.a,{variant:"h6",color:"primary",style:{fontWeight:"bold",textAlign:"center",marginTop:"20px"}},"Choose A Site")),Object(i.createElement)(w.a,{item:!0,style:{padding:"17px"}},d&&Object(i.createElement)("div",null,"loading sites..."),!d&&m&&Object(i.createElement)("div",null,"No AdThrive sites found"),!d&&!m&&Pt.a.map(h,(function(e){return Object(i.createElement)(ts.a,{style:{marginBottom:10,borderRadius:"0.3rem",cursor:"pointer"},onClick:function(){p(e)}},Object(i.createElement)(ns.a,{style:{paddingBottom:"13px",padding:"13px"}},e.name))}))))};var Vl=function(e){return Object(i.createElement)(w.a,{container:!0,xs:"12",md:"12",direction:"column",alignItems:"center",justify:"center",spacing:1,style:{paddingTop:"200px",position:"absolute"}},Object(i.createElement)(w.a,{item:!0},Object(i.createElement)("div",{style:{margin:"20px",backgroundColor:"white",padding:"10px",borderRadius:"4px",boxShadow:"0px 1px 6px #7784945e"}},Object(i.createElement)("span",{style:{fontWeight:"bold"}},"Ad Blocker Detected"),Object(i.createElement)("p",{style:{marginTop:"10px",marginBottom:"0"}},"We've noticed that you are using an ad-blocking browser extension or firewall. Please turn it off and refresh the page to use this plugin."),Object(i.createElement)("p",{style:{marginTop:"10px",marginBottom:"0"}},"See ",Object(i.createElement)("a",{href:"https://help.adthrive.com/hc/en-us/articles/7103432288923#h_01G78CBWXMGMM667TCME0T4D8C",target:"_blank"},"this support article")," to learn how to turn off any ad-blocking browser extensions."))))},$l=n(171),Gl=n(306),Xl=n(96),Kl=n(32),Yl=n(95),Jl=n(153),Ql=n(97),Zl=n(98),ed=n(100),td=n(99),nd=n(154),rd=n(101),od=n(103),id=n(102),ad=n(305),cd=function(e){var t=Object(ad.a)(e);return function(e,n){return t(e,Object(l.a)({defaultTheme:A.a},n))}},sd=Object(Xl.a)(Object(Kl.a)(Yl.h,Jl.a,Ql.d,Zl.a,ed.b,td.c,nd.a,rd.b,od.b,id.a)),ud=cd("div")(sd,{name:"MuiBox"});function ld(e){return e.substring(2).toLowerCase()}var dd=function(e){var t=e.children,n=e.disableReactTree,r=void 0!==n&&n,o=e.mouseEvent,i=void 0===o?"onClick":o,c=e.onClickAway,s=e.touchEvent,u=void 0===s?"onTouchEnd":s,l=a.useRef(!1),d=a.useRef(null),f=a.useRef(!1),p=a.useRef(!1);a.useEffect((function(){return f.current=!0,function(){f.current=!1}}),[]);var h=a.useCallback((function(e){d.current=ne.findDOMNode(e)}),[]),m=Object(ue.a)(t.ref,h),b=Object(fe.a)((function(e){var t=p.current;if(p.current=!1,f.current&&d.current&&!function(e){return document.documentElement.clientWidth-1;else n=!te(d.current).documentElement.contains(e.target)||d.current.contains(e.target);n||!r&&t||c(e)}})),v=function(e){return function(n){p.current=!0;var r=t.props[e];r&&r(n)}},g={ref:m};return!1!==u&&(g[u]=v(u)),a.useEffect((function(){if(!1!==u){var e=ld(u),t=te(d.current),n=function(){l.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,b),t.removeEventListener("touchmove",n)}}}),[b,u]),!1!==i&&(g[i]=v(i)),a.useEffect((function(){if(!1!==i){var e=ld(i),t=te(d.current);return t.addEventListener(e,b),function(){t.removeEventListener(e,b)}}}),[b,i]),a.createElement(a.Fragment,null,a.cloneElement(t,g))},fd=a.forwardRef((function(e,t){var n=e.action,r=e.classes,o=e.className,i=e.message,c=e.role,s=void 0===c?"alert":c,f=Object(u.a)(e,["action","classes","className","message","role"]);return a.createElement(He.a,Object(l.a)({role:s,square:!0,elevation:6,className:Object(d.a)(r.root,o),ref:t},f),a.createElement("div",{className:r.message},i),n?a.createElement("div",{className:r.action},n):null)})),pd=Object(f.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(p.b)(e.palette.background.default,t);return{root:Object(l.a)({},e.typography.body2,Object(R.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(fd),hd=a.forwardRef((function(e,t){var n=e.action,r=e.anchorOrigin,o=(r=void 0===r?{vertical:"bottom",horizontal:"center"}:r).vertical,i=r.horizontal,c=e.autoHideDuration,s=void 0===c?null:c,f=e.children,p=e.classes,h=e.className,b=e.ClickAwayListenerProps,v=e.ContentProps,g=e.disableWindowBlurListener,y=void 0!==g&&g,O=e.message,j=e.onClose,E=e.onEnter,w=e.onEntered,x=e.onEntering,_=e.onExit,S=e.onExited,k=e.onExiting,T=e.onMouseEnter,C=e.onMouseLeave,R=e.open,I=e.resumeHideDuration,A=e.TransitionComponent,P=void 0===A?Ue:A,N=e.transitionDuration,M=void 0===N?{enter:Ha.b.enteringScreen,exit:Ha.b.leavingScreen}:N,L=e.TransitionProps,D=Object(u.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),B=a.useRef(),F=a.useState(!0),z=F[0],U=F[1],H=Object(fe.a)((function(){j&&j.apply(void 0,arguments)})),W=Object(fe.a)((function(e){j&&null!=e&&(clearTimeout(B.current),B.current=setTimeout((function(){H(null,"timeout")}),e))}));a.useEffect((function(){return R&&W(s),function(){clearTimeout(B.current)}}),[R,s,W]);var q=function(){clearTimeout(B.current)},V=a.useCallback((function(){null!=s&&W(null!=I?I:.5*s)}),[s,I,W]);return a.useEffect((function(){if(!y&&R)return window.addEventListener("focus",V),window.addEventListener("blur",q),function(){window.removeEventListener("focus",V),window.removeEventListener("blur",q)}}),[y,V,R]),!R&&z?null:a.createElement(dd,Object(l.a)({onClickAway:function(e){j&&j(e,"clickaway")}},b),a.createElement("div",Object(l.a)({className:Object(d.a)(p.root,p["anchorOrigin".concat(Object(m.a)(o)).concat(Object(m.a)(i))],h),onMouseEnter:function(e){T&&T(e),q()},onMouseLeave:function(e){C&&C(e),V()},ref:t},D),a.createElement(P,Object(l.a)({appear:!0,in:R,onEnter:ae((function(){U(!1)}),E),onEntered:w,onEntering:x,onExit:_,onExited:ae((function(){U(!0)}),S),onExiting:k,timeout:M,direction:"top"===o?"down":"up"},L),f||a.createElement(pd,Object(l.a)({message:O,action:n},v)))))})),md=Object(f.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},i={top:24},a={bottom:24},c={right:24},s={left:24},u={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(l.a)({},t,Object(R.a)({},e.breakpoints.up("sm"),Object(l.a)({},i,u))),anchorOriginBottomCenter:Object(l.a)({},n,Object(R.a)({},e.breakpoints.up("sm"),Object(l.a)({},a,u))),anchorOriginTopRight:Object(l.a)({},t,r,Object(R.a)({},e.breakpoints.up("sm"),Object(l.a)({left:"auto"},i,c))),anchorOriginBottomRight:Object(l.a)({},n,r,Object(R.a)({},e.breakpoints.up("sm"),Object(l.a)({left:"auto"},a,c))),anchorOriginTopLeft:Object(l.a)({},t,o,Object(R.a)({},e.breakpoints.up("sm"),Object(l.a)({right:"auto"},i,s))),anchorOriginBottomLeft:Object(l.a)({},n,o,Object(R.a)({},e.breakpoints.up("sm"),Object(l.a)({right:"auto"},a,s)))}}),{flip:!1,name:"MuiSnackbar"})(hd),bd={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},vd=function(e){return Object(l.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};Object(f.a)((function(e){return{"@global":{html:bd,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(l.a)({margin:0},vd(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,a.createElement(a.Fragment,null,n)}));var gd=a.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Object(u.a)(e,["classes","className"]);return a.createElement("div",Object(l.a)({className:Object(d.a)(n.root,r),ref:t},o))})),yd=Object(f.a)((function(e){return{root:Object(l.a)({},bd,vd(e),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:e.typography.fontWeightBold}})}}),{name:"MuiScopedCssBaseline"})(gd),Od={prefix:"fas",iconName:"external-link-alt",icon:[512,512,[],"f35d","M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"]},jd={prefix:"fas",iconName:"heading",icon:[512,512,[],"f1dc","M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"]},Ed={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},wd=Object($l.a)({typography:{fontFamily:"Graphik, Arial"},overrides:{MuiCssBaseline:{"@global":{"@font-face":[{fontFamily:"Graphik",fontStyle:"normal",fontDisplay:"swap",fontWeight:400,src:"\n url(https://storage.googleapis.com/usetopic/assets/GraphikRegular.woff) format('woff2')\n "},{fontFamily:"Graphik",fontStyle:"normal",fontDisplay:"swap",fontWeight:700,src:"\n url(https://storage.googleapis.com/usetopic/assets/GraphikBold.woff) format('woff2')\n "}]}},MuiPaper:{elevation1:{"box-shadow":"0px 2px 5px 0px #3838382e"}}},palette:{primary:{main:"#3f4b5b"}}});t.a=function(e){var t=Object(s.b)(),n=Object(Ft.c)(),r=Object(s.c)((function(e){return e.auth})),u=Object(s.c)((function(e){return e.briefs})),l=Object(s.c)((function(e){return e.currentPage})),d=c.a.useState(!1),f=o()(d,2),p=f[0],h=f[1],m=c.a.useState(""),b=o()(m,2),v=b[0],g=b[1];e.isClassic?window.isClassicEditor=!0:Object(Ct.z)((function(){console.log("POST SAVE CALLBACK HOOK"),t(Bl())})),uc.b.add(jd,Od,Ed),Object(a.useEffect)((function(){var e=It.a.get("topicToken"),o=It.a.get("adthriveAuthObj"),i=o&&o.token,a=It.a.get("adthriveActiveSite");if(e)r.isLoggedIn||t(Nt(e)),t(Wt()),n.push("/dashboard_legacy");else if(i)a?(t(Lt(a)),r.isLoggedInAdthrive||t(Mt(o.token,o.name,o.email)),t(qt()),n.push("/dashboard_adthrive")):n.push("/choose_site");else{var c=localStorage.previousURLObject&&JSON.parse(localStorage.previousURLObject)?JSON.parse(localStorage.previousURLObject):{};l.postId&&c[l.postId]?n.push("/load_brief"):n.push("/login_adthrive")}}),[]),Object(a.useEffect)((function(){fetch("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",{method:"GET"}).then((function(e){console.log("no adblock present")})).catch((function(e){console.log("adblock is present",e),n.push("/adblock")}))}),[]),Object(a.useEffect)((function(){null!==l.postId||l.isLoading||t(Bl())})),Object(a.useEffect)((function(){r.email&&window.AP.tanalytics.identify({email:r.email,name:r.name,legacy:!1})}),[r]),Object(a.useEffect)((function(){var e=It.a.get("adthriveAuthObj"),t=e&&e.token;!1!==r.isLoggedInAdthrive||t||n.push("/login_adthrive")}),[r.isLoggedInAdthrive]),Object(a.useEffect)((function(){return jQuery("#post-body-content, #normal-sortables, .notice").addClass("usetopic-lesswidth"),jQuery(window).trigger("resize"),function(){jQuery("#post-body-content, #normal-sortables, .notice").removeClass("usetopic-lesswidth"),jQuery(window).trigger("resize")}}));var y=function(e){g(e),h(!0)};return Object(i.createElement)(Gl.a,{theme:wd},Object(i.createElement)(yd,{style:{minHeight:"100%",display:"flex",flexDirection:"column"}},Object(Ct.t)("#sidebar"),e.isClassic&&Object(i.createElement)("div",{style:{position:"relative",padding:"1rem",fontSize:"1rem",color:"#0a1f44",fontWeight:"500",display:"flex"}},Object(i.createElement)("div",{style:{flexGrow:1}},"Topic SEO Content Optimization Tool"),Object(i.createElement)("div",{onClick:function(){jQuery("#usetopicData").css("display","none"),jQuery("#post-body-content, #normal-sortables, .notice").removeClass("usetopic-lesswidth"),jQuery(window).trigger("resize")},style:{cursor:"pointer"}},Object(i.createElement)(wc,{icon:"times",style:{fontSize:"1rem",color:"0a1f44",fontWeight:"500"}}))),Object(i.createElement)(ud,{className:"topic-wp-plugin",style:{background:"rgb(249, 249, 249)",minHeight:"100%",flexGrow:"1"}},Object(i.createElement)(Ft.b,{exact:!0,path:"/"},Object(i.createElement)("div",null)),Object(i.createElement)(Ft.b,{exact:!0,path:"/dashboard_legacy"},Object(i.createElement)(cl,{Briefs:u})),Object(i.createElement)(Ft.b,{exact:!0,path:"/dashboard_adthrive"},Object(i.createElement)(Ul,{Briefs:u})),Object(i.createElement)(Ft.b,{exact:!0,path:"/login_adthrive"},Object(i.createElement)(Kt,null)),Object(i.createElement)(Ft.b,{exact:!0,path:"/choose_site"},Object(i.createElement)(ql,null)),Object(i.createElement)(Ft.b,{exact:!0,path:"/load_brief"},Object(i.createElement)(Wl,{openSnackbar:y})),Object(i.createElement)(Ft.b,{exact:!0,path:"/brief/:id"},Object(i.createElement)(Qu,{Briefs:u,openSnackbar:y})),Object(i.createElement)(Ft.b,{exact:!0,path:"/login_legacy"},Object(i.createElement)(Gt,{openSnackbar:y})),Object(i.createElement)(Ft.b,{exact:!0,path:"/adblock"},Object(i.createElement)(Vl,null)),Object(i.createElement)(md,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:p,autoHideDuration:6e3,onClose:function(){return h(!1)},message:v,action:Object(i.createElement)(c.a.Fragment,null,Object(i.createElement)(va.a,{size:"small","aria-label":"close",color:"inherit",onClick:function(){return h(!1)}},Object(i.createElement)(nn.a,{fontSize:"small"})))})),Object(i.createElement)(ba,null)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Z}));var r={};n.r(r),n.d(r,"Express",(function(){return B})),n.d(r,"Postgres",(function(){return H})),n.d(r,"Mysql",(function(){return W})),n.d(r,"Mongo",(function(){return $}));var o=n(155),i=n(252);var a=n(3),c=n(23),s=n(28),u=n(62),l=n(75),d=n(29),f=n(19),p=Object(s.e)();var h=n(52),m=n(79),b=n(129),v=function(e,t,n){var r;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},g=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},y=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},O=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==Object(s.e)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},j=-1,E=function(){return j<0&&(j="hidden"===Object(s.e)().document.visibilityState?0:1/0,O((function(e){var t=e.timeStamp;j=t}),!0)),{get firstHiddenTime(){return j}}},w={},x=Object(s.e)(),_={_reportAllChanges:!1},S=function(){function e(e){var t,n;this._measurements={},this._performanceCursor=0,!Object(h.b)()&&(null===(t=x)||void 0===t?void 0:t.performance)&&(null===(n=x)||void 0===n?void 0:n.document)&&(x.performance.mark&&x.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(e._reportAllChanges),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(x&&x.performance&&x.performance.getEntries&&m.a){c.a.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,o,i,a,s=Object(f.d)(m.a);if(x.document&&x.document.scripts)for(var u=0;u-1&&(r=v)}})),void 0!==r&&void 0!==o&&T(e,{description:"evaluation",endTimestamp:o,op:"script",startTimestamp:r}),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var l=Object(f.d)(m.a);"number"==typeof i&&(c.a.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(i-e.startTimestamp)},"number"==typeof a&&a<=i&&(this._measurements["ttfb.requestTime"]={value:1e3*(i-a)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(l>=e.startTimestamp)){var r=t._measurements[n].value,o=l+Object(f.d)(r),i=Math.abs(1e3*(o-e.startTimestamp)),a=i-r;c.a.log("[Measurements] Normalized "+n+" from "+r+" to "+i+" ("+a+")"),t._measurements[n].value=i}})),this._measurements["mark.fid"]&&this._measurements.fid&&T(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Object(f.d)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),this._tagMetricInfo(e)}}},e.prototype._tagMetricInfo=function(e){this._lcpEntry&&(c.a.log("[Measurements] Adding LCP Data"),this._lcpEntry.element&&e.setTag("lcp.element",Object(b.a)(this._lcpEntry.element)),this._lcpEntry.id&&e.setTag("lcp.id",this._lcpEntry.id),this._lcpEntry.url&&e.setTag("lcp.url",this._lcpEntry.url.trim().slice(0,200)),e.setTag("lcp.size",this._lcpEntry.size)),this._clsEntry&&this._clsEntry.sources&&(c.a.log("[Measurements] Adding CLS Data"),this._clsEntry.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),Object(b.a)(t.node))})))},e.prototype._trackCLS=function(){var e=this;!function(e,t){var n,r=g("CLS",0),o=0,i=[],a=function(e){if(e&&!e.hadRecentInput){var t=i[0],a=i[i.length-1];o&&0!==i.length&&e.startTime-a.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e]),o>r.value&&(r.value=o,r.entries=i,n&&n())}},c=y("layout-shift",a);c&&(n=v(e,r,t),O((function(){c.takeRecords().map(a),n(!0)})))}((function(t){var n=t.entries.pop();n&&(c.a.log("[Measurements] Adding CLS"),e._measurements.cls={value:t.value},e._clsEntry=n)}))},e.prototype._trackNavigator=function(e){var t=x.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),C(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),C(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),C(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),C(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackLCP=function(e){var t=this;!function(e,t){var n,r=E(),o=g("LCP"),i=function(e){var t=e.startTime;tn&&(e.startTimestamp=n),e.startChild(Object(a.a)({startTimestamp:n},r))}function C(e){return"number"==typeof e&&isFinite(e)}var R=n(69),I=n(174),A=n(26),P={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function N(e){var t=Object(a.a)(Object(a.a)({},P),e),n=t.traceFetch,r=t.traceXHR,o=t.tracingOrigins,i=t.shouldCreateSpanForRequest,c={},s=function(e){if(c[e])return c[e];var t=o;return c[e]=t.some((function(t){return Object(R.a)(e,t)}))&&!Object(R.a)(e,"sentry_key"),c[e]},u=s;"function"==typeof i&&(u=function(e){return s(e)&&i(e)});var l={};n&&Object(I.a)({callback:function(e){!function(e,t,n){if(!Object(f.c)()||!e.fetchData||!t(e.fetchData.url))return;if(e.endTimestamp&&e.fetchData.__span){return void((o=n[e.fetchData.__span])&&(e.response?o.setHttpStatus(e.response.status):e.error&&o.setStatus(d.a.InternalError),o.finish(),delete n[e.fetchData.__span]))}var r=Object(f.b)();if(r){var o=r.startChild({data:Object(a.a)(Object(a.a)({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=o.spanId,n[o.spanId]=o;var i=e.args[0]=e.args[0],c=e.args[1]=e.args[1]||{},s=c.headers;Object(A.g)(i,Request)&&(s=i.headers),s?"function"==typeof s.append?s.append("sentry-trace",o.toTraceparent()):s=Array.isArray(s)?Object(a.e)(s,[["sentry-trace",o.toTraceparent()]]):Object(a.a)(Object(a.a)({},s),{"sentry-trace":o.toTraceparent()}):s={"sentry-trace":o.toTraceparent()},c.headers=s}}(e,u,l)},type:"fetch"}),r&&Object(I.a)({callback:function(e){!function(e,t,n){var r,o;if(!Object(f.c)()||(null===(r=e.xhr)||void 0===r?void 0:r.__sentry_own_request__)||!(null===(o=e.xhr)||void 0===o?void 0:o.__sentry_xhr__)||!t(e.xhr.__sentry_xhr__.url))return;var i=e.xhr.__sentry_xhr__;if(e.endTimestamp&&e.xhr.__sentry_xhr_span_id__){return void((s=n[e.xhr.__sentry_xhr_span_id__])&&(s.setHttpStatus(i.status_code),s.finish(),delete n[e.xhr.__sentry_xhr_span_id__]))}var c=Object(f.b)();if(c){var s=c.startChild({data:Object(a.a)(Object(a.a)({},i.data),{type:"xhr",method:i.method,url:i.url}),description:i.method+" "+i.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent())}catch(e){}}}(e,u,l)},type:"xhr"})}var M=Object(s.e)();var L=Object(a.a)({idleTimeout:l.a,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),M&&M.location){var r,o=M.location.href;t&&(r=e({name:M.location.pathname,op:"pageload"})),n&&Object(I.a)({callback:function(t){var n=t.to,i=t.from;void 0===i&&o&&-1!==o.indexOf(n)?o=void 0:i!==n&&(o=void 0,r&&(c.a.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:M.location.pathname,op:"navigation"}))},type:"history"})}else c.a.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},P),D=function(){function e(t){this.name=e.id,this._emitOptionsWarning=!1;var n=P.tracingOrigins;t&&t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0,this.options=Object(a.a)(Object(a.a)(Object(a.a)({},L),t),{tracingOrigins:n}),this._metrics=new S(Object(a.a)(Object(a.a)({},_),this.options._metricOptions))}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(c.a.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),c.a.warn("[Tracing] We added a reasonable default for you: "+P.tracingOrigins));var r=this.options,o=r.routingInstrumentation,i=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,u=r.traceFetch,l=r.traceXHR,h=r.tracingOrigins,m=r.shouldCreateSpanForRequest;o((function(e){return n._createRouteTransaction(e)}),a,i),s&&(p&&p.document?p.document.addEventListener("visibilitychange",(function(){var e=Object(f.b)();p.document.hidden&&e&&(c.a.log("[Tracing] Transaction: "+d.a.Cancelled+" -> since tab moved to the background, op: "+e.op),e.status||e.setStatus(d.a.Cancelled),e.setTag("visibilitychange","document.hidden"),e.finish())})):c.a.warn("[Tracing] Could not set up background tab detection due to lack of global document")),N({traceFetch:u,traceXHR:l,tracingOrigins:h,shouldCreateSpanForRequest:m})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,o=n.idleTimeout,i=n.maxTransactionDuration,l="pageload"===e.op?function(){var e=(t="sentry-trace",n=Object(s.e)().document.querySelector("meta[name="+t+"]"),n?n.getAttribute("content"):null);var t,n;if(e)return Object(f.a)(e);return}():void 0,p=Object(a.a)(Object(a.a)(Object(a.a)({},e),l),{trimEnd:!0}),h="function"==typeof r?r(p):p,m=void 0===h?Object(a.a)(Object(a.a)({},p),{sampled:!1}):h;!1===m.sampled&&c.a.log("[Tracing] Will not send "+m.op+" transaction because of beforeNavigate."),c.a.log("[Tracing] Starting "+m.op+" transaction on scope");var b=this._getCurrentHub(),v=Object(s.e)().location,g=Object(u.b)(b,m,o,!0,{location:v});return g.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus(d.a.DeadlineExceeded),t.setTag("maxTransactionDurationExceeded","true"))}(Object(f.e)(i),e,n)})),g}c.a.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();var B=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}return e.prototype.setupOnce=function(){this._router?function(e,t){void 0===t&&(t=[]);t.forEach((function(t){return function(e,t){var n=e[t];return e[t]=function(){for(var e=[],r=0;r",r[i[1]]="string"==typeof l?l:l.name||""}else for(var d=0;d0?r:e)-u/100).concat(i,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},l)}function u(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var l=n(105),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=n(13),O={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},j={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.e)(e.main,o):"dark"===t&&(e.dark=Object(y.a)(e.main,i)))}function w(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,r=e.secondary,c=void 0===r?{light:h.A200,main:h.A400,dark:h.A700}:r,s=e.error,u=void 0===s?{light:m[300],main:m[500],dark:m[700]}:s,w=e.warning,x=void 0===w?{light:b[300],main:b[500],dark:b[700]}:w,_=e.info,S=void 0===_?{light:v[300],main:v[500],dark:v[700]}:_,k=e.success,T=void 0===k?{light:g[300],main:g[500],dark:g[700]}:k,C=e.type,R=void 0===C?"light":C,I=e.contrastThreshold,A=void 0===I?3:I,P=e.tonalOffset,N=void 0===P?.2:P,M=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return Object(y.d)(e,j.text.primary)>=A?j.text.primary:O.text.primary}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!=typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return E(e,"light",n,N),E(e,"dark",r,N),e.contrastText||(e.contrastText=L(e.main)),e},B={dark:j,light:O};return Object(i.a)(Object(a.a)({common:d,type:R,primary:D(n),secondary:D(c,"A400","A200","A700"),error:D(u),warning:D(x),info:D(S),success:D(T),grey:f,contrastThreshold:A,getContrastText:L,augmentColor:D,tonalOffset:N},B[R]),M)}function x(e){return Math.round(1e5*e)/1e5}var _={textTransform:"uppercase"};function S(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,c=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,s=n.fontSize,u=void 0===s?14:s,l=n.fontWeightLight,d=void 0===l?300:l,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,b=n.fontWeightBold,v=void 0===b?700:b,g=n.htmlFontSize,y=void 0===g?16:g,O=n.allVariants,j=n.pxToRem,E=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var w=u/14,S=j||function(e){return"".concat(e/y*w,"rem")},k=function(e,t,n,r,o){return Object(a.a)({fontFamily:c,fontWeight:e,fontSize:S(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===c?{letterSpacing:"".concat(x(r/t),"em")}:{},o,O)},T={h1:k(d,96,1.167,-1.5),h2:k(d,60,1.2,-.5),h3:k(p,48,1.167,0),h4:k(p,34,1.235,.25),h5:k(p,24,1.334,0),h6:k(m,20,1.6,.15),subtitle1:k(p,16,1.75,.15),subtitle2:k(m,14,1.57,.1),body1:k(p,16,1.5,.15),body2:k(p,14,1.43,.15),button:k(m,14,1.75,.4,_),caption:k(p,12,1.66,.4),overline:k(p,12,2.66,1,_)};return Object(i.a)(Object(a.a)({htmlFontSize:y,pxToRem:S,round:x,fontFamily:c,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:v},T),E,{clone:!1})}function k(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",k(0,2,1,-1,0,1,1,0,0,1,3,0),k(0,3,1,-2,0,2,2,0,0,1,5,0),k(0,3,3,-2,0,3,4,0,0,1,8,0),k(0,2,4,-1,0,4,5,0,0,1,10,0),k(0,3,5,-1,0,5,8,0,0,1,14,0),k(0,3,5,-1,0,6,10,0,0,1,18,0),k(0,4,5,-2,0,7,10,1,0,2,16,1),k(0,5,5,-3,0,8,10,1,0,3,14,2),k(0,5,6,-3,0,9,12,1,0,3,16,2),k(0,6,6,-3,0,10,14,1,0,4,18,3),k(0,6,7,-4,0,11,15,1,0,4,20,3),k(0,7,8,-4,0,12,17,2,0,5,22,4),k(0,7,8,-4,0,13,19,2,0,5,24,4),k(0,7,9,-4,0,14,21,2,0,5,26,4),k(0,8,9,-5,0,15,22,2,0,6,28,5),k(0,8,10,-5,0,16,24,2,0,6,30,5),k(0,8,11,-5,0,17,26,2,0,6,32,5),k(0,9,11,-5,0,18,28,2,0,7,34,6),k(0,9,12,-6,0,19,29,2,0,7,36,6),k(0,10,13,-6,0,20,31,3,0,8,38,7),k(0,10,13,-6,0,21,33,3,0,8,40,7),k(0,10,14,-6,0,22,35,3,0,8,42,7),k(0,11,14,-7,0,23,36,3,0,9,44,8),k(0,11,15,-7,0,24,38,3,0,9,46,8)],C={borderRadius:4},R=n(103);function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(R.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,c=e.palette,l=void 0===c?{}:c,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),m=w(l),b=s(n),v=I(d),g=Object(i.a)({breakpoints:b,direction:"ltr",mixins:u(b,v,a),overrides:{},palette:m,props:{},shadows:T,typography:S(m,p),spacing:v,shape:C,transitions:A.a,zIndex:P.a},h),y=arguments.length,O=new Array(y>1?y-1:0),j=1;j0&&void 0!==arguments[0]?arguments[0]:i.auth,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.c:return c.a.set("topicToken",t.token),Object.assign({},e,{isLoggedIn:!0});case o.d:return c.a.remove("topicToken"),c.a.remove("adthriveAuthObj"),Object.assign({},e,{isLoggedIn:!1,isLoggedInAdthrive:!1,adthriveSites:[],activeSite:null});case o.b:return c.a.set("adthriveAuthObj",{token:t.token,email:t.email,name:t.name}),Object.assign({},e,{isLoggedInAdthrive:!0,token:t.token,email:t.email,name:t.name});case o.g:return Object.assign({},e,{adthriveSites:t.sites});case o.f:return c.a.set("adthriveActiveSite",t.site),Object.assign({},e,{activeSite:t.site});default:return e}},briefs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.briefs,t=arguments.length>1?arguments[1]:void 0;switch(console.log("briefsReducer",t),t.type){case o.a:return Object.assign({},e,{isLoading:!1,briefs:t.briefs});case o.h:return Object.assign({},e,{isLoading:t.isLoading});case o.e:return Object.assign({},e,{activeBrief:t.activeBrief});default:return e}},currentPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.currentPage,t=arguments.length>1?arguments[1]:void 0;switch(console.log("currentPageReducer",t),t.type){case o.i:return Object.assign({},e,{isLoading:!1,permalink:t.permalink});case o.k:return Object.assign({},e,{postId:parseInt(t.postId,10)});case o.j:return Object.assign({},e,{isLoading:t.isLoading});case o.l:return Object.assign({},e,{shouldTryAutoloading:t.shouldTryAutoloading});default:return e}}}),u=function(e,t){return"LOGOUT_USER_SUCCESS"===t.type&&(e=void 0),s(e,t)};function l(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var d=l();d.withExtraArgument=l;var f=d;function p(e){return Object(r.d)(u,e,Object(r.a)(f))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(107);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r,o=n(3),i=n(26),a=n(23),c=n(28),s=n(41),u=n(116),l=n(130),d=Object(c.e)(),f={},p={};function h(e){if(!p[e])switch(p[e]=!0,e){case"console":!function(){if(!("console"in d))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in d.console&&Object(s.c)(d.console,e,(function(t){return function(){for(var n=[],r=0;r2?t[2]:void 0;if(o){var i=r,a=String(o);r=a,b("history",{from:i,to:a})}return e.apply(this,t)}}d.onpopstate=function(){for(var t=[],n=0;n-1){var o=me[e];if(!Array.isArray(o))return W+Z(o)in t&&q+o;if(!r)return!1;for(var i=0;it?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,c=t.Component,s=t.defaultTheme,u=void 0===s?b:s,f=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),h=m(e),E=n||i||"makeStyles";h.options={index:p(),name:n,meta:E,classNamePrefix:E};var w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(l.a)()||u,r=Object(o.a)({},a.a.useContext(d.a),f),i=a.a.useRef(),s=a.a.useRef();j((function(){var o={name:n,state:{},stylesCreator:h,stylesOptions:r,theme:t};return g(o,e),s.current=!1,i.current=o,function(){O(o)}}),[t,h]),a.a.useEffect((function(){s.current&&y(i.current,e),s.current=!0}));var p=v(i.current,e.classes,c);return p};return w}},,,,,,,,,,,,,,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case s:case c:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case v:case b:case u:return e;default:return t}}case i:return t}}}function w(e){return E(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=b,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||E(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===b},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===c},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===b||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===O||e.$$typeof===j||e.$$typeof===g)},t.typeOf=E},function(e,t,n){var r=n(72),o=r.slice,i=r.pluck,a=r.each,c=r.bind,s=r.create,u=r.isList,l=r.isFunction,d=r.isObject;e.exports={createStore:p};var f={version:"2.0.12",enabled:!1,get:function(e,t){var n=this.storage.read(this._namespacePrefix+e);return this._deserialize(n,t)},set:function(e,t){return void 0===t?this.remove(e):(this.storage.write(this._namespacePrefix+e,this._serialize(t)),t)},remove:function(e){this.storage.remove(this._namespacePrefix+e)},each:function(e){var t=this;this.storage.each((function(n,r){e.call(t,t._deserialize(n),(r||"").replace(t._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(e){return this._namespacePrefix=="__storejs_"+e+"_"},createStore:function(){return p.apply(this,arguments)},addPlugin:function(e){this._addPlugin(e)},namespace:function(e){return p(this.storage,this.plugins,e)}};function p(e,t,n){n||(n=""),e&&!u(e)&&(e=[e]),t&&!u(t)&&(t=[t]);var r=n?"__storejs_"+n+"_":"",p=n?new RegExp("^"+r):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h=s({_namespacePrefix:r,_namespaceRegexp:p,_testStorage:function(e){try{var t="__storejs__test__";e.write(t,t);var n=e.read(t)===t;return e.remove(t),n}catch(e){return!1}},_assignPluginFnProp:function(e,t){var n=this[t];this[t]=function(){var t=o(arguments,0),r=this;function i(){if(n)return a(arguments,(function(e,n){t[n]=e})),n.apply(r,t)}var c=[i].concat(t);return e.apply(r,c)}},_serialize:function(e){return JSON.stringify(e)},_deserialize:function(e,t){if(!e)return t;var n="";try{n=JSON.parse(e)}catch(t){n=e}return void 0!==n?n:t},_addStorage:function(e){this.enabled||this._testStorage(e)&&(this.storage=e,this.enabled=!0)},_addPlugin:function(e){var t=this;if(u(e))a(e,(function(e){t._addPlugin(e)}));else if(!i(this.plugins,(function(t){return e===t}))){if(this.plugins.push(e),!l(e))throw new Error("Plugins must be function values that return objects");var n=e.call(this);if(!d(n))throw new Error("Plugins must return an object of function properties");a(n,(function(n,r){if(!l(n))throw new Error("Bad plugin property: "+r+" from plugin "+e.name+". Plugins should only return functions.");t._assignPluginFnProp(n,r)}))}},addStorage:function(e){!function(){var e="undefined"==typeof console?null:console;if(e){var t=e.warn?e.warn:e.log;t.apply(e,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(e)}},f,{plugins:[]});return h.raw={},a(h,(function(e,t){l(e)&&(h.raw[t]=c(h,e))})),a(e,(function(e){h._addStorage(e)})),a(t,(function(e){h._addPlugin(e)})),h}},function(e,t,n){e.exports=[n(197),n(198),n(199),n(200),n(201),n(202)]},function(e,t,n){var r=n(72).Global;function o(){return r.localStorage}function i(e){return o().getItem(e)}e.exports={name:"localStorage",read:i,write:function(e,t){return o().setItem(e,t)},each:function(e){for(var t=o().length-1;t>=0;t--){var n=o().key(t);e(i(n),n)}},remove:function(e){return o().removeItem(e)},clearAll:function(){return o().clear()}}},function(e,t,n){var r=n(72).Global;e.exports={name:"oldFF-globalStorage",read:function(e){return o[e]},write:function(e,t){o[e]=t},each:i,remove:function(e){return o.removeItem(e)},clearAll:function(){i((function(e,t){delete o[e]}))}};var o=r.globalStorage;function i(e){for(var t=o.length-1;t>=0;t--){var n=o.key(t);e(o[n],n)}}},function(e,t,n){var r=n(72).Global;e.exports={name:"oldIE-userDataStorage",write:function(e,t){if(a)return;var n=s(e);i((function(e){e.setAttribute(n,t),e.save("storejs")}))},read:function(e){if(a)return;var t=s(e),n=null;return i((function(e){n=e.getAttribute(t)})),n},each:function(e){i((function(t){for(var n=t.XMLDocument.documentElement.attributes,r=n.length-1;r>=0;r--){var o=n[r];e(t.getAttribute(o.name),o.name)}}))},remove:function(e){var t=s(e);i((function(e){e.removeAttribute(t),e.save("storejs")}))},clearAll:function(){i((function(e){var t=e.XMLDocument.documentElement.attributes;e.load("storejs");for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save("storejs")}))}};var o=r.document,i=function(){if(!o||!o.documentElement||!o.documentElement.addBehavior)return null;var e,t,n;try{(t=new ActiveXObject("htmlfile")).open(),t.write('