PageSourceSearch

https://solidityscan.com/assets/vendor-typeanimation-zi-lJMLJ.js

js solidityscan.com collected 2026-10-03 21:23:28 UTC 7,975 bytes, 11 lines download raw bytes

1import{a as m,W as L}from"./vendor-react-CCzXVbVA.js";function F(n,r,u,t){return new(u||(u=Promise))((function(e,o){function a(f){try{s(t.next(f))}catch(i){o(i)}}function c(f){try{s(t.throw(f))}catch(i){o(i)}}function s(f){var i;f.done?e(f.value):(i=f.value,i instanceof u?i:new u((function(p){p(i)}))).then(a,c)}s((t=t.apply(n,[])).next())}))}function _(n,r){var u,t,e,o,a={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(s){return function(f){return(function(i){if(u)throw new TypeError("Generator is already executing.");for(;a;)try{if(u=1,t&&(e=2&i[0]?t.return:i[0]?t.throw||((e=t.return)&&e.call(t),0):t.next)&&!(e=e.call(t,i[1])).done)return e;switch(t=0,e&&(i=[2&i[0],e.value]),i[0]){case 0:case 1:e=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,t=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(e=a.trys,!((e=e.length>0&&e[e.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!e||i[1]>e[0]&&i[1]<e[3])){a.label=i[1];break}if(i[0]===6&&a.label<e[1]){a.label=e[1],e=i;break}if(e&&a.label<e[2]){a.label=e[2],a.ops.push(i);break}e[2]&&a.ops.pop(),a.trys.pop();continue}i=r.call(n,a)}catch(p){i=[6,p],t=0}finally{u=e=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}})([s,f])}}}function B(n){var r=typeof Symbol=="function"&&Symbol.iterator,u=r&&n[r],t=0;if(u)return u.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(n,r){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var t,e,o=u.call(n),a=[];try{for(;(r===void 0||r-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(c){e={error:c}}finally{try{t&&!t.done&&(u=o.return)&&u.call(o)}finally{if(e)throw e.error}}return a}function A(n,r,u){if(arguments.length===2)for(var t,e=0,o=r.length;e<o;e++)!t&&e in r||(t||(t=Array.prototype.slice.call(r,0,e)),t[e]=r[e]);return n.concat(t||Array.prototype.slice.call(r))}function z(n,r,u,t){for(var e=[],o=4;o<arguments.length;o++)e[o-4]=arguments[o];return F(this,void 0,void 0,(function(){var a,c,s,f,i,p;return _(this,(function(d){switch(d.label){case 0:d.trys.push([0,12,13,14]),a=B(e),c=a.next(),d.label=1;case 1:if(c.done)return[3,11];switch(s=c.value,typeof s){case"string":return[3,2];case"number":return[3,4];case"function":return[3,6]}return[3,8];case 2:return[4,K(n,s,r,u,t)];case 3:return d.sent(),[3,10];case 4:return[4,H(s)];case 5:return d.sent(),[3,10];case 6:return[4,s.apply(void 0,A([n,r,u,t],w(e),!1))];case 7:return d.sent(),[3,10];case 8:return[4,s];case 9:d.sent(),d.label=10;case 10:return c=a.next(),[3,1];case 11:return[3,14];case 12:return f=d.sent(),i={error:f},[3,14];case 13:try{c&&!c.done&&(p=a.return)&&p.call(a)}finally{if(i)throw i.error}return[7];case 14:return[2]}}
1))}))}function K(n,r,u,t,e){return F(this,void 0,void 0,(function(){var o;return _(this,(function(a){switch(a.label){case 0:return o=(function(c,s){var f=w(s).slice(0);return A(A([],w(c),!1),[NaN],!1).findIndex((function(i,p){return f[p]!==i}))})(n.textContent,r),[4,U(n,A(A([],w(X(n.textContent,o)),!1),w(V(r,o)),!1),u,t,e)];case 1:return a.sent(),[2]}}))}))}function H(n){return F(this,void 0,void 0,(function(){return _(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(u){return setTimeout(u,n)}))];case 1:return r.sent(),[2]}}))}))}function U(n,r,u,t,e){return F(this,void 0,void 0,(function(){var o,a,c,s,f,i,p,d,P,j,I,G,D;return _(this,(function(v){switch(v.label){case 0:if(o=r,e){for(a=0,c=1;c<r.length;c++)if(s=w([r[c-1],r[c]],2),f=s[0],(i=s[1]).length>f.length||i===""){a=c;break}o=r.slice(a,r.length)}v.label=1;case 1:v.trys.push([1,6,7,8]),p=B((function(W){var k,S,g,C,O,R,M;return _(this,(function(x){switch(x.label){case 0:k=function(q){return _(this,(function(T){switch(T.label){case 0:return[4,{op:function(N){return requestAnimationFrame((function(){return N.textContent=q}))},opCode:function(N){return q===""||N.textContent.length>q.length?"DELETE":"WRITING"}}];case 1:return T.sent(),[2]}}))},x.label=1;case 1:x.trys.push([1,6,7,8]),S=B(W),g=S.next(),x.label=2;case 2:return g.done?[3,5]:(C=g.value,[5,k(C)]);case 3:x.sent(),x.label=4;case 4:return g=S.next(),[3,2];case 5:return[3,8];case 6:return O=x.sent(),R={error:O},[3,8];case 7:try{g&&!g.done&&(M=S.return)&&M.call(S)}finally{if(R)throw R.error}return[7];case 8:return[2]}}
1))})(o)),d=p.next(),v.label=2;case 2:return d.done?[3,5]:(P=d.value,j=P.opCode(n)==="WRITING"?u+u*(Math.random()-.5):t+t*(Math.random()-.5),P.op(n),[4,H(j)]);case 3:v.sent(),v.label=4;case 4:return d=p.next(),[3,2];case 5:return[3,8];case 6:return I=v.sent(),G={error:I},[3,8];case 7:try{d&&!d.done&&(D=p.return)&&D.call(p)}finally{if(G)throw G.error}return[7];case 8:return[2]}}))}))}function V(n,r,u){var t=w(n).slice(0);return r===void 0&&(r=0),u===void 0&&(u=t.length),_(this,(function(e){switch(e.label){case 0:return r<u?[4,t.slice(0,++r).join("")]:[3,2];case 1:return e.sent(),[3,0];case 2:return[2]}}))}function X(n,r,u){var t=w(n).slice(0);return r===void 0&&(r=0),u===void 0&&(u=t.length),_(this,(function(e){switch(e.label){case 0:return u>r?[4,t.slice(0,--u).join("")]:[3,2];case 1:return e.sent(),[3,0];case 2:return[2]}}))}var Y="index-module_type__E-SaG";(function(n,r){r===void 0&&(r={});var u=r.insertAt;if(typeof document<"u"){var t=document.head||document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",u==="top"&&t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e),e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}})(`.index-module_type__E-SaG::after {
2  content: '|';
3  animation: index-module_cursor__PQg0P 1.1s infinite step-start;
4}
5
6@keyframes index-module_cursor__PQg0P {
7  50% {
8    opacity: 0;
9  }
10}
11`);var $=m.memo(m.forwardRef((function(n,r){var u=n.sequence,t=n.repeat,e=n.className,o=n.speed,a=o===void 0?40:o,c=n.deletionSpeed,s=n.omitDeletionAnimation,f=s!==void 0&&s,i=n.preRenderFirstString,p=i!==void 0&&i,d=n.wrapper,P=d===void 0?"span":d,j=n.cursor,I=j===void 0||j,G=n.style,D=(function(l,h){var b={};for(var y in l)Object.prototype.hasOwnProperty.call(l,y)&&h.indexOf(y)<0&&(b[y]=l[y]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function"){var E=0;for(y=Object.getOwnPropertySymbols(l);E<y.length;E++)h.indexOf(y[E])<0&&Object.prototype.propertyIsEnumerable.call(l,y[E])&&(b[y[E]]=l[y[E]])}return b})(n,["sequence","repeat","className","speed","deletionSpeed","omitDeletionAnimation","preRenderFirstString","wrapper","cursor","style"]),v=D["aria-label"],W=D["aria-hidden"];c||(c=a);var k=new Array(2).fill(40);[a,c].forEach((function(l,h){switch(typeof l){case"number":k[h]=Math.abs(l-100);break;case"object":var b=l,y=b.type,E=b.value;if(typeof E!="number")break;y==="keyStrokeDelayInMs"&&(k[h]=E)}}));var S,g,C,O,R,M,x=k[0],q=k[1],T=(function(l,h){h===void 0&&(h=null);var b=m.useRef(h);return m.useEffect((function(){l&&(typeof l=="function"?l(b.current):l.current=b.current)}),[l]),b})(r),N=Y;S=e?"".concat(I?N+" ":"").concat(e):I?N:"",g=m.useRef((function(){var l,h=u;return t===1/0?l=z:typeof t=="number"&&(h=Array(1+t).fill(u).flat()),z.apply(void 0,A(A([T.current,x,q,f],w(h),!1),[l],!1)),function(){T.current}})),C=m.useRef(),O=m.useRef(!1),R=m.useRef(!1),M=w(m.useState(0),2)[1],O.current&&(R.current=!0),m.useEffect((function(){return O.current||(C.current=g.current(),O.current=!0),M((function(l){return l+1})),function(){R.current&&C.current&&C.current()}}),[]);var J=P,Q=p?u.find((function(l){return typeof l=="string"}))||"":null;return L.createElement(J,{"aria-hidden":W,"aria-label":v,style:G,className:S,children:v?L.createElement("span",{"aria-hidden":"true",ref:T,children:Q}):Q,ref:v?void 0:T})})),(function(n,r){return!0}));export{$ as TypeAnimation};

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.