PageSourceSearch

https://renderio.dev/assets/lib-ZfiKcmEm.js

js renderio.dev collected 2026-10-04 20:40:03 UTC 14,524 bytes, 1 lines download raw bytes

vendor: 6,319 bytes, line 1
1import{o as e,t}from"./chunk-CMxvf4Kt.js";function n(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?i(e.position):`start`in e||`end`in e?i(e):`line`in e||`column`in e?r(e):``}function r(e){return a(e&&e.line)+`:`+a(e&&e.column)}function i(e){return r(e&&e.start)+`-`+r(e&&e.end)}function a(e){return e&&typeof e==`number`?e:1}var o=(function(e){if(e==null)return d;if(typeof e==`function`)return u(e);if(typeof e==`object`)return Array.isArray(e)?s(e):c(e);if(typeof e==`string`)return l(e);throw Error(`Expected function, string, or object as test`)});function s(e){let t=[],n=-1;for(;++n<e.length;)t[n]=o(e[n]);return u(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function c(e){let t=e;return u(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function l(e){return u(t);function t(t){return t&&t.type===e}}function u(e){return t;function t(t,n,r){return!!(f(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function d(){return!0}function f(e){return typeof e==`object`&&!!e&&`type`in e}function p(e){return e}var m=[];function h(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=o(i),s=r?-1:1;c(e,void 0,[])();function c(e,i,o){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+p(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=m,u,d,f;if((!t||a(e,i,o[o.length-1]||void 0))&&(l=g(n(e,o)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+s,f=o.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=c(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+s}}return l}}}function g(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?m:[e]}function _(e){if(e)throw e}var v=e(t(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function y(){}function b(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function x(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?S(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function S(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var C=class extends Error{constructor(e,t,r){super(),typeof t==`string`&&(r=t,t=void 0);let i=``,a={},o=!1;if(t&&(a=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?i=e:!a.cause&&e&&(o=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&typeof r==`string`){let e=r.indexOf(`:`);e===-1?a.ruleId=r:(a.source=r.slice(0,e),a.ruleId=r.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){let e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}let s=a.place&&`start`in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file=``,this.message=i,this.line=s?s.line:void 0,this.name=n(a.place)||`1:1`,this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack==`string`?a.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};C.prototype.file=``,C.prototype.name=``,C.prototype.reason=``,C.prototype.message=``,C.prototype.stack=``,C.prototype.column=void 0,C.prototype.line=void 0,C.prototype.ancestors=void 0,C.prototype.cause=void 0,C.prototype.fatal=void 0,C.prototype.place=void 0,C.prototype.ruleId=void 0,C.prototype.source=void 0;var w={basename:T,dirname:E,extname:D,join:O,sep:`/`};function T(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);j(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function E(e){if(j(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function D(e){j(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}
vendor: 8,205 bytes, line 1
1n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function O(...e){let t=-1,n;for(;++t<e.length;)j(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:k(n)}function k(e){j(e);let t=e.codePointAt(0)===47,n=A(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function A(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function j(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var M={cwd:N};function N(){return`/`}function P(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function F(e){if(typeof e==`string`)e=new URL(e);else if(!P(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return I(e)}function I(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var L=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],R=class{constructor(e){let t;t=e?P(e)?{path:e}:typeof e==`string`||H(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:M.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<L.length;){let e=L[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)L.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?w.basename(this.path):void 0}set basename(e){B(e,`basename`),z(e,`basename`),this.path=w.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?w.dirname(this.path):void 0}set dirname(e){V(this.basename,`dirname`),this.path=w.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?w.extname(this.path):void 0}set extname(e){if(z(e,`extname`),V(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=w.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){P(e)&&(e=F(e)),B(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?w.basename(this.path,this.extname):void 0}set stem(e){B(e,`stem`),z(e,`stem`),this.path=w.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new C(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function z(e,t){if(e&&e.includes(w.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+w.sep+"`")}function B(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function V(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function H(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var U=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),W={}.hasOwnProperty,G=new class e extends U{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=x()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,v.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(J(`data`,this.frozen),this.namespace[e]=t,this):W.call(this.namespace,e)&&this.namespace[e]||void 0:e?(J(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Z(e),n=this.parser||this.Parser;return K(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),K(`process`,this.parser||this.Parser),q(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Z(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);$(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),K(`processSync`,this.parser||this.Parser),q(`processSync`,this.compiler||this.Compiler),this.process(e,r),X(`processSync`,`process`,t),n;function r(e,r){t=!0,_(e),n=r}}run(e,t,n){Y(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Z(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),X(`runSync`,`run`,n),r;function i(e,t){_(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Z(t),r=this.compiler||this.Compiler;return q(`stringify`,r),Y(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(J(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,v.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];b(o)&&b(r)&&(r=(0,v.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function K(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function q(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function J(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y(e){if(!b(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function X(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Z(e){return Q(e)?e:new R(e)}function Q(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function $(e){return typeof e==`string`||ee(e)}function ee(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}export{h as a,y as i,R as n,o,C as r,n as s,G as t};

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.