@dbt-tools/web 0.5.8 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- (function(){var e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),t=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),n=e((e=>{var n=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__exportStar||function(e,t){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(t,r)&&n(t,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseManifestV1=o,e.parseManifestV2=s,e.parseManifestV3=c,e.parseManifestV4=l,e.parseManifestV5=u,e.parseManifestV6=d,e.parseManifestV7=f,e.parseManifestV8=p,e.parseManifestV9=m,e.parseManifestV10=h,e.parseManifestV11=g,e.parseManifestV12=_,e.parseManifest=y,r(t(),e);let i=`Not a manifest.json`;function a(e){if(!e)return null;let t=e.match(/\/manifest\/v(\d+)\.json$/);return t?parseInt(t[1],10):null}function o(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v1`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v1.json`))throw Error(`Not a manifest.json v1`);return e}function s(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v2`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v2.json`))throw Error(`Not a manifest.json v2`);return e}function c(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v3`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v3.json`))throw Error(`Not a manifest.json v3`);return e}function l(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v4`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v4.json`))throw Error(`Not a manifest.json v4`);return e}function u(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v5`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v5.json`))throw Error(`Not a manifest.json v5`);return e}function d(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v6`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v6.json`))throw Error(`Not a manifest.json v6`);return e}function f(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v7`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v7.json`))throw Error(`Not a manifest.json v7`);return e}function p(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v8`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v8.json`))throw Error(`Not a manifest.json v8`);return e}function m(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v9`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v9.json`))throw Error(`Not a manifest.json v9`);return e}function h(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v10`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v10.json`))throw Error(`Not a manifest.json v10`);return e}function g(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v11`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v11.json`))throw Error(`Not a manifest.json v11`);return e}function _(e){let t=e.metadata;if(!t)throw Error(`Not a manifest.json v12`);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v12.json`))throw Error(`Not a manifest.json v12`);return e}let v=[o,s,c,l,u,d,f,p,m,h,g,_];function y(e){let t=e.metadata;if(!t)throw Error(i);let n=t.dbt_schema_version;if(!n||!n.includes(`/manifest/v`))throw Error(i);let r=a(n);if(r===null)throw Error(i);let o=v[r-1];if(!o)throw Error(`Unsupported manifest version: ${r}`);return o(e)}})),r=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),i=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseCatalogV1=o,e.parseCatalog=s,n(r(),e);let i=`Not a catalog.json`;function a(e){if(!e)return null;let t=e.match(/\/catalog\/v(\d+)\.json$/);return t?parseInt(t[1],10):null}function o(e){let t=e.metadata;if(!t)throw Error(`Not a catalog.json v1`);let n=t.dbt_schema_version;if(!n||!n.includes(`/catalog/v1.json`))throw Error(`Not a catalog.json v1`);return e}function s(e){let t=e.metadata;if(!t)throw Error(i);let n=t.dbt_schema_version;if(!n||!n.includes(`/catalog/v`))throw Error(i);let r=a(n);if(r===null)throw Error(i);switch(r){case 1:return o(e);default:throw Error(`Unsupported catalog version: ${r}`)}}})),a=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),o=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseRunResultsV1=o,e.parseRunResultsV2=s,e.parseRunResultsV3=c,e.parseRunResultsV4=l,e.parseRunResultsV5=u,e.parseRunResultsV6=d,e.parseRunResults=p,n(a(),e);let r=`Not a run-results.json`;function i(e){if(!e)return null;let t=e.match(/\/run-results\/v(\d+)\.json$/);return t?parseInt(t[1],10):null}function o(e){let t=e.metadata;if(!t)throw Error(`Not a run-results.json v1`);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v1.json`))throw Error(`Not a run-results.json v1`);return e}function s(e){let t=e.metadata;if(!t)throw Error(`Not a run-results.json v2`);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v2.json`))throw Error(`Not a run-results.json v2`);return e}function c(e){let t=e.metadata;if(!t)throw Error(`Not a run-results.json v3`);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v3.json`))throw Error(`Not a run-results.json v3`);return e}function l(e){let t=e.metadata;if(!t)throw Error(`Not a run-results.json v4`);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v4.json`))throw Error(`Not a run-results.json v4`);return e}function u(e){let t=e.metadata;if(!t)throw Error(`Not a run-results.json v5`);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v5.json`))throw Error(`Not a run-results.json v5`);return e}function d(e){let t=e.metadata;if(!t)throw Error(`Not a run-results.json v6`);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v6.json`))throw Error(`Not a run-results.json v6`);return e}let f=[o,s,c,l,u,d];function p(e){let t=e.metadata;if(!t)throw Error(r);let n=t.dbt_schema_version;if(!n||!n.includes(`/run-results/v`))throw Error(r);let a=i(n);if(a===null)throw Error(r);let o=f[a-1];if(!o)throw Error(`Unsupported run-results version: ${a}`);return o(e)}})),s=e((e=>{Object.defineProperty(e,`__esModule`,{value:!0})})),c=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.parseSourcesV1=a,e.parseSourcesV2=o,e.parseSourcesV3=c,e.parseSources=l,n(s(),e);let r=`Not a sources.json`;function i(e){if(!e)return null;let t=e.match(/\/sources\/v(\d+)\.json$/);return t?parseInt(t[1],10):null}function a(e){let t=e.metadata;if(!t)throw Error(`Not a sources.json v1`);let n=t.dbt_schema_version;if(!n||!n.includes(`/sources/v1.json`))throw Error(`Not a sources.json v1`);return e}function o(e){let t=e.metadata;if(!t)throw Error(`Not a sources.json v2`);let n=t.dbt_schema_version;if(!n||!n.includes(`/sources/v2.json`))throw Error(`Not a sources.json v2`);return e}function c(e){let t=e.metadata;if(!t)throw Error(`Not a sources.json v3`);let n=t.dbt_schema_version;if(!n||!n.includes(`/sources/v3.json`))throw Error(`Not a sources.json v3`);return e}function l(e){let t=e.metadata;if(!t)throw Error(r);let n=t.dbt_schema_version;if(!n||!n.includes(`/sources/v`))throw Error(r);let s=i(n);if(s===null)throw Error(r);switch(s){case 1:return a(e);case 2:return o(e);case 3:return c(e);default:throw Error(`Unsupported sources version: ${s}`)}}})),l=e(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,`defaultMaxListeners`,{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),u=n(),d=i(),f=o(),p=c(),m=l();function h(){let e=arguments[0];for(let t=1,n=arguments.length;t<n;t++)if(arguments[t])for(let n in arguments[t])e[n]=arguments[t][n];return e}let g=h;typeof Object.assign==`function`&&(g=Object.assign);function _(e,t,n,r){let i=e._nodes.get(t),a=null;return i&&(a=r===`mixed`?i.out&&i.out[n]||i.undirected&&i.undirected[n]:r===`directed`?i.out&&i.out[n]:i.undirected&&i.undirected[n]),a}function v(e){return typeof e==`object`&&!!e}function y(e){let t;for(t in e)return!1;return!0}function b(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function x(e,t,n){let r={enumerable:!0,configurable:!0};typeof n==`function`?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function ee(e){return!(!v(e)||e.attributes&&!Array.isArray(e.attributes))}function S(){let e=Math.floor(Math.random()*256)&255;return()=>e++}function C(){let e=arguments,t=null,n=-1;return{[Symbol.iterator](){return this},next(){let r=null;do{if(t===null){if(n++,n>=e.length)return{done:!0};t=e[n][Symbol.iterator]()}if(r=t.next(),r.done){t=null;continue}break}while(!0);return r}}}function w(){return{[Symbol.iterator](){return this},next(){return{done:!0}}}}var T=class extends Error{constructor(e){super(),this.name=`GraphError`,this.message=e}},E=class e extends T{constructor(t){super(t),this.name=`InvalidArgumentsGraphError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e.prototype.constructor)}},D=class e extends T{constructor(t){super(t),this.name=`NotFoundGraphError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e.prototype.constructor)}},O=class e extends T{constructor(t){super(t),this.name=`UsageGraphError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e.prototype.constructor)}};function k(e,t){this.key=e,this.attributes=t,this.clear()}k.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};function te(e,t){this.key=e,this.attributes=t,this.clear()}te.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};function ne(e,t){this.key=e,this.attributes=t,this.clear()}ne.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};function A(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}A.prototype.attach=function(){let e=`out`,t=`in`;this.undirected&&(e=t=`undirected`);let n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)},A.prototype.attachMulti=function(){let e=`out`,t=`in`,n=this.source.key,r=this.target.key;this.undirected&&(e=t=`undirected`);let i=this.source[e],a=i[r];if(a===void 0){i[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}a.previous=this,this.next=a,i[r]=this,this.target[t][n]=this},A.prototype.detach=function(){let e=this.source.key,t=this.target.key,n=`out`,r=`in`;this.undirected&&(n=r=`undirected`),delete this.source[n][t],delete this.target[r][e]},A.prototype.detachMulti=function(){let e=this.source.key,t=this.target.key,n=`out`,r=`in`;this.undirected&&(n=r=`undirected`),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};function j(e,t,n,r,i,a,o){let s,c,l,u;if(r=``+r,n===0){if(s=e._nodes.get(r),!s)throw new D(`Graph.${t}: could not find the "${r}" node in the graph.`);l=i,u=a}else if(n===3){if(i=``+i,c=e._edges.get(i),!c)throw new D(`Graph.${t}: could not find the "${i}" edge in the graph.`);let n=c.source.key,d=c.target.key;if(r===n)s=c.target;else if(r===d)s=c.source;else throw new D(`Graph.${t}: the "${r}" node is not attached to the "${i}" edge (${n}, ${d}).`);l=a,u=o}else{if(c=e._edges.get(r),!c)throw new D(`Graph.${t}: could not find the "${r}" edge in the graph.`);s=n===1?c.source:c.target,l=i,u=a}return[s,l,u]}function re(e,t,n){e.prototype[t]=function(e,r,i){let[a,o]=j(this,t,n,e,r,i);return a.attributes[o]}}function ie(e,t,n){e.prototype[t]=function(e,r){let[i]=j(this,t,n,e,r);return i.attributes}}function ae(e,t,n){e.prototype[t]=function(e,r,i){let[a,o]=j(this,t,n,e,r,i);return a.attributes.hasOwnProperty(o)}}function oe(e,t,n){e.prototype[t]=function(e,r,i,a){let[o,s,c]=j(this,t,n,e,r,i,a);return o.attributes[s]=c,this.emit(`nodeAttributesUpdated`,{key:o.key,type:`set`,attributes:o.attributes,name:s}),this}}function se(e,t,n){e.prototype[t]=function(e,r,i,a){let[o,s,c]=j(this,t,n,e,r,i,a);if(typeof c!=`function`)throw new E(`Graph.${t}: updater should be a function.`);let l=o.attributes;return l[s]=c(l[s]),this.emit(`nodeAttributesUpdated`,{key:o.key,type:`set`,attributes:o.attributes,name:s}),this}}function ce(e,t,n){e.prototype[t]=function(e,r,i){let[a,o]=j(this,t,n,e,r,i);return delete a.attributes[o],this.emit(`nodeAttributesUpdated`,{key:a.key,type:`remove`,attributes:a.attributes,name:o}),this}}function le(e,t,n){e.prototype[t]=function(e,r,i){let[a,o]=j(this,t,n,e,r,i);if(!v(o))throw new E(`Graph.${t}: provided attributes are not a plain object.`);return a.attributes=o,this.emit(`nodeAttributesUpdated`,{key:a.key,type:`replace`,attributes:a.attributes}),this}}function ue(e,t,n){e.prototype[t]=function(e,r,i){let[a,o]=j(this,t,n,e,r,i);if(!v(o))throw new E(`Graph.${t}: provided attributes are not a plain object.`);return g(a.attributes,o),this.emit(`nodeAttributesUpdated`,{key:a.key,type:`merge`,attributes:a.attributes,data:o}),this}}function de(e,t,n){e.prototype[t]=function(e,r,i){let[a,o]=j(this,t,n,e,r,i);if(typeof o!=`function`)throw new E(`Graph.${t}: provided updater is not a function.`);return a.attributes=o(a.attributes),this.emit(`nodeAttributesUpdated`,{key:a.key,type:`update`,attributes:a.attributes}),this}}let fe=[{name:e=>`get${e}Attribute`,attacher:re},{name:e=>`get${e}Attributes`,attacher:ie},{name:e=>`has${e}Attribute`,attacher:ae},{name:e=>`set${e}Attribute`,attacher:oe},{name:e=>`update${e}Attribute`,attacher:se},{name:e=>`remove${e}Attribute`,attacher:ce},{name:e=>`replace${e}Attributes`,attacher:le},{name:e=>`merge${e}Attributes`,attacher:ue},{name:e=>`update${e}Attributes`,attacher:de}];function pe(e){fe.forEach(function({name:t,attacher:n}){n(e,t(`Node`),0),n(e,t(`Source`),1),n(e,t(`Target`),2),n(e,t(`Opposite`),3)})}function me(e,t,n){e.prototype[t]=function(e,r){let i;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=``+e,o=``+r;if(r=arguments[2],i=_(this,a,o,n),!i)throw new D(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,i=this._edges.get(e),!i)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}return i.attributes[r]}}function he(e,t,n){e.prototype[t]=function(e){let r;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let i=``+e,a=``+arguments[1];if(r=_(this,i,a,n),!r)throw new D(`Graph.${t}: could not find an edge for the given path ("${i}" - "${a}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,r=this._edges.get(e),!r)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}return r.attributes}}function ge(e,t,n){e.prototype[t]=function(e,r){let i;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=``+e,o=``+r;if(r=arguments[2],i=_(this,a,o,n),!i)throw new D(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,i=this._edges.get(e),!i)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}return i.attributes.hasOwnProperty(r)}}function _e(e,t,n){e.prototype[t]=function(e,r,i){let a;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let o=``+e,s=``+r;if(r=arguments[2],i=arguments[3],a=_(this,o,s,n),!a)throw new D(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,a=this._edges.get(e),!a)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}return a.attributes[r]=i,this.emit(`edgeAttributesUpdated`,{key:a.key,type:`set`,attributes:a.attributes,name:r}),this}}function ve(e,t,n){e.prototype[t]=function(e,r,i){let a;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let o=``+e,s=``+r;if(r=arguments[2],i=arguments[3],a=_(this,o,s,n),!a)throw new D(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,a=this._edges.get(e),!a)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}if(typeof i!=`function`)throw new E(`Graph.${t}: updater should be a function.`);return a.attributes[r]=i(a.attributes[r]),this.emit(`edgeAttributesUpdated`,{key:a.key,type:`set`,attributes:a.attributes,name:r}),this}}function ye(e,t,n){e.prototype[t]=function(e,r){let i;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=``+e,o=``+r;if(r=arguments[2],i=_(this,a,o,n),!i)throw new D(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,i=this._edges.get(e),!i)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}return delete i.attributes[r],this.emit(`edgeAttributesUpdated`,{key:i.key,type:`remove`,attributes:i.attributes,name:r}),this}}function be(e,t,n){e.prototype[t]=function(e,r){let i;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=``+e,o=``+r;if(r=arguments[2],i=_(this,a,o,n),!i)throw new D(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,i=this._edges.get(e),!i)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}if(!v(r))throw new E(`Graph.${t}: provided attributes are not a plain object.`);return i.attributes=r,this.emit(`edgeAttributesUpdated`,{key:i.key,type:`replace`,attributes:i.attributes}),this}}function xe(e,t,n){e.prototype[t]=function(e,r){let i;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=``+e,o=``+r;if(r=arguments[2],i=_(this,a,o,n),!i)throw new D(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,i=this._edges.get(e),!i)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}if(!v(r))throw new E(`Graph.${t}: provided attributes are not a plain object.`);return g(i.attributes,r),this.emit(`edgeAttributesUpdated`,{key:i.key,type:`merge`,attributes:i.attributes,data:r}),this}}function Se(e,t,n){e.prototype[t]=function(e,r){let i;if(this.type!==`mixed`&&n!==`mixed`&&n!==this.type)throw new O(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new O(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=``+e,o=``+r;if(r=arguments[2],i=_(this,a,o,n),!i)throw new D(`Graph.${t}: could not find an edge for the given path ("${a}" - "${o}").`)}else{if(n!==`mixed`)throw new O(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(e=``+e,i=this._edges.get(e),!i)throw new D(`Graph.${t}: could not find the "${e}" edge in the graph.`)}if(typeof r!=`function`)throw new E(`Graph.${t}: provided updater is not a function.`);return i.attributes=r(i.attributes),this.emit(`edgeAttributesUpdated`,{key:i.key,type:`update`,attributes:i.attributes}),this}}let Ce=[{name:e=>`get${e}Attribute`,attacher:me},{name:e=>`get${e}Attributes`,attacher:he},{name:e=>`has${e}Attribute`,attacher:ge},{name:e=>`set${e}Attribute`,attacher:_e},{name:e=>`update${e}Attribute`,attacher:ve},{name:e=>`remove${e}Attribute`,attacher:ye},{name:e=>`replace${e}Attributes`,attacher:be},{name:e=>`merge${e}Attributes`,attacher:xe},{name:e=>`update${e}Attributes`,attacher:Se}];function we(e){Ce.forEach(function({name:t,attacher:n}){n(e,t(`Edge`),`mixed`),n(e,t(`DirectedEdge`),`directed`),n(e,t(`UndirectedEdge`),`undirected`)})}let Te=[{name:`edges`,type:`mixed`},{name:`inEdges`,type:`directed`,direction:`in`},{name:`outEdges`,type:`directed`,direction:`out`},{name:`inboundEdges`,type:`mixed`,direction:`in`},{name:`outboundEdges`,type:`mixed`,direction:`out`},{name:`directedEdges`,type:`directed`},{name:`undirectedEdges`,type:`undirected`}];function Ee(e,t,n,r){let i=!1;for(let a in t){if(a===r)continue;let o=t[a];if(i=n(o.key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected),e&&i)return o.key}}function De(e,t,n,r){let i,a,o,s=!1;for(let c in t)if(c!==r){i=t[c];do{if(a=i.source,o=i.target,s=n(i.key,i.attributes,a.key,o.key,a.attributes,o.attributes,i.undirected),e&&s)return i.key;i=i.next}while(i!==void 0)}}function Oe(e,t){let n=Object.keys(e),r=n.length,i,a=0;return{[Symbol.iterator](){return this},next(){do if(i)i=i.next;else{if(a>=r)return{done:!0};let o=n[a++];if(o===t){i=void 0;continue}i=e[o]}while(!i);return{done:!1,value:{edge:i.key,attributes:i.attributes,source:i.source.key,target:i.target.key,sourceAttributes:i.source.attributes,targetAttributes:i.target.attributes,undirected:i.undirected}}}}}function ke(e,t,n,r){let i=t[n];if(!i)return;let a=i.source,o=i.target;if(r(i.key,i.attributes,a.key,o.key,a.attributes,o.attributes,i.undirected)&&e)return i.key}function Ae(e,t,n,r){let i=t[n];if(!i)return;let a=!1;do{if(a=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&a)return i.key;i=i.next}while(i!==void 0)}function je(e,t){let n=e[t];if(n.next!==void 0)return{[Symbol.iterator](){return this},next(){if(!n)return{done:!0};let e={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:e}}};let r=!1;return{[Symbol.iterator](){return this},next(){return r===!0?{done:!0}:(r=!0,{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}})}}}function Me(e,t){if(e.size===0)return[];if(t===`mixed`||t===e.type)return Array.from(e._edges.keys());let n=t===`undirected`?e.undirectedSize:e.directedSize,r=Array(n),i=t===`undirected`,a=e._edges.values(),o=0,s,c;for(;s=a.next(),s.done!==!0;)c=s.value,c.undirected===i&&(r[o++]=c.key);return r}function Ne(e,t,n,r){if(t.size===0)return;let i=n!==`mixed`&&n!==t.type,a=n===`undirected`,o,s,c=!1,l=t._edges.values();for(;o=l.next(),o.done!==!0;){if(s=o.value,i&&s.undirected!==a)continue;let{key:t,attributes:n,source:l,target:u}=s;if(c=r(t,n,l.key,u.key,l.attributes,u.attributes,s.undirected),e&&c)return t}}function Pe(e,t){if(e.size===0)return w();let n=t!==`mixed`&&t!==e.type,r=t===`undirected`,i=e._edges.values();return{[Symbol.iterator](){return this},next(){let e,t;for(;;){if(e=i.next(),e.done)return e;if(t=e.value,!(n&&t.undirected!==r))break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}}}function Fe(e,t,n,r,i,a){let o=t?De:Ee,s;if(n!==`undirected`&&(r!==`out`&&(s=o(e,i.in,a),e&&s)||r!==`in`&&(s=o(e,i.out,a,r?void 0:i.key),e&&s))||n!==`directed`&&(s=o(e,i.undirected,a),e&&s))return s}function Ie(e,t,n,r){let i=[];return Fe(!1,e,t,n,r,function(e){i.push(e)}),i}function Le(e,t,n){let r=w();return e!==`undirected`&&(t!==`out`&&n.in!==void 0&&(r=C(r,Oe(n.in))),t!==`in`&&n.out!==void 0&&(r=C(r,Oe(n.out,t?void 0:n.key)))),e!==`directed`&&n.undirected!==void 0&&(r=C(r,Oe(n.undirected))),r}function Re(e,t,n,r,i,a,o){let s=n?Ae:ke,c;if(t!==`undirected`&&(i.in!==void 0&&r!==`out`&&(c=s(e,i.in,a,o),e&&c)||i.out!==void 0&&r!==`in`&&(r||i.key!==a)&&(c=s(e,i.out,a,o),e&&c))||t!==`directed`&&i.undirected!==void 0&&(c=s(e,i.undirected,a,o),e&&c))return c}function ze(e,t,n,r,i){let a=[];return Re(!1,e,t,n,r,i,function(e){a.push(e)}),a}function Be(e,t,n,r){let i=w();return e!==`undirected`&&(n.in!==void 0&&t!==`out`&&r in n.in&&(i=C(i,je(n.in,r))),n.out!==void 0&&t!==`in`&&r in n.out&&(t||n.key!==r)&&(i=C(i,je(n.out,r)))),e!==`directed`&&n.undirected!==void 0&&r in n.undirected&&(i=C(i,je(n.undirected,r))),i}function Ve(e,t){let{name:n,type:r,direction:i}=t;e.prototype[n]=function(e,t){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return[];if(!arguments.length)return Me(this,r);if(arguments.length===1){e=``+e;let t=this._nodes.get(e);if(t===void 0)throw new D(`Graph.${n}: could not find the "${e}" node in the graph.`);return Ie(this.multi,r===`mixed`?this.type:r,i,t)}if(arguments.length===2){e=``+e,t=``+t;let a=this._nodes.get(e);if(!a)throw new D(`Graph.${n}: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.${n}: could not find the "${t}" target node in the graph.`);return ze(r,this.multi,i,a,t)}throw new E(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function He(e,t){let{name:n,type:r,direction:i}=t,a=`forEach`+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(e,t,n){if(!(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)){if(arguments.length===1)return n=e,Ne(!1,this,r,n);if(arguments.length===2){e=``+e,n=t;let o=this._nodes.get(e);if(o===void 0)throw new D(`Graph.${a}: could not find the "${e}" node in the graph.`);return Fe(!1,this.multi,r===`mixed`?this.type:r,i,o,n)}if(arguments.length===3){e=``+e,t=``+t;let o=this._nodes.get(e);if(!o)throw new D(`Graph.${a}: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.${a}: could not find the "${t}" target node in the graph.`);return Re(!1,r,this.multi,i,o,t,n)}throw new E(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};let o=`map`+n[0].toUpperCase()+n.slice(1);e.prototype[o]=function(){let e=Array.prototype.slice.call(arguments),t=e.pop(),n;if(e.length===0){let i=0;r!==`directed`&&(i+=this.undirectedSize),r!==`undirected`&&(i+=this.directedSize),n=Array(i);let a=0;e.push((e,r,i,o,s,c,l)=>{n[a++]=t(e,r,i,o,s,c,l)})}else n=[],e.push((e,r,i,a,o,s,c)=>{n.push(t(e,r,i,a,o,s,c))});return this[a].apply(this,e),n};let s=`filter`+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){let e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((e,r,i,a,o,s,c)=>{t(e,r,i,a,o,s,c)&&n.push(e)}),this[a].apply(this,e),n};let c=`reduce`+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(){let e=Array.prototype.slice.call(arguments);if(e.length<2||e.length>4)throw new E(`Graph.${c}: invalid number of arguments (expecting 2, 3 or 4 and got ${e.length}).`);if(typeof e[e.length-1]==`function`&&typeof e[e.length-2]!=`function`)throw new E(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let t,n;e.length===2?(t=e[0],n=e[1],e=[]):e.length===3?(t=e[1],n=e[2],e=[e[0]]):e.length===4&&(t=e[2],n=e[3],e=[e[0],e[1]]);let r=n;return e.push((e,n,i,a,o,s,c)=>{r=t(r,e,n,i,a,o,s,c)}),this[a].apply(this,e),r}}function Ue(e,t){let{name:n,type:r,direction:i}=t,a=`find`+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(e,t,n){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return!1;if(arguments.length===1)return n=e,Ne(!0,this,r,n);if(arguments.length===2){e=``+e,n=t;let o=this._nodes.get(e);if(o===void 0)throw new D(`Graph.${a}: could not find the "${e}" node in the graph.`);return Fe(!0,this.multi,r===`mixed`?this.type:r,i,o,n)}if(arguments.length===3){e=``+e,t=``+t;let o=this._nodes.get(e);if(!o)throw new D(`Graph.${a}: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.${a}: could not find the "${t}" target node in the graph.`);return Re(!0,r,this.multi,i,o,t,n)}throw new E(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};let o=`some`+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(){let e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((e,n,r,i,a,o,s)=>t(e,n,r,i,a,o,s)),!!this[a].apply(this,e)};let s=`every`+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){let e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((e,n,r,i,a,o,s)=>!t(e,n,r,i,a,o,s)),!this[a].apply(this,e)}}function We(e,t){let{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+`Entries`;e.prototype[a]=function(e,t){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return w();if(!arguments.length)return Pe(this,r);if(arguments.length===1){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.${a}: could not find the "${e}" node in the graph.`);return Le(r,i,t)}if(arguments.length===2){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.${a}: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.${a}: could not find the "${t}" target node in the graph.`);return Be(r,i,n,t)}throw new E(`Graph.${a}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function Ge(e){Te.forEach(t=>{Ve(e,t),He(e,t),Ue(e,t),We(e,t)})}let Ke=[{name:`neighbors`,type:`mixed`},{name:`inNeighbors`,type:`directed`,direction:`in`},{name:`outNeighbors`,type:`directed`,direction:`out`},{name:`inboundNeighbors`,type:`mixed`,direction:`in`},{name:`outboundNeighbors`,type:`mixed`,direction:`out`},{name:`directedNeighbors`,type:`directed`},{name:`undirectedNeighbors`,type:`undirected`}];function qe(){this.A=null,this.B=null}qe.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)},qe.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};function M(e,t,n,r,i){for(let a in r){let o=r[a],s=o.source,c=o.target,l=s===n?c:s;if(t&&t.has(l.key))continue;let u=i(l.key,l.attributes);if(e&&u)return l.key}}function Je(e,t,n,r,i){if(t!==`mixed`){if(t===`undirected`)return M(e,null,r,r.undirected,i);if(typeof n==`string`)return M(e,null,r,r[n],i)}let a=new qe,o;if(t!==`undirected`){if(n!==`out`){if(o=M(e,null,r,r.in,i),e&&o)return o;a.wrap(r.in)}if(n!==`in`){if(o=M(e,a,r,r.out,i),e&&o)return o;a.wrap(r.out)}}if(t!==`directed`&&(o=M(e,a,r,r.undirected,i),e&&o))return o}function Ye(e,t,n){if(e!==`mixed`){if(e===`undirected`)return Object.keys(n.undirected);if(typeof t==`string`)return Object.keys(n[t])}let r=[];return Je(!1,e,t,n,function(e){r.push(e)}),r}function N(e,t,n){let r=Object.keys(n),i=r.length,a=0;return{[Symbol.iterator](){return this},next(){let o=null;do{if(a>=i)return e&&e.wrap(n),{done:!0};let s=n[r[a++]],c=s.source,l=s.target;if(o=c===t?l:c,e&&e.has(o.key)){o=null;continue}}while(o===null);return{done:!1,value:{neighbor:o.key,attributes:o.attributes}}}}}function Xe(e,t,n){if(e!==`mixed`){if(e===`undirected`)return N(null,n,n.undirected);if(typeof t==`string`)return N(null,n,n[t])}let r=w(),i=new qe;return e!==`undirected`&&(t!==`out`&&(r=C(r,N(i,n,n.in))),t!==`in`&&(r=C(r,N(i,n,n.out)))),e!==`directed`&&(r=C(r,N(i,n,n.undirected))),r}function Ze(e,t){let{name:n,type:r,direction:i}=t;e.prototype[n]=function(e){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return[];e=``+e;let t=this._nodes.get(e);if(t===void 0)throw new D(`Graph.${n}: could not find the "${e}" node in the graph.`);return Ye(r===`mixed`?this.type:r,i,t)}}function Qe(e,t){let{name:n,type:r,direction:i}=t,a=`forEach`+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(e,t){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return;e=``+e;let n=this._nodes.get(e);if(n===void 0)throw new D(`Graph.${a}: could not find the "${e}" node in the graph.`);Je(!1,r===`mixed`?this.type:r,i,n,t)};let o=`map`+n[0].toUpperCase()+n.slice(1);e.prototype[o]=function(e,t){let n=[];return this[a](e,(e,r)=>{n.push(t(e,r))}),n};let s=`filter`+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t){let n=[];return this[a](e,(e,r)=>{t(e,r)&&n.push(e)}),n};let c=`reduce`+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(e,t,n){if(arguments.length<3)throw new E(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let r=n;return this[a](e,(e,n)=>{r=t(r,e,n)}),r}}function $e(e,t){let{name:n,type:r,direction:i}=t,a=n[0].toUpperCase()+n.slice(1,-1),o=`find`+a;e.prototype[o]=function(e,t){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return;e=``+e;let n=this._nodes.get(e);if(n===void 0)throw new D(`Graph.${o}: could not find the "${e}" node in the graph.`);return Je(!0,r===`mixed`?this.type:r,i,n,t)};let s=`some`+a;e.prototype[s]=function(e,t){return!!this[o](e,t)};let c=`every`+a;e.prototype[c]=function(e,t){return!this[o](e,(e,n)=>!t(e,n))}}function et(e,t){let{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+`Entries`;e.prototype[a]=function(e){if(r!==`mixed`&&this.type!==`mixed`&&r!==this.type)return w();e=``+e;let t=this._nodes.get(e);if(t===void 0)throw new D(`Graph.${a}: could not find the "${e}" node in the graph.`);return Xe(r===`mixed`?this.type:r,i,t)}}function tt(e){Ke.forEach(t=>{Ze(e,t),Qe(e,t),$e(e,t),et(e,t)})}function P(e,t,n,r,i){let a=r._nodes.values(),o=r.type,s,c,l,u,d,f,p;for(;s=a.next(),s.done!==!0;){let r=!1;if(c=s.value,o!==`undirected`)for(l in u=c.out,u){d=u[l];do{if(f=d.target,r=!0,p=i(c.key,f.key,c.attributes,f.attributes,d.key,d.attributes,d.undirected),e&&p)return d;d=d.next}while(d)}if(o!==`directed`){for(l in u=c.undirected,u)if(!(t&&c.key>l)){d=u[l];do{if(f=d.target,f.key!==l&&(f=d.source),r=!0,p=i(c.key,f.key,c.attributes,f.attributes,d.key,d.attributes,d.undirected),e&&p)return d;d=d.next}while(d)}}if(n&&!r&&(p=i(c.key,null,c.attributes,null,null,null,null),e&&p))return null}}function nt(e,t){let n={key:e};return y(t.attributes)||(n.attributes=g({},t.attributes)),n}function rt(e,t,n){let r={key:t,source:n.source.key,target:n.target.key};return y(n.attributes)||(r.attributes=g({},n.attributes)),e===`mixed`&&n.undirected&&(r.undirected=!0),r}function it(e){if(!v(e))throw new E(`Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.`);if(!(`key`in e))throw new E(`Graph.import: serialized node is missing its key.`);if(`attributes`in e&&(!v(e.attributes)||e.attributes===null))throw new E(`Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.`)}function at(e){if(!v(e))throw new E(`Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.`);if(!(`source`in e))throw new E(`Graph.import: serialized edge is missing its source.`);if(!(`target`in e))throw new E(`Graph.import: serialized edge is missing its target.`);if(`attributes`in e&&(!v(e.attributes)||e.attributes===null))throw new E(`Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.`);if(`undirected`in e&&typeof e.undirected!=`boolean`)throw new E(`Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.`)}let ot=S(),st=new Set([`directed`,`undirected`,`mixed`]),ct=new Set([`domain`,`_events`,`_eventsCount`,`_maxListeners`]),lt=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:`directed`},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:`undirected`},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:`directed`},{name:e=>`${e}UndirectedEdgeWithKey`,type:`undirected`}],ut={allowSelfLoops:!0,multi:!1,type:`mixed`};function dt(e,t,n){if(n&&!v(n))throw new E(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=``+t,n||={},e._nodes.has(t))throw new O(`Graph.addNode: the "${t}" node already exist in the graph.`);let r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit(`nodeAdded`,{key:t,attributes:n}),r}function ft(e,t,n){let r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit(`nodeAdded`,{key:t,attributes:n}),r}function pt(e,t,n,r,i,a,o,s){if(!r&&e.type===`undirected`)throw new O(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type===`directed`)throw new O(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(s&&!v(s))throw new E(`Graph.${t}: invalid attributes. Expecting an object but got "${s}"`);if(a=``+a,o=``+o,s||={},!e.allowSelfLoops&&a===o)throw new O(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let c=e._nodes.get(a),l=e._nodes.get(o);if(!c)throw new D(`Graph.${t}: source node "${a}" not found.`);if(!l)throw new D(`Graph.${t}: target node "${o}" not found.`);let u={key:null,undirected:r,source:a,target:o,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=``+i,e._edges.has(i))throw new O(`Graph.${t}: the "${i}" edge already exists in the graph.`);if(!e.multi&&(r?c.undirected[o]!==void 0:c.out[o]!==void 0))throw new O(`Graph.${t}: an edge linking "${a}" to "${o}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);let d=new A(r,i,c,l,s);e._edges.set(i,d);let f=a===o;return r?(c.undirectedDegree++,l.undirectedDegree++,f&&(c.undirectedLoops++,e._undirectedSelfLoopCount++)):(c.outDegree++,l.inDegree++,f&&(c.directedLoops++,e._directedSelfLoopCount++)),e.multi?d.attachMulti():d.attach(),r?e._undirectedSize++:e._directedSize++,u.key=i,e.emit(`edgeAdded`,u),i}function mt(e,t,n,r,i,a,o,s,c){if(!r&&e.type===`undirected`)throw new O(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type===`directed`)throw new O(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(s){if(c){if(typeof s!=`function`)throw new E(`Graph.${t}: invalid updater function. Expecting a function but got "${s}"`)}else if(!v(s))throw new E(`Graph.${t}: invalid attributes. Expecting an object but got "${s}"`)}a=``+a,o=``+o;let l;if(c&&(l=s,s=void 0),!e.allowSelfLoops&&a===o)throw new O(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let u=e._nodes.get(a),d=e._nodes.get(o),f,p;if(!n&&(f=e._edges.get(i),f)){if((f.source.key!==a||f.target.key!==o)&&(!r||f.source.key!==o||f.target.key!==a))throw new O(`Graph.${t}: inconsistency detected when attempting to merge the "${i}" edge with "${a}" source & "${o}" target vs. ("${f.source.key}", "${f.target.key}").`);p=f}if(!p&&!e.multi&&u&&(p=r?u.undirected[o]:u.out[o]),p){let t=[p.key,!1,!1,!1];if(c?!l:!s)return t;if(c){let t=p.attributes;p.attributes=l(t),e.emit(`edgeAttributesUpdated`,{type:`replace`,key:p.key,attributes:p.attributes})}else g(p.attributes,s),e.emit(`edgeAttributesUpdated`,{type:`merge`,key:p.key,attributes:p.attributes,data:s});return t}s||={},c&&l&&(s=l(s));let m={key:null,undirected:r,source:a,target:o,attributes:s};if(n)i=e._edgeKeyGenerator();else if(i=``+i,e._edges.has(i))throw new O(`Graph.${t}: the "${i}" edge already exists in the graph.`);let h=!1,_=!1;u||(u=ft(e,a,{}),h=!0,a===o&&(d=u,_=!0)),d||(d=ft(e,o,{}),_=!0),f=new A(r,i,u,d,s),e._edges.set(i,f);let y=a===o;return r?(u.undirectedDegree++,d.undirectedDegree++,y&&(u.undirectedLoops++,e._undirectedSelfLoopCount++)):(u.outDegree++,d.inDegree++,y&&(u.directedLoops++,e._directedSelfLoopCount++)),e.multi?f.attachMulti():f.attach(),r?e._undirectedSize++:e._directedSize++,m.key=i,e.emit(`edgeAdded`,m),[i,!0,h,_]}function F(e,t){e._edges.delete(t.key);let{source:n,target:r,attributes:i}=t,a=t.undirected,o=n===r;a?(n.undirectedDegree--,r.undirectedDegree--,o&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,o&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),a?e._undirectedSize--:e._directedSize--,e.emit(`edgeDropped`,{key:t.key,attributes:i,source:n.key,target:r.key,undirected:a})}var I=class e extends m.EventEmitter{constructor(e){if(super(),e=g({},ut,e),typeof e.multi!=`boolean`)throw new E(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${e.multi}".`);if(!st.has(e.type))throw new E(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${e.type}".`);if(typeof e.allowSelfLoops!=`boolean`)throw new E(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${e.allowSelfLoops}".`);let t=e.type===`mixed`?k:e.type===`directed`?te:ne;b(this,`NodeDataClass`,t);let n=`geid_`+ot()+`_`,r=0;b(this,`_attributes`,{}),b(this,`_nodes`,new Map),b(this,`_edges`,new Map),b(this,`_directedSize`,0),b(this,`_undirectedSize`,0),b(this,`_directedSelfLoopCount`,0),b(this,`_undirectedSelfLoopCount`,0),b(this,`_edgeKeyGenerator`,()=>{let e;do e=n+ r++;while(this._edges.has(e));return e}),b(this,`_options`,e),ct.forEach(e=>b(this,e,this[e])),x(this,`order`,()=>this._nodes.size),x(this,`size`,()=>this._edges.size),x(this,`directedSize`,()=>this._directedSize),x(this,`undirectedSize`,()=>this._undirectedSize),x(this,`selfLoopCount`,()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),x(this,`directedSelfLoopCount`,()=>this._directedSelfLoopCount),x(this,`undirectedSelfLoopCount`,()=>this._undirectedSelfLoopCount),x(this,`multi`,this._options.multi),x(this,`type`,this._options.type),x(this,`allowSelfLoops`,this._options.allowSelfLoops),x(this,`implementation`,()=>`graphology`)}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(e){return this._nodes.has(``+e)}hasDirectedEdge(e,t){if(this.type===`undirected`)return!1;if(arguments.length===1){let t=``+e,n=this._edges.get(t);return!!n&&!n.undirected}else if(arguments.length===2){e=``+e,t=``+t;let n=this._nodes.get(e);return n?n.out.hasOwnProperty(t):!1}throw new E(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(e,t){if(this.type===`directed`)return!1;if(arguments.length===1){let t=``+e,n=this._edges.get(t);return!!n&&n.undirected}else if(arguments.length===2){e=``+e,t=``+t;let n=this._nodes.get(e);return n?n.undirected.hasOwnProperty(t):!1}throw new E(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(e,t){if(arguments.length===1){let t=``+e;return this._edges.has(t)}else if(arguments.length===2){e=``+e,t=``+t;let n=this._nodes.get(e);return n?n.out!==void 0&&n.out.hasOwnProperty(t)||n.undirected!==void 0&&n.undirected.hasOwnProperty(t):!1}throw new E(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(e,t){if(this.type===`undirected`)return;if(e=``+e,t=``+t,this.multi)throw new O(`Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.`);let n=this._nodes.get(e);if(!n)throw new D(`Graph.directedEdge: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.directedEdge: could not find the "${t}" target node in the graph.`);let r=n.out&&n.out[t]||void 0;if(r)return r.key}undirectedEdge(e,t){if(this.type===`directed`)return;if(e=``+e,t=``+t,this.multi)throw new O(`Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.`);let n=this._nodes.get(e);if(!n)throw new D(`Graph.undirectedEdge: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.undirectedEdge: could not find the "${t}" target node in the graph.`);let r=n.undirected&&n.undirected[t]||void 0;if(r)return r.key}edge(e,t){if(this.multi)throw new O(`Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.`);e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.edge: could not find the "${e}" source node in the graph.`);if(!this._nodes.has(t))throw new D(`Graph.edge: could not find the "${t}" target node in the graph.`);let r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key}areDirectedNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areDirectedNeighbors: could not find the "${e}" node in the graph.`);return this.type===`undirected`?!1:t in n.in||t in n.out}areOutNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areOutNeighbors: could not find the "${e}" node in the graph.`);return this.type===`undirected`?!1:t in n.out}areInNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areInNeighbors: could not find the "${e}" node in the graph.`);return this.type===`undirected`?!1:t in n.in}areUndirectedNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areUndirectedNeighbors: could not find the "${e}" node in the graph.`);return this.type===`directed`?!1:t in n.undirected}areNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areNeighbors: could not find the "${e}" node in the graph.`);return this.type!==`undirected`&&(t in n.in||t in n.out)||this.type!==`directed`&&t in n.undirected}areInboundNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areInboundNeighbors: could not find the "${e}" node in the graph.`);return this.type!==`undirected`&&t in n.in||this.type!==`directed`&&t in n.undirected}areOutboundNeighbors(e,t){e=``+e,t=``+t;let n=this._nodes.get(e);if(!n)throw new D(`Graph.areOutboundNeighbors: could not find the "${e}" node in the graph.`);return this.type!==`undirected`&&t in n.out||this.type!==`directed`&&t in n.undirected}inDegree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.inDegree: could not find the "${e}" node in the graph.`);return this.type===`undirected`?0:t.inDegree}outDegree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.outDegree: could not find the "${e}" node in the graph.`);return this.type===`undirected`?0:t.outDegree}directedDegree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.directedDegree: could not find the "${e}" node in the graph.`);return this.type===`undirected`?0:t.inDegree+t.outDegree}undirectedDegree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.undirectedDegree: could not find the "${e}" node in the graph.`);return this.type===`directed`?0:t.undirectedDegree}inboundDegree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.inboundDegree: could not find the "${e}" node in the graph.`);let n=0;return this.type!==`directed`&&(n+=t.undirectedDegree),this.type!==`undirected`&&(n+=t.inDegree),n}outboundDegree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.outboundDegree: could not find the "${e}" node in the graph.`);let n=0;return this.type!==`directed`&&(n+=t.undirectedDegree),this.type!==`undirected`&&(n+=t.outDegree),n}degree(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.degree: could not find the "${e}" node in the graph.`);let n=0;return this.type!==`directed`&&(n+=t.undirectedDegree),this.type!==`undirected`&&(n+=t.inDegree+t.outDegree),n}inDegreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.inDegreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);return this.type===`undirected`?0:t.inDegree-t.directedLoops}outDegreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.outDegreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);return this.type===`undirected`?0:t.outDegree-t.directedLoops}directedDegreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.directedDegreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);return this.type===`undirected`?0:t.inDegree+t.outDegree-t.directedLoops*2}undirectedDegreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);return this.type===`directed`?0:t.undirectedDegree-t.undirectedLoops*2}inboundDegreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);let n=0,r=0;return this.type!==`directed`&&(n+=t.undirectedDegree,r+=t.undirectedLoops*2),this.type!==`undirected`&&(n+=t.inDegree,r+=t.directedLoops),n-r}outboundDegreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);let n=0,r=0;return this.type!==`directed`&&(n+=t.undirectedDegree,r+=t.undirectedLoops*2),this.type!==`undirected`&&(n+=t.outDegree,r+=t.directedLoops),n-r}degreeWithoutSelfLoops(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.degreeWithoutSelfLoops: could not find the "${e}" node in the graph.`);let n=0,r=0;return this.type!==`directed`&&(n+=t.undirectedDegree,r+=t.undirectedLoops*2),this.type!==`undirected`&&(n+=t.inDegree+t.outDegree,r+=t.directedLoops*2),n-r}source(e){e=``+e;let t=this._edges.get(e);if(!t)throw new D(`Graph.source: could not find the "${e}" edge in the graph.`);return t.source.key}target(e){e=``+e;let t=this._edges.get(e);if(!t)throw new D(`Graph.target: could not find the "${e}" edge in the graph.`);return t.target.key}extremities(e){e=``+e;let t=this._edges.get(e);if(!t)throw new D(`Graph.extremities: could not find the "${e}" edge in the graph.`);return[t.source.key,t.target.key]}opposite(e,t){e=``+e,t=``+t;let n=this._edges.get(t);if(!n)throw new D(`Graph.opposite: could not find the "${t}" edge in the graph.`);let r=n.source.key,i=n.target.key;if(e===r)return i;if(e===i)return r;throw new D(`Graph.opposite: the "${e}" node is not attached to the "${t}" edge (${r}, ${i}).`)}hasExtremity(e,t){e=``+e,t=``+t;let n=this._edges.get(e);if(!n)throw new D(`Graph.hasExtremity: could not find the "${e}" edge in the graph.`);return n.source.key===t||n.target.key===t}isUndirected(e){e=``+e;let t=this._edges.get(e);if(!t)throw new D(`Graph.isUndirected: could not find the "${e}" edge in the graph.`);return t.undirected}isDirected(e){e=``+e;let t=this._edges.get(e);if(!t)throw new D(`Graph.isDirected: could not find the "${e}" edge in the graph.`);return!t.undirected}isSelfLoop(e){e=``+e;let t=this._edges.get(e);if(!t)throw new D(`Graph.isSelfLoop: could not find the "${e}" edge in the graph.`);return t.source===t.target}addNode(e,t){return dt(this,e,t).key}mergeNode(e,t){if(t&&!v(t))throw new E(`Graph.mergeNode: invalid attributes. Expecting an object but got "${t}"`);e=``+e,t||={};let n=this._nodes.get(e);return n?(t&&(g(n.attributes,t),this.emit(`nodeAttributesUpdated`,{type:`merge`,key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit(`nodeAdded`,{key:e,attributes:t}),[e,!0])}updateNode(e,t){if(t&&typeof t!=`function`)throw new E(`Graph.updateNode: invalid updater function. Expecting a function but got "${t}"`);e=``+e;let n=this._nodes.get(e);if(n){if(t){let r=n.attributes;n.attributes=t(r),this.emit(`nodeAttributesUpdated`,{type:`replace`,key:e,attributes:n.attributes})}return[e,!1]}let r=t?t({}):{};return n=new this.NodeDataClass(e,r),this._nodes.set(e,n),this.emit(`nodeAdded`,{key:e,attributes:r}),[e,!0]}dropNode(e){e=``+e;let t=this._nodes.get(e);if(!t)throw new D(`Graph.dropNode: could not find the "${e}" node in the graph.`);let n;if(this.type!==`undirected`){for(let e in t.out){n=t.out[e];do F(this,n),n=n.next;while(n)}for(let e in t.in){n=t.in[e];do F(this,n),n=n.next;while(n)}}if(this.type!==`directed`)for(let e in t.undirected){n=t.undirected[e];do F(this,n),n=n.next;while(n)}this._nodes.delete(e),this.emit(`nodeDropped`,{key:e,attributes:t.attributes})}dropEdge(e){let t;if(arguments.length>1){let e=``+arguments[0],n=``+arguments[1];if(t=_(this,e,n,this.type),!t)throw new D(`Graph.dropEdge: could not find the "${e}" -> "${n}" edge in the graph.`)}else if(e=``+e,t=this._edges.get(e),!t)throw new D(`Graph.dropEdge: could not find the "${e}" edge in the graph.`);return F(this,t),this}dropDirectedEdge(e,t){if(arguments.length<2)throw new O(`Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.`);if(this.multi)throw new O(`Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.`);e=``+e,t=``+t;let n=_(this,e,t,`directed`);if(!n)throw new D(`Graph.dropDirectedEdge: could not find a "${e}" -> "${t}" edge in the graph.`);return F(this,n),this}dropUndirectedEdge(e,t){if(arguments.length<2)throw new O(`Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.`);if(this.multi)throw new O(`Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.`);let n=_(this,e,t,`undirected`);if(!n)throw new D(`Graph.dropUndirectedEdge: could not find a "${e}" -> "${t}" edge in the graph.`);return F(this,n),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit(`cleared`)}clearEdges(){let e=this._nodes.values(),t;for(;t=e.next(),t.done!==!0;)t.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit(`edgesCleared`)}getAttribute(e){return this._attributes[e]}getAttributes(){return this._attributes}hasAttribute(e){return this._attributes.hasOwnProperty(e)}setAttribute(e,t){return this._attributes[e]=t,this.emit(`attributesUpdated`,{type:`set`,attributes:this._attributes,name:e}),this}updateAttribute(e,t){if(typeof t!=`function`)throw new E(`Graph.updateAttribute: updater should be a function.`);let n=this._attributes[e];return this._attributes[e]=t(n),this.emit(`attributesUpdated`,{type:`set`,attributes:this._attributes,name:e}),this}removeAttribute(e){return delete this._attributes[e],this.emit(`attributesUpdated`,{type:`remove`,attributes:this._attributes,name:e}),this}replaceAttributes(e){if(!v(e))throw new E(`Graph.replaceAttributes: provided attributes are not a plain object.`);return this._attributes=e,this.emit(`attributesUpdated`,{type:`replace`,attributes:this._attributes}),this}mergeAttributes(e){if(!v(e))throw new E(`Graph.mergeAttributes: provided attributes are not a plain object.`);return g(this._attributes,e),this.emit(`attributesUpdated`,{type:`merge`,attributes:this._attributes,data:e}),this}updateAttributes(e){if(typeof e!=`function`)throw new E(`Graph.updateAttributes: provided updater is not a function.`);return this._attributes=e(this._attributes),this.emit(`attributesUpdated`,{type:`update`,attributes:this._attributes}),this}updateEachNodeAttributes(e,t){if(typeof e!=`function`)throw new E(`Graph.updateEachNodeAttributes: expecting an updater function.`);if(t&&!ee(t))throw new E(`Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}`);let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)i=r.value,i.attributes=e(i.key,i.attributes);this.emit(`eachNodeAttributesUpdated`,{hints:t||null})}updateEachEdgeAttributes(e,t){if(typeof e!=`function`)throw new E(`Graph.updateEachEdgeAttributes: expecting an updater function.`);if(t&&!ee(t))throw new E(`Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}`);let n=this._edges.values(),r,i,a,o;for(;r=n.next(),r.done!==!0;)i=r.value,a=i.source,o=i.target,i.attributes=e(i.key,i.attributes,a.key,o.key,a.attributes,o.attributes,i.undirected);this.emit(`eachEdgeAttributesUpdated`,{hints:t||null})}forEachAdjacencyEntry(e){if(typeof e!=`function`)throw new E(`Graph.forEachAdjacencyEntry: expecting a callback.`);P(!1,!1,!1,this,e)}forEachAdjacencyEntryWithOrphans(e){if(typeof e!=`function`)throw new E(`Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.`);P(!1,!1,!0,this,e)}forEachAssymetricAdjacencyEntry(e){if(typeof e!=`function`)throw new E(`Graph.forEachAssymetricAdjacencyEntry: expecting a callback.`);P(!1,!0,!1,this,e)}forEachAssymetricAdjacencyEntryWithOrphans(e){if(typeof e!=`function`)throw new E(`Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.`);P(!1,!0,!0,this,e)}nodes(){return Array.from(this._nodes.keys())}forEachNode(e){if(typeof e!=`function`)throw new E(`Graph.forEachNode: expecting a callback.`);let t=this._nodes.values(),n,r;for(;n=t.next(),n.done!==!0;)r=n.value,e(r.key,r.attributes)}findNode(e){if(typeof e!=`function`)throw new E(`Graph.findNode: expecting a callback.`);let t=this._nodes.values(),n,r;for(;n=t.next(),n.done!==!0;)if(r=n.value,e(r.key,r.attributes))return r.key}mapNodes(e){if(typeof e!=`function`)throw new E(`Graph.mapNode: expecting a callback.`);let t=this._nodes.values(),n,r,i=Array(this.order),a=0;for(;n=t.next(),n.done!==!0;)r=n.value,i[a++]=e(r.key,r.attributes);return i}someNode(e){if(typeof e!=`function`)throw new E(`Graph.someNode: expecting a callback.`);let t=this._nodes.values(),n,r;for(;n=t.next(),n.done!==!0;)if(r=n.value,e(r.key,r.attributes))return!0;return!1}everyNode(e){if(typeof e!=`function`)throw new E(`Graph.everyNode: expecting a callback.`);let t=this._nodes.values(),n,r;for(;n=t.next(),n.done!==!0;)if(r=n.value,!e(r.key,r.attributes))return!1;return!0}filterNodes(e){if(typeof e!=`function`)throw new E(`Graph.filterNodes: expecting a callback.`);let t=this._nodes.values(),n,r,i=[];for(;n=t.next(),n.done!==!0;)r=n.value,e(r.key,r.attributes)&&i.push(r.key);return i}reduceNodes(e,t){if(typeof e!=`function`)throw new E(`Graph.reduceNodes: expecting a callback.`);if(arguments.length<2)throw new E(`Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let n=t,r=this._nodes.values(),i,a;for(;i=r.next(),i.done!==!0;)a=i.value,n=e(n,a.key,a.attributes);return n}nodeEntries(){let e=this._nodes.values();return{[Symbol.iterator](){return this},next(){let t=e.next();if(t.done)return t;let n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}}}export(){let e=Array(this._nodes.size),t=0;this._nodes.forEach((n,r)=>{e[t++]=nt(r,n)});let n=Array(this._edges.size);return t=0,this._edges.forEach((e,r)=>{n[t++]=rt(this.type,r,e)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:e,edges:n}}import(t,n=!1){if(t instanceof e)return t.forEachNode((e,t)=>{n?this.mergeNode(e,t):this.addNode(e,t)}),t.forEachEdge((e,t,r,i,a,o,s)=>{n?s?this.mergeUndirectedEdgeWithKey(e,r,i,t):this.mergeDirectedEdgeWithKey(e,r,i,t):s?this.addUndirectedEdgeWithKey(e,r,i,t):this.addDirectedEdgeWithKey(e,r,i,t)}),this;if(!v(t))throw new E(`Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.`);if(t.attributes){if(!v(t.attributes))throw new E(`Graph.import: invalid attributes. Expecting a plain object.`);n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,i,a,o,s;if(t.nodes){if(a=t.nodes,!Array.isArray(a))throw new E(`Graph.import: invalid nodes. Expecting an array.`);for(r=0,i=a.length;r<i;r++){o=a[r],it(o);let{key:e,attributes:t}=o;n?this.mergeNode(e,t):this.addNode(e,t)}}if(t.edges){let e=!1;if(this.type===`undirected`&&(e=!0),a=t.edges,!Array.isArray(a))throw new E(`Graph.import: invalid edges. Expecting an array.`);for(r=0,i=a.length;r<i;r++){s=a[r],at(s);let{source:t,target:i,attributes:o,undirected:c=e}=s,l;`key`in s?(l=n?c?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:c?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey,l.call(this,s.key,t,i,o)):(l=n?c?this.mergeUndirectedEdge:this.mergeDirectedEdge:c?this.addUndirectedEdge:this.addDirectedEdge,l.call(this,t,i,o))}}return this}nullCopy(t){let n=new e(g({},this._options,t));return n.replaceAttributes(g({},this.getAttributes())),n}emptyCopy(e){let t=this.nullCopy(e);return this._nodes.forEach((e,n)=>{let r=g({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)}),t}copy(e){if(e||={},typeof e.type==`string`&&e.type!==this.type&&e.type!==`mixed`)throw new O(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${e.type}" because this would mean losing information about the current graph.`);if(typeof e.multi==`boolean`&&e.multi!==this.multi&&e.multi!==!0)throw new O(`Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.`);if(typeof e.allowSelfLoops==`boolean`&&e.allowSelfLoops!==this.allowSelfLoops&&e.allowSelfLoops!==!0)throw new O(`Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.`);let t=this.emptyCopy(e),n=this._edges.values(),r,i;for(;r=n.next(),r.done!==!0;)i=r.value,pt(t,`copy`,!1,i.undirected,i.key,i.source.key,i.target.key,g({},i.attributes));return t}toJSON(){return this.export()}toString(){return`[object Graph]`}inspect(){let e={};this._nodes.forEach((t,n)=>{e[n]=t.attributes});let t={},n={};this._edges.forEach((e,r)=>{let i=e.undirected?`--`:`->`,a=``,o=e.source.key,s=e.target.key,c;e.undirected&&o>s&&(c=o,o=s,s=c);let l=`(${o})${i}(${s})`;r.startsWith(`geid_`)?this.multi&&(n[l]===void 0?n[l]=0:n[l]++,a+=`${n[l]}. `):a+=`[${r}]: `,a+=l,t[a]=e.attributes});let r={};for(let e in this)this.hasOwnProperty(e)&&!ct.has(e)&&typeof this[e]!=`function`&&typeof e!=`symbol`&&(r[e]=this[e]);return r.attributes=this._attributes,r.nodes=e,r.edges=t,b(r,`constructor`,this.constructor),r}};typeof Symbol<`u`&&(I.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=I.prototype.inspect),lt.forEach(e=>{[`add`,`merge`,`update`].forEach(t=>{let n=e.name(t),r=t===`add`?pt:mt;e.generateKey?I.prototype[n]=function(i,a,o){return r(this,n,!0,(e.type||this.type)===`undirected`,null,i,a,o,t===`update`)}:I.prototype[n]=function(i,a,o,s){return r(this,n,!1,(e.type||this.type)===`undirected`,i,a,o,s,t===`update`)}})}),pe(I),we(I),Ge(I),tt(I);var L=class extends I{constructor(e){let t=g({type:`directed`},e);if(`multi`in t&&t.multi!==!1)throw new E(`DirectedGraph.from: inconsistent indication that the graph should be multi in given options!`);if(t.type!==`directed`)throw new E(`DirectedGraph.from: inconsistent "`+t.type+`" type in given options!`);super(t)}},ht=class extends I{constructor(e){let t=g({type:`undirected`},e);if(`multi`in t&&t.multi!==!1)throw new E(`UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!`);if(t.type!==`undirected`)throw new E(`UndirectedGraph.from: inconsistent "`+t.type+`" type in given options!`);super(t)}},gt=class extends I{constructor(e){let t=g({multi:!0},e);if(`multi`in t&&t.multi!==!0)throw new E(`MultiGraph.from: inconsistent indication that the graph should be simple in given options!`);super(t)}},_t=class extends I{constructor(e){let t=g({type:`directed`,multi:!0},e);if(`multi`in t&&t.multi!==!0)throw new E(`MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!`);if(t.type!==`directed`)throw new E(`MultiDirectedGraph.from: inconsistent "`+t.type+`" type in given options!`);super(t)}},vt=class extends I{constructor(e){let t=g({type:`undirected`,multi:!0},e);if(`multi`in t&&t.multi!==!0)throw new E(`MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!`);if(t.type!==`undirected`)throw new E(`MultiUndirectedGraph.from: inconsistent "`+t.type+`" type in given options!`);super(t)}};function R(e){e.from=function(t,n){let r=new e(g({},t.options,n));return r.import(t),r}}R(I),R(L),R(ht),R(gt),R(_t),R(vt),I.Graph=I,I.DirectedGraph=L,I.UndirectedGraph=ht,I.MultiGraph=gt,I.MultiDirectedGraph=_t,I.MultiUndirectedGraph=vt,I.InvalidArgumentsGraphError=E,I.NotFoundGraphError=D,I.UsageGraphError=O;var yt=e(((e,t)=>{t.exports=function(e){return typeof e==`object`&&!!e&&typeof e.addUndirectedEdgeWithKey==`function`&&typeof e.dropNode==`function`&&typeof e.multi==`boolean`}})),bt=e(((e,t)=>{let n=yt();t.exports=function(e){if(!n(e))throw Error(`graphology-dag/has-cycle: the given graph is not a valid graphology instance.`);if(e.size===0)return!1;if(e.selfLoopCount!==0)return!0;let t={},r=[];function i(e){let n=t[e];if(n===void 0)r.push(e);else if(n===0)return!0;return!1}return e.someNode(n=>{if(t[n]===1)return!1;for(r.push(n);r.length!==0;){let n=r[r.length-1],a=t[n];if(a!==0){if(t[n]=0,e.someOutboundNeighbor(n,i))return!0}else a===0&&(r.pop(),t[n]=1)}return!1})}})),xt=e(((e,t)=>{let n=yt();t.exports=function(e,t,r){if(!n(e))throw Error(`graphology-dag/will-create-cycle: the given graph is not a valid graphology instance.`);if(t=``+t,r=``+r,t===r)return!0;if(!e.hasNode(t)||!e.hasNode(r)||e.hasDirectedEdge(t,r))return!1;if(e.hasDirectedEdge(r,t))return!0;let i=e.outNeighbors(r);function a(e){i.push(e)}for(;i.length!==0;){let n=i.pop();if(n===t)return!0;e.forEachOutNeighbor(n,a)}return!1}})),St=e((e=>{e.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<`u`,e.SYMBOL_SUPPORT=typeof Symbol<`u`})),Ct=e(((e,t)=>{var n=St(),r=n.ARRAY_BUFFER_SUPPORT,i=n.SYMBOL_SUPPORT;t.exports=function(e,t){var n,a,o,s,c;if(!e)throw Error(`obliterator/forEach: invalid iterable.`);if(typeof t!=`function`)throw Error(`obliterator/forEach: expecting a callback.`);if(Array.isArray(e)||r&&ArrayBuffer.isView(e)||typeof e==`string`||e.toString()===`[object Arguments]`){for(o=0,s=e.length;o<s;o++)t(e[o],o);return}if(typeof e.forEach==`function`){e.forEach(t);return}if(i&&Symbol.iterator in e&&typeof e.next!=`function`&&(e=e[Symbol.iterator]()),typeof e.next==`function`){for(n=e,o=0;c=n.next(),c.done!==!0;)t(c.value,o),o++;return}for(a in e)e.hasOwnProperty(a)&&t(e[a],a)}})),wt=e((e=>{var t=2**8-1,n=2**16-1,r=2**32-1,i=2**7-1,a=2**15-1,o=2**31-1;e.getPointerArray=function(e){var i=e-1;if(i<=t)return Uint8Array;if(i<=n)return Uint16Array;if(i<=r)return Uint32Array;throw Error(`mnemonist: Pointer Array of size > 4294967295 is not supported.`)},e.getSignedPointerArray=function(e){var t=e-1;return t<=i?Int8Array:t<=a?Int16Array:t<=o?Int32Array:Float64Array},e.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var s={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(t,n){var r=null,i=0,a,o,c,l,u;for(l=0,u=t.length;l<u;l++)c=n?n(t[l]):t[l],o=e.getNumberType(c),a=s[o.name],a>i&&(i=a,r=o);return r},e.isTypedArray=function(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView(e)},e.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i},e.indices=function(t){for(var n=new(e.getPointerArray(t))(t),r=0;r<t;r++)n[r]=r;return n}})),Tt=e((e=>{var t=Ct(),n=wt();function r(e){return Array.isArray(e)||n.isTypedArray(e)}function i(e){if(typeof e.length==`number`)return e.length;if(typeof e.size==`number`)return e.size}function a(e){var n=i(e),r=typeof n==`number`?Array(n):[],a=0;return t(e,function(e){r[a++]=e}),r}function o(e){var r=i(e),a=typeof r==`number`?n.getPointerArray(r):Array,o=typeof r==`number`?Array(r):[],s=typeof r==`number`?new a(r):[],c=0;return t(e,function(e){o[c]=e,s[c]=c++}),[o,s]}e.isArrayLike=r,e.guessLength=i,e.toArray=a,e.toArrayWithIndices=o})),Et=e(((e,t)=>{function n(e){if(typeof e!=`function`)throw Error(`obliterator/iterator: expecting a function!`);this.next=e}typeof Symbol<`u`&&(n.prototype[Symbol.iterator]=function(){return this}),n.of=function(){var e=arguments,t=e.length,r=0;return new n(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})},n.empty=function(){return new n(function(){return{done:!0}})},n.fromSequence=function(e){var t=0,r=e.length;return new n(function(){return t>=r?{done:!0}:{done:!1,value:e[t++]}})},n.is=function(e){return e instanceof n?!0:typeof e==`object`&&!!e&&typeof e.next==`function`},t.exports=n})),Dt=e(((e,t)=>{var n=Tt(),r=Et();function i(e,t){if(arguments.length<2)throw Error(`mnemonist/fixed-deque: expecting an Array class and a capacity.`);if(typeof t!=`number`||t<=0)throw Error("mnemonist/fixed-deque: `capacity` should be a positive number.");this.ArrayClass=e,this.capacity=t,this.items=new e(this.capacity),this.clear()}i.prototype.clear=function(){this.start=0,this.size=0},i.prototype.push=function(e){if(this.size===this.capacity)throw Error(`mnemonist/fixed-deque.push: deque capacity (`+this.capacity+`) exceeded!`);var t=this.start+this.size;return t>=this.capacity&&(t-=this.capacity),this.items[t]=e,++this.size},i.prototype.unshift=function(e){if(this.size===this.capacity)throw Error(`mnemonist/fixed-deque.unshift: deque capacity (`+this.capacity+`) exceeded!`);var t=this.start-1;return this.start===0&&(t=this.capacity-1),this.items[t]=e,this.start=t,++this.size},i.prototype.pop=function(){if(this.size!==0){this.size--;var e=this.start+this.size;return e>=this.capacity&&(e-=this.capacity),this.items[e]}},i.prototype.shift=function(){if(this.size!==0){var e=this.start;return this.size--,this.start++,this.start===this.capacity&&(this.start=0),this.items[e]}},i.prototype.peekFirst=function(){if(this.size!==0)return this.items[this.start]},i.prototype.peekLast=function(){if(this.size!==0){var e=this.start+this.size-1;return e>=this.capacity&&(e-=this.capacity),this.items[e]}},i.prototype.get=function(e){if(!(this.size===0||e>=this.capacity))return e=this.start+e,e>=this.capacity&&(e-=this.capacity),this.items[e]},i.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=this.capacity,r=this.size,i=this.start,a=0;a<r;)e.call(t,this.items[i],a,this),i++,a++,i===n&&(i=0)},i.prototype.toArray=function(){var e=this.start+this.size;if(e<this.capacity)return this.items.slice(this.start,e);for(var t=new this.ArrayClass(this.size),n=this.capacity,r=this.size,i=this.start,a=0;a<r;)t[a]=this.items[i],i++,a++,i===n&&(i=0);return t},i.prototype.values=function(){var e=this.items,t=this.capacity,n=this.size,i=this.start,a=0;return new r(function(){if(a>=n)return{done:!0};var r=e[i];return i++,a++,i===t&&(i=0),{value:r,done:!1}})},i.prototype.entries=function(){var e=this.items,t=this.capacity,n=this.size,i=this.start,a=0;return new r(function(){if(a>=n)return{done:!0};var r=e[i];return i++,i===t&&(i=0),{value:[a++,r],done:!1}})},typeof Symbol<`u`&&(i.prototype[Symbol.iterator]=i.prototype.values),i.prototype.inspect=function(){var e=this.toArray();return e.type=this.ArrayClass.name,e.capacity=this.capacity,Object.defineProperty(e,`constructor`,{value:i,enumerable:!1}),e},typeof Symbol<`u`&&(i.prototype[Symbol.for(`nodejs.util.inspect.custom`)]=i.prototype.inspect),i.from=function(e,t,r){if(arguments.length<3&&(r=n.guessLength(e),typeof r!=`number`))throw Error(`mnemonist/fixed-deque.from: could not guess iterable length. Please provide desired capacity as last argument.`);var a=new i(t,r);if(n.isArrayLike(e)){var o,s;for(o=0,s=e.length;o<s;o++)a.items[o]=e[o];return a.size=s,a}return n.forEach(e,function(e){a.push(e)}),a},t.exports=i})),Ot=e((e=>{let t=yt(),n=Dt();function r(e,t){let n=0;return e.forEachInNeighbor(t,()=>{n++}),n}function i(e,i){if(!t(e))throw Error(`graphology-dag/topological-sort: the given graph is not a valid graphology instance.`);if(e.type===`undirected`||e.undirectedSize!==0)throw Error(`graphology-dag/topological-sort: cannot work if graph is not directed.`);if(e.order===0)return;let a=new n(Array,e.order),o={},s=0;e.forEachNode((t,n)=>{let i=e.multi?r(e,t):e.inDegree(t);i===0?a.push([t,n,0]):(o[t]=i,s+=i)});let c=0;function l(e,t){let n=--o[e];s--,n===0&&a.push([e,t,c+1]),o[e]=n}for(;a.size!==0;){let[t,n,r]=a.shift();c=r,i(t,n,r),e.forEachOutNeighbor(t,l)}if(s!==0)throw Error(`graphology-dag/topological-sort: given graph is not acyclic.`)}function a(e){if(!t(e))throw Error(`graphology-dag/topological-sort: the given graph is not a valid graphology instance.`);let n=Array(e.order),r=0;return i(e,e=>{n[r++]=e}),n}function o(e,n){if(!t(e))throw Error(`graphology-dag/topological-generations: the given graph is not a valid graphology instance.`);if(e.order===0)return;let r=0,a=[];i(e,(e,t,i)=>{i>r&&(n(a),r=i,a=[]),a.push(e)}),n(a)}function s(e){if(!t(e))throw Error(`graphology-dag/topological-generations: the given graph is not a valid graphology instance.`);let n=[];return o(e,e=>{n.push(e)}),n}e.topologicalSort=a,e.forEachNodeInTopologicalOrder=i,e.topologicalGenerations=s,e.forEachTopologicalGeneration=o})),kt=e((e=>{e.hasCycle=bt(),e.willCreateCycle=xt();let t=Ot();e.forEachNodeInTopologicalOrder=t.forEachNodeInTopologicalOrder,e.topologicalSort=t.topologicalSort,e.topologicalGenerations=t.topologicalGenerations,e.forEachTopologicalGeneration=t.forEachTopologicalGeneration}))();function At(e){let t=e.metadata;if(!t||!t.dbt_schema_version)return null;let n=t.dbt_schema_version.match(/\/manifest\/v(\d+)\.json$/);return n?parseInt(n[1],10):null}function jt(e){return e.metadata?.dbt_version||null}function Mt(e){let t=At(e);return t===null?!1:t>=10}function Nt(e){return{schema_version:At(e),dbt_version:jt(e),is_supported:Mt(e)}}function Pt(e){return e.metrics}function Ft(e){return e.semantic_models}function It(e){return e.unit_tests}var Lt=class{constructor(e){if(this.relationMap=new Map,!Mt(e)){let t=Nt(e);throw Error(`Unsupported dbt version. Schema version: ${t.schema_version||`unknown`}, dbt version: ${t.dbt_version||`unknown`}. Requires dbt 1.10+ (manifest schema v10+)`)}this.graph=new L,this.buildGraph(e)}buildGraph(e){this.addNodes(e),this.addEdges(e)}registerRelationName(e,t){t&&this.relationMap.set(t.toLowerCase(),e)}optionalString(e){return typeof e==`string`&&e!==``?e:void 0}optionalStringArray(e){return Array.isArray(e)?e:void 0}baseNodeAttributes(e,t){return{unique_id:e,name:this.optionalString(t.name)??e,package_name:this.optionalString(t.package_name)??``,path:this.optionalString(t.path),original_file_path:this.optionalString(t.original_file_path),tags:this.optionalStringArray(t.tags),description:this.optionalString(t.description)}}addManifestEntries(e,t,n){if(e)for(let[r,i]of Object.entries(e)){let e=i;this.graph.addNode(r,t(r,e)),n!=null&&this.registerRelationName(r,e[n])}}readMaterialized(e){let t=e?.materialized;return typeof t==`string`&&t.trim()!==``?t:void 0}metricArrayStrings(e,t){if(Array.isArray(e))return e.map(e=>e[t]).filter(e=>typeof e==`string`)}buildNodeEntryAttributes(e,t){let n=this.extractResourceType(this.optionalString(t.resource_type)??`model`),r=t.config,i=this.readMaterialized(r);return{...this.baseNodeAttributes(e,t),resource_type:n,patch_path:this.optionalString(t.patch_path),database:this.optionalString(t.database),schema:this.optionalString(t.schema),compiled_code:this.optionalString(t.compiled_code),raw_code:this.optionalString(t.raw_code)??this.optionalString(t.raw_sql),...i==null?{}:{materialized:i}}}buildSourceEntryAttributes(e,t){return{...this.baseNodeAttributes(e,t),resource_type:`source`}}buildMacroEntryAttributes(e,t){return{...this.baseNodeAttributes(e,t),resource_type:`macro`,raw_code:this.optionalString(t.macro_sql)}}buildExposureEntryAttributes(e,t){return{...this.baseNodeAttributes(e,t),resource_type:`exposure`}}buildMetricEntryAttributes(e,t){let n=t.type_params,r=t.filter,i=t.depends_on,a=t.tags,o=typeof a==`string`?[a]:this.optionalStringArray(a);return{...this.baseNodeAttributes(e,t),resource_type:`metric`,label:this.optionalString(t.label),metric_type:this.optionalString(t.type),metric_expression:this.optionalString(n?.expr),metric_measure:this.optionalString(n?.measure?.name),metric_input_measures:this.metricArrayStrings(n?.input_measures,`name`),metric_input_metrics:this.metricArrayStrings(n?.metrics,`name`),metric_time_granularity:this.optionalString(t.time_granularity),metric_filters:this.metricArrayStrings(r?.where_filters,`where_sql_template`),metric_source_reference:i?.nodes?.[0]??void 0,tags:o}}traverseNeighbors(e,t){if(!this.graph.hasNode(e))return[];let n=[],r=new Set,i=[],a=0,o=(e,a)=>{for(let o of t.getNeighbors(e))r.has(o)||(r.add(o),n.push(t.includeParents?{nodeId:o,depth:a,parentId:e}:{nodeId:o,depth:a}),(t.maxDepth===void 0||a<t.maxDepth)&&i.push({id:o,depth:a}))};for(o(e,1);a<i.length;){let{id:e,depth:t}=i[a++];o(e,t+1)}return n}addNodes(e){this.addNodeEntries(e.nodes),this.addSourceEntries(e.sources),this.addMacroEntries(e.macros),this.addExposureEntries(e.exposures),this.addMetricEntries(Pt(e)),this.addSemanticModelEntries(Ft(e)),this.addUnitTestEntries(It(e))}addNodeEntries(e){this.addManifestEntries(e,(e,t)=>this.buildNodeEntryAttributes(e,t),`relation_name`)}addSourceEntries(e){this.addManifestEntries(e,(e,t)=>this.buildSourceEntryAttributes(e,t),`relation_name`)}addMacroEntries(e){this.addManifestEntries(e,(e,t)=>this.buildMacroEntryAttributes(e,t))}addExposureEntries(e){this.addManifestEntries(e,(e,t)=>this.buildExposureEntryAttributes(e,t))}addMetricEntries(e){this.addManifestEntries(e,(e,t)=>this.buildMetricEntryAttributes(e,t))}addSemanticModelEntries(e){if(e)for(let[t,n]of Object.entries(e)){let e=n;this.graph.addNode(t,{unique_id:t,resource_type:`semantic_model`,name:e.name||t,package_name:e.package_name||``,path:e.path||void 0,original_file_path:e.original_file_path||void 0,description:e.description||void 0,label:e.label||void 0,semantic_model_reference:e.model||void 0,semantic_model_default_time_dimension:e.defaults?.agg_time_dimension||void 0,semantic_model_entities:Array.isArray(e.entities)?e.entities.map(e=>e.name).filter(e=>typeof e==`string`):void 0,semantic_model_measures:Array.isArray(e.measures)?e.measures.map(e=>e.name).filter(e=>typeof e==`string`):void 0,semantic_model_dimensions:Array.isArray(e.dimensions)?e.dimensions.map(e=>e.name).filter(e=>typeof e==`string`):void 0})}}addUnitTestEntries(e){if(e)for(let[t,n]of Object.entries(e)){let e=n;this.graph.addNode(t,{unique_id:t,resource_type:`unit_test`,name:e.name||t,package_name:e.package_name||``})}}addEdges(e){e.parent_map&&this.addEdgesFromParentMap(e.parent_map),this.addEdgesFromNodeDependsOn(e.nodes),this.addEdgesFromExposureDependsOn(e.exposures),this.addEdgesFromMetricDependsOn(Pt(e))}addEdgesFromParentMap(e){for(let[t,n]of Object.entries(e))if(this.graph.hasNode(t))for(let e of n)this.graph.hasNode(e)&&!this.graph.hasEdge(e,t)&&this.graph.addEdge(e,t,{dependency_type:this.inferDependencyType(e)})}addEdgesFromDependsOn(e,t){if(t.nodes)for(let n of t.nodes)this.graph.hasNode(n)&&!this.graph.hasEdge(n,e)&&this.graph.addEdge(n,e,{dependency_type:`node`});if(t.macros)for(let n of t.macros)this.graph.hasNode(n)&&!this.graph.hasEdge(n,e)&&this.graph.addEdge(n,e,{dependency_type:`macro`})}addEdgesFromNodeDependsOn(e){if(e)for(let[t,n]of Object.entries(e)){let e=n.depends_on;e&&this.addEdgesFromDependsOn(t,e)}}addEdgesFromExposureDependsOn(e){if(e)for(let[t,n]of Object.entries(e)){let e=n.depends_on;e?.nodes&&this.addEdgesFromDependsOn(t,e)}}addEdgesFromMetricDependsOn(e){if(e)for(let[t,n]of Object.entries(e)){let e=n.depends_on;e?.nodes&&this.addEdgesFromDependsOn(t,e)}}extractResourceType(e){let t=e.toLowerCase();return[`model`,`source`,`seed`,`snapshot`,`test`,`analysis`,`macro`,`exposure`,`metric`,`semantic_model`,`unit_test`,`function`].includes(t)?t:`model`}inferDependencyType(e){return e.startsWith(`macro.`)?`macro`:e.startsWith(`source.`)?`source`:`node`}getGraph(){return this.graph}getSummary(){let e={},t=0;this.graph.forEachNode((n,r)=>{t++;let i=r.resource_type||`unknown`;e[i]=(e[i]||0)+1});let n=(0,kt.hasCycle)(this.graph);return{total_nodes:t,nodes_by_type:e,total_edges:this.graph.size,has_cycles:n}}getUpstream(e,t){return this.traverseNeighbors(e,{maxDepth:t,getNeighbors:e=>this.graph.inboundNeighbors(e),includeParents:!1}).map(({nodeId:e,depth:t})=>({nodeId:e,depth:t}))}getDownstream(e,t){return this.traverseNeighbors(e,{maxDepth:t,getNeighbors:e=>this.graph.outboundNeighbors(e),includeParents:!1}).map(({nodeId:e,depth:t})=>({nodeId:e,depth:t}))}getUpstreamWithParents(e,t){return this.traverseNeighbors(e,{maxDepth:t,getNeighbors:e=>this.graph.inboundNeighbors(e),includeParents:!0}).map(({nodeId:t,depth:n,parentId:r})=>({nodeId:t,depth:n,parentId:r??e}))}getUpstreamBuildOrder(e,t){let n=this.getUpstream(e,t);if(n.length===0)return[];let r=new Set(n.map(e=>e.nodeId)),i=new Map(n.map(e=>[e.nodeId,e.depth])),a=new L;for(let e of r)a.addNode(e,this.graph.getNodeAttributes(e));return this.graph.forEachEdge((e,t,n,i)=>{r.has(n)&&r.has(i)&&(a.hasEdge(n,i)||a.addEdge(n,i,t))}),(0,kt.topologicalSort)(a).map(e=>({nodeId:e,depth:i.get(e)??0}))}getDownstreamWithParents(e,t){return this.traverseNeighbors(e,{maxDepth:t,getNeighbors:e=>this.graph.outboundNeighbors(e),includeParents:!0}).map(({nodeId:t,depth:n,parentId:r})=>({nodeId:t,depth:n,parentId:r??e}))}addFieldNodes(e){if(e.nodes){for(let[t,n]of Object.entries(e.nodes))if(this.graph.hasNode(t)){let e=n.columns;this.processCatalogColumns(t,e)}}if(e.sources){for(let[t,n]of Object.entries(e.sources))if(this.graph.hasNode(t)){let e=n.columns;this.processCatalogColumns(t,e)}}}processCatalogColumns(e,t){if(!t)return;let n=this.graph.getNodeAttributes(e);for(let[r,i]of Object.entries(t)){let t=`${e}#${r}`,a=i,o=a?.comment??a?.description;this.graph.hasNode(t)||(this.graph.addNode(t,{unique_id:t,resource_type:`field`,name:r,package_name:n.package_name,parent_id:e,description:o}),this.graph.addEdge(e,t,{dependency_type:`internal`}))}}addFieldEdges(e,t){if(this.graph.hasNode(e))for(let[n,r]of Object.entries(t)){let t=`${e}#${n}`;this.ensureFieldNode(e,n);for(let e of r){let n=this.resolveRelationToUniqueId(e.sourceTable);if(!n)continue;let r=`${n}#${e.sourceColumn}`;this.ensureFieldNode(n,e.sourceColumn),this.graph.hasEdge(r,t)||this.graph.addEdge(r,t,{dependency_type:`field`})}}}ensureFieldNode(e,t){let n=`${e}#${t}`;if(!this.graph.hasNode(n)){let r=this.graph.getNodeAttributes(e);this.graph.addNode(n,{unique_id:n,resource_type:`field`,name:t,package_name:r.package_name,parent_id:e}),this.graph.addEdge(e,n,{dependency_type:`internal`})}return n}tryResolveRelationName(e){return this.resolveRelationToUniqueId(e)}resolveRelationToUniqueId(e){let t=e.toLowerCase();if(this.relationMap.has(t))return this.relationMap.get(t);let n=t.replace(/["`]/g,``);if(this.relationMap.has(n))return this.relationMap.get(n);for(let[e,t]of this.relationMap.entries()){let r=e.replace(/["`]/g,``);if(r.endsWith(`.${n}`)||r===n)return t}}buildSubgraph(e,t,n,r){if(!this.graph.hasNode(e))throw Error(`Focus node not found in manifest: ${e}`);let i=new Set([e]);if(t===`upstream`||t===`both`)for(let{nodeId:t}of this.getUpstream(e,n))i.add(t);if(t===`downstream`||t===`both`)for(let{nodeId:t}of this.getDownstream(e,n))i.add(t);let a=new L;for(let t of i){if(!this.graph.hasNode(t))continue;let n=this.graph.getNodeAttributes(t);t!==e&&r&&!r.has(n.resource_type.toLowerCase())||a.addNode(t,n)}return this.graph.forEachEdge((e,t,n,r)=>{a.hasNode(n)&&a.hasNode(r)&&(a.hasEdge(n,r)||a.addEdge(n,r,t))}),a}};function z(e,t){let n=e[t];if(typeof n==`number`&&Number.isFinite(n))return n;if(typeof n==`string`&&n.trim()!==``){let e=Number(n);if(Number.isFinite(e))return e}}function B(e,t){let n=e[t];if(typeof n==`string`&&n.trim()!==``)return n}function V(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function H(e){return e===null?`null`:typeof e==`string`?e===``?`""`:e:typeof e==`number`||typeof e==`boolean`?String(e):Array.isArray(e)?`[${e.map(e=>H(e)).join(`, `)}]`:V(e)?`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${H(e[t])}`).join(`,`)}}`:String(e)}function Rt(e,t){return typeof t==`number`&&Number.isFinite(t)?{key:e,label:e,kind:`number`,displayValue:t.toLocaleString(),isScalar:!0,sortValue:t}:typeof t==`string`?{key:e,label:e,kind:`string`,displayValue:t===``?`""`:t,isScalar:!0,sortValue:t}:typeof t==`boolean`?{key:e,label:e,kind:`boolean`,displayValue:t?`true`:`false`,isScalar:!0,sortValue:+!!t}:t===null?{key:e,label:e,kind:`null`,displayValue:`null`,isScalar:!1}:Array.isArray(t)?{key:e,label:e,kind:`array`,displayValue:H(t),isScalar:!1}:{key:e,label:e,kind:`object`,displayValue:H(t),isScalar:!1}}function zt(e,t){if(!V(t))return[Rt(e,t)];let n=Object.keys(t).sort();return n.length===0?[Rt(e,t)]:n.map(n=>Rt(`${e}.${n}`,t[n]))}function Bt(e){return e.bytesProcessed!==void 0||e.bytesBilled!==void 0||e.slotMs!==void 0||e.rowsAffected!==void 0||e.adapterCode!==void 0||e.adapterMessage!==void 0||e.queryId!==void 0||e.projectId!==void 0||e.location!==void 0||e.rowsInserted!==void 0||e.rowsDeleted!==void 0||e.rowsUpdated!==void 0||e.rowsDuplicated!==void 0}function Vt(e){return V(e)}function Ht(e){if(typeof e!=`string`)return e;let t=e.trim();if(t===``||t===`null`)return null;let n=t[0];if(n!==`{`&&n!==`[`)return e;try{return JSON.parse(t)}catch{return e}}function Ut(e){return V(e)?Object.keys(e).sort().flatMap(t=>zt(t,e[t])):[]}function Wt(e){let t=[{metricKey:`bytesProcessed`,totalKey:`totalBytesProcessed`},{metricKey:`bytesBilled`,totalKey:`totalBytesBilled`},{metricKey:`slotMs`,totalKey:`totalSlotMs`},{metricKey:`rowsAffected`,totalKey:`totalRowsAffected`},{metricKey:`rowsInserted`,totalKey:`totalRowsInserted`},{metricKey:`rowsUpdated`,totalKey:`totalRowsUpdated`},{metricKey:`rowsDeleted`,totalKey:`totalRowsDeleted`},{metricKey:`rowsDuplicated`,totalKey:`totalRowsDuplicated`}],n=0,r=Object.fromEntries(t.map(({totalKey:e})=>[e,0])),i=Object.fromEntries(t.map(({totalKey:e})=>[e,!1]));for(let a of e)if(!(a==null||!Bt(a))){n+=1;for(let{metricKey:e,totalKey:n}of t){let t=a[e];typeof t==`number`&&(r[n]+=t,i[n]=!0)}}if(n===0)return;let a={nodesWithAdapterData:n};for(let{totalKey:e}of t)i[e]&&(a[e]=r[e]);return a}function Gt(e){if(!V(e))return{};let t=z(e,`bytes_processed`),n=z(e,`bytes_billed`),r=z(e,`slot_ms`),i=z(e,`rows_affected`),a=B(e,`code`),o=B(e,`_message`),s=B(e,`query_id`)??B(e,`job_id`),c=B(e,`project_id`),l=B(e,`location`);return{...t===void 0?{}:{bytesProcessed:t},...n===void 0?{}:{bytesBilled:n},...r===void 0?{}:{slotMs:r},...i===void 0?{}:{rowsAffected:i},...a===void 0?{}:{adapterCode:a},...o===void 0?{}:{adapterMessage:o},...s===void 0?{}:{queryId:s},...c===void 0?{}:{projectId:c},...l===void 0?{}:{location:l}}}function U(e,t){if(!V(e))return{rawKeys:[]};let n=Object.keys(e).filter(e=>typeof e==`string`);return{...Gt(e),...t,rawKeys:n}}let Kt={name:`generic`,parse(e){return U(e,{})}},qt={name:`athena`,parse(e){if(!V(e))return{rawKeys:[]};let t=z(e,`data_scanned_in_bytes`);return U(e,{...t===void 0?{}:{bytesProcessed:t}})},canParse(e){return V(e)?`data_scanned_in_bytes`in e:!1}},Jt={name:`bigquery`,parse(e){if(!V(e))return{rawKeys:[]};let t=z(e,`bytes_processed`),n=z(e,`bytes_billed`),r=z(e,`slot_ms`),i=B(e,`project_id`),a=B(e,`location`),o=B(e,`query_id`)??B(e,`job_id`);return U(e,{...t===void 0?{}:{bytesProcessed:t},...n===void 0?{}:{bytesBilled:n},...r===void 0?{}:{slotMs:r},...o===void 0?{}:{queryId:o},...i===void 0?{}:{projectId:i},...a===void 0?{}:{location:a}})},canParse(e){return V(e)?`bytes_processed`in e||`bytes_billed`in e||`slot_ms`in e||`job_id`in e||`location`in e:!1}},Yt={name:`postgres`,parse(e){return U(e,{})}},Xt={name:`redshift`,parse(e){return U(e,{})}},Zt={name:`snowflake`,parse(e){if(!V(e))return{rawKeys:[]};let t=z(e,`rows_inserted`),n=z(e,`rows_deleted`),r=z(e,`rows_updated`),i=z(e,`rows_duplicates`);return U(e,{...t===void 0?{}:{rowsInserted:t},...n===void 0?{}:{rowsDeleted:n},...r===void 0?{}:{rowsUpdated:r},...i===void 0?{}:{rowsDuplicated:i}})},canParse(e){return V(e)?`rows_inserted`in e||`rows_deleted`in e||`rows_updated`in e||`rows_duplicates`in e:!1}},Qt=new Map([[`athena`,qt],[`bigquery`,Jt],[`postgres`,Yt],[`redshift`,Xt],[`snowflake`,Zt],[`spark`,{name:`spark`,parse(e){return U(e,{})}}]]),$t=[Jt,Zt,qt],en=new class{selectParser(e,t){if(e&&typeof e==`string`){let n=e.toLowerCase().trim(),r=Qt.get(n);if(r&&(!r.canParse||r.canParse(t)))return r}for(let e of $t)if(e.canParse&&e.canParse(t))return e;return Kt}};function tn(e,t){let n=Ht(e),r=t?.adapterType;return en.selectParser(r,n).parse(n)}function nn(e,t){if(!e.results||!Array.isArray(e.results))return[];let n=e.results,r=e=>{let t=e.timing||[];return t.find(e=>e.name===`execute`)||t.find(e=>e.name===`compile`)||t[0]},i=e=>typeof e==`string`&&e.trim()!==``?e.trim():void 0,a=e=>{let n=tn(e,{adapterType:t});return{adapterMetrics:n,includeAdapter:n.rawKeys.length>0||Bt(n),adapterResponseFields:Ut(e),includeAdapterFields:Vt(e)}};return n.map(e=>{let t=r(e),{adapterMetrics:n,includeAdapter:o,adapterResponseFields:s,includeAdapterFields:c}=a(Ht(e.adapter_response)),l=i(e.message);return{unique_id:e.unique_id||``,status:e.status||`unknown`,execution_time:e.execution_time||0,started_at:t?.started_at??void 0,completed_at:t?.completed_at??void 0,thread_id:e.thread_id??void 0,...l==null?{}:{message:l},...o?{adapterMetrics:n}:{},...c?{adapterResponseFields:s}:{}}})}var rn=class{constructor(e,t,n){this.runResults=e,this.graph=t,this.adapterType=n}getSummary(){let e=this.getNodeExecutions(),t={},n=0;for(let r of e){let e=r.status||`unknown`;t[e]=(t[e]||0)+1,n+=r.execution_time||0}let r=this.calculateCriticalPath(e);return{total_execution_time:n,total_nodes:e.length,nodes_by_status:t,critical_path:r,node_executions:e}}getNodeExecutions(){return nn(this.runResults,this.adapterType)}calculateCriticalPath(e){let t=new Map;for(let n of e)t.set(n.unique_id,n);let n=[],r=this.graph.getGraph();if(r.forEachNode(e=>{r.outboundNeighbors(e).length===0&&t.has(e)&&n.push(e)}),n.length===0)return;let i=[],a=0;for(let e of n){let n=this.findLongestPathToRoot(e,t),r=this.calculatePathTime(n,t);r>a&&(a=r,i=n)}if(i.length!==0)return{path:i,total_time:a}}findLongestPathToRoot(e,t){let n=this.graph.getGraph(),r=new Set,i=[],a=(e,o)=>{if(r.has(e))return;r.add(e);let s=[...o,e];s.length>i.length&&(i=s);let c=n.inboundNeighbors(e);for(let e of c)t.has(e)&&a(e,s);r.delete(e)};return a(e,[]),i.reverse()}calculatePathTime(e,t){let n=0;for(let r of e){let e=t.get(r);e&&(n+=e.execution_time||0)}return n}getRunStartedAt(){let e=this.getNodeExecutions().map(e=>e.started_at?new Date(e.started_at).getTime():null).filter(e=>e!==null);return e.length===0?null:Math.min(...e)}parseTimingInterval(e){if(!e)return null;let t=e.started_at,n=e.completed_at;if(!t||!n)return null;let r=new Date(t).getTime(),i=new Date(n).getTime();return Number.isNaN(r)||Number.isNaN(i)?null:{start:r,end:i}}wallClockFromResult(e){let t=e.timing||[],n=t.find(e=>e.name===`execute`),r=t.find(e=>e.name===`compile`),i=this.parseTimingInterval(r),a=this.parseTimingInterval(n),o=[],s=[];return i&&(o.push(i.start),s.push(i.end)),a&&(o.push(a.start),s.push(a.end)),o.length===0?null:{wallStart:Math.min(...o),wallEnd:Math.max(...s),compile:i,execute:a}}getGanttData(){if(!this.runResults.results||!Array.isArray(this.runResults.results))return[];let e=this.graph.getGraph(),t=[];for(let n of this.runResults.results){let r=n.unique_id||``;if(!r)continue;let i=this.wallClockFromResult(n);if(!i)continue;let a=(e.hasNode(r)?e.getNodeAttributes(r):void 0)?.name||r,o=n.status||`unknown`;t.push({unique_id:r,name:a,status:o,wall:i})}if(t.length===0)return[];let n=Math.min(...t.map(e=>e.wall.wallStart));return t.map(e=>{let{wall:t}=e,r=e=>e-n;return{unique_id:e.unique_id,name:e.name,start:r(t.wallStart),end:r(t.wallEnd),duration:t.wallEnd-t.wallStart,status:e.status,compileStart:t.compile?r(t.compile.start):null,compileEnd:t.compile?r(t.compile.end):null,executeStart:t.execute?r(t.execute.start):null,executeEnd:t.execute?r(t.execute.end):null}})}};function an(e,t){let n=t.split(`*`);if(n.length===1)return e===t;let r=0;for(let t=0;t<n.length;t++){let i=n[t],a=e.indexOf(i,r);if(a===-1||t===0&&a!==0)return!1;r=a+i.length}return n[n.length-1]===``||e.endsWith(n[n.length-1])}function on(e,t){return t instanceof RegExp?t.test(e):an(e,t)}let sn={query_id:e=>e.adapterMetrics?.queryId??``,adapter_code:e=>e.adapterMetrics?.adapterCode??``,adapter_message:e=>e.adapterMetrics?.adapterMessage??``,bytes_processed:e=>e.adapterMetrics?.bytesProcessed,bytes_billed:e=>e.adapterMetrics?.bytesBilled,slot_ms:e=>e.adapterMetrics?.slotMs,rows_affected:e=>e.adapterMetrics?.rowsAffected,project_id:e=>e.adapterMetrics?.projectId,location:e=>e.adapterMetrics?.location,rows_inserted:e=>e.adapterMetrics?.rowsInserted,rows_updated:e=>e.adapterMetrics?.rowsUpdated,rows_deleted:e=>e.adapterMetrics?.rowsDeleted,rows_duplicated:e=>e.adapterMetrics?.rowsDuplicated};function cn(e,t){return sn[t](e)}function ln(e,t){let n=e===void 0||e===``,r=t===void 0||t===``;return n&&r?0:n?1:r?-1:typeof e==`number`&&typeof t==`number`?e-t:String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:`base`})}function un(e,t){let n=cn(e,t);return typeof n==`number`&&Number.isFinite(n)?n:0}let dn=Object.fromEntries([`bytes_processed`,`bytes_billed`,`slot_ms`,`rows_affected`,`rows_inserted`,`rows_updated`,`rows_deleted`,`rows_duplicated`].map(e=>[`${e}_desc`,t=>un(t,e)]));function fn(e,t){let n=e.adapterMetrics;return n==null?!1:[n.queryId,n.adapterCode,n.adapterMessage,n.projectId,n.location].some(e=>e?.toLowerCase().includes(t)===!0)}function pn(e,t){let n=[...e];if(t.status!==void 0){let e=typeof t.status==`string`?[t.status]:t.status,r=new Set(e.map(e=>e.toLowerCase()));n=n.filter(e=>r.has((e.status||`unknown`).toLowerCase()))}let r=[{value:t.min_execution_time,keep:(e,t)=>(e.execution_time??0)>=t},{value:t.max_execution_time,keep:(e,t)=>(e.execution_time??0)<=t},{value:t.min_bytes_processed,keep:(e,t)=>un(e,`bytes_processed`)>=t},{value:t.min_slot_ms,keep:(e,t)=>un(e,`slot_ms`)>=t},{value:t.min_rows_affected,keep:(e,t)=>un(e,`rows_affected`)>=t}];for(let e of r)e.value!==void 0&&(n=n.filter(t=>e.keep(t,e.value)));if(t.unique_id_pattern!==void 0&&(n=n.filter(e=>on(e.unique_id,t.unique_id_pattern))),t.has_adapter_key!==void 0&&(n=n.filter(e=>e.adapterMetrics?.rawKeys.includes(t.has_adapter_key)===!0)),t.adapter_text!==void 0&&t.adapter_text.trim()!==``){let e=t.adapter_text.toLowerCase();n=n.filter(t=>fn(t,e))}return n}function mn(e,t){return[...e].sort((e,n)=>{if(t in dn){let r=dn[t];return r(n)-r(e)}if(t===`query_id`||t===`adapter_code`||t===`adapter_message`)return ln(cn(e,t),cn(n,t));switch(t){case`execution_time_asc`:return(e.execution_time??0)-(n.execution_time??0);case`execution_time_desc`:return(n.execution_time??0)-(e.execution_time??0);case`unique_id`:return e.unique_id.localeCompare(n.unique_id);default:return 0}})}function hn(e,t){let n=pn(e,t),r=t.sort;return r&&(n=mn(n,r)),t.limit!==void 0&&t.limit>=0&&(n=n.slice(0,t.limit)),n}function gn(e,t){if(!t)return;let n=t.getGraph();if(n.hasNode(e))return n.getNodeAttributes(e)?.name||void 0}function _n(e,t){let n=e.reduce((e,t)=>e+(t.execution_time??0),0),r;return r=t.mode===`top_n`?hn(e,{sort:`execution_time_desc`,limit:t.top}):hn(e,{min_execution_time:t.min_seconds,sort:`execution_time_desc`}),{nodes:r.map((e,r)=>{let i=e.execution_time??0,a=n>0?i/n*100:0;return{unique_id:e.unique_id,name:gn(e.unique_id,t.graph),execution_time:i,rank:r+1,pct_of_total:Math.round(a*10)/10,status:e.status||`unknown`}}),total_execution_time:n,criteria_used:t.mode===`top_n`?`top_n`:`threshold`}}let vn={table:`table`,view:`view`,incremental:`incremental`,ephemeral:`ephemeral`,materialized_view:`materialized_view`,materializedview:`materialized_view`};function yn(e){return e.trim().toLowerCase()||`unknown`}function bn(e){if(e==null||typeof e!=`string`)return null;let t=e.trim().toLowerCase();return t===``?null:t.replace(/[\s-]+/g,`_`)}function xn(e,t){let n=yn(e),r=bn(t);if(n===`seed`)return{kind:`seed`};if(n===`snapshot`)return{kind:`snapshot`};if(n===`test`||n===`unit_test`)return{kind:`test`};if(n===`operation`)return{kind:`operation`};if(n===`model`||n===``){if(r==null)return{kind:`unknown`};let e=vn[r];return e==null?{kind:`unknown`,raw:t.trim()}:{kind:e}}if(r!=null){let e=vn[r];return e==null?{kind:`unknown`,raw:t.trim()}:{kind:e,raw:void 0}}return{kind:`unknown`}}function Sn(e,t){if(yn(t)===`source`)return{persisted:!0,createsRelation:!1,compiledIntoParent:!1};switch(e){case`ephemeral`:return{persisted:!1,createsRelation:!1,compiledIntoParent:!0};case`table`:case`view`:case`incremental`:case`materialized_view`:return{persisted:!0,createsRelation:!0,compiledIntoParent:!1};case`seed`:case`snapshot`:return{persisted:!0,createsRelation:!0,compiledIntoParent:!1};case`test`:case`operation`:return{persisted:!1,createsRelation:!1,compiledIntoParent:!1};default:return{persisted:!1,createsRelation:!1,compiledIntoParent:!1}}}function Cn(e){if(e==null)return;let t=e.config;return typeof t==`object`&&t?t:void 0}function wn(e,t,n){return e==null?`derived`:t||n||typeof e.relation_name==`string`&&e.relation_name.length>0?`manifest`:`derived`}function Tn(e){let t=e?.unique_key;return t==null?{uniqueKey:void 0,hasUniqueKeyField:!1}:typeof t==`string`||Array.isArray(t)&&t.every(e=>typeof e==`string`)?{uniqueKey:t,hasUniqueKeyField:!0}:{uniqueKey:void 0,hasUniqueKeyField:!0}}function En(e,t){if(e==null)return{hasAnyIncrementalHint:t};let n=typeof e.incremental_strategy==`string`?e.incremental_strategy:void 0,r=typeof e.on_schema_change==`string`?e.on_schema_change:void 0,i=typeof e.full_refresh==`boolean`?e.full_refresh:void 0;return{incrementalStrategy:n,onSchemaChange:r,fullRefreshCapable:i,hasAnyIncrementalHint:n!=null||r!=null||i!=null||t}}function Dn(e){let t=e=>typeof e==`string`&&e.trim()!==``?e:void 0,n=(e,n,r,i,a)=>({...e==null?{}:{relationName:e},...t(n)==null?{}:{adapterType:t(n)},...a.incrementalStrategy==null?{}:{incrementalStrategy:a.incrementalStrategy},...r==null?{}:{uniqueKey:r},...a.onSchemaChange==null?{}:{onSchemaChange:a.onSchemaChange},...a.fullRefreshCapable==null?{}:{fullRefreshCapable:a.fullRefreshCapable},...t(i)==null?{}:{rawMaterialization:t(i)}}),{resourceType:r,adapterType:i}=e,a=e.manifestEntry??null,o=Cn(a),s=typeof o?.materialized==`string`?o.materialized:null,c=typeof e.materialized==`string`&&e.materialized.trim()!==``?e.materialized:null,{kind:l,raw:u}=xn(r,c??s),{uniqueKey:d,hasUniqueKeyField:f}=Tn(o),p=En(o,f),m=t(a?.relation_name),h=s!=null&&String(s).trim()!==``,g=c!=null&&c.trim()!==``;return{resourceType:r,materialization:l,...Sn(l,r),...n(m,i,d,u,p),materializationSource:wn(a,h||g,p.hasAnyIncrementalHint)}}let On=[`model`,`source`,`test`,`metric`,`semantic_model`,`exposure`,`seed`,`snapshot`,`unit_test`,`analysis`,`macro`];function kn(){return performance.now()}function An(e){let t=e?.trim().toLowerCase();return t?[`success`,`pass`,`passed`].includes(t)?`positive`:[`warn`,`warning`].includes(t)?`warning`:[`error`,`errors`,`fail`,`failed`,`failure`,`failures`,`errored`,`run error`,`runtime error`,`compile error`,`database error`].includes(t)?`danger`:[`skipped`,`no op`].includes(t)?`skipped`:`neutral`:`neutral`}function W(e){return e?e.split(/[\s_-]+/).filter(Boolean).map(e=>e[0].toUpperCase()+e.slice(1).toLowerCase()).join(` `):`Unknown`}function G(e){let t=e.split(`.`);return t.length<2?``:t[1]??``}function K(e){let t=e.split(`.`)[0]??``;return new Set([`model`,`test`,`unit_test`,`seed`,`snapshot`,`source`,`source_freshness`,`exposure`,`metric`,`semantic_model`,`analysis`,`macro`]).has(t)?t:`operation`}function jn(e){return e.split(`_`).map(e=>e[0].toUpperCase()+e.slice(1)).join(` `)}function q(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function Mn(e){let t=typeof e.metric_measure==`string`?e.metric_measure:null,n=q(e.metric_input_measures);return{kind:`metric`,label:typeof e.label==`string`?e.label:null,description:typeof e.description==`string`?e.description:null,metricType:typeof e.metric_type==`string`?e.metric_type:null,expression:typeof e.metric_expression==`string`?e.metric_expression:null,sourceReference:typeof e.metric_source_reference==`string`?e.metric_source_reference:typeof e.metric_measure==`string`?e.metric_measure:null,filters:q(e.metric_filters),timeGranularity:typeof e.metric_time_granularity==`string`?e.metric_time_granularity:null,measures:n.length>0?n:t==null?[]:[t],metrics:q(e.metric_input_metrics)}}function Nn(e){return{kind:`semantic_model`,label:typeof e.label==`string`?e.label:null,description:typeof e.description==`string`?e.description:null,sourceReference:typeof e.semantic_model_reference==`string`?e.semantic_model_reference:null,defaultTimeDimension:typeof e.semantic_model_default_time_dimension==`string`?e.semantic_model_default_time_dimension:null,entities:q(e.semantic_model_entities),measures:q(e.semantic_model_measures),dimensions:q(e.semantic_model_dimensions)}}function Pn(e,t){return e===`metric`?Mn(t):e===`semantic_model`?Nn(t):null}function Fn(e,t){let n=On.indexOf(e),r=On.indexOf(t);return n===-1&&r===-1?e.localeCompare(t):n===-1?1:r===-1?-1:n-r}function In(e,t){let n=Fn(e.resourceType,t.resourceType);return n===0?e.name.localeCompare(t.name):n}function Ln(e){let t=e.metadata;return typeof t==`object`&&t&&`project_name`in t&&typeof t.project_name==`string`&&t.project_name!==``?t.project_name:null}let Rn=new Set([`test`,`unit_test`,`macro`,`operation`,`sql_operation`]),zn=new Set([`elementary`]);function Bn(e,t){let n=(t.hasNode(e.unique_id)?t.getNodeAttributes(e.unique_id):void 0)?.package_name;return typeof n==`string`&&n.length>0?n:G(e.unique_id)}function Vn(e,t){let n=(t.hasNode(e.unique_id)?t.getNodeAttributes(e.unique_id):void 0)?.resource_type;return typeof n==`string`&&n.length>0?n:K(e.unique_id)}function Hn(e,t){if(e.length===0)return null;let n={};for(let r of e){let e=Vn(r,t);if(Rn.has(e))continue;let i=Bn(r,t);i.length>0&&!zn.has(i)&&(n[i]=(n[i]??0)+1)}return Object.entries(n).sort((e,t)=>{let n=t[1]-e[1];return n===0?e[0].localeCompare(t[0]):n})[0]?.[0]??null}function Un(e,t,n){let r=0;for(let i of e){let e=Vn(i,t);Rn.has(e)||Bn(i,t)===n&&r++}return r}function Wn(e,t,n){let r=Ln(e),i=Hn(t,n);return r==null||Un(t,n,r)===0&&i!=null?i:r}function Gn(e){let t=e.metadata!=null&&typeof e.metadata==`object`?e.metadata:null;return typeof t?.invocation_id==`string`?t.invocation_id:null}function Kn(e){let t=e.metadata;return typeof t==`object`&&t&&`adapter_type`in t&&typeof t.adapter_type==`string`&&t.adapter_type!==``?t.adapter_type:null}function qn(e){let t=new Map;for(let n of e){let e=t.get(n.resourceType)??[];e.push(n),t.set(n.resourceType,e)}return[...t.entries()].sort(([e],[t])=>Fn(e,t)).map(([e,t])=>({resourceType:e,label:jn(e),count:t.length,attentionCount:t.filter(e=>e.statusTone===`danger`||e.statusTone===`warning`).length,resources:t}))}function Jn(e){let t=e.column_name;return typeof t!=`string`||t.trim()===``?null:t.trim()}function Yn(e,t){let n=e.attached_node;if(typeof n!=`string`)return null;let r=t.getGraph();if(!r.hasNode(n))return null;let i=r.getNodeAttributes(n);return i==null||typeof i.name!=`string`||i.name===``?null:i.name}function Xn(e,t){let n=e.depends_on;if(!Array.isArray(n?.nodes))return null;let r=t.getGraph();for(let e of n.nodes){if(typeof e!=`string`||!r.hasNode(e))continue;let t=r.getNodeAttributes(e),n=String(t?.resource_type??K(e));if(!(n===`test`||n===`unit_test`)&&t!=null&&typeof t.name==`string`&&t.name!==``)return t.name}return null}function Zn(e,t){if(e==null)return null;let n=Jn(e),r=Yn(e,t)??Xn(e,t);return r!=null&&n!=null?`${r}.${n}`:r??n??null}function J(e,t){let n=e[t];return typeof n==`string`?n:null}function Qn(e,t){let n=Array.isArray(t.tags)?t.tags.filter(e=>typeof e==`string`):void 0;return{uniqueId:e,name:String(t.name||e),resourceType:String(t.resource_type||`unknown`),packageName:String(t.package_name||``),...n===void 0?{}:{tags:n},path:J(t,`path`),originalFilePath:J(t,`original_file_path`),patchPath:J(t,`patch_path`),database:J(t,`database`),schema:J(t,`schema`),description:J(t,`description`)}}function Y(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function $n(e){let t=new Map;if(e==null)return t;for(let n of[`nodes`,`sources`]){let r=e[n];if(!(typeof r!=`object`||!r))for(let[e,n]of Object.entries(r))typeof n==`object`&&n&&t.set(e,n)}return t}function er(e){if(e==null)return null;let t=e.columns!=null&&typeof e.columns==`object`?e.columns:void 0,n=e.metadata!=null&&typeof e.metadata==`object`?e.metadata:void 0,r=e.stats!=null&&typeof e.stats==`object`?e.stats:void 0;return{columnCount:t==null?0:Object.keys(t).length,tableType:typeof n?.type==`string`?n.type:typeof n?.table_type==`string`?n.table_type:null,bytes:Y(r?.bytes)??Y(r?.num_bytes)??Y(r?.size),rowCount:Y(r?.row_count)??Y(r?.num_rows)??Y(r?.rows)}}function tr(e){let t=new Map,n=e?.results;if(!Array.isArray(n))return t;for(let e of n){if(typeof e!=`object`||!e)continue;let n=e,r=n.unique_id;typeof r==`string`&&r.length>0&&t.set(r,n)}return t}function nr(e){if(typeof e!=`object`||!e)return null;let t=typeof e.count==`number`?e.count:null,n=typeof e.period==`string`?e.period:null;return t==null||n==null?null:`${t} ${n}`}function rr(e,t){if(e!==`source`||t==null)return null;let n=t.criteria!=null&&typeof t.criteria==`object`?t.criteria:void 0,r=typeof t.status==`string`&&t.status.trim()!==``?t.status:void 0;return{status:r==null?`Unknown`:W(r),statusTone:An(r),maxLoadedAt:typeof t.max_loaded_at==`string`?t.max_loaded_at:null,snapshottedAt:typeof t.snapshotted_at==`string`?t.snapshotted_at:null,ageSeconds:Y(t.max_loaded_at_time_ago_in_s),criteria:n==null?null:{warnAfter:nr(n.warn_after),errorAfter:nr(n.error_after),filter:typeof n.filter==`string`?n.filter:null},error:typeof t.error==`string`?t.error:typeof t.message==`string`?t.message:null}}function ir(e,t,n){let r=e=>{let n=t.getNodeAttributes(e.nodeId);return{uniqueId:e.nodeId,name:String(n?.name||e.nodeId),resourceType:String(n?.resource_type||`unknown`),depth:e.depth}},i=e.getUpstream(n,1),a=e.getDownstream(n,1);return{upstreamCount:i.length,downstreamCount:a.length,upstream:i.map(r),downstream:a.map(r)}}function ar(e,t,n,r,i,a,o,s){let c=(e,t,n)=>e?{[t]:n}:{},l=Qn(e,t),{resourceType:u}=l,d=J(t,`materialized`),f=Dn({resourceType:u,materialized:d!=null&&d.trim()!==``?d:null,manifestEntry:a.get(e)??null,adapterType:o??null}),p=u===`test`||u===`unit_test`?Zn(r,i):null,m=n?.message,h=typeof m==`string`&&m.trim()!==``?m.trim():null,g=typeof n?.execution_time==`number`?n.execution_time:null,_=typeof n?.thread_id==`string`?n.thread_id:null,v=er(s.catalogEntry),y=rr(u,s.sourcesEntry);return{...l,compiledCode:null,rawCode:null,definition:Pn(u,t),status:n?.status?W(n.status):null,statusTone:An(n?.status),executionTime:g,threadId:_,semantics:f,...c(p!=null,`testAttachedTarget`,p),...c(h!=null,`runResultMessage`,h),...c(n?.adapterMetrics!=null,`adapterMetrics`,n?.adapterMetrics),...c(n?.adapterResponseFields!=null,`adapterResponseFields`,n?.adapterResponseFields),...c(v!=null,`catalogStats`,v),...c(y!=null,`sourceFreshness`,y)}}function or(e,t,n,r,i){let a=[],o={},s=e.getGraph(),c=$n(i.catalogJson),l=tr(i.sourcesJson);return s.forEachNode((i,u)=>{let d=t.get(i),f=n.get(i);a.push(ar(i,u,d,f,e,n,r,{catalogEntry:c.get(i),sourcesEntry:l.get(i)})),o[i]=ir(e,s,i)}),a.sort(In),{resources:a,dependencyIndex:o}}let sr=new Set([`test`,`unit_test`]);function cr(e){let t=new Map,n=e=>{if(!(typeof e!=`object`||!e))for(let[n,r]of Object.entries(e))typeof r==`object`&&r&&t.set(n,r)};if(n(e.nodes),n(e.sources),n(e.unit_tests),e.disabled!=null&&typeof e.disabled==`object`){for(let[n,r]of Object.entries(e.disabled))if(Array.isArray(r))for(let e of r)typeof e==`object`&&e&&t.set(n,e)}return t}function lr(e,t,n){return t.hasNode(e)?t.getNodeAttributes(e):n.get(e)}function ur(e,t,n){for(let r of e){let e=lr(r,t,n),i=String(e?.resource_type??K(r));if(i!==`test`&&i!==`unit_test`&&i!==``)return r}return null}function dr(e,t,n,r){let i=e.getUpstream(r),a=i.filter(e=>e.depth===1),o=ur((a.length>0?a:i).map(e=>e.nodeId),t,n);if(o!=null)return o;let s=n.get(r),c=typeof s?.attached_node==`string`?s.attached_node:null;if(c!=null)return c;let l=s?.depends_on;if(Array.isArray(l?.nodes)){let e=ur(l.nodes.filter(e=>typeof e==`string`),t,n);if(e!=null)return e}return null}function fr(e){return typeof e?.original_file_path==`string`?e.original_file_path:typeof e?.path==`string`?e.path:null}function pr(e,t,n,r){let i=n.get(e)??null;return Dn({resourceType:typeof t?.resource_type==`string`&&t.resource_type!==``?t.resource_type:K(e),materialized:typeof t?.materialized==`string`&&t.materialized.trim()!==``?t.materialized:null,manifestEntry:i,adapterType:r??null})}function mr(e,t,n,r,i){let a=lr(e.unique_id,n,r),o=typeof a?.resource_type==`string`&&a.resource_type!==``?a.resource_type:K(e.unique_id),s=o===`test`||o===`unit_test`?dr(t,n,r,e.unique_id):null,c=typeof a?.package_name==`string`&&a.package_name.length>0?a.package_name:G(e.unique_id),l=typeof a?.materialized==`string`&&a.materialized.trim()!==``?a.materialized:null,u=pr(e.unique_id,a,r,i);return{...e,resourceType:o,packageName:c,path:fr(a),parentId:s,materialized:l,semantics:u}}function hr(e){let t=e?.trim().toLowerCase();return t?[`error`,`fail`,`failed`,`run error`].includes(t)?3:[`warn`,`warning`].includes(t)?2:+!![`success`,`pass`,`passed`].includes(t):0}function gr(e){let t=e[0]?.status??`unknown`,n=hr(t);for(let r of e.slice(1)){let e=hr(r.status);e>n&&(n=e,t=r.status)}return t}function X(e,t){let n=e.start-t.start;if(n!==0)return n;let r=t.duration-e.duration;return r===0?e.name.localeCompare(t.name):r}function _r(e,t,n,r){let i=(e,n)=>{if(n.resourceType!==`test`&&n.resourceType!==`unit_test`||n.parentId==null||!t.hasNode(n.parentId))return;let r=t.getNodeAttributes(n.parentId);if(String(r?.resource_type??``)!==`source`)return;let i=e.get(n.parentId)??[];i.push(n),e.set(n.parentId,i)},a=(e,i)=>{let a=t.getNodeAttributes(e),o=[...i].sort(X),s=Math.min(...o.map(e=>e.start)),c=Math.max(...o.map(e=>e.end)),l=pr(e,a,n,r);return{unique_id:e,name:typeof a?.name==`string`&&a.name.length>0?a.name:e,start:s,end:c,duration:Math.max(0,c-s),status:gr(o),resourceType:`source`,packageName:typeof a?.package_name==`string`&&a.package_name.length>0?a.package_name:G(e),path:fr(a),parentId:null,compileStart:null,compileEnd:null,executeStart:null,executeEnd:null,materialized:null,semantics:l}},o=new Set(e.map(e=>e.unique_id)),s=new Map;for(let t of e)i(s,t);let c=[];for(let[e,t]of s.entries())o.has(e)||t.length===0||c.push(a(e,t));return c.sort(X)}function vr(e,t,n,r,i){let a=new Set(e.map(e=>e.unique_id)),o=new Map(e.map(e=>[e.unique_id,e])),s=[];return t.forEachNode((e,c)=>{if(String(c.resource_type??``)!==`source`||a.has(e))return;let l=typeof c.package_name==`string`&&c.package_name.length>0?c.package_name:G(e);if(n!=null&&l!==n)return;let u=[];for(let n of t.outboundNeighbors(e)){let e=o.get(n);e!=null&&(sr.has(e.resourceType)||u.push(e))}if(u.length===0)return;let d=[...u].sort(X),f=Math.min(...d.map(e=>e.start)),p=Math.max(...d.map(e=>e.end)),m=pr(e,c,r,i);s.push({unique_id:e,name:typeof c.name==`string`&&c.name.length>0?c.name:e,start:f,end:p,duration:Math.max(0,p-f),status:gr(d),resourceType:`source`,packageName:l,path:fr(c),parentId:null,compileStart:null,compileEnd:null,executeStart:null,executeEnd:null,materialized:null,semantics:m})}),s.sort(X)}function yr(e,t){let n=new Map;for(let e of t){let t=W(e.status);n.set(t,(n.get(t)??0)+(e.execution_time??0))}return Object.entries(e.nodes_by_status).map(([t,r])=>({status:W(t),count:r,duration:n.get(W(t))??0,share:e.total_nodes>0?r/e.total_nodes:0,tone:An(t)})).sort((e,t)=>t.count-e.count)}function br(e,t){let n={};for(let r of t)n[r]=e.hasNode(r)?{inbound:[...e.inboundNeighbors(r)],outbound:[...e.outboundNeighbors(r)]}:{inbound:[],outbound:[]};return n}function xr(e){let t=new Map;for(let n of e){let e=n.threadId??`unknown`,r=t.get(e)??{count:0,totalExecutionTime:0};r.count+=1,r.totalExecutionTime+=n.executionTime,t.set(e,r)}return[...t.entries()].map(([e,t])=>({threadId:e,count:t.count,totalExecutionTime:t.totalExecutionTime})).sort((e,t)=>t.totalExecutionTime-e.totalExecutionTime)}function Sr(){return{total_execution_time:0,total_nodes:0,nodes_by_status:{},node_executions:[]}}function Cr(e){let{manifestJson:t,runResultsJson:n,catalogJson:r,sourcesJson:i,manifest:a,runResults:o}=e,s=kn(),c=new Lt(a),l=Kn(t),u=o==null?null:new rn(o,c,l),d=kn()-s,f=kn(),p=u?.getSummary()??Sr(),m=cr(t),h=u?.getGanttData()??[],g=u?.getNodeExecutions()??[],_=g.map(e=>e.started_at?new Date(e.started_at).getTime():null).filter(e=>e!==null),v=_.length>0?Math.min(..._):null,y=p.node_executions.length===0?void 0:_n(p.node_executions,{mode:`top_n`,top:5,graph:c}),b=c.getSummary(),x=new Map(h.map(e=>[e.unique_id,e])),ee=new Map(g.map(e=>[e.unique_id,e])),S=c.getGraph(),{resources:C,dependencyIndex:w}=or(c,ee,m,l,{catalogJson:r,sourcesJson:i}),T=Wn(t,g,S),E=h.map(e=>mr(e,c,S,m,l)),D=_r(E,S,m,l),O=vr([...E,...D],S,T,m,l),k=[...E,...D,...O].sort(X),te=br(S,k.map(e=>e.unique_id)),ne=new Map(C.map(e=>[e.uniqueId,e.semantics])),A=g.map(e=>{let t=S.hasNode(e.unique_id)?S.getNodeAttributes(e.unique_id):void 0,n=x.get(e.unique_id),r=ne.get(e.unique_id);return{uniqueId:e.unique_id,name:String(t?.name||e.unique_id),resourceType:String(t?.resource_type||K(e.unique_id)),packageName:(()=>{let n=t?.package_name;return typeof n==`string`&&n.length>0?n:G(e.unique_id)})(),path:typeof t?.original_file_path==`string`?t.original_file_path:typeof t?.path==`string`?t.path:null,status:W(e.status),statusTone:An(e.status),executionTime:e.execution_time??0,threadId:typeof e.thread_id==`string`?e.thread_id:null,start:n?.start??null,end:n?.end??null,...e.adapterMetrics==null?{}:{adapterMetrics:e.adapterMetrics},...e.adapterResponseFields==null?{}:{adapterResponseFields:e.adapterResponseFields},...r==null?{}:{semantics:r}}}).sort((e,t)=>t.executionTime-e.executionTime),j=Wt(g.map(e=>e.adapterMetrics)),re=qn(C),ie=yr(p,g),ae=xr(A),oe=C.find(e=>e.resourceType===`model`)?.uniqueId??C[0]?.uniqueId??null;return{analysis:{summary:p,projectName:T,warehouseType:l,runStartedAt:v,ganttData:k,bottlenecks:y,graphSummary:{totalNodes:b.total_nodes,totalEdges:b.total_edges,hasCycles:b.has_cycles,nodesByType:b.nodes_by_type},resources:C,resourceGroups:re,executions:A,statusBreakdown:ie,threadStats:ae,dependencyIndex:w,timelineAdjacency:te,selectedResourceId:oe,invocationId:n==null?null:Gn(n),...j==null?{}:{adapterTotals:j}},timings:{graphBuildMs:d,snapshotBuildMs:kn()-f},graph:c}}function wr(e){let t=e.split(/\s+/).filter(Boolean),n=[],r,i,a,o;for(let e of t)e.startsWith(`type:`)?r=e.slice(5):e.startsWith(`package:`)?i=e.slice(8):e.startsWith(`tag:`)?a=e.slice(4):e.startsWith(`path:`)?o=e.slice(5):e.startsWith(`owner:`)||e.startsWith(`source:`)?n.push(e.slice(e.indexOf(`:`)+1)):n.push(e);return{terms:n,type:r,package:i,tag:a,path:o}}function Tr(e,t,n,r,i){if(e.resource_type===`field`||t&&!t.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean).includes(e.resource_type.toLowerCase())||n&&(e.package_name||``)!==n)return!1;if(r){let t=r.split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),n=(e.tags||[]).map(e=>e.toLowerCase());if(!t.some(e=>n.includes(e)))return!1}return!(i&&!(e.path||``).includes(i))}let Z={accent:`#635BFF`,text:`#171C28`,textSoft:`#6B7385`,bg:`#F6F7FB`,bgSoft:`#FFFFFF`,borderDefault:`#D7DCE7`,borderSubtle:`#E6E9F0`,slate:`#64748B`,rose:`#C0352B`,mint:`#0F8A4B`,amber:`#A56315`},Q={accent:`#8A7CFF`,text:`#F3F6FC`,textSoft:`#98A3BC`,bg:`#0D1120`,bgSoft:`#151A2E`,borderDefault:`#313A58`,borderSubtle:`#262E47`,slate:`#8690AA`,rose:`#FF8D86`,mint:`#59D38C`,amber:`#F5B95C`};Z.mint,Z.rose,Z.slate,Z.rose,Z.mint,Z.rose,Z.amber,Z.slate,Q.mint,Q.rose,Q.slate,Q.rose,Q.mint,Q.rose,Q.amber,Q.slate,Z.text,Z.textSoft,Z.slate,Z.accent,Q.text,Q.textSoft,Q.slate,Q.accent;let Er=new Set([`model`,`seed`,`snapshot`,`source`,`source_freshness`,`test`,`unit_test`,`metric`,`semantic_model`]),Dr=new Set([`test`,`unit_test`]);[...Er].filter(e=>!Dr.has(e)).sort((e,t)=>e.localeCompare(t));function Or(e,t){if(!t)return!0;let n=t.trim().toLowerCase();if(!n)return!0;let r=wr(n);if(!Tr({unique_id:e.uniqueId,resource_type:e.resourceType,name:e.name,package_name:e.packageName,tags:e.tags,path:e.path??``},r.type,r.package,r.tag,r.path))return!1;let i=[e.name,e.resourceType,e.packageName,...e.tags??[],e.path??``,e.originalFilePath??``,e.patchPath??``,e.uniqueId].map(e=>e.toLowerCase());return r.terms.every(e=>i.some(t=>t.includes(e.toLowerCase())))}function $(){return performance.now()}let kr=null,Ar=null,jr=`No analysis loaded`;function Mr(e,t){return{type:`analysis-error`,protocolVersion:4,requestId:e,message:t}}function Nr(e,t){return{type:`resource-code-error`,protocolVersion:4,requestId:e,message:t}}function Pr(e,t){return{type:`search-resources-error`,protocolVersion:4,requestId:e,message:t}}function Fr(e){let t=new TextDecoder().decode(e);return JSON.parse(t)}function Ir(e){return e==null?void 0:Fr(e)}function Lr(e,t){let n=e.getGraph();if(!n.hasNode(t))return{compiledCode:null,rawCode:null};let r=n.getNodeAttributes(t);return{compiledCode:typeof r.compiled_code==`string`?r.compiled_code:null,rawCode:typeof r.raw_code==`string`?r.raw_code:typeof r.raw_sql==`string`?r.raw_sql:null}}function Rr(e){if(e.protocolVersion!==4)return Pr(e.requestId,`Unsupported protocol version: ${e.protocolVersion}`);if(!Ar)return Pr(e.requestId,jr);let t=Ar.filter(t=>Or(t,e.query)).slice(0,8);return{type:`search-resources-ready`,protocolVersion:4,requestId:e.requestId,resources:t}}function zr(e){if(e.protocolVersion!==4)return Nr(e.requestId,`Unsupported protocol version: ${e.protocolVersion}`);if(!kr)return Nr(e.requestId,jr);let{compiledCode:t,rawCode:n}=Lr(kr,e.uniqueId);return{type:`resource-code-ready`,protocolVersion:4,requestId:e.requestId,compiledCode:t,rawCode:n}}async function Br(e){if(e.protocolVersion!==4)return Mr(e.requestId,`Unsupported protocol version: ${e.protocolVersion}`);try{kr=null,Ar=null;let t=$(),n=$(),r=Fr(e.artifactBuffers.manifestBytes),i=Ir(e.artifactBuffers.runResultsBytes),a=Ir(e.artifactBuffers.catalogBytes),o=Ir(e.artifactBuffers.sourcesBytes),s=$()-n,c=$(),l=(0,u.parseManifest)(r),m=i==null?void 0:(0,f.parseRunResults)(i),h=a==null?void 0:(0,d.parseCatalog)(a),g=o==null?void 0:(0,p.parseSources)(o),_=$()-c,{analysis:v,timings:y,graph:b}=Cr({manifestJson:r,runResultsJson:i,catalogJson:a,sourcesJson:o,manifest:l,runResults:m,catalog:h,sources:g});kr=b,Ar=v.resources;let x={decodeMs:s,parseMs:_,graphBuildMs:y.graphBuildMs,snapshotBuildMs:y.snapshotBuildMs,totalWorkerMs:$()-t};return{type:`analysis-ready`,protocolVersion:4,requestId:e.requestId,analysis:v,timings:x}}catch(t){return Mr(e.requestId,t instanceof Error?t.message:`Failed to analyze artifacts`)}}function Vr(e){return e.type===`get-resource-code`?Promise.resolve(zr(e)):e.type===`search-resources`?Promise.resolve(Rr(e)):Br(e)}typeof self<`u`&&(self.onmessage=e=>{Vr(e.data).then(e=>{self.postMessage(e)})})})();
@@ -1 +0,0 @@
1
- :root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg-canvas:#f6f7fb;--bg-sidebar:#f3f5fa;--bg-surface:#fff;--bg-surface-muted:#f1f3f8;--bg-elevated:#fff;--bg-overlay:#11182766;--bg-code:#f8f9fc;--bg-selection-soft:#eef0ff;--bg-accent-soft:#eef0ff;--bg-success-soft:#eaf8f0;--bg-warning-soft:#fff5e8;--bg-danger-soft:#fdedec;--bg-info-soft:#eaf2ff;--border-subtle:#e6e9f0;--border-default:#d7dce7;--border-strong:#b8c0d4;--border-focus:#6d5ef7;--border-accent:#6d5ef7;--border-success:#0f8a4b;--border-warning:#a56315;--border-danger:#c0352b;--border-info:#1769e0;--text-primary:#171c28;--text-secondary:#475067;--text-tertiary:#6b7385;--text-inverse:#f8fafc;--text-accent:#554ceb;--text-success:#0f8a4b;--text-warning:#a56315;--text-danger:#c0352b;--text-info:#1769e0;--text-disabled:#98a1b3;--icon-primary:#2a3142;--icon-secondary:#5a6478;--icon-tertiary:#8a93a5;--icon-accent:#635bff;--icon-success:#0f8a4b;--icon-warning:#a56315;--icon-danger:#c0352b;--icon-info:#1769e0;--accent-primary:#635bff;--accent-hover:#554ceb;--accent-active:#473ed0;--accent-soft:#eef0ff;--accent-focus-ring:#6d5ef7;--success-fg:#0f8a4b;--success-soft:#eaf8f0;--warning-fg:#a56315;--warning-soft:#fff5e8;--danger-fg:#c0352b;--danger-soft:#fdedec;--info-fg:#1769e0;--info-soft:#eaf2ff;--chart-1:#635bff;--chart-2:#1d4ed8;--chart-3:#0891b2;--chart-4:#059669;--chart-5:#d97706;--chart-6:#ea580c;--chart-7:#db2777;--chart-8:#64748b;--radius-lg:16px;--radius-md:12px;--radius-sm:8px;--panel-shadow:0 1px 3px #0f0f230f, 0 4px 12px #0f0f230a;--shadow-color:#0f172a14;--space-0:0;--space-px:1px;--space-0-5:.125rem;--space-1:.25rem;--space-1-5:.375rem;--space-2:.5rem;--space-2-5:.625rem;--space-3:.75rem;--space-3-5:.875rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--font-sans:"IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;--font-display:"Space Grotesk", "IBM Plex Sans", sans-serif;--font-mono:"IBM Plex Mono", "SFMono-Regular", "Consolas", monospace;--text-2xs:.6875rem;--text-xs:.75rem;--text-sm:.8125rem;--text-md:.875rem;--text-base:.9375rem;--text-lg:1.0625rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-display-sm:clamp(1.15rem, 1.8vw, 1.45rem);--text-display-md:clamp(1.35rem, 2vw, 1.85rem);--text-display-lg:clamp(1.8rem, 3vw, 2.6rem);--leading-none:1;--leading-tight:1.15;--leading-snug:1.25;--leading-normal:1.35;--leading-relaxed:1.45;--leading-loose:1.6;--danger:var(--danger-fg);--surface-raised:var(--bg-elevated);--bg-input:var(--bg-surface);--bg-muted:var(--bg-surface-muted);--status-danger:var(--danger-fg);--status-warning:var(--warning-fg);--status-positive:var(--success-fg);--bg:var(--bg-canvas);--bg-soft:var(--bg-surface-muted);--panel:var(--bg-surface);--panel-strong:var(--bg-surface-muted);--panel-border:var(--border-default);--text:var(--text-primary);--text-muted:var(--text-secondary);--text-soft:var(--text-tertiary);--accent:var(--accent-primary);--mint:var(--text-success);--rose:var(--text-danger);--amber:var(--text-warning);--mint-soft:var(--bg-success-soft);--rose-soft:var(--bg-danger-soft);--dbt-type-source:var(--chart-4);--dbt-type-source-soft:#05966924;--dbt-type-seed:var(--chart-1);--dbt-type-seed-soft:#635bff24;--dbt-type-snapshot:var(--chart-5);--dbt-type-snapshot-soft:#d9770624;--dbt-type-model:var(--chart-2);--dbt-type-model-soft:#1d4ed824;--dbt-type-semantic-model:var(--chart-3);--dbt-type-semantic-model-soft:#0891b224;--dbt-type-metric:var(--chart-7);--dbt-type-metric-soft:#db277724;--dbt-type-exposure:var(--chart-6);--dbt-type-exposure-soft:#ea580c24;--dbt-type-test:var(--chart-8);--dbt-type-test-soft:#64748b24;--dbt-type-generic:var(--chart-8);--dbt-type-generic-soft:#64748b24;--dbt-type-macro:var(--chart-8);--dbt-type-macro-soft:#64748b29;--dbt-type-operation:var(--chart-3);--dbt-type-operation-soft:#0891b224;--graph-bg-top:var(--bg-canvas);--graph-bg-bottom:var(--bg-surface-muted);--graph-bg-accent:var(--bg-accent-soft);--graph-panel:var(--bg-surface);--graph-panel-hover:var(--bg-surface-muted);--graph-panel-active:var(--bg-selection-soft);--graph-border:var(--border-subtle);--graph-border-strong:var(--border-strong);--graph-text:var(--text-primary);--graph-text-muted:var(--text-secondary);--graph-text-soft:var(--text-tertiary);--graph-edge:var(--border-default);--graph-hotspot:var(--bg-accent-soft);--graph-node-stroke:var(--border-subtle);--graph-node-selected-stroke:var(--accent-primary)}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg-canvas:#0d1120;--bg-sidebar:#101527;--bg-surface:#151a2e;--bg-surface-muted:#101527;--bg-elevated:#1b223a;--bg-overlay:#02061799;--bg-code:#11182b;--bg-selection-soft:#232845;--bg-accent-soft:#232845;--bg-success-soft:#113222;--bg-warning-soft:#3a2a12;--bg-danger-soft:#3d1919;--bg-info-soft:#16263f;--border-subtle:#262e47;--border-default:#313a58;--border-strong:#465172;--border-focus:#8a7cff;--border-accent:#8a7cff;--border-success:#59d38c;--border-warning:#f5b95c;--border-danger:#ff8d86;--border-info:#79b7ff;--text-primary:#f3f6fc;--text-secondary:#c6cee0;--text-tertiary:#98a3bc;--text-inverse:#121622;--text-accent:#a89fff;--text-success:#59d38c;--text-warning:#f5b95c;--text-danger:#ff8d86;--text-info:#79b7ff;--text-disabled:#6e7893;--icon-primary:#e5eaf6;--icon-secondary:#bac4d8;--icon-tertiary:#8e9ab4;--icon-accent:#8a7cff;--icon-success:#59d38c;--icon-warning:#f5b95c;--icon-danger:#ff8d86;--icon-info:#79b7ff;--accent-primary:#8a7cff;--accent-hover:#9b90ff;--accent-active:#7363f5;--accent-soft:#232845;--accent-focus-ring:#8a7cff;--success-fg:#59d38c;--success-soft:#113222;--warning-fg:#f5b95c;--warning-soft:#3a2a12;--danger-fg:#ff8d86;--danger-soft:#3d1919;--info-fg:#79b7ff;--info-soft:#16263f;--chart-1:#9588e8;--chart-2:#5c8deb;--chart-3:#3eb0c8;--chart-4:#45c49a;--chart-5:#d4a24a;--chart-6:#d9845c;--chart-7:#d172ae;--chart-8:#8690aa;--panel-shadow:0 4px 24px #00000080;--shadow-color:#00000040;--dbt-type-source-soft:#45c49a33;--dbt-type-seed-soft:#9588e838;--dbt-type-snapshot-soft:#d4a24a38;--dbt-type-model-soft:#5c8deb38;--dbt-type-semantic-model-soft:#3eb0c838;--dbt-type-metric-soft:#d172ae38;--dbt-type-exposure-soft:#d9845c38;--dbt-type-test-soft:#8690aa33;--dbt-type-generic-soft:#8690aa2e;--dbt-type-macro-soft:#8690aa33;--dbt-type-operation-soft:#3eb0c82e;--graph-bg-top:#dde2ea;--graph-bg-bottom:#cfd6e1;--graph-bg-accent:#afb8cd38;--graph-panel:#e7ebf3;--graph-panel-hover:#dfe5ef;--graph-panel-active:#d6deec;--graph-border:#aab4c6;--graph-border-strong:#8896af;--graph-text:#171c28;--graph-text-muted:#465066;--graph-text-soft:#647087;--graph-edge:#8794aa;--graph-hotspot:#635bff2e;--graph-node-stroke:#aab4c6;--graph-node-selected-stroke:var(--accent-primary)}*{box-sizing:border-box}html{min-height:100%}body{min-height:100vh;color:var(--text-primary);background:var(--bg-canvas);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:IBM Plex Sans,Avenir Next,Segoe UI,sans-serif}button,input{font:inherit}button{border:0}code{font-family:IBM Plex Mono,SFMono-Regular,Consolas,monospace}#root{min-height:100vh}.app-frame{min-height:100vh;display:flex}.app-sidebar{background:var(--bg-sidebar);border-right:1px solid var(--border-subtle);flex-direction:column;flex-shrink:0;gap:1.5rem;width:280px;height:100vh;padding:1.4rem;transition:width .22s cubic-bezier(.4,0,.2,1),padding .22s cubic-bezier(.4,0,.2,1),gap .22s cubic-bezier(.4,0,.2,1);display:flex;position:sticky;top:0;overflow:hidden}.app-sidebar--collapsed{align-items:center;gap:.6rem;width:52px;padding:1rem .35rem}.app-sidebar__brand{align-items:center;gap:.9rem;padding:.6rem;display:flex}.app-sidebar--collapsed .app-sidebar__brand{justify-content:center;padding:.3rem 0}.app-logo{width:100%;height:100%;display:block}.app-logo--brand{flex-shrink:0;width:44px;height:44px}.app-sidebar__brand-link{border-radius:var(--radius-md);cursor:pointer;color:inherit;align-items:center;gap:.9rem;padding:.6rem;text-decoration:none;transition:background .16s;display:flex}.app-sidebar__brand-link:hover{background:var(--bg-surface-muted)}.app-sidebar--collapsed .app-sidebar__brand-link{justify-content:center;padding:.3rem 0}.gantt-controls{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.75rem;margin-bottom:.5rem;display:flex}.gantt-controls__cluster{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.6rem;display:inline-flex}.gantt-mode-toggle{border:1px solid var(--border-default);background:var(--bg-surface);border-radius:999px;display:inline-flex;overflow:hidden}.gantt-mode-toggle button{color:var(--text-secondary);cursor:pointer;background:0 0;padding:.38rem .85rem;font-size:.82rem;font-weight:600;transition:background .14s,color .14s}.gantt-mode-toggle button.active{background:var(--accent-primary);color:var(--text-inverse)}.gantt-timezone-select{border:1px solid var(--border-default);background:var(--bg-surface);color:var(--text-secondary);border-radius:999px;align-items:center;gap:.45rem;padding:.28rem .35rem .28rem .7rem;font-size:.8rem;font-weight:600;display:inline-flex}.gantt-timezone-select span{letter-spacing:.02em;text-transform:uppercase;font-size:.72rem}.gantt-timezone-select select{color:var(--text-primary);font:inherit;cursor:pointer;background:0 0;border:none;min-width:9rem}.gantt-timezone-select select:focus{outline:none}@media (width<=780px){.gantt-controls__cluster{width:100%}.gantt-timezone-select{justify-content:space-between;width:100%}.gantt-timezone-select select{flex:1;min-width:0}}.workspace-segmented-control{background:var(--bg-surface-muted);border:1px solid var(--border-default);border-radius:999px;align-items:center;gap:.35rem;padding:.28rem;display:inline-flex}.workspace-segmented-control__button{min-height:2.2rem;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:999px;padding:.48rem .95rem;font-size:.88rem;font-weight:700;transition:background .14s,color .14s,box-shadow .14s}.workspace-segmented-control__button--active{background:var(--bg-surface-muted);color:var(--text-primary);box-shadow:0 1px #17212b0d,0 0 0 1px #17212b0f}.app-sidebar__brand strong,.app-header h1,.workspace-card__header h3,.explorer-pane__header h2,.workspace-toolbar h2,.upload-hero h2,.loading-card h2{letter-spacing:-.03em;font-family:Space Grotesk,IBM Plex Sans,sans-serif}.app-sidebar__brand strong{font-size:1.05rem;display:block}.app-sidebar__brand span{color:var(--text-tertiary);margin-top:.12rem;font-size:.92rem;display:block}.app-sidebar__nav{flex-direction:column;gap:.55rem;display:flex}.sidebar-link{border-radius:var(--radius-md);width:100%;color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;flex-direction:row;align-items:center;gap:.72rem;padding:.72rem .9rem;transition:background .16s,color .16s;display:flex}.sidebar-link:hover:not(:disabled,.sidebar-link--active){background:var(--bg-surface-muted);color:var(--text-primary)}.sidebar-link--active{background:var(--bg-selection-soft);color:var(--text-accent);box-shadow:inset 0 0 0 1px var(--border-subtle), inset 3px 0 0 var(--accent-primary)}.sidebar-link:disabled{opacity:.45;cursor:default}.app-sidebar--collapsed .sidebar-link{justify-content:center;align-items:center;padding:.6rem .5rem}.app-sidebar--collapsed .sidebar-link__body{display:none}.sidebar-toggle{border-radius:var(--radius-sm);width:100%;color:var(--text-secondary);cursor:pointer;background:0 0;justify-content:center;align-items:center;padding:.55rem .8rem;font-size:1.05rem;line-height:1;transition:background .16s,color .16s;display:flex}.sidebar-toggle:hover{background:var(--bg-surface-muted);color:var(--text-primary)}.app-sidebar--collapsed .sidebar-toggle{width:auto;padding:.55rem}.hamburger-btn{border-radius:var(--radius-sm);min-width:44px;min-height:44px;color:var(--text-secondary);cursor:pointer;touch-action:manipulation;background:0 0;justify-content:center;align-items:center;padding:.5rem;font-size:1.2rem;transition:background .16s,color .16s;display:none}.hamburger-btn:hover{background:var(--bg-surface-muted);color:var(--text-primary)}.sidebar-backdrop{z-index:199;background:var(--bg-overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);position:fixed;inset:0}.app-sidebar__footer{border-radius:var(--radius-md);background:var(--bg-surface-muted);border:1px solid var(--border-subtle);margin-top:auto;padding:1.15rem}.app-sidebar--collapsed .app-sidebar__footer{padding:.55rem}.app-sidebar__footer strong,.app-sidebar__footer span{display:block}.app-sidebar__footer span{color:var(--text-tertiary);margin-top:.3rem;font-size:.9rem}.sidebar-settings-trigger{width:100%}.sidebar-settings-divider{background:var(--border-subtle);height:1px;margin:.95rem 0}.app-sidebar__session{gap:.2rem;display:grid}.app-main{flex-direction:column;flex:1;gap:1.1rem;min-width:0;padding:1.4rem;display:flex}.app-header{border-radius:var(--radius-lg);background:var(--bg-surface);box-shadow:var(--panel-shadow);border:1px solid var(--border-default);justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.25rem 1.35rem;display:flex}.eyebrow{color:var(--text-tertiary);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .3rem;font-size:.78rem;font-weight:600}.app-header h1{margin:0;font-size:clamp(1.8rem,3vw,2.6rem)}.app-header__summary,.workspace-card__header p,.resource-spotlight__description,.upload-hero p,.loading-card p,.empty-state,.metric-card__detail,.legend-row__value,.results-table__row span,.detail-stat span{color:var(--text-secondary)}.app-header__summary{max-width:60ch;margin:.55rem 0 0;line-height:1.5}.app-header__actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.75rem;display:flex}.app-badge,.tone-badge{border-radius:999px;align-items:center;gap:.35rem;padding:.45rem .75rem;font-size:.84rem;font-weight:600;display:inline-flex}.app-badge{background:var(--accent-soft);color:var(--accent-primary)}.secondary-action,.primary-action,.workspace-pill{cursor:pointer;border-radius:999px;transition:transform .16s,background .16s,box-shadow .16s}.secondary-action,.workspace-pill{background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-default)}.secondary-action{padding:.82rem 1.1rem}.primary-action:hover,.secondary-action:hover,.workspace-pill:hover{transform:translateY(-1px)}.primary-action{background:var(--accent-primary);color:var(--text-inverse);padding:.95rem 1.25rem}.primary-action:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.error-banner,.remote-update-banner,.loading-card,.upload-hero,.workspace-card,.explorer-pane,.workspace-main-panel{border:1px solid var(--border-default);background:var(--bg-surface);box-shadow:var(--panel-shadow);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.error-banner{border-radius:var(--radius-md);background:var(--bg-danger-soft);border:1px solid var(--border-danger);color:var(--text-danger);padding:1rem 1.15rem}.remote-update-banner{border-radius:var(--radius-md);background:color-mix(in srgb, var(--accent-soft) 68%, white 32%);justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.15rem;display:flex}.remote-update-banner__copy{gap:.25rem;display:grid}.remote-update-banner__copy strong{color:var(--text-primary)}.remote-update-banner__copy span{color:var(--text-secondary);font-size:.95rem}.loading-card,.upload-hero{border-radius:var(--radius-lg);gap:1.4rem;padding:1.7rem;display:grid}.loading-card{grid-template-columns:auto 1fr;align-items:center}.loading-card__pulse{background:linear-gradient(135deg, var(--accent-soft), var(--bg-success-soft));width:54px;height:54px;box-shadow:inset 0 0 0 1px var(--border-subtle);border-radius:18px;animation:1.5s ease-in-out infinite pulse}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.72;transform:scale(.94)}}.upload-hero{grid-template-columns:minmax(0,1.2fr) minmax(320px,.95fr)}.upload-hero__copy{flex-direction:column;justify-content:center;display:flex}.upload-hero__copy h2,.loading-card h2{margin:0 0 .65rem;font-size:clamp(1.5rem,3vw,2.2rem)}.upload-panel{border-radius:calc(var(--radius-lg) - 6px);background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--border-subtle);flex-direction:column;gap:1rem;padding:1.25rem;display:flex}.upload-panel__inputs{gap:.9rem;display:grid}.file-input-card{border-radius:var(--radius-md);background:var(--bg-surface-muted);border:1px solid var(--border-subtle);flex-direction:column;gap:.55rem;padding:1rem;display:flex}.file-input-card label{font-weight:600}.file-input-card input{width:100%}.file-input-card__filename{color:var(--text-tertiary);font-size:.9rem}.artifact-load-panel__inputs select,.artifact-load-panel__inputs input[type=text]{width:100%;padding:var(--space-2) var(--space-2);border-radius:var(--radius-md);border:1px solid var(--border-default);background:var(--bg-canvas);color:var(--text-primary);font-size:var(--text-sm)}.artifact-load-panel__radio-row{align-items:center;gap:var(--space-2);margin:var(--space-1) 0;display:flex}.artifact-load-panel__actions{gap:var(--space-2);flex-wrap:wrap;align-items:center;display:flex}.artifact-load-panel__actions--load-only{justify-content:flex-end}.artifact-load-panel__actions .primary-action,.artifact-load-panel__actions .secondary-action{justify-content:center;align-items:center;gap:var(--space-2);display:inline-flex}.workspace-layout{grid-template-columns:minmax(420px,500px) minmax(0,1fr);gap:1rem;display:grid}.workspace-layout--full{grid-template-columns:minmax(0,1fr)}.explorer-pane,.workspace-main-panel{border-radius:var(--radius-lg);padding:1.2rem}.explorer-pane{flex-direction:column;gap:1rem;display:flex}.explorer-pane__header,.workspace-toolbar,.workspace-card__header{justify-content:space-between;align-items:flex-start;gap:.8rem;display:flex}.workspace-card__header>div:first-child{flex:1;min-width:0}.explorer-pane__header h2,.workspace-toolbar h2,.workspace-card__header h3{margin:0}.explorer-pane__count{background:var(--accent-soft);min-width:44px;height:44px;color:var(--accent-primary);border-radius:16px;justify-content:center;align-items:center;padding:0 .8rem;font-weight:700;display:inline-flex}.workspace-search{flex-direction:column;gap:.45rem;display:flex}.workspace-search span{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.06em;font-size:.82rem;font-weight:600}.workspace-search:not(.workspace-search--global) input,.workspace-search:not(.workspace-search--global) select{border:1px solid var(--border-default);background:var(--bg-surface);width:100%;color:var(--text-primary);border-radius:16px;padding:.95rem 1rem}.workspace-search--compact{min-width:min(100%,300px)}.workspace-search__input-row{align-items:center;display:flex;position:relative}.workspace-search__input-row input{flex:1;padding-right:2.4rem}.workspace-search__clear{cursor:pointer;color:var(--text-tertiary);background:0 0;border:none;border-radius:4px;padding:.15rem .3rem;font-size:.8rem;line-height:1;transition:color .12s,background .12s;position:absolute;right:.75rem}.workspace-search__clear:hover{color:var(--text-primary);background:var(--bg-surface-muted)}.pill-row{flex-wrap:wrap;gap:.55rem;display:flex}.workspace-pill{align-items:center;gap:.45rem;padding:.62rem .9rem;display:inline-flex}.workspace-pill--active{background:var(--accent-soft);color:var(--accent-primary);box-shadow:inset 0 0 0 1px var(--border-accent);font-weight:700}.explorer-list{flex-direction:column;gap:.7rem;min-height:0;max-height:calc(100vh - 380px);padding-right:.15rem;display:flex;overflow:auto}.explorer-item{text-align:left;border-radius:var(--radius-md);background:var(--bg-surface);box-shadow:inset 0 0 0 1px var(--border-subtle);cursor:pointer;padding:.95rem}.explorer-item:hover:not(.explorer-item--active){background:var(--bg-surface-muted)}.explorer-item--active{background:var(--bg-selection-soft);box-shadow:inset 0 0 0 1px var(--border-accent)}.rank-list__body strong,.results-table__row strong{display:block}.workspace-main-panel{flex-direction:column;gap:1rem;min-width:0;display:flex}.workspace-toolbar{align-items:end}.workspace-header-meta{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.6rem;display:flex}.workspace-header-meta__project{background:var(--accent-soft);color:var(--accent-primary);border-radius:999px;padding:.2rem .65rem;font-size:.8rem;font-weight:600}.workspace-header-meta__time{color:var(--text-tertiary);white-space:nowrap;font-size:.78rem}.workspace-view{flex-direction:column;gap:1rem;display:flex}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.workspace-card{border-radius:var(--radius-lg);padding:1.15rem}.catalog-detail-hero{justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.1rem 1.2rem .1rem;display:flex}.catalog-detail-hero__content{flex:1;min-width:0}.asset-hero__actions{flex-direction:column;flex-shrink:0;align-items:flex-start;gap:.55rem;display:flex}.catalog-detail-hero h3{font-size:clamp(1.35rem,2vw,1.85rem);line-height:var(--leading-tight);overflow-wrap:anywhere;margin:.2rem 0 .55rem}.workspace-card__header h3{font-size:1.08rem}.workspace-card__header p{margin:.28rem 0 0}.metric-card{border-radius:var(--radius-lg);background:var(--bg-surface);border:1px solid var(--border-subtle);padding:1.1rem}.metric-card__label{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.08em;font-size:.84rem}.metric-card__value{letter-spacing:-.04em;margin-top:.55rem;font-size:2rem;font-weight:700}.metric-card__value--positive{color:var(--text-success)}.metric-card__value--warning{color:var(--text-warning)}.metric-card__value--danger{color:var(--text-danger)}.metric-card__value--neutral{color:var(--text-primary)}.metric-card__detail{margin-top:.25rem;line-height:1.45}.legend-row{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;gap:.75rem;padding:.55rem 0;display:flex}.legend-row:last-child{border-bottom:0}.legend-row__label{align-items:center;gap:.55rem;font-weight:600;display:inline-flex}.legend-row__swatch{border-radius:50%;width:11px;height:11px}.detail-stat{min-width:0;padding:var(--space-3) var(--space-3-5);background:var(--bg-surface-muted);border:1px solid var(--border-subtle);border-radius:18px}.detail-stat strong{overflow-wrap:anywhere;font-size:1.2rem;display:block}.detail-stat span{margin-top:.24rem;font-size:.88rem;display:block}.asset-summary-stack{flex-direction:column;gap:1rem;min-width:0;display:flex}.asset-summary__groups{flex-direction:column;gap:1.25rem;display:flex}.asset-summary__group-title{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.06em;margin:0 0 .6rem;font-size:.84rem;font-weight:600}.asset-summary__adapter-raw{background:var(--bg-surface-muted);white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;border-radius:12px;margin-top:.75rem;padding:.75rem .85rem;font-size:.88rem;line-height:1.45}.rank-list__row{background:var(--bg-surface-muted);border-radius:18px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.95rem;display:grid}.rank-list__body span,.rank-list__metric span{color:var(--text-secondary);margin-top:.2rem;font-size:.9rem;display:block}.results-controls,.timeline-controls{flex-wrap:wrap;align-items:flex-end;gap:.75rem;margin-bottom:.5rem;display:flex}.timeline-filter-note{color:var(--text-tertiary);margin:0 0 .5rem;font-size:.86rem}.invocation-resource-stats{border-radius:var(--radius-md);border:1px solid var(--border-subtle);background:var(--surface-raised);margin-bottom:1rem;padding:.75rem 1rem}.invocation-resource-stats__title{color:var(--text-primary);margin:0 0 .5rem;font-size:.88rem;font-weight:600}.invocation-resource-stats__table{border-collapse:collapse;width:100%;font-size:.82rem}.invocation-resource-stats__table th,.invocation-resource-stats__table td{text-align:left;border-bottom:1px solid var(--border-subtle);padding:.35rem .5rem}.invocation-resource-stats__table thead th{color:var(--text-tertiary);font-weight:600}.invocation-resource-stats__num{text-align:right;font-variant-numeric:tabular-nums}.invocation-resource-stats__note{color:var(--text-tertiary);margin:.5rem 0 0;font-size:.78rem;line-height:1.35}.invocation-resource-stats__note code{word-break:break-all;font-size:.72rem}@media (width<=640px){.exec-type-bar-row{grid-template-columns:1fr}}.gantt-legend{background:var(--bg-surface-muted);border:1px solid var(--border-subtle);border-radius:8px;flex-wrap:wrap;gap:.75rem 1.5rem;margin-bottom:.75rem;padding:.5rem .75rem;display:flex}.gantt-legend__group{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.gantt-legend__label{text-transform:uppercase;letter-spacing:.05em;color:var(--text-tertiary);margin-right:.25rem;font-size:.75rem;font-weight:600}.gantt-legend__item{cursor:pointer;color:var(--text-primary);background:0 0;border:1px solid #0000;border-radius:4px;align-items:center;gap:.3rem;padding:.15rem .45rem;font-size:.8rem;transition:background .12s;display:inline-flex}.gantt-legend__item:hover{background:var(--bg-elevated)}.gantt-legend__item--active{background:var(--accent-soft);border-color:var(--border-accent)}.gantt-legend__name{text-transform:capitalize}.gantt-legend__count{color:var(--text-tertiary);font-size:.72rem}.gantt-legend__group--bar-key{flex-direction:column;flex-basis:100%;align-items:flex-start;gap:.35rem;width:100%}.gantt-legend__bar-key-row{color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:.35rem .5rem;font-size:.78rem;display:flex}.gantt-legend__bar-key-row--phases{margin-top:.1rem}.gantt-legend__bar-key-swatch{flex-shrink:0;width:14px;height:10px}.gantt-legend__bar-key-caption{margin-right:.35rem}.timeline-large-dataset-hint{color:var(--text-tertiary);margin:0 0 .75rem;font-size:.85rem;line-height:1.35}.timeline-zoom-active,.timeline-neighborhood-active{color:var(--text-secondary);margin:0 0 .65rem;font-size:.85rem;line-height:1.4}.timeline-zoom-clear,.timeline-neighborhood-action{font:inherit;cursor:pointer;color:var(--accent-primary);text-underline-offset:.12em;background:0 0;border:none;padding:0;text-decoration:underline}.timeline-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:.75rem;margin-bottom:.75rem;display:flex}.timeline-toolbar__search{flex:18rem}.timeline-toolbar__actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.6rem;display:flex}.timeline-toolbar__hint{max-width:40rem;color:var(--text-tertiary);text-align:right;margin:0;font-size:.82rem;line-height:1.4}.timeline-dependency-controls{margin-bottom:.75rem;padding-block:.65rem}.timeline-dependency-controls.gantt-legend{align-items:center;gap:0}.timeline-dependency-controls__top-row{flex-wrap:wrap;align-items:center;gap:1rem;width:100%;display:flex}.timeline-dependency-controls__zone{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.timeline-dependency-controls__zone--direction{flex:24rem}.timeline-dependency-controls__divider{background:var(--border-default);align-self:stretch;width:1px}.timeline-dependency-controls__stepper{align-items:center;gap:.5rem;display:inline-flex}.timeline-dependency-controls__stepper .workspace-pill,.timeline-dependency-controls__max-button{justify-content:center;align-items:center;min-width:2.3rem;min-height:2.3rem;padding:.45rem .8rem;display:inline-flex}.timeline-dependency-controls__depth-value{text-align:center;min-width:2ch;color:var(--text-primary);font-weight:700}@media (width<=860px){.timeline-dependency-controls__divider{display:none}.timeline-dependency-controls__zone--direction{flex-basis:100%}}.timeline-filter-accordion{margin-bottom:.5rem}.timeline-filter-accordion__summary{cursor:pointer;color:var(--text-tertiary);-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;padding:.3rem 0;font-size:.85rem;font-weight:600;list-style:none;display:flex}.timeline-filter-accordion__summary::-webkit-details-marker{display:none}.timeline-filter-accordion__summary:before{content:"▶";font-size:.65rem;transition:transform .15s;display:inline-block}details.timeline-filter-accordion[open] .timeline-filter-accordion__summary:before{transform:rotate(90deg)}.timeline-filter-accordion__badge{background:var(--bg-accent-soft);min-width:18px;height:18px;color:var(--text-accent);border-radius:999px;justify-content:center;align-items:center;padding:0 4px;font-size:.72rem;font-weight:700;display:inline-flex}details.timeline-filter-accordion .timeline-controls{margin-top:.5rem}.results-table{flex-direction:column;gap:.75rem;display:flex}.results-table__header,.results-table__row{grid-template-columns:var(--results-table-columns);justify-content:start;align-items:center;gap:.8rem;display:grid}.results-table__scroll{min-height:0;overflow-x:hidden}.results-table__header{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.08em;padding:0 1rem .4rem;font-size:.83rem}.results-table__header--sticky{z-index:2;background:var(--bg-surface);box-shadow:0 1px 0 var(--border-subtle);position:sticky;top:0}.results-table__sort-button{width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:.28rem;min-width:0;padding:0;display:inline-flex}.results-table__sort-button:hover,.results-table__sort-button:focus-visible{color:var(--text-primary)}.results-table__sort-button:focus-visible{outline:2px solid color-mix(in srgb, var(--accent-primary) 38%, transparent);outline-offset:3px;border-radius:6px}.results-table__sort-button--align-end{justify-content:flex-end}.results-table__sort-indicator{width:.8rem;color:var(--text-secondary);text-align:center;flex-shrink:0}.results-table__body{min-width:0}.results-table__progress{color:var(--text-tertiary);margin:0;font-size:.82rem}.results-table__row{background:var(--bg-surface-muted);border:1px solid var(--border-subtle);text-align:left;appearance:none;border-radius:18px;margin:0;padding:.95rem 1rem;font-family:inherit}.results-table__cell{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.88rem;overflow:hidden}.results-table__cell--item strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.results-table__cell--align-end{text-align:right}.tone-badge--positive{background:var(--bg-success-soft);color:var(--text-success)}.tone-badge--warning{background:var(--bg-warning-soft);color:var(--text-warning)}.tone-badge--danger{background:var(--bg-danger-soft);color:var(--text-danger)}.tone-badge--neutral{background:var(--bg-surface-muted);color:var(--text-tertiary)}.tone-badge--skipped{background:var(--bg-accent-soft);color:var(--text-accent)}.empty-state{padding:1rem 0;line-height:1.5}.empty-state--chart{padding:2.4rem 1rem}.chart-frame__viewport{min-height:320px}.gantt-brush-wrap{margin-bottom:.75rem}.gantt-brush__header{justify-content:space-between;align-items:center;margin-bottom:.4rem;display:flex}.gantt-brush__title{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.06em;margin:0;font-size:.8rem}.gantt-brush{background:var(--bg-surface-muted);border:1px solid var(--border-subtle);touch-action:none;cursor:crosshair;border-radius:10px;height:42px;position:relative;overflow:hidden}.gantt-brush__bar{background:color-mix(in oklab, var(--accent-primary) 40%, transparent);pointer-events:none;border-radius:999px;height:10px;position:absolute;top:16px}.gantt-brush__bar--issue{background:color-mix(in oklab, var(--danger) 68%, transparent)}.gantt-brush__selection{border:1px solid var(--accent-primary);background:color-mix(in oklab, var(--accent-primary) 15%, transparent);cursor:grab;border-radius:8px;position:absolute;top:4px;bottom:4px}.gantt-brush__selection--default{border-color:color-mix(in oklab, var(--accent-primary) 48%, var(--border-subtle));background:color-mix(in oklab, var(--accent-primary) 8%, transparent)}.gantt-brush__selection--default .gantt-brush__handle{background:color-mix(in oklab, var(--accent-primary) 62%, var(--bg-surface-muted))}.gantt-brush__selection:active{cursor:grabbing}.gantt-brush__handle{background:var(--accent-primary);cursor:ew-resize;width:8px;height:100%;position:absolute;top:0}.gantt-brush__handle--start{left:0}.gantt-brush__handle--end{right:0}.chart-tooltip{background:var(--bg-elevated);border:1px solid var(--border-default);box-shadow:var(--panel-shadow);border-radius:16px;padding:.65rem .8rem;font-size:.86rem}@media (width<=1180px){.app-frame:not(.app-frame--sidebar-collapsed){flex-direction:column}.app-frame:not(.app-frame--sidebar-collapsed) .app-sidebar{width:100%;height:auto;position:static}.app-frame--sidebar-collapsed{flex-direction:row}.app-frame--sidebar-collapsed .app-sidebar{height:100vh;position:sticky;top:0}.workspace-layout,.upload-hero{grid-template-columns:1fr}.explorer-list{max-height:360px}.results-table__header,.results-table__row{grid-template-columns:var(--results-table-columns)}}@media (width<=780px){.app-main,.app-sidebar,.workspace-card,.explorer-pane,.workspace-main-panel,.upload-hero,.loading-card{padding:1rem}.app-header{flex-direction:column}.app-header--workspace{grid-template-columns:1fr}.app-header__identity{padding-top:0}.app-header__summary-grid{gap:.5rem}.app-header__search-panel{padding:.8rem}.app-header__search-shell{min-height:58px}.catalog-detail-hero{flex-direction:column;align-items:flex-start}.detail-grid{grid-template-columns:1fr}.results-table__header{display:none}.results-table__row{grid-template-columns:1fr}.results-table__row>div:not(:first-child){justify-content:space-between;align-items:center;gap:.75rem;display:flex}.results-table__row>div:not(:first-child):before{content:attr(data-label);color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.08em;font-size:.8rem}.rank-list__row{grid-template-columns:auto 1fr}.rank-list__metric{grid-column:2}}@media (width<=639px){.hamburger-btn{display:flex}.sidebar-toggle{display:none}.app-sidebar{z-index:200;width:280px;height:100vh;transition:transform .24s cubic-bezier(.4,0,.2,1);position:fixed;top:0;left:0;transform:translate(-100%)}.app-frame--nav-open .app-sidebar{transform:translate(0)}.app-sidebar--collapsed .app-sidebar__footer{padding:1rem}.app-frame,.app-frame--sidebar-collapsed,.app-frame:not(.app-frame--sidebar-collapsed){flex-direction:column}.workspace-layout{grid-template-columns:1fr}.explorer-list{max-height:280px}.sidebar-link,.primary-action,.secondary-action,.workspace-pill{touch-action:manipulation;min-height:44px}.pill-row{flex-wrap:wrap}}@media (width<=479px){.app-main,.app-header,.workspace-card,.explorer-pane,.workspace-main-panel{padding:.75rem}.metric-card__value{font-size:clamp(1.4rem,6vw,2.4rem)}.upload-hero{padding:1.25rem}}@media (width<=359px){.app-badge,.eyebrow,.app-header__summary{white-space:normal;overflow-wrap:break-word}.app-header__actions{flex-wrap:wrap}}.nav-group{flex-direction:column;gap:.2rem;display:flex}.nav-group+.nav-group{border-top:1px solid var(--border-subtle);margin-top:.65rem;padding-top:.65rem}.nav-group__label{letter-spacing:.08em;text-transform:uppercase;color:var(--text-secondary);pointer-events:none;-webkit-user-select:none;user-select:none;padding:.25rem .9rem .15rem;font-size:.68rem;font-weight:700}.app-sidebar--collapsed .nav-group__label{display:none}.app-sidebar--collapsed .nav-group+.nav-group{margin-top:.4rem;padding-top:.4rem}.app-header__identity{align-self:start;gap:.7rem;min-width:0;max-width:44rem;padding:.02rem 0 0;display:grid}.app-header__identity .eyebrow{overflow-wrap:anywhere}.app-header__subheadline{color:var(--text-secondary);margin:0;font-size:.98rem;line-height:1.5}.app-header__summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1.05rem 1.5rem;width:min(100%,43rem);display:grid}.app-header__summary-item{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:.72rem;width:100%;min-width:0;display:grid}.app-header__summary-icon{width:2.05rem;height:2.05rem;color:color-mix(in srgb, var(--text-primary) 76%, var(--accent-primary));background:color-mix(in srgb, var(--bg-surface) 80%, white);border:1px solid color-mix(in srgb, var(--border-subtle) 92%, white);border-radius:999px;flex:none;justify-content:center;align-items:center;display:inline-flex}.app-header__summary-icon svg{width:1rem;height:1rem}.app-header__summary-copy{align-content:start;gap:.14rem;min-width:0;display:grid}.app-header__summary-label{color:var(--text-tertiary);letter-spacing:.08em;text-transform:uppercase;font-size:.62rem;font-weight:700;line-height:1.2}.app-header__summary-value{color:var(--text-primary);overflow-wrap:anywhere;font-size:.92rem;font-weight:650;line-height:1.22;display:block}.app-header--workspace{background:radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--accent-soft) 5%, transparent), transparent 16%), radial-gradient(circle at 79% 0%, #ffffff24, transparent 12%), linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 93%, white), var(--bg-surface)), var(--bg-surface);border-color:color-mix(in srgb, var(--border-default) 82%, var(--accent-soft));box-shadow:0 10px 28px color-mix(in srgb, var(--shadow-color,#0f172a14) 7%, transparent), inset 0 1px 0 #fff9;grid-template-columns:minmax(0,1fr) minmax(27rem,39rem);align-items:start;gap:1rem;padding:.72rem 1.1rem .76rem;display:grid}.app-header__omnibox{align-self:start;width:100%;min-width:0;position:relative}.app-header__search-control{width:100%;display:block}.app-header__search-shell{border:1px solid color-mix(in srgb, var(--border-default) 82%, var(--accent-soft));background:linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 98%, white), color-mix(in srgb, var(--bg-surface) 94%, white));min-height:60px;box-shadow:0 8px 20px color-mix(in srgb, var(--shadow-color,#0f172a14) 6%, transparent);border-radius:999px;align-items:center;gap:.9rem;padding-inline:1.2rem 1.3rem;transition:border-color .14s,box-shadow .14s,background-color .14s;display:flex}.workspace-search__icon{width:1.45rem;height:1.45rem;color:var(--text-tertiary);flex:none}.app-header__search-shell input{width:100%;min-width:0;min-height:58px;box-shadow:none;color:var(--text-primary);background:0 0;border:0;border-radius:0;padding:0;font-size:1rem;font-weight:550}.app-header__search-shell input:focus{outline:none}.app-header__search-shell input::placeholder{color:var(--text-tertiary);opacity:1}.omnibox-results{z-index:30;border:1px solid color-mix(in srgb, var(--border-default) 84%, var(--accent-soft));background:linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 97%, white), var(--bg-surface));box-shadow:0 14px 28px color-mix(in srgb, var(--shadow-color,#0f172a14) 10%, transparent), inset 0 1px 0 #ffffffb3;border-radius:18px;flex-direction:column;gap:.25rem;padding:.7rem;display:flex;position:absolute;top:calc(100% + .65rem);left:0;right:0}.omnibox-results__item{border-radius:var(--radius-sm);text-align:left;justify-content:space-between;gap:.8rem;width:100%;padding:.7rem .8rem;display:flex}.omnibox-results__item:hover{background:var(--bg-surface-muted)}.omnibox-results__item span,.omnibox-results__empty{color:var(--text-secondary);font-size:.82rem}@media (width<=1180px){.app-header--workspace{grid-template-columns:minmax(0,1fr)}.app-header__summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-header__omnibox{max-width:38rem}}@media (width<=780px){.app-header__summary-grid{grid-template-columns:minmax(0,1fr);gap:.8rem}.app-header__summary-item{width:100%}.app-header__omnibox{max-width:none}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner{vertical-align:middle;flex-shrink:0;animation:.7s linear infinite spin;display:inline-block}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton{background:linear-gradient(90deg, var(--bg-surface-muted) 25%, var(--bg-elevated) 50%, var(--bg-surface-muted) 75%);background-size:200% 100%;border-radius:10px;animation:1.5s ease-in-out infinite skeleton-shimmer}.loading-card__skeleton-icon{border-radius:18px;flex-shrink:0;width:54px;height:54px}.loading-card__skeleton-title{border-radius:8px;width:160px;height:20px;margin-bottom:10px}.loading-card__skeleton-body{border-radius:8px;width:300px;max-width:100%;height:15px}.tooltip-host{display:inline;position:relative}.tooltip-host:after{content:attr(data-tooltip);background:var(--text-primary);color:var(--text-inverse);white-space:pre-wrap;word-break:break-all;text-align:left;opacity:0;pointer-events:none;z-index:300;border-radius:10px;max-width:300px;padding:.42rem .7rem;font-size:.78rem;font-weight:500;line-height:1.45;transition:opacity .14s;position:absolute;bottom:calc(100% + 7px);left:50%;transform:translate(-50%);box-shadow:0 8px 24px #11182738}.tooltip-host:hover:after,.tooltip-host:focus-within:after{opacity:1}.empty-state-block{text-align:center;flex-direction:column;align-items:center;gap:.6rem;padding:2.4rem 1.5rem;display:flex}.empty-state-block__icon{opacity:.45;font-size:2rem;line-height:1;display:block}.empty-state-block__headline{color:var(--text-primary);font-size:.98rem;font-weight:600;display:block}.empty-state-block__subtext{color:var(--text-secondary);max-width:36ch;margin:0;font-size:.88rem;line-height:1.5}@keyframes toast-enter{0%{opacity:0;transform:translateY(10px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.toast-portal{z-index:500;pointer-events:none;flex-direction:column;gap:.6rem;display:flex;position:fixed;bottom:1.5rem;right:1.5rem}.toast{border-radius:var(--radius-md);background:var(--bg-surface);box-shadow:var(--panel-shadow);border:1px solid var(--border-default);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);pointer-events:auto;align-items:center;gap:.75rem;min-width:220px;max-width:360px;padding:.9rem 1.1rem;font-size:.92rem;font-weight:500;animation:.22s cubic-bezier(.16,1,.3,1) both toast-enter;display:flex}.toast__dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.toast__message{color:var(--text-primary);flex:1;line-height:1.4}.toast__dismiss{width:24px;height:24px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;font-size:.75rem;transition:background .12s;display:inline-flex}.toast__dismiss:hover{background:var(--bg-surface-muted);color:var(--text-primary)}.toast--positive .toast__dot{background:var(--success-fg)}.toast--warning .toast__dot{background:var(--warning-fg)}.toast--danger .toast__dot{background:var(--danger-fg)}.toast--neutral .toast__dot{background:var(--text-tertiary)}@media (width<=479px){.toast-portal{bottom:1rem;left:1rem;right:1rem}.toast{min-width:unset;max-width:unset;width:100%}}.sidebar-link{position:relative}.sidebar-link__icon{width:2rem;height:2rem;color:var(--text-secondary);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;transition:background .16s,color .16s;display:inline-flex}.sidebar-link__icon svg{flex-shrink:0;width:20px;height:20px}.sidebar-link--active .sidebar-link__icon{color:var(--icon-accent)}.sidebar-link:hover:not(:disabled,.sidebar-link--active) .sidebar-link__icon{color:var(--icon-primary)}.sidebar-link__body{flex:1;align-items:center;min-width:0;display:flex;overflow:hidden}.sidebar-link__body strong{white-space:nowrap;text-overflow:ellipsis;font-size:.92rem;font-weight:700;overflow:hidden}.app-sidebar--collapsed .sidebar-link--active .sidebar-link__icon{background:var(--accent-soft);color:var(--accent-primary)}.resource-spotlight__description--muted{color:var(--text-secondary)}.overview-hero{border-radius:var(--radius-lg);background:linear-gradient(135deg, var(--bg-accent-soft), var(--bg-success-soft));border:1px solid var(--border-subtle);grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr);gap:1rem;padding:1.2rem;display:grid}.overview-hero__copy h3{letter-spacing:-.03em;margin:0;font-size:clamp(1.25rem,2vw,1.8rem);line-height:1.2}.overview-hero__copy p:last-child,.overview-fact-card p,.explorer-summary-card span,.upload-feature-card p,.upload-panel__tips span,.upload-hero__callout p{color:var(--text-secondary);line-height:1.5}.overview-hero__facts{gap:.85rem;display:grid}.overview-fact-card,.explorer-summary-card,.upload-feature-card,.upload-hero__callout,.upload-panel__tips>div,.upload-panel__status{border-radius:var(--radius-md);background:var(--bg-surface);border:1px solid var(--border-subtle)}.overview-fact-card{padding:1rem}.overview-fact-card span,.upload-panel__status{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;font-weight:700}.overview-fact-card strong{margin-top:.35rem;font-size:1.35rem;display:block}.explorer-summary-card{flex-direction:column;gap:.28rem;padding:.95rem 1rem;display:flex}.upload-hero__callout{margin-top:1.1rem;padding:1rem 1.05rem}.upload-hero__callout-badge{background:var(--accent-soft);color:var(--accent-primary);border-radius:999px;margin-bottom:.55rem;padding:.3rem .6rem;font-size:.78rem;font-weight:700;display:inline-flex}.upload-feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;margin-top:1.1rem;display:grid}.upload-feature-card{padding:.95rem}.upload-feature-card strong,.upload-panel__tips strong,.explorer-summary-card strong{margin-bottom:.28rem;display:block}.upload-panel__header{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.upload-panel__header h3{margin:0;font-size:1.15rem}.upload-panel__status{padding:.7rem .85rem}.upload-panel__tips{gap:.75rem;display:grid}.upload-panel__tips>div{padding:.9rem 1rem}@media (width<=1100px){.upload-feature-grid,.overview-hero{grid-template-columns:1fr}}@media (width<=720px){.upload-hero{grid-template-columns:1fr}.upload-panel__header{flex-direction:column}}.dependency-graph{color:var(--graph-text-muted);flex-direction:column;gap:.75rem;display:flex;position:relative}.dependency-graph--empty{background:linear-gradient(180deg, var(--graph-bg-top) 0%, var(--graph-bg-bottom) 100%);min-height:260px;box-shadow:inset 0 0 0 1px var(--graph-border);border-radius:22px;justify-content:center;align-items:center;padding:1.25rem}.dependency-graph--fullscreen{height:100%;min-height:0}.dependency-graph--summary{gap:.9rem}.dependency-graph--focused{gap:.8rem}.lineage-legend{background:var(--graph-panel);border:1px solid var(--graph-border);border-radius:14px;flex-wrap:wrap;align-items:center;gap:.35rem .9rem;padding:.5rem .75rem;display:flex;box-shadow:inset 0 1px #ffffff59,0 10px 22px #0f172a14}.lineage-legend__mode-label{text-transform:uppercase;letter-spacing:.07em;color:var(--graph-text-soft);white-space:nowrap;margin-right:.2rem;font-size:.72rem;font-weight:700}.lineage-legend__item{cursor:pointer;color:var(--graph-text-muted);background:0 0;border-radius:999px;align-items:center;gap:.38rem;padding:.16rem .36rem;font-size:.8rem;font-weight:500;transition:background .14s,color .14s,opacity .14s;display:inline-flex}.lineage-legend__item:hover{background:#46506614}.lineage-legend__item--active{opacity:1}.lineage-legend__item--inactive{opacity:.42}.lineage-legend__clear{color:var(--graph-text-muted);cursor:pointer;background:#46506614;border-radius:999px;padding:.18rem .52rem;font-size:.78rem;font-weight:600}.lineage-legend__swatch{border:1px solid #171c2829;border-radius:3px;flex-shrink:0;width:11px;height:11px}.lineage-graph__viewport-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;display:flex}.lineage-graph__zoom-controls{flex-wrap:wrap;align-items:center;gap:.3rem;display:flex}.lineage-graph__summary{color:var(--graph-text-muted);white-space:nowrap;margin:0;font-size:.8rem}.lineage-graph__viewport{background:radial-gradient(circle at top, var(--graph-bg-accent), transparent 48%), linear-gradient(180deg, var(--graph-bg-top) 0%, color-mix(in srgb, var(--graph-bg-top) 55%, var(--graph-bg-bottom) 45%) 52%, var(--graph-bg-bottom) 100%);border:1px solid var(--graph-border);cursor:grab;-webkit-user-select:none;user-select:none;border-radius:24px;height:440px;overflow:auto;box-shadow:inset 0 1px #ffffff52,0 20px 40px #0f172a14}.dependency-graph--summary .lineage-graph__viewport{height:520px}.lineage-graph__viewport:active{cursor:grabbing}.lineage-graph__viewport--fullscreen{flex:1;height:auto;min-height:0}.lineage-graph__canvas{min-width:max-content;position:relative}.lineage-graph__zoom-layer{transform-origin:0 0;position:absolute;top:0;left:0}.dependency-graph__svg{width:100%;height:100%;display:block;overflow:visible}.dependency-graph__node{stroke:var(--graph-node-stroke);stroke-width:2px;filter:drop-shadow(0 10px 18px #0f172a1f);transition:fill .22s,opacity .2s,stroke .16s}.dependency-graph__node--selected{stroke:var(--graph-node-selected-stroke);stroke-width:2.2px}.dependency-graph__node--dimmed{opacity:.26}.dependency-graph__node--tone-positive:not(.dependency-graph__node--selected){stroke:var(--border-success);stroke-width:2.5px}.dependency-graph__node--tone-warning:not(.dependency-graph__node--selected){stroke:var(--border-warning);stroke-width:2.5px}.dependency-graph__node--tone-danger:not(.dependency-graph__node--selected){stroke:var(--border-danger);stroke-width:2.75px}.dependency-graph__node--tone-skipped:not(.dependency-graph__node--selected){stroke:var(--border-strong);stroke-width:2.25px;stroke-dasharray:5 4}.dependency-graph__node--tone-neutral:not(.dependency-graph__node--selected){stroke:var(--border-default);stroke-width:2px}.dependency-graph__svg--lens-status .dependency-graph__node--tone-positive:not(.dependency-graph__node--selected),.dependency-graph__svg--lens-status .dependency-graph__node--tone-warning:not(.dependency-graph__node--selected),.dependency-graph__svg--lens-status .dependency-graph__node--tone-danger:not(.dependency-graph__node--selected){stroke-width:2px;stroke-opacity:.65}.dependency-graph__svg--lens-status .dependency-graph__node--tone-skipped:not(.dependency-graph__node--selected){stroke-width:2px;stroke-opacity:.55}.dependency-graph__svg--lens-status .dependency-graph__node--tone-neutral:not(.dependency-graph__node--selected){stroke-width:1.75px;stroke-opacity:.5}.dependency-graph__node-title-row{width:100%;min-width:0;height:24px;color:var(--graph-text);pointer-events:none;align-items:center;gap:8px;font-family:IBM Plex Sans,sans-serif;display:flex}.dependency-graph__node-title-icon{width:16px;height:16px;color:var(--graph-text-soft);opacity:.92;flex:none;justify-content:center;align-items:center;display:inline-flex}.dependency-graph__node-title-icon svg{stroke-width:1.7px;width:16px;height:16px}.dependency-graph__node-title-text{white-space:nowrap;text-overflow:ellipsis;min-width:0;color:var(--graph-text);font-size:15px;font-weight:700;line-height:1.15;display:block;overflow:hidden}.dependency-graph--summary .dependency-graph__node-title-row{gap:7px}.dependency-graph--summary .dependency-graph__node-title-icon,.dependency-graph--summary .dependency-graph__node-title-icon svg{width:15px;height:15px}.dependency-graph--summary .dependency-graph__node-title-text{font-size:13px}.dependency-graph__node-stat-pill{pointer-events:none}.dependency-graph__node-stat-pill--pass{fill:var(--text-success)}.dependency-graph__node-stat-pill--fail{fill:var(--text-danger)}.dependency-graph__node-stat{letter-spacing:.01em;pointer-events:none;font-family:IBM Plex Sans,sans-serif;font-size:11px;font-weight:800}.dependency-graph__node-stat--pass{fill:var(--bg-success-soft)}.dependency-graph__node-stat--fail{fill:var(--bg-danger-soft)}.dependency-graph__node-stat-pill--neutral{fill:#64708747}.dependency-graph__node-stat-pill--not-executed{fill:var(--bg-surface-muted);stroke:var(--border-default);stroke-width:1px;stroke-dasharray:3 2}.dependency-graph__node-stat-pill--skipped{fill:var(--bg-accent-soft)}.dependency-graph__node-stat--neutral{fill:var(--text-secondary)}.dependency-graph__node-stat--not-executed{fill:var(--text-tertiary)}.dependency-graph__node-stat--skipped{fill:var(--text-accent)}.dependency-graph--summary .dependency-graph__node-stat{font-size:10px}.dependency-graph__edge{fill:none;stroke:var(--graph-edge);stroke-width:1.8px;transition:opacity .2s}.dependency-graph__edge--dimmed{opacity:.16}.dependency-graph__interactive-layer{pointer-events:none;position:absolute;inset:0}.dependency-graph__hotspot{cursor:pointer;pointer-events:all;background:0 0;border:none;border-radius:18px;padding:0;transition:box-shadow .12s;position:absolute}.dependency-graph__hotspot:hover{box-shadow:inset 0 0 0 2px var(--graph-hotspot)}.graph-context-menu{z-index:400;background:var(--graph-panel);min-width:180px;box-shadow:0 20px 40px #0003, inset 0 0 0 1px var(--graph-border);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-radius:14px;padding:.4rem;position:fixed}.graph-context-menu__item{width:100%;color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;border-radius:10px;padding:.55rem .8rem;font-size:.88rem;font-weight:500;transition:background .12s;display:block}.graph-context-menu__item:hover{background:var(--bg-surface-muted);color:var(--text-primary)}.graph-context-menu__label{color:var(--text-tertiary);border-top:1px solid var(--border-subtle);margin-top:.2rem;padding:.4rem .8rem .2rem;font-size:.76rem}.graph-node-tooltip{z-index:450;background:var(--bg-elevated);width:248px;box-shadow:var(--panel-shadow);border:1px solid var(--border-subtle);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);pointer-events:none;border-radius:12px;padding:.55rem .72rem;position:absolute}.graph-node-tooltip__name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:700;overflow:hidden}.graph-node-tooltip__meta{color:var(--text-secondary);margin-top:.18rem;font-size:.78rem}.graph-node-tooltip__status{border-radius:999px;margin-top:.35rem;padding:.18rem .5rem;font-size:.78rem;font-weight:600;display:inline-block}.graph-node-tooltip__status--positive{background:var(--bg-success-soft);color:var(--text-success)}.graph-node-tooltip__status--warning{background:var(--bg-warning-soft);color:var(--text-warning)}.graph-node-tooltip__status--danger{background:var(--bg-danger-soft);color:var(--text-danger)}.graph-node-tooltip__status--neutral{background:var(--bg-surface-muted);color:var(--text-tertiary)}.graph-node-tooltip__status--skipped{background:var(--bg-accent-soft);color:var(--text-accent)}.graph-node-tooltip__description{color:var(--text-tertiary);line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:.38rem;font-size:.78rem;line-height:1.45;display:-webkit-box;overflow:hidden}.dependency-graph .workspace-pill{background:var(--graph-panel);color:var(--graph-text);box-shadow:inset 0 0 0 1px var(--graph-border)}.dependency-graph .workspace-pill:hover{background:var(--graph-panel-hover)}.dependency-graph .workspace-pill--active{background:var(--graph-panel-active);color:var(--graph-text);box-shadow:inset 0 0 0 1px var(--graph-border-strong)}.lineage-toolbar{flex-wrap:wrap;align-items:center;gap:.45rem;display:flex}.shared-depth-selector{flex-wrap:wrap;align-items:center;gap:.28rem;display:inline-flex}.shared-depth-selector__label{color:var(--graph-text-soft);margin-right:.1rem;font-size:.78rem;font-weight:600}.shared-depth-selector__state{color:var(--graph-text-soft);font-size:.76rem;font-weight:600}.lineage-stepper{background:var(--graph-panel);box-shadow:inset 0 0 0 1px var(--graph-border);border-radius:999px;align-items:center;gap:.3rem;padding:.25rem .5rem .25rem .7rem;display:flex}.lineage-stepper--disabled{opacity:.45}.lineage-stepper__label{color:var(--graph-text-soft);white-space:nowrap;font-size:.78rem;font-weight:600}.lineage-stepper__controls{align-items:center;gap:.15rem;display:flex}.lineage-stepper__button{width:22px;height:22px;color:var(--graph-text-muted);cursor:pointer;background:0 0;border-radius:50%;justify-content:center;align-items:center;font-size:1rem;line-height:1;transition:background .12s,color .12s;display:inline-flex}.lineage-stepper__button:hover:not(:disabled){background:var(--graph-panel-active);color:var(--graph-text)}.lineage-stepper__button:disabled{opacity:.3;cursor:not-allowed}.lineage-stepper__value{text-align:center;min-width:1.25rem;color:var(--graph-text);font-size:.82rem;font-weight:700}.lineage-summary{flex-direction:column;gap:.85rem;display:flex}.lineage-summary--summary{gap:1rem}.lineage-summary__stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;display:grid}.lineage-summary__stat{background:var(--graph-panel);border:1px solid var(--graph-border);border-radius:14px;padding:.7rem .85rem}.lineage-summary__stat span{color:var(--graph-text-soft);text-transform:uppercase;letter-spacing:.06em;font-size:.75rem;font-weight:600;display:block}.lineage-summary__stat strong{color:var(--graph-text);margin-top:.18rem;font-size:1.1rem;display:block}.lineage-dialog{z-index:600;align-items:stretch;width:100vw;height:100vh;padding:.75rem;display:flex;position:fixed;inset:0}.lineage-dialog--container{z-index:40;padding:.5rem;position:absolute}.lineage-dialog__backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);cursor:pointer;background:#1118278c;border:none;width:100%;position:absolute;inset:0}.lineage-dialog__panel{z-index:1;background:color-mix(in srgb, var(--bg-surface-muted) 92%, white 8%);border:1px solid #ffffff59;border-radius:24px;flex-direction:column;width:min(1800px,100% - 1.5rem);height:calc(100% - 1.5rem);margin:auto;display:flex;position:relative;overflow:hidden;box-shadow:0 48px 120px #1118274d}.lineage-dialog--container .lineage-dialog__panel{border-radius:20px;width:calc(100% - 1rem);max-width:none;height:calc(100% - 1rem);margin:auto}.lineage-dialog__header{border-bottom:1px solid var(--border-default);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:linear-gradient(#ffffffe6,#f8fafcc7);flex-direction:column;flex-shrink:0;gap:1rem;padding:1.15rem 1.35rem 1rem;display:flex}.lineage-dialog__header-main{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.lineage-dialog__toolbar{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.lineage-dialog__header h3{margin:.18rem 0 0;font-size:1.6rem}.lineage-dialog__subtitle{color:var(--text-secondary);max-width:64ch;margin:.22rem 0 0;font-size:.92rem}.lineage-dialog__close{border:1px solid var(--border-default);width:44px;height:44px;color:var(--text-primary);cursor:pointer;background:#ffffffd1;border-radius:999px;justify-content:center;align-items:center;padding:0;transition:background .18s,border-color .18s,transform .18s;display:inline-flex}.lineage-dialog__close:hover{border-color:var(--border-strong);background:#fffffff5;transform:translateY(-1px)}.lineage-dialog__close:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.lineage-dialog__close span{font-size:1.55rem;line-height:1;display:block}@media (width<=900px){.lineage-dialog{padding:.5rem}.lineage-dialog__panel{border-radius:20px;width:calc(100% - 1rem);height:calc(100% - 1rem)}.lineage-dialog__header-main{align-items:flex-start}.lineage-dialog__header h3{font-size:1.35rem}.lineage-dialog--container{padding:.35rem}.lineage-dialog--container .lineage-dialog__panel{width:calc(100% - .7rem);height:calc(100% - .7rem)}}.sql-panel{border-radius:var(--radius-md);background:var(--bg-code);border:1px solid var(--border-subtle);white-space:pre;color:var(--text-secondary);margin:0;padding:1rem;font-family:IBM Plex Mono,SFMono-Regular,Consolas,monospace;font-size:.83rem;line-height:1.7;overflow-x:auto}.definition-panel{flex-direction:column;gap:1rem;display:flex}.definition-list{flex-direction:column;gap:.45rem;display:flex}.definition-list>span,.definition-block>span{letter-spacing:.04em;text-transform:uppercase;color:var(--text-tertiary);font-size:.78rem;font-weight:700}.definition-list__values{flex-wrap:wrap;gap:.5rem;display:flex}.definition-pill{background:var(--bg-surface-muted);border:1px solid var(--border-subtle);color:var(--text-primary);border-radius:999px;align-items:center;padding:.34rem .72rem;font-size:.84rem;font-weight:600;display:inline-flex}.definition-block{flex-direction:column;gap:.45rem;display:flex}.definition-block pre{border-radius:var(--radius-md);background:var(--bg-code);border:1px solid var(--border-subtle);white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;color:var(--text-primary);margin:0;padding:.9rem 1rem;font-family:IBM Plex Mono,SFMono-Regular,Consolas,monospace;font-size:.83rem;line-height:1.6}.definition-block p{color:var(--text-tertiary);margin:0;line-height:1.6}.sql-token-keyword{color:var(--accent-primary);font-weight:600}.sql-token-function{color:var(--text-warning);font-weight:500}.sql-token-string{color:var(--text-success)}.sql-token-number{color:var(--text-warning)}.sql-token-comment{color:var(--text-tertiary);font-style:italic}.sql-token-operator{color:var(--text-secondary)}.sql-token-punctuation{color:var(--text-tertiary)}.resource-detail__subtitle{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:.22rem;display:flex}.resource-detail__package{color:var(--text-tertiary);font-size:.83rem;font-weight:500}.resource-type-badge{letter-spacing:.02em;background:var(--bg-accent-soft);color:var(--text-accent);border-radius:999px;align-items:center;gap:.38rem;padding:.2rem .6rem;font-size:.75rem;font-weight:700;display:inline-flex}.resource-type-badge svg{stroke-width:1.3px;flex-shrink:0;width:13px;height:13px}.materialization-semantics-badge{letter-spacing:.04em;text-transform:uppercase;max-width:100%;color:var(--text-secondary,var(--text-tertiary));background:var(--bg-muted,var(--bg-surface-muted));border:1px dashed var(--border-strong,var(--border-default));border-radius:4px;align-items:center;padding:.15rem .45rem;font-size:.68rem;font-weight:700;line-height:1.2;display:inline-flex}.materialization-semantics-badge--compact{padding:.08rem .32rem;font-size:.62rem}.lens-selector{align-items:center;gap:.3rem;display:flex}.lens-selector__label{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.07em;white-space:nowrap;margin-right:.1rem;font-size:.72rem;font-weight:700}.workspace-pill{transition:background .14s,box-shadow .14s,color .14s,transform .14s}.workspace-pill--active{background:var(--accent-soft);color:var(--accent-primary);box-shadow:inset 0 0 0 1.5px var(--border-accent)}.workspace-search input:focus{border-color:var(--border-focus);box-shadow:0 0 0 3px var(--bg-accent-soft);outline:none}.workspace-card__header{margin-bottom:.9rem}.explorer-pane{flex-direction:column;gap:0;height:100%;display:flex;overflow:hidden}.explorer-pane__header{flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.9rem 1rem .6rem;display:flex}.explorer-pane__header h2{margin:.15rem 0 0;font-size:1.05rem;font-weight:700}.explorer-pane__count{color:var(--accent-primary);flex-direction:column;flex-shrink:0;align-items:flex-end;padding-top:.35rem;font-size:1.35rem;font-weight:800;line-height:1;display:flex}.explorer-pane__count-subtext{color:var(--text-tertiary);margin-top:.18rem;font-size:.72rem;font-weight:600}.explorer-mode-tabs{flex-shrink:0;gap:.25rem;padding:0 .75rem .6rem;display:flex}.explorer-mode-tab{color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:999px;align-items:center;gap:.38rem;padding:.4rem .8rem;font-size:.82rem;font-weight:600;transition:background .14s,color .14s;display:inline-flex}.explorer-mode-tab--active{background:var(--accent-soft);color:var(--accent-primary)}.explorer-mode-tab__icon{flex-shrink:0;align-items:center;width:16px;height:16px;display:inline-flex}.explorer-mode-tab__icon svg{width:16px;height:16px}.explorer-filter-stack{flex-direction:column;flex-shrink:0;gap:.55rem;padding:.15rem .75rem .75rem;display:flex}.explorer-filter-group{flex-direction:column;gap:.35rem;display:flex}.explorer-filter-group__label{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:700}.explorer-status-filters{flex-direction:column;gap:.5rem;display:flex}.explorer-status-filters__block{flex-direction:column;gap:.28rem;display:flex}.explorer-status-filters__block--problems{border-top:1px solid var(--border-subtle);padding-top:.35rem}.explorer-status-filters__sublabel{color:var(--text-secondary);letter-spacing:.02em;font-size:.68rem;font-weight:650}.explorer-filters{flex-direction:column;flex-shrink:0;gap:.1rem;padding:0 .75rem .5rem;display:flex}.explorer-filters__toggle{background:var(--bg-surface);width:100%;box-shadow:inset 0 0 0 1px var(--border-subtle);color:var(--text-primary);cursor:pointer;border-radius:16px;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem .9rem;transition:background .14s,box-shadow .14s;display:flex}.explorer-filters__toggle:hover{background:var(--bg-surface-muted);box-shadow:inset 0 0 0 1px var(--border-default)}.explorer-filters__toggle-copy,.explorer-filters__toggle-meta{align-items:center;gap:.55rem;display:inline-flex}.explorer-filters__toggle-copy{flex-direction:column;align-items:flex-start;gap:.1rem;min-width:0}.explorer-filters__toggle-label{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.06em;font-size:.78rem;font-weight:700}.explorer-filters__toggle-summary{color:var(--text-secondary);font-size:.86rem;font-weight:600}.explorer-filters__badge{background:var(--accent-soft);min-width:1.5rem;height:1.5rem;color:var(--accent-primary);border-radius:999px;justify-content:center;align-items:center;padding:0 .35rem;font-size:.76rem;font-weight:700;display:inline-flex}.explorer-filters__chevron{color:var(--text-tertiary);font-size:.9rem;transition:transform .14s}.explorer-filters__chevron--expanded{transform:rotate(180deg)}.resource-type-summary{border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;flex-shrink:0;gap:.25rem .5rem;padding:.4rem .75rem;display:flex}.resource-type-summary__item{align-items:center;gap:.3rem;font-size:.75rem;display:inline-flex}.resource-type-summary__type{color:var(--text-secondary);font-weight:600}.resource-type-summary__pass{color:var(--text-success);font-weight:700}.resource-type-summary__fail{color:var(--text-danger);font-weight:700}.explorer-tree{flex:1;min-height:0;padding:.25rem 0 1rem;overflow-y:auto}.explorer-tree__row{width:100%;padding:var(--space-1) var(--space-3-5);cursor:pointer;text-align:left;font-size:.9375rem;line-height:var(--leading-tight);color:var(--text-primary);background:0 0;border-radius:0;align-items:center;gap:.45rem;transition:background .12s;display:flex}.explorer-tree__row:hover{background:var(--bg-surface-muted)}.explorer-tree__row--branch{color:var(--text-secondary);font-weight:600}.explorer-tree__row--leaf{font-weight:400}.explorer-tree__row--active{color:var(--text-accent);background:var(--bg-selection-soft)!important}.explorer-tree__chevron{width:18px;height:18px;color:var(--text-tertiary);flex-shrink:0;justify-content:center;align-items:center;font-size:.72rem;transition:transform .18s;display:inline-flex}.explorer-tree__chevron--expanded{transform:rotate(90deg)}.explorer-tree__folder{width:18px;height:18px;color:var(--text-tertiary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.explorer-tree__folder svg{width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}.explorer-tree__leaf-icon{width:18px;height:18px;color:var(--text-tertiary);flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.explorer-tree__leaf-icon svg{width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px}.explorer-tree__label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:.9375rem;overflow:hidden}.explorer-tree__resource-body{flex-direction:row;flex:1;align-items:center;min-width:0;display:flex;overflow:hidden}.explorer-tree__test-stats-wrap{flex-shrink:0;align-items:center;gap:.28rem;display:inline-flex}.explorer-tree__test-stats-label{text-transform:uppercase;letter-spacing:.02em;color:var(--text-tertiary);flex-shrink:0;font-size:.6875rem;font-weight:600}.explorer-tree__test-stats{flex-shrink:0;align-items:center;gap:.22rem;display:inline-flex}.explorer-tree__test-stat{border-radius:999px;padding:.1rem .38rem;font-size:.75rem;font-weight:700}.explorer-tree__test-stat--fail{color:var(--text-danger);background:var(--rose-soft)}.explorer-tree__test-stat--warn{color:var(--text-warning);background:var(--bg-warning-soft)}.explorer-tree__test-stat--skipped{color:var(--text-accent);background:var(--bg-accent-soft);letter-spacing:.01em}.overview-stack{flex-direction:column;gap:1.1rem;display:flex}.overview-panel{border-radius:var(--radius-md);background:var(--bg-surface-muted);border:1px solid var(--border-default);box-shadow:var(--panel-shadow);overflow:hidden}.overview-panel--muted{background:var(--bg-surface-muted)}.overview-panel--analysis{background:var(--bg-surface-muted);border-color:var(--border-subtle)}.overview-panel--structure{background:var(--bg-success-soft);border-color:var(--border-subtle)}.overview-panel__header{justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.25rem .6rem;display:flex}.overview-panel__subtitle{color:var(--text-tertiary);margin:.2rem 0 0;font-size:.84rem}.overview-scope-badge{letter-spacing:.04em;text-transform:uppercase;background:var(--bg-surface-muted);color:var(--text-tertiary);border-radius:999px;flex-shrink:0;align-items:center;padding:.22rem .6rem;font-size:.72rem;font-weight:700;display:inline-flex}.overview-module{border-radius:var(--radius-sm);background:var(--bg-surface-muted);border:1px solid var(--border-subtle);flex-direction:column;gap:.65rem;padding:.85rem 1rem;display:flex}.overview-module--embedded{background:0 0;border:none;padding:0}.overview-module__header{justify-content:space-between;align-items:flex-start;gap:.5rem;display:flex}.overview-module__header h3{margin:0 0 .15rem;font-size:.95rem;font-weight:700}.overview-module__header p{color:var(--text-tertiary);margin:0;font-size:.8rem}.overview-module--bottlenecks{padding:.85rem 1.25rem 1rem}.action-list{flex-direction:column;gap:.35rem;display:flex}.action-list__row{border-radius:calc(var(--radius-sm) - 4px);background:var(--bg-surface);border:1px solid var(--border-subtle);justify-content:space-between;align-items:center;gap:.75rem;padding:.6rem .8rem;display:flex}.action-list__body{flex-direction:column;flex:1;gap:.1rem;min-width:0;display:flex}.action-list__body strong{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:700;overflow:hidden}.action-list__body span{color:var(--text-tertiary);font-size:.75rem}.action-list__metric{text-align:right;flex-shrink:0}.action-list__metric strong{color:var(--accent-primary);font-size:.88rem;font-weight:700}.critical-path-card{border-radius:calc(var(--radius-sm) - 4px);background:var(--bg-surface);border:1px solid var(--border-default);flex-direction:column;gap:.6rem;padding:.75rem .9rem;display:flex}.critical-path-card__headline{flex-direction:column;gap:.15rem;display:flex}.critical-path-card__headline strong{color:var(--text-primary);font-size:1.55rem;font-weight:800;line-height:1}.critical-path-card__headline span{color:var(--text-secondary);font-size:.8rem}.critical-path-card__detail{border-top:1px solid var(--border-subtle);color:var(--text-tertiary);justify-content:space-between;align-items:center;padding-top:.4rem;font-size:.82rem;display:flex}.critical-path-card__detail strong{color:var(--text-primary);font-weight:700}.coverage-card{border-radius:calc(var(--radius-sm) - 4px);background:var(--bg-surface);border:1px solid var(--border-default);flex-direction:column;gap:.6rem;padding:.75rem .9rem;display:flex}.coverage-card__headline{align-items:baseline;gap:.5rem;display:flex}.coverage-card__headline strong{color:var(--text-primary);font-size:2rem;font-weight:800;line-height:1}.coverage-card__headline span{color:var(--text-tertiary);font-size:.82rem}.coverage-card__stats{flex-direction:column;gap:.35rem;display:flex}.coverage-card__stats>div{color:var(--text-tertiary);justify-content:space-between;align-items:center;font-size:.82rem;display:flex}.coverage-card__stats strong{color:var(--text-primary);font-weight:700}.coverage-card p{color:var(--text-tertiary);border-top:1px solid var(--border-subtle);margin:0;padding-top:.35rem;font-size:.78rem}.footprint-card{flex-direction:column;gap:.6rem;display:flex}.footprint-card__stats{grid-template-columns:repeat(3,1fr);gap:.5rem;display:grid}.footprint-card__stat{border-radius:calc(var(--radius-sm) - 4px);background:var(--bg-surface);border:1px solid var(--border-subtle);flex-direction:column;gap:.1rem;padding:.6rem .7rem;display:flex}.footprint-card__stat span{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.04em;font-size:.72rem;font-weight:600}.footprint-card__stat strong{color:var(--text-primary);font-size:1.25rem;font-weight:800;line-height:1.1}.footprint-card__detail{color:var(--text-tertiary);margin:0;font-size:.78rem}.thread-dist-metric-pills{flex-wrap:wrap;margin:0 0 .55rem}.thread-dist-list{flex-direction:column;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.thread-dist-row{border-radius:calc(var(--radius-sm) - 4px);background:var(--bg-surface);border:1px solid var(--border-subtle);grid-template-columns:minmax(5.5rem,7.5rem) minmax(0,1fr) minmax(4.5rem,auto);align-items:center;gap:.5rem .65rem;min-width:0;padding:.45rem .65rem;font-size:.8rem;display:grid}.thread-dist-row__label{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:700;overflow:hidden}.thread-dist-row__track-wrap{min-width:0}.thread-dist-row__track{background:var(--bg-surface-muted);border-radius:6px;width:100%;min-height:1.35rem;overflow:hidden}.thread-dist-row__fill{background:var(--accent-soft);height:100%;min-height:1.35rem;box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent-primary) 22%, transparent);border-radius:6px;transition:width .2s}.thread-dist-row__value{font-variant-numeric:tabular-nums;color:var(--text-secondary);text-align:right;flex-shrink:0;font-weight:600}@media (width<=520px){.thread-dist-row{grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.thread-dist-row__label{grid-column:1/-1}.thread-dist-row__track-wrap{grid-column:1/2}.thread-dist-row__value{text-align:right;grid-column:2/3}}.rank-list{flex-direction:column;gap:.3rem;display:flex}.rank-list__row{border-radius:calc(var(--radius-sm) - 4px);background:var(--bg-surface);border:1px solid var(--border-subtle);justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .7rem;display:flex}.rank-list__body{color:var(--text-primary);flex:1;font-size:.83rem;font-weight:600}.rank-list__metric{flex-shrink:0;align-items:baseline;gap:.4rem;display:flex}.rank-list__metric strong{color:var(--text-primary);font-size:.9rem;font-weight:800}.rank-list__metric span{color:var(--text-tertiary);font-size:.74rem}.exec-type-bar-stack{border-radius:var(--radius-sm);border:1px solid var(--border-subtle);background:var(--bg-surface);flex-direction:column;gap:0;display:flex;overflow:hidden}.exec-type-bar-row{border-bottom:1px solid var(--border-subtle);grid-template-columns:minmax(6.5rem,8.5rem) minmax(0,1fr);align-items:center;gap:.65rem .85rem;min-width:0;padding:.65rem .85rem;display:grid}.exec-type-bar-row:last-child{border-bottom:none}.exec-type-bar-row__label{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.82rem;font-weight:700;line-height:1.25;overflow:hidden}.exec-type-bar-row__bars{flex-direction:column;gap:.35rem;min-width:0;display:flex}.exec-type-bar-track{background:var(--bg-surface-muted);border-radius:6px;width:100%;min-width:0;min-height:1.65rem;display:flex;overflow:hidden}.exec-type-bar-segment{justify-content:center;align-items:center;min-width:0;display:flex;position:relative}.exec-type-bar-segment--minor{min-width:4px}.exec-type-bar-row__breakdown{color:var(--text-secondary);flex-wrap:wrap;align-items:baseline;gap:.35rem .75rem;margin:0;padding:0;font-size:.72rem;line-height:1.35;list-style:none;display:flex}.exec-type-bar-row__breakdown-item{align-items:center;gap:.35rem;min-width:0;display:inline-flex}.exec-type-bar-row__breakdown-label{color:var(--text-primary);font-weight:600}.exec-type-bar-row__breakdown-metric{font-variant-numeric:tabular-nums;color:var(--text-tertiary)}.exec-type-bar-segment__inner{color:var(--text-inverse);text-shadow:0 1px 1px #00000059;text-align:center;white-space:nowrap;text-overflow:ellipsis;max-width:100%;padding:0 .2rem;font-size:.68rem;font-weight:700;line-height:1.15;overflow:hidden}@media (width<=640px){.exec-type-bar-row{grid-template-rows:auto auto;grid-template-columns:1fr}.exec-type-bar-row__label,.exec-type-bar-row__bars{grid-column:1}}.legend-row{justify-content:space-between;align-items:center;gap:.75rem;padding:.35rem 0;font-size:.82rem;display:flex}.legend-row__label{color:var(--text-secondary);align-items:center;gap:.45rem;display:flex}.legend-row__swatch{border-radius:3px;flex-shrink:0;width:10px;height:10px;display:inline-block}.legend-row__value{color:var(--text-tertiary);font-size:.8rem;font-weight:500}.lens-header{border-bottom:1px solid var(--border-subtle);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1.25rem 1.5rem 1rem;display:flex}.lens-header__title h2{margin:.15rem 0 0;font-size:1.35rem;font-weight:700}.lens-header__desc{color:var(--text-secondary);margin:.3rem 0 0;font-size:.82rem}.lens-header__badge{background:var(--bg-surface-muted);border-radius:var(--radius-sm);color:var(--text-primary);white-space:nowrap;flex-shrink:0;padding:.3rem .7rem;font-size:.8rem;font-weight:600}.lens-tab-bar{border-bottom:1px solid var(--border-subtle);flex-shrink:0;align-items:center;gap:.15rem;padding:.55rem 1.5rem 0;display:flex}.lens-tab{border-radius:var(--radius-sm) var(--radius-sm) 0 0;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;padding:.55rem 1rem;font-size:.88rem;font-weight:500;transition:color .14s,background .14s;position:relative}.lens-tab:hover:not(.lens-tab--active){background:var(--bg-surface-muted);color:var(--text-primary)}.lens-tab--active{color:var(--text-accent);font-weight:600}.lens-tab--active:after{content:"";background:var(--accent-primary);border-radius:2px 2px 0 0;height:2px;position:absolute;bottom:-1px;left:0;right:0}.health-view{flex-direction:column;flex:1;min-height:0;display:flex}.health-fold{border-bottom:1px solid var(--border-subtle);flex-direction:column;flex-shrink:0;gap:1rem;padding:0 1.5rem 1.25rem;display:flex}.health-fold__bottlenecks .overview-module--bottlenecks{padding:.85rem 1rem}.health-posture{border-radius:var(--radius-sm);border:1px solid var(--border-default);background:var(--bg-surface-muted);padding:1rem 1.1rem}.health-posture--positive{background:var(--bg-success-soft);border-color:var(--border-success)}.health-posture--warning{background:var(--bg-warning-soft);border-color:var(--border-warning)}.health-posture--danger{background:var(--bg-danger-soft);border-color:var(--border-danger)}.health-posture__top{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.35rem;display:flex}.health-posture__source{letter-spacing:.08em;color:var(--text-tertiary);text-transform:uppercase;background:color-mix(in srgb, var(--bg-surface) 65%, transparent);border-radius:999px;padding:.18rem .55rem;font-size:.7rem;font-weight:800}.health-posture__meta{color:var(--text-tertiary);margin:0 0 .5rem;font-size:.78rem;line-height:1.35}.health-posture__headline{margin:0 0 .35rem;font-size:clamp(1.05rem,2.2vw,1.35rem);font-weight:800;line-height:1.2}.health-posture__summary{color:var(--text-secondary);margin:0 0 .35rem;font-size:.86rem;line-height:1.4}.health-posture__followup{color:var(--text-secondary);margin:0 0 .65rem;font-size:.82rem}.health-posture__metrics{flex-wrap:wrap;align-items:flex-end;gap:1rem 1.35rem;display:flex}.health-posture__metric{flex-direction:column;gap:.12rem;display:flex}.health-posture__metric span{letter-spacing:.05em;text-transform:uppercase;color:var(--text-tertiary);font-size:.68rem;font-weight:600}.health-posture__metric strong{color:var(--text-primary);font-size:1rem;font-weight:800}.health-metric-row{border-radius:var(--radius-sm);border:1px solid var(--border-subtle);background:var(--bg-surface-muted);flex-wrap:wrap;align-items:baseline;gap:.35rem 0;padding:.55rem .75rem;display:flex}.health-metric-row__item{border-left:1px solid var(--border-subtle);flex-direction:column;gap:.06rem;padding:0 .85rem;display:inline-flex}.health-metric-row__item:first-child{border-left:0;padding-left:0}.health-metric-row__label{letter-spacing:.06em;text-transform:uppercase;color:var(--text-tertiary);font-size:.65rem;font-weight:700}.health-metric-row__value{color:var(--text-primary);font-size:.92rem;font-weight:800}.health-detail{flex-direction:column;flex:1;min-height:0;display:flex;overflow-y:auto}.health-section__header--with-inline-controls{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.65rem 1rem;display:flex}.health-section__header-text{flex:12rem;min-width:0}.health-exec-status-pills{flex:0 auto;justify-content:flex-end}@media (width<=520px){.health-exec-status-pills{justify-content:flex-start;width:100%}}.health-compact-filter__types{position:relative}.health-compact-filter__types-summary{cursor:pointer;border-radius:var(--radius-sm);border:1px solid var(--border-subtle);background:var(--bg-surface-muted);color:var(--text-primary);padding:.35rem .65rem;font-size:.78rem;font-weight:700;list-style:none}.health-compact-filter__types-summary::-webkit-details-marker{display:none}.health-compact-filter__types-badge{background:var(--bg-accent-soft);color:var(--text-accent);border-radius:999px;margin-left:.35rem;padding:.08rem .35rem;font-size:.68rem}.health-compact-filter__types-body{border-radius:var(--radius-sm);border:1px solid var(--border-subtle);background:var(--bg-surface-muted);max-width:min(100%,520px);margin-top:.45rem;padding:.5rem}.health-mat-card{border:1px solid var(--border-default);background:var(--bg-surface);border-radius:16px;padding:1rem 1.1rem}.health-mat-card__list{flex-direction:column;gap:.45rem;margin:.5rem 0 0;padding:0;list-style:none;display:flex}.health-mat-card__row{grid-template-columns:minmax(72px,100px) minmax(0,1fr) auto;align-items:center;gap:.5rem;font-size:.85rem;display:grid}.health-mat-card__label{font-weight:600}.health-mat-card__bar-wrap{background:var(--bg-muted,#80808026);border-radius:4px;height:6px;overflow:hidden}.health-mat-card__bar{background:var(--text-tertiary);border-radius:4px;height:100%;display:block}.health-mat-card__count{font-variant-numeric:tabular-nums;color:var(--text-tertiary);font-size:.8rem}.gantt-legend__group--materialization .gantt-legend__hint{color:var(--text-tertiary);margin:-.1rem 0 .2rem;font-size:.68rem;display:block}.gantt-legend__item--static{cursor:default}.health-detail__grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem;display:grid}.health-detail__stack{flex-direction:column;gap:1rem;min-width:0;display:flex}.health-structure-composition{flex-direction:column;gap:.65rem;min-width:0;display:flex}.health-section__header h3{margin:0 0 .2rem;font-size:1rem;font-weight:700}.health-section__header p{color:var(--text-tertiary);margin:0;font-size:.82rem}.health-detail__resource-stats{border-top:1px solid var(--border-subtle);margin:0 1.5rem 1.5rem;padding:.5rem 0}.health-detail__resource-stats-summary{cursor:pointer;padding:.5rem 0;font-size:.88rem;font-weight:700;list-style:none}.health-detail__resource-stats-summary::-webkit-details-marker{display:none}.health-detail__resource-stats[open] .health-detail__resource-stats-summary{margin-bottom:.5rem}@media (width<=860px){.health-detail__grid{grid-template-columns:1fr}}.health-section{border-top:1px solid var(--border-subtle);flex-direction:column;gap:1rem;padding:1rem 1.5rem;display:flex}.execution-view{flex-direction:column;flex:1;display:flex;overflow:hidden}.execution-view__kind-row{background:var(--bg-surface-muted);border-bottom:1px solid var(--border-subtle);flex-shrink:0;align-items:center;gap:.5rem;padding:.7rem 1.5rem;display:flex}.execution-view__kind-label{color:var(--text-secondary);font-size:.8rem;font-weight:500}.execution-view__content{flex-direction:column;flex:1;display:flex;overflow:hidden}.quality-layout{flex:1;display:flex;overflow:hidden}.quality-layout__filters{border-right:1px solid var(--border-subtle);flex-direction:column;flex-shrink:0;gap:.75rem;width:220px;padding:1rem;display:flex;overflow-y:auto}.quality-layout__triage{flex-direction:column;flex:1;display:flex;overflow:hidden}.quality-filters{flex-direction:column;gap:.5rem;display:flex}.quality-filters__label{letter-spacing:.06em;text-transform:uppercase;color:var(--text-secondary);margin-bottom:.25rem;font-size:.72rem;font-weight:700}.quality-filters__btn{border-radius:var(--radius-sm);width:100%;color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;align-items:center;gap:.5rem;padding:.45rem .7rem;font-size:.84rem;transition:background .14s;display:flex}.quality-filters__btn:hover{background:var(--bg-surface-muted)}.quality-filters__btn--active{background:var(--bg-selection-soft);color:var(--text-accent);font-weight:600}.quality-triage-header{border-bottom:1px solid var(--border-subtle);flex-shrink:0;justify-content:space-between;align-items:center;padding:.8rem 1.25rem .6rem;display:flex}.quality-triage-header__title{color:var(--text-primary);font-size:.88rem;font-weight:600}.quality-triage-header__count{color:var(--text-secondary);font-size:.8rem}.quality-triage-body{flex:1;overflow-y:auto}.quality-triage-row{border-bottom:1px solid var(--border-subtle);cursor:pointer;text-align:left;background:0 0;align-items:center;gap:.7rem;width:100%;padding:.7rem 1.25rem;transition:background .12s;display:flex}.quality-triage-row:hover{background:var(--bg-surface-muted)}.quality-triage-row--selected{background:var(--bg-selection-soft)!important}.quality-triage-row__name{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.87rem;font-weight:500;overflow:hidden}.quality-triage-row__duration{color:var(--text-secondary);white-space:nowrap;flex-shrink:0;font-size:.78rem}.quality-posture{border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:.6rem;padding:.65rem 1.25rem;display:flex}.quality-posture__label{color:var(--text-secondary);font-size:.78rem}.quality-posture__count{border-radius:var(--radius-sm);padding:.2rem .55rem;font-size:.84rem;font-weight:600}.quality-posture__count--danger{background:color-mix(in srgb, var(--status-danger) 12%, transparent);color:var(--status-danger)}.quality-posture__count--warning{background:color-mix(in srgb, var(--status-warning) 12%, transparent);color:var(--status-warning)}.quality-posture__count--positive{background:color-mix(in srgb, var(--status-positive) 12%, transparent);color:var(--status-positive)}.entity-inspector{border-left:1px solid var(--border-subtle);background:var(--bg-surface);flex-direction:column;flex-shrink:0;gap:1rem;width:300px;padding:1rem;display:flex;overflow-y:auto}.entity-inspector__header{border-bottom:1px solid var(--border-subtle);flex-direction:column;gap:.5rem;padding-bottom:.75rem;display:flex}.entity-inspector__type-badge{background:var(--bg-surface-muted);text-transform:capitalize;width:fit-content;color:var(--text-tertiary);border-radius:999px;align-items:center;padding:.2rem .5rem;font-size:.72rem;font-weight:700;display:inline-flex}.entity-inspector__name{color:var(--text-primary);word-break:break-all;font-size:.96rem;font-weight:700}.entity-inspector__meta{color:var(--text-secondary);font-size:.78rem}.entity-inspector__stats{flex-direction:column;gap:.5rem;display:flex}.entity-inspector__section{flex-direction:column;gap:.35rem;display:flex}.entity-inspector__section-label{letter-spacing:.07em;text-transform:uppercase;color:var(--text-secondary);font-size:.7rem;font-weight:700}.entity-inspector__mono{color:var(--text-primary);word-break:break-all;white-space:pre-wrap;font-size:.84rem}.entity-inspector__section-title{letter-spacing:.07em;text-transform:uppercase;color:var(--text-secondary);font-size:.7rem;font-weight:700}.entity-inspector__stat{color:var(--text-tertiary);justify-content:space-between;align-items:baseline;gap:.5rem;font-size:.82rem;display:flex}.entity-inspector__stat strong{color:var(--text-primary);word-break:break-all;font-weight:600}.entity-inspector__empty{text-align:center;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:.5rem;padding:2rem 1rem;font-size:.84rem;display:flex}.inventory-view{flex-direction:column;flex:1;display:flex;overflow:hidden}.inventory-empty-state{flex:1;justify-content:center;align-items:center;display:flex}.inventory-empty-state__inner{flex-direction:column;align-items:center;gap:1.5rem;max-width:28rem;padding:1.5rem;display:flex}.inventory-empty-state__lineage-pick{flex-direction:column;align-items:stretch;gap:.5rem;width:100%;display:flex}.inventory-empty-state__lineage-label{font-size:.875rem;font-weight:600}.inventory-empty-state__lineage-select{border:1px solid var(--border-subtle);background:var(--surface-raised);width:100%;color:inherit;border-radius:6px;padding:.4rem .5rem}.inventory-empty-state__lineage-search{border:1px solid var(--border-subtle);background:var(--surface-raised);width:100%;color:inherit;border-radius:6px;padding:.45rem .55rem;font-size:.9rem}.inventory-empty-state__lineage-hint{color:var(--text-secondary);margin:0;font-size:.8rem}.inventory-empty-state__lineage-suggestions{border:1px solid var(--border-subtle);background:var(--surface-raised);border-radius:6px;max-height:12rem;margin:0;padding:0;list-style:none;overflow-y:auto}.inventory-lineage-suggestion{border:none;border-bottom:1px solid var(--border-default);width:100%;color:inherit;text-align:left;cursor:pointer;font:inherit;background:0 0;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.45rem .55rem;display:flex}.inventory-lineage-suggestion:last-child{border-bottom:none}.inventory-lineage-suggestion:hover,.inventory-lineage-suggestion--active{background:var(--bg-surface-muted)}.inventory-lineage-suggestion__name{font-weight:600}.inventory-lineage-suggestion__meta{color:var(--text-secondary);font-size:.75rem}.asset-sql-loading{align-items:center;gap:.75rem;padding:1rem 0;display:flex}.asset-sql-loading__label{color:var(--text-secondary);font-size:.9rem}.dependencies-view{flex-direction:column;flex:1;display:flex;overflow:hidden}.dependencies-empty-state{flex-direction:column;flex:1;justify-content:flex-start;align-items:center;gap:1.5rem;padding:2rem 1.5rem;display:flex;overflow-y:auto}.dependencies-recent-assets{flex-direction:column;gap:.5rem;width:100%;max-width:560px;display:flex}.dependencies-asset-list{flex-direction:column;gap:.2rem;display:flex}.dependencies-asset-btn{background:var(--bg-surface-muted);border-radius:var(--radius-sm);cursor:pointer;text-align:left;width:100%;color:var(--text-primary);align-items:center;gap:.6rem;padding:.6rem .9rem;font-size:.87rem;transition:background .14s;display:flex}.dependencies-asset-btn:hover{background:var(--bg-selection-soft)}.dependencies-asset-btn__type{letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary);flex-shrink:0;min-width:72px;font-size:.72rem;font-weight:600}.dependencies-asset-btn__name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.search-view{flex-direction:column;flex:1;display:flex;overflow:hidden}.search-input-region{border-bottom:1px solid var(--border-subtle);flex-shrink:0;padding:1rem 1.5rem}.search-input-region__field{background:var(--bg-input);border:1px solid var(--border-subtle);border-radius:var(--radius-md);width:100%;color:var(--text-primary);outline:none;padding:.7rem 1rem;font-size:1rem;transition:border-color .14s;display:block}.search-input-region__field:focus{border-color:var(--accent-primary)}.search-input-region__field::placeholder{color:var(--text-secondary)}.search-results{flex-direction:column;flex:1;gap:1rem;padding:1rem 1.5rem;display:flex;overflow-y:auto}.search-result-list{flex-direction:column;gap:.15rem;display:flex}.search-result-row{border-radius:var(--radius-sm);cursor:pointer;text-align:left;width:100%;color:var(--text-primary);background:0 0;align-items:center;gap:.7rem;padding:.55rem .8rem;font-size:.87rem;transition:background .12s;display:flex}.search-result-row:hover{background:var(--bg-surface-muted)}.search-result-row__type{letter-spacing:.04em;text-transform:uppercase;color:var(--text-secondary);flex-shrink:0;min-width:72px;font-size:.72rem;font-weight:600}.search-result-row__name{text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:500;overflow:hidden}.search-result-row__path{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;max-width:220px;font-size:.76rem;overflow:hidden}.search-idle{flex:1;justify-content:center;align-items:center;padding:3rem 1.5rem;display:flex}.search-idle__hint{text-align:center;color:var(--text-secondary);font-size:.9rem}.search-idle__hint strong{color:var(--text-primary);margin-bottom:.4rem;font-size:1.1rem;display:block}.search-no-results{text-align:center;color:var(--text-secondary);flex-direction:column;flex:1;justify-content:center;align-items:center;padding:3rem 1.5rem;font-size:.88rem;display:flex}.search-no-results__hint{color:var(--text-tertiary);margin-top:.4rem;font-size:.82rem}.workspace-view{flex-direction:column;flex:1;display:flex;overflow:hidden}.workspace-scaffold{gap:1rem}.workspace-scaffold__toolbar{flex-wrap:wrap;align-items:stretch;gap:.75rem;display:flex}.runs-toolbar--stacked{flex-direction:column;gap:1.15rem;width:100%;display:flex}.runs-toolbar__primary{flex-wrap:wrap;align-items:flex-end;gap:1rem 1.25rem;display:flex}.runs-toolbar .workspace-search .runs-toolbar__field-label{color:var(--text-tertiary);letter-spacing:.02em;text-transform:none;font-size:.78rem;font-weight:600}.runs-toolbar__search{flex:260px;min-width:min(100%,220px)}.runs-toolbar__toggle{box-sizing:border-box;border:1px solid var(--border-default);background:var(--bg-surface);min-height:3.8575rem;color:var(--text-primary);cursor:pointer;border-radius:16px;flex:0 auto;align-items:center;gap:.65rem;padding:.75rem 1rem;transition:border-color .14s,background .14s;display:inline-flex}.runs-toolbar__toggle:hover{border-color:var(--border-accent);background:var(--bg-surface-muted)}.runs-toolbar__toggle:has(input:disabled){cursor:not-allowed;opacity:.65}.runs-toolbar__toggle input[type=checkbox]{width:1.05rem;height:1.05rem;accent-color:var(--accent-primary);cursor:inherit;margin:0}.runs-toolbar__toggle span{color:var(--text-primary);text-transform:none;letter-spacing:0;font-size:.9rem;font-weight:600;line-height:1.35}.runs-toolbar__facets{flex-wrap:wrap;align-items:flex-start;gap:.5rem;display:flex}.runs-toolbar__mat-filters{border:1px solid var(--border-subtle);background:var(--bg-surface-muted);border-radius:16px;flex-direction:column;gap:.75rem;padding:.9rem 1.05rem;display:flex}.runs-toolbar__mat-filters-heading{flex-direction:column;gap:.28rem;display:flex}.runs-toolbar__mat-filters-label{color:var(--text-primary);letter-spacing:.01em;text-transform:none;font-size:.8rem;font-weight:600}.runs-toolbar__mat-filters-hint{color:var(--text-tertiary);max-width:52ch;font-size:.76rem;line-height:1.4}.runs-toolbar__facet-sections{flex-direction:column;gap:1.05rem;display:flex}.runs-toolbar__facet-group{flex-direction:column;gap:.55rem;display:flex}.runs-toolbar__facet-group-label{color:var(--text-tertiary);letter-spacing:.02em;text-transform:none;font-size:.78rem;font-weight:600}.runs-toolbar__meta{color:var(--text-tertiary);margin:0;padding:0 .1rem;font-size:.82rem;line-height:1.45}.runs-toolbar__warehouse-hint{border:1px dashed var(--border-default);background:var(--bg-surface-muted);color:var(--text-tertiary);border-radius:14px;margin:0;padding:.7rem .95rem;font-size:.8rem;line-height:1.45}.runs-toolbar__warehouse-hint code{background:var(--bg-surface);border-radius:4px;padding:.05rem .25rem;font-size:.88em}@media (width<=960px){.runs-toolbar__primary{flex-direction:column;align-items:stretch}.runs-toolbar__toggle{justify-content:flex-start;width:100%}}.workspace-scaffold__body{grid-template-columns:minmax(0,1fr);gap:1rem;min-height:0;display:grid}.workspace-scaffold__body--with-leading{grid-template-columns:minmax(180px,240px) minmax(0,1fr)}.workspace-scaffold__body--with-inspector{grid-template-columns:minmax(0,1fr) minmax(260px,320px)}.workspace-scaffold__body--with-leading.workspace-scaffold__body--with-inspector{grid-template-columns:minmax(180px,240px) minmax(0,1fr) minmax(260px,320px)}.workspace-scaffold__leading,.workspace-scaffold__inspector,.workspace-scaffold__main{min-height:0}.workspace-scaffold__leading{flex-direction:column;gap:.5rem;display:flex}.settings-grid{gap:1rem;display:grid}.settings-hero{border-radius:var(--radius-lg);border:1px solid var(--border-default);background:radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 24%, transparent), transparent 40%), linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 95%, white), var(--bg-surface));box-shadow:0 12px 26px color-mix(in srgb, var(--shadow-color,#0f172a14) 7%, transparent), inset 0 1px 0 #ffffffad;gap:.85rem;padding:1.1rem 1.2rem;display:grid}.settings-hero h3{letter-spacing:-.03em;margin:0;font-size:clamp(1.15rem,1.8vw,1.45rem)}.settings-hero p:not(.eyebrow){max-width:72ch;color:var(--text-secondary);margin:0}.settings-chip-row{flex-wrap:wrap;gap:.6rem;display:flex}.settings-stack{gap:1rem;display:grid}.settings-inline-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.settings-field-group,.settings-field{gap:.55rem;display:grid}.settings-field-label{letter-spacing:.08em;text-transform:uppercase;color:var(--text-tertiary);font-size:.84rem;font-weight:700}.settings-segmented{flex-wrap:wrap;gap:.65rem;display:flex}.settings-segmented .workspace-pill--active{background:var(--accent-primary);color:var(--text-inverse);border-color:#0000}.settings-toggle{border-radius:var(--radius-md);border:1px solid var(--border-subtle);background:var(--bg-surface-muted);align-items:center;gap:.75rem;min-height:54px;padding:.85rem .95rem;display:flex}.settings-toggle input{width:1rem;height:1rem;accent-color:var(--accent-primary)}.settings-field select,.settings-field input{border-radius:var(--radius-md);border:1px solid var(--border-default);background:var(--bg-surface);min-height:48px;color:var(--text-primary);padding:.8rem .95rem}.settings-readout p{color:var(--text-secondary);margin:.35rem 0 0}.settings-primary-action{justify-self:start}.settings-session__actions{gap:var(--space-2);flex-wrap:wrap;align-items:center;display:flex}.settings-readout-muted{color:var(--text-tertiary);font-size:var(--text-sm);margin:.35rem 0 0}.settings-mono-path{font-family:var(--font-mono);font-size:var(--text-sm);color:var(--text-secondary);word-break:break-all;margin:.35rem 0 0}.settings-session__path{max-width:min(72ch,100%)}.settings-artifact-dialog{z-index:60;padding:var(--space-3);place-items:center;display:grid;position:fixed;inset:0}.settings-artifact-dialog__backdrop{cursor:pointer;background:color-mix(in srgb, var(--shadow-color,#0f172a8c) 35%, transparent);border:none;margin:0;padding:0;position:absolute;inset:0}.settings-artifact-dialog__panel{z-index:1;border-radius:var(--radius-lg);border:1px solid var(--border-default);background:var(--bg-elevated);width:100%;max-width:min(960px,100%);max-height:min(92vh,100%);box-shadow:0 24px 48px color-mix(in srgb, var(--shadow-color,#0f172a1f) 18%, transparent), 0 0 0 1px color-mix(in srgb, var(--border-subtle) 80%, transparent);flex-direction:column;display:flex;position:relative;overflow:hidden}.settings-artifact-dialog__header{justify-content:space-between;align-items:flex-start;gap:var(--space-2);padding:var(--space-3) var(--space-3) var(--space-2);border-bottom:1px solid var(--border-subtle);display:flex}.settings-artifact-dialog__header h2{font-size:var(--text-lg);color:var(--text-primary);margin:.15rem 0 0}.settings-artifact-dialog__lede{max-width:56ch;font-size:var(--text-sm);color:var(--text-secondary);margin:.35rem 0 0}.settings-artifact-dialog__close{border-radius:var(--radius-md);border:1px solid var(--border-subtle);background:var(--bg-surface-muted);width:2.25rem;height:2.25rem;color:var(--text-primary);cursor:pointer;flex-shrink:0;place-items:center;display:grid}.settings-artifact-dialog__close:hover{background:var(--bg-surface)}.settings-artifact-dialog__close:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.settings-artifact-dialog__body{min-height:0;padding:var(--space-2) var(--space-3) var(--space-3);flex:1;overflow:auto}.workspace-scaffold__inspector .entity-inspector{position:sticky;top:0}.runs-facets{flex-wrap:wrap;align-content:flex-start;gap:.6rem;display:flex}.results-table__row--active{background:var(--bg-surface-muted);border-color:var(--border-strong)}.entity-inspector__actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.asset-workspace{gap:1rem;position:relative}.asset-workspace__body{flex-direction:column;gap:1rem;display:flex}.asset-workspace__sections{flex-direction:column;gap:1rem;min-width:0;display:flex}.asset-workspace__section{scroll-margin-top:1rem}.resource-description-md{min-width:0;margin-top:.75rem}.resource-description-md.resource-spotlight__description{color:var(--text-secondary)}.resource-description-md__viewport{border:1px solid var(--border-subtle);background:var(--bg-surface-muted);border-radius:12px;overflow:auto}.resource-description-md__viewport--collapsed{max-height:14rem}.resource-description-md__viewport--expanded{resize:vertical;min-height:8rem;max-height:min(70vh,36rem)}.resource-description-md__prose{padding:.65rem .85rem;font-size:.88rem;line-height:1.55}.resource-description-md__prose :first-child{margin-top:0}.resource-description-md__prose :last-child{margin-bottom:0}.resource-description-md__prose h1,.resource-description-md__prose h2,.resource-description-md__prose h3,.resource-description-md__prose h4,.resource-description-md__prose h5,.resource-description-md__prose h6{color:var(--text-primary);margin:.85em 0 .4em;font-weight:700;line-height:1.25}.resource-description-md__prose h1{font-size:1.15rem}.resource-description-md__prose h2{font-size:1.05rem}.resource-description-md__prose h3{font-size:1rem}.resource-description-md__prose p{margin:.5em 0}.resource-description-md__prose ul,.resource-description-md__prose ol{margin:.5em 0;padding-left:1.35rem}.resource-description-md__prose li{margin:.2em 0}.resource-description-md__prose blockquote{border-left:3px solid var(--border-default);color:var(--text-tertiary);margin:.6em 0;padding:.35rem .65rem}.resource-description-md__prose pre{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:8px;margin:.6em 0;padding:.55rem .65rem;font-size:.78rem;line-height:1.45;overflow-x:auto}.resource-description-md__prose code{font-family:var(--font-mono,ui-monospace, monospace)}.resource-description-md__prose p code,.resource-description-md__prose li code{background:var(--bg-surface);border-radius:4px;padding:.1em .35em;font-size:.86em}.resource-description-md__prose pre code{font-size:inherit;background:0 0;border:0;padding:0}.resource-description-md__prose table{border-collapse:collapse;width:100%;margin:.65em 0;font-size:.82rem}.resource-description-md__prose th,.resource-description-md__prose td{border:1px solid var(--border-subtle);text-align:left;vertical-align:top;padding:.35rem .5rem}.resource-description-md__prose th{background:var(--bg-surface);color:var(--text-tertiary);font-weight:650}.resource-description-md__prose a{color:var(--accent-primary);text-underline-offset:2px;text-decoration:underline}.resource-description-md__prose a:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.resource-description-md__toolbar{flex-wrap:wrap;gap:.45rem;margin-top:.45rem;display:flex}.resource-description-md__toggle:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.asset-tests-summary{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.9rem 1.2rem;padding:.2rem 0 .4rem;display:flex}.asset-tests-summary__headline{flex-direction:column;gap:.45rem;min-width:min(100%,320px);display:flex}.asset-tests-summary__headline p,.asset-tests-table__caption{color:var(--text-tertiary);margin:0;font-size:.9rem}.asset-tests-summary__metrics{flex-wrap:wrap;gap:.55rem;display:flex}.asset-tests-summary__metric{background:var(--bg-surface-muted);color:var(--text-tertiary);border:1px solid var(--border-subtle);border-radius:999px;align-items:baseline;gap:.42rem;padding:.5rem .75rem;display:inline-flex}.asset-tests-summary__metric strong{color:var(--text-primary);font-size:.98rem}.asset-tests-table{flex-direction:column;gap:.75rem;display:flex}.asset-tests-table__toolbar{display:block}.asset-tests-table__body{flex-direction:column;gap:.6rem;display:flex}.asset-tests-table__row-group{flex-direction:column;gap:.35rem;display:flex}.asset-tests-table__header,.asset-tests-table__row{grid-template-columns:minmax(0,1.75fr) minmax(84px,.72fr) minmax(104px,.68fr) minmax(0,1.15fr) minmax(76px,.62fr) minmax(40px,.48fr);align-items:center;gap:.65rem;display:grid}.asset-tests-table__header{color:var(--text-tertiary);letter-spacing:.08em;text-transform:uppercase;padding:0 .7rem .2rem;font-size:.78rem;font-weight:700}.asset-tests-table__sort-button{width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:.28rem;padding:0;display:inline-flex}.asset-tests-table__sort-button:hover,.asset-tests-table__sort-button:focus-visible{color:var(--text-primary)}.asset-tests-table__sort-button:focus-visible{outline:2px solid color-mix(in srgb, var(--accent-primary) 38%, transparent);outline-offset:3px;border-radius:6px}.asset-tests-table__sort-button--align-end{justify-content:flex-end}.asset-tests-table__sort-indicator{width:.8rem;color:var(--text-secondary);text-align:center}.asset-tests-table__row{border:1px solid var(--border-subtle);background:var(--bg-surface-muted);width:100%;color:inherit;text-align:left;cursor:pointer;border-radius:18px;padding:.9rem 1rem;transition:border-color .14s,background .14s,transform .14s}.asset-tests-table__row:hover{background:var(--bg-surface);border-color:var(--border-default);transform:translateY(-1px)}.asset-tests-table__cell{min-width:0;font-size:.88rem}.asset-tests-table__cell--test strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.asset-tests-table__pkg{color:var(--text-tertiary);margin-top:.22rem;font-size:.82rem;display:block}.asset-tests-table__cell--target{text-overflow:ellipsis;white-space:nowrap;color:var(--text-tertiary);font-size:.84rem;overflow:hidden}.asset-tests-table__run-message{background:color-mix(in srgb, var(--text-danger) 10%, var(--bg-surface-muted));border:1px solid color-mix(in srgb, var(--text-danger) 28%, var(--border-subtle));color:var(--text-primary);white-space:pre-wrap;overflow-wrap:break-word;border-radius:12px;margin:0 .15rem 0 .5rem;padding:.55rem .8rem;font-size:.82rem;line-height:1.45}.asset-tests-table__run-message--warn{background:color-mix(in srgb, var(--text-warning) 12%, var(--bg-surface-muted));border-color:color-mix(in srgb, var(--text-warning) 32%, var(--border-subtle))}.asset-tests-table__cell--align-end{text-align:right}.asset-tests-table__cell--action{justify-content:flex-end;display:flex}.asset-tests-table__open-runs-icon{color:var(--accent-primary);line-height:0;display:inline-flex}@media (width<=1099px){.workspace-scaffold__body--with-inspector,.workspace-scaffold__body--with-leading.workspace-scaffold__body--with-inspector{grid-template-columns:minmax(0,1fr)}}@media (width<=900px){.settings-inline-grid{grid-template-columns:1fr}.asset-tests-summary,.asset-tests-table__toolbar{display:block}.asset-tests-table__header{display:none}.asset-tests-table__row{grid-template-columns:minmax(0,1fr);gap:.45rem}.asset-tests-table__cell{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.asset-tests-table__cell:before{content:attr(data-label);color:var(--text-tertiary);letter-spacing:.06em;text-transform:uppercase;flex-shrink:0;font-size:.76rem;font-weight:700}.asset-tests-table__cell--test{display:block}.asset-tests-table__cell--test:before{content:none}.asset-tests-table__cell--align-end{text-align:left}}