PageSourceSearch

https://www.svgai.org/_next/static/chunks/1984.f7795e8a5003e63a.js

js svgai.org collected 2026-10-04 08:37:20 UTC 12,110 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1984],{21374:(t,e,n)=>{n.d(e,{N:()=>_});var r=n(12115),i=n(9557),a=n(40139),o=n.n(a),l=n(59882),c=n.n(l),s=n(60245),u=n.n(s),p=n(52596),h=n(70688),y=n(51172),f=n(2348),d=n(36079),m=n(94011),v=n(16377),b=n(70788),g=n(41643),A=n(12814),k=["type","layout","connectNulls","ref"],x=["key"];function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)n=a[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function S(){return(S=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(e){L(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function E(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return D(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,M(r.key),r)}}function N(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(N=function(){return!!t})()}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function I(t,e){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function L(t,e,n){return(e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=O(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==O(e)?e:e+""}var _=function(t){var e,n;function a(){var t,e,n;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=a,n=[].concat(i),e=T(e),L(t=function(t,e){if(e&&("object"===O(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var n=t;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,N()?Reflect.construct(e,n||[],T(this).constructor):e.apply(this,n)),"state",{isAnimationFinished:!0,totalLength:0}),L(t,"generateSimpleStrokeDasharray",function(t,e){return"".concat(e,"px ").concat(t-e,"px")}),L(t,"getStrokeDasharray",function(e,n,r){var i=r.reduce(function(t,e){return t+e});if(!i)return t.generateSimpleStrokeDasharray(n,e);for(var o=Math.floor(e/i),l=e%i,c=n-e,s=[],u=0,p=0;u<r.length;p+=r[u],++u)if(p+r[u]>l){s=[].concat(E(r.slice(0,u)),[l-p]);break}var h=s.length%2==0?[0,c]:[c];return[].concat(E(a.repeat(r,o)),E(s),h).map(function(t){return"".concat(t,"px")}).join(", ")}),L(t,"id",(0,v.NF)("recharts-line-")),L(t,"pathRef",function(e){t.mainCurve=e}),L(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),L(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return a.prototype=Object.create(t&&t.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),t&&I(a,t),e=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,i=n.points,a=n.xAxis,o=n.yAxis,l=n.layout,c=n.children,s=(0,b.aS)(c,m.u);if(!s)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:(0,A.kr)(t.payload,e)}};return r.createElement(f.W,{clipPath:t?"url(#clipPath-".concat(e,")"):null},s.map(function(t){return r.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:i,xAxis:a,yAxis:o,layout:l,dataPointFormatter:u})}))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,l=i.points,c=i.dataKey,s=(0,b.J9)(this.props,!1),u=(0,b.J9)(o,!0),p=l.map(function(t,e){var n=w(w(w({key:"dot-".concat(e),r:3},s),u),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return a.renderDotItem(o,n)}),h={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return r.createElement(f.W,S({className:"recharts-line-dots",key:"dots"},h),p)}},{key:"renderCurveStatically",value:function(t,e,n,i){var a=this.props,o=a.type,l=a.layout,c=a.connectNulls,s=(a.ref,P(a,k)),u=w(w(w({},(0,b.J9)(s,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},i),{},{type:o,layout:l,connectNulls:c});return r.createElement(h.I,S({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,a=this.props,o=a.points,l=a.strokeDasharray,c=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,p=a.animationEasing,h=a.animationId,y=a.animateNewValues,f=a.width,d=a.height,m=this.state,b=m.prevPoints,g=m.totalLength;return r.createElement(i.Ay,{begin:s,duration:u,isActive:c,easing:p,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var i,a=r.t;if(b){var c=b.length/o.length,s=o.map(function(t,e){var n=Math.floor(e*c);if(b[n]){var r=b[n],i=(0,v.Dj)(r.x,t.x),o=(0,v.Dj)(r.y,t.y);return w(w({},t),{},{x:i(a),y:o(a)})}if(y){var l=(0,v.Dj)(2*f,t.x),s=(0,v.Dj)(d/2,t.y);return w(w({},t),{}
1,{x:l(a),y:s(a)})}return w(w({},t),{},{x:t.x,y:t.y})});return n.renderCurveStatically(s,t,e)}var u=(0,v.Dj)(0,g)(a);if(l){var p="".concat(l).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});i=n.getStrokeDasharray(u,g,p)}else i=n.generateSimpleStrokeDasharray(g,u);return n.renderCurveStatically(o,t,e,{strokeDasharray:i})})}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,a=this.state,o=a.prevPoints,l=a.totalLength;return i&&r&&r.length&&(!o&&l>0||!u()(o,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,i=e.dot,a=e.points,o=e.className,l=e.xAxis,s=e.yAxis,u=e.top,h=e.left,y=e.width,m=e.height,v=e.isAnimationActive,g=e.id;if(n||!a||!a.length)return null;var A=this.state.isAnimationFinished,k=1===a.length,x=(0,p.A)("recharts-line",o),O=l&&l.allowDataOverflow,P=s&&s.allowDataOverflow,S=O||P,j=c()(g)?this.id:g,w=null!=(t=(0,b.J9)(i,!1))?t:{r:3,strokeWidth:2},E=w.r,D=w.strokeWidth,C=((0,b.sT)(i)?i:{}).clipDot,N=void 0===C||C,T=2*(void 0===E?3:E)+(void 0===D?2:D);return r.createElement(f.W,{className:x},O||P?r.createElement("defs",null,r.createElement("clipPath",{id:"clipPath-".concat(j)},r.createElement("rect",{x:O?h:h-y/2,y:P?u:u-m/2,width:O?y:2*y,height:P?m:2*m})),!N&&r.createElement("clipPath",{id:"clipPath-dots-".concat(j)},r.createElement("rect",{x:h-T/2,y:u-T/2,width:y+T,height:m+T}))):null,!k&&this.renderCurve(S,j),this.renderErrorBar(S,j),(k||i)&&this.renderDots(S,N,j),(!v||A)&&d.Z.renderCallByParent(this.props,a))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(E(t),[0]):t,r=[],i=0;i<e;++i)r=[].concat(E(r),E(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.key,a=P(e,x),l=(0,p.A)("recharts-line-dot","boolean"!=typeof t?t.className:"");n=r.createElement(y.c,S({key:i},a,{className:l}))}return n}}],e&&C(a.prototype,e),n&&C(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}(r.PureComponent);L(_,"displayName","Line"),L(_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!g.m.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),L(_,"getComposedData",function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,a=t.yAxisTicks,o=t.dataKey,l=t.bandSize,s=t.displayedData,u=t.offset,p=e.layout;return w({points:s.map(function(t,e){var s=(0,A.kr)(t,o);return"horizontal"===p?{x:(0,A.nb)({axis:n,ticks:i,bandSize:l,entry:t,index:e}),y:c()(s)?null:r.scale(s),value:s,payload:t}:{x:c()(s)?null:n.scale(s),y:(0,A.nb)({axis:r,ticks:a,bandSize:l,entry:t,index:e}),value:s,payload:t}}),layout:p},u)})},41746:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(19946).A)("Factory",[["path",{d:"M2 20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8l-7 5V8l-7 5V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"159hny"}],["path",{d:"M17 18h1",key:"uldtlt"}],["path",{d:"M12 18h1",key:"s9uhes"}],["path",{d:"M7 18h1",key:"1neino"}]])},54653:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(19946).A)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},66140:(t,e,n)=>{n.d(e,{A:()=>r});let r=(0,n(19946).A)("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]])},93504:(t,e,n)=>{n.d(e,{b:()=>c});var r=n(92418),i=n(21374),a=n(96025),o=n(16238),l=n(83455),c=(0,r.gu)({chartName:"LineChart",GraphicalChild:i.N,axisComponents:[{axisType:"xAxis",AxisComp:a.W},{axisType:"yAxis",AxisComp:o.h}],formatAxisMap:l.pr})}}]);

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.