PageSourceSearch

https://www.educative.io/static/_next/static/chunks/142783-5516496978f08a0a.js

js educative.io collected 2026-09-24 08:40:32 UTC 34,456 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[142783],{362050:function(t){function e(t,e,n){function r(){var l=Date.now()-a;l<e&&l>=0?i=setTimeout(r,e-l):(i=null,n||(c=t.apply(o,s),o=s=null))}null==e&&(e=100);var i,s,o,a,c,l=function(){o=this,s=arguments,a=Date.now();var l=n&&!i;return i||(i=setTimeout(r,e)),l&&(c=t.apply(o,s),o=s=null),c};return l.clear=function(){i&&(clearTimeout(i),i=null)},l.flush=function(){i&&(c=t.apply(o,s),o=s=null,clearTimeout(i),i=null)},l}e.debounce=e,t.exports=e},946149:function(t,e,n){"use strict";function r(t){return Array.isArray?Array.isArray(t):"[object Array]"===u(t)}n.d(e,{Z:function(){return B}});let i=1/0;function s(t){return"string"==typeof t}function o(t){return"number"==typeof t}function a(t){return"object"==typeof t}function c(t){return null!=t}function l(t){return!t.trim().length}function u(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}let h=t=>`Invalid value for key ${t}`,p=t=>`Pattern length exceeds max of ${t}.`,f=t=>`Missing ${t} property in key`,d=t=>`Property 'weight' in key '${t}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class g{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=v(t);e+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function v(t){let e=null,n=null,i=null,o=1;if(s(t)||r(t))i=t,e=y(t),n=E(t);else{if(!m.call(t,"name"))throw Error(f("name"));let r=t.name;if(i=r,m.call(t,"weight")&&(o=t.weight)<=0)throw Error(d(r));e=y(r),n=E(r)}return{path:e,id:n,weight:o,src:i}}function y(t){return r(t)?t:t.split(".")}function E(t){return r(t)?t.join("."):t}var x={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let n=[],l=!1,h=(t,e,p)=>
1{if(c(t)){if(e[p]){var f,d;let m=t[e[p]];if(c(m)){if(p===e.length-1&&(s(m)||o(m)||!0===(f=m)||!1===f||a(d=f)&&null!==d&&"[object Boolean]"==u(f)))n.push(null==m?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-i?"-0":e}(m));else if(r(m)){l=!0;for(let t=0,n=m.length;t<n;t+=1)h(m[t],e,p+1)}else e.length&&h(m,e,p+1)}}else n.push(t)}};return h(t,s(e)?e.split("."):e,0),l?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let b=/[^ ]+/g;class S{constructor({getFn:t=x.getFn,fieldNormWeight:e=x.fieldNormWeight}={}){this.norm=function(t=1,e=3){let n=new Map,r=Math.pow(10,e);return{get(e){let i=e.match(b).length;if(n.has(i))return n.get(i);let s=parseFloat(Math.round(1/Math.pow(i,.5*t)*r)/r);return n.set(i,s),s},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,s(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){let e=this.size();s(t)?this._addString(t,e):this._addObject(t,e)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!c(t)||l(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(t,e){let n={i:e,$:{}};this.keys.forEach((e,i)=>{let o=this.getFn(t,e.path);if(c(o)){if(r(o)){let t=[],e=[{nestedArrIndex:-1,value:o}];for(;e.length;){let{nestedArrIndex:n,value:i}=e.pop();if(c(i)){if(s(i)&&!l(i)){let e={v:i,i:n,n:this.norm.get(i)};t.push(e)}else r(i)&&i.forEach((t,n)=>{e.push({nestedArrIndex:n,value:t})})}}n.$[i]=t}else if(!l(o)){let t={v:o,n:this.norm.get(o)};n.$[i]=t}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function T(t,e,{getFn:n=x.getFn,fieldNormWeight:r=x.fieldNormWeight}={}){let i=new S({getFn:n,fieldNormWeight:r});return i.setKeys(t.map(v)),i.setSources(e),i.create(),i}function C(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:i=x.distance,ignoreLocation:s=x.ignoreLocation}={}){let o=e/t.length;if(s)return o;let a=Math.abs(r-n);return i?o+a/i:a?1:o}class M{constructor(t,{location:e=x.location,threshold:n=x.threshold,distance:r=x.distance,includeMatches:i=x.includeMatches,findAllMatches:s=x.findAllMatches,minMatchCharLength:o=x.minMatchCharLength,isCaseSensitive:a=x.isCaseSensitive,ignoreLocation:c=x.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:r,includeMatches:i,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;let l=(t,e)=>{this.chunks.push({pattern:t,alphabet:function(t){let e={};for(let n=0,r=t.length;n<r;n+=1){let i=t.charAt(n);e[i]=(e[i]||0)|1<<r-n-1}return e}(t),startIndex:e})},u=this.pattern.length;if(u>32){let t=0,e=u%32,n=u-e;for(;t<n;)l(this.pattern.substr(t,32),t),t+=32;if(e){let t=u-32;l(this.pattern.substr(t),t)}}else l(this.pattern,0)}searchIn(t){let{isCaseSensitive:e,includeMatches:n}=this.options;if(e||(t=t.toLowerCase()),this.pattern===t){let e={isMatch:!0,score:0};return n&&(e.indices=[[0,t.length-1]]),e}let{location:r,distance:i,threshold:s,findAllMatches:o,minMatchCharLength:a,ignoreLocation:c}=this.options,l=[],u=0,h=!1;this.chunks.forEach(({pattern:e,alphabet:f,startIndex:d})=>{let{isMatch:m,score:g,indices:v}=function(t,e,n,{location:r=x.location,distance:i=x.distance,threshold:s=x.threshold,findAllMatches:o=x.findAllMatches,minMatchCharLength:a=x.minMatchCharLength,includeMatches:c=x.includeMatches,ignoreLocation:l=x.ignoreLocation}={}){let u;if(e.length>32)throw Error(p(32));let h=e.length,f=t.length,d=Math.max(0,Math.min(r,f)),m=s,g=d,v=a>1||c,y=v?Array(f):[];for(;(u=t.indexOf(e,g))>-1;)if(m=Math.min(C(e,{currentLocation:u,expectedLocation:d,distance:i,ignoreLocation:l}),m),g=u+h,v){let t=0;for(;t<h;)y[u+t]=1,t+=1}g=-1;let E=[],b=1,S=h+f,T=1<<h-1;for(let r=0;r<h;r+=1){let s=0,a=S;for(;s<a;)C(e,{errors:r,currentLocation:d+a,expectedLocation:d,distance:i,ignoreLocation:l})<=m?s=a:S=a,a=Math.floor((S-s)/2+s);S=a;let c=Math.max(1,d-a+1),u=o?f:Math.min(d+a,f)+h,p=Array(u+2);p[u+1]=(1<<r)-1;for(let s=u;s>=c;s-=1){let o=s-1,a=n[t.charAt(o)];if(v&&(y[o]=+!!a),p[s]=(p[s+1]<<1|1)&a,r&&(p[s]|=(E[s+1]|E[s])<<1|1|E[s+1]),p[s]&T&&(b=C(e,{errors:r,currentLocation:o,expectedLocation:d,distance:i,ignoreLocation:l}))<=m){if(m=b,(g=o)<=d)break;c=Math.max(1,2*d-g)}}if(C(e,{errors:r+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:l})>m)break;E=p}let M={isMatch:g>=0,score:Math.max(.001,b)};if(v){let t=function(t=[],e=x.minMatchCharLength){let n=[],r=-1,i=-1,s=0;for(let o=t.length;s<o;s+=1){let o=t[s];o&&-1===r?r=s:o||-1===r||((i=s-1)-r+1>=e&&n.push([r,i]),r=-1)}return t[s-1]&&s-r>=e&&n.push([r,s-1]),n}(y,a);t.length?c&&(M.indices=t):M.isMatch=!1}return M}(t,e,f,{location:r+d,distance:i,threshold:s,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:c});m&&(h=!0),u+=g,m&&v&&(l=[...l,...v])});let f={isMatch:h,score:h?u/this.chunks.length:1};return h&&n&&(f.indices=l),f}}class k{constructor(t){this.pattern=t}static isMultiMatch(t){return O(t,this.multiRegex)}static isSingleMatch(t){return O(t,this.singleRegex)}search(){}}function O(t,e){let n=t.match(e);
1return n?n[1]:null}class D extends k{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){let e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class N extends k{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){let e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class w extends k{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){let e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}class _ extends k{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){let e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class P extends k{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){let e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class R extends k{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){let e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}class A extends k{constructor(t,{location:e=x.location,threshold:n=x.threshold,distance:r=x.distance,includeMatches:i=x.includeMatches,findAllMatches:s=x.findAllMatches,minMatchCharLength:o=x.minMatchCharLength,isCaseSensitive:a=x.isCaseSensitive,ignoreLocation:c=x.ignoreLocation}={}){super(t),this._bitapSearch=new M(t,{location:e,threshold:n,distance:r,includeMatches:i,findAllMatches:s,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class I extends k{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0,r=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,r.push([e,n-1]);let s=!!r.length;return{isMatch:s,score:s?0:1,indices:r}}}let j=[D,I,w,_,R,P,N,A],L=j.length,$=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,F=new Set([A.type,I.type]);class Z{constructor(t,{isCaseSensitive:e=x.isCaseSensitive,includeMatches:n=x.includeMatches,minMatchCharLength:r=x.minMatchCharLength,ignoreLocation:i=x.ignoreLocation,findAllMatches:s=x.findAllMatches,location:o=x.location,threshold:a=x.threshold,distance:c=x.distance}={}){this.query=null,this.options={isCaseSensitive:e,includeMatches:n,minMatchCharLength:r,findAllMatches:s,ignoreLocation:i,location:o,threshold:a,distance:c},this.pattern=e?t:t.toLowerCase(),this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split($).filter(t=>t&&!!t.trim()),r=[];for(let t=0,i=n.length;t<i;t+=1){let i=n[t],s=!1,o=-1;for(;!s&&++o<L;){let t=j[o],n=t.isMultiMatch(i);n&&(r.push(new t(n,e)),s=!0)}if(!s)for(o=-1;++o<L;){let t=j[o],n=t.isSingleMatch(i);if(n){r.push(new t(n,e));break}}}return r})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){let e=this.query;if(!e)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,s=[],o=0;for(let r=0,a=e.length;r<a;r+=1){let a=e[r];s.length=0,i=0;for(let e=0,r=a.length;e<r;e+=1){let r=a[e],{isMatch:c,indices:l,score:u}=r.search(t);if(c){if(i+=1,o+=u,n){let t=r.constructor.type;F.has(t)?s=[...s,...l]:s.push(l)}}else{o=0,i=0,s.length=0;break}}if(i){let t={isMatch:!0,score:o/i};return n&&(t.indices=s),t}}return{isMatch:!1,score:1}}}let z=[];function W(t,e){for(let n=0,r=z.length;n<r;n+=1){let r=z[n];if(r.condition(t,e))return new r(t,e)}return new M(t,e)}let U={AND:"$and",OR:"$or"},V={PATH:"$path",PATTERN:"$val"},H=t=>!!(t[U.AND]||t[U.OR]),K=t=>!!t[V.PATH],Q=t=>!r(t)&&a(t)&&!H(t),q=t=>({[U.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function J(t,e,{auto:n=!0}={}){let i=t=>{let o=Object.keys(t),a=K(t);if(!a&&o.length>1&&!H(t))return i(q(t));if(Q(t)){let r=a?t[V.PATH]:o[0],i=a?t[V.PATTERN]:t[r];if(!s(i))throw Error(h(r));let c={keyId:E(r),pattern:i};return n&&(c.searcher=W(i,e)),c}let c={children:[],operator:o[0]};
1return o.forEach(e=>{let n=t[e];r(n)&&n.forEach(t=>{c.children.push(i(t))})}),c};return H(t)||(t=q(t)),i(t)}function G(t,e){let n=t.matches;e.matches=[],c(n)&&n.forEach(t=>{if(!c(t.indices)||!t.indices.length)return;let{indices:n,value:r}=t,i={indices:n,value:r};t.key&&(i.key=t.key.src),t.idx>-1&&(i.refIndex=t.idx),e.matches.push(i)})}function X(t,e){e.score=t.score}class B{constructor(t,e={},n){this.options={...x,...e},this.options.useExtendedSearch,this._keyStore=new g(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof S))throw Error("Incorrect 'index' type");this._myIndex=e||T(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){c(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){let e=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,e.push(i))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:e=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:c}=this.options,l=s(t)?s(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return!function(t,{ignoreFieldNorm:e=x.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:r,score:i})=>{let s=t?t.weight:null;n*=Math.pow(0===i&&s?Number.EPSILON:i,(s||1)*(e?1:r))}),t.score=n})}(l,{ignoreFieldNorm:c}),i&&l.sort(a),o(e)&&e>-1&&(l=l.slice(0,e)),function(t,e,{includeMatches:n=x.includeMatches,includeScore:r=x.includeScore}={}){let i=[];return n&&i.push(G),r&&i.push(X),t.map(t=>{let{idx:n}=t,r={item:e[n],refIndex:n};return i.length&&i.forEach(e=>{e(t,r)}),r})}(l,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){let e=W(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:t,i:n,n:i})=>{if(!c(t))return;let{isMatch:s,score:o,indices:a}=e.searchIn(t);s&&r.push({item:t,idx:n,matches:[{score:o,value:t,norm:i,indices:a}]})}),r}_searchLogical(t){let e=J(t,this.options),n=(t,e,r)=>{if(!t.children){let{keyId:n,searcher:i}=t,s=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:i});return s&&s.length?[{idx:r,item:e,matches:s}]:[]}let i=[];for(let s=0,o=t.children.length;s<o;s+=1){let o=n(t.children[s],e,r);if(o.length)i.push(...o);else if(t.operator===U.AND)return[]}return i},r=this._myIndex.records,i={},s=[];return r.forEach(({$:t,i:r})=>{if(c(t)){let o=n(e,t,r);o.length&&(i[r]||(i[r]={idx:r,item:t,matches:[]},s.push(i[r])),o.forEach(({matches:t})=>{i[r].matches.push(...t)}))}}),s}_searchObjectList(t){let e=W(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:t,i:r})=>{if(!c(t))return;let s=[];n.forEach((n,r)=>{s.push(...this._findMatches({key:n,value:t[r],searcher:e}))}),s.length&&i.push({idx:r,item:t,matches:s})}),i}_findMatches({key:t,value:e,searcher:n}){if(!c(e))return[];let i=[];if(r(e))e.forEach(({v:e,i:r,n:s})=>{if(!c(e))return;let{isMatch:o,score:a,indices:l}=n.searchIn(e);o&&i.push({score:a,key:t,value:e,idx:r,norm:s,indices:l})});else{let{v:r,n:s}=e,{isMatch:o,score:a,indices:c}=n.searchIn(r);o&&i.push({score:a,key:t,value:r,norm:s,indices:c})}return i}}B.version="6.5.3",B.createIndex=T,B.parseIndex=function(t,{getFn:e=x.getFn,fieldNormWeight:n=x.fieldNormWeight}={}){let{keys:r,records:i}=t,s=new S({getFn:e,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(i),s},B.config=x,B.parseQuery=J,function(...t){z.push(...t)}(Z)},80648:function(t,e,n){"use strict";var r=n(44194),i=n(869480);function s(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}function o(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,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function c(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=l(t);return n=e?Reflect.construct(r,arguments,l(this).constructor):r.apply(this,arguments),n&&("object"==typeof n||"function"==typeof n)?n:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)}}function p(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 f(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=String(t);if(0===n)return r;var i=r.match(/(.*?)([0-9]+)(.*)/),s=i?i[1]:"",o=i?i[3]:"",a=i?i[2]:r,c=a.length>=n?a:(((function(t){if(Array.isArray(t))return p(t)})(e=Array(n))||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return p(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 p(t,void 0)}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(){return"0"}).join("")+a).slice(-1*n);return"".concat(s).concat(c).concat(o)}var d={daysInHours:!1,zeroPadTime:2},m=function(t){c(n,t);var e=h(n);function n(){var t;return s(this,n),t=e.apply(this,arguments),t.state={count:t.props.count||3},t.startCountdown=function(){t.interval=window.setInterval(function(){0==t.state.count-1?(t.stopCountdown(),t.props.onComplete&&t.props.onComplete()):t.setState(function(t){return{count:t.count-1}})},1e3)},t.stopCountdown=function(){clearInterval(t.interval)},t.addTime=function(e){t.stopCountdown(),t.setState(function(t){return{count:t.count+e}},t.startCountdown)},t}
1return a(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?(0,r.cloneElement)(this.props.children,{count:this.state.count}):null}}]),n}(r.Component);m.propTypes={count:i.number,children:i.element,onComplete:i.func};var g=function(t){c(n,t);var e=h(n);function n(t){var i;if(s(this,n),(i=e.call(this,t)).mounted=!1,i.initialTimestamp=i.calcOffsetStartTimestamp(),i.offsetStartTimestamp=i.props.autoStart?0:i.initialTimestamp,i.offsetTime=0,i.legacyMode=!1,i.legacyCountdownRef=(0,r.createRef)(),i.tick=function(){var t=i.calcTimeDelta(),e=t.completed&&!i.props.overtime?void 0:i.props.onTick;i.setTimeDeltaState(t,void 0,e)},i.start=function(){if(!i.isStarted()){var t=i.offsetStartTimestamp;i.offsetStartTimestamp=0,i.offsetTime+=t?i.calcOffsetStartTimestamp()-t:0;var e=i.calcTimeDelta();i.setTimeDeltaState(e,"STARTED",i.props.onStart),i.props.controlled||e.completed&&!i.props.overtime||(i.clearTimer(),i.interval=window.setInterval(i.tick,i.props.intervalDelay))}},i.pause=function(){i.isPaused()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.setTimeDeltaState(i.state.timeDelta,"PAUSED",i.props.onPause))},i.stop=function(){i.isStopped()||(i.clearTimer(),i.offsetStartTimestamp=i.calcOffsetStartTimestamp(),i.offsetTime=i.offsetStartTimestamp-i.initialTimestamp,i.setTimeDeltaState(i.calcTimeDelta(),"STOPPED",i.props.onStop))},i.isStarted=function(){return i.isStatus("STARTED")},i.isPaused=function(){return i.isStatus("PAUSED")},i.isStopped=function(){return i.isStatus("STOPPED")},i.isCompleted=function(){return i.isStatus("COMPLETED")},t.date){var o=i.calcTimeDelta();i.state={timeDelta:o,status:o.completed?"COMPLETED":"STOPPED"}}else i.legacyMode=!0;return i}return a(n,[{key:"componentDidMount",value:function(){!this.legacyMode&&(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(t){this.legacyMode||this.props.date===t.date||(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var t=this.props,e=t.date,n=t.now,r=t.precision,i=t.controlled,s=t.overtime;return function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.now,i=void 0===r?Date.now:r,s=n.precision,o=n.controlled,a=n.offsetTime,c=n.overtime;e="string"==typeof t?new Date(t).getTime():t instanceof Date?t.getTime():t,o||(e+=void 0===a?0:a);var l=o?e:e-i(),u=Math.round(1e3*parseFloat(((c?l:Math.max(0,l))/1e3).toFixed(Math.min(20,Math.max(0,void 0===s?0:s))))),h=Math.abs(u)/1e3;return{total:u,days:Math.floor(h/86400),hours:Math.floor(h/3600%24),minutes:Math.floor(h/60%60),seconds:Math.floor(h%60),milliseconds:Number((h%1*1e3).toFixed()),completed:u<=0}}(e,{now:n,precision:r,controlled:i,offsetTime:this.offsetTime,overtime:s})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(t){this.legacyCountdownRef.current.addTime(t)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(t){return this.state.status===t}},{key:"setTimeDeltaState",value:function(t,e,n){var r=this;if(this.mounted){var i=t.completed&&!this.state.timeDelta.completed,s=t.completed&&"STARTED"===e;return i&&!this.props.overtime&&this.clearTimer(),this.setState(function(n){var i=e||n.status;return t.completed&&!r.props.overtime?i="COMPLETED":e||"COMPLETED"!==i||(i="STOPPED"),{timeDelta:t,status:i}},function(){n&&n(r.state.timeDelta),r.props.onComplete&&(i||s)&&r.props.onComplete(t,s)})}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var t,e,n,r,i,s,o,a,c,l,u,h,p=this.props,m=p.daysInHours,g=p.zeroPadTime,v=p.zeroPadDays,y=this.state.timeDelta;return Object.assign(Object.assign({},y),{api:this.getApi(),props:this.props,formatted:(t={daysInHours:m,zeroPadTime:g,zeroPadDays:v},e=y.days,n=y.hours,r=y.minutes,i=y.seconds,o=(s=Object.assign(Object.assign({},d),t)).daysInHours,a=s.zeroPadTime,l=void 0===(c=s.zeroPadDays)?a:c,u=Math.min(2,a),h=o?f(n+24*e,a):f(n,u),{days:o?"":f(e,l),hours:h,minutes:f(r,u),seconds:f(i,u)})})}},{key:"render",value:function(){if(this.legacyMode){var t=this.props,e=t.count,n=t.children,i=t.onComplete;return(0,r.createElement)(m,{ref:this.legacyCountdownRef,count:e,onComplete:i},n)}var s=this.props,o=s.className,a=s.overtime,c=s.children,l=s.renderer,u=this.getRenderProps();if(l)return l(u);
1if(c&&this.state.timeDelta.completed&&!a)return(0,r.cloneElement)(c,{countdown:u});var h=u.formatted,p=h.days,f=h.hours,d=h.minutes,g=h.seconds;return(0,r.createElement)("span",{className:o},u.total<0?"-":"",p,p?":":"",f,":",d,":",g)}}]),n}(r.Component);g.defaultProps=Object.assign(Object.assign({},d),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0}),g.propTypes={date:(0,i.oneOfType)([(0,i.instanceOf)(Date),i.string,i.number]),daysInHours:i.bool,zeroPadTime:i.number,zeroPadDays:i.number,controlled:i.bool,intervalDelay:i.number,precision:i.number,autoStart:i.bool,overtime:i.bool,className:i.string,children:i.element,renderer:i.func,now:i.func,onMount:i.func,onStart:i.func,onPause:i.func,onStop:i.func,onTick:i.func,onComplete:i.func},e.ZP=g},880349:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(799217),i=n(137838),s=n(626999);function o(t,e){return t.replace(RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}n(869480);var a=n(44194),c=n(123782),l=n(826119),u=function(t,e){return t&&e&&e.split(" ").forEach(function(e){t.classList?t.classList.remove(e):"string"==typeof t.className?t.className=o(t.className,e):t.setAttribute("class",o(t.className&&t.className.baseVal||"",e))})},h=function(t){function e(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),i=r[0],s=r[1];e.removeClasses(i,"exit"),e.addClass(i,s?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),i=r[0],s=r[1];e.addClass(i,s?"appear":"enter","active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),i=r[0],s=r[1]?"appear":"enter";e.removeClasses(i,s),e.addClass(i,s,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+t:n[t],s=r?i+"-active":n[t+"Active"],o=r?i+"-done":n[t+"Done"];return{baseClassName:i,activeClassName:s,doneClassName:o}},e}(0,s.Z)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r,i=this.getClassNames(e)[n+"ClassName"],s=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&s&&(i+=" "+s),"active"===n&&t&&(0,l.Q)(t),i&&(this.appliedClasses[e][n]=i,r=i,t&&r&&r.split(" ").forEach(function(e){var n,r;return n=t,r=e,void(n.classList?n.classList.add(r):(n.classList?r&&n.classList.contains(r):-1!==(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+r+" "))||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)))}))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,i=n.active,s=n.done;this.appliedClasses[e]={},r&&u(t,r),i&&u(t,i),s&&u(t,s)},n.render=function(){var t=this.props,e=(t.classNames,(0,i.Z)(t,["classNames"]));return a.createElement(c.ZP,(0,r.Z)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(a.Component);h.defaultProps={classNames:""},h.propTypes={};var p=h},123782:function(t,e,n){"use strict";n.d(e,{ZP:function(){return v}});var r=n(137838),i=n(626999);n(869480);var s=n(44194),o=n(156321),a={disabled:!1},c=n(822171),l=n(826119),u="unmounted",h="exited",p="entering",f="entered",d="exiting",m=function(t){function e(e,n){r=t.call(this,e,n)||this;var r,i,s=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?s?(i=h,r.appearStatus=p):i=f:i=e.unmountOnExit||e.mountOnEnter?u:h,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:h}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==f&&(e=p):(n===p||n===f)&&(e=d)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){if(this.cancelNextCallback(),e===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this);n&&(0,l.Q)(n)}this.performEnter(t)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===h&&this.setState({status:u})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.
1isMounting:t,i=this.props.nodeRef?[r]:[o.findDOMNode(this),r],s=i[0],c=i[1],l=this.getTimeouts(),u=r?l.appear:l.enter;if(!t&&!n||a.disabled){this.safeSetState({status:f},function(){e.props.onEntered(s)});return}this.props.onEnter(s,c),this.safeSetState({status:p},function(){e.props.onEntering(s,c),e.onTransitionEnd(u,function(){e.safeSetState({status:f},function(){e.props.onEntered(s,c)})})})},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:o.findDOMNode(this);if(!e||a.disabled){this.safeSetState({status:h},function(){t.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:d},function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,function(){t.safeSetState({status:h},function(){t.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:o.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],s=i[0],a=i[1];this.props.addEndListener(s,a)}null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,r.Z)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(c.Z.Provider,{value:null},"function"==typeof n?n(t,i):s.cloneElement(s.Children.only(n),i))},e}(s.Component);function g(){}m.contextType=c.Z,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=u,m.EXITED=h,m.ENTERING=p,m.ENTERED=f,m.EXITING=d;var v=m},521131:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n(137838),i=n(799217),s=n(626999);n(869480);var o=n(44194),a=n(822171);function c(t,e){var n=Object.create(null);return t&&o.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=e&&(0,o.isValidElement)(t)?e(t):t}),n}function l(t,e,n){return null!=n[e]?n[e]:t.props[e]}var u=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},h=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,s.Z)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,r,i=e.children,s=e.handleExited;return{children:e.firstRender?c(t.children,function(e){return(0,o.cloneElement)(e,{onExited:s.bind(null,e),in:!0,appear:l(e,"appear",t),enter:l(e,"enter",t),exit:l(e,"exit",t)})}):(Object.keys(r=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),s=[];for(var o in t)o in e?s.length&&(i[o]=s,s=[]):s.push(o);var a={};for(var c in e){if(i[c])for(r=0;r<i[c].length;r++){var l=i[c][r];a[i[c][r]]=n(l)}a[c]=n(c)}for(r=0;r<s.length;r++)a[s[r]]=n(s[r]);return a}(i,n=c(t.children))).forEach(function(e){var a=r[e];if((0,o.isValidElement)(a)){var c=e in i,u=e in n,h=i[e],p=(0,o.isValidElement)(h)&&!h.props.in;u&&(!c||p)?r[e]=(0,o.cloneElement)(a,{onExited:s.bind(null,a),in:!0,exit:l(a,"exit",t),enter:l(a,"enter",t)}):u||!c||p?u&&c&&(0,o.isValidElement)(h)&&(r[e]=(0,o.cloneElement)(a,{onExited:s.bind(null,a),in:h.props.in,exit:l(a,"exit",t),enter:l(a,"enter",t)})):r[e]=(0,o.cloneElement)(a,{in:!1})}}
1),r),firstRender:!1}},n.handleExited=function(t,e){var n=c(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState(function(e){var n=(0,i.Z)({},e.children);return delete n[t.key],{children:n}}))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,i=(0,r.Z)(t,["component","childFactory"]),s=this.state.contextValue,c=u(this.state.children).map(n);return(delete i.appear,delete i.enter,delete i.exit,null===e)?o.createElement(a.Z.Provider,{value:s},c):o.createElement(a.Z.Provider,{value:s},o.createElement(e,i,c))},e}(o.Component);h.propTypes={},h.defaultProps={component:"div",childFactory:function(t){return t}};var p=h},822171:function(t,e,n){"use strict";var r=n(44194);e.Z=r.createContext(null)},826119:function(t,e,n){"use strict";n.d(e,{Q:function(){return r}});var r=function(t){return t.scrollTop}},626999:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)}n.d(e,{Z: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.