PageSourceSearch

https://proxyscrape.com/new-assets/_next/static/chunks/1010.7dd02c5954de8d03.js

js proxyscrape.com collected 2026-10-02 04:29:51 UTC 13,292 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1010],{62177:function(e,t,r){var n=r(94630),a=r(57437);t.Z=(0,n.Z)((0,a.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},87489:function(e,t,r){var n=r(94630),a=r(57437);t.Z=(0,n.Z)((0,a.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy")},30662:function(e,t,r){var n=r(94630),a=r(57437);t.Z=(0,n.Z)((0,a.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download")},42596:function(e,t,r){r.d(t,{V:function(){return i}});var n=r(94143),a=r(50738);function i(e){return(0,a.ZP)("MuiDivider",e)}let l=(0,n.Z)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.Z=l},3127:function(e,t,r){r.d(t,{L:function(){return i}});var n=r(94143),a=r(50738);function i(e){return(0,a.ZP)("MuiListItemText",e)}let l=(0,n.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.Z=l},21177:function(e,t,r){r.d(t,{Z:function(){return S}});var n=r(2265),a=r(61994),i=r(20801),l=r(18417),o=r(34765),s=r(16210),c=r(21086),d=r(37053),u=r(15566),p=r(52559),h=r(84217),f=r(60118),m=r(42596),x=r(94143);let g=(0,x.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);var v=r(3127),j=r(50738);function b(e){return(0,j.ZP)("MuiMenuItem",e)}let y=(0,x.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var Z=r(57437);let w=e=>{let{disabled:t,dense:r,divider:n,disableGutters:a,selected:l,classes:o}=e,s=(0,i.Z)({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",l&&"selected"]},b,o);return{...o,...s}},C=(0,s.default)(p.Z,{shouldForwardProp:e=>(0,o.Z)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((0,c.Z)(e=>{let{theme:t}=e;return{...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(y.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(y.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(y.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,l.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(y.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(y.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(m.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(m.Z.inset)]:{marginLeft:52},["& .".concat(v.Z.root)]:{marginTop:0,marginBottom:0},["& .".concat(v.Z.inset)]:{paddingLeft:36},["& .".concat(g.root)]:{minWidth:36},variants:[{props:e=>{let{ownerState:t}=e;return!t.disableGutters},style:{paddingLeft:16,paddingRight:16}},{props:e=>{let{ownerState:t}=e;return t.divider},style:{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"}},{props:e=>{let{ownerState:t}=e;return!t.dense},style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:e=>{let{ownerState:t}=e;return t.dense},style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,["& .".concat(g.root," svg")]:{fontSize:"1.25rem"}}}]}}));var S=n.forwardRef(function(e,t){let r;let i=(0,d.i)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:o="li",dense:s=!1,divider:c=!1,disableGutters:p=!1,focusVisibleClassName:m,role:x="menuitem",tabIndex:g,className:v,...j}=i,b=n.useContext(u.Z),y=n.useMemo(()=>({dense:s||b.dense||!1,disableGutters:p}),[b.dense,s,p]),S=n.useRef(null);(0,h.Z)(()=>{l&&S.current&&S.current.focus()},[l]);let M={...i,dense:y.dense,divider:c,disableGutters:p},k=w(i),O=(0,f.Z)(S,t);return i.disabled||(r=void 0!==g?g:-1),(0,Z.jsx)(u.Z.Provider,{value:y,children:(0,Z.jsx)(C,{ref:O,role:x,tabIndex:r,component:o,focusVisibleClassName:(0,a.Z)(k.focusVisible,m),className:(0,a.Z)(k.root,v),...j,ownerState:M,classes:k})})})},341:function(e,t,r){r.d(t,{S:function(){return l}});var n=r(57437),a=r(67208),i=r(87269);function l(e){let{children:t,sx:r}=e,{panelSx:l,formControlsSx:o}=(0,i.R)();return(0,n.jsx)(a.Z,{elevation:0,sx:[l,o,{p:3,width:"100%",boxSizing:"border-box"},r],children:t})}},70272:function(e,t,r){r.d(t,{k:function(){return i}});var n=r(57437),a=r(95656);function i(e){let{left:t,right:r,splitAt:i="md",spacing:l=3}=e;return(0,n.jsxs)(a.default,{sx:{display:"grid",gridTemplateColumns:"lg"===i?{xs:"1fr",lg:"1fr 1fr"}:{xs:"1fr",md:"1fr 1fr"},gap:l,alignItems:"start",width:"100%"},children:[(0,n.jsx)(a.default,{sx:{minWidth:0,width:"100%"},children:t}),(0,n.jsx)(a.default,{sx:{minWidth:0,width:"100%"},children:r})]})}},42941:function(e,t,r){r.d(t,{q:function(){return p}});var n=r(57437),a=r(2265),i=r(89051),l=r(59832),o=r(31691),s=r(18417),c=r(87489),d=r(62177),u=r(71483);function p(e){let{text:t}=e,r=(0,o.default)(),[p,h]=(0,a.useState)(!1),f=async()=>{await navigator.clipboard.writeText(t),h(!0),window.setTimeout(()=>h(!1),2e3)};return(0,n.jsx)(i.Z,{title:p?"Copied!":"Copy to clipboard",children:(0,n.jsx)(l.Z,{size:"small",onClick:f,"aria-label":"Copy to clipboard",sx:{flexShrink:0,color:p?r.palette.success.main:(0,s.Fq)(r.palette.common.white,.75),"&:hover":{color:r.palette.common.white,backgroundColor:(0,s.Fq)(u.m3[500],.12)}},children:p?(0,n.jsx)(d.Z,{fontSize:"small"}):(0,n.jsx)(c.Z,{fontSize:"small"})})})}},35822:function(e,t,r){r.d(t,{o:function(){return l}});var n=r(57437),a=r(94013),i=r(30662);
1function l(e){let{content:t,filename:r,label:l="Download"}=e;return(0,n.jsx)(a.Z,{variant:"outlined",size:"small",startIcon:(0,n.jsx)(i.Z,{}),onClick:()=>{let e=t.startsWith("data:"),n=e?t:URL.createObjectURL(new Blob([t],{type:"text/plain"})),a=document.createElement("a");a.href=n,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),e||URL.revokeObjectURL(n)},children:l})}},46159:function(e,t,r){r.d(t,{A:function(){return n.S}});var n=r(341)},82861:function(e,t,r){r.d(t,{j:function(){return n.k}});var n=r(70272)},73126:function(e,t,r){r.d(t,{M:function(){return i}});var n=r(57437),a=r(21843);function i(e){let{children:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.ToolDetailHero,{}),t]})}},91010:function(e,t,r){r.r(t),r.d(t,{DataMergerTool:function(){return S}});var n=r(57437),a=r(2265),i=r(95656),l=r(46387),o=r(41530),s=r(97404),c=r(41327),d=r(10020),u=r(33833),p=r(21177),h=r(94013),f=r(15735),m=r(89414),x=r(42941),g=r(35822),v=r(73126),j=r(46159),b=r(14347),y=r(82861),Z=r(32897),w=r(63846);function C(e){let{label:t,value:r}=e,{panelSx:a,subheadingSx:o,headingSx:s}=(0,w.f)();return(0,n.jsxs)(i.default,{sx:{...a,p:2},children:[(0,n.jsx)(l.default,{variant:"body2",sx:o,children:t}),(0,n.jsx)(l.default,{variant:"h5",sx:{...s,mt:.5},children:r})]})}function S(){let{headingSx:e,formControlsSx:t,monoInputSx:r,faint:S,proseListSx:M}=(0,w.f)(),[k,O]=(0,a.useState)(""),[I,R]=(0,a.useState)(""),[L,z]=(0,a.useState)(""),[A,F]=(0,a.useState)("inner"),[N,H]=(0,a.useState)(""),[T,D]=(0,a.useState)(null),[V,E]=(0,a.useState)(""),J=(0,a.useCallback)(()=>{try{if(!k.trim()||!I.trim()){E("Please provide both datasets"),H(""),D(null);return}if(!L.trim()){E("Please specify a merge key"),H(""),D(null);return}let e=JSON.parse(k),t=JSON.parse(I);if(!Array.isArray(e)||!Array.isArray(t)){E("Both inputs must be JSON arrays"),H(""),D(null);return}let r=new Map(t.map(e=>[e[L],e])),n=[],a=0,i=0,l=0;e.forEach(e=>{let t=r.get(e[L]);t?(n.push({...e,...t}),l++,r.delete(e[L])):("left"===A||"full"===A)&&(n.push(e),a++)}),("right"===A||"full"===A)&&r.forEach(e=>{n.push(e),i++});let o={mergedData:n,stats:{totalRecords:n.length,matchedRecords:l,unmatchedLeft:a,unmatchedRight:i}};H((0,Z.KD)(o.mergedData)),D(o.stats),E("")}catch(e){E(e instanceof Error?e.message:"Failed to merge datasets"),H(""),D(null)}},[k,L,I,A]),W=(0,a.useMemo)(()=>(0,n.jsxs)(o.default,{spacing:2,children:[(0,n.jsx)(l.default,{variant:"h6",sx:e,children:"Merge strategies"}),(0,n.jsxs)(i.default,{component:"ul",sx:M,children:[(0,n.jsx)("li",{children:"Inner join: only matching records from both datasets"}),(0,n.jsx)("li",{children:"Left outer join: all left records, matching right where possible"}),(0,n.jsx)("li",{children:"Right outer join: all right records, matching left where possible"}),(0,n.jsx)("li",{children:"Full outer join: all records from both datasets"})]})]}),[e,M]);return(0,n.jsx)(v.M,{children:(0,n.jsx)(b.p,{compactTop:!0,children:(0,n.jsxs)(o.default,{spacing:3,children:[(0,n.jsx)(y.j,{left:(0,n.jsxs)(j.A,{children:[(0,n.jsx)(l.default,{variant:"h6",sx:{...e,mb:2,fontSize:"1.125rem"},children:"Left dataset (JSON array)"}),(0,n.jsx)(s.Z,{multiline:!0,minRows:10,fullWidth:!0,value:k,onChange:e=>O(e.target.value),placeholder:"Enter first JSON array...",sx:r})]}),right:(0,n.jsxs)(j.A,{children:[(0,n.jsx)(l.default,{variant:"h6",sx:{...e,mb:2,fontSize:"1.125rem"},children:"Right dataset (JSON array)"}),(0,n.jsx)(s.Z,{multiline:!0,minRows:10,fullWidth:!0,value:I,onChange:e=>R(e.target.value),placeholder:"Enter second JSON array...",sx:r})]})}),(0,n.jsx)(j.A,{children:(0,n.jsxs)(o.default,{direction:{xs:"column",md:"row"},spacing:2,alignItems:{md:"flex-end"},sx:t,children:[(0,n.jsx)(s.Z,{size:"small",label:"Merge key",value:L,onChange:e=>z(e.target.value),placeholder:"Field name to merge on",fullWidth:!0}),(0,n.jsxs)(c.Z,{size:"small",sx:{minWidth:180},children:[(0,n.jsx)(d.Z,{children:"Merge strategy"}),(0,n.jsxs)(u.Z,{label:"Merge strategy",value:A,onChange:e=>F(e.target.value),children:[(0,n.jsx)(p.Z,{value:"inner",children:"Inner join"}),(0,n.jsx)(p.Z,{value:"left",children:"Left outer join"}),(0,n.jsx)(p.Z,{value:"right",children:"Right outer join"}),(0,n.jsx)(p.Z,{value:"full",children:"Full outer join"})]})]}),(0,n.jsx)(h.Z,{variant:"contained",onClick:J,disabled:!k||!I||!L,children:"Merge datasets"})]})}),V?(0,n.jsx)(f.Z,{severity:"error",variant:"outlined",children:V}):null,T?(0,n.jsxs)(m.default,{container:!0,spacing:2,children:[(0,n.jsx)(m.default,{item:!0,xs:6,md:3,children:(0,n.jsx)(C,{label:"Total records",value:T.totalRecords})}),(0,n.jsx)(m.default,{item:!0,xs:6,md:3,children:(0,n.jsx)(C,{label:"Matched",value:T.matchedRecords})}),(0,n.jsx)(m.default,{item:!0,xs:6,md:3,children:(0,n.jsx)(C,{label:"Unmatched left",value:T.unmatchedLeft})}),(0,n.jsx)(m.default,{item:!0,xs:6,md:3,children:(0,n.jsx)(C,{label:"Unmatched right",value:T.unmatchedRight})})]}):null,(0,n.jsxs)(j.A,{children:[(0,n.jsxs)(o.default,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:2,sx:{mb:2},children:[(0,n.jsx)(l.default,{variant:"h6",sx:{...e,fontSize:"1.125rem"},children:"Merged result"}),N?(0,n.jsxs)(o.default,{direction:"row",gap:1,children:[(0,n.jsx)(x.q,{text:N}),(0,n.jsx)(g.o,{content:N,filename:"merged-data.json"})]}):null]}),(0,n.jsx)(i.default,{component:"pre",sx:{m:0,minHeight:200,maxHeight:500,overflow:"auto",p:2,borderRadius:"8px",fontFamily:"ui-monospace, monospace",fontSize:"0.875rem",color:"common.white",backgroundColor:"rgba(0,0,0,0.25)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:N||(0,n.jsx)(l.default,{component:"span",sx:{color:S},children:"Merged output will appear here..."})})]}),(0,n.jsx)(j.A,{children:W})]})})})}},32897:function(e,t,r){function n(e){let t=e.trim();if(!t)throw Error("Please provide input data");let r=JSON.parse(t);if(Array.isArray(r))return r;if(r&&"object"==typeof r)return[r];throw Error("Input must be a JSON array or object")}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return JSON.stringify(e,null,t)}function i(e){try{let t=n(e);if(0===t.length)return[];let r=t[0];if(!r||"object"!=typeof r||Array.isArray(r))return[];return Object.entries(r).filter(e=>{let[,t]=e;return"number"==typeof t}).map(e=>{let[t]=e;return t})}catch(e){return[]}}function l(e){return/^-?\d+$/.test(e)?parseInt(e,10):/^-?\d*\.\d+$/.test(e)?parseFloat(e):"true"===e.toLowerCase()||"false"!==e.toLowerCase()&&("null"===e.toLowerCase()?null:e)}r.d(t,{KD:function(){return a},ZZ:function(){return l},tH:function(){return n},xq:function(){return i}})}}]);

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.