1import{a as pe,b as ve}from"./index-B_b7Ci_5.js";import{r as me}from"./index-Chjiymov.js";function ye(e,u){for(var r=0;r<u.length;r++){const t=u[r];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(t,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var D={},N={},$={},C;function ge(){if(C)return $;C=1,Object.defineProperty($,"__esModule",{value:!0}),$.default=e;function e(u,r){if(u===r)return!0;var t=Object.keys(u),o=Object.keys(r);if(t.length!==o.length)return!1;for(var l=Object.prototype.hasOwnProperty,h=0;h<t.length;h++)if(!l.call(r,t[h])||u[t[h]]!==r[t[h]])return!1;return!0}return $}var A={},K={exports:{}},ee;function _e(){if(ee)return K.exports;ee=1;var e=K.exports={},u,r;function t(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=t}catch{u=t}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function l(s){if(u===setTimeout)return setTimeout(s,0);if((u===t||!u)&&setTimeout)return u=setTimeout,setTimeout(s,0);try{return u(s,0)}catch{try{return u.call(null,s,0)}catch{return u.call(this,s,0)}}}function h(s){if(r===clearTimeout)return clearTimeout(s);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(s);try{return r(s)}catch{try{return r.call(null,s)}catch{return r.call(this,s)}}}var c=[],m=!1,p,_=-1;function x(){!m||!p||(m=!1,p.length?c=p.concat(c):_=-1,c.length&&S())}function S(){if(!m){var s=l(x);m=!0;for(var g=c.length;g;){for(p=c,c=[];++_<g;)p&&p[_].run();_=-1,g=c.length}p=null,m=!1,h(s)}}e.nextTick=function(s){var g=new Array(arguments.length-1);if(arguments.length>1)for(var y=1;y<arguments.length;y++)g[y-1]=arguments[y];c.push(new U(s,g)),c.length===1&&!m&&l(S)};function U(s,g){this.fun=s,this.array=g}U.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function w(){}return e.on=w,e.addListener=w,e.once=w,e.off=w,e.removeListener=w,e.removeAllListeners=w,e.emit=w,e.prependListener=w,e.prependOnceListener=w,e.listeners=function(s){return[]},e.binding=function(s){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(s){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},K.exports}var te;function we(){if(te)return A;te=1,Object.defineProperty(A,"__esModule",{value:!0}),A.default=t;var e=_e(),u=r(e);function r(o){return o&&o.__esModule?o:{default:o}}function t(o,l){var h=[],c=0,m=!0;function p(x){function S(){l&&l(x,h)}m?u.default.nextTick(S):S()}function _(x,S){h.push(S),++c>=o.length||x?p(x):o[c](_)}o.length>0?o[0](_):p(null),m=!1}return A}var V={},re;function Te(){if(re)return V;re=1,Object.defineProperty(V,"__esModule",{value:!0}),V.default=u;var e=function(){};function u(r,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e;r()?t(function l(h){for(var c=arguments.length,m=Array(c>1?c-1:0),p=1;p<c;p++)m[p-1]=arguments[p];h?o(h):r.apply(this,m)?t(l):o(null)}):o(null)}return V}var k={},ne;function xe(){if(ne)return k;ne=1,Object.defineProperty(k,"__esModule",{value:!0}),k.default=e;function e(u,r){var t=void 0,o=void 0,l=void 0,h=void 0,c=0;function m(){h=0,c=+new Date,l=u.apply(t,o),t=null,o=null}return function(){t=this,o=arguments;var _=new Date-c;return h||(_>=r?m():h=setTimeout(m,r-_)),l}}return k}var Q={},ie;function Se(){if(ie)return Q;ie=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.default=u;var e=0;function u(){return e++}return Q}var H={},ue;function qe(){if(ue)return H;ue=1,Object.defineProperty(H,"__esModule",{value:!0}),H.innerHeight=e,H.innerWidth=u;function e(r){var t=window.getComputedStyle(r,null);return t?r.clientHeight-parseInt(t.getPropertyValue("padding-top"),10)-parseInt(t.getPropertyValue("padding-bottom"),10):r.clientHeight}function u(r){var t=window.getComputedStyle(r,null);return t?r.clientWidth-parseInt(t.getPropertyValue("padding-left"),10)-parseInt(t.getPropertyValue("padding-right"),10):r.clientWidth}return H}var oe;function Oe(){if(oe)return N;oe=1,Object.defineProperty(N,"__esModule",{value:!0});var e=Object.assign||function(a){for(var n=1;n<arguments.length;n++){var d=arguments[n];for(var i in d)Object.prototype.hasOwnProperty.call(d,i)&&(a[i]=d[i])}return a},u=(function(){function a(n,d){for(var i=0;i<d.length;i++){var f=d[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(n,f.key,f)}}return function(n,d,i){return d&&a(n.prototype,d),i&&a(n,i),n}})(),r=pe(),t=y(r),o=me(),l=y(o),h=ge(),c=y(h),m=we(),p=y(m),_=Te(),x=y(_),S=xe(),U=y(S),w=Se(),s=y(w),g=qe();function y(a){return a&&a.__esModule?a:{default:a}}function le(a,n){var d={};for(var i in a)n.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(a,i)&&(d[i]=a[i]);return d}function se(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}function ce(a,n){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:a}function de(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);a.prototype=Object.create(n&&n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(a,n):a.__proto__=n)}function X(a,n){return a.scrollWidth-1<=n}function Y(a,n){return a.scrollHeight-1<=n}function he(){}var B=(function(a){de(n,a);function n(d){se(this,n);var i=ce(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,d));return i.state={fontSize:null,ready:!1},i.handleWindowResize=function(){i.process()},"perfectFit"in d&&console.warn("TextFit property perfectFit has been removed."),i.handleWindowResize=(0,U.default)(i.handleWindowResize,d.throttle),i}
1return u(n,[{key:"componentDidMount",value:function(){var i=this.props.autoResize;i&&window.addEventListener("resize",this.handleWindowResize),this.process()}},{key:"componentDidUpdate",value:function(i){var f=this.state.ready;f&&((0,c.default)(this.props,i)||this.process())}},{key:"componentWillUnmount",value:function(){var i=this.props.autoResize;i&&window.removeEventListener("resize",this.handleWindowResize),this.pid=(0,s.default)()}},{key:"process",value:function(){var i=this,f=this.props,R=f.min,M=f.max,j=f.mode,G=f.forceSingleModeWidth,J=f.onReady,L=this._parent,W=this._child,b=(0,g.innerWidth)(L),E=(0,g.innerHeight)(L);if(E<=0||isNaN(E)){console.warn("Can not process element without height. Make sure the element is displayed and has a static height.");return}if(b<=0||isNaN(b)){console.warn("Can not process element without width. Make sure the element is displayed and has a static width.");return}var I=(0,s.default)();this.pid=I;var P=function(){return I!==i.pid},F=j==="multi"?function(){return Y(W,E)}:function(){return X(W,b)},Z=j==="multi"?function(){return X(W,b)}:function(){return Y(W,E)},v=void 0,q=R,O=M;this.setState({ready:!1}),(0,p.default)([function(T){return(0,x.default)(function(){return q<=O},function(z){if(P())return z(!0);v=parseInt((q+O)/2,10),i.setState({fontSize:v},function(){return P()?z(!0):(F()?q=v+1:O=v-1,z())})},T)},function(T){return j==="single"&&G||Z()?T():(q=R,O=v,(0,x.default)(function(){return q<O},function(z){if(P())return z(!0);v=parseInt((q+O)/2,10),i.setState({fontSize:v},function(){return I!==i.pid?z(!0):(Z()?q=v+1:O=v-1,z())})},T))},function(T){if(v=Math.min(q,O),v=Math.max(v,R),v=Math.min(v,M),v=Math.max(v,0),P())return T(!0);i.setState({fontSize:v},T)}],function(T){T||P()||i.setState({ready:!0},function(){return J(v)})})}},{key:"render",value:function(){var i=this,f=this.props,R=f.children,M=f.text,j=f.style;f.min,f.max;var G=f.mode;f.forceWidth,f.forceSingleModeWidth,f.throttle,f.autoResize,f.onReady;var J=le(f,["children","text","style","min","max","mode","forceWidth","forceSingleModeWidth","throttle","autoResize","onReady"]),L=this.state,W=L.fontSize,b=L.ready,E=e({},j,{fontSize:W}),I={display:b?"block":"inline-block"};return G==="single"&&(I.whiteSpace="nowrap"),t.default.createElement("div",e({ref:function(F){return i._parent=F},style:E},J),t.default.createElement("div",{ref:function(F){return i._child=F},style:I},M&&typeof R=="function"?b?R(M):M:R))}}]),n})(t.default.Component);return B.propTypes={children:l.default.node,text:l.default.string,min:l.default.number,max:l.default.number,mode:l.default.oneOf(["single","multi"]),forceSingleModeWidth:l.default.bool,throttle:l.default.number,onReady:l.default.func},B.defaultProps={min:1,max:100,mode:"multi",forceSingleModeWidth:!0,throttle:50,autoResize:!0,onReady:he},N.default=B,N}var ae;function Re(){if(ae)return D;ae=1,Object.defineProperty(D,"__esModule",{value:!0}),D.Textfit=void 0;var e=Oe(),u=r(e);function r(t){return t&&t.__esModule?t:{default:t}}return D.Textfit=u.default,D.default=u.default,D}var fe=Re();const be=ve(fe),Me=ye({__proto__:null,default:be},[fe]);export{Me as 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.