1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,672653,e=>{"use strict";var t=e.i(843476),a=e.i(271645);let r=(0,a.createContext)({user:null,isUserLoaded:!1,setUser:()=>{},clearUser:()=>{},resyncUser:async()=>{},checkTrialExpired:()=>!1,shouldShowUpgradeDialog:()=>!1});function o(e,t){if(e instanceof Date==!1)return!1;let a=new Date(e).getTime();return Date.now()-a<(t||864e5)}e.s(["UserProvider",0,({children:e})=>{let[l,i]=(0,a.useState)(null),[n,s]=(0,a.useState)(!1),d=()=>{if(!l?.subscription)return!1;let e=new Date(l.subscription.endDate),t=(new Date().getTime()-e.getTime())/864e5;return"trial"===l.subscription.plan&&"active"!==l.subscription.status&&t<=14&&t>0},c=()=>{if(!l?.upgradeDialog)return!0;let e=l.upgradeDialog.lastShown?new Date(l.upgradeDialog.lastShown):null,t=l.upgradeDialog.timesShown||0,a=new Date;return!(t>=5||e&&a.getTime()-e.getTime()<864e5)&&d()};(0,a.useEffect)(()=>{let e=localStorage.getItem("user");if(e)try{let t=JSON.parse(e);if(!o(new Date(t.createdAt),2592e6))return void p();i(t),o(new Date(t.updatedAt))||fetch("https://api.textcompare.org/v1/auth/sync",{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t?.jwtToken}`}}).then(e=>e.json()).then(e=>{!0===e.success&&(t.subscription=e.subscription,"boolean"==typeof e.verified&&(t.verified=e.verified),u({...t,updatedAt:new Date}))}).catch(e=>{})}catch(e){}s(!0)},[]);let u=e=>{let t={...e,updatedAt:new Date,upgradeDialog:e.upgradeDialog||{lastShown:void 0,timesShown:0}};localStorage.setItem("user",JSON.stringify(t)),"active"===t.subscription.status&&document.querySelectorAll(".adsbygoogle").forEach(e=>{e.remove()}),i(t)};(0,a.useEffect)(()=>{if(n&&l&&c()){u({...l,upgradeDialog:{lastShown:new Date,timesShown:(l.upgradeDialog?.timesShown||0)+1}});let e=new CustomEvent("showUpgradeDialog",{detail:{message:"Your Pro trial has expired! Upgrade now to continue enjoying premium features.",type:"warning"}});document.dispatchEvent(e)}},[n,l?.subscription]);let p=()=>{i(null),localStorage.removeItem("user")},f=(0,a.useCallback)(async()=>{i(e=>
1(e?.jwtToken&&(async()=>{try{let t=await fetch("https://api.textcompare.org/v1/auth/sync",{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.jwtToken}`}}),a=await t.json();!0===a.success&&i(e=>{if(!e)return null;let t={...e,subscription:a.subscription,updatedAt:new Date};return"boolean"==typeof a.verified&&(t.verified=a.verified),localStorage.setItem("user",JSON.stringify(t)),t})}catch(e){}})(),e))},[]);return(0,t.jsx)(r.Provider,{value:{user:l,setUser:u,isUserLoaded:n,clearUser:p,resyncUser:f,checkTrialExpired:d,shouldShowUpgradeDialog:c},children:e})},"default",0,r,"useUser",0,()=>(0,a.use)(r)])},520048,e=>{"use strict";let t=e.i(247167).default.env.NEXT_PUBLIC_TAURI?"75vh":"60vh";async function a(e,t){let a=new FormData;a.append("document",e);let r={};t&&(r.Authorization=`Bearer ${t}`);let o=await fetch("https://api.textcompare.org/v1/convert",{method:"POST",headers:r,body:a});if(!o.ok)throw Error((await o.json().catch(()=>({}))).message||`Conversion failed: ${o.statusText}`);return await o.blob()}async function r(e){try{if(!e.startsWith("http://")&&!e.startsWith("https://"))return{data:null,filename:null,error:"invalid_url"};let t=await fetch(e,{mode:"cors"});if(!t.ok)return{data:null,filename:null,error:`http_error_${t.status}`};let a=await t.arrayBuffer();if(0===a.byteLength)return{data:null,filename:null,error:"empty_file"};let r=function(e,t){if(t){let e=t.get("content-disposition");if(e?.includes("filename")){let t=e.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/);if(t&&t[1])return t[1].replace(/['"]/g,"")}}try{let t=new URL(e).pathname.split("/").filter(e=>e.length>0);if(t.length>0){let e=t[t.length-1];return decodeURIComponent(e)}}catch(e){}return"downloaded-file.txt"}(e,t.headers);return{data:new Uint8Array(a),filename:r,error:null}}catch(e){if(!navigator.onLine)return{data:null,filename:null,error:"network_offline"};if(e instanceof TypeError&&(e.message.includes("fetch")||e.message.includes("Failed to fetch")))return{data:null,filename:null,error:"cors_error"};return{data:null,filename:null,error:"download_error"}}}e.s(["VH",0,t,"convertDocumentToPDF",0,a,"fetchFileFromURL",0,r,"getConversionMaxSize",0,function(e){return e?.subscription?.status==="active"?0x1900000:e?.subscription?.plan==="trial"?0xa00000:e?.verified?0xa00000:5242880},"getMaxSize",0,function(e){return e?.subscription?.status==="active"?4:e?.verified?2:1},"isDocumentFile",0,function(e){return["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.oasis.opendocument.text","application/rtf","text/rtf"].includes(e.type)||/\.(docx?|pptx?|odt|rtf)$/i.test(e.name)},"normalizeURL",0,function(e){if(!e||0===e.trim().length)return{url:null,error:"empty_url"};let t=e.trim();if(!t.startsWith("http://")&&!t.startsWith("https://"))return{url:null,error:"invalid_url_protocol"};try{return{url:new URL(t).href,error:null}}catch(e){return{url:null,error:"malformed_url"}}},"setLocale",0,function(e,t){return"en"==e?t:`/${e}${t}`}])},303974,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(207670),r=e.i(519130),o=e.i(940799),l=e.i(75149),i=e.i(594425),n=e.i(348106),s=e.i(942196),d=e.i(535057),c=e.i(67719),u=e.i(540672),p=e.i(319727);function f(e){return(0,p.default)("MuiAlert",e)}let m=(0,u.default)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);var g=e.i(443090),h=e.i(454624),v=e.i(843476);let y=(0,h.default)((0,v.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),b=(0,h.default)((0,v.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),x=(0,h.default)((0,v.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),S=(0,h.default)((0,v.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),C=(0,h.default)((0,v.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),k=(0,o.styled)(c.default,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,t[a.variant],t[`${a.variant}${(0,s.default)(a.color||a.severity)}`]]}})((0,l.default)(({theme:e})=>{let t="light"===e.palette.mode?e.darken:e.lighten,a="light"===e.palette.mode?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter((0,d.default)(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:a(e.palette[r].light,.9),[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter((0,d.default)(["light"])).map(([a])=>({props:{colorSeverity:a,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${a}Color`]:t(e.palette[a].light,.6),border:`1px solid ${(e.vars||e).palette[a].light}`,[`& .${m.icon}`]:e.vars?{color:e.vars.palette.Alert[`${a}IconColor`]}:{color:e.palette[a].main}}})),...Object.entries(e.palette).filter((0,d.default)(["dark"])).map(([t])=>({props:{colorSeverity:t,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:"dark"===e.palette.mode?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),w=(0,o.styled)("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),$=(0,o.styled)("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),D=(0,o.styled)("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),M={success:(0,v.jsx)(y,{fontSize:"inherit"}),warning:(0,v.jsx)(b,{fontSize:"inherit"}),error:(0,v.jsx)(x,{fontSize:"inherit"}),info:(0,v.jsx)(S,{fontSize:"inherit"})},j=t.forwardRef(function(e,t){let o=(0,i.useDefaultProps)({props:e,name:"MuiAlert"}),{action:l,children:d,className:c,closeText:u="Close",color:p,components:m={},componentsProps:h={},icon:y,iconMapping:b=M,onClose:x,role:S="alert",severity:j="success",slotProps:T={},slots:I={},variant:R="standard",...L}=o,P={...o,color:p,severity:j,variant:R,colorSeverity:p||j},A=(e=>{let{variant:t,color:a,severity:o,classes:l}=e,i={root:["root",`color${(0,s.default)(a||o)}`,`${t}${(0,s.default)(a||o)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return(0,r.default)(i,f,l)})(P),z={slots:{closeButton:m.CloseButton,closeIcon:m.CloseIcon,...I},slotProps:{...h,...T}},[E,O]=(0,n.default)("root",{ref:t,shouldForwardComponentProp:!0,className:(0,a.default)(A.root,c),elementType:k,externalForwardedProps:{...z,...L},ownerState:P,additionalProps:{role:S,elevation:0}}),[B,W]=(0,n.default)("icon",{className:A.icon,elementType:w,externalForwardedProps:z,ownerState:P}),[F,N]=(0,n.default)("message",{className:A.message,elementType:$,externalForwardedProps:z,ownerState:P}),[U,V]=(0,n.default)("action",{className:A.action,elementType:D,externalForwardedProps:z,ownerState:P}),[H,_]=(0,n.default)("closeButton",{elementType:g.default,externalForwardedProps:z,ownerState:P}),[K,Y]=(0,n.default)("closeIcon",{elementType:C,externalForwardedProps:z,ownerState:P});return(0,v.jsxs)(E,{...O,children:[!1!==y?(0,v.jsx)(B,{...W,children:y||b[j]||M[j]}):null,(0,v.jsx)(F,{...N,children:d}),null!=l?(0,v.jsx)(U,{...V,children:l}):null,null==l&&x?(0,v.jsx)(U,{...V,children:(0,v.jsx)(H,{size:"small","aria-label":u,title:u,color:"inherit",onClick:x,..._,children:(0,v.jsx)(K,{fontSize:"small",...Y})})}):null]})});e.s(["Alert",0,j],303974)},755742,e=>{"use strict";var t=e.i(454624),t=t;e.s(["default",()=>t.default],755742)},443090,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(207670),r=e.i(519130),o=e.i(356),l=e.i(940799),i=e.i(75149),n=e.i(535057),s=e.i(594425),d=e.i(154033),c=e.i(688762),u=e.i(942196),p=e.i(540672),f=e.i(319727);function m(e){return(0,f.default)("MuiIconButton",e)}let g=(0,p.default)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var h=e.i(843476);let v=(0,l.styled)(d.default,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.loading&&t.loading,"default"!==a.color&&t[`color${(0,u.default)(a.color)}`],a.edge&&t[`edge${(0,u.default)(a.edge)}`],t[`size${(0,u.default)(a.size)}`]]}})((0,i.default)(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),(0,i.default)(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter((0,n.default)()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter((0,n.default)()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${g.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${g.loading}`]:{color:"transparent"}}))),y=(0,l.styled)("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),b=t.forwardRef(function(e,t){let l=(0,s.useDefaultProps)({props:e,name:"MuiIconButton"}),{edge:i=!1,children:n,className:d,color:p="default",disabled:f=!1,disableFocusRipple:g=!1,size:b="medium",id:x,loading:S=null,loadingIndicator:C,...k}=l,w=(0,o.unstable_useId)(x),$=C??(0,h.jsx)(c.default,{"aria-labelledby":w,color:"inherit",size:16}),D={...l,edge:i,color:p,disabled:f,disableFocusRipple:g,loading:S,loadingIndicator:$,size:b},M=(e=>{let{classes:t,disabled:a,color:o,edge:l,size:i,loading:n}=e,s={root:["root",n&&"loading",a&&"disabled","default"!==o&&`color${(0,u.default)(o)}`,l&&`edge${(0,u.default)(l)}`,`size${(0,u.default)(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return(0,r.default)(s,m,t)})(D);return(0,h.jsxs)(v,{id:S?w:x,className:(0,a.default)(M.root,d),centerRipple:!0,focusRipple:!g,disabled:f||S,ref:t,...k,ownerState:D,children:["boolean"==typeof S&&(0,h.jsx)("span",{className:M.loadingWrapper,style:{display:"contents"},children:(0,h.jsx)(y,{className:M.loadingIndicator,ownerState:D,children:S&&$})}),n]})});e.s(["default",0,b],443090)},563745,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(207670),r=e.i(576423),o=e.i(319727),l=e.i(519130),i=e.i(501434),n=e.i(984429),s=e.i(139416),d=e.i(817494),c=e.i(643982),u=e.i(110900),p=e.i(843476);let f=(0,d.default)(),m=(0,i.default)("div",{name:"MuiStack",slot:"Root"});function g(e){return(0,n.default)({props:e,name:"MuiStack",defaultTheme:f})}let h=({ownerState:e,theme:t})=>{let a={display:"flex",flexDirection:"column",...(0,c.handleBreakpoints)({theme:t},(0,c.resolveBreakpointValues)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let o=(0,u.createUnarySpacing)(t),l=Object.keys(t.breakpoints.values).reduce((t,a)=>(("object"==typeof e.spacing&&null!=e.spacing[a]||"object"==typeof e.direction&&null!=e.direction[a])&&(t[a]=!0),t),{}),i=(0,c.resolveBreakpointValues)({values:e.direction,base:l}),n=(0,c.resolveBreakpointValues)({values:e.spacing,base:l});
1"object"==typeof i&&Object.keys(i).forEach((e,t,a)=>{if(!i[e]){let r=t>0?i[a[t-1]]:"column";i[e]=r}}),a=(0,r.default)(a,(0,c.handleBreakpoints)({theme:t},n,(t,a)=>e.useFlexGap?{gap:(0,u.getValue)(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[a?i[a]:e.direction]}`]:(0,u.getValue)(o,t)}}))}return(0,c.mergeBreakpointsInOrder)(t.breakpoints,a)};var v=e.i(912178),y=e.i(594425);let b=function(e={}){let{createStyledComponent:r=m,useThemeProps:i=g,componentName:n="MuiStack"}=e,d=r(h);return t.forwardRef(function(e,r){let c,u=i(e),{component:f="div",direction:m="column",spacing:g=0,divider:h,children:v,className:y,useFlexGap:b=!1,...x}=(0,s.extendSxProp)(u),S=(0,l.default)({root:["root"]},e=>(0,o.default)(n,e),{});return(0,p.jsx)(d,{as:f,ownerState:{direction:m,spacing:g,useFlexGap:b},ref:r,className:(0,a.default)(S.root,y),...x,children:h?(c=t.Children.toArray(v).filter(Boolean)).reduce((e,a,r)=>(e.push(a),r<c.length-1&&e.push(t.cloneElement(h,{key:`separator-${r}`})),e),[]):v})})}({createStyledComponent:(0,v.default)("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>(0,y.useDefaultProps)({props:e,name:"MuiStack"})});e.s(["Stack",0,b],563745)},845679,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(207670),r=e.i(519130),o=e.i(454624),l=e.i(843476);let i=(0,o.default)((0,l.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var n=e.i(719636),s=e.i(942196),d=e.i(154033),c=e.i(940799),u=e.i(75149),p=e.i(535057),f=e.i(594425),m=e.i(540672),g=e.i(319727);function h(e){return(0,g.default)("MuiChip",e)}let v=(0,m.default)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);var y=e.i(348106);let b=(0,c.styled)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e,{color:r,iconColor:o,clickable:l,onDelete:i,size:n,variant:d}=a;return[{[`& .${v.avatar}`]:t.avatar},{[`& .${v.avatar}`]:t[`avatar${(0,s.default)(n)}`]},{[`& .${v.avatar}`]:t[`avatarColor${(0,s.default)(r)}`]},{[`& .${v.icon}`]:t.icon},{[`& .${v.icon}`]:t[`icon${(0,s.default)(n)}`]},{[`& .${v.icon}`]:t[`iconColor${(0,s.default)(o)}`]},{[`& .${v.deleteIcon}`]:t.deleteIcon},{[`& .${v.deleteIcon}`]:t[`deleteIcon${(0,s.default)(n)}`]},{[`& .${v.deleteIcon}`]:t[`deleteIconColor${(0,s.default)(r)}`]},{[`& .${v.deleteIcon}`]:t[`deleteIcon${(0,s.default)(d)}Color${(0,s.default)(r)}`]},t.root,t[`size${(0,s.default)(n)}`],t[`color${(0,s.default)(r)}`],l&&t.clickable,l&&"default"!==r&&t[`clickableColor${(0,s.default)(r)}`],i&&t.deletable,i&&"default"!==r&&t[`deletableColor${(0,s.default)(r)}`],t[d],t[`${d}${(0,s.default)(r)}`]]}})((0,u.default)(({theme:e})=>{let t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${v.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${v.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${v.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${v.avatarColorSecondary}
1`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${v.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${v.icon}`]:{marginLeft:5,marginRight:-6},[`& .${v.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${v.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${v.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter((0,p.default)(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${v.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${v.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${v.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${v.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter((0,p.default)(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${v.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${v.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter((0,p.default)(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${v.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${v.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${v.avatar}`]:{marginLeft:4},[`& .${v.avatarSmall}`]:{marginLeft:2},[`& .${v.icon}`]:{marginLeft:4},[`& .${v.iconSmall}`]:{marginLeft:2},[`& .${v.deleteIcon}`]:{marginRight:5},[`& .${v.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter((0,p.default)()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${v.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${v.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)},[`& .${v.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),x=(0,c.styled)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:a}=e,{size:r}=a;return[t.label,t[`label${(0,s.default)(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function S(e){return"Backspace"===e.key||"Delete"===e.key}let C=t.forwardRef(function(e,o){let c=(0,f.useDefaultProps)({props:e,name:"MuiChip"}),{avatar:u,className:p,clickable:m,color:g="default",component:v,deleteIcon:C,disabled:k=!1,icon:w,label:$,onClick:D,onDelete:M,onKeyDown:j,onKeyUp:T,size:I="medium",variant:R="filled",tabIndex:L,skipFocusWhenDisabled:P=!1,slots:A={},slotProps:z={},...E}=c,O=t.useRef(null),B=(0,n.default)(O,o),W=e=>{e.stopPropagation(),M(e)},F=!1!==m&&!!D||m,N=F||M?d.default:v||"div",U={...c,component:N,disabled:k,size:I,color:g,iconColor:t.isValidElement(w)&&w.props.color||g,onDelete:!!M,clickable:F,variant:R},V=(e=>{let{classes:t,disabled:a,size:o,color:l,iconColor:i,onDelete:n,clickable:d,variant:c}=e,u={root:["root",c,a&&"disabled",`size${(0,s.default)(o)}`,`color${(0,s.default)(l)}`,d&&"clickable",d&&`clickableColor${(0,s.default)(l)}`,n&&"deletable",n&&`deletableColor${(0,s.default)(l)}`,`${c}${(0,s.default)(l)}`],label:["label",`label${(0,s.default)(o)}`],avatar:["avatar",`avatar${(0,s.default)(o)}`,`avatarColor${(0,s.default)(l)}`],icon:["icon",`icon${(0,s.default)(o)}`,`iconColor${(0,s.default)(i)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,s.default)(o)}`,`deleteIconColor${(0,s.default)(l)}`,`deleteIcon${(0,s.default)(c)}Color${(0,s.default)(l)}`]};return(0,r.default)(u,h,t)}
1)(U),H=N===d.default?{component:v||"div",focusVisibleClassName:V.focusVisible,...M&&{disableRipple:!0}}:{},_=null;M&&(_=C&&t.isValidElement(C)?t.cloneElement(C,{className:(0,a.default)(C.props.className,V.deleteIcon),onClick:W}):(0,l.jsx)(i,{className:V.deleteIcon,onClick:W}));let K=null;u&&t.isValidElement(u)&&(K=t.cloneElement(u,{className:(0,a.default)(V.avatar,u.props.className)}));let Y=null;w&&t.isValidElement(w)&&(Y=t.cloneElement(w,{className:(0,a.default)(V.icon,w.props.className)}));let X={slots:A,slotProps:z},[G,J]=(0,y.default)("root",{elementType:b,externalForwardedProps:{...X,...E},ownerState:U,shouldForwardComponentProp:!0,ref:B,className:(0,a.default)(V.root,p),additionalProps:{disabled:!!F&&!!k||void 0,tabIndex:P&&k?-1:L,...H},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),D?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),t.currentTarget===t.target&&S(t)&&t.preventDefault(),j&&j(t)},onKeyUp:t=>{e.onKeyUp?.(t),t.currentTarget===t.target&&M&&S(t)&&M(t),T&&T(t)}})}),[Z,q]=(0,y.default)("label",{elementType:x,externalForwardedProps:X,ownerState:U,className:V.label});return(0,l.jsxs)(G,{as:N,...J,children:[K||Y,(0,l.jsx)(Z,{...q,children:$}),_]})});e.s(["default",0,C],845679)},297555,e=>{"use strict";var t=e.i(845679);e.s(["Chip",()=>t.default])},237055,449730,e=>{"use strict";var t=e.i(755742),a=e.i(843476);let r=(0,t.default)((0,a.jsx)("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"}),"LocalOffer");e.s(["default",0,r],237055);let o=[{id:"new-year",name:"New Year Sale",emoji:"ð",startMonth:1,startDay:1,endMonth:1,endDay:15,color:"#FFD700",description:"Start the year with savings"},{id:"valentine",name:"Valentine Sale",emoji:"ð",startMonth:2,startDay:10,endMonth:2,endDay:20,color:"#FF1493",description:"Love your tools"},{id:"holi",name:"Holi Sale",emoji:"ð¨",startMonth:3,startDay:1,endMonth:3,endDay:25,color:"#FF6347",description:"Celebrate with colors and savings"},{id:"spring",name:"Spring Sale",emoji:"ð¸",startMonth:3,startDay:20,endMonth:4,endDay:30,color:"#98FB98",description:"Fresh start, fresh savings"},{id:"summer",name:"Summer Sale",emoji:"âï¸",startMonth:5,startDay:1,endMonth:5,endDay:31,color:"#FFA500",description:"Hot deals for summer"},{id:"halloween",name:"Halloween Sale",emoji:"ð",startMonth:10,startDay:20,endMonth:10,endDay:31,color:"#FF8C00",description:"Spooky savings"},{id:"diwali",name:"Diwali Sale",emoji:"ðª",startMonth:10,startDay:15,endMonth:11,endDay:15,color:"#FFD700",description:"Festival of lights, festival of savings"},{id:"black-friday",name:"Black Friday Sale",emoji:"ðï¸",startMonth:11,startDay:20,endMonth:11,endDay:30,color:"#000000",description:"Biggest sale of the year"},{id:"cyber-monday",name:"Cyber Monday Sale",emoji:"ð»",startMonth:11,startDay:25,endMonth:12,endDay:2,color:"#4169E1",description:"Digital deals unleashed"},{id:"christmas",name:"Christmas Sale",emoji:"ð",startMonth:12,startDay:1,endMonth:12,endDay:26,color:"#228B22",description:"Gift yourself this holiday season"},{id:"year-end",name:"Year End Sale",emoji:"ð",startMonth:12,startDay:26,endMonth:12,endDay:31,color:"#9370DB",description:"End the year on a high note"}],l={id:"limited-time",name:"Limited Time Offer",emoji:"â¡",startMonth:1,startDay:1,endMonth:12,endDay:31,color:"#FF4500",description:"Special pricing - Limited time only"};e.s(["getCurrentSale",0,function(){let e=new Date,t=e.getMonth()+1,a=e.getDate();for(let e of o){var r,i,n;if(r=t,i=a,(n=e).startMonth===n.endMonth?r===n.startMonth&&i>=n.startDay&&i<=n.endDay:r===n.startMonth&&i>=n.startDay||r===n.endMonth&&i<=n.endDay||n.startMonth<n.endMonth&&r>n.startMonth&&r<n.endMonth)return e}return l},"getSavingsText",0,function(){return"Save $200 (80% off)"}],449730)},803566,859991,33329,e=>{"use strict";var t=e.i(781974);e.s(["Dialog",()=>t.default],803566),e.i(247167);var a=e.i(271645),r=e.i(207670),o=e.i(519130),l=e.i(126863),i=e.i(940799),n=e.i(594425),s=e.i(722883),d=e.i(671364),c=e.i(843476);let u=(0,i.styled)(l.default,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),p=a.forwardRef(function(e,t){let l=(0,n.useDefaultProps)({props:e,name:"MuiDialogTitle"}),{className:i,id:p,...f}=l,m=(e=>{let{classes:t}=e;return(0,o.default)({root:["root"]},s.getDialogTitleUtilityClass,t)})(l),{titleId:g=p}=a.useContext(d.default);return(0,c.jsx)(u,{component:"h2",className:(0,r.default)(m.root,i),ownerState:l,ref:t,variant:"h6",id:p??g,...f})});e.s(["DialogTitle",0,p],859991);var f=e.i(839126);e.s(["DialogContent",()=>f.default],33329)},781974,671364,722883,839126,756846,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(207670),r=e.i(519130),o=e.i(357242),l=e.i(942196),i=e.i(18005),n=e.i(444202),s=e.i(67719),d=e.i(540672),c=e.i(319727);function u(e){return(0,c.default)("MuiDialog",e)}let p=(0,d.default)("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),f=t.createContext({});e.s(["default",0,f],671364);var m=e.i(69e4),g=e.i(940799),h=e.i(210557),v=e.i(75149),y=e.i(594425),b=e.i(348106),x=e.i(843476);let S=(0,g.styled)(m.default,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}
1),C=(0,g.styled)(i.default,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),k=(0,g.styled)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.container,t[`scroll${(0,l.default)(a.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),w=(0,g.styled)(s.default,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.paper,t[`scrollPaper${(0,l.default)(a.scroll)}`],t[`paperWidth${(0,l.default)(String(a.maxWidth))}`],a.fullWidth&&t.paperFullWidth,a.fullScreen&&t.paperFullScreen]}})((0,v.default)(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${p.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(e=>"xs"!==e).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${p.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${p.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),$=t.forwardRef(function(e,i){let d=(0,y.useDefaultProps)({props:e,name:"MuiDialog"}),c=(0,h.useTheme)(),p={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{"aria-describedby":m,"aria-labelledby":g,"aria-modal":v=!0,BackdropComponent:$,BackdropProps:D,children:M,className:j,disableEscapeKeyDown:T=!1,fullScreen:I=!1,fullWidth:R=!1,maxWidth:L="sm",onClick:P,onClose:A,open:z,PaperComponent:E=s.default,PaperProps:O={},scroll:B="paper",slots:W={},slotProps:F={},TransitionComponent:N=n.default,transitionDuration:U=p,TransitionProps:V,...H}=d,_={...d,disableEscapeKeyDown:T,fullScreen:I,fullWidth:R,maxWidth:L,scroll:B},K=(e=>{let{classes:t,scroll:a,maxWidth:o,fullWidth:i,fullScreen:n}=e,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${(0,l.default)(a)}`],paper:["paper",`paperScroll${(0,l.default)(a)}`,`paperWidth${(0,l.default)(String(o))}`,i&&"paperFullWidth",n&&"paperFullScreen"]};return(0,r.default)(s,u,t)})(_),Y=t.useRef(),X=(0,o.default)(g),G=t.useMemo(()=>({titleId:X}),[X]),J={slots:{transition:N,...W},slotProps:{transition:V,paper:O,backdrop:D,...F}},[Z,q]=(0,b.default)("root",{elementType:C,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:_,className:(0,a.default)(K.root,j),ref:i}),[Q,ee]=(0,b.default)("backdrop",{elementType:S,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:_,className:K.backdrop}),[et,ea]=(0,b.default)("paper",{elementType:w,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:_,className:(0,a.default)(K.paper,O.className)}),[er,eo]=(0,b.default)("container",{elementType:k,externalForwardedProps:J,ownerState:_,className:K.container}),[el,ei]=(0,b.default)("transition",{elementType:n.default,externalForwardedProps:J,ownerState:_,additionalProps:{appear:!0,in:z,timeout:U,role:"presentation"}});return(0,x.jsx)(Z,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:U,as:$,...ee}},disableEscapeKeyDown:T,onClose:A,open:z,onClick:e=>{P&&P(e),Y.current&&(Y.current=null,A&&A(e,"backdropClick"))},...q,...H,children:(0,x.jsx)(el,{...ei,children:(0,x.jsx)(er,{onMouseDown:e=>{Y.current=e.target===e.currentTarget},...eo,children:(0,x.jsx)(et,{as:E,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":X,"aria-modal":v,...ea,children:(0,x.jsx)(f.Provider,{value:G,children:M})})})})})});e.s(["default",0,$],781974);let D=(0,d.default)("MuiDialogTitle",["root"]);function M(e){return(0,c.default)("MuiDialogContent",e)}e.s(["default",0,D,"getDialogTitleUtilityClass",0,function(e){return(0,c.default)("MuiDialogTitle",e)}],722883),(0,d.default)("MuiDialogContent",["root","dividers"]);let j=(0,g.styled)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.dividers&&t.dividers]}})((0,v.default)(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>
1!e.dividers,style:{[`.${D.root} + &`]:{paddingTop:0}}}]}))),T=t.forwardRef(function(e,t){let o=(0,y.useDefaultProps)({props:e,name:"MuiDialogContent"}),{className:l,dividers:i=!1,...n}=o,s={...o,dividers:i},d=(e=>{let{classes:t,dividers:a}=e;return(0,r.default)({root:["root",a&&"dividers"]},M,t)})(s);return(0,x.jsx)(j,{className:(0,a.default)(d.root,l),ownerState:s,ref:t,...n})});function I(e){return(0,c.default)("MuiDialogActions",e)}e.s(["default",0,T],839126),(0,d.default)("MuiDialogActions",["root","spacing"]);let R=(0,g.styled)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,!a.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),L=t.forwardRef(function(e,t){let o=(0,y.useDefaultProps)({props:e,name:"MuiDialogActions"}),{className:l,disableSpacing:i=!1,...n}=o,s={...o,disableSpacing:i},d=(e=>{let{classes:t,disableSpacing:a}=e;return(0,r.default)({root:["root",!a&&"spacing"]},I,t)})(s);return(0,x.jsx)(R,{className:(0,a.default)(d.root,l),ownerState:s,ref:t,...n})});e.s(["DialogActions",0,L],756846)},530693,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(803566),o=e.i(859991),l=e.i(33329),i=e.i(756846),n=e.i(234251),s=e.i(776552),d=e.i(297555),c=e.i(866796),u=e.i(237055),p=e.i(948148),f=e.i(449730);let m=(0,a.createContext)(void 0);e.s(["DialogProvider",0,({children:e})=>{let[g,h]=(0,a.useState)(!1),[v,y]=(0,a.useState)(""),[b,x]=(0,a.useState)("info"),[S,C]=(0,a.useState)(null),[k,w]=(0,a.useState)(10),[$,D]=(0,a.useState)(null),[M,j]=(0,a.useState)((0,f.getCurrentSale)()),T=(0,p.useTranslations)("common");(0,a.useEffect)(()=>{j((0,f.getCurrentSale)())},[]);let I=(e,t)=>{"backdropClick"!==t&&"escapeKeyDown"!==t&&(h(!1),y(""),C(null))};return(0,a.useEffect)(()=>{if(null!==S&&S>0&&g){let e=setTimeout(()=>{1===S?I():C(e=>null!==e&&e>0?e-1:0)},1e3);return()=>clearTimeout(e)}0===S&&I()},[S,g]),(0,t.jsxs)(m.Provider,{value:{open:g,message:v,type:b,countdown:S,showDialog:(e,t,a=10)=>{y(e),x(t),h(!0),C(a),w(a)},hideDialog:I,callback:e=>{D(setTimeout(()=>{e()},1e3*k))}},children:[e,(0,t.jsxs)(r.Dialog,{open:g,onClose:I,slotProps:{paper:{sx:{borderTop:"4px solid",borderColor:"primary.main"}}},children:[(0,t.jsx)(o.DialogTitle,{children:(0,t.jsxs)(s.Box,{sx:{display:"flex",alignItems:"center",gap:1,flexWrap:"wrap"},children:[(0,t.jsx)("span",{children:T("Upgrade Account")}),(0,t.jsx)(d.Chip,{icon:(0,t.jsx)(u.default,{}),label:`${M.emoji} ${T(M.name)}`,size:"small",color:"error",sx:{fontWeight:"bold"}})]})}),(0,t.jsxs)(l.DialogContent,{children:[(0,t.jsxs)(s.Box,{sx:{mb:2,textAlign:"center"},children:[(0,t.jsxs)(c.Typography,{variant:"h4",component:"div",sx:{fontWeight:"bold",mb:1},children:[(0,t.jsx)(c.Typography,{component:"span",sx:{textDecoration:"line-through",color:"text.secondary",fontSize:"0.6em",mr:1},children:"$249"}),(0,t.jsx)(c.Typography,{component:"span",sx:{color:"primary.main"},children:"$49"})]}),(0,t.jsx)(d.Chip,{label:(0,f.getSavingsText)(),color:"success",sx:{fontWeight:"bold"}})]}),(0,t.jsx)(c.Typography,{sx:{mb:2},children:T("Upgrade account to export diffs without waiting")}),(0,t.jsx)(s.Box,{sx:{p:2,bgcolor:"action.hover",borderRadius:1,borderLeft:"3px solid",borderColor:"primary.main"},children:(0,t.jsxs)(c.Typography,{variant:"body2",color:"text.secondary",children:["â ",T("No Ads"),(0,t.jsx)("br",{}),"â ",T("No waiting time in exporting"),(0,t.jsx)("br",{}),"â ",T("No Watermark"),(0,t.jsx)("br",{}),"â ",T("Higher file size limit"),(0,t.jsx)("br",{}),"â ",T("Advanced Export Options")]})}),null!==S&&S>0&&(0,t.jsxs)(c.Typography,{variant:"caption",color:"text.secondary",sx:{mt:2,display:"block",textAlign:"center"},children:[T("Time remaining"),": ",S," ",T("seconds")]})]}),(0,t.jsxs)(i.DialogActions,{sx:{px:3,pb:2},children:[(0,t.jsx)(n.Button,{onClick:()=>{$&&clearTimeout($),I()},color:"inherit",children:T("Cancel")}),(0,t.jsx)(n.Button,{onClick:()=>{window.open("/pricing/","_blank")},color:"primary",variant:"contained",size:"large",sx:{fontWeight:"bold",px:4},children:T("Upgrade Now")})]})]})]})},"useDialog",0,()=>{let e=(0,a.use)(m);if(!e)throw Error("useDialog must be used within a DialogProvider");return e}])},123411,328719,710404,e=>{"use strict";e.i(247167);var t=e.i(271645),a=e.i(519130),r=e.i(110669),o=e.i(552836),l=e.i(777539);let i=function(e={}){let{autoHideDuration:a=null,disableWindowBlurListener:i=!1,onClose:n,open:s,resumeHideDuration:d}=e,c=(0,o.default)();t.useEffect(()=>{if(s)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key||n?.(e,"escapeKeyDown")}},[s,n]);let u=(0,r.default)((e,t)=>{n?.(e,t)}),p=(0,r.default)(e=>{n&&null!=e&&c.start(e,()=>{u(null,"timeout")})});t.useEffect(()=>(s&&p(a),c.clear),[s,a,p,c]);let f=c.clear,m=t.useCallback(()=>{null!=a&&p(null!=d?d:.5*a)},[a,d,p]);return t.useEffect(()=>{if(!i&&s)return window.addEventListener("focus",m),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",f)}},[i,s,m,f]),{getRootProps:(t={})=>{let a={...(0,l.default)(e),...(0,l.default)(t)};return{role:"presentation",...t,...a,onBlur:e=>{let t=a.onBlur;t?.(e),m()},onFocus:e=>{let t=a.onFocus;t?.(e),f()},onMouseEnter:e=>{let t=a.onMouseEnter;t?.(e),f()},onMouseLeave:e=>{let t=a.onMouseLeave;t?.(e),m()}}},onClickAway:e=>{n?.(e,"clickaway")}}};var n=e.i(313714),s=e.i(581908),d=e.i(552174);function c(e){return e.substring(2).toLowerCase()}function u(e){let{children:a,disableReactTree:o=!1,mouseEvent:l="onClick",onClickAway:i,touchEvent:u="onTouchEnd"}=e,p=t.useRef(!1),f=t.useRef(null),m=t.useRef(!1),g=t.useRef(!1);t.useEffect(()=>(setTimeout(()=>{m.current=!0},0),()=>{m.current=!1}),[]);let h=(0,s.default)((0,d.default)(a),f),v=(0,r.default)(e=>{let t=g.current;g.current=!1;let a=(0,n.default)(f.current);if(!(!m.current||!f.current||"clientX"in e&&(a.documentElement.clientWidth<e.clientX||a.documentElement.clientHeight<e.clientY))){if
1(p.current){p.current=!1;return}(e.composedPath?e.composedPath().includes(f.current):!a.documentElement.contains(e.target)||f.current.contains(e.target))||!o&&t||i(e)}}),y=e=>t=>{g.current=!0;let r=a.props[e];r&&r(t)},b={ref:h};return!1!==u&&(b[u]=y(u)),t.useEffect(()=>{if(!1!==u){let e=c(u),t=(0,n.default)(f.current),a=()=>{p.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",a),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",a)}}},[v,u]),!1!==l&&(b[l]=y(l)),t.useEffect(()=>{if(!1!==l){let e=c(l),t=(0,n.default)(f.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}}},[v,l]),t.cloneElement(a,b)}var p=e.i(940799),f=e.i(210557),m=e.i(75149),g=e.i(594425),h=e.i(942196),v=e.i(55720),y=e.i(207670),b=e.i(667239),x=e.i(67719),S=e.i(540672),C=e.i(319727);function k(e){return(0,C.default)("MuiSnackbarContent",e)}(0,S.default)("MuiSnackbarContent",["root","message","action"]);var w=e.i(843476);let $=(0,p.styled)(x.default,{name:"MuiSnackbarContent",slot:"Root"})((0,m.default)(({theme:e})=>{let t="light"===e.palette.mode?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText((0,b.emphasize)(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:(0,b.emphasize)(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),D=(0,p.styled)("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),M=(0,p.styled)("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),j=t.forwardRef(function(e,t){let r=(0,g.useDefaultProps)({props:e,name:"MuiSnackbarContent"}),{action:o,className:l,message:i,role:n="alert",...s}=r,d=(e=>{let{classes:t}=e;return(0,a.default)({root:["root"],action:["action"],message:["message"]},k,t)})(r);return(0,w.jsxs)($,{role:n,elevation:6,className:(0,y.default)(d.root,l),ownerState:r,ref:t,...s,children:[(0,w.jsx)(D,{className:d.message,ownerState:r,children:i}),o?(0,w.jsx)(M,{className:d.action,ownerState:r,children:o}):null]})});function T(e){return(0,C.default)("MuiSnackbar",e)}e.s(["default",0,j],328719),(0,S.default)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);var I=e.i(348106);let R=(0,p.styled)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,t[`anchorOrigin${(0,h.default)(a.anchorOrigin.vertical)}${(0,h.default)(a.anchorOrigin.horizontal)}`]]}})((0,m.default)(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical,style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>"top"!==e.anchorOrigin.vertical,style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>"left"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>"right"===e.anchorOrigin.horizontal,style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>"center"===e.anchorOrigin.horizontal,style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),L=t.forwardRef(function(e,r){let o=(0,g.useDefaultProps)({props:e,name:"MuiSnackbar"}),l=(0,f.useTheme)(),n={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:d,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:m,className:y,ClickAwayListenerProps:b,ContentProps:x,disableWindowBlurListener:S=!1,message:C,onBlur:k,onClose:$,onFocus:D,onMouseEnter:M,onMouseLeave:L,open:P,resumeHideDuration:A,slots:z={},slotProps:E={},TransitionComponent:O,transitionDuration:B=n,TransitionProps:{onEnter:W,onExited:F,...N}={},...U}=o,V={...o,anchorOrigin:{vertical:d,horizontal:c},autoHideDuration:p,disableWindowBlurListener:S,TransitionComponent:O,transitionDuration:B},H=(e=>{let{classes:t,anchorOrigin:r}=e,o={root:["root",`anchorOrigin${(0,h.default)(r.vertical)}${(0,h.default)(r.horizontal)}`]};return(0,a.default)(o,T,t)})(V),{getRootProps:_,onClickAway:K}=i(V),[Y,X]=t.useState(!0),G={slots:{transition:O,...z},slotProps:{content:x,clickAwayListener:b,transition:N,...E}},[J,Z]=(0,I.default)("root",{ref:r,className:[H.root,y],elementType:R,getSlotProps:_,externalForwardedProps:{...G,...U},ownerState:V}),[q,{ownerState:Q,...ee}]=(0,I.default)("clickAwayListener",{elementType:u,externalForwardedProps:G,getSlotProps:e=>({onClickAway:(...t)=>{let a=t[0];e.onClickAway?.(...t),a?.defaultMuiPrevented||K(...t)}}),ownerState:V}),[et,ea]=(0,I.default)("content",{elementType:j,shouldForwardComponentProp:!0,externalForwardedProps:G,additionalProps:{message:C,action:s},ownerState:V}),[er,eo]=(0,I.default)("transition",{elementType:v.default,externalForwardedProps:G,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),((e,t)=>{X(!1),W&&W(e,t)})(...t)},onExited:(...t)=>{e.onExited?.(...t),(e=>{X(!0),F&&F(e)})(...t)}}),additionalProps:{appear:!0,in:P,timeout:B,direction:"top"===d?"down":"up"},ownerState:V});return!P&&Y?null:(0,w.jsx)(q,{...ee,...z.clickAwayListener&&{ownerState:Q},children:(0,w.jsx)(J,{...Z,children:(0,w.jsx)(er,{...eo,children:m||(0,w.jsx)(et,{...ea})})})})});e.s(["Snackbar",0,L],123411);
1let P=(0,e.i(755742).default)((0,w.jsx)("path",{d:"M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6"}),"WorkspacePremium");e.s(["default",0,P],710404)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.