(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81814,58046,30050,89987],{90770:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"]},t.gc=t.DF},83183:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"angle-right",icon:[256,512,[8250],"f105","M64 448c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L178.8 256L41.38 118.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25l-160 160C80.38 444.9 72.19 448 64 448z"]},t.yO=t.DF},32049:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"]},t.I4=t.DF},57982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="magnifying-glass",n=[128269,"search"],i="f002",a="M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z";t.definition={prefix:"fas",iconName:r,icon:[512,512,n,i,a]},t.faMagnifyingGlass=t.definition,t.prefix="fas",t.iconName=r,t.width=512,t.height=512,t.ligatures=n,t.unicode=i,t.svgPathData=a,t.aliases=n},95337:function(e,t,r){"use strict";var n=r(57982);t.DF={prefix:n.prefix,iconName:n.iconName,icon:[n.width,n.height,n.aliases,n.unicode,n.svgPathData]},t.wn=t.DF,n.prefix,n.iconName,n.width,n.height,n.aliases,n.unicode,n.svgPathData,n.aliases},75708:function(e,t,r){var n;"undefined"!=typeof self&&self,n=function(e){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e){return(a="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)}Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"HighchartsReact",function(){return c});var s=r(1),l=r.n(s),o="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,c=Object(s.memo)(Object(s.forwardRef)(function(e,t){var r=Object(s.useRef)(),c=Object(s.useRef)(),u=Object(s.useRef)(e.constructorType),d=Object(s.useRef)(e.highcharts);return o(function(){function t(){var t=e.highcharts||"object"===("undefined"==typeof window?"undefined":a(window))&&window.Highcharts,n=e.constructorType||"chart";t?t[n]?e.options?c.current=t[n](r.current,e.options,e.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(c.current){if(!1!==e.allowChartUpdate){if(e.constructorType!==u.current||e.highcharts!==d.current)u.current=e.constructorType,d.current=e.highcharts,t();else if(!e.immutable&&c.current){var n,s;(n=c.current).update.apply(n,[e.options].concat(function(e){if(Array.isArray(e))return i(e)}(s=e.updateArgs||[!0,!0])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return i(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,void 0):void 0}}(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}else t()}}else t()},[e.options,e.allowChartUpdate,e.updateArgs,e.containerProps,e.highcharts,e.constructorType]),o(function(){return function(){c.current&&(c.current.destroy(),c.current=null)}},[]),Object(s.useImperativeHandle)(t,function(){return{get chart(){return c.current},container:r}},[]),l.a.createElement("div",n({},e.containerProps,{ref:r}))}));t.default=c},function(t,r){t.exports=e}])},e.exports=n(r(67294))},44946:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/flow/oi_changes",function(){return r(306)}])},95504:function(e,t,r){"use strict";var n=r(85893);r(67294);var i=r(89987);let a=(e,t)=>t&&e>t?(console.log("value exceeds max: ",t),100):e/(t||1)*100;t.Z=e=>{let{value:t,maxValue:r,range:s,color:l="var(--gray-40)",align:o="right",numberFormat:c="readable"}=e,u=(()=>{switch(c){case"readable":return(0,i.Zl)(t);case"change":if(t>0)return"+".concat((0,i.Zl)(t));if(t<0)return"-".concat((0,i.Zl)(Math.abs(t)));return(0,i.Zl)(t);default:return t}})(),d=s?s.filter(e=>!isNaN(e)):void 0,h=r?Math.abs(r):Math.max(...(null==d?void 0:d.map(e=>Math.abs(e)))||[]);return(0,n.jsxs)("div",{className:"w-full relative flex items-center ".concat("right"===o?"justify-end":"justify-start"),children:[(0,n.jsx)("span",{className:"mr-1",style:{zIndex:1},children:u}),(0,n.jsx)("aside",{style:{height:"20px",width:"".concat(a(Math.abs(t),h),"%"),backgroundColor:l,borderRadius:"4px",position:"absolute",zIndex:0}})]})}},80946:function(e,t,r){"use strict";var n=r(82729),i=r(85893);r(67294);var a=r(86043);function s(){let e=(0,n._)(["\n  display: inline-block;\n  width: 40px;\n  height: 24px;\n  position: relative;\n"]);return s=function(){return e},e}function l(){let e=(0,n._)(["\n  opacity: 0;\n  width: 0;\n  height: 0;\n\n  &:checked + span {\n    background-color: var(--success);\n  }\n\n  &:checked + span:before {\n    transform: translateX(16px);\n  }\n"]);return l=function(){return e},e}function o(){let e=(0,n._)(['\n  position: absolute;\n  cursor: pointer;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background-color: var(--gray);\n  transition: 0.2s;\n  border-radius: 50px;\n\n  &:before {\n    position: absolute;\n    content: "";\n    height: 16px;\n    width: 16px;\n    left: 4px;\n    bottom: 4px;\n    background-color: white;\n    transition: 0.2s;\n    border-radius: 50%;\n  }\n']);return o=function(){return e},e}function c(){let e=(0,n._)(["\n  display: inline-block;\n  width: 100%;\n  height: 100%;\n"]);return c=function(){return e},e}let u=a.ZP.div(s()),d=a.ZP.input(l()),h=a.ZP.span(o()),m=a.ZP.label(c());t.Z=e=>{let{checked:t,onChange:r,...n}=e;return(0,i.jsx)(u,{children:(0,i.jsxs)(m,{children:[(0,i.jsx)(d,{type:"checkbox",checked:t,onChange:r,...n}),(0,i.jsx)(h,{})]})})}},3504:function(e,t,r){"use strict";var n=r(85893),i=r(67294);t.Z=e=>{let{children:t,separator:r,className:a,gap:s}=e,l=i.Children.toArray(t).filter(e=>i.isValidElement(e));return(0,n.jsx)("div",{className:"flex items-center ".concat(a," ").concat(s),children:l.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center text-[14px] ".concat(s),children:[0!==t&&r,e]},"breadcrumbs-".concat(t)))})}},22976:function(e,t,r){"use strict";var n=r(85893),i=r(67294),a=r(73935),s=r(33138),l=r.n(s),o=r(33135);t.Z=e=>{let{options:t,currentOption:r,handleClick:s,openOnHover:c=!1,style:u={},portal:d=!1,isBreadcrumbs:h=!1}=e,m=(0,i.useRef)(null),p=(0,i.useRef)(null),[f,g]=(0,i.useState)(!1),[x,_]=(0,i.useState)({label:"",value:""}),[v,b]=(0,i.useState)({top:0,left:0}),y=i.useCallback(e=>e.label===x.label||e===x||e.value===x.value||e.value===(null==r?void 0:r.value)||e.value===r,[r,x]);(0,o.O)(()=>{!1===d&&g(!1)},[m.current]),d&&f?document.addEventListener("mousedown",e=>{m.current&&!m.current.contains(e.target)&&p.current&&!p.current.contains(e.target)&&g(!1)}):document.removeEventListener("mousedown",()=>{});let k=e=>{"Escape"===e.key?g(!1):"Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),j(x))};(0,i.useEffect)(()=>{if(f&&p.current){let e=t.findIndex(e=>e.value===((null==r?void 0:r.value)||r));if(e>=0&&e<t.length){let t=p.current.children[e];if(t){let e=t.offsetTop,r=t.offsetHeight,n=p.current.offsetHeight;p.current.scrollTop=e-n/2+r/2}}}return f?document.addEventListener("keydown",k):document.removeEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[f]);let w=()=>{c||g(!f)},j=e=>{g(!1),e.value&&(_(e),s(e))};return i.useEffect(()=>{if(d&&f&&m.current){let e=m.current.getBoundingClientRect(),t=e.width,r=e.height,n=window.innerWidth,i=window.innerHeight,a=e.top+e.height,s=e.left;a+r>i&&(a=i-r),s+t>n&&(s=n-t),b({top:a,left:s})}},[f]),(0,n.jsxs)("div",{ref:m,className:h?l().breadcrumbsMobile:l().intraSelect,onMouseEnter:e=>{c&&g(!0)},onMouseLeave:e=>{c&&g(!1)},children:[(0,n.jsxs)("div",{className:l().intraSelectControl,onClick:w,onKeyDown:w,tabIndex:0,style:u,children:[(null==r?void 0:r.label)||r,!h&&(0,n.jsx)("span",{className:"ml-3 ".concat(l().alignCenter),children:(0,n.jsx)("ion-icon",{name:"chevron-down-outline"})})]}),f&&!d?(0,n.jsx)("div",{className:l().intraSelectOptions,children:(0,n.jsx)("div",{ref:p,className:l().optionsList,children:t&&t.length>0?t.map((e,t)=>(0,n.jsx)("span",{tabIndex:0,onClick:e.disabled?void 0:()=>j(e),onKeyDown:t=>{if(e.disabled){t.preventDefault();return}"Enter"===t.key&&j(e)},className:y(e)?l().optionSelected:e.disabled?"opacity-50 text-[var(--dark-text-color)]":"",children:e.label},t)):null})}):f&&d?(0,a.createPortal)((0,n.jsx)("div",{ref:p,className:l().optionsList,style:{top:v.top,left:v.left},children:t&&t.length>0?t.map((e,t)=>(0,n.jsx)("span",{tabIndex:0,onClick:e.disabled?void 0:()=>j(e),onKeyDown:t=>{if(e.disabled){t.preventDefault();return}"Enter"===t.key&&j(e)},className:y(e)?l().optionSelected:e.disabled?"opacity-50 text-[var(--dark-text-color)]":"",children:e.label},t)):null}),document.body):null]})}},33135:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(67294);let i=e=>null!==e&&1===e.nodeType,a=e=>{if("function"!=typeof e)throw Error("Please provide a function to callback.");return!0},s=e=>null===e,l=e=>{if(e.length>1||e.length<=0)throw Error("Please use 1 dependency.");if(!(s(e[0])||i(e[0])))throw Error("Please only use: 'null' or an Element as a dependency.")},o=(e,t)=>{let r=(0,n.useRef)(null),s=(0,n.useRef)(null),o=(0,n.useRef)(!0);(0,n.useEffect)(()=>{if(o.current){o.current=!1;return}l(t),a(e),i(t[0])&&(s.current=t[0],r.current=e)},t);let c=e=>{s.current&&!s.current.contains(e.target)&&r.current&&r.current()};(0,n.useEffect)(()=>{if(null!==s.current&&a(r.current))return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}})}},41032:function(e,t,r){"use strict";r.d(t,{E:function(){return c}});var n=r(85893);r(67294),r(83428);var i=r(41664),a=r.n(i),s=r(26646),l=r(25675),o=r.n(l);let c=e=>{let{bgUrl:t="/img/whale/tsla_space_whale.png",userType:r="Premium",features:i=[],optionalText:l=""}=e;return(0,n.jsx)("section",{className:"w-full h-full",children:(0,n.jsx)("div",{className:"w-full p-4 h-full flex items-center justify-center",children:(0,n.jsxs)("div",{"data-id":"upgrade-for-access",className:"md:w-[300px] lg:w-[600px] flex flex-col items-center bg-[var(--drawer-bg)] rounded-lg relative",style:{boxShadow:"var(--deep-box-shadow)"},children:[(0,n.jsx)("div",{className:"w-full h-[150px] max-h-[150px] overflow-hidden relative",children:(0,n.jsx)(o(),{src:t,alt:"Preview Content Screenshot",sizes:"100vw",fill:!0,quality:100,style:{filter:"blur(2px)",objectFit:"cover"}})}),(0,n.jsxs)("div",{className:"bg-[var(--drawer-bg)] flex flex-col items-center text-center relative px-4 gap-4 rounded-lg",children:[(0,n.jsx)("div",{className:"absolute top-[-1rem] z-1 w-[3rem] h-[3rem] bg-[rgb(189,189,189)] rounded-full flex items-center justify-center leading-[1]",children:(0,n.jsx)(s.Z,{height:18,width:18})}),(0,n.jsx)("h5",{className:"pt-[3rem] font-[700] text-[1.5rem] m-0",children:"Unlock more features!"}),(0,n.jsxs)("p",{className:"text-[var(--light-text-color)] text-[0.875rem] font-[400] m-0",children:["You are trying to access a page that is only available to"," ",r," users. ",l?"".concat(l," "):"","Upgrade now to get access",i.length>0?" to the following and more:":"!"]}),(0,n.jsx)("div",{className:"flex gap-2",children:i.map((e,t)=>(0,n.jsxs)("div",{className:"border border-[var(--watchlist-border)] rounded-full px-3 py-2 flex items-center gap-2",children:[(0,n.jsx)("ion-icon",{name:"checkmark",class:"text-[var(--success)]"}),(0,n.jsx)("span",{className:"text-[0.8rem]",children:e})]},"feature-".concat(t)))}),(0,n.jsxs)(a(),{href:"/settings/subscriptions",prefetch:!1,className:"bg-[var(--link-text-color)] hover:bg-[var(--link-text-hover-color)] px-4 py-2 rounded uppercase mt-2 mb-8 font-[600] text-[0.9rem] flex items-center gap-1 text-[#1b1c1d] focus:outline focus:outline-1 focus:outline-[var(--base-text-color)] outline-offset-2 no-underline",children:["Upgrade",(0,n.jsx)("ion-icon",{name:"chevron-forward"})]})]})]})})})}},73122:function(e,t){"use strict";t.Z={menuPortal:(e,t)=>({...e,zIndex:10}),menu:(e,t)=>({...e,zIndex:10,color:"var(--accent-text-color)",backgroundColor:"var(--card-bg-color)",fontSize:"14px",width:"max-content",minWidth:"100%",height:"max-content"}),menuList:(e,t)=>({...e,"::-webkit-scrollbar":{width:"9px",height:"9px"},"::-webkit-scrollbar-track":{background:"transparent"},"::-webkit-scrollbar-thumb":{border:"3px solid var(--scrollbar-thumb-border)",minHeight:"24px",borderRadius:"8px",backgroundColor:"var(--scrollbar-thumb-bg)"},"::-webkit-scrollbar-corner":{background:"transparent"},maxHeight:"calc(100vh - 150px)"}),option:(e,t)=>({...e,cursor:"pointer",backgroundColor:t.isFocused?"var(--flow-calendar-selected-color)":t.isSelected?"var(--button-bg-color)":"transparent",color:t.isFocused?"var(--light)":t.isSelected?"var(--light)":"var(--base-text-color)"}),control:(e,t)=>({...e,padding:"0 0 0 12px",minHeight:"24px",height:24,borderRadius:"4px",cursor:"pointer",backgroundColor:"var(--flow-sidenav-item-hover-color)",boxShadow:0,border:t.isFocused?"none":0,flexWrap:"nowrap"}),valueContainer:()=>({display:"flex",alignItems:"center",padding:0,cursor:"pointer",fontSize:"16px"}),indicatorsContainer:(e,t)=>({...e}),container:(e,t)=>({...e,width:"100%"}),input:(e,t)=>({...e,color:"transparent",margin:0,padding:0,visibility:"visible",boxSizing:"border-box",height:"1px",whiteSpace:"nowrap"}),placeholder:e=>({...e,color:"var(--base-text-color)",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,textOverflow:"ellipsis"}),singleValue:(e,t)=>({color:t.isDisabled?"var(--dark-text-color)":"var(--base-text-color)",fontWeight:500,display:"inline-block",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",marginTop:"1px",fontSize:"12px"}),dropdownIndicator:(e,t)=>({padding:"0 5px 0 10px",marginTop:"-3px",color:t.isDisabled?"var(--dark-text-color)":"var(--base-text-color)"}),indicatorSeparator:()=>({display:"none"})}},70214:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return o}});var n=r(82729),i=r(85893);r(67294);var a=r(41032);function s(){let e=(0,n._)(["\n  display: grid;\n  grid-template-rows: max-content auto;\n  height: 100%;\n  width: 100%;\n  align-items: center;\n  overflow: auto;\n\n  @media all and (min-width: 768px) {\n    grid-template-rows: auto;\n  }\n"]);return s=function(){return e},e}let l=r(86043).ZP.div(s());function o(e){let{userType:t,features:r,bgUrl:n="/img/whale/tsla_space_whale.png"}=e;return(0,i.jsx)(l,{children:(0,i.jsx)(a.E,{userType:t,features:r,bgUrl:n})})}},52400:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(85893),i=r(67294),a=r(3504),s=r(11163),l=r(22976),o=r(23157),c=r(68615),u=r(73122),d=r(99490),h=r(30050),m=r(48778),p=r(23274);let f=[{label:"Chain OI Change",value:"chain_oi_changes"},{label:"Ticker OI Change",value:"oi_changes"},{label:"Contract Look-up",value:"option_chains"}],g=e=>{var t;let r=[];if(!e)return{label:f[0].label,value:f[0].value};if((r=null==e?void 0:null===(t=e.pathname)||void 0===t?void 0:t.split("/"))&&Array.isArray(r)&&r.length>0){if(0===r.length)return{label:f[0].label,value:f[0].value};let e=r[r.length-1];return f.find(t=>t.value===e)}},x="America/New_York",_=()=>{let e=d.ou.now().setZone(x);return 6===e.hour&&e.minute>=40||e.hour>6},v=()=>_()&&(0,h._j)();function b(e){let{hasFilter:t=!1,lastUpdatedDate:r=null,qm:_}=e,b=(0,s.useRouter)(),{mobile:k,setShowFilterSidebar:w}=(0,p.Jl)(),[j,C]=i.useState(g(b)),S=e=>{let t=b.asPath.replace("/".concat(j.value),"/".concat(e.value));b.push(t)},q=(0,m.I)(),M=i.useMemo(()=>v()?d.ou.now().setZone(x).toUTC().toJSDate():(0,h.EA)(),[]),O=i.useMemo(()=>Array.from(Array(7).keys()).map(e=>({label:q.format((0,h.Nb)(M,e)),value:(0,h.Nb)(M,e).toISOString().split("T")[0],is_last_open:0===e})),[M,q]),P=i.useMemo(()=>{let e=O.find(e=>_&&e.value===_.date());return _&&_.date()&&!e&&_.setDate(null),e||(e=O[0]),e},[O]);return(0,n.jsx)("div",{className:"w-full flex flex-col items-start justify-center flex-wrap border-b border-[var(--watchlist-border)] p-0 min-h-[46px] px-2",children:(0,n.jsxs)("div",{className:"w-full flex items-center flex-wrap",children:[(0,n.jsxs)("div",{className:"header-content flex gap-1",children:[t&&(0,n.jsx)("button",{onClick:()=>w(e=>!e),className:"filter-button cursor-pointer hover:text-[#fff] rounded-[2px] px-1 py-1 border border-[var(--watchlist-border)] bg-[transparent] hover:bg-[var(--card-bg-color)] hover:no-underline flex flex-row items-center space-x-2 w-max",children:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",width:13,height:13,x:0,y:0,viewBox:"0 0 512 512",children:[(0,n.jsx)("path",{d:"M457 134.8H55c-18 0-32.6-14.6-32.6-32.6S37 69.6 55 69.6h402c18 0 32.6 14.6 32.6 32.6S475 134.8 457 134.8zm32.6 118.8c0-18-14.6-32.6-32.6-32.6H55c-18 0-32.6 14.6-32.6 32.6S37 286.2 55 286.2h402c18 0 32.6-14.6 32.6-32.6zm0 156.2c0-18-14.6-32.6-32.6-32.6H55c-18 0-32.6 14.6-32.6 32.6S37 442.4 55 442.4h402c18 0 32.6-14.6 32.6-32.6z",fill:"var(--base-text-color)"}),(0,n.jsx)("path",{d:"M93.5 146.1V58.3c0-18 14.6-32.6 32.6-32.6s32.6 14.6 32.6 32.6v87.8c0 18-14.6 32.6-32.6 32.6-18.1 0-32.6-14.6-32.6-32.6zm292.9 184c18 0 32.6-14.6 32.6-32.6v-87.8c0-18-14.6-32.6-32.6-32.6s-32.6 14.6-32.6 32.6v87.8c.1 18 14.6 32.6 32.6 32.6zM210.9 486.2c18 0 32.6-14.6 32.6-32.6v-87.8c0-18-14.6-32.6-32.6-32.6s-32.6 14.6-32.6 32.6v87.8c0 18.1 14.6 32.6 32.6 32.6z",fill:"var(--base-text-color)"})]})}),(0,n.jsxs)(a.Z,{"aria-label":"breadcrumb",separator:k?(0,n.jsx)("span",{className:"text-[12px]",children:"/"}):(0,n.jsx)("ion-icon",{name:"chevron-forward",class:"text-sm align-middle mx-1"}),gap:"gap-1",children:[(0,n.jsx)("span",{className:"".concat(k?"text-[12px]":"text-[14px]"),style:{fontFamily:"var(--font-inter)"},children:"Open Interest"}),(0,n.jsx)(l.Z,{currentOption:j,options:f,handleClick:e=>{C(e),S(e)},openOnHover:!0,style:{fontFamily:"var(--font-inter)"},isBreadcrumbs:k})]})]}),_&&(0,n.jsxs)(c.gG,{style:{flexDirection:"column",alignItems:"flex-start"},children:[(0,n.jsx)(c.Jn,{children:"Date"}),(0,n.jsx)("div",{style:{width:"100%"},className:"multi-select",children:(0,n.jsx)(o.ZP,{onChange:e=>{_.setDate(e.value)},defaultValue:P,options:O,styles:u.Z})})]}),r&&(0,n.jsxs)("span",{className:"text-[12px] px-4 py-1 truncate",children:[q.format(r)," - Open interest updates have been completed"]}),(0,n.jsx)(y,{})]})})}let y=()=>(0,n.jsx)("div",{className:"credit-watermark ml-auto self-end",children:"Powered by unusualwhales.com"})},48266:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(82729),i=r(85893);r(67294);var a=r(67814),s=r(90770),l=r(83183),o=r(86043),c=r(83428),u=r(6787),d=r(68615);function h(){let e=(0,n._)(["\n:root {\n    --sidebar-toggle-color: #0699c7;\n    --sidebar-toggle-hover: rgba(0, 0, 50, 0.1);\n    --sidebar-toggle-row-hover: #fff;\n    --sidebar-toggle-header: #d2ddeb;\n  }\n\n  .dark-mode {\n    --sidebar-toggle-color: #fdffe0;\n    --sidebar-toggle-hover: rgba(255, 255, 255, 0.1);\n    --sidebar-toggle-row-hover: #313549;\n    --sidebar-toggle-header: #1a1b26;\n  }\n"]);return h=function(){return e},e}function m(){let e=(0,n._)(["\n  * {\n  }\n\n  font-size: 0.8rem;\n\n  table.toggle-group-table th,\n  td {\n    border: 0 !important;\n  }\n\n  table.toggle-group-table {\n    border: 0 !important;\n\n    tr {\n      background-color: var(--radio-header);\n    }\n\n    tr.toggle-group-body:nth-of-type(even) {\n      background-color: var(--radio-even-row);\n    }\n\n    tr.toggle-group-body:nth-of-type(odd) {\n      background-color: var(--radio-odd-row);\n    }\n\n    tr.toggle-group-body {\n      transition: 0.14s ease;\n      &:hover {\n        background-color: var(--sidebar-toggle-row-hover);\n      }\n    }\n\n    tr td.toggle-group-button {\n      text-align: center;\n\n      &:hover > span {\n        background-color: var(--sidebar-toggle-hover);\n      }\n    }\n\n    tr th {\n      padding: 0.3rem 0.5rem;\n      color: var(--base-text-color);\n    }\n\n    tr td {\n      padding: 0 0 0 0.5rem;\n    }\n\n    .MuiIconButton-label {\n      svg {\n        background-color: var(--base-bg-color);\n        border-radius: 50px;\n      }\n    }\n  }\n\n  .toggle-group-collapse-button {\n    padding: 0;\n    font-size: 0.8rem;\n    font-weight: 400;\n    border-radius: 0;\n    background-color: transparent;\n    margin-top: 0;\n    display: grid;\n    grid-template-columns: 20px auto;\n    gap: 0.2rem;\n    width: 100%;\n    text-align: left;\n    height: 100%;\n    color: var(--base-text-color);\n\n    svg {\n      justify-self: center;\n      align-self: center;\n    }\n\n    &:hover {\n      span {\n        text-decoration: underline;\n      }\n    }\n\n    &:focus,\n    &:active {\n      outline: 0;\n    }\n  }\n\n  .toggle-group-label {\n    min-width: 50.47px;\n    color: var(--base-text-color);\n  }\n\n  .toggle-group-label,\n  .toggle-group-collapse-button span {\n    text-transform: uppercase !important;\n    font-size: 0.675rem;\n    font-weight: 700;\n  }\n\n  .switch-icons {\n    display: inline-block;\n    padding-left: 8px;\n  }\n"]);return m=function(){return e},e}let p=(0,o.vJ)(h()),f=o.ZP.div(m());function g(e){let{folded:t,setFolded:r,filters:n,header:o,isFoldable:h=!0}=e,{isSuper:m}=(0,c.D3)();return(0,i.jsxs)(f,{children:[(0,i.jsx)(p,{}),(0,i.jsxs)("table",{className:"toggle-group-table",children:[h&&(0,i.jsxs)("tr",{className:"toggle-group-header",children:[(0,i.jsx)("th",{style:{width:t?"auto":"99%",padding:"0.3rem 0.5rem 0.3rem 0"},className:"toggle-group-label",children:(0,i.jsxs)("button",{className:"toggle-group-collapse-button",onClick:()=>{r(!t)},children:[(0,i.jsx)(a.G,{icon:t?l.yO:s.gc,style:{fontSize:"0.8rem"}}),(0,i.jsx)("span",{children:o})]})}),(0,i.jsx)("th",{})]}),!t&&(0,i.jsx)(i.Fragment,{children:n.map((e,t)=>{let r=(0,i.jsx)(d.Wh,{title:e.label,start:e.start,onStartChange:e.onStartChange,end:e.end,onEndChange:e.onEndChange,startPlaceholder:e.startPlaceholder||"0",prefix:"",endPlaceholder:e.endPlaceholder||"1.00",isLocked:e.isLocked});return e.needsIsSuper&&!m&&(r=(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(u.Z,{})})),(0,i.jsx)("tr",{className:"toggle-group-body",children:(0,i.jsx)("td",{children:r})},"toggle-".concat(t))})})]})]})}},78650:function(e,t,r){"use strict";var n=r(82729),i=r(85893),a=r(67294),s=r(67814),l=r(90770),o=r(83183),c=r(86043),u=r(83428),d=r(6787),h=r(80946);function m(){let e=(0,n._)(["\n  :root {\n    --sidebar-toggle-color: #0699c7;\n    --sidebar-toggle-hover: rgba(0, 0, 50, 0.1);\n    --sidebar-toggle-row-hover: #fff;\n    --sidebar-toggle-header: #d2ddeb;\n  }\n\n  .dark-mode {\n    --sidebar-toggle-color: #fdffe0;\n    --sidebar-toggle-hover: rgba(255, 255, 255, 0.1);\n    --sidebar-toggle-row-hover: #313549;\n    --sidebar-toggle-header: #1a1b26;\n  }\n"]);return m=function(){return e},e}function p(){let e=(0,n._)(["\n  * {\n  }\n\n  font-size: 0.8rem;\n\n  table.toggle-group-table th,\n  td {\n    border: 0 !important;\n  }\n\n  table.toggle-group-table {\n    border: 0 !important;\n\n    tr {\n      background-color: var(--radio-header);\n    }\n\n    tr.toggle-group-body:nth-of-type(even) {\n      background-color: var(--radio-even-row);\n    }\n\n    tr.toggle-group-body:nth-of-type(odd) {\n      background-color: var(--radio-odd-row);\n    }\n\n    tr.toggle-group-body {\n      transition: 0.14s ease;\n      &:hover {\n        background-color: var(--sidebar-toggle-row-hover);\n      }\n    }\n\n    tr td.toggle-group-button {\n      text-align: center;\n\n      &:hover > span {\n        background-color: var(--sidebar-toggle-hover);\n      }\n    }\n\n    tr th {\n      padding: 0.3rem 0.5rem;\n      color: var(--base-text-color);\n    }\n\n    .MuiIconButton-label {\n      svg {\n        background-color: var(--base-bg-color);\n        border-radius: 50px;\n      }\n    }\n  }\n\n  .toggle-group-collapse-button {\n    padding: 0;\n    font-size: 0.8rem;\n    font-weight: 400;\n    border-radius: 0;\n    background-color: transparent;\n    margin-top: 0;\n    display: grid;\n    grid-template-columns: 20px auto;\n    gap: 0.2rem;\n    width: 100%;\n    text-align: left;\n    height: 100%;\n    color: var(--base-text-color);\n\n    svg {\n      justify-self: center;\n      align-self: center;\n    }\n\n    &:hover {\n      span {\n        text-decoration: underline;\n      }\n    }\n\n    &:focus,\n    &:active {\n      outline: 0;\n    }\n  }\n\n  .toggle-group-label {\n    min-width: 50.47px;\n  }\n\n  .toggle-group-label,\n  .toggle-group-collapse-button span {\n    text-transform: uppercase !important;\n    font-size: 0.675rem;\n    font-weight: 700;\n  }\n\n  .switch-icons {\n    display: inline-block;\n    padding-left: 8px;\n  }\n\n  @media (max-width: 800px) {\n    td {\n      text-align: left;\n    }\n  }\n"]);return p=function(){return e},e}let f=(0,c.vJ)(m()),g=c.ZP.div(p());t.Z=a.memo(function(e){let{folded:t,setFolded:r,toggles:n,header:a,isFoldable:c=!0}=e,{isSuper:m}=(0,u.D3)();return(0,i.jsxs)(g,{children:[(0,i.jsx)(f,{}),(0,i.jsxs)("table",{className:"toggle-group-table",children:[(0,i.jsx)("thead",{children:c&&(0,i.jsxs)("tr",{className:"toggle-group-header",children:[(0,i.jsx)("th",{style:{width:t?"auto":"99%",padding:"0.3rem 0.5rem 0.3rem 0"},className:"toggle-group-label",children:(0,i.jsxs)("button",{className:"toggle-group-collapse-button",onClick:()=>{r(!t)},children:[(0,i.jsx)(s.G,{icon:t?o.yO:l.gc,style:{fontSize:"0.8rem"}}),(0,i.jsx)("span",{children:a})]})}),(0,i.jsx)("th",{})]})}),(0,i.jsx)("tbody",{children:!t&&(0,i.jsx)(i.Fragment,{children:n.filter(e=>"function"!=typeof e.filter||e.filter()).map((e,t)=>{let r=(0,i.jsx)(h.Z,{id:"custom-switch-vol-oi",onChange:t=>{e.onChange(t.target.checked)},size:"small",checked:e.checked,disabled:e.disabled});return e.needsIsSuper&&!m&&(r=(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(d.Z,{})})),(0,i.jsxs)("tr",{className:"toggle-group-body",children:[(0,i.jsx)("td",{className:"pl-2 py-2",children:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{children:[e.label,e.icon&&(0,i.jsx)("span",{className:"switch-icons",children:(0,i.jsx)("ion-icon",{name:e.icon})}),e.icons&&e.icons.map(e=>(0,i.jsx)("span",{className:"switch-icons",children:(0,i.jsx)("ion-icon",{name:e})},e))]}),e.disabledMemo&&e.disabled&&(0,i.jsxs)("span",{className:"text-[0.7rem] text-[var(--warning)] leading-[0.7rem]",children:["* ",e.disabledMemo]})]})}),(0,i.jsx)("td",{style:{textAlign:"right"},children:r})]},"toggle-".concat(t))})})})]})]})})},13855:function(e,t,r){"use strict";var n=r(82729),i=r(85893),a=r(67294),s=r(89987),l=r(86043),o=r(39944),c=r.n(o),u=r(30050),d=r(61644),h=r(19353),m=r(5152),p=r.n(m),f=r(48778),g=r(16874),x=r(61434),_=r(87501),v=r(78326);function b(){let e=(0,n._)(["\n  position: relative;\n  height: 100%;\n  margin: 0;\n  overflow: hidden;\n\n  .scroll-container {\n    position: absolute;\n    overflow: auto;\n    margin-top: 0;\n    padding: 0;\n    left: 0;\n    top: 0;\n    right: 0;\n    bottom: 0;\n  }\n"]);return b=function(){return e},e}let y=p()(()=>Promise.all([r.e(12257),r.e(24465),r.e(86898),r.e(55520),r.e(42660),r.e(59877),r.e(63802)]).then(r.bind(r,97676)),{loadableGenerated:{webpack:()=>[97676]},ssr:!1}),k=p()(()=>Promise.all([r.e(12257),r.e(24465),r.e(86898),r.e(55520),r.e(42660),r.e(59168),r.e(59877),r.e(86227),r.e(63831),r.e(88799),r.e(6771)]).then(r.bind(r,88799)),{loadableGenerated:{webpack:()=>[88799]},ssr:!1}),w=l.ZP.div(b()),j=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}),C=new Intl.NumberFormat("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}),S=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0}),q=e=>{if(!e)return"-";let t=(0,u.I4)(e);return(0,i.jsxs)("span",{children:[t,"d"]})},M=(e,t)=>{let r=t.order(),n=t.orderDirection();return e!==r?(0,i.jsx)(i.Fragment,{}):"desc"===n?(0,i.jsx)("span",{style:{maxHeight:"12px",display:"inline-block"},children:(0,i.jsx)("ion-icon",{name:"arrow-down-outline"})}):(0,i.jsx)("span",{style:{maxHeight:"12px",display:"inline-block"},children:(0,i.jsx)("ion-icon",{name:"arrow-up-outline"})})},O=e=>e<=0?"":"+",P=e=>0===e?"":e>0?"text-success":"text-danger",N=e=>e.diff>0?"no-border buy-type":"no-border sell-type";t.Z=a.memo(function(e){let{data:t,qm:r}=e,[n,l]=a.useState(!1),[o,m]=a.useState(null),[p,b]=a.useState(!1),[F,I]=a.useState(!1),D=(0,f.I)(),T=e=>{let t=r.order(),n=r.orderDirection();t===e?"desc"===n?r.setOrder(t,"asc"):r.setOrder(void 0,void 0):r.setOrder(e,"desc")},{timezone:E}=a.useContext(x.Z);return(0,i.jsxs)(w,{children:[p&&(0,i.jsx)(y,{show:p,ticker:F,handleClose:()=>{b(!1),I(null)}}),n&&(0,i.jsx)(k,{trade:o,show:n,handleClose:()=>{l(!1),m(null)}}),(0,i.jsx)("div",{id:"flow-trades",className:"scroll-container table-responsive ".concat(c().tableWrapper),children:(0,i.jsxs)("table",{className:"table flow-full-table table-hover sticky-table no-border ".concat(c().table),children:[(0,i.jsxs)("thead",{children:[(0,i.jsxs)("tr",{className:"sticky-header-row normal-bg no-border",children:[(0,i.jsx)(g.Z,{columnKey:"ticker",children:(0,i.jsx)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:(0,i.jsx)("span",{className:"text-primary-header",children:"Ticker"})})}),(0,i.jsx)(g.Z,{columnKey:"contract",children:(0,i.jsx)("th",{className:"sticky-header no-border shrink",colSpan:"3",style:{textAlign:"center",paddingRight:0,paddingLeft:0,width:1,whiteSpace:"nowrap"},children:"Contract"})}),(0,i.jsx)(g.Z,{columnKey:"dte",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>T("dte"),children:["DTE ",M("dte",r)]})}),(0,i.jsx)(g.Z,{columnKey:"stock",children:(0,i.jsxs)("th",{className:"sticky-header no-border shrink",style:{textAlign:"right",paddingRight:0},onClick:()=>T("stock_price"),children:["Stock ",M("stock_price",r)]})}),(0,i.jsx)(g.Z,{columnKey:"otm_diff",children:(0,i.jsxs)("th",{className:"sticky-header no-border shrink",style:{textAlign:"right",paddingRight:0},onClick:()=>T("diff"),children:["% OTM ",M("diff",r)]})}),(0,i.jsx)(g.Z,{columnKey:"curr_vol",children:(0,i.jsx)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:"Vol"})}),(0,i.jsx)(g.Z,{columnKey:"prev_vol",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>T("prev_volume"),children:["Prev Vol ",M("prev_volume",r)]})}),(0,i.jsx)(g.Z,{columnKey:"curr_oi",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>T("curr_oi"),children:["OI ",M("curr_oi",r)]})}),(0,i.jsx)(g.Z,{columnKey:"prev_oi",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>T("last_oi"),children:["Prev OI ",M("last_oi",r)]})}),(0,i.jsx)(g.Z,{columnKey:"oi_change",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>T("oi_diff_plain"),children:[(0,i.jsx)(v.Z,{height:14,width:14})," OI",M("oi_diff_plain",r)]})}),(0,i.jsx)(g.Z,{columnKey:"oi_perc_change",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>T("oi_change"),children:[(0,i.jsx)(v.Z,{height:14,width:14})," %"," ",M("oi_change",r)]})}),(0,i.jsx)(g.Z,{columnKey:"consecutive_days_of_oi_increases",children:(0,i.jsx)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:"Days OI Inc."})}),(0,i.jsx)(g.Z,{columnKey:"consesutive_days_of_vol_greater_oi",children:(0,i.jsxs)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:["Days Vol ",">"," OI"]})}),(0,i.jsx)(g.Z,{columnKey:"prev_trans",children:(0,i.jsx)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:"Prev Trans"})}),(0,i.jsx)(g.Z,{columnKey:"prev_avg",children:(0,i.jsx)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:"Prev Avg"})}),(0,i.jsx)(g.Z,{columnKey:"prev_bid_ask_vol",children:(0,i.jsx)("th",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:"Prev Bid/Ask Vol"})}),(0,i.jsx)(g.Z,{columnKey:"prev_perc_total_vol",children:(0,i.jsxs)("th",{className:"sticky-header no-border space-horizontal shrink",style:{textAlign:"left",paddingRight:0},onClick:()=>T("percentage_of_total"),children:["Prev TVol % ",M("percentage_of_total",r)]})}),(0,i.jsx)(g.Z,{columnKey:"prev_multi_perc",children:(0,i.jsxs)("th",{className:"sticky-header no-border space-horizontal shrink",style:{textAlign:"left",paddingRight:0},onClick:()=>T("prev_multi_perc"),children:["Prev Multi % ",M("prev_multi_perc",r)]})}),(0,i.jsx)(g.Z,{columnKey:"prev_val",children:(0,i.jsxs)("th",{className:"sticky-header no-border space-horizontal shrink",style:{textAlign:"left",paddingRight:0},onClick:()=>T("prev_premium"),children:["Prev $ ",M("prev_premium",r)]})}),(0,i.jsx)(g.Z,{columnKey:"earnings",children:(0,i.jsxs)("th",{className:"sticky-header no-border space-horizontal shrink",style:{textAlign:"right",paddingRight:0},onClick:()=>T("earnings"),children:["Earnings ",M("earnings",r)]})}),(0,i.jsx)("th",{className:"sticky-header no-border expand"})]}),(0,i.jsx)("tr",{children:(0,i.jsx)("th",{colSpan:(null==t?void 0:t.length)||5,children:"Powered by unusualwhales.com"})})]}),(0,i.jsx)("tbody",{children:null==t?void 0:t.map(e=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{className:"no-border padding-ten-hori space-horizontal tb-right-padding shrink",children:(0,i.jsx)(h.Z,{ticker:e.ticker,children:(0,i.jsx)("span",{onClick:()=>{window.open("/stock/".concat(null==e?void 0:e.ticker,"/overview"),"_blank")},className:"table-link",children:e.ticker})})}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:e.strike}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink ".concat("C"===e.type?"no-border call-type":"no-border put-type"),style:{textAlign:"right"},children:"C"===e.type?"call":"put"}),(0,i.jsx)("td",{className:"no-border padding-ten-hori space-horizontal tb-right-padding shrink",children:(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},onClick:()=>{m({option_chain_id:e.option_symbol,underlying_symbol:e.ticker,type:e.type,strike:e.strike,expiry:e.expiry,volume:e.curr_volume,open_interest:e.curr_oi}),l(!0)},children:(0,i.jsx)(_.Z,{chainId:e.option_symbol,showModal:()=>{m({option_chain_id:e.option_symbol,underlying_symbol:e.ticker,type:e.type,strike:e.strike,expiry:e.expiry,volume:e.curr_volume,open_interest:e.curr_oi}),l(!0)},title:"".concat(e.ticker," ").concat(e.strike," ").concat(e.type," ").concat(D.format(e.expiry)," (").concat((0,u.I4)(e.expiry,E),")"),children:(0,i.jsxs)("span",{className:"table-link",children:[D.format(e.expiry),(0,i.jsx)("ion-icon",{name:"stats-chart",style:{paddingLeft:"0.2rem",marginBottom:"-1px"}})]})})})}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:(0,i.jsxs)("span",{children:[(0,u.I4)(e.expiry,E),"d"]})}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:e.stock_price?"$".concat(C.format(e.stock_price)):"-"}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink ".concat(N(e)),style:{textAlign:"right"},children:"-"===e.diff?"-":j.format(e.diff)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:(0,s.ai)(e.curr_vol)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:(0,s.ai)(e.prev_vol)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:S.format(e.curr_oi)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:S.format(e.last_oi)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:(0,i.jsxs)("span",{className:P(e.oi_diff_plain),children:[O(e.oi_diff_plain),S.format(e.oi_diff_plain)]})}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:"0"===e.oi_change?"-":j.format(e.oi_change)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:S.format(e.days_of_oi_increases||0)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:S.format(e.days_of_vol_greater_than_oi||0)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:S.format(e.trades)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:e.avg_price?"$".concat(C.format(e.avg_price)):"-"}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right",paddingTop:"8px"},children:(0,i.jsx)(d.Z,{id:"ask-bid-".concat(e.option_symbol),leftSide:e.prev_bid_volume,leftSideName:"",rightSide:e.prev_ask_volume,rightSideName:"",midSideName:"",midSide:e.prev_neutral_volume+e.prev_mid_volume,tooltipHTML:(0,i.jsxs)(i.Fragment,{children:["Bid:"," ",s.Mb.numberToShortStringWithDecPlacesWithoutHtml(e.prev_bid_volume,2),(0,i.jsx)("br",{}),"Ask:"," ",s.Mb.numberToShortStringWithDecPlacesWithoutHtml(e.prev_ask_volume,2),(0,i.jsx)("br",{}),"Neutral:"," ",s.Mb.numberToShortStringWithDecPlacesWithoutHtml(parseFloat(e.prev_neutral_volume+e.prev_mid_volume),2)]})})}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:j.format(e.percentage_of_total)}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:j.format(e.prev_multi_perc)}),(0,i.jsxs)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:["$",s.Mb.numberToShortString(Number(e.prev_total_premium))]}),(0,i.jsx)("td",{className:"no-border space-horizontal shrink",style:{textAlign:"right"},children:q(e.next_earnings_date)}),(0,i.jsx)("td",{className:"no-border padding-ten-hori space-horizontal expand"})]},e.id))})]})})]})})},81237:function(e,t,r){"use strict";var n=r(35042),i=r(39796);class a{date(){return this.q.date}setDate(e){return this.q.date=e,this.sendFilters(),this}setWatchlistIds(e,t){e?this.q.watchlist_ids=e:delete this.q.watchlist_ids,this.sendFilters()}issueType(){return this.q.issue_types}setIssueTypes(e){return 0===e.length||4===e.length?delete this.q.issue_types:this.q.issue_types=e,this.sendFilters(),this}setMode(e){this.q.mode=e,this.sendFilters()}mode(){return this.q.mode||"classic"}setInterval(e){this.q.interval=e,this.sendFilters()}interval(){return this.q.interval||3}minIntervalVol(){return this.q.min_vol}setMinIntervalVol(e){this.q.min_vol=e,this.sendFilters()}maxIntervalVol(){return this.q.max_vol}setIntervalVol(e){this.q.max_vol=e,this.sendFilters()}minIntervalOi(){return this.q.min_oi}setMinIntervalOi(e){this.q.min_oi=e,this.sendFilters()}maxIntervalOi(){return this.q.max_oi}setIntervalOi(e){this.q.max_oi=e,this.sendFilters()}minIntervalFloorPerc(){return this.q.min_floor_perc}setMinIntervalFloorPerc(e){return(0,i.RL)({qm:this,field:"min_floor_perc",value:e})}maxIntervalFloorPerc(){return this.q.max_floor_perc}setMaxIntervalFloorPerc(e){return(0,i.SQ)({qm:this,field:"max_floor_perc",value:e})}minIntervalSweepPerc(){return this.q.min_sweep_perc}setMinIntervalSweepPerc(e){return(0,i.RL)({qm:this,field:"min_sweep_perc",value:e})}maxIntervalSweepPerc(){return this.q.max_sweep_perc}setMaxIntervalSweepPerc(e){return(0,i.SQ)({qm:this,field:"max_sweep_perc",value:e})}minIntervalMultiPerc(){return this.q.min_multi_perc}setMinIntervalMultiPerc(e){return(0,i.RL)({qm:this,field:"min_multi_perc",value:e})}maxIntervalMultiPerc(){return this.q.max_multi_perc}setMaxIntervalMultiPerc(e){return(0,i.SQ)({qm:this,field:"max_multi_perc",value:e})}minSkew(){return this.q.min_skew}setMinSkew(e){return(0,i.RL)({qm:this,field:"min_skew",value:e})}maxSkew(){return this.q.max_skew}setMaxSkew(e){return(0,i.SQ)({qm:this,field:"max_skew",value:e})}minAskPerc(){return this.q.min_ask_perc}setMinAskPerc(e){return(0,i.RL)({qm:this,field:"min_ask_perc",value:e,complimentaryField:"min_bid_perc"})}maxAskPerc(){return this.q.max_ask_perc}setMaxAskPerc(e){return(0,i.SQ)({qm:this,field:"max_ask_perc",value:e})}minBidPerc(){return this.q.min_bid_perc}setMinBidPerc(e){return(0,i.RL)({qm:this,field:"min_bid_perc",value:e,complimentaryField:"min_ask_perc"})}maxBidPerc(){return this.q.max_bid_perc}setMaxBidPerc(e){return(0,i.SQ)({qm:this,field:"max_bid_perc",value:e})}minBullPerc(){return this.q.min_bull_perc}setMinBullPerc(e){return(0,i.RL)({qm:this,field:"min_bull_perc",value:e,complimentaryField:"min_bear_perc"})}maxBullPerc(){return this.q.max_bull_perc}setMaxBullPerc(e){return(0,i.SQ)({qm:this,field:"max_bull_perc",value:e})}minBearPerc(){return this.q.min_bear_perc}setMinBearPerc(e){return(0,i.RL)({qm:this,field:"min_bear_perc",value:e,complimentaryField:"min_bull_perc"})}maxBearPerc(){return this.q.max_bear_perc}setMaxBearPerc(e){return(0,i.SQ)({qm:this,field:"max_bear_perc",value:e})}limit(){return this.q.limit}setLimit(e){return this.q.limit=e,this.sendFilters(),this}tickerSearch(){return this.q.ticker_symbol}setTickerSearch(e){""===e||null==e?delete this.q.ticker_symbol:this.q.ticker_symbol=e,this.sendFilters()}minLastFill(){return this.q.min_last_fill}setMinLastFill(e){return this.q.min_last_fill=e,this.sendFilters(),this}maxLastFill(){return this.q.max_last_fill}setMaxLastFill(e){return this.q.max_last_fill=e,this.sendFilters(),this}minPrevOi(){return this.q.min_last_oi}setMinPrevOi(e){return this.q.min_last_oi=e,this.sendFilters(),this}maxPrevOi(){return this.q.max_last_oi}setMaxPrevOi(e){return this.q.max_last_oi=e,this.sendFilters(),this}minCurrOi(){return this.q.min_curr_oi}setMinCurrOi(e){return this.q.min_curr_oi=e,this.sendFilters(),this}maxCurrOi(){return this.q.max_curr_oi}setMaxCurrOi(e){return this.q.max_curr_oi=e,this.sendFilters(),this}minOiDiffPlain(){return this.q.min_oi_diff_plain}setMinOiDiffPlain(e){return this.q.min_oi_diff_plain=e,this.sendFilters(),this}maxOiDiffPlain(){return this.q.max_oi_diff_plain}setMaxOiDiffPlain(e){return this.q.max_oi_diff_plain=e,this.sendFilters(),this}minOiChange(){return this.q.min_oi_change}setMinOiChange(e){return this.q.min_oi_change=e,this.sendFilters(),this}maxOiChange(){return this.q.max_oi_change}setMaxOiChange(e){return this.q.max_oi_change=e,this.sendFilters(),this}setSectors(e){let t=this.q.sectors;if(void 0===t&&0===e.length){delete this.q.sectors;return}return void 0!==t&&t.length>0&&0===e.length?delete this.q.sectors:this.q.sectors=e,this.q.sectors&&this.q.sectors.includes("all")&&delete this.q.sectors,this.sendFilters(),this}sectors(){return this.q.sectors}minEarningsDTE(){return this.q.min_earnings_dte}setMinEarningsDTE(e){return this.q.min_earnings_dte=e,this.sendFilters(),this}maxEarningsDTE(){return this.q.max_earnings_dte}setMaxEarningsDTE(e){return this.q.max_earnings_dte=e,this.sendFilters(),this}minDaysOfOIIncrease(){return this.q.min_days_of_oi_increases}setMinDaysOfOIIncrease(e){return this.q.min_days_of_oi_increases=e,this.sendFilters(),this}maxDaysOfOIIncrease(){return this.q.max_days_of_oi_increases}setMaxDaysOfOIIncrease(e){return this.q.max_days_of_oi_increases=e,this.sendFilters(),this}minDaysOfVolGreaterOi(){return this.q.min_days_of_vol_greater_than_oi}setMinDaysOfVolGreaterOi(e){return this.q.min_days_of_vol_greater_than_oi=e,this.sendFilters(),this}maxDaysOfVolGreaterOi(){return this.q.max_days_of_vol_greater_than_oi}setMaxDaysOfVolGreaterOi(e){return this.q.max_days_of_vol_greater_than_oi=e,this.sendFilters(),this}minDTE(){return this.q.min_dte}setMinDTE(e){return this.q.min_dte=e,this.sendFilters(),this}maxDTE(){return this.q.max_dte}setMaxDTE(e){return this.q.max_dte=e,this.sendFilters(),this}minPrevPrem(){return this.q.min_prev_premium}setMinPrevPrem(e){return this.q.min_prev_premium=e,this.sendFilters(),this}maxPrevPrem(){return this.q.max_prev_premium}setMaxPrevPrem(e){return this.q.max_prev_premium=e,this.sendFilters(),this}minPrevTotalPerc(){return this.q.min_prev_perc_total}setMinPrevTotalPerc(e){return this.q.min_prev_perc_total=e,this.sendFilters(),this}maxPrevTotalPerc(){return this.q.max_prev_perc_total}setMaxPrevTotalPerc(e){return this.q.max_prev_perc_total=e,this.sendFilters(),this}minPrevMultiPerc(){return this.q.min_prev_multi_perc}setMinPrevMultiPerc(e){return this.q.min_prev_multi_perc=e,this.sendFilters(),this}maxPrevMultiPerc(){return this.q.max_prev_multi_perc}setMaxPrevMultiPerc(e){return this.q.max_prev_multi_perc=e,this.sendFilters(),this}type(){return this.q.type}setType(e){return null==e||""===e?delete this.q.type:this.q.type=e,this.sendFilters(),this}monotonicOiChangeIncrease(){return this.q.strictly_monotonic_oi_change_increase}setMonotonicOiChangeIncrease(e){return this.q.strictly_monotonic_oi_change_increase=e,this.sendFilters(),this}monotonicVolChangeIncrease(){return this.q.strictly_monotonic_vol_change_increase}setMonotonicVolChangeIncrease(e){return this.q.strictly_monotonic_vol_change_increase=e,this.sendFilters(),this}monotonicOiIncrease(){return this.q.strictly_monotonic_oi_increase}setMonotonicOiIncrease(e){return this.q.strictly_monotonic_oi_increase=e,this.sendFilters(),this}monotonicVolIncrease(){return this.q.strictly_monotonic_vol_increase}setMonotonicVolIncrease(e){return this.q.strictly_monotonic_vol_increase=e,this.sendFilters(),this}excludedIndexEtf(){return this.q.excluded_index_etf}setExcludedIndexEtf(e){return this.q.excluded_index_etf=e,this.sendFilters(),this}minOtm(){return this.q.min_diff}setMinOtm(e){return this.q.min_diff=e,this.sendFilters(),this}maxOtm(){return this.q.max_diff}setMaxOtm(e){return this.q.max_diff=e,this.sendFilters(),this}minMarketcap(){return this.q.min_marketcap}setMinMarketcap(e){return e?this.q.min_marketcap=e:delete this.q.min_marketcap,this.sendFilters(),this}maxMarketcap(){return this.q.max_marketcap}setMaxMarketcap(e){return e?this.q.max_marketcap=e:delete this.q.max_marketcap,this.sendFilters(),this}order(){return this.q.order||"oi_diff_plain"}orderDirection(){return this.q.order_direction||"desc"}setOrder(e,t){return this.q.order=e,this.q.order_direction=t,this.sendFilters(),this}setWatchlistOrder(e){localStorage.setItem("chain-oi-watchlist-order",JSON.stringify(e))}getWatchlistOrder(){let e=localStorage.getItem("chain-oi-watchlist-order");return e?JSON.parse(e):e}setWatchlist(e){if(this.watchlist=e,void 0!==e.config)this.q=e.config,this.q.watchlist_name=e.name;else{let e=this.q.limit,t=this.mode();this.q={},this.q.limit=e,this.q.mode=t,delete this.watchlist}return this.sendFilters(),this}setWatchlistName(e){return void 0===this.watchlist&&(this.watchlist={}),this.watchlist.name=e,this.q.watchlist_name=e,this.sendFilters(),this}resetFilters(){let e=this.q.limit,t=this.mode();return this.q={},this.q.limit=e,this.q.mode=t,delete this.watchlist,this.sendFilters(),this}sendFilters(){this.skipSavingFilters||(void 0===this.watchlist&&(this.watchlist={}),this.watchlist.config=this.q,this.setFilters(this.q),localStorage.setItem("chain-oi-changes-filter",JSON.stringify(this.q)),(0,n.SZ)(this.q))}static loadFromStorage(){let e=e=>(Object.keys(e).forEach(t=>{(void 0===e[t]||null===e[t]||0===e[t].length)&&delete e[t]}),e.limit||(e.limit=100),e),t=e((0,n.jH)(window.location.search));if(Object.keys(t).length>1)return t;let r=localStorage.getItem("chain-oi-changes-filter");if(null!=r)try{t=e(JSON.parse(r))}catch(e){}return t}constructor({filters:e,setFilters:t,watchlist:r,skipSavingFilters:n}){this.q={...e},this.setFilters=t,void 0===this.q.limit&&(this.q.limit=50),this.watchlist=r,this.skipSavingFilters=n}}t.Z=a},50880:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(82729),i=r(85893),a=r(67294),s=r(86043),l=r(83428),o=r(77279),c=r(98239);function u(){let e=(0,n._)(["\n:root {\n    --senate-filter-button-bg: rgba(0, 0, 0, 0.06);;\n    --senate-filter-button-bg-hover: rgba(0, 0, 0, 0.04);\n    --senate-filter-button-border: rgba(0, 0, 0, 0.23);\n    --senate-filter-menu-bg: rgb(255, 255, 255);\n    --senate-filter-menu-bg-hover: rgba(0, 0, 0, 0.04);\n    --senate-filter-menu-bg-active: rgba(0, 0, 0, 0.08);\n    --senate-filter-menu-shadow: rgb(0 0 0 / 20%) 0px 3px 3px -2px, rgb(0 0 0 / 14%) 0px 3px 4px 0px, rgb(0 0 0 / 12%) 0px 1px 8px 0px;\n    --senate-filter-text: rgba(0, 0, 0, 0.87);\n    --earnings__filter-text: rgba(0, 0, 0, 0.54);\n    --earnings__filter-bg: rgba(0, 0, 0, 0.12);\n\n    --sidebar-scrollbar-thumb-border: transparent; \n    --sidebar-scrollbar-thumb-bg: rgb(160, 170, 180);\n  }\n\n  .dark-mode {\n    --earnings__filter-text: rgb(255, 255, 255);\n    --earnings__filter-bg: rgba(255, 255, 255, 0.16);\n\n    --senate-filter-button-bg: rgba(255, 255, 255, 0.15);\n    --senate-filter-button-bg-hover: rgba(255, 255, 255, 0.25);\n    --senate-filter-button-border: rgba(255, 255, 255, 0.23);\n    --senate-filter-menu-bg: rgb(18, 18, 18);\n    --senate-filter-menu-bg-hover: rgba(255, 255, 255, 0.08);\n    --senate-filter-menu-bg-active: rgba(144, 202, 249, 0.16);\n    --senate-filter-menu-shadow: rgb(0 0 0 / 20%) 0px 5px 5px -3px,\n      rgb(0 0 0 / 14%) 0px 8px 10px 1px, rgb(0 0 0 / 12%) 0px 3px 14px 2px;\n    --senate-filter-text: rgb(255, 255, 255);\n    \n    --sidebar-scrollbar-thumb-border: transparent; \n    --sidebar-scrollbar-thumb-bg: #585859;\n  }\n"]);return u=function(){return e},e}function d(){let e=(0,n._)(['\n  .more-selected-badge {\n    color: var(--earnings__filter-text);\n    background-color: var(--earnings__filter-bg);\n    border-radius: 16px;\n    white-space: nowrap;\n    padding: 0 0.4rem;\n  }\n\n  .basic-single {\n    min-width: 7.5rem;\n    input[type="text"] {\n      margin: 0;\n    }\n  }\n\n  .basic-single {\n    font-size: 0.8125rem;\n    font-weight: 600;\n    line-height: 1.75;\n    letter-spacing: 0.02857em;\n  }\n\n  .select__control {\n    background-color: var(--senate-filter-button-bg);\n    border: 1px solid var(--senate-filter-button-border);\n    border-radius: 4px;\n    box-shadow: none;\n    min-height: 30.75px;\n    max-height: 30.75px;\n    cursor: pointer;\n    align-content: center;\n\n    &:hover {\n      border: 1px solid var(--senate-filter-button-border);\n      background-color: var(--senate-filter-button-bg-hover);\n    }\n  }\n\n  .select__dropdown-indicator {\n    padding: 0 8px 0 8px;\n    color: var(--senate-filter-text);\n\n    svg {\n      height: 14.5px;\n      width: 14.5px;\n    }\n\n    &:hover {\n      color: inherit;\n    }\n  }\n\n  .select__menu {\n    z-index: 9999;\n    font-size: 0.8rem;\n    background-color: var(--senate-filter-menu-bg);\n    box-shadow: var(--senate-filter-menu-shadow);\n    background-image: linear-gradient(\n      rgba(255, 255, 255, 0.12),\n      rgba(255, 255, 255, 0.12)\n    );\n  }\n\n  .select__single-value {\n    color: var(--senate-filter-text);\n  }\n\n  .select__value-container {\n    padding: 0 8px;\n    flex-wrap: nowrap;\n    > div:not(.select__single-value) {\n      margin: 0;\n      color: var(--senate-filter-text);\n    }\n  }\n\n  .select__indicator-separator {\n    background: none;\n  }\n\n  .select__option:active {\n    background-color: var(--senate-filter-menu-bg-active);\n  }\n\n  .select__option--is-selected {\n    background-color: var(--senate-filter-menu-bg-active) !important;\n    color: var(--senate-filter-text);\n  }\n\n  .select__option--is-focused {\n    background-color: var(--senate-filter-menu-bg-hover);\n    cursor: pointer;\n  }\n\n  .select__menu *::-webkit-scrollbar {\n    width: 9px;\n    height: 9px;\n  }\n\n  .select__menu *::-webkit-scrollbar-thumb {\n    border: 3px solid var(--sidebar-scrollbar-thumb-border);\n    min-height: 24px;\n    border-radius: 8px;\n    background-color: var(--sidebar-scrollbar-thumb-bg);\n  }\n\n  .select__menu *::-webkit-scrollbar-track {\n    background: transparent;\n  }\n\n  .search-ticker-container {\n    min-width: 8rem;\n    div:first-of-type {\n      border: 1px solid var(--senate-filter-button-border);\n      height: 30.75px;\n      border-radius: 10px;\n      margin-bottom: 0;\n      background-color: var(--senate-filter-button-bg);\n      &:hover {\n        background-color: var(--senate-filter-button-bg-hover);\n      }\n    }\n\n    font-size: 0.8125rem;\n    font-weight: 400;\n    line-height: 1.75;\n    letter-spacing: 0.02857em;\n\n    input {\n      width: 100%;\n      background-color: transparent;\n      border: none;\n      color: var(--senate-filter-text);\n\n      :focus {\n        outline: none;\n      }\n    }\n  }\n\n  *::-webkit-scrollbar {\n    width: 9px;\n    height: 9px;\n  }\n\n  *::-webkit-scrollbar-thumb {\n    border: 3px solid var(--sidebar-scrollbar-thumb-border);\n    min-height: 24px;\n    border-radius: 8px;\n    background-color: var(--sidebar-scrollbar-thumb-bg);\n  }\n\n  *::-webkit-scrollbar-track {\n    background: transparent;\n  }\n\n  *::-webkit-scrollbar-corner {\n    background: transparent;\n  }\n']);return d=function(){return e},e}let h=(0,s.vJ)(u()),m=s.ZP.div(d());function p(e){let{handleWatchlists:t}=e,{isSuper:r}=(0,l.D3)(),[n,s]=a.useState([]);return(a.useEffect(()=>{r&&(0,o.V)().then(e=>{let{data:t,default_watchlists:r}=e.data,n=null==t?void 0:t.map(e=>({label:e.name,value:e})),i=null==r?void 0:r.map(e=>({label:e.name,value:e})),a=["Real Estate","Healthcare","Basic Materials","Consumer Cyclical","Energy","Industrials","Consumer Defensive","Technology","Financial Services","Communication Services","Utilities"];s([{options:n},{label:"Default Watchlists",options:[...i.filter(e=>!a.includes(e.label)).sort((e,t)=>e.label.localeCompare(t.label))]}])})},[r]),r)?(0,i.jsxs)(m,{children:[(0,i.jsx)(h,{}),(0,i.jsx)(c.Z,{placeholder:"Watchlists",name:"Watchlists",onChangeCustom:e=>{t(e)},options:n})]}):(0,i.jsx)(i.Fragment,{})}},39796:function(e,t,r){"use strict";r.d(t,{Dv:function(){return a},RL:function(){return n},SQ:function(){return i}});let n=e=>{let{qm:t,field:r,value:n,complimentaryField:i}=e;return n&&i&&t.q[i]&&parseFloat(t.q[i])+parseFloat(n)>1||n>1||(n?t.q[r]=n:delete t.q[r],t.sendFilters()),t},i=e=>{let{qm:t,field:r,value:n}=e;if(!(n>1))return n?t.q[r]=n:delete t.q[r],t.sendFilters(),t},a=e=>{let{qm:t,field:r,value:n}=e,i=t.q[r];if(void 0===i&&0===n.length){delete t.q[r];return}void 0!==i&&i.length>0&&0===n.length?delete t.q[r]:t.q[r]=n}},58964:function(e,t,r){"use strict";r.d(t,{$:function(){return i},Gd:function(){return c},bO:function(){return n},eI:function(){return a},ly:function(){return l},rs:function(){return s},yS:function(){return o}});let n="P",i="$",a="AMT",s="PERC",l="DYN",o="GREEKS",c="DYN_LG"},306:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return el}});var n=r(85893),i=r(67294),a=r(87637),s=r(83428),l=r(84118),o=r(35042),c=r(39796);class u{limit(){return this.q.limit}setLimit(e){return this.q.limit=e,this.sendFilters(),this}tickerSearch(){return this.q.ticker_symbol}setTickerSearch(e){""===e||null==e?delete this.q.ticker_symbol:this.q.ticker_symbol=e,this.sendFilters()}minLastCallOi(){return this.q.min_last_call_oi}setMinLastCallOi(e){return this.q.min_last_call_oi=e,this.sendFilters(),this}maxLastCallOi(){return this.q.max_last_call_oi}setMaxLastCallOi(e){return this.q.max_last_call_oi=e,this.sendFilters(),this}minLastPutOi(){return this.q.min_last_put_oi}setMinLastPutOi(e){return this.q.min_last_put_oi=e,this.sendFilters(),this}maxLastPutOi(){return this.q.max_last_put_oi}setMaxLastPutOi(e){return this.q.max_last_put_oi=e,this.sendFilters(),this}minCurrCallOi(){return this.q.min_curr_call_oi}setMinCurrCallOi(e){return this.q.min_curr_call_oi=e,this.sendFilters(),this}maxCurrCallOi(){return this.q.max_curr_call_oi}setMaxCurrCallOi(e){return this.q.max_curr_call_oi=e,this.sendFilters(),this}minCurrPutOi(){return this.q.min_curr_put_oi}setMinCurrPutOi(e){return this.q.min_curr_put_oi=e,this.sendFilters(),this}maxCurrPutOi(){return this.q.max_curr_put_oi}setMaxCurrPutOi(e){return this.q.max_curr_put_oi=e,this.sendFilters(),this}minTotalOiChange(){return this.q.min_total_oi_change}setMinTotalOiChange(e){return this.q.min_total_oi_change=e,this.sendFilters(),this}maxTotalOiChange(){return this.q.max_total_oi_change}setMaxTotalOiChange(e){return this.q.max_total_oi_change=e,this.sendFilters(),this}minCallOiChange(){return this.q.min_call_oi_change}setMinCallOiChange(e){return this.q.min_call_oi_change=e,this.sendFilters(),this}maxCallOiChange(){return this.q.max_call_oi_change}setMaxCallOiChange(e){return this.q.max_call_oi_change=e,this.sendFilters(),this}minPutOiChange(){return this.q.min_put_oi_change}setMinPutOiChange(e){return this.q.min_put_oi_change=e,this.sendFilters(),this}maxPutOiChange(){return this.q.max_put_oi_change}setMaxPutOiChange(e){return this.q.max_put_oi_change=e,this.sendFilters(),this}minPrevOi(){return this.q.min_prev_oi}setMinPrevOi(e){return this.q.min_prev_oi=e,this.sendFilters(),this}maxPrevOi(){return this.q.max_prev_oi}setMaxPrevOi(e){return this.q.max_prev_oi=e,this.sendFilters(),this}minPrevVol(){return this.q.min_volume}setMinPrevVol(e){this.q.min_volume=e,this.sendFilters()}maxPrevVol(){return this.q.max_volume}setMaxPrevVol(e){return this.q.max_volume=e,this.sendFilters(),this}minCurrVol(){return this.q.min_curr_volume}setMinCurrVol(e){this.q.min_curr_volume=e,this.sendFilters()}maxCurrVol(){return this.q.max_curr_volume}setMaxCurrVol(e){return this.q.max_curr_volume=e,this.sendFilters(),this}minCurrOi(){return this.q.min_curr_oi}setMinCurrOi(e){return this.q.min_curr_oi=e,this.sendFilters(),this}maxCurrOi(){return this.q.max_curr_oi}setMaxCurrOi(e){return this.q.max_curr_oi=e,this.sendFilters(),this}minTotalOiDiff(){return this.q.min_total_oi_diff_plain}setMinTotalOiDiff(e){return e?this.q.min_total_oi_diff_plain=e:delete this.q.min_total_oi_diff_plain,this.sendFilters(),this}maxTotalOiDiff(){return this.q.max_total_oi_diff_plain}setMaxTotalOiDiff(e){return e?this.q.max_total_oi_diff_plain=e:delete this.q.max_total_oi_diff_plain,this.sendFilters(),this}minCallOiDiff(){return this.q.min_call_oi_diff_plain}setMinCallOiDiff(e){return e?this.q.min_call_oi_diff_plain=e:delete this.q.min_call_oi_diff_plain,this.sendFilters(),this}maxCallOiDiff(){return this.q.max_call_oi_diff_plain}setMaxCallOiDiff(e){return e?this.q.max_call_oi_diff_plain=e:delete this.q.max_call_oi_diff_plain,this.sendFilters(),this}minPutOiDiff(){return this.q.min_put_oi_diff_plain}setMinPutOiDiff(e){return e?this.q.min_put_oi_diff_plain=e:delete this.q.min_put_oi_diff_plain,this.sendFilters(),this}maxPutOiDiff(){return this.q.max_put_oi_diff_plain}setMaxPutOiDiff(e){return e?this.q.max_put_oi_diff_plain=e:delete this.q.max_put_oi_diff_plain,this.sendFilters(),this}minMarketcap(){return this.q.min_marketcap}setMinMarketcap(e){return e?this.q.min_marketcap=e:delete this.q.min_marketcap,this.sendFilters(),this}maxMarketcap(){return this.q.max_marketcap}setMaxMarketcap(e){return e?this.q.max_marketcap=e:delete this.q.max_marketcap,this.sendFilters(),this}setSectors(e){let t=this.q.sectors;if(void 0===t&&0===e.length){delete this.q.sectors;return}return void 0!==t&&t.length>0&&0===e.length?delete this.q.sectors:this.q.sectors=e,this.q.sectors&&this.q.sectors.includes("all")&&delete this.q.sectors,this.sendFilters(),this}sectors(){return this.q.sectors}excludedIndexEtf(){return this.q.excluded_index_etf}setExcludedIndexEtf(e){return this.q.excluded_index_etf=e,this.sendFilters(),this}minCallAskPerc(){return this.q.min_call_ask_perc}setMinCallAskPerc(e){return(0,c.RL)({qm:this,field:"min_call_ask_perc",value:e})}maxCallAskPerc(){return this.q.max_call_ask_perc}setMaxCallAskPerc(e){return(0,c.RL)({qm:this,field:"max_call_ask_perc",value:e})}minPutAskPerc(){return this.q.min_put_ask_perc}setMinPutAskPerc(e){return(0,c.RL)({qm:this,field:"min_put_ask_perc",value:e})}maxPutAskPerc(){return this.q.max_put_ask_perc}setMaxPutAskPerc(e){return(0,c.RL)({qm:this,field:"max_put_ask_perc",value:e})}minAskSkew(){return this.q.min_ask_skew}setMinAskSkew(e){return(0,c.RL)({qm:this,field:"min_ask_skew",value:e})}maxAskSkew(){return this.q.max_ask_skew}setMaxAskSkew(e){return(0,c.SQ)({qm:this,field:"max_ask_skew",value:e})}minBidSkew(){return this.q.min_bid_skew}setMinBidSkew(e){return(0,c.RL)({qm:this,field:"min_bid_skew",value:e})}maxBidSkew(){return this.q.max_bid_skew}setMaxBidSkew(e){return(0,c.SQ)({qm:this,field:"max_bid_skew",value:e})}setWatchlistOrder(e){localStorage.setItem("oi-watchlist-order",JSON.stringify(e))}getWatchlistOrder(){let e=localStorage.getItem("oi-watchlist-order");return e?JSON.parse(e):e}setWatchlist(e){if(this.watchlist=e,void 0!==e.config)this.q=e.config,this.q.watchlist_name=e.name;else{let e=this.q.limit;this.q={},this.q.limit=e}return this.sendFilters(),this}setWatchlistName(e){return void 0===this.watchlist&&(this.watchlist={}),this.watchlist.name=e,this.q.watchlist_name=e,this.sendFilters(),this}setWatchlistIds(e,t){e?(this.q.watchlist_ids=e,this.q.tickersInWatchlist=t.join(",")):(delete this.q.watchlist_ids,delete this.q.tickersInWatchlist),this.sendFilters()}order(){return this.q.order||"volume"}orderDirection(){return this.q.sort_direction||"desc"}setOrder(e,t){return this.q.order=e,this.q.sort_direction=t,this.sendFilters(),this}resetFilters(){let e=this.q.limit;return this.q={},this.q.limit=e,this.sendFilters(),this}sendFilters(){this.setFilters(this.q),localStorage.setItem("oi-changes-filter",JSON.stringify(this.q)),(0,o.SZ)(this.q)}static loadFilters(){let e=e=>(Object.keys(e).forEach(t=>{(void 0===e[t]||null===e[t]||0===e[t].length)&&delete e[t]}),e.limit||(e.limit=100),e),t=e((0,o.jH)(window.location.search));if(Object.keys(t).length>1)return t;let r=localStorage.getItem("oi-changes-filter");if(null!=r)try{return e(JSON.parse(r))}catch(e){console.error(e)}return t}constructor(e,t){this.q={...e},this.setFilters=t,void 0===this.q.limit&&(this.q.limit=50)}}var d=r(70214),h=r(52400),m=r(7940),p=r(82729),f=r(23274),g=r(76566),x=r.n(g),_=r(67814),v=r(95337),b=r(68615),y=r(28305),k=r(86043),w=r(9928),j=r(78650),C=r(49279),S=r(50880),q=r(48266);function M(){let e=(0,p._)(["\n  overflow: auto;\n  height: ",";\n  width: ",";\n  display: flex;\n  flex-direction: column;\n"]);return M=function(){return e},e}let O=k.ZP.div(M(),e=>e.mobile?"calc(100vh - 85px)":"calc(100vh - 89px)",e=>e.mobile?"100%":"240px");function P(e){let{qm:t}=e,{mobile:r}=i.useContext(f.ZP),[a,s]=i.useState(null),[l,o]=i.useState(t.tickerSearch()),[c,u]=i.useState(!1),[d,h]=i.useState(!1),[m,p]=i.useState(!1);i.useEffect(()=>{setTimeout(()=>{o(t.tickerSearch())},300)},[]);let g=[{label:"Exclude index & ETFs",onChange:function(e){t.setExcludedIndexEtf(e)},checked:t.excludedIndexEtf()}],k=[{label:"Bid Skew %",start:null==t?void 0:t.minBidSkew(),end:null==t?void 0:t.maxBidSkew(),onStartChange:function(e){null==t||t.setMinBidSkew(e)},onEndChange:function(e){null==t||t.setMaxBidSkew(e)}},{label:"Ask Skew %",start:null==t?void 0:t.minAskSkew(),end:null==t?void 0:t.maxAskSkew(),onStartChange:function(e){null==t||t.setMinAskSkew(e)},onEndChange:function(e){null==t||t.setMaxAskSkew(e)}},{label:"Prev Vol",start:null==t?void 0:t.minPrevVol(),end:null==t?void 0:t.maxPrevVol(),startPlaceholder:"0",endPlaceholder:"∞",onStartChange:function(e){null==t||t.setMinPrevVol(e)},onEndChange:function(e){null==t||t.setMaxPrevVol(e)}}],M=[{label:"Call OI Chg Raw",start:null==t?void 0:t.minCallOiDiff(),end:null==t?void 0:t.maxCallOiDiff(),startPlaceholder:"0",endPlaceholder:"∞",onStartChange:function(e){null==t||t.setMinCallOiDiff(e)},onEndChange:function(e){null==t||t.setMaxCallOiDiff(e)}},{label:"Call OI Chg %",start:null==t?void 0:t.minCallOiChange(),end:null==t?void 0:t.maxCallOiChange(),onStartChange:function(e){null==t||t.setMinCallOiChange(e)},onEndChange:function(e){null==t||t.setMaxCallOiChange(e)}},{label:"Call Ask %",start:null==t?void 0:t.minCallAskPerc(),end:null==t?void 0:t.maxCallAskPerc(),onStartChange:function(e){null==t||t.setMinCallAskPerc(e)},onEndChange:function(e){null==t||t.setMaxCallAskPerc(e)}}],P=[{label:"Put OI Chg Raw",start:null==t?void 0:t.minPutOiDiff(),end:null==t?void 0:t.maxPutOiDiff(),startPlaceholder:"0",endPlaceholder:"∞",onStartChange:function(e){null==t||t.setMinPutOiDiff(e)},onEndChange:function(e){null==t||t.setMaxPutOiDiff(e)}},{label:"Put OI Chg %",start:null==t?void 0:t.minPutOiChange(),end:null==t?void 0:t.maxPutOiChange(),onStartChange:function(e){null==t||t.setMinPutOiChange(e)},onEndChange:function(e){null==t||t.setMaxPutOiChange(e)}},{label:"Put Ask %",start:null==t?void 0:t.minPutAskPerc(),end:null==t?void 0:t.maxPutAskPerc(),onStartChange:function(e){null==t||t.setMinPutAskPerc(e)},onEndChange:function(e){null==t||t.setMaxPutAskPerc(e)}}],I=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"p-2",children:(0,n.jsx)(j.Z,{toggles:g,isFoldable:!1})}),(0,n.jsxs)("div",{className:"p-2",children:[(0,n.jsx)(b.Wh,{title:"OI Chg Raw",start:t.minTotalOiDiff(),onStartChange:e=>t.setMinTotalOiDiff(e),end:t.maxTotalOiDiff(),onEndChange:e=>t.setMaxTotalOiDiff(e),prefix:void 0,startPlaceholder:"0",endPlaceholder:"∞"}),(0,n.jsx)(b.Wh,{title:"Curr OI",start:t.minCurrOi(),onStartChange:e=>t.setMinCurrOi(e),end:t.maxCurrOi(),onEndChange:e=>t.setMaxCurrOi(e),prefix:void 0,startPlaceholder:"0",endPlaceholder:"∞"}),(0,n.jsx)(b.Wh,{title:"% OI Chg",start:t.minTotalOiChange(),onStartChange:e=>t.setMinTotalOiChange(e),end:t.maxTotalOiChange(),onEndChange:e=>t.setMaxTotalOiChange(e),prefix:void 0,startPlaceholder:"0",endPlaceholder:"1"}),(0,n.jsx)(b.Wh,{title:"Mcap/AUM",start:t.minMarketcap(),onStartChange:e=>t.setMinMarketcap(e),end:t.maxMarketcap(),onEndChange:e=>t.setMaxMarketcap(e),prefix:"",startPlaceholder:"1,000,000,000",endPlaceholder:"3,000,000,000,000"})]}),(0,n.jsx)("div",{className:"p-2",children:(0,n.jsx)(q.Z,{folded:c,setFolded:u,filters:M,header:"Call Filters"})}),(0,n.jsx)("div",{className:"p-2",children:(0,n.jsx)(q.Z,{folded:d,setFolded:h,filters:P,header:"Put Filters"})}),(0,n.jsx)("div",{className:"p-2",children:(0,n.jsx)(q.Z,{folded:m,setFolded:p,filters:k,header:"Volume Filters"})}),(0,n.jsx)("div",{className:"p-2",children:(0,n.jsx)(y.Z,{selectValue:(e,r,n)=>{let i=F(e,r,n);t.setSectors(i)},values:N,selectedValues:t.sectors(),placeholderButtonLabel:"Sectors"})}),(0,n.jsx)("div",{className:"p-2",children:(0,n.jsx)(S.Z,{handleWatchlists:e=>{t.setWatchlistIds(null==e?void 0:e.map(e=>e.value.id),null==e?void 0:e.map(e=>e.value.tickers).flat())}})})]});return(0,n.jsxs)(O,{mobile:r,children:[(0,n.jsxs)("div",{className:x().StickyElement,children:[(0,n.jsx)(C.ZP,{qm:t,setSearchTerm:o,type:"ticker-oi-changes"}),(0,n.jsx)("div",{className:"px-2 pb-2",children:(0,n.jsx)(w.Z,{placement:"right",content:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("p",{className:x().FilterDescription,children:["Use to search for multiple tickers for instance:",(0,n.jsx)("br",{}),"AAPL,SPY,INTC"]})}),children:(0,n.jsxs)(b.QU,{style:{width:"100%",margin:0},children:[(0,n.jsx)(_.G,{icon:v.wn,style:{fontSize:"12px",marginRight:"3px"}}),(0,n.jsx)(b.Hl,{placeholder:"Filter Tickers",defaultValue:"",value:l,onChange:e=>{let r=e.target.value;r=r.split("").filter(e=>/[a-zA-Z,\-]/.test(e)).join("").toUpperCase(),a&&clearTimeout(a),s(setTimeout(()=>{t.setTickerSearch(r)},400)),o(r)}})]})})})]}),I]})}let N=["Basic Materials","Communication Services","Consumer Cyclical","Consumer Defensive","Energy","Financial Services","Healthcare","Industrials","Real Estate","Technology","Utilities"],F=(e,t,r)=>{let n=[];if(""===t.option.value||"All"===t.option.value)n=[];else{let e=r.map(e=>e.value);n=e=e.includes("*")?[]:e}return n};var I=r(89987),D=r(41664),T=r.n(D),E=r(19353),L=r(3048),Z=r(81237),A=r(27736),z=r(13855),W=r(55532),R=r(39944),V=r.n(R),U=r(43884),B=r(1065),K=e=>{let{columns:t,sortedColumn:r,setSortedColumn:a,rows:s,rowKey:l="id",onRowClick:o,className:c="",height:u,maxHeight:d,stickyHeader:h=!0,handleSort:m,getRowStyle:p,getColumnStyle:f,expandedRowHeight:g="400px",...x}=e,[_,v]=i.useState(r||{columnKey:"",direction:null}),[b,y]=i.useState({}),k=(e,t,r)=>{var n,i,a;(null===(n=r[0])||void 0===n?void 0:n.onExpand)&&r[0].onExpand(t[e],e),"boolean"==typeof(null===(i=r[0])||void 0===i?void 0:i.expandMultiple)&&r[0].expandMultiple?y(t=>{var r;return{...t,[e]:!t[e]}}):y({[e]:!b[e]})},j=Array.isArray(t[0])?t:[t],C=j[j.length-1],S=e=>{let t=null!=a?a:v;if(e===_.columnKey){let e="desc"===_.direction?"asc":"asc"===_.direction?null:"desc";t({..._,direction:e}),m&&m({..._,direction:e})}else t({columnKey:e,direction:"desc"}),m&&m({columnKey:e,direction:"desc"});return _},q=i.useMemo(()=>!_.columnKey||m?s:[...s].sort((e,t)=>{switch(_.direction){case"asc":return e[_.columnKey]>t[_.columnKey]?1:-1;case"desc":return e[_.columnKey]<t[_.columnKey]?1:-1;default:return 0}}),[s,_,m]),M=(e,t)=>{o&&o(e,t)};return(0,n.jsx)("div",{className:"".concat(V().tableWrapper," ").concat(c),style:{height:u||"auto",maxHeight:d||"auto"},...x,children:(0,n.jsxs)("table",{className:V().table,children:[(0,n.jsxs)("thead",{children:[j.map((e,t)=>(0,n.jsx)("tr",{children:e.map((e,r)=>{var i,a,s;return(0,n.jsx)("th",{style:{position:h?"sticky":"relative",cursor:e.sortable?"pointer":"default"},className:"".concat(e.headerCellClass||""," ").concat(e.cellClass?"header-"+e.cellClass:""),onClick:()=>e.sortable&&S(e.key),rowSpan:e.rowSpan,colSpan:e.colSpan,children:(0,n.jsx)(w.Z,{content:e.headerTooltip,placement:"top",delay:300,children:(0,n.jsxs)("div",{className:"flex flex-row items-center \n                      ".concat(e.headerCellClass&&(null===(i=e.headerCellClass)||void 0===i?void 0:i.includes("right-align"))?"justify-end":(null===(a=e.headerCellClass)||void 0===a?void 0:a.includes("left-align"))?"justify-start":(null===(s=e.headerCellClass)||void 0===s?void 0:s.includes("center-align"))?"justify-center":null,"\n                    "),children:[e.sortable&&(0,n.jsxs)("span",{className:"flex items-center justify-center",children:[e.key===_.columnKey&&"asc"===_.direction&&(0,n.jsx)("ion-icon",{name:"caret-up-outline",class:"mr-1"}),e.key===_.columnKey&&"desc"===_.direction&&(0,n.jsx)("ion-icon",{name:"caret-down-outline",class:"mr-1"})]}),e.name&&(0,n.jsx)("span",{children:e.name}),e.sortable&&(e.key!==_.columnKey||null===_.direction)?(0,n.jsx)("span",{className:V().sortIcon,children:(0,n.jsx)(B.Z,{height:12,width:12})}):null]})})},"header-cell-".concat(t,"-").concat(r))})},"header-row-".concat(t))),(0,n.jsx)("tr",{children:(0,n.jsx)("th",{colSpan:null==t?void 0:t.length,children:"Powered by unusualwhales.com"})})]}),(0,n.jsx)("tbody",{children:q.map((e,r)=>{let i=p?p(r):{};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("tr",{className:V().row,style:i,onClick:()=>M(e,r),children:C.map((i,a)=>{let s=f?f(r):{};return"expanded"===i.key?(0,n.jsx)("td",{onClick:()=>k(r,q,t.flat()),children:b[r]?(0,n.jsx)(w.Z,{content:"Collapse",delay:500,children:(0,n.jsx)("span",{className:V().expandIcon,children:(0,n.jsx)(U.J,{name:"contract"})})}):(0,n.jsx)(w.Z,{content:"Expand",delay:500,children:(0,n.jsx)("span",{className:V().expandIcon,children:(0,n.jsx)(U.J,{name:"expand"})})})},"column-cell-".concat(a)):(0,n.jsx)("td",{style:{width:i.width?i.width:"auto",minWidth:i.width?i.minWidth:"auto",...s},className:"".concat(i.cellClass||""," ").concat(e.selected?V().selected:""),children:i.formatter?i.formatter(e):e[i.key]},"column-cell-".concat(a))})},"".concat(e[l],"-").concat(r)),b[r]&&(0,n.jsx)("tr",{className:"p-0",children:(0,n.jsx)("td",{colSpan:C.length,className:"h-full",style:{padding:"16px 8px 8px 16px",backgroundColor:"var(--watchlist-bg)",borderBottom:"2px solid var(--dark-text-color)"},children:(0,n.jsx)("aside",{className:"h-[".concat(g,"] "),children:C[0]instanceof Object&&"expandContent"in C[0]&&C[0].expandContent&&C[0].expandContent(e,r)})})},"".concat(e[l],"-expanded"))]})})})]})})},J=r(61644),H=r(95504),$=r(97006);function Q(){let e=(0,p._)(["\n  .left-separator {\n    border-left: 0.5px solid !important;\n  }\n"]);return Q=function(){return e},e}let G=new Intl.NumberFormat("en-US",{minimumFractionDigits:0,maximumFractionDigits:0}),Y=new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}),X=k.ZP.div(Q()),ee=e=>{let{expiry:t,strike:r,root_symbol:n,type:i}=(0,W.My)(e.option_symbol);e.expiry=t,e.strike=r,e.ticker=n.toUpperCase(),e.type=i;let a="-";return e.stock_price&&(e.stock_price=parseFloat(e.stock_price),"C"===e.type?a=(e.strike-e.stock_price)/e.stock_price:"P"===e.type&&(a=-1*(e.strike-e.stock_price)/e.stock_price)),e.prev_multi_perc=(e.prev_multi_leg_volume+e.prev_stock_multi_leg_volume)/parseFloat(e.volume),e.prev_multi_perc>1&&(e.prev_multi_perc=1),e.diff=a,e},et="border-r border-[var(--card-border)] ";var er=i.memo(function(e){let{data:t,qm:r}=e,[a,s]=i.useState({columnKey:r.order(),direction:r.orderDirection()}),[l,o]=i.useState(t),[c,u]=i.useState(null),[d,h]=i.useState(!1);i.useEffect(()=>{o(t.map(e=>({...e,expanded:!1,type:"MASTER"})))},[t]);let m=[{key:"expanded",name:"",minWidth:30,width:30,height:300,sortable:!1,resizable:!1,colSpan:e=>"ROW"===e.type&&"DETAIL"===e.row.type?17:void 0,expandContent:()=>d?(0,n.jsx)(L.x,{}):(0,n.jsx)(z.Z,{data:c,qm:new Z.Z({filters:{},setFilters:()=>{},watchlist:void 0,skipSavingFilters:!0})}),onExpand:function(e){let t=!e.expanded;"MASTER"===e.type&&t&&(u(null),h(!0),(0,A.X)({ticker_symbol:e.underlying_symbol,limit:50}).then(e=>{u(e.data.data.map(ee)),h(!1)}).catch(e=>{h(!1),console.error(e)}))},expandMultiple:!1},{key:"underlying_symbol",name:"Ticker",minWidth:60,maxWidth:60,headerCellClass:"left-align",formatter(e){let t=e.underlying_symbol;return(0,n.jsx)(E.Z,{ticker:t,children:(0,n.jsx)("div",{children:(0,n.jsx)(T(),{href:"/stock/".concat(t,"/open-interest-changes"),prefetch:!1,className:"table-link",children:t})})})},sortable:!0},{key:"last_total_oi",name:"Prev OI",headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)]",formatter:e=>(0,I.Zl)(e.last_total_oi),sortable:!0},{key:"curr_total_oi",name:"OI",headerCellClass:"right-align",cellClass:"text-right",width:"80px",minWidth:"80px",formatter:e=>(0,n.jsx)(H.Z,{value:e.curr_total_oi,maxValue:1e7}),sortable:!0},{key:"total_oi_diff_plain",name:"OI Chg",headerCellClass:"right-align",cellClass:"text-right",formatter(e){let t=e.total_oi_diff_plain>0,r=e.total_oi_diff_plain<0;return(0,n.jsxs)("span",{className:"".concat(t?"text-[var(--success)]":r?"text-[var(--danger)]":""),children:[(0,I.Zl)(e.total_oi_diff_plain)," "]})},sortable:!0},{key:"total_oi_change",name:"OI Chg %",headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)] ",formatter(e){let t=e.total_oi_change>0,r=e.total_oi_change<0;return(0,n.jsx)("span",{className:"".concat(t?"text-[var(--success)]":r?"text-[var(--danger)]":""),children:Y.format(e.total_oi_change)})},sortable:!0},{key:"volume",name:"Prev Vol",headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)]",formatter:e=>(0,I.Zl)(e.volume),sortable:!0},{key:"curr_volume",name:"Vol",headerCellClass:"right-align",cellClass:"text-right ",formatter(e){let t=e.call_volume+e.put_volume;return(0,n.jsx)(H.Z,{value:t,maxValue:3e6})}},{key:"avg_30_day_total_volume",name:(0,n.jsx)(ei,{header:"+/- Avg Vol",headerKey:"avg_30_day_total_volume"}),headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)] "+et,formatter(e){let t=parseInt(e.avg_30_day_call_volume,10)||0,r=parseInt(e.avg_30_day_put_volume,10)||0,i=parseInt(e.volume,10)||0,a=parseInt(e.call_volume,10)||0,s=parseInt(e.put_volume,10)||0,l=t+r,o=(i-l)/(l||1),c=(a+s-l)/(l||1);return(0,n.jsx)("span",{className:"flex items-center justify-center",children:(0,n.jsx)($.Z,{data:[o,c],max:4})})}},{key:"last_call_oi",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"C"})," Prev OI"]}),cellClass:"text-right text-[var(--dark-text-color)] ",formatter:e=>(0,I.Zl)(e.last_call_oi),sortable:!0},{key:"curr_call_oi",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"C"})," OI"]}),headerCellClass:"right-align",cellClass:"text-right",width:"80px",minWidth:"80px",formatter:e=>(0,n.jsx)(H.Z,{value:e.curr_call_oi,maxValue:5e6}),sortable:!0},{key:"call_oi_diff_plain",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"C"})," OI Chg"]}),headerCellClass:"right-align",cellClass:"text-right",formatter(e){let t=e.call_oi_diff_plain>0,r=e.call_oi_diff_plain<0;return(0,n.jsx)("span",{className:"".concat(t?"text-[var(--success)]":r?"text-[var(--danger)]":""),children:(0,I.Zl)(e.call_oi_diff_plain)})},sortable:!0},{key:"total_call_oi_change",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"C"})," Chg %"]}),headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)] ",formatter(e){let t=e.call_oi_change>0,r=e.call_oi_change<0;return(0,n.jsx)("span",{className:"".concat(t?"text-[var(--success)]":r?"text-[var(--danger)]":""),children:Y.format(e.call_oi_change)})},sortable:!0},{key:"call_vol_sides",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"Call"})," Vol Sides"]}),headerCellClass:"right-align",cellClass:"text-right ",formatter:e=>(0,n.jsx)(J.Z,{leftSide:e.prev_call_volume_bid_side,leftSideName:"",midSide:e.prev_call_volume-e.prev_call_volume_ask_side-e.prev_call_volume_bid_side,midSideName:"",rightSide:e.prev_call_volume_ask_side,rightSideName:"",tooltipHTML:(0,n.jsxs)(n.Fragment,{children:["Bid: ",G.format(e.prev_call_volume_bid_side),(0,n.jsx)("br",{}),"Ask: ",G.format(e.prev_call_volume_ask_side),(0,n.jsx)("br",{}),"Neutral:"," ",G.format(e.prev_call_volume-e.prev_call_volume_ask_side-e.prev_call_volume_bid_side)]})})},{key:"avg_30_day_call_volume",name:(0,n.jsx)(ei,{header:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"C"})," +/- Avg Vol"]}),headerKey:"avg_30_day_call_volume"}),headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)] "+et,formatter(e){let t=parseInt(e.avg_30_day_call_volume)||0,r=parseInt(e.prev_call_volume)||0,i=parseInt(e.call_volume,10)||0,a=(r-t)/(t||1),s=(i-t)/(t||1);return(0,n.jsx)("span",{className:"flex items-center justify-center",children:(0,n.jsx)($.Z,{data:[a,s],max:4})})}},{key:"last_put_oi",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"P"})," Prev OI"]}),cellClass:"text-right text-[var(--dark-text-color)] ",formatter:e=>(0,I.Zl)(e.last_put_oi),sortable:!0},{key:"curr_put_oi",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"P"})," OI"]}),headerCellClass:"right-align",cellClass:"text-right",width:"80px",minWidth:"80px",formatter:e=>(0,n.jsx)(H.Z,{value:e.curr_put_oi,maxValue:5e6}),sortable:!0},{key:"put_oi_diff_plain",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"P"})," OI Chg"]}),headerCellClass:"right-align",cellClass:"text-right",formatter(e){let t=e.put_oi_diff_plain>0,r=e.put_oi_diff_plain<0;return(0,n.jsx)("span",{className:"".concat(t?"text-[var(--success)]":r?"text-[var(--danger)]":""),children:(0,I.Zl)(e.put_oi_diff_plain)})},sortable:!0},{key:"total_put_oi_change",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"P"})," Chg %"]}),headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)]",formatter(e){let t=e.put_oi_change>0,r=e.put_oi_change<0;return(0,n.jsx)("span",{className:"".concat(t?"text-[var(--success)]":r?"text-[var(--danger)]":""),children:Y.format(e.put_oi_change)})},sortable:!0},{key:"put_vol_sides",name:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"Put"})," Vol Sides"]}),headerCellClass:"right-align",cellClass:"text-right",formatter:e=>(0,n.jsx)(J.Z,{leftSide:e.prev_put_volume_bid_side,leftSideName:"",midSide:e.prev_put_volume-e.prev_put_volume_ask_side-e.prev_put_volume_bid_side,midSideName:"",rightSide:e.prev_put_volume_ask_side,rightSideName:"",tooltipHTML:(0,n.jsxs)(n.Fragment,{children:["Bid: ",G.format(e.prev_put_volume_bid_side),(0,n.jsx)("br",{}),"Ask: ",G.format(e.prev_put_volume_ask_side),(0,n.jsx)("br",{}),"Neutral:"," ",G.format(e.prev_put_volume-e.prev_put_volume_ask_side-e.prev_put_volume_bid_side)]})})},{key:"avg_30_day_put_volume",name:(0,n.jsx)(ei,{header:(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-[var(--base-text-color)]",children:"P"})," +/- Avg Vol"]}),headerKey:"avg_30_day_put_volume"}),headerCellClass:"right-align",cellClass:"text-right text-[var(--dark-text-color)] ",formatter(e){let t=parseInt(e.avg_30_day_put_volume)||0,r=parseInt(e.prev_put_volume)||0,i=parseInt(e.put_volume,10)||0,a=(r-t)/(t||1),s=(i-t)/(t||1);return(0,n.jsx)("span",{className:"flex items-center justify-center",children:(0,n.jsx)($.Z,{data:[a,s],max:4})})}},{key:"",name:"",width:"100%"}];return(0,n.jsx)(X,{children:(0,n.jsx)(K,{style:{border:"none",backgroundColor:"transparent",height:"calc(100vh - 100px)"},columns:m,rows:l,rowHeight:e=>"ROW"===e.type&&"MASTER"===e.row.type?35:350,sortedColumn:a,expandedRowHeight:"400px",handleSort:e=>{s(e),r.setOrder(e.columnKey,e.direction)}})})});let en={avg_30_day_total_volume:"Previous and current day's volume change (%) compared to the 30 day average",avg_30_day_call_volume:"Previous and current day's Call volume change (%) compared to the 30 day average",avg_30_day_put_volume:"Previous and current day's Put volume change (%) compared to the 30 day average"},ei=e=>{let{header:t,headerKey:r}=e;return(0,n.jsx)(w.Z,{content:en[r],placement:"top",delay:300,children:(0,n.jsx)("span",{children:t})})};var ea=r(5725);function es(){let{userInfo:e}=(0,s.D3)(),[t,r]=i.useState([]),[a,o]=i.useState(u.loadFilters()),[c,p]=i.useState(new u(a,o)),[f,g]=i.useState(null),x=i.useRef(),_=void 0!==e&&"premium"===e.subscription_level;return(i.useEffect(()=>{f&&clearTimeout(f),g(setTimeout(()=>{let e=(0,l.m)("/api/oi_changes/tickers",c.q);x.current=e,e.then(t=>{if(e!==x.current)return;let{data:n}=t.data;r(n.map(e=>{let t=e.last_put_oi>0?parseFloat(e.curr_put_oi-e.last_put_oi)/parseFloat(e.last_put_oi):null,r=e.last_call_oi>0?parseFloat(e.curr_call_oi-e.last_call_oi)/parseFloat(e.last_call_oi):null;return{...e,put_oi_change:t,call_oi_change:r}}))}).catch(e=>{console.log(e)})},300))},[c]),i.useEffect(()=>{p(new u(a,o))},[a]),_)?(0,n.jsxs)("main",{className:"w-full h-full overflow-hidden",children:[(0,n.jsx)(h.Z,{hasFilter:!0}),(0,n.jsxs)("div",{className:"w-full flex flex-row",children:[(0,n.jsx)(m.Z,{children:(0,n.jsx)(P,{qm:c})}),(0,n.jsx)("div",{"data-id":"ticker-oi-change-content",className:"w-full overflow-auto",children:(0,n.jsx)(ea.Z,{children:(0,n.jsx)(er,{data:t,qm:c})})})]})]}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d.default,{userType:"Premium",features:["Chain & OI Explorer"]})})}var el=e=>(0,n.jsx)(a.Z,{...e,title:"Open Interest Changes",description:"View the Open Interest Changes for each ticker. Filter the data feed with your needs.",children:(0,n.jsx)(es,{})})},5725:function(e,t,r){"use strict";var n=r(85893),i=r(67294),a=r(66187);class s extends i.Component{static getDerivedStateFromError(e){return console.log("error: ",e),{hasError:!0}}componentDidCatch(e,t){let r=t.componentStack,n=r.match(/data-id="([^"]+)"/);n&&console.log("Error occurred in component with data-id:",n[1]),console.error("error caught:",e,"Location::::::: ",r)}render(){return this.state.hasError?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.B,{})}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.Z=s},66187:function(e,t,r){"use strict";r.d(t,{B:function(){return h}});var n=r(85893),i=r(67294),a=r(12918),s=r.n(a),l=r(11163),o=r(65408),c=r(85518),u=r(61434);let d=()=>{let[e,t]=(0,c.CD)(window.navigator.userAgent),{timezone:r}=i.useContext(u.Z),a=window.location.pathname,s="",l="",o="",d="";a&&(s=a),t.browser&&(l="".concat(t.browser.name," / version ").concat(t.browser.version)),e&&(o="".concat(e.osName," ").concat(e.osVersion)),r&&(d=r);let h="- URL: http://unusualwhales.com".concat(s,"\n- Browser: ").concat(l,"\n- Operating system: ").concat(o,"\n- Timezone: ").concat(d);return(0,n.jsxs)("div",{className:"max-w-[300px] flex flex-col gap-2 border border-gray-300 p-4 rounded-lg text-sm",children:[(0,n.jsxs)("span",{children:["URL : http://unusualwhales.com",s]}),(0,n.jsxs)("span",{children:["Browser : ",l]}),(0,n.jsxs)("span",{children:["Operating system : ",o]}),(0,n.jsxs)("span",{children:["Timezone : ",d]}),(0,n.jsx)("button",{className:"bg-gray-200 rounded-md py-2 px-4 text-xs uppercase",onClick:()=>{navigator.clipboard.writeText(h).then(()=>{alert("Copied to clipboard")})},children:"Copy"})]})},h=e=>{let{hasGetInitialPropsRun:t,err:r,customMessage:i=""}=e,a=(0,l.useRouter)();return(0,n.jsxs)("div",{className:"flex flex-col gap-3 rounded m-3 p-3 text-sm items-center drop-shadow-lg",children:[(0,n.jsx)("h3",{className:"text-[var(--danger)] font-semibold",children:"Oh no, the flow sprung a leak!"}),(0,n.jsx)("div",{children:"Please first try reloading the page."}),(0,n.jsxs)(o.Z,{onClick:()=>a.reload(),className:"flex items-center gap-1",children:[(0,n.jsx)("ion-icon",{name:"reload",class:"text-[1.1rem]"}),(0,n.jsx)("span",{children:"Reload"})]}),i&&(0,n.jsx)("div",{children:i}),(0,n.jsxs)("div",{className:"mt-3",children:["If you continue to see this error message please email"," ",(0,n.jsx)("a",{className:"text-[var(--link-text-color)]",href:"mailto:support@unusualwhales.com",children:"support@unusualwhales.com"})," ","with a screenshot of this page."]}),(0,n.jsx)("span",{children:"Please include the following information in your email, and add in your own words what happened, for instance whether you clicked any buttons prior to this message appearing:"}),(0,n.jsx)(d,{})]})};h.getInitialProps=async e=>{let t=await s().getInitialProps(e),{res:r,err:n,_asPath:i}=e;return t.hasGetInitialPropsRun=!0,null==r||r.statusCode,t},t.Z=h},60507:function(e,t,r){"use strict";r.d(t,{$j:function(){return V},Af:function(){return X},C0:function(){return v},CO:function(){return g},CQ:function(){return w},Fi:function(){return u},GJ:function(){return i},Hn:function(){return h},IA:function(){return Y},IE:function(){return et},IO:function(){return ee},IX:function(){return q},Ib:function(){return l},JI:function(){return S},Je:function(){return y},KO:function(){return $},KZ:function(){return m},LI:function(){return a},LZ:function(){return Q},M2:function(){return k},Ny:function(){return _},P5:function(){return M},QN:function(){return I},Rj:function(){return C},SE:function(){return H},SS:function(){return T},S_:function(){return en},TZ:function(){return s},VE:function(){return B},WC:function(){return n},Xg:function(){return P},Yv:function(){return D},ZW:function(){return b},a5:function(){return R},as:function(){return x},ax:function(){return U},b1:function(){return j},c2:function(){return ea},cf:function(){return W},eJ:function(){return o},f0:function(){return N},fX:function(){return F},iq:function(){return G},is:function(){return O},jd:function(){return K},kV:function(){return c},ni:function(){return p},p7:function(){return A},pU:function(){return z},pZ:function(){return f},qN:function(){return d},s8:function(){return E},tE:function(){return ei},wC:function(){return er},wn:function(){return Z},yY:function(){return L},yZ:function(){return J}});let n="By visiting, you agree to our terms of use and privacy policy. For educational purposes only",i=.01,a=12e3,s="America/New_York",l=1e-6,o=.001,c="PRE_BUILT",u="MODEL",d="CUSTOM",h="NONE",m=1,p=.05,f=.005,g=1,x=.01,_=1,v=12,b=5,y=2,k=.02,w=.05,j=2,C=200,S=100,q=10,M=100,O=50,P=13,N="Price",F="Value",I=100,D=1.1,T=-.9,E=.01,L=0,Z=6e4,A=36e5,z=864e5,W=31536e6,R=15854895991882293e-26,V=13,U=3e4,B=1e3,K="(0,0.0a)%",J="(0,0a)%",H="(0,0.0a)",$="($0,0.00a)",Q="rgba(255, 255, 255, 0.11)",G={r:25,g:114,b:120,a:1},Y={r:196,g:69,b:54,a:1},X="#5B5B5B",ee=.01,et=.01,er=10.5,en=100,ei=1e-4,ea=1e-11},30050:function(e,t,r){"use strict";r.d(t,{$j:function(){return v},AB:function(){return w},DG:function(){return c},EA:function(){return L},ED:function(){return U},EP:function(){return $},FJ:function(){return T},I4:function(){return P},JL:function(){return K},Kt:function(){return h},Nb:function(){return V},O:function(){return b},OB:function(){return z},PL:function(){return W},PN:function(){return A},Px:function(){return S},QH:function(){return o},RM:function(){return D},TN:function(){return u},Tb:function(){return l},W2:function(){return a},WQ:function(){return M},Wj:function(){return p},XZ:function(){return N},YV:function(){return J},Yn:function(){return O},Z3:function(){return C},_0:function(){return H},_j:function(){return I},_v:function(){return R},iI:function(){return k},iv:function(){return B},km:function(){return y},mO:function(){return d},nc:function(){return m},on:function(){return g},p6:function(){return x},pR:function(){return _},sy:function(){return q},v$:function(){return s},vG:function(){return E},wf:function(){return f},zb:function(){return j}});var n=r(85893),i=r(99490);let a=e=>("string"==typeof e?i.ou.fromSQL(e):i.ou.fromJSDate(e)).toLocaleString(),s=function(e){let t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(t="string"==typeof e?i.ou.fromSQL(e):i.ou.fromJSDate(e),r)?t.toLocaleString(i.ou.DATE_HUGE):t.toLocaleString(i.ou.DATE_MED_WITH_WEEKDAY)},l=e=>("string"==typeof e?i.ou.fromSQL(e):i.ou.fromJSDate(e)).toLocaleString(i.ou.DATE_FULL),o=(e,t,r,n,a)=>{let s=f(O(e),t),l=s.toLocaleString({hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),o=r.indexOf(e),c=void 0!==r[o-1]?r[o-1].getUTCDate():0;if(1===n){if(["10:00","11:00","12:00","13:00","14:00","15:00"].includes(l))return l;if(e.getUTCDate()!==c)return s.toLocaleString({month:"short",day:"numeric"})}else if(n>3||n>=3&&a){if(e.getUTCDate()!==c){if(a){let t=i.ou.fromJSDate(e).setZone(F),r=A(t.plus({hours:8}).toJSDate());if(t.hour>=16&&-1===[6,7].indexOf(t.weekday+1)&&!z.has(r))return s.plus({hours:8}).toLocaleString({month:"short",day:"numeric"})}return s.toLocaleString({month:"short",day:"numeric"})}}else{if(["12:00","14:00"].includes(l))return l;if(e.getUTCDate()!==c)return s.toLocaleString({month:"short",day:"numeric"})}},c=e=>{let t;return t="string"==typeof e?i.ou.fromSQL(e):i.ou.fromJSDate(e),"".concat(t.toLocaleString({month:"2-digit",day:"2-digit"}))},u=e=>("string"==typeof e?i.ou.fromSQL(e):i.ou.fromJSDate(e)).toLocaleString(i.ou.TIME_SIMPLE),d=(e,t)=>{let r;return r="string"==typeof e?i.ou.fromSQL(e):i.ou.fromJSDate(e),t&&(r=f(r,t)),"".concat(r.weekdayShort,", ").concat(r.toLocaleString(i.ou.TIME_WITH_SECONDS))},h=e=>{let t=i.ou.fromJSDate(e);return"".concat(t.toLocaleString({month:"2-digit",day:"2-digit"})," ").concat(t.toLocaleString(i.ou.TIME_24_WITH_SECONDS))},m=(e,t)=>{let r=i.ou.fromJSDate(new Date(e));return t&&(r=f(r,t)),"".concat(r.toLocaleString()," ").concat(r.toLocaleString(i.ou.TIME_24_WITH_SECONDS))},p=e=>{if(null==e)return"";let t=i.ou.fromMillis(e);return"".concat(t.toLocaleString()," ").concat(t.toLocaleString(i.ou.TIME_24_WITH_SECONDS))},f=(e,t)=>{if([null,void 0,""].includes(t))return e;if(""===e||null==e)return"";let r=e.setZone(t);return r.isValid?r:e},g=(e,t)=>{let r=f(O(e),t);return"".concat(r.toFormat("cccc LLLL dd, yyyy"))},x=(e,t)=>{let r=f(O(e),t);return"".concat(r.toLocaleString({year:"numeric",month:"numeric",day:"2-digit"}))},_=(e,t)=>{let r=f(O(e),t),n=r.hour;n=("0"+n).slice(-2);let i=("0"+r.minute).slice(-2),a=("0"+r.second).slice(-2);return"".concat(n,":").concat(i,":").concat(a)},v=(e,t)=>{let r=f(O(e),t);return"".concat(r.toLocaleString({month:"numeric",day:"2-digit"}))},b=(e,t,r)=>{let n=f(O(e),t);return null!==n&&n?"".concat(n.toLocaleString(i.ou.TIME_24_SIMPLE)," - ").concat(n.plus({minutes:r}).toLocaleString(i.ou.TIME_24_SIMPLE)):"-"},y=(e,t)=>{let r=f(O(e),t);return r?(r=r.setLocale("en-us"),"".concat(r.toLocaleString({month:"2-digit",day:"2-digit"})," ").concat(r.toLocaleString(i.ou.TIME_24_WITH_SECONDS))):"-"},k=(e,t)=>{let r=f(O(e),t);return r?(r=r.setLocale("en-us"),"".concat(r.toLocaleString(i.ou.TIME_SIMPLE))):"-"},w=(e,t)=>{let r=f(O(e),t);return r?(r=r.setLocale("en-us"),"".concat(r.toLocaleString(i.ou.TIME_24_WITH_SECONDS))):"-"},j=(e,t)=>{let r=f(O(e),t);return r?(r=r.setLocale("en-us"),"".concat(r.toLocaleString({weekday:"short",day:"numeric",month:"short"})).replace(",","")):"-"},C=(e,t)=>{let r=f(O(e),t);return"".concat(r.toLocaleString(i.ou.TIME_SIMPLE))},S=(e,t)=>{let r=f(O(e),t);return"".concat(r.toLocaleString(i.ou.TIME_24_WITH_SECONDS))},q=(e,t)=>{let r;if(!(r="string"==typeof e?i.ou.fromISO(e):"number"==typeof e?i.ou.fromMillis(e):i.ou.fromJSDate(e)))return"-";let n=f(r,t);return n=n.setLocale("en-us"),"".concat(n.toLocaleString({month:"2-digit",day:"2-digit"})," ").concat(n.toLocaleString(i.ou.TIME_24_WITH_SECONDS))},M=(e,t)=>{let r=f("string"==typeof e?i.ou.fromISO(e):i.ou.fromJSDate(e),t);return"".concat(r.toLocaleString({month:"2-digit",day:"2-digit"})," ").concat(r.toLocaleString(i.ou.TIME_SIMPLE))},O=e=>null==e?"":"string"==typeof e?i.ou.fromISO(e):e instanceof Date?i.ou.fromJSDate(e):i.ou.fromMillis(e),P=(e,t)=>{if(!e)return"-";let r=null;if("string"==typeof e){let t=/(\d{2})(\d{2})-(\d{1,2})-(\d{1,2})/g.exec(e);if(null===t||t.length<5)return"-";r=i.ou.fromSQL("20".concat(t[2],"-").concat(t[3],"-").concat(t[4]),{zone:"UTC"})}else r=i.ou.fromJSDate(r);let n=i.ou.now();return t&&(r.setZone(t),n.setZone(t)),Math.floor((r.ts-n.ts)/864e5+1)},N=(e,t)=>{if(!e)return"-";let r=null;if("string"==typeof e){let t=/(\d{2})(\d{2})-(\d{1,2})-(\d{1,2})/g.exec(e);if(null===t||t.length<5)return"-";r=new Date("20".concat(t[2],"/").concat(t[3],"/").concat(t[4]))}else r=e;let i=Math.floor((r.getTime()-new Date().getTime())/864e5+1);return 0===i&&"premarket"===t?(0,n.jsx)(n.Fragment,{}):i},F="America/New_York",I=()=>{let e=i.ou.now().setZone(F),t=A(e.toJSDate());return!(-1!==[6,7].indexOf(e.weekday)||z.has(t))&&e.hour<16},D=()=>{let e=i.ou.now().setZone(F),t=0;return(e.hour<9||9===e.hour&&e.minute<30)&&(t=(9-e.hour)*36e5+(29-e.minute)*6e4+(60-e.second)*1e3),t},T=()=>{let e=i.ou.now().setZone(F),t=A(e.toJSDate());return!(e.hour<9||9===e.hour&&e.minute<30||-1!==[6,7].indexOf(e.weekday)||z.has(t))&&e.hour<16},E=(e,t)=>{let r=i.ou.fromJSDate(e).setZone(F),n=A(r.toJSDate());return!(r.hour<9||9===r.hour&&r.minute<30||-1!==[6,7].indexOf(r.weekday)||z.has(n))&&(!t||9!==r.hour||30!==r.minute)&&r.hour<16},L=()=>{let e=i.ou.now().setZone(F);e.toUTC().toJSDate();let t=e=>"".concat(e.year,"-").concat(Z(e.month),"-").concat(Z(e.day)),r=t(e);for(;;){if(e.hour<9||9===e.hour&&e.minute<30||-1!==[6,7].indexOf(e.weekday)||z.has(r)){(e=e.minus({days:1}).set({hour:9,minute:30,second:0,millisecond:0})).toUTC().toJSDate(),r=t(e);continue}if(e.hour>=16){r=t(e=e.set({hour:9,minute:30,second:0,millisecond:0})),e.toUTC().toJSDate();continue}break}return(e=e.set({hour:9,minute:30,second:0,millisecond:0})).toUTC().toJSDate()},Z=e=>{let t="".concat(e);return 1===t.length?"0"+t:t},A=e=>"".concat(e.getUTCFullYear(),"-").concat(Z(e.getUTCMonth()+1),"-").concat(Z(e.getUTCDate())),z=new Set(["2023-1-2","2023-1-16","2023-2-20","2023-4-7","2023-5-29","2023-6-19","2023-7-3","2023-7-4","2023-9-4","2023-11-23","2023-12-25","2023-01-2","2023-01-16","2023-02-20","2023-04-7","2023-05-29","2023-06-19","2023-07-3","2023-07-04","2023-09-04","2024-01-01","2024-01-15","2024-02-19","2024-03-29","2024-05-27","2024-06-19","2024-07-04","2024-09-02","2024-11-28","2024-12-25"]),W=e=>{var t=new Date(e.getTime());let r="";do r=A(t=new Date(t.getTime()-864e5));while(-1!==[0,6].indexOf(t.getDay())||z.has(r));return t},R=e=>{var t=new Date(e.getTime());let r="";do r=A(t=new Date(t.getTime()+864e5));while(-1!==[0,6].indexOf(t.getDay())||z.has(r));return t},V=(e,t)=>{for(let r=0;r<t;r++)e=W(e);return e},U=(e,t)=>{for(let r=0;r<t;r++)e=R(e);return e},B=()=>V(L(),2),K=(e,t)=>{let[r,n,i]=[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()],[a,s,l]=[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()];return!(r>a)&&(n>s?r!==a:!(i>l)||n!==s)},J=e=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e.getUTCDay()],H=(e,t)=>e.getUTCDay()===t.getUTCDay()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCFullYear()===t.getUTCFullYear(),$=e=>"".concat(e.getUTCFullYear(),"-").concat(Z(e.getUTCMonth()+1),"-").concat(Z(e.getUTCDate()))},27736:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=r(84118);function i(e){return(0,n.m)("/api/oi_changes/chains",e)}},89987:function(e,t,r){"use strict";r.d(t,{Ff:function(){return f},Mb:function(){return _},Zl:function(){return c},ai:function(){return p},hg:function(){return x},q1:function(){return g}});var n=r(85893);r(67294);var i=r(92077),a=r.n(i),s=r(60507),l=r(58964);let o=(e,t)=>Number(Math.round(e+"e"+t)+"e-"+t);a().zeroFormat("-");let c=e=>{let t=parseFloat(e);if(null==t)return"-";if(0===t||isNaN(t))return e;if(t<0){if((t=Math.abs(t))>0&&t<1)return"-"+t.toFixed(2);if(t>=1&&t<1e5)return"-"+t.toLocaleString();if(t>=1e5&&t<1e6)return"-"+(t/1e3).toFixed()+"K";if(t>=1e6&&t<1e7)return"-"+(t/1e6).toFixed(2)+"M";else if(t>=1e7&&t<1e9)return"-"+(t/1e6).toFixed()+"M";else if(t>=1e9&&t<1e12)return"-"+(t/1e9).toFixed(2)+"B";else return"-"+(t/1e12).toFixed(2)+"T"}if(t>0&&t<1)return t.toFixed(2);if(t>=1&&t<1e5)return t.toLocaleString();if(t>=1e5&&t<1e6)return(t/1e3).toFixed()+"K";if(t>=1e6&&t<1e7)return(t/1e6).toFixed(2)+"M";if(t>=1e7&&t<1e9)return(t/1e6).toFixed()+"M";if(t>=1e9&&t<1e12)return(t/1e9).toFixed(2)+"B";else return(t/1e12).toFixed(2)+"T"},u=(e,t)=>{if(a().zeroFormat("$0.00"),t===l.ly){switch(!0){case Math.abs(e)>=1e5:e=a()(e).format("($0,0a)");break;case Math.abs(e)>=1e4:e=a()(e).format("($0,0.[0]a)");break;case Math.abs(e)>=1e3:e=a()(e).format("($0,0.[00]a)");break;default:e=a()(e).format("($0,0.00a)")}return e}switch(!0){case Math.abs(e)>=1e6:e=a()(e).format("($0,0.000a)");break;case Math.abs(e)>=1e4:e=a()(e).format("($0,0)");break;default:e=a()(e).format("($0,0.00)")}return e},d=(e,t)=>{if(a().zeroFormat("$0"),"number"==typeof t&&0===o(e,t))return"$0";switch(t){case 0:e=a()(e).format("($0,0a)");break;case 1:e=a()(e).format("($0,0.0a)");break;case 2:e=a()(e).format("($0,0.00a)");break;case l.ly:e=!0==Math.abs(e)>=1e5?a()(e).format("($0,0a)"):a()(e).format("($0,0.0a)")}return e},h=(e,t,r)=>{let n="0";if(a().zeroFormat(n),"number"==typeof t&&0===o(e,t))return"0";switch(t){case 0:n=r?"(0,0a)":"+0,0a",e=a()(e).format(n);break;case 1:n=r?"(0,0.0a)":"+0,0.0a",e=a()(e).format(n);break;case 2:n=r?"(0,0.00a)":"+0,0.00a",e=a()(e).format(n);break;case 3:n=r?"(0,0.000a)":"+0,0.000a",e=a()(e).format(n);break;case l.ly:n=r?"(0,0.[00]a)":"+0,0.[00]a",e=a()(e).format(n);break;case l.Gd:switch(!0){case Math.abs(e)>=1e6:n=r?"(0,0.0a)":"+0,0.0a",e=a()(e).format(n);break;case Math.abs(e)>=1e4:n=r?"(0,0a)":"+0,0a",e=a()(e).format(n);break;case Math.abs(e)>=1e3:n=r?"(0,0.0a)":"+0,0.0a",e=a()(e).format(n);break;default:n=r?"(0,0a)":"+0,0a",e=a()(e).format(n)}break;case l.yS:n=Math.abs(e)>=10&&100>Math.abs(e)?r?"(0,0.00a)":"+0,0.00a":Math.abs(e)>=100?r?"(0,0.0a)":"+0,0.0a":r?"(0,0.000a)":"+0,0.000a",e=a()(e).format(n)}return e},m=(e,t,r)=>{let n="0%";if(a().zeroFormat(n),0===o(e,3))return"0%";switch(t){case 0:n=r?"(0,0a)%":"+0,0a%",e=a()(e).format(n);break;case 1:n=r?"(0,0.0a)%":"+0,0.0a%",e=a()(e).format(n);break;case 2:n=r?"(0,0.00a)%":"+0,0.00a%",e=a()(e).format(n);break;case l.ly:n=o(Math.abs(e),3)>=1?r?"(0,0a)%":"+0,0a%":r?"(0,0.0a)%":"+0,0.0a%",e=a()(e).format(n)}return e},p=e=>0===e?"0":e?e>=1e6?_.numberToShortStringWithDecPlaces(e,2):0===e?"0":a()(e).format("0,0"):"-",f=e=>0===e?"0":a()(e).format("0,0.[00]"),g=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;return x(e,t,r,!0,n,i,a)},x=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0;if(e=o(e,s.ZW),(i||0===i)&&e<=i||(a||0===a)&&e>=a||(c||0===c)&&(c===s.wC||c===s.IE))return"n.m.";switch(t){case l.bO:e=u(e);break;case l.eI:e=h(e,r,n);break;case l.$:e=d(e,r);break;case l.rs:e=m(e,r,n)}return e},_={numberToShortString(e){let t=Number(e),[r,i]=Math.abs(t)>=1e9?[Math.round(Math.abs(t)/1e9),"B"]:Math.abs(t)>=1e7?[Math.round(Math.abs(t)/1e6*10)/10,"M"]:Math.abs(t)>=1e6&&1e7>Math.abs(t)?[Math.round(Math.abs(t)/1e6*100)/100,"M"]:Math.abs(t)>=1e3?[Math.round(Math.abs(t)/1e3),"K"]:[Math.round(Math.abs(t)),""],a="";switch(i){case"B":a="text-info-b";break;case"M":a="text-info-m";break;case"K":a="text-info"}return(0,n.jsxs)(n.Fragment,{children:[t<0?"-":"",r,(0,n.jsx)("span",{className:a,children:i})]})},numberToShortStringWithDecPlaces(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(void 0===e||isNaN(e)||(void 0===t&&(t=0),null===e))return null;if(0===e)return"0";if(t=!t||t<0?0:t,r&&e<r)return e;let i=e.toPrecision(2).split("e"),a=1===i.length?0:Math.floor(Math.min(i[1].slice(1),14)/3),s=a<1?e.toFixed(0+t):(e/Math.pow(10,3*a)).toFixed(t),l="".concat(["","K","M","B","T"][a]),o="";switch(l){case"B":o="text-info-b";break;case"M":o="text-info-m";break;case"K":o="text-info"}return(0,n.jsxs)(n.Fragment,{children:[s<0?s:Math.abs(s),(0,n.jsx)("span",{className:o,children:l})]})},numberToShortStringWithDecPlacesWithoutHtml(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e||isNaN(e)||(void 0===t&&(t=0),null===e))return null;if(0===e)return"0";t=!t||t<0?0:t;let n=e.toPrecision(2).split("e"),i=1===n.length?0:Math.floor(Math.min(n[1].slice(1),14)/3),a=i<1?e.toFixed(0+t):(e/Math.pow(10,3*i)).toFixed(t),s=a<0?a:Math.abs(a),l="".concat(["","K","M","B","T"][i]);return r?"".concat(s.toFixed(0+t)).concat(l):"".concat(s).concat(l)},round:e=>Math.round(100*e)/100,getDecPlaces:e=>e>=1e3&&e<1e4?2:e>=1e4&&e<1e5?1:e>=1e5&&e<1e6?0:e>=1e6&&e<1e7?2:e>=1e7&&e<1e8?1:e>=1e9&&e<1e10?2:e>=1e10&&e<1e11?1:0}},33138:function(e){e.exports={intraSelect:"dropdown_intraSelect__qgs2y","intraSelect-options":"dropdown_intraSelect-options__G3rGm",intraSelectControl:"dropdown_intraSelectControl__2tYcG",alignCenter:"dropdown_alignCenter__1fsB3",breadcrumbsMobile:"dropdown_breadcrumbsMobile__v3JqX",roundedDropdownControl:"dropdown_roundedDropdownControl__5YeMz",transparent:"dropdown_transparent__4Pqhg",intraSelectOptions:"dropdown_intraSelectOptions__j7lWm",optionsList:"dropdown_optionsList__rrLvi",optionSelected:"dropdown_optionSelected__OwESl",iconDropdown:"dropdown_iconDropdown__We1IV",button:"dropdown_button__VNdPM",buttonText:"dropdown_buttonText__ga1z4",menu:"dropdown_menu__xQUYl",left:"dropdown_left__lI5LD",right:"dropdown_right__KenPk",show:"dropdown_show__rYaE3",disabled:"dropdown_disabled__itivA"}}},function(e){e.O(0,[49809,86898,96229,40660,41781,41664,12281,69776,38444,67819,24178,92077,95551,94913,78093,42660,45616,91998,10829,65010,11566,44672,75773,96616,87637,90772,9530,25300,92888,49774,40179],function(){return e(e.s=44946)}),_N_E=e.O()}]);