@atolis-hq/wake 0.4.31 → 0.4.33
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.
- package/dist/src/bootstrap/initialise.js +2 -2
- package/dist/src/bootstrap/surface-api-applications.d.ts +3 -1
- package/dist/src/bootstrap/surface-api-applications.js +29 -0
- package/dist/src/bootstrap/surface-cli-applications.js +30 -2
- package/dist/src/bootstrap/update-maintenance-lease.d.ts +1 -0
- package/dist/src/bootstrap/update-maintenance-lease.js +9 -0
- package/dist/src/bootstrap/version.js +1 -1
- package/dist/src/surfaces/api/contracts/control-plane.d.ts +1 -0
- package/dist/src/surfaces/api/routes/applications.d.ts +4 -0
- package/dist/src/surfaces/api/routes/commands.js +32 -1
- package/dist/src/surfaces/api/routes/control-plane.d.ts +1 -1
- package/dist/src/surfaces/api/routes/control-plane.js +1 -0
- package/dist/src/surfaces/api/routes/index.d.ts +1 -1
- package/dist/src/surfaces/cli/infrastructure/sandbox-startup-failure.d.ts +7 -0
- package/dist/src/surfaces/cli/infrastructure/sandbox-startup-failure.js +33 -0
- package/dist/src/surfaces/cli/main.d.ts +5 -1
- package/dist/src/surfaces/cli/main.js +8 -0
- package/dist/src/surfaces/cli/usage.js +2 -0
- package/dist/src/surfaces/index.d.ts +1 -0
- package/dist/src/surfaces/index.js +1 -0
- package/dist/src/surfaces/web-assets/assets/{index-qai1Ymhv.js → index-Cs3ckFXD.js} +2 -2
- package/dist/src/surfaces/web-assets/index.html +1 -1
- package/docker/Dockerfile.runtime +1 -1
- package/docker/Dockerfile.runtime.packaged +1 -1
- package/package.json +1 -1
|
@@ -71,7 +71,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
71
71
|
|
|
72
72
|
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=Bi,s=!Ti.jitless,c=s&&Vi.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?ls([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function fs(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ra(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>sa(e,r,Ei())))}),t)}var ps=Si(`$ZodUnion`,(e,t)=>{Eo.init(e,t),Pi(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),Pi(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),Pi(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Pi(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ji(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>fs(t,r,e,i)):fs(o,r,e,i)}}),ms=Si(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,ps.init(e,t);let n=e._zod.parse;Pi(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=ki(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!Bi(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),hs=Si(`$ZodIntersection`,(e,t)=>{Eo.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>_s(e,t,n)):_s(e,i,a)}});function gs(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Hi(e)&&Hi(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=gs(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=gs(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function _s(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ra(e))return e;let o=gs(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var vs=Si(`$ZodEnum`,(e,t)=>{Eo.init(e,t);let n=Di(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Wi.has(typeof e)).map(e=>typeof e==`string`?Gi(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),ys=Si(`$ZodLiteral`,(e,t)=>{if(Eo.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?Gi(e):e?Gi(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),bs=Si(`$ZodTransform`,(e,t)=>{Eo.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new wi(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new Ci;return n.value=i,n.fallback=!0,n}});function xs(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Ss=Si(`$ZodOptional`,(e,t)=>{Eo.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,Pi(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Pi(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ji(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>xs(e,r)):xs(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Cs=Si(`$ZodExactOptional`,(e,t)=>{Ss.init(e,t),Pi(e._zod,`values`,()=>t.innerType._zod.values),Pi(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ws=Si(`$ZodNullable`,(e,t)=>{Eo.init(e,t),Pi(e._zod,`optin`,()=>t.innerType._zod.optin),Pi(e._zod,`optout`,()=>t.innerType._zod.optout),Pi(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ji(e.source)}|null)$`):void 0}),Pi(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Ts=Si(`$ZodDefault`,(e,t)=>{Eo.init(e,t),e._zod.optin=`optional`,Pi(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Es(e,t)):Es(r,t)}});function Es(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ds=Si(`$ZodPrefault`,(e,t)=>{Eo.init(e,t),e._zod.optin=`optional`,Pi(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Os=Si(`$ZodNonOptional`,(e,t)=>{Eo.init(e,t),Pi(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>ks(t,e)):ks(i,e)}});function ks(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var As=Si(`$ZodCatch`,(e,t)=>{Eo.init(e,t),e._zod.optin=`optional`,Pi(e._zod,`optout`,()=>t.innerType._zod.optout),Pi(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>sa(e,n,Ei()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>sa(e,n,Ei()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),js=Si(`$ZodPipe`,(e,t)=>{Eo.init(e,t),Pi(e._zod,`values`,()=>t.in._zod.values),Pi(e._zod,`optin`,()=>t.in._zod.optin),Pi(e._zod,`optout`,()=>t.out._zod.optout),Pi(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ms(e,t.in,n)):Ms(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Ms(e,t.out,n)):Ms(r,t.out,n)}});function Ms(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var Ns=Si(`$ZodReadonly`,(e,t)=>{Eo.init(e,t),Pi(e._zod,`propValues`,()=>t.innerType._zod.propValues),Pi(e._zod,`values`,()=>t.innerType._zod.values),Pi(e._zod,`optin`,()=>t.innerType?._zod?.optin),Pi(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Ps):Ps(r)}});function Ps(e){return e.value=Object.freeze(e.value),e}var Fs=Si(`$ZodCustom`,(e,t)=>{oo.init(e,t),Eo.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Is(t,n,r,e));Is(i,n,r,e)}});function Is(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(la(e))}}var Ls,Rs=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function zs(){return new Rs}(Ls=globalThis).__zod_globalRegistry??(Ls.__zod_globalRegistry=zs());var Bs=globalThis.__zod_globalRegistry;function Vs(e,t){return new e({type:`string`,...qi(t)})}function Hs(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...qi(t)})}function Us(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...qi(t)})}function Ws(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...qi(t)})}function Gs(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...qi(t)})}function Ks(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...qi(t)})}function qs(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...qi(t)})}function Js(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...qi(t)})}function Ys(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...qi(t)})}function Xs(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...qi(t)})}function Zs(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...qi(t)})}function Qs(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...qi(t)})}function $s(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...qi(t)})}function ec(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...qi(t)})}function tc(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...qi(t)})}function nc(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...qi(t)})}function rc(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...qi(t)})}function ic(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...qi(t)})}function ac(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...qi(t)})}function oc(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...qi(t)})}function sc(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...qi(t)})}function cc(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...qi(t)})}function lc(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...qi(t)})}function uc(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...qi(t)})}function dc(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...qi(t)})}function fc(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...qi(t)})}function pc(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...qi(t)})}function mc(e,t){return new e({type:`number`,checks:[],...qi(t)})}function hc(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...qi(t)})}function gc(e,t){return new e({type:`boolean`,...qi(t)})}function _c(e){return new e({type:`unknown`})}function vc(e,t){return new e({type:`never`,...qi(t)})}function yc(e,t){return new co({check:`less_than`,...qi(t),value:e,inclusive:!1})}function bc(e,t){return new co({check:`less_than`,...qi(t),value:e,inclusive:!0})}function xc(e,t){return new lo({check:`greater_than`,...qi(t),value:e,inclusive:!1})}function Sc(e,t){return new lo({check:`greater_than`,...qi(t),value:e,inclusive:!0})}function Cc(e,t){return new uo({check:`multiple_of`,...qi(t),value:e})}function wc(e,t){return new po({check:`max_length`,...qi(t),maximum:e})}function Tc(e,t){return new mo({check:`min_length`,...qi(t),minimum:e})}function Ec(e,t){return new ho({check:`length_equals`,...qi(t),length:e})}function Dc(e,t){return new _o({check:`string_format`,format:`regex`,...qi(t),pattern:e})}function Oc(e){return new vo({check:`string_format`,format:`lowercase`,...qi(e)})}function kc(e){return new yo({check:`string_format`,format:`uppercase`,...qi(e)})}function Ac(e,t){return new bo({check:`string_format`,format:`includes`,...qi(t),includes:e})}function jc(e,t){return new xo({check:`string_format`,format:`starts_with`,...qi(t),prefix:e})}function Mc(e,t){return new So({check:`string_format`,format:`ends_with`,...qi(t),suffix:e})}function Nc(e){return new Co({check:`overwrite`,tx:e})}function Pc(e){return Nc(t=>t.normalize(e))}function Fc(){return Nc(e=>e.trim())}function Ic(){return Nc(e=>e.toLowerCase())}function Lc(){return Nc(e=>e.toUpperCase())}function Rc(){return Nc(e=>Ri(e))}function zc(e,t,n){return new e({type:`array`,element:t,...qi(n)})}function Bc(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...qi(n)})}function Vc(e,t){let n=Hc(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(la(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(la(r))}},e(t.value,t)),t);return n}function Hc(e,t){let n=new oo({check:`custom`,...qi(t)});return n._zod.check=e,n}function Uc(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Bs,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Wc(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Wc(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&qc(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Gc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
73
73
|
|
|
74
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Kc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Yc(t,`input`,e.processors),output:Yc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function qc(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return qc(r.element,n);if(r.type===`set`)return qc(r.valueType,n);if(r.type===`lazy`)return qc(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return qc(r.innerType,n);if(r.type===`intersection`)return qc(r.left,n)||qc(r.right,n);if(r.type===`record`||r.type===`map`)return qc(r.keyType,n)||qc(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:qc(r.in,n)||qc(r.out,n);if(r.type===`object`){for(let e in r.shape)if(qc(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(qc(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(qc(e,n))return!0;return!!(r.rest&&qc(r.rest,n))}return!1}var Jc=(e,t={})=>n=>{let r=Uc({...n,processors:t});return Wc(e,r),Gc(r,e),Kc(r,e)},Yc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Uc({...i??{},target:a,io:t,processors:n});return Wc(e,o),Gc(o,e),Kc(o,e)},Xc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Zc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Xc[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Qc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},$c=(e,t,n,r)=>{n.type=`boolean`},el=(e,t,n,r)=>{n.not={}},tl=(e,t,n,r)=>{let i=e._zod.def,a=Di(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},nl=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},rl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},il=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},al=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Wc(a.element,t,{...r,path:[...r.path,`items`]})},ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Wc(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Wc(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},sl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Wc(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},cl=(e,t,n,r)=>{let i=e._zod.def,a=Wc(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Wc(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ll=(e,t,n,r)=>{let i=e._zod.def,a=Wc(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ul=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},dl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},fl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},pl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ml=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Wc(o,t,r);let s=t.seen.get(e);s.ref=o},hl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},gl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_l=Si(`ZodISODateTime`,(e,t)=>{zo.init(e,t),Wl.init(e,t)});function vl(e){return uc(_l,e)}var yl=Si(`ZodISODate`,(e,t)=>{Bo.init(e,t),Wl.init(e,t)});function bl(e){return dc(yl,e)}var xl=Si(`ZodISOTime`,(e,t)=>{Vo.init(e,t),Wl.init(e,t)});function Sl(e){return fc(xl,e)}var Cl=Si(`ZodISODuration`,(e,t)=>{Ho.init(e,t),Wl.init(e,t)});function wl(e){return pc(Cl,e)}var Tl=Si(`ZodError`,(e,t)=>{da.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ma(e,t)},flatten:{value:t=>pa(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Oi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Oi,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),El=ha(Tl),Dl=ga(Tl),Ol=_a(Tl),kl=ya(Tl),Al=xa(Tl),jl=Sa(Tl),Ml=Ca(Tl),Nl=wa(Tl),Pl=Ta(Tl),Fl=Ea(Tl),Il=Da(Tl),Ll=Oa(Tl),Rl=new WeakMap;function zl(e,t,n){let r=Object.getPrototypeOf(e),i=Rl.get(r);if(i||(i=new Set,Rl.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Bl=Si(`ZodType`,(e,t)=>(Eo.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Yc(e,`input`),output:Yc(e,`output`)}}),e.toJSONSchema=Jc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>El(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ol(e,t,n),e.parseAsync=async(t,n)=>Dl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>kl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Al(e,t,n),e.decode=(t,n)=>jl(e,t,n),e.encodeAsync=async(t,n)=>Ml(e,t,n),e.decodeAsync=async(t,n)=>Nl(e,t,n),e.safeEncode=(t,n)=>Pl(e,t,n),e.safeDecode=(t,n)=>Fl(e,t,n),e.safeEncodeAsync=async(t,n)=>Il(e,t,n),e.safeDecodeAsync=async(t,n)=>Ll(e,t,n),zl(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Ii(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ki(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(td(e,t))},superRefine(e,t){return this.check(nd(e,t))},overwrite(e){return this.check(Nc(e))},optional(){return Lu(this)},exactOptional(){return zu(this)},nullable(){return Vu(this)},nullish(){return Lu(Vu(this))},nonoptional(e){return qu(this,e)},array(){return xu(this)},or(e){return Tu([this,e])},and(e){return ku(this,e)},transform(e){return Zu(this,Fu(e))},default(e){return Uu(this,e)},prefault(e){return Gu(this,e)},catch(e){return Yu(this,e)},pipe(e){return Zu(this,e)},readonly(){return $u(this)},describe(e){let t=this.clone();return Bs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Bs.get(this);let t=this.clone();return Bs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Bs.get(e)?.description},configurable:!0}),e)),Vl=Si(`_ZodString`,(e,t)=>{Do.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zc(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,zl(e,`_ZodString`,{regex(...e){return this.check(Dc(...e))},includes(...e){return this.check(Ac(...e))},startsWith(...e){return this.check(jc(...e))},endsWith(...e){return this.check(Mc(...e))},min(...e){return this.check(Tc(...e))},max(...e){return this.check(wc(...e))},length(...e){return this.check(Ec(...e))},nonempty(...e){return this.check(Tc(1,...e))},lowercase(e){return this.check(Oc(e))},uppercase(e){return this.check(kc(e))},trim(){return this.check(Fc())},normalize(...e){return this.check(Pc(...e))},toLowerCase(){return this.check(Ic())},toUpperCase(){return this.check(Lc())},slugify(){return this.check(Rc())}})}),Hl=Si(`ZodString`,(e,t)=>{Do.init(e,t),Vl.init(e,t),e.email=t=>e.check(Hs(Gl,t)),e.url=t=>e.check(Js(Jl,t)),e.jwt=t=>e.check(lc(lu,t)),e.emoji=t=>e.check(Ys(Yl,t)),e.guid=t=>e.check(Us(Kl,t)),e.uuid=t=>e.check(Ws(ql,t)),e.uuidv4=t=>e.check(Gs(ql,t)),e.uuidv6=t=>e.check(Ks(ql,t)),e.uuidv7=t=>e.check(qs(ql,t)),e.nanoid=t=>e.check(Xs(Xl,t)),e.guid=t=>e.check(Us(Kl,t)),e.cuid=t=>e.check(Zs(Zl,t)),e.cuid2=t=>e.check(Qs(Ql,t)),e.ulid=t=>e.check($s($l,t)),e.base64=t=>e.check(oc(ou,t)),e.base64url=t=>e.check(sc(su,t)),e.xid=t=>e.check(ec(eu,t)),e.ksuid=t=>e.check(tc(tu,t)),e.ipv4=t=>e.check(nc(nu,t)),e.ipv6=t=>e.check(rc(ru,t)),e.cidrv4=t=>e.check(ic(iu,t)),e.cidrv6=t=>e.check(ac(au,t)),e.e164=t=>e.check(cc(cu,t)),e.datetime=t=>e.check(vl(t)),e.date=t=>e.check(bl(t)),e.time=t=>e.check(Sl(t)),e.duration=t=>e.check(wl(t))});function Ul(e){return Vs(Hl,e)}var Wl=Si(`ZodStringFormat`,(e,t)=>{Oo.init(e,t),Vl.init(e,t)}),Gl=Si(`ZodEmail`,(e,t)=>{jo.init(e,t),Wl.init(e,t)}),Kl=Si(`ZodGUID`,(e,t)=>{ko.init(e,t),Wl.init(e,t)}),ql=Si(`ZodUUID`,(e,t)=>{Ao.init(e,t),Wl.init(e,t)}),Jl=Si(`ZodURL`,(e,t)=>{Mo.init(e,t),Wl.init(e,t)}),Yl=Si(`ZodEmoji`,(e,t)=>{No.init(e,t),Wl.init(e,t)}),Xl=Si(`ZodNanoID`,(e,t)=>{Po.init(e,t),Wl.init(e,t)}),Zl=Si(`ZodCUID`,(e,t)=>{Fo.init(e,t),Wl.init(e,t)}),Ql=Si(`ZodCUID2`,(e,t)=>{Io.init(e,t),Wl.init(e,t)}),$l=Si(`ZodULID`,(e,t)=>{Lo.init(e,t),Wl.init(e,t)}),eu=Si(`ZodXID`,(e,t)=>{oee.init(e,t),Wl.init(e,t)}),tu=Si(`ZodKSUID`,(e,t)=>{Ro.init(e,t),Wl.init(e,t)}),nu=Si(`ZodIPv4`,(e,t)=>{Uo.init(e,t),Wl.init(e,t)}),ru=Si(`ZodIPv6`,(e,t)=>{Wo.init(e,t),Wl.init(e,t)}),iu=Si(`ZodCIDRv4`,(e,t)=>{Go.init(e,t),Wl.init(e,t)}),au=Si(`ZodCIDRv6`,(e,t)=>{Ko.init(e,t),Wl.init(e,t)}),ou=Si(`ZodBase64`,(e,t)=>{Jo.init(e,t),Wl.init(e,t)}),su=Si(`ZodBase64URL`,(e,t)=>{Xo.init(e,t),Wl.init(e,t)}),cu=Si(`ZodE164`,(e,t)=>{Zo.init(e,t),Wl.init(e,t)}),lu=Si(`ZodJWT`,(e,t)=>{$o.init(e,t),Wl.init(e,t)}),uu=Si(`ZodNumber`,(e,t)=>{es.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),zl(e,`ZodNumber`,{gt(e,t){return this.check(xc(e,t))},gte(e,t){return this.check(Sc(e,t))},min(e,t){return this.check(Sc(e,t))},lt(e,t){return this.check(yc(e,t))},lte(e,t){return this.check(bc(e,t))},max(e,t){return this.check(bc(e,t))},int(e){return this.check(pu(e))},safe(e){return this.check(pu(e))},positive(e){return this.check(xc(0,e))},nonnegative(e){return this.check(Sc(0,e))},negative(e){return this.check(yc(0,e))},nonpositive(e){return this.check(bc(0,e))},multipleOf(e,t){return this.check(Cc(e,t))},step(e,t){return this.check(Cc(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function du(e){return mc(uu,e)}var fu=Si(`ZodNumberFormat`,(e,t)=>{ts.init(e,t),uu.init(e,t)});function pu(e){return hc(fu,e)}var mu=Si(`ZodBoolean`,(e,t)=>{ns.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r)});function hu(e){return gc(mu,e)}var gu=Si(`ZodUnknown`,(e,t)=>{rs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function _u(){return _c(gu)}var vu=Si(`ZodNever`,(e,t)=>{is.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r)});function yu(e){return vc(vu,e)}var bu=Si(`ZodArray`,(e,t)=>{os.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.element=t.element,zl(e,`ZodArray`,{min(e,t){return this.check(Tc(e,t))},nonempty(e){return this.check(Tc(1,e))},max(e,t){return this.check(wc(e,t))},length(e,t){return this.check(Ec(e,t))},unwrap(){return this.element}})});function xu(e,t){return zc(bu,e,t)}var Su=Si(`ZodObject`,(e,t)=>{ds.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),Pi(e,`shape`,()=>t.shape),zl(e,`ZodObject`,{keyof(){return ju(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:_u()})},loose(){return this.clone({...this._zod.def,catchall:_u()})},strict(){return this.clone({...this._zod.def,catchall:yu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Qi(this,e)},safeExtend(e){return $i(this,e)},merge(e){return ea(this,e)},pick(e){return Xi(this,e)},omit(e){return Zi(this,e)},partial(...e){return ta(Iu,this,e[0])},required(...e){return na(Ku,this,e[0])}})});function Cu(e,t){return new Su({type:`object`,shape:e??{},...qi(t)})}var wu=Si(`ZodUnion`,(e,t)=>{ps.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r),e.options=t.options});function Tu(e,t){return new wu({type:`union`,options:e,...qi(t)})}var Eu=Si(`ZodDiscriminatedUnion`,(e,t)=>{wu.init(e,t),ms.init(e,t)});function Du(e,t,n){return new Eu({type:`union`,options:t,discriminator:e,...qi(n)})}var Ou=Si(`ZodIntersection`,(e,t)=>{hs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r)});function ku(e,t){return new Ou({type:`intersection`,left:e,right:t})}var Au=Si(`ZodEnum`,(e,t)=>{vs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Au({...t,checks:[],...qi(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Au({...t,checks:[],...qi(r),entries:i})}});function ju(e,t){return new Au({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...qi(t)})}var Mu=Si(`ZodLiteral`,(e,t)=>{ys.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nl(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Nu(e,t){return new Mu({type:`literal`,values:Array.isArray(e)?e:[e],...qi(t)})}var Pu=Si(`ZodTransform`,(e,t)=>{bs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new wi(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(la(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(la(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Fu(e){return new Pu({type:`transform`,transform:e})}var Iu=Si(`ZodOptional`,(e,t)=>{Ss.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Lu(e){return new Iu({type:`optional`,innerType:e})}var Ru=Si(`ZodExactOptional`,(e,t)=>{Cs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zu(e){return new Ru({type:`optional`,innerType:e})}var Bu=Si(`ZodNullable`,(e,t)=>{ws.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Vu(e){return new Bu({type:`nullable`,innerType:e})}var Hu=Si(`ZodDefault`,(e,t)=>{Ts.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Uu(e,t){return new Hu({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ui(t)}})}var Wu=Si(`ZodPrefault`,(e,t)=>{Ds.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gu(e,t){return new Wu({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ui(t)}})}var Ku=Si(`ZodNonOptional`,(e,t)=>{Os.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qu(e,t){return new Ku({type:`nonoptional`,innerType:e,...qi(t)})}var Ju=Si(`ZodCatch`,(e,t)=>{As.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Yu(e,t){return new Ju({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Xu=Si(`ZodPipe`,(e,t)=>{js.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ml(e,t,n,r),e.in=t.in,e.out=t.out});function Zu(e,t){return new Xu({type:`pipe`,in:e,out:t})}var Qu=Si(`ZodReadonly`,(e,t)=>{Ns.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $u(e){return new Qu({type:`readonly`,innerType:e})}var ed=Si(`ZodCustom`,(e,t)=>{Fs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rl(e,t,n,r)});function td(e,t={}){return Bc(ed,e,t)}function nd(e,t){return Vc(e,t)}function rd(e){return Ul().transform((t,n)=>{try{return e(t)}catch(e){return n.addIssue({code:`custom`,input:t,message:e instanceof Error?e.message:`Invalid branded string`}),xi}})}var id=e=>e,ad=e=>{if(!/^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/.test(e))throw Error(`Invalid Activity name: ${e}`);return e},od=e=>{if(e.trim().length===0)throw Error(`ActivationId must not be empty`);if(!sd(e))throw Error(`ActivationId must contain well-formed Unicode`);return e};function sd(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){if(t+1>=e.length)return!1;let n=e.charCodeAt(t+1);if(n<56320||n>57343)return!1;t+=1}else if(n>=56320&&n<=57343)return!1}return!0}var cd=id({Agent:`agent`,Script:`script`,Deterministic:`deterministic`}),ld=id({Primary:`primary`,Secondary:`secondary`}),ud=id({IntentWriteFailed:`intent-write-failed`,InvalidAgentResult:`invalid-agent-result`,AmbiguousRunnerResult:`ambiguous-runner-result`,RunnerFailed:`runner-failed`,RunnerQuotaExceeded:`runner-quota-exceeded`}),dd=id({Waiting:`waiting`,Done:`done`,Rejected:`rejected`,Blocked:`blocked`,Failed:`failed`}),see={Agent:ad(cd.Agent),PullRequestApprove:ad(`pr.approve`),PullRequestMerge:ad(`pr.merge`),IssueComplete:ad(`issue.complete`)};Cu({kind:Ul().min(1),externalKey:Cu({adapter:Ul().min(1),key:Ul().min(1)}).strict()}).strict();var fd=e=>Cu({status:Nu(e)}).catchall(_u()),cee=Cu({reason:Nu(ud.AmbiguousRunnerResult)}).strict(),lee=Cu({reason:ju([ud.InvalidAgentResult,ud.RunnerFailed,ud.RunnerQuotaExceeded]),message:Ul().optional()}).strict();Tu([Cu({kind:Nu(dd.Done),data:fd(`DONE`)}).strict(),Cu({kind:Nu(dd.Rejected),data:fd(`REJECTED`)}).strict(),Cu({kind:Nu(dd.Blocked),data:Tu([fd(`BLOCKED`),fd(`NEEDS_CLARIFICATION`),cee])}).strict(),Cu({kind:Nu(dd.Failed),data:Tu([fd(`FAILED`),lee])}).strict()]),dd.Done,dd.Rejected,dd.Blocked,dd.Failed,see.Agent,Cu({prompt:Ul().min(1).optional(),template:Ul().regex(/^[a-z0-9][a-z0-9-]*$/i).optional(),model:Ul().min(1).optional(),allowedTools:xu(Ul().min(1)).optional()}).refine(e=>e.prompt===void 0!=(e.template===void 0),{message:`Agent Activity requires exactly one of prompt or template`}).strict(),cd.Agent;var uee=e=>hd(e,`event id`),pd=e=>hd(e,`correlation id`),md=e=>hd(e,`causation id`);function hd(e,t){if(e.trim().length===0)throw Error(`${t} must not be empty`);return e}var gd={System:`system`,Operator:`operator`,Agent:`agent`,Integration:`integration`},_d={Internal:`internal`,Adapter:`adapter`},vd=vl({offset:!0});function yd(e){return Ul().transform((t,n)=>{try{return e(t)}catch(e){return n.addIssue({code:`custom`,input:t,message:e instanceof Error?e.message:`Invalid branded string`}),xi}})}var bd=Ul().refine(e=>e.trim().length>0,{message:`must not be empty`}),xd=Cu({kind:ju([gd.System,gd.Operator,gd.Agent,gd.Integration]),id:bd}).strict(),Sd=Cu({kind:ju([_d.Internal,_d.Adapter]),id:bd}).strict(),Cd=Cu({kind:bd,id:bd}).strict(),wd=Cu({eventId:bd.pipe(yd(uee)),eventType:bd,schemaVersion:Nu(1),occurredAt:vd,correlationId:bd.pipe(yd(pd)),causationId:bd.pipe(yd(md)),actor:xd,source:Sd,payload:_u()}).strict(),Td=Cu({event:wd,stream:Cd,recordedAt:vd,sequence:du().int().positive(),globalPosition:du().int().positive()}).strict(),Ed=e=>{if(!/^work-[0-9a-hjkmnp-tv-z]{26}$/.test(e))throw Error(`Invalid WorkItemId: ${e}. WorkItem identity is minted, never derived.`);return e},Dd={WorkItem:`work-item`},Od={ItemCreated:`work.item-created`,ObjectiveRevised:`work.objective-revised`,ItemLinked:`work.item-linked`,ItemClosed:`work.item-closed`,ItemCancelled:`work.item-cancelled`,AutoApprovalGranted:`work.auto-approval-granted`,AutoApprovalRevoked:`work.auto-approval-revoked`,ItemFrozen:`work.item-frozen`,ItemUnfrozen:`work.item-unfrozen`,ItemDeleted:`work.item-deleted`},kd=Cu({kind:Nu(Dd.WorkItem),id:rd(Ed)}).strict(),Ad=Cu({objective:Ul().refine(e=>e.trim().length>0,{message:`objective must not be empty`})}).strict(),jd=Cu({reason:Ul()}).strict(),Md=Cu({}).strict(),Nd=Ad.extend({tags:xu(Ul().trim().min(1)).readonly().optional()});Td.extend({event:Du(`eventType`,[wd.extend({eventType:Nu(Od.ItemCreated),payload:Nd}),wd.extend({eventType:Nu(Od.ObjectiveRevised),payload:Ad}),wd.extend({eventType:Nu(Od.ItemLinked),payload:Cu({to:rd(Ed),relation:ju([`relates-to`,`parent-of`,`child-of`])}).strict()}),wd.extend({eventType:Nu(Od.ItemClosed),payload:jd}),wd.extend({eventType:Nu(Od.ItemCancelled),payload:jd}),wd.extend({eventType:Nu(Od.AutoApprovalGranted),payload:Md}),wd.extend({eventType:Nu(Od.AutoApprovalRevoked),payload:Md}),wd.extend({eventType:Nu(Od.ItemFrozen),payload:Md}),wd.extend({eventType:Nu(Od.ItemUnfrozen),payload:Md}),wd.extend({eventType:Nu(Od.ItemDeleted),payload:Md})]),stream:kd}),o(((e,t)=>{t.exports={}}))(),Cu({}).strict();var Pd=e=>{if(!/^resource-[0-9a-hjkmnp-tv-z]{26}$/.test(e))throw Error(`Invalid ResourceId: ${e}. Resource identity is minted, never derived.`);return e},Fd=e=>{if(!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))throw Error(`Invalid Resource kind: ${e}`);return e},Id=e=>{if(!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))throw Error(`Invalid Resource capability: ${e}`);return e},Ld={Resource:`resource`};Fd(`repository`),Fd(`issue`),Fd(`pull-request`);var Rd={Commentable:Id(`commentable`),Reviewable:Id(`reviewable`),Approvable:Id(`approvable`),Mergeable:Id(`mergeable`),Revisioned:Id(`revisioned`),Editable:Id(`editable`),Completable:Id(`completable`),ChangedFiles:Id(`changed-files`)},zd=id({Primary:`primary`,Secondary:`secondary`}),Bd=id({ProviderObserved:`provider-observed`,AgentReported:`agent-reported`,OperatorDeclared:`operator-declared`}),Vd=id({Completed:`completed`,Cancelled:`cancelled`}),Hd={ResourceDiscovered:`resources.resource-discovered`,ResourceRevisionObserved:`resources.resource-revision-observed`,WorkCorrelationEstablished:`resources.work-correlation-established`,WorkCorrelationRetracted:`resources.work-correlation-retracted`,WorkCorrelationConflicted:`resources.work-correlation-conflicted`,WorkCorrelationRetryPending:`resources.work-correlation-retry-pending`,WorkCorrelationUnresolvable:`resources.work-correlation-unresolvable`,ExternalOutcomeObserved:`resources.external-outcome-observed`,ExternalOutcomeReopened:`resources.external-outcome-reopened`,ExternalOutcomeConsumed:`resources.external-outcome-consumed`,IssueCompletionObservationConsumed:`resources.issue-completion-observation-consumed`,IssueCompletionObservationSuperseded:`resources.issue-completion-observation-superseded`},Ud=Cu({kind:Nu(Ld.Resource),id:rd(Pd)}).strict(),Wd=Cu({revision:Ul()}).strict(),Gd=rd(Ed);Td.extend({event:Du(`eventType`,[wd.extend({eventType:Nu(Hd.ResourceDiscovered),payload:Cu({kind:rd(Fd),externalKey:Cu({adapter:Ul(),key:Ul()}).strict(),capabilities:xu(rd(Id)),revision:Ul().optional(),title:Ul().optional()}).strict()}),wd.extend({eventType:Nu(Hd.ExternalOutcomeObserved),payload:Cu({sourceObservationId:Ul().min(1),outcome:ju([Vd.Completed,Vd.Cancelled]),revision:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.ExternalOutcomeReopened),payload:Cu({revision:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.ExternalOutcomeConsumed),payload:Cu({sourceObservationId:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationRetryPending),payload:Cu({attemptCount:du().int().min(1),lastFailureReason:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationUnresolvable),payload:Cu({externalKey:Cu({adapter:Ul(),key:Ul()}).strict(),attemptCount:du().int().min(1),lastFailureReason:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.ResourceRevisionObserved),payload:Wd}),wd.extend({eventType:Nu(Hd.WorkCorrelationEstablished),payload:Cu({workItemId:Gd,role:ju([zd.Primary,zd.Secondary]),provenance:ju([Bd.ProviderObserved,Bd.AgentReported,Bd.OperatorDeclared])}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationRetracted),payload:Cu({workItemId:Gd}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationConflicted),payload:Cu({workItemId:Gd,existingWorkItemId:Gd}).strict()}),wd.extend({eventType:Nu(Hd.IssueCompletionObservationConsumed),payload:Cu({intentEventId:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.IssueCompletionObservationSuperseded),payload:Cu({intentEventId:Ul().min(1)}).strict()})]),stream:Ud}),Cu({}).strict(),Ld.Resource,Dd.WorkItem;var Kd=id({Open:`open`,Closed:`closed`,Merged:`merged`}),qd=id({Unknown:`unknown`,Pending:`pending`,Passing:`passing`,Failing:`failing`}),Jd=id({Merge:`merge`,Squash:`squash`,Rebase:`rebase`}),Yd=id({MissingResource:`missing-resource`,AmbiguousResource:`ambiguous-resource`,CorrelationConflict:`correlation-conflict`,Closed:`closed`,StaleApproval:`stale-approval`,ChecksPending:`checks-pending`,ChecksFailing:`checks-failing`,UntrustedActor:`untrusted-actor`,TooManyFilesChanged:`too-many-files-changed`,BlockedPathChanged:`blocked-path-changed`,ChangedFilesUnavailable:`changed-files-unavailable`}),Xd=id({None:`none`,Read:`read`,Triage:`triage`,Write:`write`,Maintain:`maintain`,Admin:`admin`}),Zd=id({Human:`human`,Bot:`bot`});function Qd(e,t,n,r,i){return Cu({action:Nu(e),activationId:rd(od),decisionKind:Nu(t),outcome:n,fact:r,factStream:i}).strict()}function $d(e,t,n,r){return Cu({action:Nu(e),activationId:rd(od),decisionKind:Nu(t),outcome:n,fact:r}).strict()}function ef(e){return{fact:{eventId:e.eventId,eventType:e.eventType,schemaVersion:e.schemaVersion,occurredAt:e.occurredAt,correlationId:e.correlationId,causationId:e.causationId,actor:e.actor,source:e.source,payload:e.payload},factStream:e.stream}}var tf={Decision:`activity-decision`},nf=(e,t)=>{if(!e.endsWith(`:pr.${t}`)||e.length===`:pr.${t}`.length)throw Error(`Invalid ${t} ActivityDecisionId: ${e}`);return e},rf=(e,t)=>({kind:tf.Decision,id:nf(`${af(e)}:pr.${af(t)}`,t)});function af(e){if(e.trim().length===0)throw Error(`Activity decision stream segment must not be empty`);return encodeURIComponent(e)}function of(e,t,n=[]){e.stream.kind!==Ld.Resource||typeof e.payload!=`object`||e.payload===null||!(`resourceId`in e.payload)||typeof e.payload.resourceId!=`string`||e.payload.resourceId!==e.stream.id&&t.addIssue({code:`custom`,path:[...n,`payload`,`resourceId`],message:`Activity resource payload id must identify its stream`})}function sf(e,t){e.stream.id!==rf(od(e.event.payload.activationId),e.event.payload.action).id&&t.addIssue({code:`custom`,path:[`event`,`payload`,`activationId`],message:`Activity decision activation and action must identify its stream`}),cf(e.event,t,[`event`])}function cf(e,t,n=[]){e.payload.fact.payload.activationId!==e.payload.activationId&&t.addIssue({code:`custom`,path:[...n,`payload`,`fact`,`payload`,`activationId`],message:`Activity decision fact activation must match its claim`}),e.payload.decisionKind===`requested`&&e.payload.outcome.data.intentEventId!==e.payload.fact.eventId&&t.addIssue({code:`custom`,path:[...n,`payload`,`outcome`,`data`,`intentEventId`],message:`Requested decision intent event id must match its fact`}),e.payload.decisionKind===`denied`&&e.payload.outcome.data.reason!==e.payload.fact.payload.reason&&t.addIssue({code:`custom`,path:[...n,`payload`,`outcome`,`data`,`reason`],message:`Denied decision reason must match its fact`}),of({stream:e.payload.factStream,payload:e.payload.fact.payload},t,[...n,`payload`,`fact`])}var lf=Cu({kind:Nu(Ld.Resource),id:rd(Pd)}).strict(),dee=Cu({kind:Nu(Dd.WorkItem),id:rd(Ed)}).strict(),uf=e=>Cu({kind:Nu(tf.Decision),id:rd(t=>nf(t,e))}).strict(),fee=uf(`approve`),df=uf(Jd.Merge),ff=Tu([lf,dee]),pf=rd(Ed),mf=rd(Pd),hf=ju([Kd.Open,Kd.Closed,Kd.Merged]),gf=ju([qd.Unknown,qd.Pending,qd.Passing,qd.Failing]),_f=Cu({revision:Ul(),actorId:Ul()}).strict(),vf=ju([Yd.MissingResource,Yd.AmbiguousResource,Yd.CorrelationConflict,Yd.Closed,Yd.StaleApproval,Yd.ChecksPending,Yd.ChecksFailing,Yd.UntrustedActor,Yd.TooManyFilesChanged,Yd.BlockedPathChanged,Yd.ChangedFilesUnavailable]),yf=Cu({activationId:rd(od),idempotencyKey:Ul(),reason:vf,target:Tu([Nu(ld.Primary),Cu({resourceId:mf}).strict()]).optional(),candidates:xu(Cu({resourceId:mf,revision:Ul().nullable()}).strict()).optional(),resourceId:mf.nullable().optional(),revision:Ul().nullable().optional(),method:ju([Jd.Merge,Jd.Squash,Jd.Rebase]).optional(),body:Ul().nullable().optional()}).strict(),bf=Cu({idempotencyKey:Ul(),activationId:rd(od),workflowInstanceId:Ul().min(1),resourceId:mf,revision:Ul(),body:Ul().nullable()}).strict(),xf=Cu({idempotencyKey:Ul(),activationId:rd(od),workflowInstanceId:Ul().min(1),resourceId:mf,revision:Ul(),method:ju([Jd.Merge,Jd.Squash,Jd.Rebase]),requireChecks:hu(),autoMerge:hu().default(!1)}).strict(),Sf=Cu({kind:Nu(dd.Waiting),data:Cu({intentEventId:Ul(),signalKind:Nu(`delivery-result`)}).strict()}).strict(),Cf=Cu({kind:Nu(dd.Blocked),data:Cu({reason:vf}).strict()}).strict();function wf(e){return[Ef(e.IssueCompleteRequested,Cu({idempotencyKey:Ul(),activationId:rd(od),workflowInstanceId:Ul().min(1),resourceId:mf}).strict()),Ef(e.PrDiscovered,Cu({workItemId:pf,state:hf,headRevision:Ul(),baseRevision:Ul(),checks:gf,changedFiles:xu(Ul()).optional()}).strict()),Ef(e.PrRevisionChanged,Cu({headRevision:Ul(),baseRevision:Ul(),changedFiles:xu(Ul()).optional()}).strict()),Ef(e.PrStateChanged,Cu({state:hf}).strict()),Ef(e.PrChecksChanged,Cu({checks:gf}).strict()),Ef(e.PrReviewAccepted,_f),Ef(e.ReviewAcceptanceSignalRecorded,Cu({revision:Ul(),actorId:Ul(),actorKind:ju([Zd.Human,Zd.Bot]),acceptedEventId:Ul(),providerEventId:Ul(),trusted:hu()}).strict()),Ef(e.PrReviewChangesRequested,_f),Ef(e.PrReviewRejected,Cu({reason:vf}).strict()),Ef(e.PrMergeAuthorized,Cu({revision:Ul()}).strict()),Ef(e.PrApproveRequested,bf),Ef(e.PrMergeRequested,xf)]}function Tf(e){return[Df(e.PrMergeDenied),Df(e.PrApproveDenied)]}function Ef(e,t){return wd.extend({eventType:Nu(e),payload:t})}function Df(e){return wd.extend({eventType:Nu(e),payload:yf})}function Of(e){let t=wf(e),n=Tf(e),r=kf(e,t,n);return{eventSchema:Tu([Td.extend({event:Tu(t),stream:lf}).superRefine((e,t)=>of({stream:e.stream,payload:e.event.payload},t,[`event`])),Td.extend({event:Tu(n),stream:ff}).superRefine((e,t)=>of({stream:e.stream,payload:e.event.payload},t,[`event`])),r.approveEnvelope,r.mergeEnvelope]),draftSchema:Tu([...t,...n,r.approveDraft,r.mergeDraft])}}function kf(e,t,n){let{approveDraftPayload:r,mergeDraftPayload:i,approveEnvelopePayload:a,mergeEnvelopePayload:o}=Af(t,n),s=wd.extend({eventType:Nu(e.PrApproveDecisionClaimed),payload:r}).superRefine(cf),c=wd.extend({eventType:Nu(e.PrMergeDecisionClaimed),payload:i}).superRefine(cf);return{approveEnvelope:Td.extend({event:wd.extend({eventType:Nu(e.PrApproveDecisionClaimed),payload:a}),stream:fee}).superRefine(sf),mergeEnvelope:Td.extend({event:wd.extend({eventType:Nu(e.PrMergeDecisionClaimed),payload:o}),stream:df}).superRefine(sf),approveDraft:s,mergeDraft:c}}function Af(e,t){let n=Qd(`approve`,`requested`,Sf,e[10],lf),r=Qd(`approve`,`denied`,Cf,t[1],ff),i=Qd(Jd.Merge,`requested`,Sf,e[11],lf),a=Qd(Jd.Merge,`denied`,Cf,t[0],ff),o=Tu([n,r]),s=Tu([i,a]);return{approveDraftPayload:o,mergeDraftPayload:s,approveEnvelopePayload:Tu([o,$d(`approve`,`requested`,Sf,e[10].extend({stream:lf})).transform(e=>({...e,...ef(e.fact)})),$d(`approve`,`denied`,Cf,t[1].extend({stream:ff})).transform(e=>({...e,...ef(e.fact)}))]),mergeEnvelopePayload:Tu([s,$d(Jd.Merge,`requested`,Sf,e[11].extend({stream:lf})).transform(e=>({...e,...ef(e.fact)})),$d(Jd.Merge,`denied`,Cf,t[0].extend({stream:ff})).transform(e=>({...e,...ef(e.fact)}))])}}var{draftSchema:jf,eventSchema:Mf}=Of({IssueCompleteRequested:`issue.complete-requested`,PrDiscovered:`pr.discovered`,PrRevisionChanged:`pr.revision-changed`,PrStateChanged:`pr.state-changed`,PrChecksChanged:`pr.checks-changed`,PrReviewAccepted:`pr.review-accepted`,ReviewAcceptanceSignalRecorded:`review.acceptance-signal-recorded`,PrReviewChangesRequested:`pr.review-changes-requested`,PrReviewRejected:`pr.review-rejected`,PrMergeDenied:`pr.merge-denied`,PrApproveDenied:`pr.approve-denied`,PrMergeAuthorized:`pr.merge-authorized`,PrApproveRequested:`pr.approve-requested`,PrMergeRequested:`pr.merge-requested`,PrApproveDecisionClaimed:`pr.approve-decision-claimed`,PrMergeDecisionClaimed:`pr.merge-decision-claimed`});Cu({target:Nu(ld.Primary).default(ld.Primary)}).strict(),Tu([Cu({kind:Nu(dd.Done),data:Cu({deliveryEventId:Ul()}).strict()}).strict(),Cu({kind:Nu(dd.Waiting),data:Cu({intentEventId:Ul(),signalKind:Nu(`delivery-result`)}).strict()}).strict(),Cu({kind:Nu(dd.Blocked),data:Cu({reason:Nu(`missing-completable-primary-issue`)}).strict()}).strict()]),Cu({}).strict(),Xd.Write,Xd.Maintain,Xd.Admin,Rd.Mergeable,Rd.Reviewable,Rd.Approvable;var Nf=Tu([Nu(ld.Primary),Cu({resourceId:Ul().min(1).transform(Pd)}).strict()]).default(ld.Primary);Tu([Cu({kind:Nu(dd.Waiting),data:Cu({intentEventId:Ul(),signalKind:Nu(`delivery-result`)}).strict()}).strict(),Cu({kind:Nu(dd.Done),data:Cu({deliveryEventId:Ul()}).strict()}).strict(),Cu({kind:Nu(dd.Blocked),data:Cu({reason:ju([Yd.MissingResource,Yd.AmbiguousResource,Yd.CorrelationConflict,Yd.Closed,Yd.StaleApproval,Yd.ChecksPending,Yd.ChecksFailing,Yd.UntrustedActor,Yd.TooManyFilesChanged,Yd.BlockedPathChanged,Yd.ChangedFilesUnavailable])}).strict()}).strict(),Cu({kind:Nu(dd.Failed),data:Cu({reason:Nu(ud.IntentWriteFailed)}).strict()}).strict()]),Cu({target:Nf,body:Ul().optional()}).strict().transform(e=>e.body===void 0?{target:e.target}:{target:e.target,body:e.body}),Cu({target:Nf,method:ju([Jd.Merge,Jd.Squash,Jd.Rebase]),requireChecks:hu(),requireApproval:hu().default(!0),autoMerge:hu().default(!1),maxFilesChanged:du().int().positive().optional(),blockedPaths:xu(Ul().min(1)).default([])}).strict().superRefine((e,t)=>{!e.requireApproval&&!e.autoMerge&&t.addIssue({code:`custom`,path:[`requireApproval`],message:`requireApproval may be false only when autoMerge is true`})});var Pf=Object.keys({accepted:!0,completed:!0}),Ff={Accepted:Pf[0],Completed:Pf[1]},If={Active:Object.keys({active:!0})[0]},Lf={Adapter:Object.keys({adapter:!0})[0]},Rf=Object.keys({failed:!0,succeeded:!0}),zf={Failed:Rf[0],Succeeded:Rf[1]},Bf=Object.keys({starting:!0,started:!0}),Vf={Starting:Bf[0],Started:Bf[1]},Hf=dd,Uf=Object.keys({ready:!0,active:!0,"needs-input":!0,error:!0,finished:!0});Uf[0],Uf[1],Uf[2],Uf[3],Uf[4],Object.keys({stage:!0})[0];var Wf=Object.keys({input:!0,agent:!0}),Gf={Input:Wf[0],Agent:Wf[1]},Kf=Object.keys({session:!0,run:!0}),qf={Session:Kf[0],Run:Kf[1]},Jf=Object.keys({activity:!0,watch:!0,"watch-gate":!0,reactor:!0}),Yf={Activity:Jf[0],Watch:Jf[1],WatchGate:Jf[2],Reactor:Jf[3]};function Xf(e,t){let n=Zf(e,t);return{asOf:$f(n.asOf,sp(t,`asOf`)),...ip(n,`position`,t)}}function Zf(e,t){return pee(e)||cp(t),e}function Qf(e,t,n){return Array.isArray(e)||cp(t),e.map((e,r)=>n(e,`${t}[${r}]`))}function $f(e,t=``){return typeof e!=`string`&&cp(t),e}function ep(e,t){return e===null?null:$f(e,t)}function tp(e,t){return typeof e!=`boolean`&&cp(t),e}function np(e,t){return(typeof e!=`number`||!Number.isFinite(e))&&cp(t),e}function rp(e,t,n){return e[t]===void 0?{}:{[t]:$f(e[t],sp(n,t))}}function ip(e,t,n){return e[t]===void 0?{}:{[t]:np(e[t],sp(n,t))}}function ap(e,t,n){return e[t]===void 0?{}:{[t]:tp(e[t],sp(n,t))}}function op(e,t){if(e===null||typeof e==`string`||typeof e==`boolean`||typeof e==`number`&&Number.isFinite(e))return e;if(Array.isArray(e))return e.map((e,n)=>op(e,`${t}[${n}]`));let n=Zf(e,t);return Object.fromEntries(Object.entries(n).map(([e,n])=>[e,op(n,sp(t,e))]))}function sp(e,t){return e===``?t:`${e}.${t}`}function cp(e){throw Error(`Invalid Wake API response at ${e===``?`root`:e}`)}function pee(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var lp=Object.keys({stage:!0})[0];function up(e){return(t,n=``)=>{let r=Zf(t,n);return{data:e(r.data,sp(n,`data`)),meta:Xf(r.meta,sp(n,`meta`))}}}function dp(e){return(t,n=``)=>{let r=Zf(t,n),i=Zf(r.page,sp(n,`page`));return{items:Qf(r.items,sp(n,`items`),e),page:{nextCursor:ep(i.nextCursor,sp(n,`page.nextCursor`)),hasMore:tp(i.hasMore,sp(n,`page.hasMore`)),...ip(i,`total`,sp(n,`page`))},meta:Xf(r.meta,sp(n,`meta`))}}}var fp=(e,t=``)=>{let n=Zf(e,t);return{paused:tp(n.paused,sp(t,`paused`)),...rp(n,`pausedUntil`,t),...rp(n,`reason`,t),updatedAt:$f(n.updatedAt,sp(t,`updatedAt`)),...n.maintenanceLease===void 0?{}:{maintenanceLease:pp(n.maintenanceLease,sp(t,`maintenanceLease`))}}};function pp(e,t){let n=Zf(e,t);return{phase:$f(n.phase,sp(t,`phase`)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),...rp(n,`failure`,t)}}var mp=(e,t=``)=>{let n=Zf(e,t),r=$f(n.status,sp(t,`status`));return r!==Ff.Accepted&&r!==Ff.Completed&&cp(sp(t,`status`)),{commandId:$f(n.commandId,sp(t,`commandId`)),idempotencyKey:$f(n.idempotencyKey,sp(t,`idempotencyKey`)),acceptedAt:$f(n.acceptedAt,sp(t,`acceptedAt`)),status:r}},hp=(e,t=``)=>{let n=Zf(e,t);return{workItemKey:$f(n.workItemKey,sp(t,`workItemKey`)),workItemId:$f(n.workItemId,sp(t,`workItemId`)),objective:$f(n.objective,sp(t,`objective`)),state:$f(n.state,sp(t,`state`)),...ap(n,`frozen`,t),...ap(n,`deleted`,t),...rp(n,`externalRef`,t),...rp(n,`lastRunOutcome`,t),relatedWorkItems:Qf(n.relatedWorkItems,sp(t,`relatedWorkItems`),(e,t=``)=>{let n=Zf(e,t);return{workItemKey:$f(n.workItemKey,sp(t??``,`workItemKey`)),relation:$f(n.relation,sp(t??``,`relation`))}})}},gp=(e,t=``)=>{let n=Zf(e,t);return{workItemKey:$f(n.workItemKey,sp(t,`workItemKey`)),workItemId:$f(n.workItemId,sp(t,`workItemId`)),objective:$f(n.objective,sp(t,`objective`)),condition:$f(n.condition,sp(t,`condition`)),...ap(n,`frozen`,t),...ap(n,`awaitingApproval`,t),...rp(n,`workflowName`,t),...rp(n,lp,t),...rp(n,`blockReason`,t),dwellSince:$f(n.dwellSince,sp(t,`dwellSince`)),runCount:np(n.runCount,sp(t,`runCount`)),...rp(n,`lastRunAt`,t),...rp(n,`lastRunOutcome`,t),...ip(n,`lastRunAgeMs`,t),totalTokens:np(n.totalTokens,sp(t,`totalTokens`)),...ip(n,`inputTokens`,t),...ip(n,`outputTokens`,t),...ip(n,`cacheReadTokens`,t),...ip(n,`cacheWriteTokens`,t),totalCostUsd:np(n.totalCostUsd,sp(t,`totalCostUsd`)),totalDurationMs:np(n.totalDurationMs,sp(t,`totalDurationMs`)),activeRuns:_p(n.activeRuns,sp(t,`activeRuns`)),...rp(n,`externalRef`,t)}};function _p(e,t){return e===void 0?{}:Object.fromEntries(Object.entries(Zf(e,t)).map(([e,n])=>[e,vp(n,sp(t,e))]))}function vp(e,t){let n=Zf(e,t),r=$f(n.phase,sp(t,`phase`));return Object.values(Vf).includes(r)||cp(sp(t,`phase`)),{action:$f(n.action,sp(t,`action`)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),elapsedMs:np(n.elapsedMs,sp(t,`elapsedMs`)),phase:r,...rp(n,`runnerName`,t)}}var yp=(e,t=``)=>{let n=Zf(e,t);return{resourceId:$f(n.resourceId,sp(t,`resourceId`)),adapter:$f(n[Lf.Adapter],sp(t,Lf.Adapter)),kind:$f(n.kind,sp(t,`kind`)),locatorLabel:$f(n.locatorLabel,sp(t,`locatorLabel`)),capabilities:Qf(n.capabilities,sp(t,`capabilities`),$f),...rp(n,`title`,t),...rp(n,`externalUrl`,t),...rp(n,`revision`,t)}},bp=(e,t=``)=>{let n=Zf(e,t),r=n.waitingFor;return{workflowInstanceId:$f(n.workflowInstanceId,sp(t,`workflowInstanceId`)),workItemKey:$f(n.workItemKey,sp(t,`workItemKey`)),workflowName:$f(n.workflowName,sp(t,`workflowName`)),orchestrationGroupId:$f(n.orchestrationGroupId,sp(t,`orchestrationGroupId`)),...rp(n,`parentWorkflowInstanceId`,t),status:$f(n.status,sp(t,`status`)),currentStage:$f(n.currentStage,sp(t,`currentStage`)),...rp(n,`blockReason`,t),...ap(n,`retryEligible`,t),...ap(n,`extendEligible`,t),...r===void 0?{}:{waitingFor:{signalKind:$f(Zf(r,sp(t,`waitingFor`)).signalKind,sp(t,`waitingFor.signalKind`))}}}},xp=(e,t=``)=>({diagrams:Qf(Zf(e,t).diagrams,sp(t,`diagrams`),Sp)});function Sp(e,t=``){let n=Zf(e,t);return{id:$f(n.id,sp(t,`id`)),label:$f(n.label,sp(t,`label`)),direction:`left-to-right`,stages:Qf(n.stages,sp(t,`stages`),(e,t=``)=>{let n=Zf(e,t);return{id:$f(n.id,sp(t,`id`)),label:$f(n.label,sp(t,`label`)),children:Qf(n.children,sp(t,`children`),(e,t=``)=>{let n=Zf(e,t);return{id:$f(n.id,sp(t,`id`)),label:$f(n.label,sp(t,`label`)),kind:Cp(n.kind,sp(t,`kind`)),...wp(n,t)}}),...wp(n,t)}}),transitions:Qf(n.transitions,sp(t,`transitions`),(e,t=``)=>{let n=Zf(e,t);return{from:$f(n.from,sp(t,`from`)),to:$f(n.to,sp(t,`to`)),label:$f(n.label,sp(t,`label`)),...rp(n,`fromChildId`,t)}})}}function Cp(e,t){let n=$f(e,t);return Object.values(Yf).includes(n)||cp(t),n}function wp(e,t){let n=e.activeRuns;return{...rp(e,`status`,t),...rp(e,`lastOutcome`,t),...ip(e,`runCount`,t),...ip(e,`totalDurationMs`,t),...ip(e,`totalTokens`,t),...ip(e,`inputTokens`,t),...ip(e,`outputTokens`,t),...ip(e,`cacheReadTokens`,t),...ip(e,`cacheWriteTokens`,t),...ip(e,`totalCostUsd`,t),...n===void 0?{}:{activeRuns:Qf(n,sp(t,`activeRuns`),(e,t=``)=>{let n=Zf(e,t);return{runId:$f(n.runId,sp(t,`runId`)),activity:$f(n.activity,sp(t,`activity`)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),...rp(n,`runnerName`,t)}})}}}var Tp=[`DONE`,`FAILED`,`AMBIGUOUS`];function Ep(e,t){let n=sp(t,`resolution`),r=Zf(e,n),i=$f(r.sentinel,sp(n,`sentinel`));return Tp.includes(i)||cp(sp(n,`sentinel`)),{sentinel:i,resolvedAt:$f(r.resolvedAt,sp(n,`resolvedAt`))}}var Dp=(e,t=``)=>{let n=Zf(e,t),r=n.failure,i=n.resolution;return{runId:$f(n.runId,sp(t,`runId`)),activationId:$f(n.activationId,sp(t,`activationId`)),activity:$f(n.activity,sp(t,`activity`)),workflowInstanceId:$f(n.workflowInstanceId,sp(t,`workflowInstanceId`)),orchestrationGroupId:$f(n.orchestrationGroupId,sp(t,`orchestrationGroupId`)),attempt:np(n.attempt,sp(t,`attempt`)),status:$f(n.status,sp(t,`status`)),active:tp(n.active,sp(t,If.Active)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),...rp(n,`executionStartedAt`,t),...rp(n,`finishedAt`,t),sentinel:$f(n.sentinel,sp(t,`sentinel`)),...rp(n,`runnerName`,t),...rp(n,`runnerModel`,t),...rp(n,`workflowName`,t),...rp(n,lp,t),totalTokens:np(n.totalTokens,sp(t,`totalTokens`)),...ip(n,`inputTokens`,t),...ip(n,`outputTokens`,t),...ip(n,`cacheReadTokens`,t),...ip(n,`cacheWriteTokens`,t),totalCostUsd:np(n.totalCostUsd,sp(t,`totalCostUsd`)),...n.outcome===void 0?{}:{outcome:op(n.outcome,sp(t,`outcome`))},...r===void 0?{}:{failure:{kind:$f(Zf(r,sp(t,`failure`)).kind,sp(t,`failure.kind`))}},...i===void 0?{}:{resolution:Ep(i,t)}}},Op=(e,t=``)=>{let n=Object.keys({conversation:!0})[0],r=Object.keys({stage:!0})[0],i=Zf(e,t),a=Zf(i.orchestration,sp(t,`orchestration`)),o=Zf(i.execution,sp(t,`execution`)),s=Zf(i.activities,sp(t,`activities`)),c=i.conversation===void 0?void 0:Zf(i.conversation,sp(t,n));return{work:hp(i.work,sp(t,`work`)),resources:Qf(i.resources,sp(t,`resources`),yp),orchestration:{primary:a.primary===null?null:bp(a.primary,sp(t,`orchestration.primary`)),children:Qf(a.children,sp(t,`orchestration.children`),bp),diagram:Pp(a.diagram,sp(t,`orchestration.diagram`))},execution:{runs:Qf(o.runs,sp(t,`execution.runs`),Dp),transcriptGroups:Qf(o.transcriptGroups,sp(t,`execution.transcriptGroups`),(e,t=``)=>{let n=Zf(e,t);return{groupId:$f(n.groupId,sp(t,`groupId`)),kind:Ip(n.kind,sp(t,`kind`)),...rp(n,`cli`,t),latestAt:$f(n.latestAt,sp(t,`latestAt`)),runIds:Qf(n.runIds,sp(t,`runIds`),$f)}})},activities:s.pullRequest===void 0?{}:{pullRequest:mee(s.pullRequest,sp(t,`activities.pullRequest`))},conversation:{canCreateEntries:c?.canCreateEntries===!0,entries:c===void 0?[]:Qf(c.entries,sp(t,`${n}.entries`),(e,t=``)=>{let n=Zf(e,t);return{entryId:$f(n.entryId,sp(t,`entryId`)),body:$f(n.body,sp(t,`body`)),occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),origin:$f(n.origin,sp(t,`origin`)),actorId:$f(n.actorId,sp(t,`actorId`)),...rp(n,`runId`,t),...rp(n,r,t),...rp(n,`sourceAdapter`,t),...rp(n,`sourceResourceId`,t),...rp(n,`sourceThreadId`,t),deleted:tp(n.deleted,sp(t,`deleted`)),representations:Qf(n.representations,sp(t,`representations`),(e,t=``)=>{let n=Zf(e,t);return{resourceId:$f(n.resourceId,sp(t,`resourceId`)),externalId:$f(n.externalId,sp(t,`externalId`))}})}})}}},kp=(e,t=``)=>{let n=Zf(e,t),r=n.stream;return{id:$f(n.id,sp(t,`id`)),type:$f(n.type,sp(t,`type`)),occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),position:np(n.position,sp(t,`position`)),...r===void 0?{}:{stream:{kind:$f(Zf(r,sp(t,`stream`)).kind,sp(t,`stream.kind`)),id:$f(Zf(r,sp(t,`stream`)).id,sp(t,`stream.id`))}},...rp(n,`causationId`,t),...rp(n,`correlationId`,t),payload:n.payload}},Ap=(e,t=``)=>{let n=Zf(e,t);return{runnerId:$f(n.runnerId,sp(t,`runnerId`)),status:$f(n.status,sp(t,`status`)),available:tp(n.available,sp(t,`available`)),...rp(n,`detail`,t),updatedAt:$f(n.updatedAt,sp(t,`updatedAt`))}},jp=(e,t=``)=>{let n=Zf(e,t);return{runId:$f(n.runId,sp(t,`runId`)),...rp(n,`groupId`,t),available:tp(n.available,sp(t,`available`)),entries:Qf(n.entries,sp(t,`entries`),(e,t=``)=>{let n=Zf(e,t);return{occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),channel:Fp(n.channel,sp(t,`channel`)),text:$f(n.text,sp(t,`text`)),runId:$f(n.runId,sp(t,`runId`)),groupId:$f(n.groupId,sp(t,`groupId`)),...ip(n,`durationMs`,t)}})}},Mp=(e,t=``)=>{let n=Zf(e,t);return{groupId:$f(n.groupId,sp(t,`groupId`)),available:tp(n.available,sp(t,`available`)),entries:Qf(n.entries,sp(t,`entries`),Np)}};function Np(e,t=``){let n=Zf(e,t);return{occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),channel:Fp(n.channel,sp(t,`channel`)),text:$f(n.text,sp(t,`text`)),runId:$f(n.runId,sp(t,`runId`)),groupId:$f(n.groupId,sp(t,`groupId`)),...ip(n,`durationMs`,t)}}function Pp(e,t){return{href:$f(Zf(e,t).href,sp(t,`href`))}}function Fp(e,t){let n=$f(e,t);return n!==Gf.Input&&n!==Gf.Agent&&cp(t),n}function Ip(e,t){let n=$f(e,t);return n!==qf.Session&&n!==qf.Run&&cp(t),n}function mee(e,t=``){let n=Zf(e,t);return{resourceId:$f(n.resourceId,sp(t,`resourceId`)),state:$f(n.state,sp(t,`state`)),...ap(n,`frozen`,t),...ap(n,`deleted`,t),headRevision:$f(n.headRevision,sp(t,`headRevision`)),baseRevision:$f(n.baseRevision,sp(t,`baseRevision`)),checks:$f(n.checks,sp(t,`checks`))}}var Lp=(e,t=``)=>{let n=Zf(e,t),r=Zf(n.values,sp(t,`values`));return{collectedAt:$f(n.collectedAt,sp(t,`collectedAt`)),window:Rp(n.window,sp(t,`window`)),values:Object.fromEntries(Object.entries(r).map(([e,n])=>[e,np(n,sp(t,`values.${e}`))]))}};function Rp(e,t){let n=Zf(e,t);return{days:np(n.days,sp(t,`days`)),from:$f(n.from,sp(t,`from`)),to:$f(n.to,sp(t,`to`))}}var zp=(e,t=``)=>{let n=Zf(e,t);return{status:Up(n.status,sp(t,`status`)),version:$f(n.version,sp(t,`version`)),checkedAt:$f(n.checkedAt,sp(t,`checkedAt`)),...n.checks===void 0?{}:{checks:Qf(n.checks,sp(t,`checks`),(e,t=``)=>{let n=Zf(e,t);return{name:$f(n.name,sp(t,`name`)),status:Up(n.status,sp(t,`status`)),...rp(n,`detail`,t)}})},...n.adapters===void 0?{}:{adapters:Qf(n.adapters,sp(t,`adapters`),(e,t=``)=>{let n=Zf(e,t);return{adapter:$f(n.adapter,sp(t,`adapterId`)),provider:$f(n.provider,sp(t,`provider`)),scope:$f(n.scope,sp(t,`scope`)),channel:$f(n.channel,sp(t,`channel`)),status:Up(n.status,sp(t,`status`)),successCount:np(n.successCount,sp(t,`successCount`)),failureCount:np(n.failureCount,sp(t,`failureCount`)),...rp(n,`detail`,t)}})}}},Bp=(e,t=``)=>{let n=Zf(e,t),r=sp(t,`configuration`);return{configuration:Zf(op(n.configuration,r),r)}},Vp=(e,t=``)=>({adapters:Qf(Zf(e,t).adapters,sp(t,`adapters`),(e,t=``)=>{let n=Zf(e,t);return{adapter:$f(n.adapter,sp(t,`adapterId`)),provider:$f(n.provider,sp(t,`provider`)),commands:Qf(n.commands,sp(t,`commands`),(e,t=``)=>({syntax:$f(Zf(e,t).syntax,sp(t,`syntax`))}))}})});function Hp(e,t){try{let t=Zf(e,`problem`);return{type:$f(t.type,`problem.type`),title:$f(t.title,`problem.title`),status:np(t.status,`problem.status`),...rp(t,`detail`,`problem`),...rp(t,`instance`,`problem`),...rp(t,`code`,`problem`),...t.retryable===void 0?{}:{retryable:tp(t.retryable,`problem.retryable`)},...t.current===void 0?{}:{current:op(t.current,`problem.current`)},...t.violations===void 0?{}:{violations:Qf(t.violations,`problem.violations`,(e,t=``)=>{let n=Zf(e,t);return{path:$f(n.path,sp(t,`path`)),message:$f(n.message,sp(t,`message`))}})}}}catch{return{type:`about:blank`,title:`Request failed`,status:t}}}function Up(e,t){let n=$f(e,t);return n!==`ok`&&n!==`degraded`&&cp(t),n}var Wp=class extends Error{constructor(e){super(e.title),this.problem=e,this.name=`ApiProblem`}},Gp=class{constructor(e=fetch,t=`/api/v1`){this.fetchImplementation=e,this.baseUrl=t,this.auth={session:async()=>{let e=this.fetchImplementation;return(await e(`${this.baseUrl}/auth/session`)).ok},login:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/login`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({accessKey:e})})).ok},redeem:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/redeem`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({grant:e})})).ok}},this.board={list:(e,t)=>this.get(`/board${Kp({cursor:e})}`,dp(gp),t)},this.status={get:e=>this.get(`/status`,up(e=>e),e)},this.controlPlane={status:e=>this.get(`/control-plane/status`,up(fp),e),pause:(e,t)=>this.command(`/control-plane/commands/pause`,e,mp,t),resume:(e,t)=>this.command(`/control-plane/commands/resume`,e,mp,t)},this.work={list:(e={},t)=>this.get(`/work-items${Kp(e)}`,dp(hp),t),detail:(e,t)=>this.get(`/work-items/${encodeURIComponent(e)}`,up(Op),t),transcript:(e,t,n)=>this.get(`/work-items/${encodeURIComponent(e)}/transcripts/${encodeURIComponent(t)}`,up(Mp),n),message:(e,t,n,r)=>this.request(`/work-items/${encodeURIComponent(e)}/commands/message`,up(mp),{method:`POST`,body:JSON.stringify({idempotencyKey:n,body:t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),command:(e,t,n,r)=>this.command(`/work-items/${encodeURIComponent(e)}/commands/${t}`,n,mp,r)},this.resources={list:(e,t)=>this.get(`/resources${Kp({cursor:e})}`,dp(yp),t)},this.orchestration={list:(e,t)=>this.get(`/workflow-instances${Kp({cursor:e})}`,dp(bp),t)},this.workflowDiagrams={get:(e,t)=>this.get(`/workflow-diagrams${Kp({workItemKey:e})}`,up(xp),t)},this.execution={runs:(e,t)=>this.get(`/runs${Kp({cursor:e})}`,dp(Dp),t),run:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}`,up(Dp),t),transcript:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}/transcript`,up(jp),t),resolveAmbiguousRun:(e,t,n,r)=>this.request(`/runs/${encodeURIComponent(e)}/commands/resolve`,up(mp),{method:`POST`,body:JSON.stringify({idempotencyKey:n,...t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),runners:e=>this.get(`/runners`,dp(Ap),e),pauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/pause`,t,mp,n),unpauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/unpause`,t,mp,n)},this.events={list:(e,t,n)=>{let r=typeof t==`string`?t:void 0,i=typeof t==`string`?n:t;return this.get(`/events${Kp({cursor:e,workItemKey:r})}`,dp(kp),i)}},this.observability={metrics:(e=7,t)=>this.get(`/observability/metrics${Kp({days:String(e)})}`,up(Lp),t)},this.system={health:e=>this.get(`/system/health`,up(zp),e),configuration:e=>this.get(`/system/configuration`,up(Bp),e),commands:e=>this.get(`/system/commands`,up(Vp),e)}}async command(e,t,n,r){return this.request(e,up(n),{method:`POST`,body:JSON.stringify({idempotencyKey:t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}})}get(e,t,n){return this.request(e,t,n===void 0?{}:{signal:n})}async request(e,t,n){let r=this.fetchImplementation,i=await r(`${this.baseUrl}${e}`,{...n,headers:{accept:`application/json, application/problem+json`,...n.headers}}),a=await i.json();if(!i.ok)throw new Wp(Hp(a,i.status));return t(a)}};function Kp(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&t.set(n,r);let n=t.toString();return n===``?``:`?${n}`}var qp=(0,S.createContext)(null);function Jp(){let e=(0,S.useContext)(qp);if(e===null)throw Error(`WakeApiClient is not configured`);return e}var Yp={board:{list:(e=``)=>[`board`,`list`,e]},status:{get:[`status`]},controlPlane:{status:[`controlPlane`,`status`]},work:{all:[`work`],list:(e=``,t=``,n=``)=>[`work`,`list`,e,t,n],detail:e=>[`work`,`detail`,e],transcript:(e,t)=>[`work`,`transcript`,e,t]},resources:{list:[`resources`,`list`]},orchestration:{list:[`orchestration`,`list`]},workflowDiagrams:{get:(e=``)=>[`workflowDiagrams`,e]},execution:{runs:[`execution`,`runs`],runList:(e=``)=>[`execution`,`runs`,e],run:e=>[`execution`,`runDetail`,e],transcript:e=>[`execution`,`transcript`,e],runners:[`execution`,`runners`]},events:{all:[`events`],list:(e=``,t=``)=>[`events`,`list`,e,t]},observability:{metrics:e=>[`observability`,`metrics`,e]},system:{health:[`systemHealth`],configuration:[`systemConfiguration`],commands:[`systemCommands`]}},Xp={status:2e3,board:3e3,openWork:3e3,activeRuns:3e3,events:3e3,historicalRuns:5e3,health:5e3,runners:5e3,observability:!1,configuration:!1,commands:!1,workflowDiagrams:3e3},Zp={runs:e=>e?.some(e=>e.active)===!0?Xp.activeRuns:Xp.historicalRuns},Qp={shell:`_shell_1ypjj_1`,header:`_header_1ypjj_6`,brand:`_brand_1ypjj_14`,brandLogo:`_brandLogo_1ypjj_25`,brandVersion:`_brandVersion_1ypjj_29`,statusBand:`_statusBand_1ypjj_35`,nav:`_nav_1ypjj_46`,main:`_main_1ypjj_77`,pageHeader:`_pageHeader_1ypjj_83`,panel:`_panel_1ypjj_93`,badge:`_badge_1ypjj_100`,good:`_good_1ypjj_124`,warning:`_warning_1ypjj_127`,bad:`_bad_1ypjj_100`,cold:`_cold_1ypjj_133`,info:`_info_1ypjj_138`,button:`_button_1ypjj_141`,secondary:`_secondary_1ypjj_161`,tableWrap:`_tableWrap_1ypjj_164`,table:`_table_1ypjj_164`,state:`_state_1ypjj_193`,error:`_error_1ypjj_199`,stale:`_stale_1ypjj_203`,statusActions:`_statusActions_1ypjj_207`,pauseControl:`_pauseControl_1ypjj_212`,pagination:`_pagination_1ypjj_243`,live:`_live_1ypjj_249`,json:`_json_1ypjj_255`,chip:`_chip_1ypjj_264`,chipOutline:`_chipOutline_1ypjj_275`,tile:`_tile_1ypjj_295`,tileValue:`_tileValue_1ypjj_301`,tileLabel:`_tileLabel_1ypjj_305`},$p=({title:e,actions:t})=>(0,w.jsxs)(`div`,{className:Qp.pageHeader,children:[e!==void 0&&(0,w.jsx)(`h1`,{children:e}),t]}),em=({children:e,labelledBy:t})=>(0,w.jsx)(`section`,{className:Qp.panel,"aria-labelledby":t,children:e});function tm({variant:e=`primary`,className:t,...n}){return(0,w.jsx)(`button`,{...n,className:[Qp.button,e===`secondary`?Qp.secondary:``,t].filter(Boolean).join(` `)})}function nm({children:e,tone:t=`neutral`,title:n}){return(0,w.jsx)(`span`,{className:`${Qp.badge} ${t===`neutral`?``:Qp[t]}`,title:n,children:(0,w.jsx)(`span`,{children:e})})}var rm=({label:e=`Loading`})=>(0,w.jsxs)(`div`,{className:Qp.state,role:`status`,"aria-live":`polite`,children:[e,`…`]}),im=({children:e})=>(0,w.jsx)(`div`,{className:Qp.state,children:e}),am=({error:e,retry:t})=>(0,w.jsxs)(`div`,{className:`${Qp.state} ${Qp.error}`,role:`alert`,children:[(0,w.jsx)(`p`,{children:e.message}),t&&(0,w.jsx)(tm,{type:`button`,onClick:t,children:`Retry`})]}),hee=({pending:e,message:t})=>(0,w.jsx)(`div`,{className:`${Qp.live} ${Qp.stale}`,role:`status`,"aria-live":`polite`,children:e?`Command pending…`:t}),gee=({value:e})=>(0,w.jsxs)(`details`,{children:[(0,w.jsx)(`summary`,{children:`Structured details`}),(0,w.jsx)(`pre`,{className:Qp.json,children:JSON.stringify(e,null,2)})]});function _ee(){let e=Jp(),t=ti(),n=gi({queryKey:Yp.controlPlane.status,queryFn:({signal:t})=>e.controlPlane.status(t),refetchInterval:Xp.status}),r=gi({queryKey:Yp.execution.runners,queryFn:({signal:t})=>e.execution.runners(t),refetchInterval:Xp.runners}).data?.items.filter(e=>!e.available)??[],i=_i({mutationKey:[`control-plane`,`unpause-runner`],mutationFn:t=>e.execution.unpauseRunner(t,vee(`unpause`)),onSuccess:()=>t.invalidateQueries({queryKey:Yp.execution.runners})}),a=_i({mutationKey:[`control-plane`,`pause`],mutationFn:t=>e.controlPlane.pause(t),onSuccess:()=>t.invalidateQueries({queryKey:Yp.controlPlane.status})}),o=_i({mutationKey:[`control-plane`,`resume`],mutationFn:t=>e.controlPlane.resume(t),onSuccess:()=>t.invalidateQueries({queryKey:Yp.controlPlane.status})}),s=n.data?.data.maintenanceLease,c=n.data?.data.paused===!0||s!==void 0;return(0,w.jsxs)(`div`,{className:Qp.statusActions,children:[n.data?(0,w.jsx)(nm,{tone:c?`warning`:`good`,children:c?`Dispatch paused`:`Dispatch active`}):(0,w.jsx)(nm,{tone:`bad`,children:`API unavailable`}),s?(0,w.jsx)(nm,{tone:s.phase===`failed`?`bad`:`warning`,title:s.failure??`Maintenance lease held since ${s.startedAt}`,children:`Maintenance`}):null,n.data?.data.paused?(0,w.jsx)(tm,{type:`button`,disabled:o.isPending,onClick:()=>o.mutate(vee(`resume`)),children:`Resume ticks`}):(0,w.jsx)(tm,{type:`button`,disabled:a.isPending,onClick:()=>a.mutate(vee(`pause`)),children:`Pause ticks`}),r.map(e=>(0,w.jsxs)(`span`,{className:Qp.pauseControl,children:[e.runnerId,` paused`,(0,w.jsx)(`button`,{type:`button`,disabled:i.isPending,onClick:()=>i.mutate(e.runnerId),children:`Unpause`})]},e.runnerId))]})}function vee(e){return`web:${e}:${globalThis.crypto.randomUUID()}`}var yee=[[`Board`,`/board`],[`Runs`,`/runs`],[`Work`,`/work`],[`Events`,`/events`],[`Observability`,`/observability`],[`Health`,`/health`],[`Configuration`,`/configuration`]];function bee({children:e}){let t=xee(),n=Jp(),r=gi({queryKey:Yp.system.health,queryFn:({signal:e})=>n.system.health(e),refetchInterval:Xp.health});return(0,w.jsxs)(`div`,{className:Qp.shell,children:[!t&&(0,w.jsx)(`div`,{role:`status`,"aria-live":`polite`,children:`Connection lost; reconnecting`}),(0,w.jsxs)(`header`,{className:Qp.header,children:[(0,w.jsxs)(`span`,{className:Qp.brand,children:[(0,w.jsx)(`img`,{className:Qp.brandLogo,src:yi,alt:`Wake logo`}),`Wake`]}),r.data&&(0,w.jsx)(`span`,{className:Qp.brandVersion,children:r.data.data.version})]}),(0,w.jsx)(`div`,{className:Qp.statusBand,role:`status`,"aria-label":`Control plane`,children:(0,w.jsx)(_ee,{})}),(0,w.jsx)(`nav`,{className:Qp.nav,"aria-label":`Primary`,children:yee.map(([e,t])=>(0,w.jsx)(In,{to:t,children:e},t))}),(0,w.jsx)(`main`,{className:Qp.main,children:e})]})}function xee(){let[e,t]=(0,S.useState)(()=>navigator.onLine);return(0,S.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,n),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,n)}},[]),e}var om={boardControls:`_boardControls_65eiw_1`,swimlanes:`_swimlanes_65eiw_28`,swimlaneHeader:`_swimlaneHeader_65eiw_32`,swimlaneToggle:`_swimlaneToggle_65eiw_40`,board:`_board_65eiw_1`,column:`_column_65eiw_69`,columnHeader:`_columnHeader_65eiw_77`,cards:`_cards_65eiw_91`,card:`_card_65eiw_91`,cardLink:`_cardLink_65eiw_110`,cardRef:`_cardRef_65eiw_126`,cardTitle:`_cardTitle_65eiw_133`,cardMeta:`_cardMeta_65eiw_139`,metaIcon:`_metaIcon_65eiw_146`,cardStats:`_cardStats_65eiw_151`,childRun:`_childRun_65eiw_156`,childRunDot:`_childRunDot_65eiw_169`,"active-run-pulse":`_active-run-pulse_65eiw_1`,childRunTitle:`_childRunTitle_65eiw_188`,childRunMeta:`_childRunMeta_65eiw_192`,columnToggle:`_columnToggle_65eiw_195`,finishedColumnToggle:`_finishedColumnToggle_65eiw_210`,filters:`_filters_65eiw_217`,detail:`_detail_65eiw_247`,summary:`_summary_65eiw_254`,overviewLayout:`_overviewLayout_65eiw_271`,overviewSidebar:`_overviewSidebar_65eiw_277`,overviewMain:`_overviewMain_65eiw_283`,conversationPanel:`_conversationPanel_65eiw_288`,conversationHint:`_conversationHint_65eiw_296`,conversationTimeline:`_conversationTimeline_65eiw_301`,conversationEntry:`_conversationEntry_65eiw_308`,conversationEntryHead:`_conversationEntryHead_65eiw_314`,conversationRepresentations:`_conversationRepresentations_65eiw_315`,conversationBody:`_conversationBody_65eiw_329`,conversationComposer:`_conversationComposer_65eiw_337`,conversationComposerActions:`_conversationComposerActions_65eiw_365`,sidebarSectionTitle:`_sidebarSectionTitle_65eiw_370`,resourceList:`_resourceList_65eiw_373`,resourceCard:`_resourceCard_65eiw_381`,resourceCardTop:`_resourceCardTop_65eiw_396`,resourceCardIcon:`_resourceCardIcon_65eiw_401`,resourceCardTitle:`_resourceCardTitle_65eiw_405`,resourceCardExt:`_resourceCardExt_65eiw_414`,resourceCardMeta:`_resourceCardMeta_65eiw_422`,resourceId:`_resourceId_65eiw_430`,eventList:`_eventList_65eiw_436`,event:`_event_65eiw_436`,eventType:`_eventType_65eiw_459`,eventId:`_eventId_65eiw_467`,toolbar:`_toolbar_65eiw_476`,modalBackdrop:`_modalBackdrop_65eiw_482`,modal:`_modal_65eiw_482`,modalHeader:`_modalHeader_65eiw_505`,modalRef:`_modalRef_65eiw_512`,modalClose:`_modalClose_65eiw_517`,tiles:`_tiles_65eiw_533`,transcript:`_transcript_65eiw_598`,transcriptEntry:`_transcriptEntry_65eiw_603`,transcriptHead:`_transcriptHead_65eiw_610`,transcriptText:`_transcriptText_65eiw_620`,transcriptLayout:`_transcriptLayout_65eiw_629`,transcriptGroups:`_transcriptGroups_65eiw_635`,transcriptGroup:`_transcriptGroup_65eiw_635`,transcriptConversation:`_transcriptConversation_65eiw_664`,transcriptFilters:`_transcriptFilters_65eiw_667`,transcriptInput:`_transcriptInput_65eiw_687`,transcriptAgent:`_transcriptAgent_65eiw_688`,transcriptRunSeparator:`_transcriptRunSeparator_65eiw_703`,eventButton:`_eventButton_65eiw_720`,eventChevron:`_eventChevron_65eiw_760`,eventPayload:`_eventPayload_65eiw_764`,tabs:`_tabs_65eiw_773`,actionBar:`_actionBar_65eiw_802`,dangerButton:`_dangerButton_65eiw_808`};function sm({children:e,variant:t=`default`,tone:n=`neutral`,title:r}){return(0,w.jsx)(`span`,{className:`${Qp.chip} ${t===`outline`?Qp.chipOutline:``} ${n===`neutral`?``:Qp[n]}`,title:r,children:e})}function cm(e){return`$${e.toFixed(e<1?4:2)}`}function lm(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function um(e){if(!Number.isFinite(e)||e<0)return``;let t=Math.max(1,Math.floor(e/1e3));if(t<10)return`${t}s`;if(t<60)return`${Math.floor(t/10)*10}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h${n%60}m`:`${Math.floor(r/24)}d`}var See=new Set([`failed`,`cancelled`,`ambiguous`]),dm=new Set([`blocked`,`rejected`]),Cee=new Set([`needs-clarification`]);function fm(e){return e.toLowerCase().replaceAll(`_`,`-`)}function pm(e){let t=fm(e);return See.has(t)?`bad`:Cee.has(t)?`info`:dm.has(t)?`warning`:t===`done`?`good`:`neutral`}function mm(e){return fm(e)===`needs-clarification`?`needs clarification`:e}function hm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`,stroke:`currentColor`,strokeWidth:`1.4`}),(0,w.jsx)(`path`,{d:`M5.4 8.2 7.1 9.9 10.6 6.1`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function gm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`,stroke:`currentColor`,strokeWidth:`1.4`}),(0,w.jsx)(`path`,{d:`M6.1 6.3a1.9 1.9 0 1 1 2.75 1.7c-.6.32-.85.6-.85 1.2v.3`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,w.jsx)(`circle`,{cx:`8`,cy:`11.4`,r:`0.15`,fill:`currentColor`,stroke:`currentColor`})]})}function _m({outcome:e,title:t}){let n=fm(e)===`needs-clarification`?gm:hm;return(0,w.jsxs)(sm,{variant:`outline`,tone:pm(e),...t===void 0?{}:{title:t},children:[(0,w.jsx)(n,{}),mm(e)]})}function vm({usage:e}){let t=[e.inputTokens===void 0?void 0:`Input ${lm(e.inputTokens)}`,e.outputTokens===void 0?void 0:`Output ${lm(e.outputTokens)}`,e.cacheReadTokens===void 0?void 0:`Cache read ${lm(e.cacheReadTokens)}`,e.cacheWriteTokens===void 0?void 0:`Cache write ${lm(e.cacheWriteTokens)}`].filter(e=>e!==void 0).join(` · `);return(0,w.jsx)(`abbr`,{title:t===``?void 0:t,children:lm(e.totalTokens)})}function ym(){return(0,w.jsx)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:(0,w.jsx)(`path`,{d:`M4.5 2.5h7M4.5 13.5h7M5 2.5v2.4c0 .9.5 1.7 1.3 2.1l1.2.7-1.2.7c-.8.4-1.3 1.2-1.3 2.1v2.4M11 2.5v2.4c0 .9-.5 1.7-1.3 2.1l-1.2.7 1.2.7c.8.4 1.3 1.2 1.3 2.1v2.4`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function bm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`path`,{d:`M8 1.75v12.5M2.6 4.875l10.8 6.25M2.6 11.125l10.8-6.25`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`}),(0,w.jsx)(`path`,{d:`m5.65 3.1-1.3 1.775m7.3 6.25-1.3 1.775M5.65 12.9l-1.3-1.775m7.3-6.25-1.3-1.775`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`})]})}function xm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`circle`,{cx:`4`,cy:`3.5`,r:`1.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,w.jsx)(`circle`,{cx:`4`,cy:`12.5`,r:`1.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,w.jsx)(`circle`,{cx:`12`,cy:`8`,r:`1.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,w.jsx)(`path`,{d:`M4 5.1v5.8M5.4 4.2 10.6 6.9M5.4 11.8 10.6 9.1`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`})]})}function Sm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`path`,{d:`M3.5 2v12`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`}),(0,w.jsx)(`path`,{d:`M3.5 2.8h7l-1.8 2.6 1.8 2.6h-7`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinejoin:`round`})]})}function Cm(e){return e===Vf.Starting?`Starting`:`Running`}function wm({item:e,background:t}){return(0,w.jsx)(`li`,{className:om.card,"aria-label":e.objective,children:(0,w.jsxs)(Fn,{className:om.cardLink,to:`/work/${encodeURIComponent(e.workItemKey)}`,state:{background:t},children:[e.externalRef!==void 0&&(0,w.jsx)(`span`,{className:om.cardRef,children:e.externalRef}),(0,w.jsx)(`span`,{className:om.cardTitle,children:e.objective}),(0,w.jsxs)(`span`,{className:om.cardMeta,children:[e.frozen===!0&&(0,w.jsxs)(sm,{variant:`outline`,tone:`cold`,title:`Automatic progress is paused while this work item is frozen`,children:[(0,w.jsx)(bm,{}),`frozen`]}),e.lastRunOutcome!==void 0&&e.lastRunOutcome!==`done`&&(0,w.jsx)(_m,{outcome:e.lastRunOutcome,title:`Outcome of the most recent run`}),Tm(e.blockReason)&&(0,w.jsx)(sm,{variant:`outline`,tone:`warning`,title:`An operator must resolve an ambiguous run`,children:`ambiguous run needs resolution`}),e.awaitingApproval===!0&&(0,w.jsxs)(sm,{variant:`outline`,tone:`warning`,title:`Waiting on human approval to continue`,children:[(0,w.jsx)(ym,{}),`awaiting approval`]}),e.workflowName!==void 0&&(0,w.jsxs)(sm,{variant:`outline`,title:`Workflow driving this item`,children:[(0,w.jsx)(xm,{}),e.workflowName]}),e.stage!==void 0&&(0,w.jsxs)(sm,{variant:`outline`,title:`Current lifecycle stage`,children:[(0,w.jsx)(Sm,{}),e.stage]})]}),(0,w.jsxs)(`span`,{className:om.cardStats,children:[`${e.runCount} runs \u00b7 ${e.lastRunAgeMs===void 0?`no runs yet`:`last run ${um(e.lastRunAgeMs)} ago`} \u00b7 ${um(e.totalDurationMs)} total \u00b7 ${cm(e.totalCostUsd)} \u00b7 `,(0,w.jsx)(vm,{usage:e}),` usage tokens`]}),Object.entries(e.activeRuns??{}).map(([e,t])=>(0,w.jsxs)(`div`,{className:om.childRun,children:[(0,w.jsx)(`span`,{"aria-hidden":`true`,className:om.childRunDot,"data-active-run":`true`,"data-testid":`active-run-dot-${e}`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`div`,{className:om.childRunTitle,children:`${t.action} ${Cm(t.phase)}`}),(0,w.jsx)(`div`,{className:om.childRunMeta,children:[t.runnerName,um(t.elapsedMs)].filter(e=>e!==void 0).join(` · `)})]})]},e))]})})}function Tm(e){return e!==void 0&&/^run-ambiguous-after-\d+-attempts$/.test(e)}var Em=`wake:board:collapsed-columns`,Dm=`wake:board:group-by`,Om=`wake:board:collapsed-swimlanes`,wee=[`ready`,`active`,`needs-input`,`error`,`finished`],Tee=[`none`,`workflowName`,`stage`];function km(e,t){return JSON.stringify([e,t])}function Am(){try{let e=globalThis.localStorage?.getItem(Dm);return e!=null&&Tee.includes(e)?e:`none`}catch{return`none`}}function jm(e){try{globalThis.localStorage?.setItem(Dm,e)}catch{}}var Mm={workflowName:`No workflow`,stage:`No stage`};function T(e){let[t,n]=(0,S.useState)(()=>globalThis.matchMedia?.(e).matches??!1);return(0,S.useEffect)(()=>{let t=globalThis.matchMedia?.(e);if(t===void 0)return;let r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}function Eee(e,t){if(t===`none`)return[{key:`all`,label:void 0,items:e}];let n=new Map;for(let r of e){let e=t===`workflowName`?r.workflowName:r.stage,i=e===void 0||e===``?Mm[t]:e,a=n.get(i);a?a.push(r):n.set(i,[r])}return[...n.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({key:e,label:e,items:t}))}function Nm(){let e=Jp(),t=vt(),n=gi({queryKey:Yp.board.list(),queryFn:({signal:t})=>e.board.list(void 0,t),refetchInterval:Xp.board}),[r,i]=(0,S.useState)(()=>Pm(Em)),[a,o]=(0,S.useState)(()=>Pm(Om)),[s,c]=(0,S.useState)(Am),l=T(`(max-width: 42rem)`),u=e=>{let t=new Set(r);t.has(e)?t.delete(e):t.add(e),Fm(Em,t),i(t)},d=e=>{jm(e),c(e)},f=e=>{if(s===`none`)return;let t=km(s,e.key),n=new Set(a);n.has(t)?n.delete(t):n.add(t),Fm(Om,n),o(n)};if(n.isPending)return(0,w.jsx)(rm,{label:`Loading board`});if(n.error&&!n.data)return(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()});let p=n.data?.items??[],m=Eee(p,s);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`div`,{className:om.boardControls,children:(0,w.jsxs)(`label`,{children:[`Group by`,(0,w.jsxs)(`select`,{value:s,onChange:e=>d(e.target.value),children:[(0,w.jsx)(`option`,{value:`none`,children:`None`}),(0,w.jsx)(`option`,{value:`workflowName`,children:`Workflow`}),(0,w.jsx)(`option`,{value:`stage`,children:`Stage`})]})]})}),p.length===0?(0,w.jsx)(im,{children:`No work items`}):(0,w.jsx)(`div`,{className:om.swimlanes,children:m.map(e=>{let n=e.label===void 0?void 0:km(s,e.key),i=n!==void 0&&a.has(n),o=`${e.label} (${e.items.length})`;return(0,w.jsxs)(`section`,{children:[e.label!==void 0&&(0,w.jsx)(`h2`,{className:om.swimlaneHeader,children:(0,w.jsxs)(`button`,{type:`button`,className:om.swimlaneToggle,"aria-expanded":!i,onClick:()=>f(e),children:[(0,w.jsx)(`span`,{children:o}),(0,w.jsx)(`span`,{"aria-hidden":`true`,children:i?`▸`:`▾`})]})}),!i&&(0,w.jsx)(`div`,{className:om.board,children:wee.map(n=>{let i=e.items.filter(e=>e.condition===n),a=l||n===`finished`,o=a&&r.has(n),s=e.label===void 0?Im(n):`${Im(n)} · ${e.label}`;return(0,w.jsxs)(`section`,{className:om.column,children:[(0,w.jsxs)(`div`,{className:om.columnHeader,children:[(0,w.jsx)(`h2`,{children:`${Im(n)} (${i.length})`}),a&&(0,w.jsx)(`button`,{type:`button`,className:`${om.columnToggle} ${n===`finished`?om.finishedColumnToggle:``}`,"aria-expanded":!o,"aria-label":`${o?`Expand`:`Collapse`} ${s}`,onClick:()=>u(n),children:o?`+`:`−`})]}),!o&&(0,w.jsx)(`ul`,{className:om.cards,children:i.map(e=>(0,w.jsx)(wm,{item:e,background:t},e.workItemKey))})]},`${e.key}-${n}`)})})]},e.key)})})]})}function Pm(e){try{let t=globalThis.localStorage?.getItem(e);if(t==null)return new Set;let n=JSON.parse(t);return Array.isArray(n)?new Set(n.filter(e=>typeof e==`string`)):new Set}catch{return new Set}}function Fm(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify([...t]))}catch{}}var Im=e=>e.split(`-`).map(e=>e[0].toUpperCase()+e.slice(1)).join(` `),Lm=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`bolt`,r=448,i=512,a=[9889,`zap`],o=`f0e7`,s=`M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faBolt=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Dee=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`eye`,r=576,i=512,a=[128065],o=`f06e`,s=`M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faEye=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Oee=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`robot`,r=640,i=512,a=[129302],o=`f544`,s=`M352 0c0-17.7-14.3-32-32-32S288-17.7 288 0l0 64-96 0c-53 0-96 43-96 96l0 224c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-224c0-53-43-96-96-96l-96 0 0-64zM160 368c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zM224 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm144 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM64 224c0-17.7-14.3-32-32-32S0 206.3 0 224l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96zm544-32c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faRobot=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Rm=Lm(),zm=Dee(),kee=Oee();function Bm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aee(e){if(Array.isArray(e))return e}function jee(e){if(Array.isArray(e))return Bm(e)}function Mee(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Vm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Xm(r.key),r)}}function Nee(e,t,n){return t&&Vm(e.prototype,t),n&&Vm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hm(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Qm(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
74
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Kc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Yc(t,`input`,e.processors),output:Yc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function qc(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return qc(r.element,n);if(r.type===`set`)return qc(r.valueType,n);if(r.type===`lazy`)return qc(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return qc(r.innerType,n);if(r.type===`intersection`)return qc(r.left,n)||qc(r.right,n);if(r.type===`record`||r.type===`map`)return qc(r.keyType,n)||qc(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:qc(r.in,n)||qc(r.out,n);if(r.type===`object`){for(let e in r.shape)if(qc(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(qc(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(qc(e,n))return!0;return!!(r.rest&&qc(r.rest,n))}return!1}var Jc=(e,t={})=>n=>{let r=Uc({...n,processors:t});return Wc(e,r),Gc(r,e),Kc(r,e)},Yc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Uc({...i??{},target:a,io:t,processors:n});return Wc(e,o),Gc(o,e),Kc(o,e)},Xc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Zc=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Xc[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Qc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},$c=(e,t,n,r)=>{n.type=`boolean`},el=(e,t,n,r)=>{n.not={}},tl=(e,t,n,r)=>{let i=e._zod.def,a=Di(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},nl=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},rl=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},il=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},al=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Wc(a.element,t,{...r,path:[...r.path,`items`]})},ol=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Wc(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Wc(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},sl=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Wc(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},cl=(e,t,n,r)=>{let i=e._zod.def,a=Wc(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Wc(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},ll=(e,t,n,r)=>{let i=e._zod.def,a=Wc(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ul=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},dl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},fl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},pl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},ml=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Wc(o,t,r);let s=t.seen.get(e);s.ref=o},hl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},gl=(e,t,n,r)=>{let i=e._zod.def;Wc(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_l=Si(`ZodISODateTime`,(e,t)=>{zo.init(e,t),Wl.init(e,t)});function vl(e){return uc(_l,e)}var yl=Si(`ZodISODate`,(e,t)=>{Bo.init(e,t),Wl.init(e,t)});function bl(e){return dc(yl,e)}var xl=Si(`ZodISOTime`,(e,t)=>{Vo.init(e,t),Wl.init(e,t)});function Sl(e){return fc(xl,e)}var Cl=Si(`ZodISODuration`,(e,t)=>{Ho.init(e,t),Wl.init(e,t)});function wl(e){return pc(Cl,e)}var Tl=Si(`ZodError`,(e,t)=>{da.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>ma(e,t)},flatten:{value:t=>pa(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Oi,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Oi,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),El=ha(Tl),Dl=ga(Tl),Ol=_a(Tl),kl=ya(Tl),Al=xa(Tl),jl=Sa(Tl),Ml=Ca(Tl),Nl=wa(Tl),Pl=Ta(Tl),Fl=Ea(Tl),Il=Da(Tl),Ll=Oa(Tl),Rl=new WeakMap;function zl(e,t,n){let r=Object.getPrototypeOf(e),i=Rl.get(r);if(i||(i=new Set,Rl.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Bl=Si(`ZodType`,(e,t)=>(Eo.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Yc(e,`input`),output:Yc(e,`output`)}}),e.toJSONSchema=Jc(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>El(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Ol(e,t,n),e.parseAsync=async(t,n)=>Dl(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>kl(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Al(e,t,n),e.decode=(t,n)=>jl(e,t,n),e.encodeAsync=async(t,n)=>Ml(e,t,n),e.decodeAsync=async(t,n)=>Nl(e,t,n),e.safeEncode=(t,n)=>Pl(e,t,n),e.safeDecode=(t,n)=>Fl(e,t,n),e.safeEncodeAsync=async(t,n)=>Il(e,t,n),e.safeDecodeAsync=async(t,n)=>Ll(e,t,n),zl(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Ii(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Ki(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(td(e,t))},superRefine(e,t){return this.check(nd(e,t))},overwrite(e){return this.check(Nc(e))},optional(){return Lu(this)},exactOptional(){return zu(this)},nullable(){return Vu(this)},nullish(){return Lu(Vu(this))},nonoptional(e){return qu(this,e)},array(){return xu(this)},or(e){return Tu([this,e])},and(e){return ku(this,e)},transform(e){return Zu(this,Fu(e))},default(e){return Uu(this,e)},prefault(e){return Gu(this,e)},catch(e){return Yu(this,e)},pipe(e){return Zu(this,e)},readonly(){return $u(this)},describe(e){let t=this.clone();return Bs.add(t,{description:e}),t},meta(...e){if(e.length===0)return Bs.get(this);let t=this.clone();return Bs.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Bs.get(e)?.description},configurable:!0}),e)),Vl=Si(`_ZodString`,(e,t)=>{Do.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zc(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,zl(e,`_ZodString`,{regex(...e){return this.check(Dc(...e))},includes(...e){return this.check(Ac(...e))},startsWith(...e){return this.check(jc(...e))},endsWith(...e){return this.check(Mc(...e))},min(...e){return this.check(Tc(...e))},max(...e){return this.check(wc(...e))},length(...e){return this.check(Ec(...e))},nonempty(...e){return this.check(Tc(1,...e))},lowercase(e){return this.check(Oc(e))},uppercase(e){return this.check(kc(e))},trim(){return this.check(Fc())},normalize(...e){return this.check(Pc(...e))},toLowerCase(){return this.check(Ic())},toUpperCase(){return this.check(Lc())},slugify(){return this.check(Rc())}})}),Hl=Si(`ZodString`,(e,t)=>{Do.init(e,t),Vl.init(e,t),e.email=t=>e.check(Hs(Gl,t)),e.url=t=>e.check(Js(Jl,t)),e.jwt=t=>e.check(lc(lu,t)),e.emoji=t=>e.check(Ys(Yl,t)),e.guid=t=>e.check(Us(Kl,t)),e.uuid=t=>e.check(Ws(ql,t)),e.uuidv4=t=>e.check(Gs(ql,t)),e.uuidv6=t=>e.check(Ks(ql,t)),e.uuidv7=t=>e.check(qs(ql,t)),e.nanoid=t=>e.check(Xs(Xl,t)),e.guid=t=>e.check(Us(Kl,t)),e.cuid=t=>e.check(Zs(Zl,t)),e.cuid2=t=>e.check(Qs(Ql,t)),e.ulid=t=>e.check($s($l,t)),e.base64=t=>e.check(oc(ou,t)),e.base64url=t=>e.check(sc(su,t)),e.xid=t=>e.check(ec(eu,t)),e.ksuid=t=>e.check(tc(tu,t)),e.ipv4=t=>e.check(nc(nu,t)),e.ipv6=t=>e.check(rc(ru,t)),e.cidrv4=t=>e.check(ic(iu,t)),e.cidrv6=t=>e.check(ac(au,t)),e.e164=t=>e.check(cc(cu,t)),e.datetime=t=>e.check(vl(t)),e.date=t=>e.check(bl(t)),e.time=t=>e.check(Sl(t)),e.duration=t=>e.check(wl(t))});function Ul(e){return Vs(Hl,e)}var Wl=Si(`ZodStringFormat`,(e,t)=>{Oo.init(e,t),Vl.init(e,t)}),Gl=Si(`ZodEmail`,(e,t)=>{jo.init(e,t),Wl.init(e,t)}),Kl=Si(`ZodGUID`,(e,t)=>{ko.init(e,t),Wl.init(e,t)}),ql=Si(`ZodUUID`,(e,t)=>{Ao.init(e,t),Wl.init(e,t)}),Jl=Si(`ZodURL`,(e,t)=>{Mo.init(e,t),Wl.init(e,t)}),Yl=Si(`ZodEmoji`,(e,t)=>{No.init(e,t),Wl.init(e,t)}),Xl=Si(`ZodNanoID`,(e,t)=>{Po.init(e,t),Wl.init(e,t)}),Zl=Si(`ZodCUID`,(e,t)=>{Fo.init(e,t),Wl.init(e,t)}),Ql=Si(`ZodCUID2`,(e,t)=>{Io.init(e,t),Wl.init(e,t)}),$l=Si(`ZodULID`,(e,t)=>{Lo.init(e,t),Wl.init(e,t)}),eu=Si(`ZodXID`,(e,t)=>{oee.init(e,t),Wl.init(e,t)}),tu=Si(`ZodKSUID`,(e,t)=>{Ro.init(e,t),Wl.init(e,t)}),nu=Si(`ZodIPv4`,(e,t)=>{Uo.init(e,t),Wl.init(e,t)}),ru=Si(`ZodIPv6`,(e,t)=>{Wo.init(e,t),Wl.init(e,t)}),iu=Si(`ZodCIDRv4`,(e,t)=>{Go.init(e,t),Wl.init(e,t)}),au=Si(`ZodCIDRv6`,(e,t)=>{Ko.init(e,t),Wl.init(e,t)}),ou=Si(`ZodBase64`,(e,t)=>{Jo.init(e,t),Wl.init(e,t)}),su=Si(`ZodBase64URL`,(e,t)=>{Xo.init(e,t),Wl.init(e,t)}),cu=Si(`ZodE164`,(e,t)=>{Zo.init(e,t),Wl.init(e,t)}),lu=Si(`ZodJWT`,(e,t)=>{$o.init(e,t),Wl.init(e,t)}),uu=Si(`ZodNumber`,(e,t)=>{es.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),zl(e,`ZodNumber`,{gt(e,t){return this.check(xc(e,t))},gte(e,t){return this.check(Sc(e,t))},min(e,t){return this.check(Sc(e,t))},lt(e,t){return this.check(yc(e,t))},lte(e,t){return this.check(bc(e,t))},max(e,t){return this.check(bc(e,t))},int(e){return this.check(pu(e))},safe(e){return this.check(pu(e))},positive(e){return this.check(xc(0,e))},nonnegative(e){return this.check(Sc(0,e))},negative(e){return this.check(yc(0,e))},nonpositive(e){return this.check(bc(0,e))},multipleOf(e,t){return this.check(Cc(e,t))},step(e,t){return this.check(Cc(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function du(e){return mc(uu,e)}var fu=Si(`ZodNumberFormat`,(e,t)=>{ts.init(e,t),uu.init(e,t)});function pu(e){return hc(fu,e)}var mu=Si(`ZodBoolean`,(e,t)=>{ns.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r)});function hu(e){return gc(mu,e)}var gu=Si(`ZodUnknown`,(e,t)=>{rs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function _u(){return _c(gu)}var vu=Si(`ZodNever`,(e,t)=>{is.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r)});function yu(e){return vc(vu,e)}var bu=Si(`ZodArray`,(e,t)=>{os.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.element=t.element,zl(e,`ZodArray`,{min(e,t){return this.check(Tc(e,t))},nonempty(e){return this.check(Tc(1,e))},max(e,t){return this.check(wc(e,t))},length(e,t){return this.check(Ec(e,t))},unwrap(){return this.element}})});function xu(e,t){return zc(bu,e,t)}var Su=Si(`ZodObject`,(e,t)=>{ds.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),Pi(e,`shape`,()=>t.shape),zl(e,`ZodObject`,{keyof(){return ju(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:_u()})},loose(){return this.clone({...this._zod.def,catchall:_u()})},strict(){return this.clone({...this._zod.def,catchall:yu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Qi(this,e)},safeExtend(e){return $i(this,e)},merge(e){return ea(this,e)},pick(e){return Xi(this,e)},omit(e){return Zi(this,e)},partial(...e){return ta(Iu,this,e[0])},required(...e){return na(Ku,this,e[0])}})});function Cu(e,t){return new Su({type:`object`,shape:e??{},...qi(t)})}var wu=Si(`ZodUnion`,(e,t)=>{ps.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sl(e,t,n,r),e.options=t.options});function Tu(e,t){return new wu({type:`union`,options:e,...qi(t)})}var Eu=Si(`ZodDiscriminatedUnion`,(e,t)=>{wu.init(e,t),ms.init(e,t)});function Du(e,t,n){return new Eu({type:`union`,options:t,discriminator:e,...qi(n)})}var Ou=Si(`ZodIntersection`,(e,t)=>{hs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cl(e,t,n,r)});function ku(e,t){return new Ou({type:`intersection`,left:e,right:t})}var Au=Si(`ZodEnum`,(e,t)=>{vs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tl(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Au({...t,checks:[],...qi(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Au({...t,checks:[],...qi(r),entries:i})}});function ju(e,t){return new Au({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...qi(t)})}var Mu=Si(`ZodLiteral`,(e,t)=>{ys.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nl(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Nu(e,t){return new Mu({type:`literal`,values:Array.isArray(e)?e:[e],...qi(t)})}var Pu=Si(`ZodTransform`,(e,t)=>{bs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new wi(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(la(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(la(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Fu(e){return new Pu({type:`transform`,transform:e})}var Iu=Si(`ZodOptional`,(e,t)=>{Ss.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Lu(e){return new Iu({type:`optional`,innerType:e})}var Ru=Si(`ZodExactOptional`,(e,t)=>{Cs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zu(e){return new Ru({type:`optional`,innerType:e})}var Bu=Si(`ZodNullable`,(e,t)=>{ws.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Vu(e){return new Bu({type:`nullable`,innerType:e})}var Hu=Si(`ZodDefault`,(e,t)=>{Ts.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Uu(e,t){return new Hu({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ui(t)}})}var Wu=Si(`ZodPrefault`,(e,t)=>{Ds.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Gu(e,t){return new Wu({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():Ui(t)}})}var Ku=Si(`ZodNonOptional`,(e,t)=>{Os.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qu(e,t){return new Ku({type:`nonoptional`,innerType:e,...qi(t)})}var Ju=Si(`ZodCatch`,(e,t)=>{As.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Yu(e,t){return new Ju({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Xu=Si(`ZodPipe`,(e,t)=>{js.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ml(e,t,n,r),e.in=t.in,e.out=t.out});function Zu(e,t){return new Xu({type:`pipe`,in:e,out:t})}var Qu=Si(`ZodReadonly`,(e,t)=>{Ns.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $u(e){return new Qu({type:`readonly`,innerType:e})}var ed=Si(`ZodCustom`,(e,t)=>{Fs.init(e,t),Bl.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rl(e,t,n,r)});function td(e,t={}){return Bc(ed,e,t)}function nd(e,t){return Vc(e,t)}function rd(e){return Ul().transform((t,n)=>{try{return e(t)}catch(e){return n.addIssue({code:`custom`,input:t,message:e instanceof Error?e.message:`Invalid branded string`}),xi}})}var id=e=>e,ad=e=>{if(!/^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/.test(e))throw Error(`Invalid Activity name: ${e}`);return e},od=e=>{if(e.trim().length===0)throw Error(`ActivationId must not be empty`);if(!sd(e))throw Error(`ActivationId must contain well-formed Unicode`);return e};function sd(e){for(let t=0;t<e.length;t+=1){let n=e.charCodeAt(t);if(n>=55296&&n<=56319){if(t+1>=e.length)return!1;let n=e.charCodeAt(t+1);if(n<56320||n>57343)return!1;t+=1}else if(n>=56320&&n<=57343)return!1}return!0}var cd=id({Agent:`agent`,Script:`script`,Deterministic:`deterministic`}),ld=id({Primary:`primary`,Secondary:`secondary`}),ud=id({IntentWriteFailed:`intent-write-failed`,InvalidAgentResult:`invalid-agent-result`,AmbiguousRunnerResult:`ambiguous-runner-result`,RunnerFailed:`runner-failed`,RunnerQuotaExceeded:`runner-quota-exceeded`}),dd=id({Waiting:`waiting`,Done:`done`,Rejected:`rejected`,Blocked:`blocked`,Failed:`failed`}),see={Agent:ad(cd.Agent),PullRequestApprove:ad(`pr.approve`),PullRequestMerge:ad(`pr.merge`),IssueComplete:ad(`issue.complete`)};Cu({kind:Ul().min(1),externalKey:Cu({adapter:Ul().min(1),key:Ul().min(1)}).strict()}).strict();var fd=e=>Cu({status:Nu(e)}).catchall(_u()),cee=Cu({reason:Nu(ud.AmbiguousRunnerResult)}).strict(),lee=Cu({reason:ju([ud.InvalidAgentResult,ud.RunnerFailed,ud.RunnerQuotaExceeded]),message:Ul().optional()}).strict();Tu([Cu({kind:Nu(dd.Done),data:fd(`DONE`)}).strict(),Cu({kind:Nu(dd.Rejected),data:fd(`REJECTED`)}).strict(),Cu({kind:Nu(dd.Blocked),data:Tu([fd(`BLOCKED`),fd(`NEEDS_CLARIFICATION`),cee])}).strict(),Cu({kind:Nu(dd.Failed),data:Tu([fd(`FAILED`),lee])}).strict()]),dd.Done,dd.Rejected,dd.Blocked,dd.Failed,see.Agent,Cu({prompt:Ul().min(1).optional(),template:Ul().regex(/^[a-z0-9][a-z0-9-]*$/i).optional(),model:Ul().min(1).optional(),allowedTools:xu(Ul().min(1)).optional()}).refine(e=>e.prompt===void 0!=(e.template===void 0),{message:`Agent Activity requires exactly one of prompt or template`}).strict(),cd.Agent;var uee=e=>hd(e,`event id`),pd=e=>hd(e,`correlation id`),md=e=>hd(e,`causation id`);function hd(e,t){if(e.trim().length===0)throw Error(`${t} must not be empty`);return e}var gd={System:`system`,Operator:`operator`,Agent:`agent`,Integration:`integration`},_d={Internal:`internal`,Adapter:`adapter`},vd=vl({offset:!0});function yd(e){return Ul().transform((t,n)=>{try{return e(t)}catch(e){return n.addIssue({code:`custom`,input:t,message:e instanceof Error?e.message:`Invalid branded string`}),xi}})}var bd=Ul().refine(e=>e.trim().length>0,{message:`must not be empty`}),xd=Cu({kind:ju([gd.System,gd.Operator,gd.Agent,gd.Integration]),id:bd}).strict(),Sd=Cu({kind:ju([_d.Internal,_d.Adapter]),id:bd}).strict(),Cd=Cu({kind:bd,id:bd}).strict(),wd=Cu({eventId:bd.pipe(yd(uee)),eventType:bd,schemaVersion:Nu(1),occurredAt:vd,correlationId:bd.pipe(yd(pd)),causationId:bd.pipe(yd(md)),actor:xd,source:Sd,payload:_u()}).strict(),Td=Cu({event:wd,stream:Cd,recordedAt:vd,sequence:du().int().positive(),globalPosition:du().int().positive()}).strict(),Ed=e=>{if(!/^work-[0-9a-hjkmnp-tv-z]{26}$/.test(e))throw Error(`Invalid WorkItemId: ${e}. WorkItem identity is minted, never derived.`);return e},Dd={WorkItem:`work-item`},Od={ItemCreated:`work.item-created`,ObjectiveRevised:`work.objective-revised`,ItemLinked:`work.item-linked`,ItemClosed:`work.item-closed`,ItemCancelled:`work.item-cancelled`,AutoApprovalGranted:`work.auto-approval-granted`,AutoApprovalRevoked:`work.auto-approval-revoked`,ItemFrozen:`work.item-frozen`,ItemUnfrozen:`work.item-unfrozen`,ItemDeleted:`work.item-deleted`},kd=Cu({kind:Nu(Dd.WorkItem),id:rd(Ed)}).strict(),Ad=Cu({objective:Ul().refine(e=>e.trim().length>0,{message:`objective must not be empty`})}).strict(),jd=Cu({reason:Ul()}).strict(),Md=Cu({}).strict(),Nd=Ad.extend({tags:xu(Ul().trim().min(1)).readonly().optional()});Td.extend({event:Du(`eventType`,[wd.extend({eventType:Nu(Od.ItemCreated),payload:Nd}),wd.extend({eventType:Nu(Od.ObjectiveRevised),payload:Ad}),wd.extend({eventType:Nu(Od.ItemLinked),payload:Cu({to:rd(Ed),relation:ju([`relates-to`,`parent-of`,`child-of`])}).strict()}),wd.extend({eventType:Nu(Od.ItemClosed),payload:jd}),wd.extend({eventType:Nu(Od.ItemCancelled),payload:jd}),wd.extend({eventType:Nu(Od.AutoApprovalGranted),payload:Md}),wd.extend({eventType:Nu(Od.AutoApprovalRevoked),payload:Md}),wd.extend({eventType:Nu(Od.ItemFrozen),payload:Md}),wd.extend({eventType:Nu(Od.ItemUnfrozen),payload:Md}),wd.extend({eventType:Nu(Od.ItemDeleted),payload:Md})]),stream:kd}),o(((e,t)=>{t.exports={}}))(),Cu({}).strict();var Pd=e=>{if(!/^resource-[0-9a-hjkmnp-tv-z]{26}$/.test(e))throw Error(`Invalid ResourceId: ${e}. Resource identity is minted, never derived.`);return e},Fd=e=>{if(!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))throw Error(`Invalid Resource kind: ${e}`);return e},Id=e=>{if(!/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/.test(e))throw Error(`Invalid Resource capability: ${e}`);return e},Ld={Resource:`resource`};Fd(`repository`),Fd(`issue`),Fd(`pull-request`);var Rd={Commentable:Id(`commentable`),Reviewable:Id(`reviewable`),Approvable:Id(`approvable`),Mergeable:Id(`mergeable`),Revisioned:Id(`revisioned`),Editable:Id(`editable`),Completable:Id(`completable`),ChangedFiles:Id(`changed-files`)},zd=id({Primary:`primary`,Secondary:`secondary`}),Bd=id({ProviderObserved:`provider-observed`,AgentReported:`agent-reported`,OperatorDeclared:`operator-declared`}),Vd=id({Completed:`completed`,Cancelled:`cancelled`}),Hd={ResourceDiscovered:`resources.resource-discovered`,ResourceRevisionObserved:`resources.resource-revision-observed`,WorkCorrelationEstablished:`resources.work-correlation-established`,WorkCorrelationRetracted:`resources.work-correlation-retracted`,WorkCorrelationConflicted:`resources.work-correlation-conflicted`,WorkCorrelationRetryPending:`resources.work-correlation-retry-pending`,WorkCorrelationUnresolvable:`resources.work-correlation-unresolvable`,ExternalOutcomeObserved:`resources.external-outcome-observed`,ExternalOutcomeReopened:`resources.external-outcome-reopened`,ExternalOutcomeConsumed:`resources.external-outcome-consumed`,IssueCompletionObservationConsumed:`resources.issue-completion-observation-consumed`,IssueCompletionObservationSuperseded:`resources.issue-completion-observation-superseded`},Ud=Cu({kind:Nu(Ld.Resource),id:rd(Pd)}).strict(),Wd=Cu({revision:Ul()}).strict(),Gd=rd(Ed);Td.extend({event:Du(`eventType`,[wd.extend({eventType:Nu(Hd.ResourceDiscovered),payload:Cu({kind:rd(Fd),externalKey:Cu({adapter:Ul(),key:Ul()}).strict(),capabilities:xu(rd(Id)),revision:Ul().optional(),title:Ul().optional()}).strict()}),wd.extend({eventType:Nu(Hd.ExternalOutcomeObserved),payload:Cu({sourceObservationId:Ul().min(1),outcome:ju([Vd.Completed,Vd.Cancelled]),revision:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.ExternalOutcomeReopened),payload:Cu({revision:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.ExternalOutcomeConsumed),payload:Cu({sourceObservationId:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationRetryPending),payload:Cu({attemptCount:du().int().min(1),lastFailureReason:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationUnresolvable),payload:Cu({externalKey:Cu({adapter:Ul(),key:Ul()}).strict(),attemptCount:du().int().min(1),lastFailureReason:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.ResourceRevisionObserved),payload:Wd}),wd.extend({eventType:Nu(Hd.WorkCorrelationEstablished),payload:Cu({workItemId:Gd,role:ju([zd.Primary,zd.Secondary]),provenance:ju([Bd.ProviderObserved,Bd.AgentReported,Bd.OperatorDeclared])}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationRetracted),payload:Cu({workItemId:Gd}).strict()}),wd.extend({eventType:Nu(Hd.WorkCorrelationConflicted),payload:Cu({workItemId:Gd,existingWorkItemId:Gd}).strict()}),wd.extend({eventType:Nu(Hd.IssueCompletionObservationConsumed),payload:Cu({intentEventId:Ul().min(1)}).strict()}),wd.extend({eventType:Nu(Hd.IssueCompletionObservationSuperseded),payload:Cu({intentEventId:Ul().min(1)}).strict()})]),stream:Ud}),Cu({}).strict(),Ld.Resource,Dd.WorkItem;var Kd=id({Open:`open`,Closed:`closed`,Merged:`merged`}),qd=id({Unknown:`unknown`,Pending:`pending`,Passing:`passing`,Failing:`failing`}),Jd=id({Merge:`merge`,Squash:`squash`,Rebase:`rebase`}),Yd=id({MissingResource:`missing-resource`,AmbiguousResource:`ambiguous-resource`,CorrelationConflict:`correlation-conflict`,Closed:`closed`,StaleApproval:`stale-approval`,ChecksPending:`checks-pending`,ChecksFailing:`checks-failing`,UntrustedActor:`untrusted-actor`,TooManyFilesChanged:`too-many-files-changed`,BlockedPathChanged:`blocked-path-changed`,ChangedFilesUnavailable:`changed-files-unavailable`}),Xd=id({None:`none`,Read:`read`,Triage:`triage`,Write:`write`,Maintain:`maintain`,Admin:`admin`}),Zd=id({Human:`human`,Bot:`bot`});function Qd(e,t,n,r,i){return Cu({action:Nu(e),activationId:rd(od),decisionKind:Nu(t),outcome:n,fact:r,factStream:i}).strict()}function $d(e,t,n,r){return Cu({action:Nu(e),activationId:rd(od),decisionKind:Nu(t),outcome:n,fact:r}).strict()}function ef(e){return{fact:{eventId:e.eventId,eventType:e.eventType,schemaVersion:e.schemaVersion,occurredAt:e.occurredAt,correlationId:e.correlationId,causationId:e.causationId,actor:e.actor,source:e.source,payload:e.payload},factStream:e.stream}}var tf={Decision:`activity-decision`},nf=(e,t)=>{if(!e.endsWith(`:pr.${t}`)||e.length===`:pr.${t}`.length)throw Error(`Invalid ${t} ActivityDecisionId: ${e}`);return e},rf=(e,t)=>({kind:tf.Decision,id:nf(`${af(e)}:pr.${af(t)}`,t)});function af(e){if(e.trim().length===0)throw Error(`Activity decision stream segment must not be empty`);return encodeURIComponent(e)}function of(e,t,n=[]){e.stream.kind!==Ld.Resource||typeof e.payload!=`object`||e.payload===null||!(`resourceId`in e.payload)||typeof e.payload.resourceId!=`string`||e.payload.resourceId!==e.stream.id&&t.addIssue({code:`custom`,path:[...n,`payload`,`resourceId`],message:`Activity resource payload id must identify its stream`})}function sf(e,t){e.stream.id!==rf(od(e.event.payload.activationId),e.event.payload.action).id&&t.addIssue({code:`custom`,path:[`event`,`payload`,`activationId`],message:`Activity decision activation and action must identify its stream`}),cf(e.event,t,[`event`])}function cf(e,t,n=[]){e.payload.fact.payload.activationId!==e.payload.activationId&&t.addIssue({code:`custom`,path:[...n,`payload`,`fact`,`payload`,`activationId`],message:`Activity decision fact activation must match its claim`}),e.payload.decisionKind===`requested`&&e.payload.outcome.data.intentEventId!==e.payload.fact.eventId&&t.addIssue({code:`custom`,path:[...n,`payload`,`outcome`,`data`,`intentEventId`],message:`Requested decision intent event id must match its fact`}),e.payload.decisionKind===`denied`&&e.payload.outcome.data.reason!==e.payload.fact.payload.reason&&t.addIssue({code:`custom`,path:[...n,`payload`,`outcome`,`data`,`reason`],message:`Denied decision reason must match its fact`}),of({stream:e.payload.factStream,payload:e.payload.fact.payload},t,[...n,`payload`,`fact`])}var lf=Cu({kind:Nu(Ld.Resource),id:rd(Pd)}).strict(),dee=Cu({kind:Nu(Dd.WorkItem),id:rd(Ed)}).strict(),uf=e=>Cu({kind:Nu(tf.Decision),id:rd(t=>nf(t,e))}).strict(),fee=uf(`approve`),df=uf(Jd.Merge),ff=Tu([lf,dee]),pf=rd(Ed),mf=rd(Pd),hf=ju([Kd.Open,Kd.Closed,Kd.Merged]),gf=ju([qd.Unknown,qd.Pending,qd.Passing,qd.Failing]),_f=Cu({revision:Ul(),actorId:Ul()}).strict(),vf=ju([Yd.MissingResource,Yd.AmbiguousResource,Yd.CorrelationConflict,Yd.Closed,Yd.StaleApproval,Yd.ChecksPending,Yd.ChecksFailing,Yd.UntrustedActor,Yd.TooManyFilesChanged,Yd.BlockedPathChanged,Yd.ChangedFilesUnavailable]),yf=Cu({activationId:rd(od),idempotencyKey:Ul(),reason:vf,target:Tu([Nu(ld.Primary),Cu({resourceId:mf}).strict()]).optional(),candidates:xu(Cu({resourceId:mf,revision:Ul().nullable()}).strict()).optional(),resourceId:mf.nullable().optional(),revision:Ul().nullable().optional(),method:ju([Jd.Merge,Jd.Squash,Jd.Rebase]).optional(),body:Ul().nullable().optional()}).strict(),bf=Cu({idempotencyKey:Ul(),activationId:rd(od),workflowInstanceId:Ul().min(1),resourceId:mf,revision:Ul(),body:Ul().nullable()}).strict(),xf=Cu({idempotencyKey:Ul(),activationId:rd(od),workflowInstanceId:Ul().min(1),resourceId:mf,revision:Ul(),method:ju([Jd.Merge,Jd.Squash,Jd.Rebase]),requireChecks:hu(),autoMerge:hu().default(!1)}).strict(),Sf=Cu({kind:Nu(dd.Waiting),data:Cu({intentEventId:Ul(),signalKind:Nu(`delivery-result`)}).strict()}).strict(),Cf=Cu({kind:Nu(dd.Blocked),data:Cu({reason:vf}).strict()}).strict();function wf(e){return[Ef(e.IssueCompleteRequested,Cu({idempotencyKey:Ul(),activationId:rd(od),workflowInstanceId:Ul().min(1),resourceId:mf}).strict()),Ef(e.PrDiscovered,Cu({workItemId:pf,state:hf,headRevision:Ul(),baseRevision:Ul(),checks:gf,changedFiles:xu(Ul()).optional()}).strict()),Ef(e.PrRevisionChanged,Cu({headRevision:Ul(),baseRevision:Ul(),changedFiles:xu(Ul()).optional()}).strict()),Ef(e.PrStateChanged,Cu({state:hf}).strict()),Ef(e.PrChecksChanged,Cu({checks:gf}).strict()),Ef(e.PrReviewAccepted,_f),Ef(e.ReviewAcceptanceSignalRecorded,Cu({revision:Ul(),actorId:Ul(),actorKind:ju([Zd.Human,Zd.Bot]),acceptedEventId:Ul(),providerEventId:Ul(),trusted:hu()}).strict()),Ef(e.PrReviewChangesRequested,_f),Ef(e.PrReviewRejected,Cu({reason:vf}).strict()),Ef(e.PrMergeAuthorized,Cu({revision:Ul()}).strict()),Ef(e.PrApproveRequested,bf),Ef(e.PrMergeRequested,xf)]}function Tf(e){return[Df(e.PrMergeDenied),Df(e.PrApproveDenied)]}function Ef(e,t){return wd.extend({eventType:Nu(e),payload:t})}function Df(e){return wd.extend({eventType:Nu(e),payload:yf})}function Of(e){let t=wf(e),n=Tf(e),r=kf(e,t,n);return{eventSchema:Tu([Td.extend({event:Tu(t),stream:lf}).superRefine((e,t)=>of({stream:e.stream,payload:e.event.payload},t,[`event`])),Td.extend({event:Tu(n),stream:ff}).superRefine((e,t)=>of({stream:e.stream,payload:e.event.payload},t,[`event`])),r.approveEnvelope,r.mergeEnvelope]),draftSchema:Tu([...t,...n,r.approveDraft,r.mergeDraft])}}function kf(e,t,n){let{approveDraftPayload:r,mergeDraftPayload:i,approveEnvelopePayload:a,mergeEnvelopePayload:o}=Af(t,n),s=wd.extend({eventType:Nu(e.PrApproveDecisionClaimed),payload:r}).superRefine(cf),c=wd.extend({eventType:Nu(e.PrMergeDecisionClaimed),payload:i}).superRefine(cf);return{approveEnvelope:Td.extend({event:wd.extend({eventType:Nu(e.PrApproveDecisionClaimed),payload:a}),stream:fee}).superRefine(sf),mergeEnvelope:Td.extend({event:wd.extend({eventType:Nu(e.PrMergeDecisionClaimed),payload:o}),stream:df}).superRefine(sf),approveDraft:s,mergeDraft:c}}function Af(e,t){let n=Qd(`approve`,`requested`,Sf,e[10],lf),r=Qd(`approve`,`denied`,Cf,t[1],ff),i=Qd(Jd.Merge,`requested`,Sf,e[11],lf),a=Qd(Jd.Merge,`denied`,Cf,t[0],ff),o=Tu([n,r]),s=Tu([i,a]);return{approveDraftPayload:o,mergeDraftPayload:s,approveEnvelopePayload:Tu([o,$d(`approve`,`requested`,Sf,e[10].extend({stream:lf})).transform(e=>({...e,...ef(e.fact)})),$d(`approve`,`denied`,Cf,t[1].extend({stream:ff})).transform(e=>({...e,...ef(e.fact)}))]),mergeEnvelopePayload:Tu([s,$d(Jd.Merge,`requested`,Sf,e[11].extend({stream:lf})).transform(e=>({...e,...ef(e.fact)})),$d(Jd.Merge,`denied`,Cf,t[0].extend({stream:ff})).transform(e=>({...e,...ef(e.fact)}))])}}var{draftSchema:jf,eventSchema:Mf}=Of({IssueCompleteRequested:`issue.complete-requested`,PrDiscovered:`pr.discovered`,PrRevisionChanged:`pr.revision-changed`,PrStateChanged:`pr.state-changed`,PrChecksChanged:`pr.checks-changed`,PrReviewAccepted:`pr.review-accepted`,ReviewAcceptanceSignalRecorded:`review.acceptance-signal-recorded`,PrReviewChangesRequested:`pr.review-changes-requested`,PrReviewRejected:`pr.review-rejected`,PrMergeDenied:`pr.merge-denied`,PrApproveDenied:`pr.approve-denied`,PrMergeAuthorized:`pr.merge-authorized`,PrApproveRequested:`pr.approve-requested`,PrMergeRequested:`pr.merge-requested`,PrApproveDecisionClaimed:`pr.approve-decision-claimed`,PrMergeDecisionClaimed:`pr.merge-decision-claimed`});Cu({target:Nu(ld.Primary).default(ld.Primary)}).strict(),Tu([Cu({kind:Nu(dd.Done),data:Cu({deliveryEventId:Ul()}).strict()}).strict(),Cu({kind:Nu(dd.Waiting),data:Cu({intentEventId:Ul(),signalKind:Nu(`delivery-result`)}).strict()}).strict(),Cu({kind:Nu(dd.Blocked),data:Cu({reason:Nu(`missing-completable-primary-issue`)}).strict()}).strict()]),Cu({}).strict(),Xd.Write,Xd.Maintain,Xd.Admin,Rd.Mergeable,Rd.Reviewable,Rd.Approvable;var Nf=Tu([Nu(ld.Primary),Cu({resourceId:Ul().min(1).transform(Pd)}).strict()]).default(ld.Primary);Tu([Cu({kind:Nu(dd.Waiting),data:Cu({intentEventId:Ul(),signalKind:Nu(`delivery-result`)}).strict()}).strict(),Cu({kind:Nu(dd.Done),data:Cu({deliveryEventId:Ul()}).strict()}).strict(),Cu({kind:Nu(dd.Blocked),data:Cu({reason:ju([Yd.MissingResource,Yd.AmbiguousResource,Yd.CorrelationConflict,Yd.Closed,Yd.StaleApproval,Yd.ChecksPending,Yd.ChecksFailing,Yd.UntrustedActor,Yd.TooManyFilesChanged,Yd.BlockedPathChanged,Yd.ChangedFilesUnavailable])}).strict()}).strict(),Cu({kind:Nu(dd.Failed),data:Cu({reason:Nu(ud.IntentWriteFailed)}).strict()}).strict()]),Cu({target:Nf,body:Ul().optional()}).strict().transform(e=>e.body===void 0?{target:e.target}:{target:e.target,body:e.body}),Cu({target:Nf,method:ju([Jd.Merge,Jd.Squash,Jd.Rebase]),requireChecks:hu(),requireApproval:hu().default(!0),autoMerge:hu().default(!1),maxFilesChanged:du().int().positive().optional(),blockedPaths:xu(Ul().min(1)).default([])}).strict().superRefine((e,t)=>{!e.requireApproval&&!e.autoMerge&&t.addIssue({code:`custom`,path:[`requireApproval`],message:`requireApproval may be false only when autoMerge is true`})});var Pf=Object.keys({accepted:!0,completed:!0}),Ff={Accepted:Pf[0],Completed:Pf[1]},If={Active:Object.keys({active:!0})[0]},Lf={Adapter:Object.keys({adapter:!0})[0]},Rf=Object.keys({failed:!0,succeeded:!0}),zf={Failed:Rf[0],Succeeded:Rf[1]},Bf=Object.keys({starting:!0,started:!0}),Vf={Starting:Bf[0],Started:Bf[1]},Hf=dd,Uf=Object.keys({ready:!0,active:!0,"needs-input":!0,error:!0,finished:!0});Uf[0],Uf[1],Uf[2],Uf[3],Uf[4],Object.keys({stage:!0})[0];var Wf=Object.keys({input:!0,agent:!0}),Gf={Input:Wf[0],Agent:Wf[1]},Kf=Object.keys({session:!0,run:!0}),qf={Session:Kf[0],Run:Kf[1]},Jf=Object.keys({activity:!0,watch:!0,"watch-gate":!0,reactor:!0}),Yf={Activity:Jf[0],Watch:Jf[1],WatchGate:Jf[2],Reactor:Jf[3]};function Xf(e,t){let n=Zf(e,t);return{asOf:$f(n.asOf,sp(t,`asOf`)),...ip(n,`position`,t)}}function Zf(e,t){return pee(e)||cp(t),e}function Qf(e,t,n){return Array.isArray(e)||cp(t),e.map((e,r)=>n(e,`${t}[${r}]`))}function $f(e,t=``){return typeof e!=`string`&&cp(t),e}function ep(e,t){return e===null?null:$f(e,t)}function tp(e,t){return typeof e!=`boolean`&&cp(t),e}function np(e,t){return(typeof e!=`number`||!Number.isFinite(e))&&cp(t),e}function rp(e,t,n){return e[t]===void 0?{}:{[t]:$f(e[t],sp(n,t))}}function ip(e,t,n){return e[t]===void 0?{}:{[t]:np(e[t],sp(n,t))}}function ap(e,t,n){return e[t]===void 0?{}:{[t]:tp(e[t],sp(n,t))}}function op(e,t){if(e===null||typeof e==`string`||typeof e==`boolean`||typeof e==`number`&&Number.isFinite(e))return e;if(Array.isArray(e))return e.map((e,n)=>op(e,`${t}[${n}]`));let n=Zf(e,t);return Object.fromEntries(Object.entries(n).map(([e,n])=>[e,op(n,sp(t,e))]))}function sp(e,t){return e===``?t:`${e}.${t}`}function cp(e){throw Error(`Invalid Wake API response at ${e===``?`root`:e}`)}function pee(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var lp=Object.keys({stage:!0})[0];function up(e){return(t,n=``)=>{let r=Zf(t,n);return{data:e(r.data,sp(n,`data`)),meta:Xf(r.meta,sp(n,`meta`))}}}function dp(e){return(t,n=``)=>{let r=Zf(t,n),i=Zf(r.page,sp(n,`page`));return{items:Qf(r.items,sp(n,`items`),e),page:{nextCursor:ep(i.nextCursor,sp(n,`page.nextCursor`)),hasMore:tp(i.hasMore,sp(n,`page.hasMore`)),...ip(i,`total`,sp(n,`page`))},meta:Xf(r.meta,sp(n,`meta`))}}}var fp=(e,t=``)=>{let n=Zf(e,t);return{paused:tp(n.paused,sp(t,`paused`)),...rp(n,`pausedUntil`,t),...rp(n,`reason`,t),updatedAt:$f(n.updatedAt,sp(t,`updatedAt`)),...n.maintenanceLease===void 0?{}:{maintenanceLease:pp(n.maintenanceLease,sp(t,`maintenanceLease`))}}};function pp(e,t){let n=Zf(e,t);return{attemptId:$f(n.attemptId,sp(t,`attemptId`)),phase:$f(n.phase,sp(t,`phase`)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),...rp(n,`failure`,t)}}var mp=(e,t=``)=>{let n=Zf(e,t),r=$f(n.status,sp(t,`status`));return r!==Ff.Accepted&&r!==Ff.Completed&&cp(sp(t,`status`)),{commandId:$f(n.commandId,sp(t,`commandId`)),idempotencyKey:$f(n.idempotencyKey,sp(t,`idempotencyKey`)),acceptedAt:$f(n.acceptedAt,sp(t,`acceptedAt`)),status:r}},hp=(e,t=``)=>{let n=Zf(e,t);return{workItemKey:$f(n.workItemKey,sp(t,`workItemKey`)),workItemId:$f(n.workItemId,sp(t,`workItemId`)),objective:$f(n.objective,sp(t,`objective`)),state:$f(n.state,sp(t,`state`)),...ap(n,`frozen`,t),...ap(n,`deleted`,t),...rp(n,`externalRef`,t),...rp(n,`lastRunOutcome`,t),relatedWorkItems:Qf(n.relatedWorkItems,sp(t,`relatedWorkItems`),(e,t=``)=>{let n=Zf(e,t);return{workItemKey:$f(n.workItemKey,sp(t??``,`workItemKey`)),relation:$f(n.relation,sp(t??``,`relation`))}})}},gp=(e,t=``)=>{let n=Zf(e,t);return{workItemKey:$f(n.workItemKey,sp(t,`workItemKey`)),workItemId:$f(n.workItemId,sp(t,`workItemId`)),objective:$f(n.objective,sp(t,`objective`)),condition:$f(n.condition,sp(t,`condition`)),...ap(n,`frozen`,t),...ap(n,`awaitingApproval`,t),...rp(n,`workflowName`,t),...rp(n,lp,t),...rp(n,`blockReason`,t),dwellSince:$f(n.dwellSince,sp(t,`dwellSince`)),runCount:np(n.runCount,sp(t,`runCount`)),...rp(n,`lastRunAt`,t),...rp(n,`lastRunOutcome`,t),...ip(n,`lastRunAgeMs`,t),totalTokens:np(n.totalTokens,sp(t,`totalTokens`)),...ip(n,`inputTokens`,t),...ip(n,`outputTokens`,t),...ip(n,`cacheReadTokens`,t),...ip(n,`cacheWriteTokens`,t),totalCostUsd:np(n.totalCostUsd,sp(t,`totalCostUsd`)),totalDurationMs:np(n.totalDurationMs,sp(t,`totalDurationMs`)),activeRuns:_p(n.activeRuns,sp(t,`activeRuns`)),...rp(n,`externalRef`,t)}};function _p(e,t){return e===void 0?{}:Object.fromEntries(Object.entries(Zf(e,t)).map(([e,n])=>[e,vp(n,sp(t,e))]))}function vp(e,t){let n=Zf(e,t),r=$f(n.phase,sp(t,`phase`));return Object.values(Vf).includes(r)||cp(sp(t,`phase`)),{action:$f(n.action,sp(t,`action`)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),elapsedMs:np(n.elapsedMs,sp(t,`elapsedMs`)),phase:r,...rp(n,`runnerName`,t)}}var yp=(e,t=``)=>{let n=Zf(e,t);return{resourceId:$f(n.resourceId,sp(t,`resourceId`)),adapter:$f(n[Lf.Adapter],sp(t,Lf.Adapter)),kind:$f(n.kind,sp(t,`kind`)),locatorLabel:$f(n.locatorLabel,sp(t,`locatorLabel`)),capabilities:Qf(n.capabilities,sp(t,`capabilities`),$f),...rp(n,`title`,t),...rp(n,`externalUrl`,t),...rp(n,`revision`,t)}},bp=(e,t=``)=>{let n=Zf(e,t),r=n.waitingFor;return{workflowInstanceId:$f(n.workflowInstanceId,sp(t,`workflowInstanceId`)),workItemKey:$f(n.workItemKey,sp(t,`workItemKey`)),workflowName:$f(n.workflowName,sp(t,`workflowName`)),orchestrationGroupId:$f(n.orchestrationGroupId,sp(t,`orchestrationGroupId`)),...rp(n,`parentWorkflowInstanceId`,t),status:$f(n.status,sp(t,`status`)),currentStage:$f(n.currentStage,sp(t,`currentStage`)),...rp(n,`blockReason`,t),...ap(n,`retryEligible`,t),...ap(n,`extendEligible`,t),...r===void 0?{}:{waitingFor:{signalKind:$f(Zf(r,sp(t,`waitingFor`)).signalKind,sp(t,`waitingFor.signalKind`))}}}},xp=(e,t=``)=>({diagrams:Qf(Zf(e,t).diagrams,sp(t,`diagrams`),Sp)});function Sp(e,t=``){let n=Zf(e,t);return{id:$f(n.id,sp(t,`id`)),label:$f(n.label,sp(t,`label`)),direction:`left-to-right`,stages:Qf(n.stages,sp(t,`stages`),(e,t=``)=>{let n=Zf(e,t);return{id:$f(n.id,sp(t,`id`)),label:$f(n.label,sp(t,`label`)),children:Qf(n.children,sp(t,`children`),(e,t=``)=>{let n=Zf(e,t);return{id:$f(n.id,sp(t,`id`)),label:$f(n.label,sp(t,`label`)),kind:Cp(n.kind,sp(t,`kind`)),...wp(n,t)}}),...wp(n,t)}}),transitions:Qf(n.transitions,sp(t,`transitions`),(e,t=``)=>{let n=Zf(e,t);return{from:$f(n.from,sp(t,`from`)),to:$f(n.to,sp(t,`to`)),label:$f(n.label,sp(t,`label`)),...rp(n,`fromChildId`,t)}})}}function Cp(e,t){let n=$f(e,t);return Object.values(Yf).includes(n)||cp(t),n}function wp(e,t){let n=e.activeRuns;return{...rp(e,`status`,t),...rp(e,`lastOutcome`,t),...ip(e,`runCount`,t),...ip(e,`totalDurationMs`,t),...ip(e,`totalTokens`,t),...ip(e,`inputTokens`,t),...ip(e,`outputTokens`,t),...ip(e,`cacheReadTokens`,t),...ip(e,`cacheWriteTokens`,t),...ip(e,`totalCostUsd`,t),...n===void 0?{}:{activeRuns:Qf(n,sp(t,`activeRuns`),(e,t=``)=>{let n=Zf(e,t);return{runId:$f(n.runId,sp(t,`runId`)),activity:$f(n.activity,sp(t,`activity`)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),...rp(n,`runnerName`,t)}})}}}var Tp=[`DONE`,`FAILED`,`AMBIGUOUS`];function Ep(e,t){let n=sp(t,`resolution`),r=Zf(e,n),i=$f(r.sentinel,sp(n,`sentinel`));return Tp.includes(i)||cp(sp(n,`sentinel`)),{sentinel:i,resolvedAt:$f(r.resolvedAt,sp(n,`resolvedAt`))}}var Dp=(e,t=``)=>{let n=Zf(e,t),r=n.failure,i=n.resolution;return{runId:$f(n.runId,sp(t,`runId`)),activationId:$f(n.activationId,sp(t,`activationId`)),activity:$f(n.activity,sp(t,`activity`)),workflowInstanceId:$f(n.workflowInstanceId,sp(t,`workflowInstanceId`)),orchestrationGroupId:$f(n.orchestrationGroupId,sp(t,`orchestrationGroupId`)),attempt:np(n.attempt,sp(t,`attempt`)),status:$f(n.status,sp(t,`status`)),active:tp(n.active,sp(t,If.Active)),startedAt:$f(n.startedAt,sp(t,`startedAt`)),...rp(n,`executionStartedAt`,t),...rp(n,`finishedAt`,t),sentinel:$f(n.sentinel,sp(t,`sentinel`)),...rp(n,`runnerName`,t),...rp(n,`runnerModel`,t),...rp(n,`workflowName`,t),...rp(n,lp,t),totalTokens:np(n.totalTokens,sp(t,`totalTokens`)),...ip(n,`inputTokens`,t),...ip(n,`outputTokens`,t),...ip(n,`cacheReadTokens`,t),...ip(n,`cacheWriteTokens`,t),totalCostUsd:np(n.totalCostUsd,sp(t,`totalCostUsd`)),...n.outcome===void 0?{}:{outcome:op(n.outcome,sp(t,`outcome`))},...r===void 0?{}:{failure:{kind:$f(Zf(r,sp(t,`failure`)).kind,sp(t,`failure.kind`))}},...i===void 0?{}:{resolution:Ep(i,t)}}},Op=(e,t=``)=>{let n=Object.keys({conversation:!0})[0],r=Object.keys({stage:!0})[0],i=Zf(e,t),a=Zf(i.orchestration,sp(t,`orchestration`)),o=Zf(i.execution,sp(t,`execution`)),s=Zf(i.activities,sp(t,`activities`)),c=i.conversation===void 0?void 0:Zf(i.conversation,sp(t,n));return{work:hp(i.work,sp(t,`work`)),resources:Qf(i.resources,sp(t,`resources`),yp),orchestration:{primary:a.primary===null?null:bp(a.primary,sp(t,`orchestration.primary`)),children:Qf(a.children,sp(t,`orchestration.children`),bp),diagram:Pp(a.diagram,sp(t,`orchestration.diagram`))},execution:{runs:Qf(o.runs,sp(t,`execution.runs`),Dp),transcriptGroups:Qf(o.transcriptGroups,sp(t,`execution.transcriptGroups`),(e,t=``)=>{let n=Zf(e,t);return{groupId:$f(n.groupId,sp(t,`groupId`)),kind:Ip(n.kind,sp(t,`kind`)),...rp(n,`cli`,t),latestAt:$f(n.latestAt,sp(t,`latestAt`)),runIds:Qf(n.runIds,sp(t,`runIds`),$f)}})},activities:s.pullRequest===void 0?{}:{pullRequest:mee(s.pullRequest,sp(t,`activities.pullRequest`))},conversation:{canCreateEntries:c?.canCreateEntries===!0,entries:c===void 0?[]:Qf(c.entries,sp(t,`${n}.entries`),(e,t=``)=>{let n=Zf(e,t);return{entryId:$f(n.entryId,sp(t,`entryId`)),body:$f(n.body,sp(t,`body`)),occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),origin:$f(n.origin,sp(t,`origin`)),actorId:$f(n.actorId,sp(t,`actorId`)),...rp(n,`runId`,t),...rp(n,r,t),...rp(n,`sourceAdapter`,t),...rp(n,`sourceResourceId`,t),...rp(n,`sourceThreadId`,t),deleted:tp(n.deleted,sp(t,`deleted`)),representations:Qf(n.representations,sp(t,`representations`),(e,t=``)=>{let n=Zf(e,t);return{resourceId:$f(n.resourceId,sp(t,`resourceId`)),externalId:$f(n.externalId,sp(t,`externalId`))}})}})}}},kp=(e,t=``)=>{let n=Zf(e,t),r=n.stream;return{id:$f(n.id,sp(t,`id`)),type:$f(n.type,sp(t,`type`)),occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),position:np(n.position,sp(t,`position`)),...r===void 0?{}:{stream:{kind:$f(Zf(r,sp(t,`stream`)).kind,sp(t,`stream.kind`)),id:$f(Zf(r,sp(t,`stream`)).id,sp(t,`stream.id`))}},...rp(n,`causationId`,t),...rp(n,`correlationId`,t),payload:n.payload}},Ap=(e,t=``)=>{let n=Zf(e,t);return{runnerId:$f(n.runnerId,sp(t,`runnerId`)),status:$f(n.status,sp(t,`status`)),available:tp(n.available,sp(t,`available`)),...rp(n,`detail`,t),updatedAt:$f(n.updatedAt,sp(t,`updatedAt`))}},jp=(e,t=``)=>{let n=Zf(e,t);return{runId:$f(n.runId,sp(t,`runId`)),...rp(n,`groupId`,t),available:tp(n.available,sp(t,`available`)),entries:Qf(n.entries,sp(t,`entries`),(e,t=``)=>{let n=Zf(e,t);return{occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),channel:Fp(n.channel,sp(t,`channel`)),text:$f(n.text,sp(t,`text`)),runId:$f(n.runId,sp(t,`runId`)),groupId:$f(n.groupId,sp(t,`groupId`)),...ip(n,`durationMs`,t)}})}},Mp=(e,t=``)=>{let n=Zf(e,t);return{groupId:$f(n.groupId,sp(t,`groupId`)),available:tp(n.available,sp(t,`available`)),entries:Qf(n.entries,sp(t,`entries`),Np)}};function Np(e,t=``){let n=Zf(e,t);return{occurredAt:$f(n.occurredAt,sp(t,`occurredAt`)),channel:Fp(n.channel,sp(t,`channel`)),text:$f(n.text,sp(t,`text`)),runId:$f(n.runId,sp(t,`runId`)),groupId:$f(n.groupId,sp(t,`groupId`)),...ip(n,`durationMs`,t)}}function Pp(e,t){return{href:$f(Zf(e,t).href,sp(t,`href`))}}function Fp(e,t){let n=$f(e,t);return n!==Gf.Input&&n!==Gf.Agent&&cp(t),n}function Ip(e,t){let n=$f(e,t);return n!==qf.Session&&n!==qf.Run&&cp(t),n}function mee(e,t=``){let n=Zf(e,t);return{resourceId:$f(n.resourceId,sp(t,`resourceId`)),state:$f(n.state,sp(t,`state`)),...ap(n,`frozen`,t),...ap(n,`deleted`,t),headRevision:$f(n.headRevision,sp(t,`headRevision`)),baseRevision:$f(n.baseRevision,sp(t,`baseRevision`)),checks:$f(n.checks,sp(t,`checks`))}}var Lp=(e,t=``)=>{let n=Zf(e,t),r=Zf(n.values,sp(t,`values`));return{collectedAt:$f(n.collectedAt,sp(t,`collectedAt`)),window:Rp(n.window,sp(t,`window`)),values:Object.fromEntries(Object.entries(r).map(([e,n])=>[e,np(n,sp(t,`values.${e}`))]))}};function Rp(e,t){let n=Zf(e,t);return{days:np(n.days,sp(t,`days`)),from:$f(n.from,sp(t,`from`)),to:$f(n.to,sp(t,`to`))}}var zp=(e,t=``)=>{let n=Zf(e,t);return{status:Up(n.status,sp(t,`status`)),version:$f(n.version,sp(t,`version`)),checkedAt:$f(n.checkedAt,sp(t,`checkedAt`)),...n.checks===void 0?{}:{checks:Qf(n.checks,sp(t,`checks`),(e,t=``)=>{let n=Zf(e,t);return{name:$f(n.name,sp(t,`name`)),status:Up(n.status,sp(t,`status`)),...rp(n,`detail`,t)}})},...n.adapters===void 0?{}:{adapters:Qf(n.adapters,sp(t,`adapters`),(e,t=``)=>{let n=Zf(e,t);return{adapter:$f(n.adapter,sp(t,`adapterId`)),provider:$f(n.provider,sp(t,`provider`)),scope:$f(n.scope,sp(t,`scope`)),channel:$f(n.channel,sp(t,`channel`)),status:Up(n.status,sp(t,`status`)),successCount:np(n.successCount,sp(t,`successCount`)),failureCount:np(n.failureCount,sp(t,`failureCount`)),...rp(n,`detail`,t)}})}}},Bp=(e,t=``)=>{let n=Zf(e,t),r=sp(t,`configuration`);return{configuration:Zf(op(n.configuration,r),r)}},Vp=(e,t=``)=>({adapters:Qf(Zf(e,t).adapters,sp(t,`adapters`),(e,t=``)=>{let n=Zf(e,t);return{adapter:$f(n.adapter,sp(t,`adapterId`)),provider:$f(n.provider,sp(t,`provider`)),commands:Qf(n.commands,sp(t,`commands`),(e,t=``)=>({syntax:$f(Zf(e,t).syntax,sp(t,`syntax`))}))}})});function Hp(e,t){try{let t=Zf(e,`problem`);return{type:$f(t.type,`problem.type`),title:$f(t.title,`problem.title`),status:np(t.status,`problem.status`),...rp(t,`detail`,`problem`),...rp(t,`instance`,`problem`),...rp(t,`code`,`problem`),...t.retryable===void 0?{}:{retryable:tp(t.retryable,`problem.retryable`)},...t.current===void 0?{}:{current:op(t.current,`problem.current`)},...t.violations===void 0?{}:{violations:Qf(t.violations,`problem.violations`,(e,t=``)=>{let n=Zf(e,t);return{path:$f(n.path,sp(t,`path`)),message:$f(n.message,sp(t,`message`))}})}}}catch{return{type:`about:blank`,title:`Request failed`,status:t}}}function Up(e,t){let n=$f(e,t);return n!==`ok`&&n!==`degraded`&&cp(t),n}var Wp=class extends Error{constructor(e){super(e.title),this.problem=e,this.name=`ApiProblem`}},Gp=class{constructor(e=fetch,t=`/api/v1`){this.fetchImplementation=e,this.baseUrl=t,this.auth={session:async()=>{let e=this.fetchImplementation;return(await e(`${this.baseUrl}/auth/session`)).ok},login:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/login`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({accessKey:e})})).ok},redeem:async e=>{let t=this.fetchImplementation;return(await t(`${this.baseUrl}/auth/redeem`,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify({grant:e})})).ok}},this.board={list:(e,t)=>this.get(`/board${Kp({cursor:e})}`,dp(gp),t)},this.status={get:e=>this.get(`/status`,up(e=>e),e)},this.controlPlane={status:e=>this.get(`/control-plane/status`,up(fp),e),pause:(e,t)=>this.command(`/control-plane/commands/pause`,e,mp,t),resume:(e,t)=>this.command(`/control-plane/commands/resume`,e,mp,t),clearMaintenance:(e,t,n)=>this.request(`/control-plane/commands/clear-maintenance`,up(mp),{method:`POST`,body:JSON.stringify({attemptId:e,idempotencyKey:t}),headers:{"content-type":`application/json`},...n===void 0?{}:{signal:n}})},this.work={list:(e={},t)=>this.get(`/work-items${Kp(e)}`,dp(hp),t),detail:(e,t)=>this.get(`/work-items/${encodeURIComponent(e)}`,up(Op),t),transcript:(e,t,n)=>this.get(`/work-items/${encodeURIComponent(e)}/transcripts/${encodeURIComponent(t)}`,up(Mp),n),message:(e,t,n,r)=>this.request(`/work-items/${encodeURIComponent(e)}/commands/message`,up(mp),{method:`POST`,body:JSON.stringify({idempotencyKey:n,body:t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),command:(e,t,n,r)=>this.command(`/work-items/${encodeURIComponent(e)}/commands/${t}`,n,mp,r)},this.resources={list:(e,t)=>this.get(`/resources${Kp({cursor:e})}`,dp(yp),t)},this.orchestration={list:(e,t)=>this.get(`/workflow-instances${Kp({cursor:e})}`,dp(bp),t)},this.workflowDiagrams={get:(e,t)=>this.get(`/workflow-diagrams${Kp({workItemKey:e})}`,up(xp),t)},this.execution={runs:(e,t)=>this.get(`/runs${Kp({cursor:e})}`,dp(Dp),t),run:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}`,up(Dp),t),transcript:(e,t)=>this.get(`/runs/${encodeURIComponent(e)}/transcript`,up(jp),t),resolveAmbiguousRun:(e,t,n,r)=>this.request(`/runs/${encodeURIComponent(e)}/commands/resolve`,up(mp),{method:`POST`,body:JSON.stringify({idempotencyKey:n,...t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}}),runners:e=>this.get(`/runners`,dp(Ap),e),pauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/pause`,t,mp,n),unpauseRunner:(e,t,n)=>this.command(`/runners/${encodeURIComponent(e)}/commands/unpause`,t,mp,n)},this.events={list:(e,t,n)=>{let r=typeof t==`string`?t:void 0,i=typeof t==`string`?n:t;return this.get(`/events${Kp({cursor:e,workItemKey:r})}`,dp(kp),i)}},this.observability={metrics:(e=7,t)=>this.get(`/observability/metrics${Kp({days:String(e)})}`,up(Lp),t)},this.system={health:e=>this.get(`/system/health`,up(zp),e),configuration:e=>this.get(`/system/configuration`,up(Bp),e),commands:e=>this.get(`/system/commands`,up(Vp),e)}}async command(e,t,n,r){return this.request(e,up(n),{method:`POST`,body:JSON.stringify({idempotencyKey:t}),headers:{"content-type":`application/json`},...r===void 0?{}:{signal:r}})}get(e,t,n){return this.request(e,t,n===void 0?{}:{signal:n})}async request(e,t,n){let r=this.fetchImplementation,i=await r(`${this.baseUrl}${e}`,{...n,headers:{accept:`application/json, application/problem+json`,...n.headers}}),a=await i.json();if(!i.ok)throw new Wp(Hp(a,i.status));return t(a)}};function Kp(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&t.set(n,r);let n=t.toString();return n===``?``:`?${n}`}var qp=(0,S.createContext)(null);function Jp(){let e=(0,S.useContext)(qp);if(e===null)throw Error(`WakeApiClient is not configured`);return e}var Yp={board:{list:(e=``)=>[`board`,`list`,e]},status:{get:[`status`]},controlPlane:{status:[`controlPlane`,`status`]},work:{all:[`work`],list:(e=``,t=``,n=``)=>[`work`,`list`,e,t,n],detail:e=>[`work`,`detail`,e],transcript:(e,t)=>[`work`,`transcript`,e,t]},resources:{list:[`resources`,`list`]},orchestration:{list:[`orchestration`,`list`]},workflowDiagrams:{get:(e=``)=>[`workflowDiagrams`,e]},execution:{runs:[`execution`,`runs`],runList:(e=``)=>[`execution`,`runs`,e],run:e=>[`execution`,`runDetail`,e],transcript:e=>[`execution`,`transcript`,e],runners:[`execution`,`runners`]},events:{all:[`events`],list:(e=``,t=``)=>[`events`,`list`,e,t]},observability:{metrics:e=>[`observability`,`metrics`,e]},system:{health:[`systemHealth`],configuration:[`systemConfiguration`],commands:[`systemCommands`]}},Xp={status:2e3,board:3e3,openWork:3e3,activeRuns:3e3,events:3e3,historicalRuns:5e3,health:5e3,runners:5e3,observability:!1,configuration:!1,commands:!1,workflowDiagrams:3e3},Zp={runs:e=>e?.some(e=>e.active)===!0?Xp.activeRuns:Xp.historicalRuns},Qp={shell:`_shell_1ypjj_1`,header:`_header_1ypjj_6`,brand:`_brand_1ypjj_14`,brandLogo:`_brandLogo_1ypjj_25`,brandVersion:`_brandVersion_1ypjj_29`,statusBand:`_statusBand_1ypjj_35`,nav:`_nav_1ypjj_46`,main:`_main_1ypjj_77`,pageHeader:`_pageHeader_1ypjj_83`,panel:`_panel_1ypjj_93`,badge:`_badge_1ypjj_100`,good:`_good_1ypjj_124`,warning:`_warning_1ypjj_127`,bad:`_bad_1ypjj_100`,cold:`_cold_1ypjj_133`,info:`_info_1ypjj_138`,button:`_button_1ypjj_141`,secondary:`_secondary_1ypjj_161`,tableWrap:`_tableWrap_1ypjj_164`,table:`_table_1ypjj_164`,state:`_state_1ypjj_193`,error:`_error_1ypjj_199`,stale:`_stale_1ypjj_203`,statusActions:`_statusActions_1ypjj_207`,pauseControl:`_pauseControl_1ypjj_212`,pagination:`_pagination_1ypjj_243`,live:`_live_1ypjj_249`,json:`_json_1ypjj_255`,chip:`_chip_1ypjj_264`,chipOutline:`_chipOutline_1ypjj_275`,tile:`_tile_1ypjj_295`,tileValue:`_tileValue_1ypjj_301`,tileLabel:`_tileLabel_1ypjj_305`},$p=({title:e,actions:t})=>(0,w.jsxs)(`div`,{className:Qp.pageHeader,children:[e!==void 0&&(0,w.jsx)(`h1`,{children:e}),t]}),em=({children:e,labelledBy:t})=>(0,w.jsx)(`section`,{className:Qp.panel,"aria-labelledby":t,children:e});function tm({variant:e=`primary`,className:t,...n}){return(0,w.jsx)(`button`,{...n,className:[Qp.button,e===`secondary`?Qp.secondary:``,t].filter(Boolean).join(` `)})}function nm({children:e,tone:t=`neutral`,title:n}){return(0,w.jsx)(`span`,{className:`${Qp.badge} ${t===`neutral`?``:Qp[t]}`,title:n,children:(0,w.jsx)(`span`,{children:e})})}var rm=({label:e=`Loading`})=>(0,w.jsxs)(`div`,{className:Qp.state,role:`status`,"aria-live":`polite`,children:[e,`…`]}),im=({children:e})=>(0,w.jsx)(`div`,{className:Qp.state,children:e}),am=({error:e,retry:t})=>(0,w.jsxs)(`div`,{className:`${Qp.state} ${Qp.error}`,role:`alert`,children:[(0,w.jsx)(`p`,{children:e.message}),t&&(0,w.jsx)(tm,{type:`button`,onClick:t,children:`Retry`})]}),hee=({pending:e,message:t})=>(0,w.jsx)(`div`,{className:`${Qp.live} ${Qp.stale}`,role:`status`,"aria-live":`polite`,children:e?`Command pending…`:t}),gee=({value:e})=>(0,w.jsxs)(`details`,{children:[(0,w.jsx)(`summary`,{children:`Structured details`}),(0,w.jsx)(`pre`,{className:Qp.json,children:JSON.stringify(e,null,2)})]});function _ee(){let e=Jp(),t=ti(),n=gi({queryKey:Yp.controlPlane.status,queryFn:({signal:t})=>e.controlPlane.status(t),refetchInterval:Xp.status}),r=gi({queryKey:Yp.execution.runners,queryFn:({signal:t})=>e.execution.runners(t),refetchInterval:Xp.runners}).data?.items.filter(e=>!e.available)??[],i=_i({mutationKey:[`control-plane`,`unpause-runner`],mutationFn:t=>e.execution.unpauseRunner(t,vee(`unpause`)),onSuccess:()=>t.invalidateQueries({queryKey:Yp.execution.runners})}),a=_i({mutationKey:[`control-plane`,`pause`],mutationFn:t=>e.controlPlane.pause(t),onSuccess:()=>t.invalidateQueries({queryKey:Yp.controlPlane.status})}),o=_i({mutationKey:[`control-plane`,`resume`],mutationFn:t=>e.controlPlane.resume(t),onSuccess:()=>t.invalidateQueries({queryKey:Yp.controlPlane.status})}),s=n.data?.data.maintenanceLease,c=n.data?.data.paused===!0||s!==void 0;return(0,w.jsxs)(`div`,{className:Qp.statusActions,children:[n.data?(0,w.jsx)(nm,{tone:c?`warning`:`good`,children:c?`Dispatch paused`:`Dispatch active`}):(0,w.jsx)(nm,{tone:`bad`,children:`API unavailable`}),s?(0,w.jsx)(nm,{tone:s.phase===`failed`?`bad`:`warning`,title:s.failure??`Maintenance lease held since ${s.startedAt}`,children:`Maintenance`}):null,n.data?.data.paused?(0,w.jsx)(tm,{type:`button`,disabled:o.isPending,onClick:()=>o.mutate(vee(`resume`)),children:`Resume ticks`}):(0,w.jsx)(tm,{type:`button`,disabled:a.isPending,onClick:()=>a.mutate(vee(`pause`)),children:`Pause ticks`}),r.map(e=>(0,w.jsxs)(`span`,{className:Qp.pauseControl,children:[e.runnerId,` paused`,(0,w.jsx)(`button`,{type:`button`,disabled:i.isPending,onClick:()=>i.mutate(e.runnerId),children:`Unpause`})]},e.runnerId))]})}function vee(e){return`web:${e}:${globalThis.crypto.randomUUID()}`}var yee=[[`Board`,`/board`],[`Runs`,`/runs`],[`Work`,`/work`],[`Events`,`/events`],[`Observability`,`/observability`],[`Health`,`/health`],[`Configuration`,`/configuration`]];function bee({children:e}){let t=xee(),n=Jp(),r=gi({queryKey:Yp.system.health,queryFn:({signal:e})=>n.system.health(e),refetchInterval:Xp.health});return(0,w.jsxs)(`div`,{className:Qp.shell,children:[!t&&(0,w.jsx)(`div`,{role:`status`,"aria-live":`polite`,children:`Connection lost; reconnecting`}),(0,w.jsxs)(`header`,{className:Qp.header,children:[(0,w.jsxs)(`span`,{className:Qp.brand,children:[(0,w.jsx)(`img`,{className:Qp.brandLogo,src:yi,alt:`Wake logo`}),`Wake`]}),r.data&&(0,w.jsx)(`span`,{className:Qp.brandVersion,children:r.data.data.version})]}),(0,w.jsx)(`div`,{className:Qp.statusBand,role:`status`,"aria-label":`Control plane`,children:(0,w.jsx)(_ee,{})}),(0,w.jsx)(`nav`,{className:Qp.nav,"aria-label":`Primary`,children:yee.map(([e,t])=>(0,w.jsx)(In,{to:t,children:e},t))}),(0,w.jsx)(`main`,{className:Qp.main,children:e})]})}function xee(){let[e,t]=(0,S.useState)(()=>navigator.onLine);return(0,S.useEffect)(()=>{let e=()=>t(!0),n=()=>t(!1);return window.addEventListener(`online`,e),window.addEventListener(`offline`,n),()=>{window.removeEventListener(`online`,e),window.removeEventListener(`offline`,n)}},[]),e}var om={boardControls:`_boardControls_65eiw_1`,swimlanes:`_swimlanes_65eiw_28`,swimlaneHeader:`_swimlaneHeader_65eiw_32`,swimlaneToggle:`_swimlaneToggle_65eiw_40`,board:`_board_65eiw_1`,column:`_column_65eiw_69`,columnHeader:`_columnHeader_65eiw_77`,cards:`_cards_65eiw_91`,card:`_card_65eiw_91`,cardLink:`_cardLink_65eiw_110`,cardRef:`_cardRef_65eiw_126`,cardTitle:`_cardTitle_65eiw_133`,cardMeta:`_cardMeta_65eiw_139`,metaIcon:`_metaIcon_65eiw_146`,cardStats:`_cardStats_65eiw_151`,childRun:`_childRun_65eiw_156`,childRunDot:`_childRunDot_65eiw_169`,"active-run-pulse":`_active-run-pulse_65eiw_1`,childRunTitle:`_childRunTitle_65eiw_188`,childRunMeta:`_childRunMeta_65eiw_192`,columnToggle:`_columnToggle_65eiw_195`,finishedColumnToggle:`_finishedColumnToggle_65eiw_210`,filters:`_filters_65eiw_217`,detail:`_detail_65eiw_247`,summary:`_summary_65eiw_254`,overviewLayout:`_overviewLayout_65eiw_271`,overviewSidebar:`_overviewSidebar_65eiw_277`,overviewMain:`_overviewMain_65eiw_283`,conversationPanel:`_conversationPanel_65eiw_288`,conversationHint:`_conversationHint_65eiw_296`,conversationTimeline:`_conversationTimeline_65eiw_301`,conversationEntry:`_conversationEntry_65eiw_308`,conversationEntryHead:`_conversationEntryHead_65eiw_314`,conversationRepresentations:`_conversationRepresentations_65eiw_315`,conversationBody:`_conversationBody_65eiw_329`,conversationComposer:`_conversationComposer_65eiw_337`,conversationComposerActions:`_conversationComposerActions_65eiw_365`,sidebarSectionTitle:`_sidebarSectionTitle_65eiw_370`,resourceList:`_resourceList_65eiw_373`,resourceCard:`_resourceCard_65eiw_381`,resourceCardTop:`_resourceCardTop_65eiw_396`,resourceCardIcon:`_resourceCardIcon_65eiw_401`,resourceCardTitle:`_resourceCardTitle_65eiw_405`,resourceCardExt:`_resourceCardExt_65eiw_414`,resourceCardMeta:`_resourceCardMeta_65eiw_422`,resourceId:`_resourceId_65eiw_430`,eventList:`_eventList_65eiw_436`,event:`_event_65eiw_436`,eventType:`_eventType_65eiw_459`,eventId:`_eventId_65eiw_467`,toolbar:`_toolbar_65eiw_476`,modalBackdrop:`_modalBackdrop_65eiw_482`,modal:`_modal_65eiw_482`,modalHeader:`_modalHeader_65eiw_505`,modalRef:`_modalRef_65eiw_512`,modalClose:`_modalClose_65eiw_517`,tiles:`_tiles_65eiw_533`,transcript:`_transcript_65eiw_598`,transcriptEntry:`_transcriptEntry_65eiw_603`,transcriptHead:`_transcriptHead_65eiw_610`,transcriptText:`_transcriptText_65eiw_620`,transcriptLayout:`_transcriptLayout_65eiw_629`,transcriptGroups:`_transcriptGroups_65eiw_635`,transcriptGroup:`_transcriptGroup_65eiw_635`,transcriptConversation:`_transcriptConversation_65eiw_664`,transcriptFilters:`_transcriptFilters_65eiw_667`,transcriptInput:`_transcriptInput_65eiw_687`,transcriptAgent:`_transcriptAgent_65eiw_688`,transcriptRunSeparator:`_transcriptRunSeparator_65eiw_703`,eventButton:`_eventButton_65eiw_720`,eventChevron:`_eventChevron_65eiw_760`,eventPayload:`_eventPayload_65eiw_764`,tabs:`_tabs_65eiw_773`,actionBar:`_actionBar_65eiw_802`,dangerButton:`_dangerButton_65eiw_808`};function sm({children:e,variant:t=`default`,tone:n=`neutral`,title:r}){return(0,w.jsx)(`span`,{className:`${Qp.chip} ${t===`outline`?Qp.chipOutline:``} ${n===`neutral`?``:Qp[n]}`,title:r,children:e})}function cm(e){return`$${e.toFixed(e<1?4:2)}`}function lm(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function um(e){if(!Number.isFinite(e)||e<0)return``;let t=Math.max(1,Math.floor(e/1e3));if(t<10)return`${t}s`;if(t<60)return`${Math.floor(t/10)*10}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<24?`${r}h${n%60}m`:`${Math.floor(r/24)}d`}var See=new Set([`failed`,`cancelled`,`ambiguous`]),dm=new Set([`blocked`,`rejected`]),Cee=new Set([`needs-clarification`]);function fm(e){return e.toLowerCase().replaceAll(`_`,`-`)}function pm(e){let t=fm(e);return See.has(t)?`bad`:Cee.has(t)?`info`:dm.has(t)?`warning`:t===`done`?`good`:`neutral`}function mm(e){return fm(e)===`needs-clarification`?`needs clarification`:e}function hm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`,stroke:`currentColor`,strokeWidth:`1.4`}),(0,w.jsx)(`path`,{d:`M5.4 8.2 7.1 9.9 10.6 6.1`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function gm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6.25`,stroke:`currentColor`,strokeWidth:`1.4`}),(0,w.jsx)(`path`,{d:`M6.1 6.3a1.9 1.9 0 1 1 2.75 1.7c-.6.32-.85.6-.85 1.2v.3`,stroke:`currentColor`,strokeWidth:`1.4`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,w.jsx)(`circle`,{cx:`8`,cy:`11.4`,r:`0.15`,fill:`currentColor`,stroke:`currentColor`})]})}function _m({outcome:e,title:t}){let n=fm(e)===`needs-clarification`?gm:hm;return(0,w.jsxs)(sm,{variant:`outline`,tone:pm(e),...t===void 0?{}:{title:t},children:[(0,w.jsx)(n,{}),mm(e)]})}function vm({usage:e}){let t=[e.inputTokens===void 0?void 0:`Input ${lm(e.inputTokens)}`,e.outputTokens===void 0?void 0:`Output ${lm(e.outputTokens)}`,e.cacheReadTokens===void 0?void 0:`Cache read ${lm(e.cacheReadTokens)}`,e.cacheWriteTokens===void 0?void 0:`Cache write ${lm(e.cacheWriteTokens)}`].filter(e=>e!==void 0).join(` · `);return(0,w.jsx)(`abbr`,{title:t===``?void 0:t,children:lm(e.totalTokens)})}function ym(){return(0,w.jsx)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:(0,w.jsx)(`path`,{d:`M4.5 2.5h7M4.5 13.5h7M5 2.5v2.4c0 .9.5 1.7 1.3 2.1l1.2.7-1.2.7c-.8.4-1.3 1.2-1.3 2.1v2.4M11 2.5v2.4c0 .9-.5 1.7-1.3 2.1l-1.2.7 1.2.7c.8.4 1.3 1.2 1.3 2.1v2.4`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function bm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`path`,{d:`M8 1.75v12.5M2.6 4.875l10.8 6.25M2.6 11.125l10.8-6.25`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`}),(0,w.jsx)(`path`,{d:`m5.65 3.1-1.3 1.775m7.3 6.25-1.3 1.775M5.65 12.9l-1.3-1.775m7.3-6.25-1.3-1.775`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`})]})}function xm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`circle`,{cx:`4`,cy:`3.5`,r:`1.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,w.jsx)(`circle`,{cx:`4`,cy:`12.5`,r:`1.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,w.jsx)(`circle`,{cx:`12`,cy:`8`,r:`1.6`,stroke:`currentColor`,strokeWidth:`1.3`}),(0,w.jsx)(`path`,{d:`M4 5.1v5.8M5.4 4.2 10.6 6.9M5.4 11.8 10.6 9.1`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`})]})}function Sm(){return(0,w.jsxs)(`svg`,{className:om.metaIcon,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,focusable:`false`,children:[(0,w.jsx)(`path`,{d:`M3.5 2v12`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinecap:`round`}),(0,w.jsx)(`path`,{d:`M3.5 2.8h7l-1.8 2.6 1.8 2.6h-7`,stroke:`currentColor`,strokeWidth:`1.3`,strokeLinejoin:`round`})]})}function Cm(e){return e===Vf.Starting?`Starting`:`Running`}function wm({item:e,background:t}){return(0,w.jsx)(`li`,{className:om.card,"aria-label":e.objective,children:(0,w.jsxs)(Fn,{className:om.cardLink,to:`/work/${encodeURIComponent(e.workItemKey)}`,state:{background:t},children:[e.externalRef!==void 0&&(0,w.jsx)(`span`,{className:om.cardRef,children:e.externalRef}),(0,w.jsx)(`span`,{className:om.cardTitle,children:e.objective}),(0,w.jsxs)(`span`,{className:om.cardMeta,children:[e.frozen===!0&&(0,w.jsxs)(sm,{variant:`outline`,tone:`cold`,title:`Automatic progress is paused while this work item is frozen`,children:[(0,w.jsx)(bm,{}),`frozen`]}),e.lastRunOutcome!==void 0&&e.lastRunOutcome!==`done`&&(0,w.jsx)(_m,{outcome:e.lastRunOutcome,title:`Outcome of the most recent run`}),Tm(e.blockReason)&&(0,w.jsx)(sm,{variant:`outline`,tone:`warning`,title:`An operator must resolve an ambiguous run`,children:`ambiguous run needs resolution`}),e.awaitingApproval===!0&&(0,w.jsxs)(sm,{variant:`outline`,tone:`warning`,title:`Waiting on human approval to continue`,children:[(0,w.jsx)(ym,{}),`awaiting approval`]}),e.workflowName!==void 0&&(0,w.jsxs)(sm,{variant:`outline`,title:`Workflow driving this item`,children:[(0,w.jsx)(xm,{}),e.workflowName]}),e.stage!==void 0&&(0,w.jsxs)(sm,{variant:`outline`,title:`Current lifecycle stage`,children:[(0,w.jsx)(Sm,{}),e.stage]})]}),(0,w.jsxs)(`span`,{className:om.cardStats,children:[`${e.runCount} runs \u00b7 ${e.lastRunAgeMs===void 0?`no runs yet`:`last run ${um(e.lastRunAgeMs)} ago`} \u00b7 ${um(e.totalDurationMs)} total \u00b7 ${cm(e.totalCostUsd)} \u00b7 `,(0,w.jsx)(vm,{usage:e}),` usage tokens`]}),Object.entries(e.activeRuns??{}).map(([e,t])=>(0,w.jsxs)(`div`,{className:om.childRun,children:[(0,w.jsx)(`span`,{"aria-hidden":`true`,className:om.childRunDot,"data-active-run":`true`,"data-testid":`active-run-dot-${e}`}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`div`,{className:om.childRunTitle,children:`${t.action} ${Cm(t.phase)}`}),(0,w.jsx)(`div`,{className:om.childRunMeta,children:[t.runnerName,um(t.elapsedMs)].filter(e=>e!==void 0).join(` · `)})]})]},e))]})})}function Tm(e){return e!==void 0&&/^run-ambiguous-after-\d+-attempts$/.test(e)}var Em=`wake:board:collapsed-columns`,Dm=`wake:board:group-by`,Om=`wake:board:collapsed-swimlanes`,wee=[`ready`,`active`,`needs-input`,`error`,`finished`],Tee=[`none`,`workflowName`,`stage`];function km(e,t){return JSON.stringify([e,t])}function Am(){try{let e=globalThis.localStorage?.getItem(Dm);return e!=null&&Tee.includes(e)?e:`none`}catch{return`none`}}function jm(e){try{globalThis.localStorage?.setItem(Dm,e)}catch{}}var Mm={workflowName:`No workflow`,stage:`No stage`};function T(e){let[t,n]=(0,S.useState)(()=>globalThis.matchMedia?.(e).matches??!1);return(0,S.useEffect)(()=>{let t=globalThis.matchMedia?.(e);if(t===void 0)return;let r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}function Eee(e,t){if(t===`none`)return[{key:`all`,label:void 0,items:e}];let n=new Map;for(let r of e){let e=t===`workflowName`?r.workflowName:r.stage,i=e===void 0||e===``?Mm[t]:e,a=n.get(i);a?a.push(r):n.set(i,[r])}return[...n.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({key:e,label:e,items:t}))}function Nm(){let e=Jp(),t=vt(),n=gi({queryKey:Yp.board.list(),queryFn:({signal:t})=>e.board.list(void 0,t),refetchInterval:Xp.board}),[r,i]=(0,S.useState)(()=>Pm(Em)),[a,o]=(0,S.useState)(()=>Pm(Om)),[s,c]=(0,S.useState)(Am),l=T(`(max-width: 42rem)`),u=e=>{let t=new Set(r);t.has(e)?t.delete(e):t.add(e),Fm(Em,t),i(t)},d=e=>{jm(e),c(e)},f=e=>{if(s===`none`)return;let t=km(s,e.key),n=new Set(a);n.has(t)?n.delete(t):n.add(t),Fm(Om,n),o(n)};if(n.isPending)return(0,w.jsx)(rm,{label:`Loading board`});if(n.error&&!n.data)return(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()});let p=n.data?.items??[],m=Eee(p,s);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`div`,{className:om.boardControls,children:(0,w.jsxs)(`label`,{children:[`Group by`,(0,w.jsxs)(`select`,{value:s,onChange:e=>d(e.target.value),children:[(0,w.jsx)(`option`,{value:`none`,children:`None`}),(0,w.jsx)(`option`,{value:`workflowName`,children:`Workflow`}),(0,w.jsx)(`option`,{value:`stage`,children:`Stage`})]})]})}),p.length===0?(0,w.jsx)(im,{children:`No work items`}):(0,w.jsx)(`div`,{className:om.swimlanes,children:m.map(e=>{let n=e.label===void 0?void 0:km(s,e.key),i=n!==void 0&&a.has(n),o=`${e.label} (${e.items.length})`;return(0,w.jsxs)(`section`,{children:[e.label!==void 0&&(0,w.jsx)(`h2`,{className:om.swimlaneHeader,children:(0,w.jsxs)(`button`,{type:`button`,className:om.swimlaneToggle,"aria-expanded":!i,onClick:()=>f(e),children:[(0,w.jsx)(`span`,{children:o}),(0,w.jsx)(`span`,{"aria-hidden":`true`,children:i?`▸`:`▾`})]})}),!i&&(0,w.jsx)(`div`,{className:om.board,children:wee.map(n=>{let i=e.items.filter(e=>e.condition===n),a=l||n===`finished`,o=a&&r.has(n),s=e.label===void 0?Im(n):`${Im(n)} · ${e.label}`;return(0,w.jsxs)(`section`,{className:om.column,children:[(0,w.jsxs)(`div`,{className:om.columnHeader,children:[(0,w.jsx)(`h2`,{children:`${Im(n)} (${i.length})`}),a&&(0,w.jsx)(`button`,{type:`button`,className:`${om.columnToggle} ${n===`finished`?om.finishedColumnToggle:``}`,"aria-expanded":!o,"aria-label":`${o?`Expand`:`Collapse`} ${s}`,onClick:()=>u(n),children:o?`+`:`−`})]}),!o&&(0,w.jsx)(`ul`,{className:om.cards,children:i.map(e=>(0,w.jsx)(wm,{item:e,background:t},e.workItemKey))})]},`${e.key}-${n}`)})})]},e.key)})})]})}function Pm(e){try{let t=globalThis.localStorage?.getItem(e);if(t==null)return new Set;let n=JSON.parse(t);return Array.isArray(n)?new Set(n.filter(e=>typeof e==`string`)):new Set}catch{return new Set}}function Fm(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify([...t]))}catch{}}var Im=e=>e.split(`-`).map(e=>e[0].toUpperCase()+e.slice(1)).join(` `),Lm=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`bolt`,r=448,i=512,a=[9889,`zap`],o=`f0e7`,s=`M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faBolt=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Dee=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`eye`,r=576,i=512,a=[128065],o=`f06e`,s=`M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faEye=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Oee=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`robot`,r=640,i=512,a=[129302],o=`f544`,s=`M352 0c0-17.7-14.3-32-32-32S288-17.7 288 0l0 64-96 0c-53 0-96 43-96 96l0 224c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-224c0-53-43-96-96-96l-96 0 0-64zM160 368c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zM224 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm144 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM64 224c0-17.7-14.3-32-32-32S0 206.3 0 224l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96zm544-32c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faRobot=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Rm=Lm(),zm=Dee(),kee=Oee();function Bm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Aee(e){if(Array.isArray(e))return e}function jee(e){if(Array.isArray(e))return Bm(e)}function Mee(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Vm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Xm(r.key),r)}}function Nee(e,t,n){return t&&Vm(e.prototype,t),n&&Vm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hm(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=Qm(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
75
75
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function Um(e,t,n){return(t=Xm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pee(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Wm(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Fee(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
76
76
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gm(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
77
77
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Km(Object(n),!0).forEach(function(t){Um(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Km(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jm(e,t){return Aee(e)||Wm(e,t)||Qm(e,t)||Fee()}function Ym(e){return jee(e)||Pee(e)||Qm(e)||Gm()}function Iee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xm(e){var t=Iee(e,`string`);return typeof t==`symbol`?t:t+``}function Zm(e){"@babel/helpers - typeof";return Zm=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Zm(e)}function Qm(e,t){if(e){if(typeof e==`string`)return Bm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bm(e,t):void 0}}var $m=function(){},eh={},th={},nh=null,rh={mark:$m,measure:$m};try{typeof window<`u`&&(eh=window),typeof document<`u`&&(th=document),typeof MutationObserver<`u`&&(nh=MutationObserver),typeof performance<`u`&&(rh=performance)}catch{}var ih=(eh.navigator||{}).userAgent,ah=ih===void 0?``:ih,oh=eh,sh=th,ch=nh,lh=rh;oh.document;var uh=!!sh.documentElement&&!!sh.head&&typeof sh.addEventListener==`function`&&typeof sh.createElement==`function`,dh=~ah.indexOf(`MSIE`)||~ah.indexOf(`Trident/`),fh,Lee=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,Ree=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i,ph={classic:{fa:`solid`,fas:`solid`,"fa-solid":`solid`,far:`regular`,"fa-regular":`regular`,fal:`light`,"fa-light":`light`,fat:`thin`,"fa-thin":`thin`,fab:`brands`,"fa-brands":`brands`},duotone:{fa:`solid`,fad:`solid`,"fa-solid":`solid`,"fa-duotone":`solid`,fadr:`regular`,"fa-regular":`regular`,fadl:`light`,"fa-light":`light`,fadt:`thin`,"fa-thin":`thin`},sharp:{fa:`solid`,fass:`solid`,"fa-solid":`solid`,fasr:`regular`,"fa-regular":`regular`,fasl:`light`,"fa-light":`light`,fast:`thin`,"fa-thin":`thin`},"sharp-duotone":{fa:`solid`,fasds:`solid`,"fa-solid":`solid`,fasdr:`regular`,"fa-regular":`regular`,fasdl:`light`,"fa-light":`light`,fasdt:`thin`,"fa-thin":`thin`},slab:{"fa-regular":`regular`,faslr:`regular`},"slab-press":{"fa-regular":`regular`,faslpr:`regular`},"slab-duo":{"fa-regular":`regular`,fasldr:`regular`},"slab-press-duo":{"fa-regular":`regular`,faslpdr:`regular`},thumbprint:{"fa-light":`light`,fatl:`light`},vellum:{"fa-solid":`solid`,favs:`solid`},pixel:{"fa-regular":`regular`,fapr:`regular`},mosaic:{"fa-solid":`solid`,fams:`solid`},whiteboard:{"fa-semibold":`semibold`,fawsb:`semibold`},notdog:{"fa-solid":`solid`,fans:`solid`},"notdog-duo":{"fa-solid":`solid`,fands:`solid`},etch:{"fa-solid":`solid`,faes:`solid`},graphite:{"fa-thin":`thin`,fagt:`thin`},jelly:{"fa-regular":`regular`,fajr:`regular`},"jelly-fill":{"fa-regular":`regular`,fajfr:`regular`},"jelly-duo":{"fa-regular":`regular`,fajdr:`regular`},chisel:{"fa-regular":`regular`,facr:`regular`},utility:{"fa-semibold":`semibold`,fausb:`semibold`},"utility-duo":{"fa-semibold":`semibold`,faudsb:`semibold`},"utility-fill":{"fa-semibold":`semibold`,faufsb:`semibold`}},zee={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},mh=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-slab-press-duo`,`fa-slab-duo`,`fa-mosaic`,`fa-pixel`,`fa-vellum`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`],hh=`classic`,gh=`duotone`,_h=`sharp`,vh=`sharp-duotone`,yh=`chisel`,bh=`etch`,xh=`graphite`,Sh=`jelly`,Ch=`jelly-duo`,wh=`jelly-fill`,Th=`mosaic`,Eh=`notdog`,Dh=`notdog-duo`,Oh=`pixel`,kh=`slab`,Ah=`slab-duo`,jh=`slab-press`,Mh=`slab-press-duo`,Nh=`thumbprint`,Ph=`utility`,Fh=`utility-duo`,Ih=`utility-fill`,Lh=`vellum`,Rh=`whiteboard`,Bee=`Classic`,Vee=`Duotone`,Hee=`Sharp`,Uee=`Sharp Duotone`,Wee=`Chisel`,Gee=`Etch`,Kee=`Graphite`,qee=`Jelly`,Jee=`Jelly Duo`,Yee=`Jelly Fill`,Xee=`Mosaic`,Zee=`Notdog`,Qee=`Notdog Duo`,$ee=`Pixel`,ete=`Slab`,tte=`Slab Duo`,nte=`Slab Press`,rte=`Slab Press Duo`,ite=`Thumbprint`,ate=`Utility`,ote=`Utility Duo`,ste=`Utility Fill`,cte=`Vellum`,lte=`Whiteboard`,zh=[hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh];fh={},Um(Um(Um(Um(Um(Um(Um(Um(Um(Um(fh,hh,Bee),gh,Vee),_h,Hee),vh,Uee),yh,Wee),bh,Gee),xh,Kee),Sh,qee),Ch,Jee),wh,Yee),Um(Um(Um(Um(Um(Um(Um(Um(Um(Um(fh,Th,Xee),Eh,Zee),Dh,Qee),Oh,$ee),kh,ete),Ah,tte),jh,nte),Mh,rte),Nh,ite),Ph,ate),Um(Um(Um(Um(fh,Fh,ote),Ih,ste),Lh,cte),Rh,lte);var ute={classic:{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},duotone:{900:`fad`,400:`fadr`,300:`fadl`,100:`fadt`},sharp:{900:`fass`,400:`fasr`,300:`fasl`,100:`fast`},"sharp-duotone":{900:`fasds`,400:`fasdr`,300:`fasdl`,100:`fasdt`},slab:{400:`faslr`},"slab-press":{400:`faslpr`},"slab-duo":{400:`fasldr`},"slab-press-duo":{400:`faslpdr`},vellum:{900:`favs`},mosaic:{900:`fams`},pixel:{400:`fapr`},whiteboard:{600:`fawsb`},thumbprint:{300:`fatl`},notdog:{900:`fans`},"notdog-duo":{900:`fands`},etch:{900:`faes`},graphite:{100:`fagt`},chisel:{400:`facr`},jelly:{400:`fajr`},"jelly-fill":{400:`fajfr`},"jelly-duo":{400:`fajdr`},utility:{600:`fausb`},"utility-duo":{600:`faudsb`},"utility-fill":{600:`faufsb`}},dte={"Font Awesome 7 Free":{900:`fas`,400:`far`},"Font Awesome 7 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`,100:`fat`},"Font Awesome 7 Brands":{400:`fab`,normal:`fab`},"Font Awesome 7 Duotone":{900:`fad`,400:`fadr`,normal:`fadr`,300:`fadl`,100:`fadt`},"Font Awesome 7 Sharp":{900:`fass`,400:`fasr`,normal:`fasr`,300:`fasl`,100:`fast`},"Font Awesome 7 Sharp Duotone":{900:`fasds`,400:`fasdr`,normal:`fasdr`,300:`fasdl`,100:`fasdt`},"Font Awesome 7 Jelly":{400:`fajr`,normal:`fajr`},"Font Awesome 7 Jelly Fill":{400:`fajfr`,normal:`fajfr`},"Font Awesome 7 Jelly Duo":{400:`fajdr`,normal:`fajdr`},"Font Awesome 7 Slab":{400:`faslr`,normal:`faslr`},"Font Awesome 7 Slab Press":{400:`faslpr`,normal:`faslpr`},"Font Awesome 7 Slab Duo":{400:`fasldr`,normal:`fasldr`},"Font Awesome 7 Slab Press Duo":{400:`faslpdr`,normal:`faslpdr`},"Font Awesome 7 Pixel":{400:`fapr`,normal:`fapr`},"Font Awesome 7 Mosaic":{900:`fams`,normal:`fams`},"Font Awesome 7 Vellum":{900:`favs`,normal:`favs`},"Font Awesome 7 Thumbprint":{300:`fatl`,normal:`fatl`},"Font Awesome 7 Notdog":{900:`fans`,normal:`fans`},"Font Awesome 7 Notdog Duo":{900:`fands`,normal:`fands`},"Font Awesome 7 Etch":{900:`faes`,normal:`faes`},"Font Awesome 7 Graphite":{100:`fagt`,normal:`fagt`},"Font Awesome 7 Chisel":{400:`facr`,normal:`facr`},"Font Awesome 7 Whiteboard":{600:`fawsb`,normal:`fawsb`},"Font Awesome 7 Utility":{600:`fausb`,normal:`fausb`},"Font Awesome 7 Utility Duo":{600:`faudsb`,normal:`faudsb`},"Font Awesome 7 Utility Fill":{600:`faufsb`,normal:`faufsb`}},fte=new Map([[`classic`,{defaultShortPrefixId:`fas`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`,`brands`],futureStyleIds:[],defaultFontWeight:900}],[`duotone`,{defaultShortPrefixId:`fad`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp`,{defaultShortPrefixId:`fass`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`sharp-duotone`,{defaultShortPrefixId:`fasds`,defaultStyleId:`solid`,styleIds:[`solid`,`regular`,`light`,`thin`],futureStyleIds:[],defaultFontWeight:900}],[`chisel`,{defaultShortPrefixId:`facr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`etch`,{defaultShortPrefixId:`faes`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`graphite`,{defaultShortPrefixId:`fagt`,defaultStyleId:`thin`,styleIds:[`thin`],futureStyleIds:[],defaultFontWeight:100}],[`jelly`,{defaultShortPrefixId:`fajr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-duo`,{defaultShortPrefixId:`fajdr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`jelly-fill`,{defaultShortPrefixId:`fajfr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`mosaic`,{defaultShortPrefixId:`fams`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`notdog`,{defaultShortPrefixId:`fans`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`notdog-duo`,{defaultShortPrefixId:`fands`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`pixel`,{defaultShortPrefixId:`fapr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab`,{defaultShortPrefixId:`faslr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-duo`,{defaultShortPrefixId:`fasldr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-press`,{defaultShortPrefixId:`faslpr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`slab-press-duo`,{defaultShortPrefixId:`faslpdr`,defaultStyleId:`regular`,styleIds:[`regular`],futureStyleIds:[],defaultFontWeight:400}],[`thumbprint`,{defaultShortPrefixId:`fatl`,defaultStyleId:`light`,styleIds:[`light`],futureStyleIds:[],defaultFontWeight:300}],[`utility`,{defaultShortPrefixId:`fausb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-duo`,{defaultShortPrefixId:`faudsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`utility-fill`,{defaultShortPrefixId:`faufsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}],[`vellum`,{defaultShortPrefixId:`favs`,defaultStyleId:`solid`,styleIds:[`solid`],futureStyleIds:[],defaultFontWeight:900}],[`whiteboard`,{defaultShortPrefixId:`fawsb`,defaultStyleId:`semibold`,styleIds:[`semibold`],futureStyleIds:[],defaultFontWeight:600}]]),pte={chisel:{regular:`facr`},classic:{brands:`fab`,light:`fal`,regular:`far`,solid:`fas`,thin:`fat`},duotone:{light:`fadl`,regular:`fadr`,solid:`fad`,thin:`fadt`},etch:{solid:`faes`},graphite:{thin:`fagt`},jelly:{regular:`fajr`},"jelly-duo":{regular:`fajdr`},"jelly-fill":{regular:`fajfr`},mosaic:{solid:`fams`},notdog:{solid:`fans`},"notdog-duo":{solid:`fands`},pixel:{regular:`fapr`},sharp:{light:`fasl`,regular:`fasr`,solid:`fass`,thin:`fast`},"sharp-duotone":{light:`fasdl`,regular:`fasdr`,solid:`fasds`,thin:`fasdt`},slab:{regular:`faslr`},"slab-duo":{regular:`fasldr`},"slab-press":{regular:`faslpr`},"slab-press-duo":{regular:`faslpdr`},thumbprint:{light:`fatl`},utility:{semibold:`fausb`},"utility-duo":{semibold:`faudsb`},"utility-fill":{semibold:`faufsb`},vellum:{solid:`favs`},whiteboard:{semibold:`fawsb`}},mte=[`fak`,`fa-kit`,`fakd`,`fa-kit-duotone`],hte={kit:{fak:`kit`,"fa-kit":`kit`},"kit-duotone":{fakd:`kit-duotone`,"fa-kit-duotone":`kit-duotone`}},gte=[`kit`];Um(Um({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var _te={kit:{"fa-kit":`fak`},"kit-duotone":{"fa-kit-duotone":`fakd`}},vte={"Font Awesome Kit":{400:`fak`,normal:`fak`},"Font Awesome Kit Duotone":{400:`fakd`,normal:`fakd`}},yte={kit:{fak:`fa-kit`},"kit-duotone":{fakd:`fa-kit-duotone`}},bte={kit:{kit:`fak`},"kit-duotone":{"kit-duotone":`fakd`}},Bh,Vh={GROUP:`duotone-group`,SWAP_OPACITY:`swap-opacity`,PRIMARY:`primary`,SECONDARY:`secondary`},xte=[`fa-classic`,`fa-duotone`,`fa-sharp`,`fa-sharp-duotone`,`fa-thumbprint`,`fa-whiteboard`,`fa-notdog`,`fa-notdog-duo`,`fa-chisel`,`fa-etch`,`fa-graphite`,`fa-jelly`,`fa-jelly-fill`,`fa-jelly-duo`,`fa-slab`,`fa-slab-press`,`fa-slab-press-duo`,`fa-slab-duo`,`fa-mosaic`,`fa-pixel`,`fa-vellum`,`fa-utility`,`fa-utility-duo`,`fa-utility-fill`];Bh={},Um(Um(Um(Um(Um(Um(Um(Um(Um(Um(Bh,`classic`,`Classic`),`duotone`,`Duotone`),`sharp`,`Sharp`),`sharp-duotone`,`Sharp Duotone`),`chisel`,`Chisel`),`etch`,`Etch`),`graphite`,`Graphite`),`jelly`,`Jelly`),`jelly-duo`,`Jelly Duo`),`jelly-fill`,`Jelly Fill`),Um(Um(Um(Um(Um(Um(Um(Um(Um(Um(Bh,`mosaic`,`Mosaic`),`notdog`,`Notdog`),`notdog-duo`,`Notdog Duo`),`pixel`,`Pixel`),`slab`,`Slab`),`slab-duo`,`Slab Duo`),`slab-press`,`Slab Press`),`slab-press-duo`,`Slab Press Duo`),`thumbprint`,`Thumbprint`),`utility`,`Utility`),Um(Um(Um(Um(Bh,`utility-duo`,`Utility Duo`),`utility-fill`,`Utility Fill`),`vellum`,`Vellum`),`whiteboard`,`Whiteboard`),Um(Um({},`kit`,`Kit`),`kit-duotone`,`Kit Duotone`);var Ste={classic:{"fa-brands":`fab`,"fa-duotone":`fad`,"fa-light":`fal`,"fa-regular":`far`,"fa-solid":`fas`,"fa-thin":`fat`},duotone:{"fa-regular":`fadr`,"fa-light":`fadl`,"fa-thin":`fadt`},sharp:{"fa-solid":`fass`,"fa-regular":`fasr`,"fa-light":`fasl`,"fa-thin":`fast`},"sharp-duotone":{"fa-solid":`fasds`,"fa-regular":`fasdr`,"fa-light":`fasdl`,"fa-thin":`fasdt`},slab:{"fa-regular":`faslr`},"slab-press":{"fa-regular":`faslpr`},"slab-duo":{"fa-regular":`fasldr`},"slab-press-duo":{"fa-regular":`faslpdr`},pixel:{"fa-regular":`fapr`},mosaic:{"fa-solid":`fams`},vellum:{"fa-solid":`favs`},whiteboard:{"fa-semibold":`fawsb`},thumbprint:{"fa-light":`fatl`},notdog:{"fa-solid":`fans`},"notdog-duo":{"fa-solid":`fands`},etch:{"fa-solid":`faes`},graphite:{"fa-thin":`fagt`},jelly:{"fa-regular":`fajr`},"jelly-fill":{"fa-regular":`fajfr`},"jelly-duo":{"fa-regular":`fajdr`},chisel:{"fa-regular":`facr`},utility:{"fa-semibold":`fausb`},"utility-duo":{"fa-semibold":`faudsb`},"utility-fill":{"fa-semibold":`faufsb`}},Cte={classic:[`fas`,`far`,`fal`,`fat`,`fad`],duotone:[`fadr`,`fadl`,`fadt`],sharp:[`fass`,`fasr`,`fasl`,`fast`],"sharp-duotone":[`fasds`,`fasdr`,`fasdl`,`fasdt`],slab:[`faslr`],"slab-press":[`faslpr`],"slab-duo":[`fasldr`],"slab-press-duo":[`faslpdr`],pixel:[`fapr`],mosaic:[`fams`],vellum:[`favs`],whiteboard:[`fawsb`],thumbprint:[`fatl`],notdog:[`fans`],"notdog-duo":[`fands`],etch:[`faes`],graphite:[`fagt`],jelly:[`fajr`],"jelly-fill":[`fajfr`],"jelly-duo":[`fajdr`],chisel:[`facr`],utility:[`fausb`],"utility-duo":[`faudsb`],"utility-fill":[`faufsb`]},Hh={classic:{fab:`fa-brands`,fad:`fa-duotone`,fal:`fa-light`,far:`fa-regular`,fas:`fa-solid`,fat:`fa-thin`},duotone:{fadr:`fa-regular`,fadl:`fa-light`,fadt:`fa-thin`},sharp:{fass:`fa-solid`,fasr:`fa-regular`,fasl:`fa-light`,fast:`fa-thin`},"sharp-duotone":{fasds:`fa-solid`,fasdr:`fa-regular`,fasdl:`fa-light`,fasdt:`fa-thin`},slab:{faslr:`fa-regular`},"slab-press":{faslpr:`fa-regular`},"slab-duo":{fasldr:`fa-regular`},"slab-press-duo":{faslpdr:`fa-regular`},pixel:{fapr:`fa-regular`},mosaic:{fams:`fa-solid`},vellum:{favs:`fa-solid`},whiteboard:{fawsb:`fa-semibold`},thumbprint:{fatl:`fa-light`},notdog:{fans:`fa-solid`},"notdog-duo":{fands:`fa-solid`},etch:{faes:`fa-solid`},graphite:{fagt:`fa-thin`},jelly:{fajr:`fa-regular`},"jelly-fill":{fajfr:`fa-regular`},"jelly-duo":{fajdr:`fa-regular`},chisel:{facr:`fa-regular`},utility:{fausb:`fa-semibold`},"utility-duo":{faudsb:`fa-semibold`},"utility-fill":{faufsb:`fa-semibold`}},wte=`fa.fas.far.fal.fat.fad.fadr.fadl.fadt.fab.fass.fasr.fasl.fast.fasds.fasdr.fasdl.fasdt.faslr.faslpr.fasldr.faslpdr.fapr.fams.favs.fawsb.fatl.fans.fands.faes.fagt.fajr.fajfr.fajdr.facr.fausb.faudsb.faufsb`.split(`.`).concat(xte,[`fa-solid`,`fa-regular`,`fa-light`,`fa-thin`,`fa-duotone`,`fa-brands`,`fa-semibold`]),Tte=[`solid`,`regular`,`light`,`thin`,`duotone`,`brands`,`semibold`],Ete=[1,2,3,4,5,6,7,8,9,10],Dte=Ete.concat([11,12,13,14,15,16,17,18,19,20]),Ote=[].concat(Ym(Object.keys(Cte)),Tte,[`aw`,`fw`,`pull-left`,`pull-right`],[`2xs`,`xs`,`sm`,`lg`,`xl`,`2xl`,`beat`,`beat-fade`,`border`,`bounce`,`buzz`,`canvas-square`,`canvas-roomy`,`fade`,`flip-360`,`flip-both`,`flip-horizontal`,`flip-vertical`,`flip`,`float`,`inverse`,`jello`,`layers`,`layers-bottom-left`,`layers-bottom-right`,`layers-counter`,`layers-text`,`layers-top-left`,`layers-top-right`,`li`,`pull-end`,`pull-start`,`pulse`,`rotate-180`,`rotate-270`,`rotate-90`,`rotate-by`,`shake`,`spin-pulse`,`spin-reverse`,`spin`,`spin-snap`,`spin-snap-4`,`spin-snap-8`,`stack-1x`,`stack-2x`,`stack`,`swing`,`ul`,`wag`,`width-auto`,`width-fixed`,Vh.GROUP,Vh.SWAP_OPACITY,Vh.PRIMARY,Vh.SECONDARY],Ete.map(function(e){return`${e}x`}),Dte.map(function(e){return`w-${e}`})),kte={"Font Awesome 5 Free":{900:`fas`,400:`far`},"Font Awesome 5 Pro":{900:`fas`,400:`far`,normal:`far`,300:`fal`},"Font Awesome 5 Brands":{400:`fab`,normal:`fab`},"Font Awesome 5 Duotone":{900:`fad`}},Uh=`___FONT_AWESOME___`,Wh=16,Ate=`fa`,jte=`svg-inline--fa`,Gh=`data-fa-i2svg`,Kh=`data-fa-pseudo-element`,Mte=`data-fa-pseudo-element-pending`,qh=`data-prefix`,Jh=`data-icon`,Nte=`fontawesome-i2svg`,Pte=`async`,Fte=[`HTML`,`HEAD`,`STYLE`,`SCRIPT`],Ite=[`::before`,`::after`,`:before`,`:after`],Lte=function(){try{return!0}catch{return!1}}();function Yh(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[hh]}})}var Rte=qm({},ph);Rte[hh]=qm(qm(qm(qm({},{"fa-duotone":`duotone`}),ph[hh]),hte.kit),hte[`kit-duotone`]);var zte=Yh(Rte),Xh=qm({},pte);Xh[hh]=qm(qm(qm(qm({},{duotone:`fad`}),Xh[hh]),bte.kit),bte[`kit-duotone`]);var Bte=Yh(Xh),Zh=qm({},Hh);Zh[hh]=qm(qm({},Zh[hh]),yte.kit);var Qh=Yh(Zh),$h=qm({},Ste);$h[hh]=qm(qm({},$h[hh]),_te.kit),Yh($h);var Vte=Lee,Hte=`fa-layers-text`,Ute=Ree;Yh(qm({},ute));var Wte=[`class`,`data-prefix`,`data-icon`,`data-fa-transform`,`data-fa-mask`],eg=zee,Gte=[].concat(Ym(gte),Ym(Ote)),tg=oh.FontAwesomeConfig||{};function Kte(e){var t=sh.querySelector(`script[`+e+`]`);if(t)return t.getAttribute(e)}function qte(e){return e===``?!0:e===`false`?!1:e===`true`||e}sh&&typeof sh.querySelector==`function`&&[[`data-family-prefix`,`familyPrefix`],[`data-css-prefix`,`cssPrefix`],[`data-family-default`,`familyDefault`],[`data-style-default`,`styleDefault`],[`data-replacement-class`,`replacementClass`],[`data-auto-replace-svg`,`autoReplaceSvg`],[`data-auto-add-css`,`autoAddCss`],[`data-search-pseudo-elements`,`searchPseudoElements`],[`data-search-pseudo-elements-warnings`,`searchPseudoElementsWarnings`],[`data-search-pseudo-elements-full-scan`,`searchPseudoElementsFullScan`],[`data-observe-mutations`,`observeMutations`],[`data-mutate-approach`,`mutateApproach`],[`data-keep-original-source`,`keepOriginalSource`],[`data-measure-performance`,`measurePerformance`],[`data-show-missing-icons`,`showMissingIcons`]].forEach(function(e){var t=Jm(e,2),n=t[0],r=t[1],i=qte(Kte(n));i!=null&&(tg[r]=i)});var Jte={styleDefault:`solid`,familyDefault:hh,cssPrefix:Ate,replacementClass:jte,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:`async`,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};tg.familyPrefix&&(tg.cssPrefix=tg.familyPrefix);var ng=qm(qm({},Jte),tg);ng.autoReplaceSvg||(ng.observeMutations=!1);var rg={};Object.keys(Jte).forEach(function(e){Object.defineProperty(rg,e,{enumerable:!0,set:function(t){ng[e]=t,ig.forEach(function(e){return e(rg)})},get:function(){return ng[e]}})}),Object.defineProperty(rg,"familyPrefix",{enumerable:!0,set:function(e){ng.cssPrefix=e,ig.forEach(function(e){return e(rg)})},get:function(){return ng.cssPrefix}}),oh.FontAwesomeConfig=rg;var ig=[];function Yte(e){return ig.push(e),function(){ig.splice(ig.indexOf(e),1)}}var ag=Wh,og={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Xte(e){if(!(!e||!uh)){var t=sh.createElement(`style`);t.setAttribute(`type`,`text/css`),t.innerHTML=e;for(var n=sh.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||``).toUpperCase();[`STYLE`,`LINK`].indexOf(o)>-1&&(r=a)}return sh.head.insertBefore(t,r),e}}var Zte=`0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`;function Qte(){for(var e=12,t=``;e-->0;)t+=Zte[Math.random()*62|0];return t}function sg(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function cg(e){return e.classList?sg(e.classList):(e.getAttribute(`class`)||``).split(` `).filter(function(e){return e})}function lg(e){return`${e}`.replace(/&/g,`&`).replace(/"/g,`"`).replace(/'/g,`'`).replace(/</g,`<`).replace(/>/g,`>`)}function $te(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}="${lg(e[n])}" `},``).trim()}function ug(e){return Object.keys(e||{}).reduce(function(t,n){return t+`${n}: ${e[n].trim()};`},``)}function dg(e){return e.size!==og.size||e.x!==og.x||e.y!==og.y||e.rotate!==og.rotate||e.flipX||e.flipY}function ene(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth;return{outer:{transform:`translate(${n/2} 256)`},inner:{transform:`${`translate(${t.x*32}, ${t.y*32}) `} ${`scale(${t.size/16*(t.flipX?-1:1)}, ${t.size/16*(t.flipY?-1:1)}) `} ${`rotate(${t.rotate} 0 0)`}`},path:{transform:`translate(${r/2*-1} -256)`}}}function tne(e){var t=e.transform,n=e.width,r=n===void 0?Wh:n,i=e.height,a=i===void 0?Wh:i,o=e.startCentered,s=o!==void 0&&o,c=``;return c+=s&&dh?`translate(${t.x/ag-r/2}em, ${t.y/ag-a/2}em) `:s?`translate(calc(-50% + ${t.x/ag}em), calc(-50% + ${t.y/ag}em)) `:`translate(${t.x/ag}em, ${t.y/ag}em) `,c+=`scale(${t.size/ag*(t.flipX?-1:1)}, ${t.size/ag*(t.flipY?-1:1)}) `,c+=`rotate(${t.rotate}deg) `,c}var nne=`:root, :host {
|
|
@@ -1173,7 +1173,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
1173
1173
|
`),i.length!=2)throw D(new Uv(`Exactly two numbers are expected, `+i.length+` were found.`));try{this.a=AB(YB(i[0])),this.b=AB(YB(i[1]))}catch(e){throw e=lF(e),M(e,131)?(n=e,D(new Uv(Qct+n))):D(e)}},Q.Ib=function(){return`(`+this.a+`,`+this.b+`)`},Q.a=0,Q.b=0;var T6=L(qq,`KVector`,8);q(79,66,{3:1,4:1,20:1,31:1,56:1,18:1,66:1,16:1,79:1,414:1},X_,Ly,Ofe),Q.Nc=function(){return oBe(this)},Q.ag=function(e){var t,n,r=rU(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|
1174
1174
|
`),i,a,o;PO(this);try{for(n=0,a=0,i=0,o=0;n<r.length;)r[n]!=null&&YB(r[n]).length>0&&(a%2==0?i=AB(r[n]):o=AB(r[n]),a>0&&a%2!=0&&fE(this,new A(i,o)),++a),++n}catch(e){throw e=lF(e),M(e,131)?(t=e,D(new Uv(`The given string does not match the expected format for vectors.`+t))):D(e)}},Q.Ib=function(){for(var e=new bw(`(`),t=TR(this,0),n;t.b!=t.d.c;)n=P(mA(t),8),eC(e,n.a+`,`+n.b),t.b!=t.d.c&&(e.a+=`; `);return(e.a+=`)`,e).a};var LIt=L(qq,`KVectorChain`,79);q(256,24,{3:1,35:1,24:1,256:1},mS);var RIt,E6,D6,O6,k6,A6,zIt=SN(CX,`Alignment`,256,fQ,TMe,Vge),BIt;q(976,1,iq,Ef),Q.tf=function(e){D9e(e)};var VIt,HIt,UIt,WIt,GIt,KIt,qIt,JIt,YIt,XIt,ZIt,QIt;L(CX,`BoxLayouterOptions`,976),q(977,1,{},Rc),Q.uf=function(){var e;return e=new Vc,e},Q.vf=function(e){},L(CX,`BoxLayouterOptions/BoxFactory`,977),q(299,24,{3:1,35:1,24:1,299:1},hS);var j6,$It,M6,N6,P6,eLt,tLt=SN(CX,`ContentAlignment`,299,fQ,OMe,Hge),nLt;q(689,1,iq,Tf),Q.tf=function(e){_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Nft),``),`Layout Algorithm`),`Select a specific layout algorithm.`),(HB(),C6)),OQ),pL((CR(),m6))))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Pft),``),`Resolved Layout Algorithm`),`Meta data associated with the selected algorithm.`),S6),kIt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,kut),``),`Alignment`),`Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm.`),iLt),y6),zIt),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,dq),``),`Aspect Ratio`),`The desired aspect ratio of the drawing, that is the quotient of width by height.`),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Fft),``),`Bend Points`),`A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points.`),S6),LIt),pL(d6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,xY),``),`Content Alignment`),`Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option.`),lLt),b6),tLt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,yY),``),`Debug Mode`),`Whether additional debug information shall be generated.`),(Cw(),!1)),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,bY),``),`Direction`),`Overall direction of edges: horizontal (right / left) or vertical (down / up).`),uLt),y6),C8),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,fY),``),`Edge Routing`),`What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline.`),mLt),y6),kRt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,jft),``),`Expand Nodes`),`If active, nodes are expanded to fill the area of their parent.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,dY),``),`Hierarchy Handling`),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),vLt),y6),GRt),BE(m6,U(k(g6,1),Z,160,0,[p6]))))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,mq),``),`Padding`),`The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately.`),PLt),S6),Zbt),BE(m6,U(k(g6,1),Z,160,0,[p6]))))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,hq),``),`Interactive`),`Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,TY),``),`interactive Layout`),`Whether the graph should be changeable interactively and by setting constraints`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,vq),``),`Omit Node Micro Layout`),`Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,gq),``),`Port Constraints`),`Defines constraints of the position of the ports of a node.`),KLt),y6),ezt),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,wY),``),`Position`),`The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position.`),S6),T6),BE(p6,U(k(g6,1),Z,160,0,[h6,f6]))))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,cq),``),`Priority`),`Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used.`),x6),TQ),BE(p6,U(k(g6,1),Z,160,0,[d6]))))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,fq),``),`Randomization Seed`),`Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time).`),x6),TQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,pq),``),`Separate Connected Components`),`Whether each connected component should be processed separately.`),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,But),``),`Junction Points`),`This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order.`),ELt),S6),LIt),pL(d6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Wut),``),`Comment Box`),`Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related.`),!1),_6),bQ),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Gut),``),`Hypernode`),`Whether the node should be handled as a hypernode.`),!1),_6),bQ),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Ift),``),`Label Manager`),`Label managers can shorten labels upon a layout algorithm's request.`),S6),sHt),BE(m6,U(k(g6,1),Z,160,0,[f6]))))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Lft),``),`Softwrapping Fuzziness`),`Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line.`),0),v6),CQ),pL(f6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,qut),``),`Margins`),`Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels.`),DLt),S6),Jbt),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Dut),``),`No Layout`),`No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node.`),!1),_6),bQ),BE(p6,U(k(g6,1),Z,160,0,[d6,h6,f6]))))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Rft),``),`Scale Factor`),`The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set.`),1),v6),CQ),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,zft),``),`Child Area Width`),`The width of the area occupied by the laid out children of a node.`),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Bft),``),`Child Area Height`),`The height of the area occupied by the laid out children of a node.`),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,wq),``),wft),`Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'`),!1),_6),bQ),pL(m6)))),tA(e,wq,Oq,null),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Vft),``),`Animate`),`Whether the shift from the old layout to the new computed layout shall be animated.`),!0),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Hft),``),`Animation Time Factor`),`Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'.`),G(100)),x6),TQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Uft),``),`Layout Ancestors`),`Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Wft),``),`Maximal Animation Time`),`The maximal time for animations, in milliseconds.`),G(4e3)),x6),TQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Gft),``),`Minimal Animation Time`),`The minimal time for animations, in milliseconds.`),G(400)),x6),TQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Kft),``),`Progress Bar`),`Whether a progress bar shall be displayed during layout computations.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,qft),``),`Validate Graph`),`Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Jft),``),`Validate Options`),`Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user.`),!0),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Yft),``),`Zoom to Fit`),`Whether the zoom level shall be set to view the whole diagram after layout.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Mft),`box`),`Box Layout Mode`),`Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better.`),sLt),y6),kzt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Xft),`json`),`Shape Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports.`),TLt),y6),dzt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Zft),`json`),`Edge Coords`),`For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels.`),CLt),y6),wRt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,hut),pY),`Comment Comment Spacing`),`Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing.`),10),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,gut),pY),`Comment Node Spacing`),`Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing.`),10),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,_ut),pY),`Components Spacing`),`Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated.`),20),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,vut),pY),`Edge Spacing`),`Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines.`),10),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,uq),pY),`Edge Label Spacing`),`The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option.`),2),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,vY),pY),`Edge Node Spacing`),`Spacing to be preserved between nodes and edges.`),10),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,yut),pY),`Label Spacing`),`Determines the amount of space to be left between two labels of the same graph element.`),0),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Sut),pY),`Label Node Spacing`),`Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option.`),5),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,but),pY),`Horizontal spacing between Label and Port`),`Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,xut),pY),`Vertical spacing between Label and Port`),`Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option.`),1),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,lq),pY),`Node Spacing`),`The minimal distance to be preserved between each two nodes.`),20),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Cut),pY),`Node Self Loop Spacing`),`Spacing to be preserved between a node and its self loops.`),10),v6),CQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,wut),pY),`Port Spacing`),`Spacing between pairs of ports of the same node.`),10),v6),CQ),BE(m6,U(k(g6,1),Z,160,0,[p6]))))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Tut),pY),`Individual Spacing`),`Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent.`),S6),jzt),BE(p6,U(k(g6,1),Z,160,0,[d6,h6,f6]))))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Jut),pY),`Additional Port Space`),`Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border.`),fRt),S6),Jbt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,CY),apt),`Layout Partition`),`Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction).`),x6),TQ),BE(m6,U(k(g6,1),Z,160,0,[p6]))))),tA(e,CY,SY,RLt),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,SY),apt),`Layout Partitioning`),`Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle.`),ILt),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Mut),opt),`Node Label Padding`),`Define padding for node labels that are placed inside of a node.`),kLt),S6),Zbt),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Sq),opt),`Node Label Placement`),`Hints for where node labels are to be placed; if empty, the node label's position is not modified.`),ALt),b6),Y8),BE(p6,U(k(g6,1),Z,160,0,[f6]))))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Fut),TX),`Port Alignment`),`Defines the default port distribution for a node. May be overridden for each side individually.`),BLt),y6),$8),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Iut),TX),`Port Alignment (North)`),`Defines how ports on the northern side are placed, overriding the node's general port alignment.`),y6),$8),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Lut),TX),`Port Alignment (South)`),`Defines how ports on the southern side are placed, overriding the node's general port alignment.`),y6),$8),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Rut),TX),`Port Alignment (West)`),`Defines how ports on the western side are placed, overriding the node's general port alignment.`),y6),$8),pL(p6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,zut),TX),`Port Alignment (East)`),`Defines how ports on the eastern side are placed, overriding the node's general port alignment.`),y6),$8),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,xq),spt),`Node Size Constraints`),`What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed.`),jLt),b6),B5),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,bq),spt),`Node Size Options`),`Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications.`),NLt),b6),hzt),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Aq),spt),`Node Size Minimum`),`The minimal size to which a node can be reduced.`),MLt),S6),T6),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,yq),spt),`Fixed Graph Size`),`By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so.`),!1),_6),bQ),pL(m6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Hut),hY),`Edge Label Placement`),`Gives a hint on where to put edge labels.`),fLt),y6),ERt),pL(f6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,_q),hY),`Inline Edge Labels`),`If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible.`),!1),_6),bQ),pL(f6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Qft),`font`),`Font Name`),`Font name used for a label.`),C6),OQ),pL(f6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,$ft),`font`),`Font Size`),`Font size used for a label.`),x6),TQ),pL(f6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Kut),cpt),`Port Anchor Offset`),`The offset to the port position where connections shall be attached.`),S6),T6),pL(h6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Uut),cpt),`Port Index`),`The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case.`),x6),TQ),pL(h6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Out),cpt),`Port Side`),`The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports.`),ZLt),y6),P5),pL(h6)))),_L(e,new VB(Py(Ny(Fy(Oy(My(Ay(jy(new Lc,Eut),cpt),`Port Border Offset`),`The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border.`),v6),CQ),pL(h6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Cq),lpt),`Port Label Placement`),`Decides on a placement method for port labels; if empty, the node label's position is not modified.`),YLt),b6),f5),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Nut),lpt),`Port Labels Next to Port`),`Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE.`),!1),_6),bQ),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Put),lpt),`Treat Port Labels as Group`),`If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port.`),!0),_6),bQ),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,ept),EX),`Number of size categories`),`Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator.`),G(3)),x6),TQ),pL(m6)))),tA(e,ept,npt,yRt),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,tpt),EX),`Weight of a node containing children for determining the graph size`),`When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five.`),G(4)),x6),TQ),pL(m6)))),tA(e,tpt,ept,null),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Tq),EX),`Topdown Scale Factor`),`The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes.`),1),v6),CQ),pL(m6)))),tA(e,Tq,Oq,gRt),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,npt),EX),`Topdown Size Approximator`),`The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size.`),null),S6),qRt),pL(p6)))),tA(e,npt,Oq,_Rt),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Eq),EX),`Topdown Hierarchical Node Width`),`The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),150),v6),CQ),BE(m6,U(k(g6,1),Z,160,0,[p6]))))),tA(e,Eq,Oq,null),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Dq),EX),`Topdown Hierarchical Node Aspect Ratio`),`The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself.`),1.414),v6),CQ),BE(m6,U(k(g6,1),Z,160,0,[p6]))))),tA(e,Dq,Oq,null),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Oq),EX),`Topdown Node Type`),`The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes.`),null),y6),vzt),pL(p6)))),tA(e,Oq,yq,null),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,rpt),EX),`Topdown Scale Cap`),`Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes.`),1),v6),CQ),pL(m6)))),tA(e,rpt,Oq,hRt),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Aut),upt),`Activate Inside Self Loops`),`Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports.`),!1),_6),bQ),pL(p6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,jut),upt),`Inside Self Loop`),`Whether a self loop should be routed inside a node instead of around that node.`),!1),_6),bQ),pL(d6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,Vut),`edge`),`Edge Thickness`),`The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it.`),1),v6),CQ),pL(d6)))),_L(e,new VB(Py(Ny(Fy(ky(Oy(My(Ay(jy(new Lc,ipt),`edge`),`Edge Type`),`The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations.`),gLt),y6),LRt),pL(d6)))),Rb(e,new Ok(Ty(Dy(Ey(new hc,iK),`Layered`),`The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.`))),Rb(e,new Ok(Ty(Dy(Ey(new hc,`org.eclipse.elk.orthogonal`),`Orthogonal`),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),Rb(e,new Ok(Ty(Dy(Ey(new hc,sq),`Force`),`Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.`))),Rb(e,new Ok(Ty(Dy(Ey(new hc,`org.eclipse.elk.circle`),`Circle`),`Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.`))),Rb(e,new Ok(Ty(Dy(Ey(new hc,ydt),`Tree`),`Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.`))),Rb(e,new Ok(Ty(Dy(Ey(new hc,`org.eclipse.elk.planar`),`Planar`),`Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.`))),Rb(e,new Ok(Ty(Dy(Ey(new hc,sX),`Radial`),`Radial layout algorithms usually position the nodes of the graph on concentric circles.`))),l7e((new Df,e)),D9e((new Ef,e)),R8e((new Of,e))};var F6,rLt,iLt,I6,aLt,oLt,sLt,L6,R6,cLt,z6,lLt,B6,V6,uLt,H6,dLt,fLt,pLt,mLt,hLt,gLt,_Lt,U6,vLt,yLt,W6,bLt,G6,xLt,SLt,CLt,wLt,TLt,K6,ELt,q6,DLt,OLt,kLt,J6,ALt,Y6,jLt,X6,Z6,MLt,Q6,NLt,$6,e8,t8,PLt,FLt,ILt,LLt,RLt,zLt,BLt,VLt,HLt,ULt,WLt,GLt,n8,r8,KLt,qLt,JLt,i8,YLt,XLt,a8,ZLt,o8,s8,QLt,c8,$Lt,eRt,tRt,nRt,rRt,iRt,aRt,oRt,l8,sRt,u8,cRt,lRt,d8,uRt,dRt,fRt,pRt,f8,p8,m8,h8,mRt,hRt,g8,gRt,_8,_Rt,vRt,yRt,bRt;L(CX,`CoreOptions`,689),q(86,24,{3:1,35:1,24:1,86:1},gS);var v8,y8,b8,x8,S8,C8=SN(CX,`Direction`,86,fQ,fAe,Uge),xRt;q(278,24,{3:1,35:1,24:1,278:1},_S);var w8,T8,SRt,CRt,wRt=SN(CX,`EdgeCoords`,278,fQ,rke,Wge),TRt;q(279,24,{3:1,35:1,24:1,279:1},vS);var E8,D8,O8,ERt=SN(CX,`EdgeLabelPlacement`,279,fQ,GEe,Gge),DRt;q(222,24,{3:1,35:1,24:1,222:1},yS);var k8,A8,j8,ORt,kRt=SN(CX,`EdgeRouting`,222,fQ,oke,Kge),ARt;q(328,24,{3:1,35:1,24:1,328:1},bS);var jRt,MRt,NRt,PRt,FRt,IRt,LRt=SN(CX,`EdgeType`,328,fQ,kMe,qge),RRt;q(974,1,iq,Df),Q.tf=function(e){l7e(e)};var zRt,BRt,VRt,HRt,URt,WRt,M8;L(CX,`FixedLayouterOptions`,974),q(975,1,{},zc),Q.uf=function(){var e;return e=new Wc,e},Q.vf=function(e){},L(CX,`FixedLayouterOptions/FixedFactory`,975),q(347,24,{3:1,35:1,24:1,347:1},xS);var N8,P8,F8,GRt=SN(CX,`HierarchyHandling`,347,fQ,KEe,Jge),KRt,qRt=wE(CX,`ITopdownSizeApproximator`);q(292,24,{3:1,35:1,24:1,292:1},SS);var I8,L8,R8,z8,JRt=SN(CX,`LabelSide`,292,fQ,ske,Yge),YRt;q(96,24,{3:1,35:1,24:1,96:1},CS);var B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8=SN(CX,`NodeLabelPlacement`,96,fQ,SFe,Xge),XRt;q(257,24,{3:1,35:1,24:1,257:1},wS);var ZRt,X8,Z8,QRt,Q8,$8=SN(CX,`PortAlignment`,257,fQ,PAe,Zge),$Rt;q(102,24,{3:1,35:1,24:1,102:1},TS);var e5,t5,n5,r5,i5,a5,ezt=SN(CX,`PortConstraints`,102,fQ,EMe,Qge),tzt;q(280,24,{3:1,35:1,24:1,280:1},ES);var o5,s5,c5,l5,u5,d5,f5=SN(CX,`PortLabelPlacement`,280,fQ,DMe,$ge),nzt;q(64,24,{3:1,35:1,24:1,64:1},OS);var p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5=SN(CX,`PortSide`,64,fQ,pAe,e_e),rzt;q(978,1,iq,Of),Q.tf=function(e){R8e(e)};var izt,azt,ozt,szt,czt;L(CX,`RandomLayouterOptions`,978),q(979,1,{},Bc),Q.uf=function(){var e;return e=new $c,e},Q.vf=function(e){},L(CX,`RandomLayouterOptions/RandomFactory`,979),q(300,24,{3:1,35:1,24:1,300:1},DS);var F5,lzt,uzt,dzt=SN(CX,`ShapeCoords`,300,fQ,qEe,t_e),fzt;q(380,24,{3:1,35:1,24:1,380:1},kS);var I5,L5,R5,z5,B5=SN(CX,`SizeConstraint`,380,fQ,ake,n_e),pzt;q(266,24,{3:1,35:1,24:1,266:1},AS);var V5,H5,U5,mzt,W5,G5,K5,q5,J5,hzt=SN(CX,`SizeOptions`,266,fQ,$Fe,r_e),gzt;q(281,24,{3:1,35:1,24:1,281:1},jS);var Y5,_zt,X5,vzt=SN(CX,`TopdownNodeTypes`,281,fQ,JEe,i_e),yzt;q(288,24,kX);var bzt,xzt,Szt,Czt,Z5=SN(CX,`TopdownSizeApproximator`,288,fQ,ike,a_e);q(970,288,kX,Rve),Q.Sg=function(e){return eKe(e)},SN(CX,`TopdownSizeApproximator/1`,970,Z5,null,null),q(971,288,kX,tbe),Q.Sg=function(e){var t=P(J(e,(_W(),c8)),144),n,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee=(zy(),m=new J_,m),te,ne,C;for(YV(ee,e),te=new Vg,o=new pw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));o.e!=o.i.gc();)i=P(OR(o),26),y=(p=new J_,p),JV(y,ee),YV(y,i),C=eKe(i),TC(y,r.Math.max(i.g,C.a),r.Math.max(i.f,C.b)),QB(te.f,i,y);for(a=new pw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));a.e!=a.i.gc();)for(i=P(OR(a),26),d=new pw((!i.e&&(i.e=new jT(i7,i,7,4)),i.e));d.e!=d.i.gc();)u=P(OR(d),85),x=P(US(HE(te.f,i)),26),S=P(VD(te,H((!u.c&&(u.c=new jT(r7,u,5,8)),u.c),0)),26),b=(f=new nl,f),Pj((!b.b&&(b.b=new jT(r7,b,4,7)),b.b),x),Pj((!b.c&&(b.c=new jT(r7,b,5,8)),b.c),S),GV(b,gk(x)),YV(b,u);g=P($O(t.f),214);try{g.kf(ee,new qc),ESe(t.f,g)}catch(e){throw e=lF(e),M(e,101)?(h=e,D(h)):D(e)}return Oj(ee,R6)||Oj(ee,L6)||cW(ee),l=O(N(J(ee,R6))),c=O(N(J(ee,L6))),s=l/c,n=O(N(J(ee,p8)))*r.Math.sqrt((!ee.a&&(ee.a=new F(p7,ee,10,11)),ee.a).i),ne=P(J(ee,t8),104),v=ne.b+ne.c+1,_=ne.d+ne.a+1,new A(r.Math.max(v,n),r.Math.max(_,n/s))},SN(CX,`TopdownSizeApproximator/2`,971,Z5,null,null),q(972,288,kX,Zwe),Q.Sg=function(e){var t,n=O(N(J(e,(_W(),p8)))),r,i,a,o;return t=n/O(N(J(e,f8))),r=bet(e),a=P(J(e,t8),104),i=O(N(DR(d8))),gk(e)&&(i=O(N(J(gk(e),d8)))),o=aw(new A(n,t),r),DT(o,new A(-(a.b+a.c)-i,-(a.d+a.a)-i))},SN(CX,`TopdownSizeApproximator/3`,972,Z5,null,null),q(973,288,kX,Abe),Q.Sg=function(e){var t,n,i,a,o,s,c,l,u,d;for(s=new pw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));s.e!=s.i.gc();)o=P(OR(s),26),J(o,(_W(),_8))!=null&&(!o.a&&(o.a=new F(p7,o,10,11)),o.a)&&(!o.a&&(o.a=new F(p7,o,10,11)),o.a).i>0?(n=P(J(o,_8),522),d=n.Sg(o),u=P(J(o,t8),104),TC(o,r.Math.max(o.g,d.a+u.b+u.c),r.Math.max(o.f,d.b+u.d+u.a))):(!o.a&&(o.a=new F(p7,o,10,11)),o.a).i!=0&&TC(o,O(N(J(o,p8))),O(N(J(o,p8)))/O(N(J(o,f8))));t=P(J(e,(_W(),c8)),144),l=P($O(t.f),214);try{l.kf(e,new qc),ESe(t.f,l)}catch(e){throw e=lF(e),M(e,101)?(c=e,D(c)):D(e)}return IR(e,F6,DX),Lke(e),cW(e),a=O(N(J(e,R6))),i=O(N(J(e,L6))),new A(a,i)},SN(CX,`TopdownSizeApproximator/4`,973,Z5,null,null);var wzt;q(345,1,{853:1},dv),Q.Tg=function(e,t){return RXe(this,e,t)},Q.Ug=function(){SQe(this)},Q.Vg=function(){return this.q},Q.Wg=function(){return this.f?BO(this.f):null},Q.Xg=function(){return BO(this.a)},Q.Yg=function(){return this.p},Q.Zg=function(){return!1},Q.$g=function(){return this.n},Q._g=function(){return this.p!=null&&!this.b},Q.ah=function(e){var t;this.n&&(t=e,ow(this.f,t))},Q.bh=function(e,t){var n,r;this.n&&e&&vDe(this,(n=new Sxe,r=WH(n,e),xit(n),r),(ZF(),Nzt))},Q.dh=function(e){var t;return this.b?null:(t=IPe(this,this.g),fE(this.a,t),t.i=this,this.d=e,t)},Q.eh=function(e){e>0&&!this.b&&dIe(this,e)},Q.b=!1,Q.c=0,Q.d=-1,Q.e=null,Q.f=null,Q.g=-1,Q.j=!1,Q.k=!1,Q.n=!1,Q.o=0,Q.q=0,Q.r=0,L(EY,`BasicProgressMonitor`,345),q(706,214,YK,Vc),Q.kf=function(e,t){get(e,t)},L(EY,`BoxLayoutProvider`,706),q(966,1,kK,Hte),Q.Le=function(e,t){return P3e(this,P(e,26),P(t,26))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Em(this)},Q.a=!1,L(EY,`BoxLayoutProvider/1`,966),q(167,1,{167:1},XM,Dfe),Q.Ib=function(){return this.c?V5e(this.c):EB(this.b)},L(EY,`BoxLayoutProvider/Group`,167),q(327,24,{3:1,35:1,24:1,327:1},NS);var Tzt,Ezt,Dzt,Ozt,kzt=SN(EY,`BoxLayoutProvider/PackingMode`,327,fQ,cke,o_e),Azt;q(967,1,kK,Jc),Q.Le=function(e,t){return HCe(P(e,167),P(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Em(this)},L(EY,`BoxLayoutProvider/lambda$0$Type`,967),q(968,1,kK,Yc),Q.Le=function(e,t){return CCe(P(e,167),P(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Em(this)},L(EY,`BoxLayoutProvider/lambda$1$Type`,968),q(969,1,kK,Xc),Q.Le=function(e,t){return wCe(P(e,167),P(t,167))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Em(this)},L(EY,`BoxLayoutProvider/lambda$2$Type`,969),q(1339,1,{830:1},Zc),Q.Lg=function(e,t){return jb(),!M(t,174)||Bie((vF(),P(e,174)),t)},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type`,1339),q(1340,1,YW,Ute),Q.Ad=function(e){xBe(this.a,P(e,147))},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type`,1340),q(1341,1,YW,Qc),Q.Ad=function(e){P(e,105),jb()},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type`,1341),q(1345,1,YW,Wte),Q.Ad=function(e){RIe(this.a,P(e,105))},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type`,1345),q(1343,1,fG,Xse),Q.Mb=function(e){return kze(this.a,this.b,P(e,147))},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type`,1343),q(1342,1,fG,Zse),Q.Mb=function(e){return yfe(this.a,this.b,P(e,830))},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type`,1342),q(1344,1,YW,Qse),Q.Ad=function(e){ybe(this.a,this.b,P(e,147))},L(EY,`ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type`,1344),q(931,1,{},Uc),Q.Kb=function(e){return Cle(e)},Q.Fb=function(e){return this===e},L(EY,`ElkUtil/lambda$0$Type`,931),q(932,1,YW,$se),Q.Ad=function(e){a0e(this.a,this.b,P(e,85))},Q.a=0,Q.b=0,L(EY,`ElkUtil/lambda$1$Type`,932),q(933,1,YW,ece),Q.Ad=function(e){jv(this.a,this.b,P(e,170))},Q.a=0,Q.b=0,L(EY,`ElkUtil/lambda$2$Type`,933),q(934,1,YW,tce),Q.Ad=function(e){Wle(this.a,this.b,P(e,157))},Q.a=0,Q.b=0,L(EY,`ElkUtil/lambda$3$Type`,934),q(935,1,YW,eg),Q.Ad=function(e){Pve(this.a,P(e,372))},L(EY,`ElkUtil/lambda$4$Type`,935),q(331,1,{35:1,331:1},Bg),Q.Dd=function(e){return Kue(this,P(e,242))},Q.Fb=function(e){var t;return M(e,331)?(t=P(e,331),this.a==t.a):!1},Q.Hb=function(){return ak(this.a)},Q.Ib=function(){return this.a+` (exclusive)`},Q.a=0,L(EY,`ExclusiveBounds/ExclusiveLowerBound`,331),q(1089,214,YK,Wc),Q.kf=function(e,t){var n,i,a,o,s,c,l,u,d,p,m,h,g,_,v,y,b,x,S,ee,te,ne,C;for(t.Tg(`Fixed Layout`,1),o=P(J(e,(_W(),pLt)),222),p=0,m=0,b=new pw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));b.e!=b.i.gc();){for(v=P(OR(b),26),C=P(J(v,(KF(),M8)),8),C&&(EC(v,C.a,C.b),P(J(v,BRt),182).Gc((YL(),I5))&&(h=P(J(v,HRt),8),h.a>0&&h.b>0&&rW(v,h.a,h.b,!0,!0))),p=r.Math.max(p,v.i+v.g),m=r.Math.max(m,v.j+v.f),u=new pw((!v.n&&(v.n=new F(f7,v,1,7)),v.n));u.e!=u.i.gc();)c=P(OR(u),157),C=P(J(c,M8),8),C&&EC(c,C.a,C.b),p=r.Math.max(p,v.i+c.i+c.g),m=r.Math.max(m,v.j+c.j+c.f);for(ee=new pw((!v.c&&(v.c=new F(m7,v,9,9)),v.c));ee.e!=ee.i.gc();)for(S=P(OR(ee),125),C=P(J(S,M8),8),C&&EC(S,C.a,C.b),te=v.i+S.i,ne=v.j+S.j,p=r.Math.max(p,te+S.g),m=r.Math.max(m,ne+S.f),l=new pw((!S.n&&(S.n=new F(f7,S,1,7)),S.n));l.e!=l.i.gc();)c=P(OR(l),157),C=P(J(c,M8),8),C&&EC(c,C.a,C.b),p=r.Math.max(p,te+c.i+c.g),m=r.Math.max(m,ne+c.j+c.f);for(a=new QE(gw(zV(v).a.Jc(),new f));EV(a);)n=P(ej(a),85),d=Dat(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b);for(i=new QE(gw(RV(v).a.Jc(),new f));EV(i);)n=P(ej(i),85),gk(TB(n))!=e&&(d=Dat(n),p=r.Math.max(p,d.a),m=r.Math.max(m,d.b))}if(o==(HI(),k8))for(y=new pw((!e.a&&(e.a=new F(p7,e,10,11)),e.a));y.e!=y.i.gc();)for(v=P(OR(y),26),i=new QE(gw(zV(v).a.Jc(),new f));EV(i);)n=P(ej(i),85),s=V9e(n),s.b==0?IR(n,K6,null):IR(n,K6,s);Kv(aT(J(e,(KF(),VRt))))||(x=P(J(e,URt),104),_=p+x.b+x.c,g=m+x.d+x.a,rW(e,_,g,!0,!0)),t.Ug()},L(EY,`FixedLayoutProvider`,1089),q(379,150,{3:1,414:1,379:1,105:1,150:1},Gc,KNe),Q.ag=function(e){var t,n,r,i,a,o,s,c,l;if(e)try{for(c=rU(e,`;,;`),a=c,o=0,s=a.length;o<s;++o){if(i=a[o],n=rU(i,`\\:`),r=brt(EN(),n[0]),!r)throw D(new Uv(`Invalid option id: `+n[0]));if(l=art(r,n[1]),l==null)throw D(new Uv(`Invalid option value: `+n[1]));l==null?(!this.q&&(this.q=new Vg),cj(this.q,r)):(!this.q&&(this.q=new Vg),lO(this.q,r,l))}}catch(e){throw e=lF(e),M(e,101)?(t=e,D(new pBe(t))):D(e)}},Q.Ib=function(){return oT(LA(xO((this.q?this.q:(jO(),jO(),LQ)).vc().Mc(),new Hc),MNe(new eve,new Te,new ye,new Se,U(k(UQ,1),Z,130,0,[]))))};var jzt=L(EY,`IndividualSpacings`,379);q(965,1,{},Hc),Q.Kb=function(e){return VCe(P(e,45))},L(EY,`IndividualSpacings/lambda$0$Type`,965),q(708,1,{},yye),Q.c=0,L(EY,`InstancePool`,708),q(1819,1,{},Kc),L(EY,`LoggedGraph`,1819),q(407,24,{3:1,35:1,24:1,407:1},FS);var Mzt,Nzt,Pzt,Fzt,Izt=SN(EY,`LoggedGraph/Type`,407,fQ,lke,s_e),Lzt;q(615,1,{853:1},qc),Q.Tg=function(e,t){return!1},Q.Ug=function(){},Q.Vg=function(){return 0},Q.Wg=function(){return null},Q.Xg=function(){return null},Q.Yg=function(){return null},Q.Zg=function(){return!1},Q.$g=function(){return!1},Q._g=function(){return!1},Q.ah=function(e){},Q.bh=function(e,t){},Q.dh=function(e){return this},Q.eh=function(e){},L(EY,`NullElkProgressMonitor`,615),q(49,1,{20:1,49:1},PS),Q.Ic=function(e){UA(this,e)},Q.Fb=function(e){var t,n,r;return M(e,49)?(n=P(e,49),t=this.a==null?n.a==null:OI(this.a,n.a),r=this.b==null?n.b==null:OI(this.b,n.b),t&&r):!1},Q.Hb=function(){var e,t,n=this.a==null?0:rP(this.a),r,i,a;return e=n&SG,t=n&-65536,a=this.b==null?0:rP(this.b),r=a&SG,i=a&-65536,e^i>>16&SG|t^r<<16},Q.Jc=function(){return new Gte(this)},Q.Ib=function(){return this.a==null&&this.b==null?`pair(null,null)`:this.a==null?`pair(null,`+yL(this.b)+`)`:this.b==null?`pair(`+yL(this.a)+`,null)`:`pair(`+yL(this.a)+`,`+yL(this.b)+`)`},L(EY,`Pair`,49),q(980,1,zW,Gte),Q.Nb=function(e){_D(this,e)},Q.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},Q.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw D(new f_)},Q.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),D(new l_)},Q.b=!1,Q.c=!1,L(EY,`Pair/1`,980),q(1079,214,YK,$c),Q.kf=function(e,t){var n,r,i,a,o;if(t.Tg(`Random Layout`,1),(!e.a&&(e.a=new F(p7,e,10,11)),e.a).i==0){t.Ug();return}a=P(J(e,(BUe(),szt)),15),i=a&&a.a!=0?new IA(a.a):new hL,n=qv(N(J(e,izt))),o=qv(N(J(e,czt))),r=P(J(e,azt),104),Yit(e,i,n,o,r),t.Ug()},L(EY,`RandomLayoutProvider`,1079),q(240,1,{240:1},h_e),Q.Fb=function(e){return uO(this.a,P(e,240).a)&&uO(this.b,P(e,240).b)&&uO(this.c,P(e,240).c)},Q.Hb=function(){return iI(U(k(sQ,1),NW,1,5,[this.a,this.b,this.c]))},Q.Ib=function(){return`(`+this.a+MW+this.b+MW+this.c+`)`},L(EY,`Triple`,240);var Rzt;q(551,1,{}),Q.Jf=function(){return new A(this.f.i,this.f.j)},Q.mf=function(e){return vwe(e,(_W(),n8))?J(this.f,zzt):J(this.f,e)},Q.Kf=function(){return new A(this.f.g,this.f.f)},Q.Lf=function(){return this.g},Q.nf=function(e){return Oj(this.f,e)},Q.Mf=function(e){fN(this.f,e.a),pN(this.f,e.b)},Q.Nf=function(e){dN(this.f,e.a),oN(this.f,e.b)},Q.Of=function(e){this.g=e},Q.g=0;var zzt;L(AX,`ElkGraphAdapters/AbstractElkGraphElementAdapter`,551),q(553,1,{838:1},tg),Q.Pf=function(){var e,t;if(!this.b)for(this.b=rA(LSe(this.a).i),t=new pw(LSe(this.a));t.e!=t.i.gc();)e=P(OR(t),157),ow(this.b,new zv(e));return this.b},Q.b=null,L(AX,`ElkGraphAdapters/ElkEdgeAdapter`,553),q(260,551,{},Bv),Q.Qf=function(){return rqe(this)},Q.a=null,L(AX,`ElkGraphAdapters/ElkGraphAdapter`,260),q(631,551,{187:1},zv),L(AX,`ElkGraphAdapters/ElkLabelAdapter`,631),q(552,551,{685:1},Nw),Q.Pf=function(){return tqe(this)},Q.Tf=function(){var e;return e=P(J(this.f,(_W(),q6)),140),!e&&(e=new H_),e},Q.Vf=function(){return nqe(this)},Q.Xf=function(e){var t=new qT(e);IR(this.f,(_W(),q6),t)},Q.Yf=function(e){IR(this.f,(_W(),t8),new mhe(e))},Q.Rf=function(){return this.d},Q.Sf=function(){var e,t;if(!this.a)for(this.a=new E,t=new QE(gw(RV(P(this.f,26)).a.Jc(),new f));EV(t);)e=P(ej(t),85),ow(this.a,new tg(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=new E,t=new QE(gw(zV(P(this.f,26)).a.Jc(),new f));EV(t);)e=P(ej(t),85),ow(this.c,new tg(e));return this.c},Q.Wf=function(){return LO(P(this.f,26)).i!=0||Kv(aT(P(this.f,26).mf((_W(),W6))))},Q.Zf=function(){VNe(this,(Bb(),Rzt))},Q.a=null,Q.b=null,Q.c=null,Q.d=null,Q.e=null,L(AX,`ElkGraphAdapters/ElkNodeAdapter`,552),q(1251,551,{837:1},yg),Q.Pf=function(){return mqe(this)},Q.Sf=function(){var e,t;if(!this.a)for(this.a=Bw(P(this.f,125).gh().i),t=new pw(P(this.f,125).gh());t.e!=t.i.gc();)e=P(OR(t),85),ow(this.a,new tg(e));return this.a},Q.Uf=function(){var e,t;if(!this.c)for(this.c=Bw(P(this.f,125).hh().i),t=new pw(P(this.f,125).hh());t.e!=t.i.gc();)e=P(OR(t),85),ow(this.c,new tg(e));return this.c},Q.$f=function(){return P(P(this.f,125).mf((_W(),a8)),64)},Q._f=function(){var e,t,n,r=pk(P(this.f,125)),i,a,o,s;for(n=new pw(P(this.f,125).hh());n.e!=n.i.gc();)for(e=P(OR(n),85),s=new pw((!e.c&&(e.c=new jT(r7,e,5,8)),e.c));s.e!=s.i.gc();)if(o=P(OR(s),84),GM(uB(o),r)||uB(o)==r&&Kv(aT(J(e,(_W(),bLt)))))return!0;for(t=new pw(P(this.f,125).gh());t.e!=t.i.gc();)for(e=P(OR(t),85),a=new pw((!e.b&&(e.b=new jT(r7,e,4,7)),e.b));a.e!=a.i.gc();)if(i=P(OR(a),84),GM(uB(i),r))return!0;return!1},Q.a=null,Q.b=null,Q.c=null,L(AX,`ElkGraphAdapters/ElkPortAdapter`,1251),q(1252,1,kK,el),Q.Le=function(e,t){return B5e(P(e,125),P(t,125))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Em(this)},L(AX,`ElkGraphAdapters/PortComparator`,1252);var Q5=wE(jX,`EObject`),$5=wE(MX,mpt),e7=wE(MX,hpt),t7=wE(MX,gpt),n7=wE(MX,`ElkShape`),r7=wE(MX,_pt),i7=wE(MX,vpt),a7=wE(MX,ypt),o7=wE(jX,bpt),s7=wE(jX,`EFactory`),Bzt,Vzt=wE(jX,xpt),c7=wE(jX,`EPackage`),l7,Hzt,Uzt,Wzt,u7,Gzt,Kzt,qzt,Jzt,d7,Yzt,Xzt,f7=wE(MX,Spt),p7=wE(MX,Cpt),m7=wE(MX,wpt);q(93,1,Tpt),Q.qh=function(){return this.rh(),null},Q.rh=function(){return null},Q.sh=function(){return this.rh(),!1},Q.th=function(){return!1},Q.uh=function(e){jP(this,e)},L(NX,`BasicNotifierImpl`,93),q(100,93,Apt),Q.Vh=function(){return bC(this)},Q.vh=function(e,t){return e},Q.wh=function(){throw D(new d_)},Q.xh=function(e){var t;return t=QR(P(RM(this.Ah(),this.Ch()),19)),this.Mh().Qh(this,t.n,t.f,e)},Q.yh=function(e,t){throw D(new d_)},Q.zh=function(e,t,n){return JH(this,e,t,n)},Q.Ah=function(){var e;return this.wh()&&(e=this.wh().Lk(),e)?e:this.fi()},Q.Bh=function(){return wV(this)},Q.Ch=function(){throw D(new d_)},Q.Dh=function(){var e,t=this.Xh().Mk();return!t&&this.wh().Rk(t=(Ub(),e=Kwe(oU(this.Ah())),e==null?JBt:new Pw(this,e))),t},Q.Eh=function(e,t){return e},Q.Fh=function(e){return e.nk()?e.Jj():NL(this.Ah(),e)},Q.Gh=function(){var e=this.wh();return e?e.Ok():null},Q.Hh=function(){return this.wh()?this.wh().Lk():null},Q.Ih=function(e,t,n){return zR(this,e,t,n)},Q.Jh=function(e){return Uj(this,e)},Q.Kh=function(e,t){return rj(this,e,t)},Q.Lh=function(){var e=this.wh();return!!e&&e.Pk()},Q.Mh=function(){throw D(new d_)},Q.Nh=function(){return fR(this)},Q.Oh=function(e,t,n,r){return FR(this,e,t,r)},Q.Ph=function(e,t,n){var r;return r=P(RM(this.Ah(),t),69),r.uk().xk(this,this.ei(),t-this.gi(),e,n)},Q.Qh=function(e,t,n,r){return QO(this,e,t,r)},Q.Rh=function(e,t,n){var r;return r=P(RM(this.Ah(),t),69),r.uk().yk(this,this.ei(),t-this.gi(),e,n)},Q.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},Q.Th=function(e){return ER(this,e)},Q.Uh=function(e){return xTe(this,e)},Q.Wh=function(e){return cit(this,e)},Q.Xh=function(){throw D(new d_)},Q.Yh=function(){return this.wh()?this.wh().Nk():null},Q.Zh=function(){return fR(this)},Q.$h=function(e,t){eV(this,e,t)},Q._h=function(e){this.Xh().Qk(e)},Q.ai=function(e){this.Xh().Tk(e)},Q.bi=function(e){this.Xh().Sk(e)},Q.ci=function(e,t){var n,r,i,a=this.Gh();return a&&e&&(t=RR(a.Cl(),this,t),a.Gl(this)),r=this.Mh(),r&&((IH(this,this.Mh(),this.Ch()).Bb&aK)==0?(t=(n=this.Ch(),n>=0?this.xh(t):this.Mh().Qh(this,-1-n,null,t)),t=this.zh(null,-1,t)):(i=r.Nh(),i&&(e?!a&&i.Gl(this):i.Fl(this)))),this.ai(e),t},Q.di=function(e){var t,n=this.Ah(),r,i,a=NL(n,e),o,s,c;if(t=this.gi(),a>=t)return P(e,69).uk().Bk(this,this.ei(),a-t);if(a<=-1)if(o=HU((WB(),p9),n,e),o){if(Kb(),P(o,69).vk()||(o=zk(uM(p9,o))),i=(r=this.Fh(o),P(r>=0?this.Ih(r,!0,!0):gV(this,o,!0),163)),c=o.Gk(),c>1||c==-1)return P(P(i,219).Ql(e,!1),78)}else throw D(new Uv(PX+e.ve()+Dpt));else if(e.Hk())return r=this.Fh(e),P(r>=0?this.Ih(r,!1,!0):gV(this,e,!1),78);return s=new bce(this,e),s},Q.ei=function(){return zNe(this)},Q.fi=function(){return(ND(),K7).S},Q.gi=function(){return PD(this.fi())},Q.hi=function(e){BB(this,e)},Q.Ib=function(){return jV(this)},L(LX,`BasicEObjectImpl`,100);var Zzt;q(117,100,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1}),Q.ii=function(e){return BNe(this)[e]},Q.ji=function(e,t){BD(BNe(this),e,t)},Q.ki=function(e){BD(BNe(this),e,null)},Q.qh=function(){return P(zP(this,4),129)},Q.rh=function(){throw D(new d_)},Q.sh=function(){return!!(this.Db&4)},Q.wh=function(){throw D(new d_)},Q.li=function(e){cR(this,2,e)},Q.yh=function(e,t){this.Db=t<<16|this.Db&255,this.li(e)},Q.Ah=function(){return XO(this)},Q.Ch=function(){return this.Db>>16},Q.Dh=function(){var e,t;return Ub(),t=Kwe(oU((e=P(zP(this,16),29),e||this.fi()))),t==null?JBt:new Pw(this,t)},Q.th=function(){return!(this.Db&1)},Q.Gh=function(){return P(zP(this,128),1999)},Q.Hh=function(){return P(zP(this,16),29)},Q.Lh=function(){return!!(this.Db&32)},Q.Mh=function(){return P(zP(this,2),52)},Q.Sh=function(){return!!(this.Db&64)},Q.Xh=function(){throw D(new d_)},Q.Yh=function(){return P(zP(this,64),290)},Q._h=function(e){cR(this,16,e)},Q.ai=function(e){cR(this,128,e)},Q.bi=function(e){cR(this,64,e)},Q.ei=function(){return sR(this)},Q.Db=0,L(LX,`MinimalEObjectImpl`,117),q(118,117,{109:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.li=function(e){this.Cb=e},Q.Mh=function(){return this.Cb},L(LX,`MinimalEObjectImpl/Container`,118),q(RX,118,{109:1,343:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return gqe(this,e,t,n)},Q.Rh=function(e,t,n){return WZe(this,e,t,n)},Q.Th=function(e){return wDe(this,e)},Q.$h=function(e,t){jze(this,e,t)},Q.fi=function(){return lW(),Xzt},Q.hi=function(e){VRe(this,e)},Q.lf=function(){return pGe(this)},Q.fh=function(){return!this.o&&(this.o=new Rj((lW(),d7),g7,this,0)),this.o},Q.mf=function(e){return J(this,e)},Q.nf=function(e){return Oj(this,e)},Q.of=function(e,t){return IR(this,e,t)},L(zX,`EMapPropertyHolderImpl`,RX),q(559,118,{109:1,372:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},rl),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return zR(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return ER(this,e)},Q.$h=function(e,t){switch(e){case 0:sN(this,O(N(t)));return;case 1:cN(this,O(N(t)));return}eV(this,e,t)},Q.fi=function(){return lW(),Hzt},Q.hi=function(e){switch(e){case 0:sN(this,0);return;case 1:cN(this,0);return}BB(this,e)},Q.Ib=function(){var e;return this.Db&64?jV(this):(e=new yw(jV(this)),e.a+=` (x: `,Hy(e,this.a),e.a+=`, y: `,Hy(e,this.b),e.a+=`)`,e.a)},Q.a=0,Q.b=0,L(zX,`ElkBendPointImpl`,559),q(727,RX,{109:1,343:1,174:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return kVe(this,e,t,n)},Q.Ph=function(e,t,n){return pB(this,e,t,n)},Q.Rh=function(e,t,n){return aF(this,e,t,n)},Q.Th=function(e){return $Le(this,e)},Q.$h=function(e,t){pYe(this,e,t)},Q.fi=function(){return lW(),Gzt},Q.hi=function(e){cVe(this,e)},Q.ih=function(){return this.k},Q.jh=function(){return LSe(this)},Q.Ib=function(){return rL(this)},Q.k=null,L(zX,`ElkGraphElementImpl`,727),q(728,727,{109:1,343:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return FHe(this,e,t,n)},Q.Th=function(e){return tUe(this,e)},Q.$h=function(e,t){mYe(this,e,t)},Q.fi=function(){return lW(),Yzt},Q.hi=function(e){xUe(this,e)},Q.kh=function(){return this.f},Q.lh=function(){return this.g},Q.mh=function(){return this.i},Q.nh=function(){return this.j},Q.oh=function(e,t){TC(this,e,t)},Q.ph=function(e,t){EC(this,e,t)},Q.Ib=function(){return MB(this)},Q.f=0,Q.g=0,Q.i=0,Q.j=0,L(zX,`ElkShapeImpl`,728),q(729,728,{109:1,343:1,84:1,174:1,276:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1}),Q.Ih=function(e,t,n){return uKe(this,e,t,n)},Q.Ph=function(e,t,n){return GJe(this,e,t,n)},Q.Rh=function(e,t,n){return KJe(this,e,t,n)},Q.Th=function(e){return Tze(this,e)},Q.$h=function(e,t){S2e(this,e,t)},Q.fi=function(){return lW(),Uzt},Q.hi=function(e){OGe(this,e)},Q.gh=function(){return!this.d&&(this.d=new jT(i7,this,8,5)),this.d},Q.hh=function(){return!this.e&&(this.e=new jT(i7,this,7,4)),this.e},L(zX,`ElkConnectableShapeImpl`,729),q(271,727,{109:1,343:1,85:1,174:1,271:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},nl),Q.xh=function(e){return eJe(this,e)},Q.Ih=function(e,t,n){switch(e){case 3:return fk(this);case 4:return!this.b&&(this.b=new jT(r7,this,4,7)),this.b;case 5:return!this.c&&(this.c=new jT(r7,this,5,8)),this.c;case 6:return!this.a&&(this.a=new F(a7,this,6,6)),this.a;case 7:return Cw(),!this.b&&(this.b=new jT(r7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new jT(r7,this,5,8)),this.c.i<=1));case 8:return Cw(),!!SV(this);case 9:return Cw(),!!fV(this);case 10:return Cw(),!this.b&&(this.b=new jT(r7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new jT(r7,this,5,8)),this.c.i!=0)}return kVe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16,r>=0?eJe(this,n):this.Cb.Qh(this,-1-r,null,n))),vpe(this,P(e,26),n);case 4:return!this.b&&(this.b=new jT(r7,this,4,7)),BL(this.b,e,n);case 5:return!this.c&&(this.c=new jT(r7,this,5,8)),BL(this.c,e,n);case 6:return!this.a&&(this.a=new F(a7,this,6,6)),BL(this.a,e,n)}return pB(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 3:return vpe(this,null,n);case 4:return!this.b&&(this.b=new jT(r7,this,4,7)),RR(this.b,e,n);case 5:return!this.c&&(this.c=new jT(r7,this,5,8)),RR(this.c,e,n);case 6:return!this.a&&(this.a=new F(a7,this,6,6)),RR(this.a,e,n)}return aF(this,e,t,n)},Q.Th=function(e){switch(e){case 3:return!!fk(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new jT(r7,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new jT(r7,this,5,8)),this.c.i<=1));case 8:return SV(this);case 9:return fV(this);case 10:return!this.b&&(this.b=new jT(r7,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new jT(r7,this,5,8)),this.c.i!=0)}return $Le(this,e)},Q.$h=function(e,t){switch(e){case 3:GV(this,P(t,26));return;case 4:!this.b&&(this.b=new jT(r7,this,4,7)),RU(this.b),!this.b&&(this.b=new jT(r7,this,4,7)),FD(this.b,P(t,18));return;case 5:!this.c&&(this.c=new jT(r7,this,5,8)),RU(this.c),!this.c&&(this.c=new jT(r7,this,5,8)),FD(this.c,P(t,18));return;case 6:!this.a&&(this.a=new F(a7,this,6,6)),RU(this.a),!this.a&&(this.a=new F(a7,this,6,6)),FD(this.a,P(t,18));return}pYe(this,e,t)},Q.fi=function(){return lW(),Wzt},Q.hi=function(e){switch(e){case 3:GV(this,null);return;case 4:!this.b&&(this.b=new jT(r7,this,4,7)),RU(this.b);return;case 5:!this.c&&(this.c=new jT(r7,this,5,8)),RU(this.c);return;case 6:!this.a&&(this.a=new F(a7,this,6,6)),RU(this.a);return}cVe(this,e)},Q.Ib=function(){return Dtt(this)},L(zX,`ElkEdgeImpl`,271),q(443,RX,{109:1,343:1,170:1,443:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},il),Q.xh=function(e){return Jqe(this,e)},Q.Ih=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new lw(e7,this,5)),this.a;case 6:return bTe(this);case 7:return t?ZR(this):this.i;case 8:return t?XR(this):this.f;case 9:return!this.g&&(this.g=new jT(a7,this,9,10)),this.g;case 10:return!this.e&&(this.e=new jT(a7,this,10,9)),this.e;case 11:return this.d}return gqe(this,e,t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?Jqe(this,n):this.Cb.Qh(this,-1-i,null,n))),ype(this,P(e,85),n);case 9:return!this.g&&(this.g=new jT(a7,this,9,10)),BL(this.g,e,n);case 10:return!this.e&&(this.e=new jT(a7,this,10,9)),BL(this.e,e,n)}return a=P(RM((r=P(zP(this,16),29),r||(lW(),u7)),t),69),a.uk().xk(this,sR(this),t-PD((lW(),u7)),e,n)},Q.Rh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new lw(e7,this,5)),RR(this.a,e,n);case 6:return ype(this,null,n);case 9:return!this.g&&(this.g=new jT(a7,this,9,10)),RR(this.g,e,n);case 10:return!this.e&&(this.e=new jT(a7,this,10,9)),RR(this.e,e,n)}return WZe(this,e,t,n)},Q.Th=function(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!bTe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return wDe(this,e)},Q.$h=function(e,t){switch(e){case 1:mN(this,O(N(t)));return;case 2:hN(this,O(N(t)));return;case 3:lN(this,O(N(t)));return;case 4:uN(this,O(N(t)));return;case 5:!this.a&&(this.a=new lw(e7,this,5)),RU(this.a),!this.a&&(this.a=new lw(e7,this,5)),FD(this.a,P(t,18));return;case 6:h3e(this,P(t,85));return;case 7:HN(this,P(t,84));return;case 8:VN(this,P(t,84));return;case 9:!this.g&&(this.g=new jT(a7,this,9,10)),RU(this.g),!this.g&&(this.g=new jT(a7,this,9,10)),FD(this.g,P(t,18));return;case 10:!this.e&&(this.e=new jT(a7,this,10,9)),RU(this.e),!this.e&&(this.e=new jT(a7,this,10,9)),FD(this.e,P(t,18));return;case 11:CIe(this,oT(t));return}jze(this,e,t)},Q.fi=function(){return lW(),u7},Q.hi=function(e){switch(e){case 1:mN(this,0);return;case 2:hN(this,0);return;case 3:lN(this,0);return;case 4:uN(this,0);return;case 5:!this.a&&(this.a=new lw(e7,this,5)),RU(this.a);return;case 6:h3e(this,null);return;case 7:HN(this,null);return;case 8:VN(this,null);return;case 9:!this.g&&(this.g=new jT(a7,this,9,10)),RU(this.g);return;case 10:!this.e&&(this.e=new jT(a7,this,10,9)),RU(this.e);return;case 11:CIe(this,null);return}VRe(this,e)},Q.Ib=function(){return I0e(this)},Q.b=0,Q.c=0,Q.d=null,Q.j=0,Q.k=0,L(zX,`ElkEdgeSectionImpl`,443),q(161,118,{109:1,94:1,93:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Ih=function(e,t,n){var r;return e==0?(!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab):qj(this,e-PD(this.fi()),RM((r=P(zP(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n)):(i=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),i.uk().xk(this,sR(this),t-PD(this.fi()),e,n))},Q.Rh=function(e,t,n){var r,i;return t==0?(!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n)):(i=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),i.uk().yk(this,sR(this),t-PD(this.fi()),e,n))},Q.Th=function(e){var t;return e==0?!!this.Ab&&this.Ab.i!=0:_A(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.Wh=function(e){return xat(this,e)},Q.$h=function(e,t){var n;if(e===0){!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return}vL(this,e-PD(this.fi()),RM((n=P(zP(this,16),29),n||this.fi()),e),t)},Q.ai=function(e){cR(this,128,e)},Q.fi=function(){return xW(),LBt},Q.hi=function(e){var t;if(e===0){!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return}AI(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.mi=function(){this.Bb|=1},Q.ni=function(e){return YH(this,e)},Q.Bb=0,L(LX,`EModelElementImpl`,161),q(710,161,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},kf),Q.oi=function(e,t){return Wrt(this,e,t)},Q.pi=function(e){var t,n,r,i,a;if(this.a!=nN(e)||e.Bb&256)throw D(new Uv(Mpt+e.zb+HX));for(r=YO(e);DA(r.a).i!=0;){if(n=P(GU(r,0,(t=P(H(DA(r.a),0),87),a=t.c,M(a,88)?P(a,29):(xW(),t9))),29),vz(n))return i=nN(n).ti().pi(n),P(i,52)._h(e),i;r=YO(n)}return(e.D==null?e.B:e.D)==`java.util.Map$Entry`?new Lve(e):new nve(e)},Q.qi=function(e,t){return uW(this,e,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.a}return qj(this,e-PD((xW(),Q7)),RM((r=P(zP(this,16),29),r||Q7),e),t,n)},Q.Ph=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 1:return this.a&&(n=P(this.a,52).Qh(this,4,c7,n)),YBe(this,P(e,241),n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),Q7)),t),69),i.uk().xk(this,sR(this),t-PD((xW(),Q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 1:return YBe(this,null,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),Q7)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),Q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return _A(this,e-PD((xW(),Q7)),RM((t=P(zP(this,16),29),t||Q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:kZe(this,P(t,241));return}vL(this,e-PD((xW(),Q7)),RM((n=P(zP(this,16),29),n||Q7),e),t)},Q.fi=function(){return xW(),Q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:kZe(this,null);return}AI(this,e-PD((xW(),Q7)),RM((t=P(zP(this,16),29),t||Q7),e))};var h7,Qzt,$zt;L(LX,`EFactoryImpl`,710),q(1019,710,{109:1,2078:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1},al),Q.oi=function(e,t){switch(e.fk()){case 12:return P(t,147).Og();case 13:return yL(t);default:throw D(new Uv(VX+e.ve()+HX))}},Q.pi=function(e){var t,n,r,i,a,o,s,c;switch(e.G==-1&&(e.G=(t=nN(e),t?GR(t.si(),e):-1)),e.G){case 4:return a=new ol,a;case 6:return o=new J_,o;case 7:return s=new Y_,s;case 8:return r=new nl,r;case 9:return n=new rl,n;case 10:return i=new il,i;case 11:return c=new sl,c;default:throw D(new Uv(Mpt+e.zb+HX))}},Q.qi=function(e,t){switch(e.fk()){case 13:case 12:return null;default:throw D(new Uv(VX+e.ve()+HX))}},L(zX,`ElkGraphFactoryImpl`,1019),q(439,161,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1}),Q.Dh=function(){var e,t=(e=P(zP(this,16),29),Kwe(oU(e||this.fi())));return t==null?(Ub(),Ub(),JBt):new Afe(this,t)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.ve()}return qj(this,e-PD(this.fi()),RM((r=P(zP(this,16),29),r||this.fi()),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return _A(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:this.ri(oT(t));return}vL(this,e-PD(this.fi()),RM((n=P(zP(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return xW(),RBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:this.ri(null);return}AI(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.ve=function(){return this.zb},Q.ri=function(e){aP(this,e)},Q.Ib=function(){return wI(this)},Q.zb=null,L(LX,`ENamedElementImpl`,439),q(184,439,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},qCe),Q.xh=function(e){return Qqe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new cD(this,F7,this)),this.rb;case 6:return!this.vb&&(this.vb=new kT(c7,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?P(this.Cb,241):null:FTe(this)}return qj(this,e-PD((xW(),r9)),RM((r=P(zP(this,16),29),r||r9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 4:return this.sb&&(n=P(this.sb,52).Qh(this,1,s7,n)),yVe(this,P(e,469),n);case 5:return!this.rb&&(this.rb=new cD(this,F7,this)),BL(this.rb,e,n);case 6:return!this.vb&&(this.vb=new kT(c7,this,6,7)),BL(this.vb,e,n);case 7:return this.Cb&&(n=(i=this.Db>>16,i>=0?Qqe(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,7,n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),r9)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),r9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 4:return yVe(this,null,n);case 5:return!this.rb&&(this.rb=new cD(this,F7,this)),RR(this.rb,e,n);case 6:return!this.vb&&(this.vb=new kT(c7,this,6,7)),RR(this.vb,e,n);case 7:return JH(this,null,7,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),r9)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),r9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!FTe(this)}return _A(this,e-PD((xW(),r9)),RM((t=P(zP(this,16),29),t||r9),e))},Q.Wh=function(e){return X3e(this,e)||xat(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:aP(this,oT(t));return;case 2:lP(this,oT(t));return;case 3:cP(this,oT(t));return;case 4:kB(this,P(t,469));return;case 5:!this.rb&&(this.rb=new cD(this,F7,this)),RU(this.rb),!this.rb&&(this.rb=new cD(this,F7,this)),FD(this.rb,P(t,18));return;case 6:!this.vb&&(this.vb=new kT(c7,this,6,7)),RU(this.vb),!this.vb&&(this.vb=new kT(c7,this,6,7)),FD(this.vb,P(t,18));return}vL(this,e-PD((xW(),r9)),RM((n=P(zP(this,16),29),n||r9),e),t)},Q.bi=function(e){var t,n;if(e&&this.rb)for(n=new pw(this.rb);n.e!=n.i.gc();)t=OR(n),M(t,360)&&(P(t,360).w=null);cR(this,64,e)},Q.fi=function(){return xW(),r9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:aP(this,null);return;case 2:lP(this,null);return;case 3:cP(this,null);return;case 4:kB(this,null);return;case 5:!this.rb&&(this.rb=new cD(this,F7,this)),RU(this.rb);return;case 6:!this.vb&&(this.vb=new kT(c7,this,6,7)),RU(this.vb);return}AI(this,e-PD((xW(),r9)),RM((t=P(zP(this,16),29),t||r9),e))},Q.mi=function(){wz(this)},Q.si=function(){return!this.rb&&(this.rb=new cD(this,F7,this)),this.rb},Q.ti=function(){return this.sb},Q.ui=function(){return this.ub},Q.vi=function(){return this.xb},Q.wi=function(){return this.yb},Q.xi=function(e){this.ub=e},Q.Ib=function(){var e;return this.Db&64?wI(this):(e=new yw(wI(this)),e.a+=` (nsURI: `,ZS(e,this.yb),e.a+=`, nsPrefix: `,ZS(e,this.xb),e.a+=`)`,e.a)},Q.xb=null,Q.yb=null;var eBt;L(LX,`EPackageImpl`,184),q(556,184,{109:1,2080:1,556:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1},r2e),Q.q=!1,Q.r=!1;var tBt=!1;L(zX,`ElkGraphPackageImpl`,556),q(362,728,{109:1,343:1,174:1,157:1,276:1,362:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},ol),Q.xh=function(e){return Yqe(this,e)},Q.Ih=function(e,t,n){switch(e){case 7:return ITe(this);case 8:return this.a}return FHe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===7?(this.Cb&&(n=(r=this.Db>>16,r>=0?Yqe(this,n):this.Cb.Qh(this,-1-r,null,n))),Iye(this,P(e,174),n)):pB(this,e,t,n)},Q.Rh=function(e,t,n){return t==7?Iye(this,null,n):aF(this,e,t,n)},Q.Th=function(e){switch(e){case 7:return!!ITe(this);case 8:return!NT(``,this.a)}return tUe(this,e)},Q.$h=function(e,t){switch(e){case 7:J3e(this,P(t,174));return;case 8:hIe(this,oT(t));return}mYe(this,e,t)},Q.fi=function(){return lW(),Kzt},Q.hi=function(e){switch(e){case 7:J3e(this,null);return;case 8:hIe(this,``);return}xUe(this,e)},Q.Ib=function(){return BQe(this)},Q.a=``,L(zX,`ElkLabelImpl`,362),q(206,729,{109:1,343:1,84:1,174:1,26:1,276:1,206:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},J_),Q.xh=function(e){return mJe(this,e)},Q.Ih=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new F(m7,this,9,9)),this.c;case 10:return!this.a&&(this.a=new F(p7,this,10,11)),this.a;case 11:return gk(this);case 12:return!this.b&&(this.b=new F(i7,this,12,3)),this.b;case 13:return Cw(),!this.a&&(this.a=new F(p7,this,10,11)),this.a.i>0}return uKe(this,e,t,n)},Q.Ph=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new F(m7,this,9,9)),BL(this.c,e,n);case 10:return!this.a&&(this.a=new F(p7,this,10,11)),BL(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16,r>=0?mJe(this,n):this.Cb.Qh(this,-1-r,null,n))),tme(this,P(e,26),n);case 12:return!this.b&&(this.b=new F(i7,this,12,3)),BL(this.b,e,n)}return GJe(this,e,t,n)},Q.Rh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new F(m7,this,9,9)),RR(this.c,e,n);case 10:return!this.a&&(this.a=new F(p7,this,10,11)),RR(this.a,e,n);case 11:return tme(this,null,n);case 12:return!this.b&&(this.b=new F(i7,this,12,3)),RR(this.b,e,n)}return KJe(this,e,t,n)},Q.Th=function(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!gk(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new F(p7,this,10,11)),this.a.i>0}return Tze(this,e)},Q.$h=function(e,t){switch(e){case 9:!this.c&&(this.c=new F(m7,this,9,9)),RU(this.c),!this.c&&(this.c=new F(m7,this,9,9)),FD(this.c,P(t,18));return;case 10:!this.a&&(this.a=new F(p7,this,10,11)),RU(this.a),!this.a&&(this.a=new F(p7,this,10,11)),FD(this.a,P(t,18));return;case 11:JV(this,P(t,26));return;case 12:!this.b&&(this.b=new F(i7,this,12,3)),RU(this.b),!this.b&&(this.b=new F(i7,this,12,3)),FD(this.b,P(t,18));return}S2e(this,e,t)},Q.fi=function(){return lW(),qzt},Q.hi=function(e){switch(e){case 9:!this.c&&(this.c=new F(m7,this,9,9)),RU(this.c);return;case 10:!this.a&&(this.a=new F(p7,this,10,11)),RU(this.a);return;case 11:JV(this,null);return;case 12:!this.b&&(this.b=new F(i7,this,12,3)),RU(this.b);return}OGe(this,e)},Q.Ib=function(){return V5e(this)},L(zX,`ElkNodeImpl`,206),q(193,729,{109:1,343:1,84:1,174:1,125:1,276:1,193:1,105:1,94:1,93:1,57:1,114:1,52:1,100:1,117:1,118:1},Y_),Q.xh=function(e){return Xqe(this,e)},Q.Ih=function(e,t,n){return e==9?pk(this):uKe(this,e,t,n)},Q.Ph=function(e,t,n){var r;return t===9?(this.Cb&&(n=(r=this.Db>>16,r>=0?Xqe(this,n):this.Cb.Qh(this,-1-r,null,n))),bpe(this,P(e,26),n)):GJe(this,e,t,n)},Q.Rh=function(e,t,n){return t==9?bpe(this,null,n):KJe(this,e,t,n)},Q.Th=function(e){return e==9?!!pk(this):Tze(this,e)},Q.$h=function(e,t){if(e===9){g3e(this,P(t,26));return}S2e(this,e,t)},Q.fi=function(){return lW(),Jzt},Q.hi=function(e){if(e===9){g3e(this,null);return}OGe(this,e)},Q.Ib=function(){return H5e(this)},L(zX,`ElkPortImpl`,193);var nBt=wE(qX,`BasicEMap/Entry`);q(1092,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,117:1,118:1},sl),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.Hb=function(){return Ow(this)},Q.Ai=function(e){gIe(this,P(e,147))},Q.Ih=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return zR(this,e,t,n)},Q.Th=function(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return ER(this,e)},Q.$h=function(e,t){switch(e){case 0:gIe(this,P(t,147));return;case 1:fIe(this,t);return}eV(this,e,t)},Q.fi=function(){return lW(),d7},Q.hi=function(e){switch(e){case 0:gIe(this,null);return;case 1:fIe(this,null);return}BB(this,e)},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e?rP(e):0),this.a},Q.kd=function(){return this.c},Q.zi=function(e){this.a=e},Q.ld=function(e){var t=this.c;return fIe(this,e),t},Q.Ib=function(){var e;return this.Db&64?jV(this):(e=new hy,eC(eC(eC(e,this.b?this.b.Og():PW),Wq),vw(this.c)),e.a)},Q.a=-1,Q.c=null;var g7=L(zX,`ElkPropertyToValueMapEntryImpl`,1092);q(981,1,{},cl),L(YX,`JsonAdapter`,981),q(215,63,gG,ry),L(YX,`JsonImportException`,215),q(851,1,{},V0e),L(YX,`JsonImporter`,851),q(885,1,{},nce),Q.Bi=function(e){qJe(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$0$Type`,885),q(886,1,{},rce),Q.Bi=function(e){K1e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$1$Type`,886),q(894,1,{},Kte),Q.Bi=function(e){HSe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$10$Type`,894),q(896,1,{},ice),Q.Bi=function(e){m1e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$11$Type`,896),q(897,1,{},ace),Q.Bi=function(e){h1e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$12$Type`,897),q(903,1,{},vCe),Q.Bi=function(e){wQe(this.a,this.b,this.c,this.d,P(e,139))},L(YX,`JsonImporter/lambda$13$Type`,903),q(902,1,{},yCe),Q.Bi=function(e){b9e(this.a,this.b,this.c,this.d,P(e,149))},L(YX,`JsonImporter/lambda$14$Type`,902),q(898,1,{},oce),Q.Bi=function(e){nme(this.a,this.b,oT(e))},L(YX,`JsonImporter/lambda$15$Type`,898),q(899,1,{},sce),Q.Bi=function(e){rme(this.a,this.b,oT(e))},L(YX,`JsonImporter/lambda$16$Type`,899),q(900,1,{},cce),Q.Bi=function(e){kqe(this.b,this.a,P(e,139))},L(YX,`JsonImporter/lambda$17$Type`,900),q(901,1,{},lce),Q.Bi=function(e){Aqe(this.b,this.a,P(e,139))},L(YX,`JsonImporter/lambda$18$Type`,901),q(906,1,{},qte),Q.Bi=function(e){KZe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$19$Type`,906),q(887,1,{},Jte),Q.Bi=function(e){_Je(this.a,P(e,139))},L(YX,`JsonImporter/lambda$2$Type`,887),q(904,1,{},ng),Q.Bi=function(e){mN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$20$Type`,904),q(905,1,{},rg),Q.Bi=function(e){hN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$21$Type`,905),q(909,1,{},ig),Q.Bi=function(e){GZe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$22$Type`,909),q(907,1,{},Yte),Q.Bi=function(e){lN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$23$Type`,907),q(908,1,{},ag),Q.Bi=function(e){uN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$24$Type`,908),q(911,1,{},og),Q.Bi=function(e){GYe(this.a,P(e,139))},L(YX,`JsonImporter/lambda$25$Type`,911),q(910,1,{},Xte),Q.Bi=function(e){USe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$26$Type`,910),q(912,1,YW,uce),Q.Ad=function(e){FMe(this.b,this.a,oT(e))},L(YX,`JsonImporter/lambda$27$Type`,912),q(913,1,YW,dce),Q.Ad=function(e){IMe(this.b,this.a,oT(e))},L(YX,`JsonImporter/lambda$28$Type`,913),q(914,1,{},fce),Q.Bi=function(e){I2e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$29$Type`,914),q(890,1,{},Zte),Q.Bi=function(e){gUe(this.a,P(e,149))},L(YX,`JsonImporter/lambda$3$Type`,890),q(915,1,{},pce),Q.Bi=function(e){r3e(this.a,this.b,P(e,139))},L(YX,`JsonImporter/lambda$30$Type`,915),q(916,1,{},Qte),Q.Bi=function(e){HNe(this.a,N(e))},L(YX,`JsonImporter/lambda$31$Type`,916),q(917,1,{},sg),Q.Bi=function(e){GNe(this.a,N(e))},L(YX,`JsonImporter/lambda$32$Type`,917),q(918,1,{},cg),Q.Bi=function(e){UNe(this.a,N(e))},L(YX,`JsonImporter/lambda$33$Type`,918),q(919,1,{},lg),Q.Bi=function(e){WNe(this.a,N(e))},L(YX,`JsonImporter/lambda$34$Type`,919),q(920,1,{},$te),Q.Bi=function(e){CZe(this.a,P(e,57))},L(YX,`JsonImporter/lambda$35$Type`,920),q(921,1,{},ug),Q.Bi=function(e){wZe(this.a,P(e,57))},L(YX,`JsonImporter/lambda$36$Type`,921),q(925,1,{},_Ce),L(YX,`JsonImporter/lambda$37$Type`,925),q(922,1,YW,d_e),Q.Ad=function(e){rLe(this.a,this.c,this.b,P(e,372))},L(YX,`JsonImporter/lambda$38$Type`,922),q(923,1,YW,mce),Q.Ad=function(e){Mce(this.a,this.b,P(e,170))},L(YX,`JsonImporter/lambda$39$Type`,923),q(888,1,{},dg),Q.Bi=function(e){mN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$4$Type`,888),q(924,1,YW,hce),Q.Ad=function(e){Nce(this.a,this.b,P(e,170))},L(YX,`JsonImporter/lambda$40$Type`,924),q(926,1,YW,f_e),Q.Ad=function(e){iLe(this.a,this.b,this.c,P(e,8))},L(YX,`JsonImporter/lambda$41$Type`,926),q(889,1,{},ene),Q.Bi=function(e){hN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$5$Type`,889),q(893,1,{},tne),Q.Bi=function(e){_Ue(this.a,P(e,149))},L(YX,`JsonImporter/lambda$6$Type`,893),q(891,1,{},nne),Q.Bi=function(e){lN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$7$Type`,891),q(892,1,{},fg),Q.Bi=function(e){uN(this.a,O(N(e)))},L(YX,`JsonImporter/lambda$8$Type`,892),q(895,1,{},pg),Q.Bi=function(e){KYe(this.a,P(e,139))},L(YX,`JsonImporter/lambda$9$Type`,895),q(945,1,YW,mg),Q.Ad=function(e){UD(this.a,new WD(oT(e)))},L(YX,`JsonMetaDataConverter/lambda$0$Type`,945),q(946,1,YW,rne),Q.Ad=function(e){hxe(this.a,P(e,244))},L(YX,`JsonMetaDataConverter/lambda$1$Type`,946),q(947,1,YW,hg),Q.Ad=function(e){gEe(this.a,P(e,144))},L(YX,`JsonMetaDataConverter/lambda$2$Type`,947),q(948,1,YW,gg),Q.Ad=function(e){gxe(this.a,P(e,160))},L(YX,`JsonMetaDataConverter/lambda$3$Type`,948),q(244,24,{3:1,35:1,24:1,244:1},IS);var _7,v7,rBt,y7,b7,x7,iBt,aBt,S7=SN(ZK,`GraphFeature`,244,fQ,MPe,D_e),oBt;q(11,1,{35:1,147:1},vg,CT,aC,FC),Q.Dd=function(e){return que(this,P(e,147))},Q.Fb=function(e){return vwe(this,e)},Q.Rg=function(){return DR(this)},Q.Og=function(){return this.b},Q.Hb=function(){return IF(this.b)},Q.Ib=function(){return this.b},L(ZK,`Property`,11),q(657,1,kK,_g),Q.Le=function(e,t){return dHe(this,P(e,105),P(t,105))},Q.Fb=function(e){return this===e},Q.Me=function(){return new Em(this)},L(ZK,`PropertyHolderComparator`,657),q(698,1,zW,bg),Q.Nb=function(e){_D(this,e)},Q.Pb=function(){return zMe(this)},Q.Qb=function(){Tie()},Q.Ob=function(){return!!this.a},L(eZ,`ElkGraphUtil/AncestorIterator`,698);var sBt=wE(qX,`EList`);q(71,56,{20:1,31:1,56:1,18:1,16:1,71:1,61:1}),Q._c=function(e,t){FI(this,e,t)},Q.Ec=function(e){return Pj(this,e)},Q.ad=function(e,t){return YRe(this,e,t)},Q.Fc=function(e){return FD(this,e)},Q.Gi=function(){return new Lw(this)},Q.Hi=function(){return new Rw(this)},Q.Ii=function(e){return AN(this,e)},Q.Ji=function(){return!0},Q.Ki=function(e,t){},Q.Li=function(){},Q.Mi=function(e,t){Dj(this,e,t)},Q.Ni=function(e,t,n){},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Fb=function(e){return Y8e(this,e)},Q.Hb=function(){return ORe(this)},Q.Qi=function(){return!1},Q.Jc=function(){return new pw(this)},Q.cd=function(){return new Iw(this)},Q.dd=function(e){var t=this.gc();if(e<0||e>t)throw D(new MT(e,t));return new Qbe(this,e)},Q.Si=function(e,t){this.Ri(e,this.bd(t))},Q.Kc=function(e){return SM(this,e)},Q.Ui=function(e,t){return t},Q.fd=function(e,t){return WR(this,e,t)},Q.Ib=function(){return YHe(this)},Q.Wi=function(){return!0},Q.Xi=function(e,t){return LF(this,t)},L(qX,`AbstractEList`,71),q(67,71,rZ,ll,WM,CLe),Q.Ci=function(e,t){return mB(this,e,t)},Q.Di=function(e){return DKe(this,e)},Q.Ei=function(e,t){EI(this,e,t)},Q.Fi=function(e){sj(this,e)},Q.Yi=function(e){return WMe(this,e)},Q.$b=function(){oj(this)},Q.Gc=function(e){return Wz(this,e)},Q.Xb=function(e){return H(this,e)},Q.Zi=function(e){var t,n,r;++this.j,n=this.g==null?0:this.g.length,e>n&&(r=this.g,t=n+(n/2|0)+4,t<e&&(t=e),this.g=this.$i(t),r!=null&&nU(r,0,this.g,0,this.i))},Q.bd=function(e){return Lqe(this,e)},Q.dc=function(){return this.i==0},Q.Ri=function(e,t){return pV(this,e,t)},Q.$i=function(e){return V(sQ,NW,1,e,5,1)},Q.Ti=function(e){return this.g[e]},Q.ed=function(e){return Oz(this,e)},Q.Vi=function(e,t){return xM(this,e,t)},Q.gc=function(){return this.i},Q.Nc=function(){return mke(this)},Q.Oc=function(e){return wUe(this,e)},Q.i=0;var cBt=L(qX,`BasicEList`,67),lBt=wE(qX,`TreeIterator`);q(697,67,lmt),Q.Nb=function(e){_D(this,e)},Q.Ob=function(){return this.g==null&&!this.c?jTe(this):this.g==null||this.i!=0&&P(this.g[this.i-1],50).Ob()},Q.Pb=function(){return FV(this)},Q.Qb=function(){if(!this.e)throw D(new Wv(`There is no valid object to remove.`));this.e.Qb()},Q.c=!1,L(qX,`AbstractTreeIterator`,697),q(605,697,lmt,AC),Q._i=function(e){var t=P(e,57).Dh().Jc();return M(t,287)&&P(t,287).ul(new ul),t},L(eZ,`ElkGraphUtil/PropertiesSkippingTreeIterator`,605),q(949,1,{},ul),L(eZ,`ElkGraphUtil/PropertiesSkippingTreeIterator/1`,949);var C7,uBt,w7=L(eZ,`ElkReflect`,null);q(883,1,bX,dl),Q.Qg=function(e){return Tk(),aDe(P(e,182))},L(eZ,`ElkReflect/lambda$0$Type`,883);var T7;wE(qX,`ResourceLocator`),q(1046,1,{}),L(qX,`DelegatingResourceLocator`,1046),q(1047,1046,{}),L(`org.eclipse.emf.common`,`EMFPlugin`,1047);var dBt=wE(Wmt,`Adapter`),fBt=wE(Wmt,`Notification`);q(1144,1,Gmt),Q.aj=function(){return this.d},Q.bj=function(e){},Q.cj=function(e){this.d=e},Q.dj=function(e){this.d==e&&(this.d=null)},Q.d=null,L(NX,`AdapterImpl`,1144),q(2058,71,Kmt),Q.Ci=function(e,t){return pUe(this,e,t)},Q.Di=function(e){var t,n,r;if(++this.j,e.dc())return!1;for(t=this.Cj(),r=e.Jc();r.Ob();)n=r.Pb(),this.pj(this.Xi(t,n)),++t;return!0},Q.Ei=function(e,t){xpe(this,e,t)},Q.Fi=function(e){Kxe(this,e)},Q.nj=function(){return this.qj()},Q.$b=function(){fT(this,this.Cj(),this.Dj())},Q.Gc=function(e){return this.sj(e)},Q.Hc=function(e){return this.tj(e)},Q.oj=function(e,t){this.zj().Sm()},Q.pj=function(e){this.zj().Sm()},Q.qj=function(){return this.zj()},Q.rj=function(){this.zj().Sm()},Q.sj=function(e){return this.zj().Sm()},Q.tj=function(e){return this.zj().Sm()},Q.uj=function(e){return this.zj().Sm()},Q.vj=function(e){return this.zj().Sm()},Q.wj=function(){return this.zj().Sm()},Q.xj=function(e){return this.zj().Sm()},Q.yj=function(){return this.zj().Sm()},Q.Aj=function(e){return this.zj().Sm()},Q.Bj=function(e,t){return this.zj().Sm()},Q.Cj=function(){return this.zj().Sm()},Q.Dj=function(){return this.zj().Sm()},Q.Ej=function(e){return this.zj().Sm()},Q.Fj=function(){return this.zj().Sm()},Q.Fb=function(e){return this.uj(e)},Q.Xb=function(e){return this.Ui(e,this.vj(e))},Q.Hb=function(){return this.wj()},Q.bd=function(e){return this.xj(e)},Q.dc=function(){return this.yj()},Q.Ri=function(e,t){return EZe(this,e,t)},Q.Ti=function(e){return this.vj(e)},Q.ed=function(e){return yE(this,e)},Q.Kc=function(e){var t=this.bd(e);return t>=0&&(this.ed(t),!0)},Q.Vi=function(e,t){return this.Bj(e,this.Xi(e,t))},Q.gc=function(){return this.Cj()},Q.Nc=function(){return this.Dj()},Q.Oc=function(e){return this.Ej(e)},Q.Ib=function(){return this.Fj()},L(qX,`DelegatingEList`,2058),q(2059,2058,Kmt),Q.Ci=function(e,t){return U9e(this,e,t)},Q.Di=function(e){return this.Ci(this.Cj(),e)},Q.Ei=function(e,t){i2e(this,e,t)},Q.Fi=function(e){M0e(this,e)},Q.Ji=function(){return!this.Kj()},Q.$b=function(){zU(this)},Q.Gj=function(e,t,n,r,i){return new gwe(this,e,t,n,r,i)},Q.Hj=function(e){jP(this.hj(),e)},Q.Ij=function(){return null},Q.Jj=function(){return-1},Q.hj=function(){return null},Q.Kj=function(){return!1},Q.Lj=function(e,t){return t},Q.Mj=function(e,t){return t},Q.Nj=function(){return!1},Q.Oj=function(){return!this.yj()},Q.Ri=function(e,t){var n,r;return this.Nj()?(r=this.Oj(),n=EZe(this,e,t),this.Hj(this.Gj(7,G(t),n,e,r)),n):EZe(this,e,t)},Q.ed=function(e){var t,n,r,i;return this.Nj()?(n=null,r=this.Oj(),t=this.Gj(4,i=yE(this,e),null,e,r),this.Kj()&&i&&(n=this.Mj(i,n)),n?(n.lj(t),n.mj()):this.Hj(t),i):(i=yE(this,e),this.Kj()&&i&&(n=this.Mj(i,null),n&&n.mj()),i)},Q.Vi=function(e,t){return W9e(this,e,t)},L(NX,`DelegatingNotifyingListImpl`,2059),q(151,1,uZ),Q.lj=function(e){return QYe(this,e)},Q.mj=function(){nM(this)},Q.ej=function(){return this.d},Q.Ij=function(){return null},Q.Pj=function(){return null},Q.fj=function(e){return-1},Q.gj=function(){return q6e(this)},Q.hj=function(){return null},Q.ij=function(){return J6e(this)},Q.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},Q.Qj=function(){return!1},Q.kj=function(e){var t,n,r,i,a,o,s,c,l,u,d;switch(this.d){case 1:case 2:switch(i=e.ej(),i){case 1:case 2:if(a=e.hj(),j(a)===j(this.hj())&&this.fj(null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0}case 4:if(i=e.ej(),i===4&&(a=e.hj(),j(a)===j(this.hj())&&this.fj(null)==e.fj(null)))return l=ort(this),c=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,o=e.jj(),this.d=6,d=new WM(2),c<=o?(Pj(d,this.n),Pj(d,e.ij()),this.g=U(k(q9,1),IG,30,15,[this.o=c,o+1])):(Pj(d,e.ij()),Pj(d,this.n),this.g=U(k(q9,1),IG,30,15,[this.o=o,c])),this.n=d,l||(this.o=-2-this.o-1),!0;break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),j(a)===j(this.hj())&&this.fj(null)==e.fj(null))){for(l=ort(this),o=e.jj(),u=P(this.g,54),r=V(q9,IG,30,u.length+1,15,1),t=0;t<u.length&&(s=u[t],s<=o);)r[t++]=s,++o;for(n=P(this.n,16),n._c(t,e.ij()),r[t]=o;++t<r.length;)r[t]=u[t-1];return this.g=r,l||(this.o=-2-r[0]),!0}}return!1},Q.Ib=function(){var e,t,n,r=new yw(Gy(this.Pm)+`@`+(t=rP(this)>>>0,t.toString(16)));switch(r.a+=` (eventType: `,this.d){case 1:r.a+=`SET`;break;case 2:r.a+=`UNSET`;break;case 3:r.a+=`ADD`;break;case 5:r.a+=`ADD_MANY`;break;case 4:r.a+=`REMOVE`;break;case 6:r.a+=`REMOVE_MANY`;break;case 7:r.a+=`MOVE`;break;case 8:r.a+=`REMOVING_ADAPTER`;break;case 9:r.a+=`RESOLVE`;break;default:Cie(r,this.d)}if(a7e(this)&&(r.a+=`, touch: true`),r.a+=`, position: `,Cie(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=`, notifier: `,XS(r,this.hj()),r.a+=`, feature: `,XS(r,this.Ij()),r.a+=`, oldValue: `,XS(r,J6e(this)),r.a+=`, newValue: `,this.d==6&&M(this.g,54)){for(n=P(this.g,54),r.a+=`[`,e=0;e<n.length;)r.a+=n[e],++e<n.length&&(r.a+=MW);r.a+=`]`}else XS(r,q6e(this));return r.a+=`, isTouch: `,Uy(r,a7e(this)),r.a+=`, wasSet: `,Uy(r,ort(this)),r.a+=`)`,r.a},Q.d=0,Q.e=0,Q.f=0,Q.j=0,Q.k=0,Q.o=0,Q.p=0,L(NX,`NotificationImpl`,151),q(1158,151,uZ,gwe),Q.Ij=function(){return this.a.Ij()},Q.fj=function(e){return this.a.Jj()},Q.hj=function(){return this.a.hj()},L(NX,`DelegatingNotifyingListImpl/1`,1158),q(252,67,rZ,fl,Ry),Q.Ec=function(e){return mUe(this,P(e,373))},Q.lj=function(e){return mUe(this,e)},Q.mj=function(){var e,t,n;for(e=0;e<this.i;++e)t=P(this.g[e],373),n=t.hj(),n!=null&&t.ej()!=-1&&P(n,94).uh(t)},Q.$i=function(e){return V(fBt,NW,373,e,0,1)},L(NX,`NotificationChainImpl`,252),q(1486,93,Tpt),Q.rh=function(){return this.e},Q.th=function(){return!!(this.f&1)},Q.f=1,L(NX,`NotifierImpl`,1486),q(2056,67,rZ),Q.Ci=function(e,t){return tU(this,e,t)},Q.Di=function(e){return this.Ci(this.i,e)},Q.Ei=function(e,t){N0e(this,e,t)},Q.Fi=function(e){CV(this,e)},Q.Ji=function(){return!this.Kj()},Q.$b=function(){RU(this)},Q.Gj=function(e,t,n,r,i){return new _we(this,e,t,n,r,i)},Q.Hj=function(e){jP(this.hj(),e)},Q.Ij=function(){return null},Q.Jj=function(){return-1},Q.hj=function(){return null},Q.Kj=function(){return!1},Q.Rj=function(){return!1},Q.Lj=function(e,t){return t},Q.Mj=function(e,t){return t},Q.Nj=function(){return!1},Q.Oj=function(){return this.i!=0},Q.Ri=function(e,t){return GI(this,e,t)},Q.ed=function(e){return pH(this,e)},Q.Vi=function(e,t){return Ket(this,e,t)},Q.Sj=function(e,t){return t},Q.Tj=function(e,t){return t},Q.Uj=function(e,t,n){return n},L(NX,`NotifyingListImpl`,2056),q(1157,151,uZ,_we),Q.Ij=function(){return this.a.Ij()},Q.fj=function(e){return this.a.Jj()},Q.hj=function(){return this.a.hj()},L(NX,`NotifyingListImpl/1`,1157),q(950,67,rZ,Cpe),Q.Gc=function(e){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new DE(this),this.a=this.j),ub(this.b,e)):Wz(this,e)},Q.Wi=function(){return!0},Q.a=0,L(qX,`AbstractEList/1`,950),q(306,99,$G,MT),L(qX,`AbstractEList/BasicIndexOutOfBoundsException`,306),q(42,1,zW,pw),Q.Nb=function(e){_D(this,e)},Q.Vj=function(){if(this.i.j!=this.f)throw D(new s_)},Q.Wj=function(){return OR(this)},Q.Ob=function(){return this.e!=this.i.gc()},Q.Pb=function(){return this.Wj()},Q.Qb=function(){Xz(this)},Q.e=0,Q.f=0,Q.g=-1,L(qX,`AbstractEList/EIterator`,42),q(286,42,GW,Iw,Qbe),Q.Qb=function(){Xz(this)},Q.Rb=function(e){zUe(this,e)},Q.Xj=function(){var e;try{return e=this.d.Xb(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=lF(e),M(e,99)?(this.Vj(),D(new f_)):D(e)}},Q.Yj=function(e){LKe(this,e)},Q.Sb=function(){return this.e!=0},Q.Tb=function(){return this.e},Q.Ub=function(){return this.Xj()},Q.Vb=function(){return this.e-1},Q.Wb=function(e){this.Yj(e)},L(qX,`AbstractEList/EListIterator`,286),q(355,42,zW,Lw),Q.Wj=function(){return kR(this)},Q.Qb=function(){throw D(new d_)},L(qX,`AbstractEList/NonResolvingEIterator`,355),q(391,286,GW,Rw,Fme),Q.Rb=function(e){throw D(new d_)},Q.Wj=function(){var e;try{return e=this.c.Ti(this.e),this.Vj(),this.g=this.e++,e}catch(e){throw e=lF(e),M(e,99)?(this.Vj(),D(new f_)):D(e)}},Q.Xj=function(){var e;try{return e=this.c.Ti(--this.e),this.Vj(),this.g=this.e,e}catch(e){throw e=lF(e),M(e,99)?(this.Vj(),D(new f_)):D(e)}},Q.Qb=function(){throw D(new d_)},Q.Wb=function(e){throw D(new d_)},L(qX,`AbstractEList/NonResolvingEListIterator`,391),q(2045,71,Jmt),Q.Ci=function(e,t){var n,r,i=t.gc(),a,o,s,c,l,u,d,f;if(i!=0){for(l=P(zP(this.a,4),129),u=l==null?0:l.length,f=u+i,r=UF(this,f),d=u-e,d>0&&nU(l,e,r,e+i,d),c=t.Jc(),o=0;o<i;++o)s=c.Pb(),n=e+o,IC(r,n,LF(this,s));for(MR(this,r),a=0;a<i;++a)s=r[e],this.Ki(e,s),++e;return!0}return++this.j,!1},Q.Di=function(e){var t,n,r=e.gc(),i,a,o,s,c,l;if(r!=0){for(c=(n=P(zP(this.a,4),129),n==null?0:n.length),l=c+r,t=UF(this,l),s=e.Jc(),a=c;a<l;++a)o=s.Pb(),IC(t,a,LF(this,o));for(MR(this,t),i=c;i<l;++i)o=t[i],this.Ki(i,o);return!0}return++this.j,!1},Q.Ei=function(e,t){var n,r=P(zP(this.a,4),129),i=r==null?0:r.length,a;n=UF(this,i+1),a=LF(this,t),e!=i&&nU(r,e,n,e+1,i-e),BD(n,e,a),MR(this,n),this.Ki(e,t)},Q.Fi=function(e){var t,n,r=(n=P(zP(this.a,4),129),n==null?0:n.length);t=UF(this,r+1),IC(t,r,LF(this,e)),MR(this,t),this.Ki(r,e)},Q.Gi=function(){return new zAe(this)},Q.Hi=function(){return new Obe(this)},Q.Ii=function(e){var t,n=(t=P(zP(this.a,4),129),t==null?0:t.length);if(e<0||e>n)throw D(new MT(e,n));return new SSe(this,e)},Q.$b=function(){var e,t;++this.j,e=P(zP(this.a,4),129),t=e==null?0:e.length,MR(this,null),Dj(this,t,e)},Q.Gc=function(e){var t=P(zP(this.a,4),129),n,r,i,a;if(t!=null){if(e!=null){for(r=t,i=0,a=r.length;i<a;++i)if(n=r[i],OI(e,n))return!0}else for(r=t,i=0,a=r.length;i<a;++i)if(n=r[i],j(n)===j(e))return!0}return!1},Q.Xb=function(e){var t=P(zP(this.a,4),129),n=t==null?0:t.length;if(e>=n)throw D(new MT(e,n));return t[e]},Q.bd=function(e){var t=P(zP(this.a,4),129),n,r;if(t!=null){if(e!=null){for(n=0,r=t.length;n<r;++n)if(OI(e,t[n]))return n}else for(n=0,r=t.length;n<r;++n)if(j(t[n])===j(e))return n}return-1},Q.dc=function(){return P(zP(this.a,4),129)==null},Q.Jc=function(){return new RAe(this)},Q.cd=function(){return new Dbe(this)},Q.dd=function(e){var t,n=(t=P(zP(this.a,4),129),t==null?0:t.length);if(e<0||e>n)throw D(new MT(e,n));return new xSe(this,e)},Q.Ri=function(e,t){var n=$Ue(this),r,i=n==null?0:n.length;if(e>=i)throw D(new Fv(smt+e+nZ+i));if(t>=i)throw D(new Fv(cmt+t+nZ+i));return r=n[t],e!=t&&(e<t?nU(n,e,n,e+1,t-e):nU(n,t+1,n,t,e-t),BD(n,e,r),MR(this,n)),r},Q.Ti=function(e){return P(zP(this.a,4),129)[e]},Q.ed=function(e){return x0e(this,e)},Q.Vi=function(e,t){var n=$Ue(this),r=n[e];return IC(n,e,LF(this,t)),MR(this,n),r},Q.gc=function(){var e;return e=P(zP(this.a,4),129),e==null?0:e.length},Q.Nc=function(){var e=P(zP(this.a,4),129),t,n=e==null?0:e.length;return t=V(dBt,qmt,415,n,0,1),n>0&&nU(e,0,t,0,n),t},Q.Oc=function(e){var t=P(zP(this.a,4),129),n,r=t==null?0:t.length;return r>0&&(e.length<r&&(n=bN(WF(e).c,r),e=n),nU(t,0,e,0,r)),e.length>r&&BD(e,r,null),e};var pBt;L(qX,`ArrayDelegatingEList`,2045),q(1033,42,zW,RAe),Q.Vj=function(){if(this.b.j!=this.f||j(P(zP(this.b.a,4),129))!==j(this.a))throw D(new s_)},Q.Qb=function(){Xz(this),this.a=P(zP(this.b.a,4),129)},L(qX,`ArrayDelegatingEList/EIterator`,1033),q(712,286,GW,Dbe,xSe),Q.Vj=function(){if(this.b.j!=this.f||j(P(zP(this.b.a,4),129))!==j(this.a))throw D(new s_)},Q.Yj=function(e){LKe(this,e),this.a=P(zP(this.b.a,4),129)},Q.Qb=function(){Xz(this),this.a=P(zP(this.b.a,4),129)},L(qX,`ArrayDelegatingEList/EListIterator`,712),q(1034,355,zW,zAe),Q.Vj=function(){if(this.b.j!=this.f||j(P(zP(this.b.a,4),129))!==j(this.a))throw D(new s_)},L(qX,`ArrayDelegatingEList/NonResolvingEIterator`,1034),q(713,391,GW,Obe,SSe),Q.Vj=function(){if(this.b.j!=this.f||j(P(zP(this.b.a,4),129))!==j(this.a))throw D(new s_)},L(qX,`ArrayDelegatingEList/NonResolvingEListIterator`,713),q(606,306,$G,oC),L(qX,`BasicEList/BasicIndexOutOfBoundsException`,606),q(699,67,rZ,xce),Q._c=function(e,t){throw D(new d_)},Q.Ec=function(e){throw D(new d_)},Q.ad=function(e,t){throw D(new d_)},Q.Fc=function(e){throw D(new d_)},Q.$b=function(){throw D(new d_)},Q.Zi=function(e){throw D(new d_)},Q.Jc=function(){return this.Gi()},Q.cd=function(){return this.Hi()},Q.dd=function(e){return this.Ii(e)},Q.Ri=function(e,t){throw D(new d_)},Q.Si=function(e,t){throw D(new d_)},Q.ed=function(e){throw D(new d_)},Q.Kc=function(e){throw D(new d_)},Q.fd=function(e,t){throw D(new d_)},L(qX,`BasicEList/UnmodifiableEList`,699),q(711,1,{3:1,20:1,18:1,16:1,61:1,587:1}),Q._c=function(e,t){Oue(this,e,P(t,45))},Q.Ec=function(e){return Pfe(this,P(e,45))},Q.Ic=function(e){UA(this,e)},Q.Xb=function(e){return P(H(this.c,e),136)},Q.Ri=function(e,t){return P(this.c.Ri(e,t),45)},Q.Si=function(e,t){kue(this,e,P(t,45))},Q.ed=function(e){return P(this.c.ed(e),45)},Q.fd=function(e,t){return fxe(this,e,P(t,45))},Q.gd=function(e){uP(this,e)},Q.Lc=function(){return new Pk(this,16)},Q.Mc=function(){return new OE(null,new Pk(this,16))},Q.ad=function(e,t){return this.c.ad(e,t)},Q.Fc=function(e){return this.c.Fc(e)},Q.$b=function(){this.c.$b()},Q.Gc=function(e){return this.c.Gc(e)},Q.Hc=function(e){return cF(this.c,e)},Q.Zj=function(){var e,t,n;if(this.d==null){for(this.d=V(cBt,Ymt,67,2*this.f+1,0,1),n=this.e,this.f=0,t=this.c.Jc();t.e!=t.i.gc();)e=P(t.Wj(),136),$R(this,e);this.e=n}},Q.Fb=function(e){return qme(this,e)},Q.Hb=function(){return ORe(this.c)},Q.bd=function(e){return this.c.bd(e)},Q.$j=function(){this.c=new xg(this)},Q.dc=function(){return this.f==0},Q.Jc=function(){return this.c.Jc()},Q.cd=function(){return this.c.cd()},Q.dd=function(e){return this.c.dd(e)},Q._j=function(){return Tj(this)},Q.ak=function(e,t,n){return new g_e(e,t,n)},Q.bk=function(){return new hl},Q.Kc=function(e){return zFe(this,e)},Q.gc=function(){return this.f},Q.hd=function(e,t){return new Nk(this.c,e,t)},Q.Nc=function(){return this.c.Nc()},Q.Oc=function(e){return this.c.Oc(e)},Q.Ib=function(){return YHe(this.c)},Q.e=0,Q.f=0,L(qX,`BasicEMap`,711),q(1028,67,rZ,xg),Q.Ki=function(e,t){wne(this,P(t,136))},Q.Ni=function(e,t,n){var r;++(r=this,P(t,136),r).a.e},Q.Oi=function(e,t){Tne(this,P(t,136))},Q.Pi=function(e,t,n){Qde(this,P(t,136),P(n,136))},Q.Mi=function(e,t){WLe(this.a)},L(qX,`BasicEMap/1`,1028),q(1029,67,rZ,hl),Q.$i=function(e){return V(mBt,Xmt,612,e,0,1)},L(qX,`BasicEMap/2`,1029),q(1030,UW,WW,Sg),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return LL(this.a,e)},Q.Jc=function(){return this.a.f==0?(mT(),E7.a):new uie(this.a)},Q.Kc=function(e){var t=this.a.f;return aR(this.a,e),this.a.f!=t},Q.gc=function(){return this.a.f},L(qX,`BasicEMap/3`,1030),q(1031,31,HW,ine),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){return X8e(this.a,e)},Q.Jc=function(){return this.a.f==0?(mT(),E7.a):new die(this.a)},Q.gc=function(){return this.a.f},L(qX,`BasicEMap/4`,1031),q(1032,UW,WW,Cg),Q.$b=function(){this.a.c.$b()},Q.Gc=function(e){var t,n,r,i,a,o,s,c,l;if(this.a.f>0&&M(e,45)&&(this.a.Zj(),c=P(e,45),s=c.jd(),i=s==null?0:rP(s),a=jpe(this.a,i),t=this.a.d[a],t)){for(n=P(t.g,374),l=t.i,o=0;o<l;++o)if(r=n[o],r.yi()==i&&r.Fb(c))return!0}return!1},Q.Jc=function(){return this.a.f==0?(mT(),E7.a):new hCe(this.a)},Q.Kc=function(e){return v2e(this,e)},Q.gc=function(){return this.a.f},L(qX,`BasicEMap/5`,1032),q(613,1,zW,hCe),Q.Nb=function(e){_D(this,e)},Q.Ob=function(){return this.b!=-1},Q.Pb=function(){var e;if(this.f.e!=this.c)throw D(new s_);if(this.b==-1)throw D(new f_);return this.d=this.a,this.e=this.b,BJe(this),e=P(this.f.d[this.d].g[this.e],136),this.ck(e)},Q.Qb=function(){if(this.f.e!=this.c)throw D(new s_);if(this.e==-1)throw D(new l_);this.f.c.Kc(H(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},Q.ck=function(e){return e},Q.a=0,Q.b=-1,Q.c=0,Q.d=0,Q.e=0,L(qX,`BasicEMap/BasicEMapIterator`,613),q(1026,613,zW,uie),Q.ck=function(e){return e.jd()},L(qX,`BasicEMap/BasicEMapKeyIterator`,1026),q(1027,613,zW,die),Q.ck=function(e){return e.kd()},L(qX,`BasicEMap/BasicEMapValueIterator`,1027),q(1025,1,VW,wg),Q.wc=function(e){EP(this,e)},Q.$b=function(){this.a.c.$b()},Q._b=function(e){return kce(this,e)},Q.uc=function(e){return X8e(this.a,e)},Q.vc=function(){return aMe(this.a)},Q.Fb=function(e){return qme(this.a,e)},Q.xc=function(e){return VL(this.a,e)},Q.Hb=function(){return ORe(this.a.c)},Q.dc=function(){return this.a.f==0},Q.ec=function(){return oMe(this.a)},Q.yc=function(e,t){return Uz(this.a,e,t)},Q.Ac=function(e){return aR(this.a,e)},Q.gc=function(){return this.a.f},Q.Ib=function(){return YHe(this.a.c)},Q.Bc=function(){return sMe(this.a)},L(qX,`BasicEMap/DelegatingMap`,1025),q(612,1,{45:1,136:1,612:1},g_e),Q.Fb=function(e){var t;return M(e,45)?(t=P(e,45),(this.b==null?j(this.b)===j(t.jd()):OI(this.b,t.jd()))&&(this.c==null?j(this.c)===j(t.kd()):OI(this.c,t.kd()))):!1},Q.yi=function(){return this.a},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return this.a^(this.c==null?0:rP(this.c))},Q.zi=function(e){this.a=e},Q.Ai=function(e){throw D(new Yg)},Q.ld=function(e){var t=this.c;return this.c=e,t},Q.Ib=function(){return this.b+`->`+this.c},Q.a=0;var mBt=L(qX,`BasicEMap/EntryImpl`,612);q(535,1,{},pl),L(qX,`BasicEMap/View`,535);var E7;q(770,1,{}),Q.Fb=function(e){return C2e((jO(),IQ),e)},Q.Hb=function(){return Sze((jO(),IQ))},Q.Ib=function(){return EB((jO(),IQ))},L(qX,`ECollections/BasicEmptyUnmodifiableEList`,770),q(1303,1,GW,ml),Q.Nb=function(e){_D(this,e)},Q.Rb=function(e){throw D(new d_)},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Pb=function(){throw D(new f_)},Q.Tb=function(){return 0},Q.Ub=function(){throw D(new f_)},Q.Vb=function(){return-1},Q.Qb=function(){throw D(new d_)},Q.Wb=function(e){throw D(new d_)},L(qX,`ECollections/BasicEmptyUnmodifiableEList/1`,1303),q(1301,770,{20:1,18:1,16:1,61:1},Z_),Q._c=function(e,t){Jie()},Q.Ec=function(e){return qie()},Q.ad=function(e,t){return Yie()},Q.Fc=function(e){return Xie()},Q.$b=function(){Zie()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){UA(this,e)},Q.Xb=function(e){return zce((jO(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return Qie()},Q.Si=function(e,t){$ie()},Q.ed=function(e){return eae()},Q.Kc=function(e){return tae()},Q.fd=function(e,t){return nae()},Q.gc=function(){return 0},Q.gd=function(e){uP(this,e)},Q.Lc=function(){return new Pk(this,16)},Q.Mc=function(){return new OE(null,new Pk(this,16))},Q.hd=function(e,t){return jO(),new Nk(IQ,e,t)},Q.Nc=function(){return Qye((jO(),IQ))},Q.Oc=function(e){return jO(),lz(IQ,e)},L(qX,`ECollections/EmptyUnmodifiableEList`,1301),q(1302,770,{20:1,18:1,16:1,61:1,587:1},Q_),Q._c=function(e,t){Jie()},Q.Ec=function(e){return qie()},Q.ad=function(e,t){return Yie()},Q.Fc=function(e){return Xie()},Q.$b=function(){Zie()},Q.Gc=function(e){return!1},Q.Hc=function(e){return!1},Q.Ic=function(e){UA(this,e)},Q.Xb=function(e){return zce((jO(),e)),null},Q.bd=function(e){return-1},Q.dc=function(){return!0},Q.Jc=function(){return this.a},Q.cd=function(){return this.a},Q.dd=function(e){return this.a},Q.Ri=function(e,t){return Qie()},Q.Si=function(e,t){$ie()},Q.ed=function(e){return eae()},Q.Kc=function(e){return tae()},Q.fd=function(e,t){return nae()},Q.gc=function(){return 0},Q.gd=function(e){uP(this,e)},Q.Lc=function(){return new Pk(this,16)},Q.Mc=function(){return new OE(null,new Pk(this,16))},Q.hd=function(e,t){return jO(),new Nk(IQ,e,t)},Q.Nc=function(){return Qye((jO(),IQ))},Q.Oc=function(e){return jO(),lz(IQ,e)},Q._j=function(){return jO(),jO(),LQ},L(qX,`ECollections/EmptyUnmodifiableEMap`,1302);var hBt=wE(qX,`Enumerator`),D7;q(290,1,{290:1},SH),Q.Fb=function(e){var t;return this===e?!0:M(e,290)?(t=P(e,290),this.f==t.f&&vye(this.i,t.i)&&_ye(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&_ye(this.d,t.d)&&_ye(this.g,t.g)&&_ye(this.e,t.e)&&wGe(this,t)):!1},Q.Hb=function(){return this.f},Q.Ib=function(){return p9e(this)},Q.f=0;var gBt=0,_Bt=0,vBt=0,yBt=0,bBt=0,xBt=0,SBt=0,CBt=0,wBt=0,TBt,O7=0,k7=0,EBt=0,DBt=0,A7,OBt;L(qX,`URI`,290),q(1091,44,hK,zne),Q.yc=function(e,t){return P(Sk(this,oT(e),P(t,290)),290)},L(qX,`URI/URICache`,1091),q(492,67,rZ,gl,FE),Q.Qi=function(){return!0},L(qX,`UniqueEList`,492),q(579,63,gG,hM),L(qX,`WrappedException`,579);var j7=wE(jX,$mt),M7=wE(jX,eht),N7=wE(jX,tht),P7=wE(jX,nht),F7=wE(jX,rht),I7=wE(jX,`EClass`),kBt=wE(jX,`EDataType`),ABt;q(1199,44,hK,$_),Q.xc=function(e){return VS(e)?ik(this,e):US(HE(this.f,e))},L(jX,`EDataType/Internal/ConversionDelegate/Factory/Registry/Impl`,1199);var L7=wE(jX,`EEnum`),R7=wE(jX,iht),z7=wE(jX,aht),B7=wE(jX,oht),V7,H7=wE(jX,sht),U7=wE(jX,cht);q(fZ,1,{},_l),Q.Ib=function(){return`NIL`},L(jX,`EStructuralFeature/Internal/DynamicValueHolder/1`,fZ);var jBt;q(1023,44,hK,ev),Q.xc=function(e){return VS(e)?ik(this,e):US(HE(this.f,e))},L(jX,`EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl`,1023);var W7=wE(jX,lht),G7=wE(jX,`EValidator/PatternMatcher`),MBt,NBt,K7,q7,J7,Y7,PBt,FBt,IBt,X7,Z7,Q7,$7,e9,LBt,RBt,t9,n9,zBt,r9,i9,a9,o9,BBt,VBt,s9,c9=wE(pZ,`FeatureMap/Entry`);q(534,1,{75:1},LS),Q.Jk=function(){return this.a},Q.kd=function(){return this.b},L(LX,`BasicEObjectImpl/1`,534),q(1022,1,uht,bce),Q.Dk=function(e){return rj(this.a,this.b,e)},Q.Oj=function(){return xTe(this.a,this.b)},Q.Wb=function(e){lTe(this.a,this.b,e)},Q.Ek=function(){uSe(this.a,this.b)},L(LX,`BasicEObjectImpl/4`,1022),q(2046,1,{114:1}),Q.Kk=function(e){this.e=e==0?HBt:V(sQ,NW,1,e,5,1)},Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Lk=function(){return this.c},Q.Mk=function(){throw D(new d_)},Q.Nk=function(){throw D(new d_)},Q.Ok=function(){return this.d},Q.Pk=function(){return this.e!=null},Q.Qk=function(e){this.c=e},Q.Rk=function(e){throw D(new d_)},Q.Sk=function(e){throw D(new d_)},Q.Tk=function(e){this.d=e};var HBt;L(LX,`BasicEObjectImpl/EPropertiesHolderBaseImpl`,2046),q(192,2046,{114:1},jf),Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},L(LX,`BasicEObjectImpl/EPropertiesHolderImpl`,192),q(502,100,Apt,vl),Q.rh=function(){return this.f},Q.wh=function(){return this.k},Q.yh=function(e,t){this.g=e,this.i=t},Q.Ah=function(){return this.j&2?this.Xh().Lk():this.fi()},Q.Ch=function(){return this.i},Q.th=function(){return!!(this.j&1)},Q.Mh=function(){return this.g},Q.Sh=function(){return!!(this.j&4)},Q.Xh=function(){return!this.k&&(this.k=new jf),this.k},Q._h=function(e){this.Xh().Qk(e),e?this.j|=2:this.j&=-3},Q.bi=function(e){this.Xh().Sk(e),e?this.j|=4:this.j&=-5},Q.fi=function(){return(ND(),K7).S},Q.i=0,Q.j=1,L(LX,`EObjectImpl`,502),q(786,502,{109:1,94:1,93:1,57:1,114:1,52:1,100:1},nve),Q.ii=function(e){return this.e[e]},Q.ji=function(e,t){this.e[e]=t},Q.ki=function(e){this.e[e]=null},Q.Ah=function(){return this.d},Q.Fh=function(e){return NL(this.d,e)},Q.Hh=function(){return this.d},Q.Lh=function(){return this.e!=null},Q.Xh=function(){return!this.k&&(this.k=new yl),this.k},Q._h=function(e){this.d=e},Q.ei=function(){var e;return this.e??=(e=PD(this.d),e==0?UBt:V(sQ,NW,1,e,5,1)),this},Q.gi=function(){return 0};var UBt;L(LX,`DynamicEObjectImpl`,786),q(1484,786,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1},Lve),Q.Fb=function(e){return this===e},Q.Hb=function(){return Ow(this)},Q._h=function(e){this.d=e,this.b=$V(e,`key`),this.c=$V(e,GX)},Q.yi=function(){var e;return this.a==-1&&(e=bM(this,this.b),this.a=e==null?0:rP(e)),this.a},Q.jd=function(){return bM(this,this.b)},Q.kd=function(){return bM(this,this.c)},Q.zi=function(e){this.a=e},Q.Ai=function(e){lTe(this,this.b,e)},Q.ld=function(e){var t=bM(this,this.c);return lTe(this,this.c,e),t},Q.a=0,L(LX,`DynamicEObjectImpl/BasicEMapEntry`,1484),q(1485,1,{114:1},yl),Q.Kk=function(e){throw D(new d_)},Q.ii=function(e){throw D(new d_)},Q.ji=function(e,t){throw D(new d_)},Q.ki=function(e){throw D(new d_)},Q.Lk=function(){throw D(new d_)},Q.Mk=function(){return this.a},Q.Nk=function(){return this.b},Q.Ok=function(){return this.c},Q.Pk=function(){throw D(new d_)},Q.Qk=function(e){throw D(new d_)},Q.Rk=function(e){this.a=e},Q.Sk=function(e){this.b=e},Q.Tk=function(e){this.c=e},L(LX,`DynamicEObjectImpl/DynamicEPropertiesHolderImpl`,1485),q(505,161,{109:1,94:1,93:1,588:1,158:1,57:1,114:1,52:1,100:1,505:1,161:1,117:1,118:1},bl),Q.xh=function(e){return $qe(this,e)},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new tT((xW(),o9),d9,this)),this.b):(!this.b&&(this.b=new tT((xW(),o9),d9,this)),Tj(this.b));case 3:return LTe(this);case 4:return!this.a&&(this.a=new lw(Q5,this,4)),this.a;case 5:return!this.c&&(this.c=new dw(Q5,this,5)),this.c}return qj(this,e-PD((xW(),q7)),RM((r=P(zP(this,16),29),r||q7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 3:return this.Cb&&(n=(i=this.Db>>16,i>=0?$qe(this,n):this.Cb.Qh(this,-1-i,null,n))),Lye(this,P(e,158),n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),q7)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),q7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 2:return!this.b&&(this.b=new tT((xW(),o9),d9,this)),FT(this.b,e,n);case 3:return Lye(this,null,n);case 4:return!this.a&&(this.a=new lw(Q5,this,4)),RR(this.a,e,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),q7)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),q7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!LTe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return _A(this,e-PD((xW(),q7)),RM((t=P(zP(this,16),29),t||q7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:Yve(this,oT(t));return;case 2:!this.b&&(this.b=new tT((xW(),o9),d9,this)),TP(this.b,t);return;case 3:Y3e(this,P(t,158));return;case 4:!this.a&&(this.a=new lw(Q5,this,4)),RU(this.a),!this.a&&(this.a=new lw(Q5,this,4)),FD(this.a,P(t,18));return;case 5:!this.c&&(this.c=new dw(Q5,this,5)),RU(this.c),!this.c&&(this.c=new dw(Q5,this,5)),FD(this.c,P(t,18));return}vL(this,e-PD((xW(),q7)),RM((n=P(zP(this,16),29),n||q7),e),t)},Q.fi=function(){return xW(),q7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:mIe(this,null);return;case 2:!this.b&&(this.b=new tT((xW(),o9),d9,this)),this.b.c.$b();return;case 3:Y3e(this,null);return;case 4:!this.a&&(this.a=new lw(Q5,this,4)),RU(this.a);return;case 5:!this.c&&(this.c=new dw(Q5,this,5)),RU(this.c);return}AI(this,e-PD((xW(),q7)),RM((t=P(zP(this,16),29),t||q7),e))},Q.Ib=function(){return NVe(this)},Q.d=null,L(LX,`EAnnotationImpl`,505),q(142,711,dht,Rj),Q.Ei=function(e,t){Kle(this,e,P(t,45))},Q.Uk=function(e,t){return Hme(this,P(e,45),t)},Q.Yi=function(e){return P(P(this.c,72).Yi(e),136)},Q.Gi=function(){return P(this.c,72).Gi()},Q.Hi=function(){return P(this.c,72).Hi()},Q.Ii=function(e){return P(this.c,72).Ii(e)},Q.Vk=function(e,t){return FT(this,e,t)},Q.Dk=function(e){return P(this.c,78).Dk(e)},Q.$j=function(){},Q.Oj=function(){return P(this.c,78).Oj()},Q.ak=function(e,t,n){var r=P(nN(this.b).ti().pi(this.b),136);return r.zi(e),r.Ai(t),r.ld(n),r},Q.bk=function(){return new Lg(this)},Q.Wb=function(e){TP(this,e)},Q.Ek=function(){P(this.c,78).Ek()},L(pZ,`EcoreEMap`,142),q(169,142,dht,tT),Q.Zj=function(){var e,t,n,r,i,a;if(this.d==null){for(a=V(cBt,Ymt,67,2*this.f+1,0,1),n=this.c.Jc();n.e!=n.i.gc();)t=P(n.Wj(),136),r=t.yi(),i=(r&OW)%a.length,e=a[i],!e&&(e=a[i]=new Lg(this)),e.Ec(t);this.d=a}},L(LX,`EAnnotationImpl/1`,169),q(293,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,470:1,52:1,100:1,161:1,293:1,117:1,118:1}),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Cw(),!!(this.Bb&256);case 3:return Cw(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return Cw(),!!this.Hk();case 7:return Cw(),i=this.s,i>=1;case 8:return t?Lz(this):this.r;case 9:return this.q}return qj(this,e-PD(this.fi()),RM((r=P(zP(this,16),29),r||this.fi()),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 9:return _xe(this,n)}return i=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),i.uk().yk(this,sR(this),t-PD(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&GD(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&GD(this.q).i==0)}return _A(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:this.ri(oT(t));return;case 2:jI(this,Kv(aT(t)));return;case 3:MI(this,Kv(aT(t)));return;case 4:_N(this,P(t,15).a);return;case 5:this.Xk(P(t,15).a);return;case 8:lI(this,P(t,143));return;case 9:r=hB(this,P(t,87),null),r&&r.mj();return}vL(this,e-PD(this.fi()),RM((n=P(zP(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return xW(),VBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:this.ri(null);return;case 2:jI(this,!0);return;case 3:MI(this,!0);return;case 4:_N(this,0);return;case 5:this.Xk(1);return;case 8:lI(this,null);return;case 9:n=hB(this,null,null),n&&n.mj();return}AI(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.mi=function(){Lz(this),this.Bb|=1},Q.Fk=function(){return Lz(this)},Q.Gk=function(){return this.t},Q.Hk=function(){var e;return e=this.t,e>1||e==-1},Q.Qi=function(){return!!(this.Bb&512)},Q.Wk=function(e,t){return xVe(this,e,t)},Q.Xk=function(e){vN(this,e)},Q.Ib=function(){return L0e(this)},Q.s=0,Q.t=1,L(LX,`ETypedElementImpl`,293),q(451,293,{109:1,94:1,93:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,451:1,293:1,117:1,118:1,682:1}),Q.xh=function(e){return Sqe(this,e)},Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Cw(),!!(this.Bb&256);case 3:return Cw(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return Cw(),!!this.Hk();case 7:return Cw(),i=this.s,i>=1;case 8:return t?Lz(this):this.r;case 9:return this.q;case 10:return Cw(),(this.Bb&fZ)!=0;case 11:return Cw(),(this.Bb&RX)!=0;case 12:return Cw(),(this.Bb&rK)!=0;case 13:return this.j;case 14:return KV(this);case 15:return Cw(),(this.Bb&mZ)!=0;case 16:return Cw(),(this.Bb&qW)!=0;case 17:return _k(this)}return qj(this,e-PD(this.fi()),RM((r=P(zP(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 17:return this.Cb&&(n=(i=this.Db>>16,i>=0?Sqe(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,17,n)}return a=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),a.uk().xk(this,sR(this),t-PD(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 9:return _xe(this,n);case 17:return JH(this,null,17,n)}return i=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),i.uk().yk(this,sR(this),t-PD(this.fi()),e,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&GD(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&GD(this.q).i==0);case 10:return(this.Bb&fZ)==0;case 11:return(this.Bb&RX)!=0;case 12:return(this.Bb&rK)!=0;case 13:return this.j!=null;case 14:return KV(this)!=null;case 15:return(this.Bb&mZ)!=0;case 16:return(this.Bb&qW)!=0;case 17:return!!_k(this)}return _A(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:kk(this,oT(t));return;case 2:jI(this,Kv(aT(t)));return;case 3:MI(this,Kv(aT(t)));return;case 4:_N(this,P(t,15).a);return;case 5:this.Xk(P(t,15).a);return;case 8:lI(this,P(t,143));return;case 9:r=hB(this,P(t,87),null),r&&r.mj();return;case 10:JI(this,Kv(aT(t)));return;case 11:XI(this,Kv(aT(t)));return;case 12:YI(this,Kv(aT(t)));return;case 13:Dce(this,oT(t));return;case 15:qI(this,Kv(aT(t)));return;case 16:dL(this,Kv(aT(t)));return}vL(this,e-PD(this.fi()),RM((n=P(zP(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return xW(),BBt},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,88)&&tV(XA(P(this.Cb,88)),4),aP(this,null);return;case 2:jI(this,!0);return;case 3:MI(this,!0);return;case 4:_N(this,0);return;case 5:this.Xk(1);return;case 8:lI(this,null);return;case 9:n=hB(this,null,null),n&&n.mj();return;case 10:JI(this,!0);return;case 11:XI(this,!1);return;case 12:YI(this,!1);return;case 13:this.i=null,UN(this,null);return;case 15:qI(this,!1);return;case 16:dL(this,!1);return}AI(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.mi=function(){_O(uM((WB(),p9),this)),Lz(this),this.Bb|=1},Q.nk=function(){return this.f},Q.gk=function(){return KV(this)},Q.ok=function(){return _k(this)},Q.sk=function(){return null},Q.Yk=function(){return this.k},Q.Jj=function(){return this.n},Q.tk=function(){return eB(this)},Q.uk=function(){var e,t,n,r,i,a,o,s,c;return this.p||(n=_k(this),(n.i??oU(n),n.i).length,r=this.sk(),r&&PD(_k(r)),i=Lz(this),o=i.ik(),e=o?o.i&1?o==J9?bQ:o==q9?TQ:o==Q9?wQ:o==Z9?CQ:o==Y9?EQ:o==$9?DQ:o==X9?xQ:SQ:o:null,t=KV(this),s=i.gk(),wHe(this),(this.Bb&qW)!=0&&((a=JJe((WB(),p9),n))&&a!=this||(a=zk(uM(p9,this))))?this.p=new wce(this,a):this.Hk()?this.$k()?this.p=r?(this.Bb&mZ)==0?e?this._k()?new kO(49,e,this,r):new kO(7,e,this,r):this._k()?new AA(48,this,r):new AA(6,this,r):e?this._k()?new kO(47,e,this,r):new kO(5,e,this,r):this._k()?new AA(46,this,r):new AA(4,this,r):(this.Bb&mZ)==0?e?e==dQ?new $T(41,nBt,this):this._k()?new $T(45,e,this):new $T(3,e,this):this._k()?new WO(44,this):new WO(2,this):e?e==dQ?new $T(50,nBt,this):this._k()?new $T(43,e,this):new $T(1,e,this):this._k()?new WO(42,this):new WO(0,this):M(i,159)?this.p=e==c9?new WO(40,this):this.Bb&512?(this.Bb&mZ)==0?e?new $T(11,e,this):new WO(10,this):e?new $T(9,e,this):new WO(8,this):(this.Bb&mZ)==0?e?new $T(15,e,this):new WO(14,this):e?new $T(13,e,this):new WO(12,this):r?(c=r.t,this.p=c>1||c==-1?this._k()?(this.Bb&mZ)==0?e?new kO(27,e,this,r):new AA(26,this,r):e?new kO(25,e,this,r):new AA(24,this,r):(this.Bb&mZ)==0?e?new kO(31,e,this,r):new AA(30,this,r):e?new kO(29,e,this,r):new AA(28,this,r):this._k()?(this.Bb&mZ)==0?e?new kO(35,e,this,r):new AA(34,this,r):e?new kO(33,e,this,r):new AA(32,this,r):(this.Bb&mZ)==0?e?new kO(39,e,this,r):new AA(38,this,r):e?new kO(37,e,this,r):new AA(36,this,r)):this.p=this._k()?(this.Bb&mZ)==0?e?new $T(19,e,this):new WO(18,this):e?new $T(17,e,this):new WO(16,this):(this.Bb&mZ)==0?e?new $T(23,e,this):new WO(22,this):e?new $T(21,e,this):new WO(20,this):this.p=this.Zk()?this._k()?new v_e(P(i,29),this,r):new Ywe(P(i,29),this,r):M(i,159)?e==c9?new WO(40,this):(this.Bb&mZ)==0?e?new Bye(t,s,this,(qL(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new bCe(P(i,159),t,s,this):e?new Vye(t,s,this,(qL(),o==q9?tVt:o==J9?XBt:o==Y9?nVt:o==Q9?eVt:o==Z9?$Bt:o==$9?iVt:o==X9?ZBt:o==K9?QBt:rVt)):new xCe(P(i,159),t,s,this):this.$k()?r?(this.Bb&mZ)==0?this._k()?new S_e(P(i,29),this,r):new y_e(P(i,29),this,r):this._k()?new w_e(P(i,29),this,r):new C_e(P(i,29),this,r):(this.Bb&mZ)==0?this._k()?new Vfe(P(i,29),this):new nT(P(i,29),this):this._k()?new Ufe(P(i,29),this):new Hfe(P(i,29),this):this._k()?r?(this.Bb&mZ)==0?new b_e(P(i,29),this,r):new T_e(P(i,29),this,r):(this.Bb&mZ)==0?new zfe(P(i,29),this):new Wfe(P(i,29),this):r?(this.Bb&mZ)==0?new x_e(P(i,29),this,r):new E_e(P(i,29),this,r):(this.Bb&mZ)==0?new PE(P(i,29),this):new Bfe(P(i,29),this)),this.p},Q.pk=function(){return(this.Bb&fZ)!=0},Q.Zk=function(){return!1},Q.$k=function(){return!1},Q.qk=function(){return(this.Bb&qW)!=0},Q.vk=function(){return CM(this)},Q._k=function(){return!1},Q.rk=function(){return(this.Bb&mZ)!=0},Q.al=function(e){this.k=e},Q.ri=function(e){kk(this,e)},Q.Ib=function(){return TH(this)},Q.e=!1,Q.n=0,L(LX,`EStructuralFeatureImpl`,451),q(335,451,{109:1,94:1,93:1,38:1,158:1,197:1,57:1,179:1,69:1,114:1,470:1,52:1,100:1,335:1,161:1,451:1,293:1,117:1,118:1,682:1},tv),Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Cw(),!!(this.Bb&256);case 3:return Cw(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return Cw(),!!q1e(this);case 7:return Cw(),i=this.s,i>=1;case 8:return t?Lz(this):this.r;case 9:return this.q;case 10:return Cw(),(this.Bb&fZ)!=0;case 11:return Cw(),(this.Bb&RX)!=0;case 12:return Cw(),(this.Bb&rK)!=0;case 13:return this.j;case 14:return KV(this);case 15:return Cw(),(this.Bb&mZ)!=0;case 16:return Cw(),(this.Bb&qW)!=0;case 17:return _k(this);case 18:return Cw(),(this.Bb&IX)!=0;case 19:return t?rF(this):Cje(this)}return qj(this,e-PD((xW(),J7)),RM((r=P(zP(this,16),29),r||J7),e),t,n)},Q.Th=function(e){var t,n;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return q1e(this);case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&GD(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&GD(this.q).i==0);case 10:return(this.Bb&fZ)==0;case 11:return(this.Bb&RX)!=0;case 12:return(this.Bb&rK)!=0;case 13:return this.j!=null;case 14:return KV(this)!=null;case 15:return(this.Bb&mZ)!=0;case 16:return(this.Bb&qW)!=0;case 17:return!!_k(this);case 18:return(this.Bb&IX)!=0;case 19:return!!Cje(this)}return _A(this,e-PD((xW(),J7)),RM((t=P(zP(this,16),29),t||J7),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:kk(this,oT(t));return;case 2:jI(this,Kv(aT(t)));return;case 3:MI(this,Kv(aT(t)));return;case 4:_N(this,P(t,15).a);return;case 5:xie(this,P(t,15).a);return;case 8:lI(this,P(t,143));return;case 9:r=hB(this,P(t,87),null),r&&r.mj();return;case 10:JI(this,Kv(aT(t)));return;case 11:XI(this,Kv(aT(t)));return;case 12:YI(this,Kv(aT(t)));return;case 13:Dce(this,oT(t));return;case 15:qI(this,Kv(aT(t)));return;case 16:dL(this,Kv(aT(t)));return;case 18:fL(this,Kv(aT(t)));return}vL(this,e-PD((xW(),J7)),RM((n=P(zP(this,16),29),n||J7),e),t)},Q.fi=function(){return xW(),J7},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,88)&&tV(XA(P(this.Cb,88)),4),aP(this,null);return;case 2:jI(this,!0);return;case 3:MI(this,!0);return;case 4:_N(this,0);return;case 5:this.b=0,vN(this,1);return;case 8:lI(this,null);return;case 9:n=hB(this,null,null),n&&n.mj();return;case 10:JI(this,!0);return;case 11:XI(this,!1);return;case 12:YI(this,!1);return;case 13:this.i=null,UN(this,null);return;case 15:qI(this,!1);return;case 16:dL(this,!1);return;case 18:fL(this,!1);return}AI(this,e-PD((xW(),J7)),RM((t=P(zP(this,16),29),t||J7),e))},Q.mi=function(){rF(this),_O(uM((WB(),p9),this)),Lz(this),this.Bb|=1},Q.Hk=function(){return q1e(this)},Q.Wk=function(e,t){return this.b=0,this.a=null,xVe(this,e,t)},Q.Xk=function(e){xie(this,e)},Q.Ib=function(){var e;return this.Db&64?TH(this):(e=new yw(TH(this)),e.a+=` (iD: `,Uy(e,(this.Bb&IX)!=0),e.a+=`)`,e.a)},Q.b=0,L(LX,`EAttributeImpl`,335),q(360,439,{109:1,94:1,93:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1}),Q.bl=function(e){return e.Ah()==this},Q.xh=function(e){return xz(this,e)},Q.yh=function(e,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=e},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return vz(this);case 4:return this.gk();case 5:return this.F;case 6:return t?nN(this):hk(this);case 7:return!this.A&&(this.A=new uw(W7,this,7)),this.A}return qj(this,e-PD(this.fi()),RM((r=P(zP(this,16),29),r||this.fi()),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?xz(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,6,n)}return a=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),a.uk().xk(this,sR(this),t-PD(this.fi()),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 6:return JH(this,null,6,n);case 7:return!this.A&&(this.A=new uw(W7,this,7)),RR(this.A,e,n)}return i=P(RM((r=P(zP(this,16),29),r||this.fi()),t),69),i.uk().yk(this,sR(this),t-PD(this.fi()),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!vz(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!hk(this);case 7:return!!this.A&&this.A.i!=0}return _A(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:Ak(this,oT(t));return;case 2:kC(this,oT(t));return;case 5:qU(this,oT(t));return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A),!this.A&&(this.A=new uw(W7,this,7)),FD(this.A,P(t,18));return}vL(this,e-PD(this.fi()),RM((n=P(zP(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return xW(),PBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),aP(this,null);return;case 2:tI(this,null),yN(this,this.D);return;case 5:qU(this,null);return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A);return}AI(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.fk=function(){var e;return this.G==-1&&(this.G=(e=nN(this),e?GR(e.si(),this):-1)),this.G},Q.gk=function(){return null},Q.hk=function(){return nN(this)},Q.cl=function(){return this.v},Q.ik=function(){return vz(this)},Q.jk=function(){return this.D==null?this.B:this.D},Q.kk=function(){return this.F},Q.dk=function(e){return $H(this,e)},Q.dl=function(e){this.v=e},Q.el=function(e){qIe(this,e)},Q.fl=function(e){this.C=e},Q.ri=function(e){Ak(this,e)},Q.Ib=function(){return FL(this)},Q.C=null,Q.D=null,Q.G=-1,L(LX,`EClassifierImpl`,360),q(88,360,{109:1,94:1,93:1,29:1,143:1,158:1,197:1,57:1,114:1,52:1,100:1,88:1,360:1,161:1,471:1,117:1,118:1,681:1},Af),Q.bl=function(e){return yme(this,e.Ah())},Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return vz(this);case 4:return null;case 5:return this.F;case 6:return t?nN(this):hk(this);case 7:return!this.A&&(this.A=new uw(W7,this,7)),this.A;case 8:return Cw(),!!(this.Bb&256);case 9:return Cw(),!!(this.Bb&512);case 10:return YO(this);case 11:return!this.q&&(this.q=new F(B7,this,11,10)),this.q;case 12:return bU(this);case 13:return gU(this);case 14:return gU(this),this.r;case 15:return bU(this),this.k;case 16:return b$e(this);case 17:return fU(this);case 18:return oU(this);case 19:return HV(this);case 20:return bU(this),this.o;case 21:return!this.s&&(this.s=new F(N7,this,21,17)),this.s;case 22:return DA(this);case 23:return yH(this)}return qj(this,e-PD((xW(),Y7)),RM((r=P(zP(this,16),29),r||Y7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?xz(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,6,n);case 11:return!this.q&&(this.q=new F(B7,this,11,10)),BL(this.q,e,n);case 21:return!this.s&&(this.s=new F(N7,this,21,17)),BL(this.s,e,n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),Y7)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),Y7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 6:return JH(this,null,6,n);case 7:return!this.A&&(this.A=new uw(W7,this,7)),RR(this.A,e,n);case 11:return!this.q&&(this.q=new F(B7,this,11,10)),RR(this.q,e,n);case 21:return!this.s&&(this.s=new F(N7,this,21,17)),RR(this.s,e,n);case 22:return RR(DA(this),e,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),Y7)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),Y7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!vz(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!hk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!!(this.Bb&256);case 9:return!!(this.Bb&512);case 10:return!!this.u&&DA(this.u.a).i!=0&&!(this.n&&nz(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return bU(this).i!=0;case 13:return gU(this).i!=0;case 14:return gU(this),this.r.i!=0;case 15:return bU(this),this.k.i!=0;case 16:return b$e(this).i!=0;case 17:return fU(this).i!=0;case 18:return oU(this).i!=0;case 19:return HV(this).i!=0;case 20:return bU(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&nz(this.n);case 23:return yH(this).i!=0}return _A(this,e-PD((xW(),Y7)),RM((t=P(zP(this,16),29),t||Y7),e))},Q.Wh=function(e){return(this.i==null||this.q&&this.q.i!=0?null:$V(this,e))||xat(this,e)},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:Ak(this,oT(t));return;case 2:kC(this,oT(t));return;case 5:qU(this,oT(t));return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A),!this.A&&(this.A=new uw(W7,this,7)),FD(this.A,P(t,18));return;case 8:jVe(this,Kv(aT(t)));return;case 9:MVe(this,Kv(aT(t)));return;case 10:zU(YO(this)),FD(YO(this),P(t,18));return;case 11:!this.q&&(this.q=new F(B7,this,11,10)),RU(this.q),!this.q&&(this.q=new F(B7,this,11,10)),FD(this.q,P(t,18));return;case 21:!this.s&&(this.s=new F(N7,this,21,17)),RU(this.s),!this.s&&(this.s=new F(N7,this,21,17)),FD(this.s,P(t,18));return;case 22:RU(DA(this)),FD(DA(this),P(t,18));return}vL(this,e-PD((xW(),Y7)),RM((n=P(zP(this,16),29),n||Y7),e),t)},Q.fi=function(){return xW(),Y7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),aP(this,null);return;case 2:tI(this,null),yN(this,this.D);return;case 5:qU(this,null);return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A);return;case 8:jVe(this,!1);return;case 9:MVe(this,!1);return;case 10:this.u&&zU(this.u);return;case 11:!this.q&&(this.q=new F(B7,this,11,10)),RU(this.q);return;case 21:!this.s&&(this.s=new F(N7,this,21,17)),RU(this.s);return;case 22:this.n&&RU(this.n);return}AI(this,e-PD((xW(),Y7)),RM((t=P(zP(this,16),29),t||Y7),e))},Q.mi=function(){var e,t;if(bU(this),gU(this),b$e(this),fU(this),oU(this),HV(this),yH(this),oj(P_e(XA(this))),this.s)for(e=0,t=this.s.i;e<t;++e)sT(H(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)sT(H(this.q,e));TI((WB(),p9),this).ve(),this.Bb|=1},Q.Ib=function(){return NYe(this)},Q.k=null,Q.r=null;var l9,WBt,GBt;L(LX,`EClassImpl`,88),q(2057,2056,hht),Q.Ci=function(e,t){return tU(this,e,t)},Q.Di=function(e){return tU(this,this.i,e)},Q.Ei=function(e,t){N0e(this,e,t)},Q.Fi=function(e){CV(this,e)},Q.Uk=function(e,t){return BL(this,e,t)},Q.Yi=function(e){return WMe(this,e)},Q.Vk=function(e,t){return RR(this,e,t)},Q.Vi=function(e,t){return Ket(this,e,t)},Q.Gi=function(){return new Lw(this)},Q.Hi=function(){return new Rw(this)},Q.Ii=function(e){return AN(this,e)},L(pZ,`NotifyingInternalEListImpl`,2057),q(624,2057,CZ),Q.Gc=function(e){return wnt(this,e)},Q.Gj=function(e,t,n,r,i){return Ck(this,e,t,n,r,i)},Q.Hj=function(e){v_(this,e)},Q.Dk=function(e){return this},Q.Jk=function(){return RM(this.e.Ah(),this.Jj())},Q.Ij=function(){return this.Jk()},Q.Jj=function(){return NL(this.e.Ah(),this.Jk())},Q.gl=function(){return P(this.Jk().Fk(),29).ik()},Q.hl=function(){return QR(P(this.Jk(),19)).n},Q.hj=function(){return this.e},Q.il=function(){return!0},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.ll=function(){return!1},Q.bd=function(e){return GR(this,e)},Q.Lj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Oh(this.e,this.hl(),this.gl(),t):n.Oh(this.e,NL(n.Ah(),QR(P(this.Jk(),19))),null,t):n.Oh(this.e,-1-this.Jj(),null,t)},Q.Mj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Qh(this.e,this.hl(),this.gl(),t):n.Qh(this.e,NL(n.Ah(),QR(P(this.Jk(),19))),null,t):n.Qh(this.e,-1-this.Jj(),null,t)},Q.$k=function(){return!1},Q.ml=function(){return!0},Q.dk=function(e){return gke(this.d,e)},Q.Nj=function(){return bC(this.e)},Q.Oj=function(){return this.i!=0},Q.$i=function(e){return bN(this.d,e)},Q.Ui=function(e,t){return this.ml()&&this.ll()?xV(this,e,P(t,57)):t},Q.nl=function(e){return e.Sh()?yI(this.e,P(e,52)):e},Q.Wb=function(e){Aue(this,e)},Q.Nc=function(){return GMe(this)},Q.Oc=function(e){var t;if(this.ll())for(t=this.i-1;t>=0;--t)H(this,t);return wUe(this,e)},Q.Ek=function(){RU(this)},Q.Xi=function(e,t){return LFe(this,e,t)},L(pZ,`EcoreEList`,624),q(491,624,CZ,lE),Q.Ji=function(){return!1},Q.Jj=function(){return this.c},Q.Kj=function(){return!1},Q.ml=function(){return!0},Q.Qi=function(){return!0},Q.Ui=function(e,t){return t},Q.Wi=function(){return!1},Q.c=0,L(pZ,`EObjectEList`,491),q(81,491,CZ,lw),Q.Kj=function(){return!0},Q.kl=function(){return!1},Q.$k=function(){return!0},L(pZ,`EObjectContainmentEList`,81),q(544,81,CZ,cw),Q.Li=function(){this.b=!0},Q.Oj=function(){return this.b},Q.Ek=function(){var e;RU(this),bC(this.e)?(e=this.b,this.b=!1,jP(this.e,new QA(this.e,2,this.c,e,!1))):this.b=!1},Q.b=!1,L(pZ,`EObjectContainmentEList/Unsettable`,544),q(1131,544,CZ,Rye),Q.Ri=function(e,t){var n,r;return n=P(GI(this,e,t),87),bC(this.e)&&v_(this,new Bj(this.a,7,(xW(),FBt),G(t),(r=n.c,M(r,88)?P(r,29):t9),e)),n},Q.Sj=function(e,t){return MUe(this,P(e,87),t)},Q.Tj=function(e,t){return jUe(this,P(e,87),t)},Q.Uj=function(e,t,n){return lYe(this,P(e,87),P(t,87),n)},Q.Gj=function(e,t,n,r,i){switch(e){case 3:return Ck(this,e,t,n,r,this.i>1);case 5:return Ck(this,e,t,n,r,this.i-P(n,16).gc()>0);default:return new gM(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return nz(this)},Q.Ek=function(){RU(this)},L(LX,`EClassImpl/1`,1131),q(1145,1144,Gmt),Q.bj=function(e){var t,n=e.ej(),r,i,a,o,s;if(n!=8){if(r=iGe(e),r==0)switch(n){case 1:case 9:s=e.ij(),s!=null&&(t=XA(P(s,471)),!t.c&&(t.c=new zl),SM(t.c,e.hj())),o=e.gj(),o!=null&&(i=P(o,471),i.Bb&1||(t=XA(i),!t.c&&(t.c=new zl),Pj(t.c,P(e.hj(),29))));break;case 3:o=e.gj(),o!=null&&(i=P(o,471),i.Bb&1||(t=XA(i),!t.c&&(t.c=new zl),Pj(t.c,P(e.hj(),29))));break;case 5:if(o=e.gj(),o!=null)for(a=P(o,18).Jc();a.Ob();)i=P(a.Pb(),471),i.Bb&1||(t=XA(i),!t.c&&(t.c=new zl),Pj(t.c,P(e.hj(),29)));break;case 4:s=e.ij(),s!=null&&(i=P(s,471),i.Bb&1||(t=XA(i),!t.c&&(t.c=new zl),SM(t.c,e.hj())));break;case 6:if(s=e.ij(),s!=null)for(a=P(s,18).Jc();a.Ob();)i=P(a.Pb(),471),i.Bb&1||(t=XA(i),!t.c&&(t.c=new zl),SM(t.c,e.hj()))}this.ol(r)}},Q.ol=function(e){m5e(this,e)},Q.b=63,L(LX,`ESuperAdapter`,1145),q(1146,1145,Gmt,Tg),Q.ol=function(e){tV(this,e)},L(LX,`EClassImpl/10`,1146),q(1135,699,CZ),Q.Ci=function(e,t){return mB(this,e,t)},Q.Di=function(e){return DKe(this,e)},Q.Ei=function(e,t){EI(this,e,t)},Q.Fi=function(e){sj(this,e)},Q.Yi=function(e){return WMe(this,e)},Q.Vi=function(e,t){return xM(this,e,t)},Q.Uk=function(e,t){throw D(new d_)},Q.Gi=function(){return new Lw(this)},Q.Hi=function(){return new Rw(this)},Q.Ii=function(e){return AN(this,e)},Q.Vk=function(e,t){throw D(new d_)},Q.Dk=function(e){return this},Q.Oj=function(){return this.i!=0},Q.Wb=function(e){throw D(new d_)},Q.Ek=function(){throw D(new d_)},L(pZ,`EcoreEList/UnmodifiableEList`,1135),q(333,1135,CZ,sC),Q.Wi=function(){return!1},L(pZ,`EcoreEList/UnmodifiableEList/FastCompare`,333),q(1138,333,CZ,uze),Q.bd=function(e){var t,n,r;if(M(e,179)&&(t=P(e,179),n=t.Jj(),n!=-1)){for(r=this.i;n<r;++n)if(j(this.g[n])===j(e))return n}return-1},L(LX,`EClassImpl/1EAllStructuralFeaturesList`,1138),q(1132,492,rZ,xl),Q.$i=function(e){return V(z7,ght,87,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/1EGenericSuperTypeEList`,1132),q(625,492,rZ,Sl),Q.$i=function(e){return V(N7,SZ,179,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/1EStructuralFeatureUniqueEList`,625),q(743,492,rZ,Cl),Q.$i=function(e){return V(U7,SZ,19,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/1ReferenceList`,743),q(1133,492,rZ,Eg),Q.Ki=function(e,t){Hye(this,P(t,38))},Q.$i=function(e){return V(P7,SZ,38,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/2`,1133),q(1134,492,rZ,wl),Q.$i=function(e){return V(P7,SZ,38,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/3`,1134),q(1136,333,CZ,rve),Q.Ec=function(e){return Bke(this,P(e,38))},Q.Fi=function(e){jae(this,P(e,38))},L(LX,`EClassImpl/4`,1136),q(1137,333,CZ,ive),Q.Ec=function(e){return Vke(this,P(e,19))},Q.Fi=function(e){Mae(this,P(e,19))},L(LX,`EClassImpl/5`,1137),q(1139,492,rZ,Tl),Q.$i=function(e){return V(B7,mht,62,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/6`,1139),q(1140,492,rZ,El),Q.$i=function(e){return V(U7,SZ,19,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/7`,1140),q(2060,2059,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,71:1,61:1,72:1}),Q.Ci=function(e,t){return U9e(this,e,t)},Q.Di=function(e){return U9e(this,this.Cj(),e)},Q.Ei=function(e,t){i2e(this,e,t)},Q.Fi=function(e){M0e(this,e)},Q.Uk=function(e,t){return OKe(this,e,t)},Q.Vk=function(e,t){return IGe(this,e,t)},Q.Vi=function(e,t){return W9e(this,e,t)},Q.Yi=function(e){return this.vj(e)},Q.Gi=function(){return new Lw(this)},Q.nj=function(){return this.qj()},Q.Hi=function(){return new Rw(this)},Q.Ii=function(e){return AN(this,e)},L(pZ,`DelegatingNotifyingInternalEListImpl`,2060),q(744,2060,_ht),Q.Ji=function(){var e=RM(XO(this.b),this.Jj()).Fk();return M(e,159)&&!M(e,459)&&!(e.ik().i&1)},Q.Gc=function(e){var t,n,r,i,a,o,s,c;if(this.ml()){if(c=this.Cj(),c>4)if(this.dk(e)){if(this.$k()){if(r=P(e,52),n=r.Bh(),s=n==this.b&&(this.kl()?r.vh(r.Ch(),P(RM(XO(this.b),this.Jj()).Fk(),29).ik())==QR(P(RM(XO(this.b),this.Jj()),19)).n:-1-r.Ch()==this.Jj()),this.ll()&&!s&&!n&&r.Gh()){for(i=0;i<c;++i)if(t=Nbe(this,this.vj(i)),j(t)===j(e))return!0}return s}if(this.kl()&&!this.jl()){if(a=P(e,57).Jh(QR(P(RM(XO(this.b),this.Jj()),19))),j(a)===j(this.b))return!0;if(a==null||!P(a,57).Sh())return!1}}else return!1;if(o=this.sj(e),this.ll()&&!o){for(i=0;i<c;++i)if(r=Nbe(this,this.vj(i)),j(r)===j(e))return!0}return o}return this.sj(e)},Q.Gj=function(e,t,n,r,i){return new gM(this.b,e,this.Jj(),t,n,r,i)},Q.Hj=function(e){jP(this.b,e)},Q.Dk=function(e){return this},Q.Ij=function(){return RM(XO(this.b),this.Jj())},Q.Jj=function(){return NL(XO(this.b),RM(XO(this.b),this.Jj()))},Q.hj=function(){return this.b},Q.il=function(){return!!RM(XO(this.b),this.Jj()).Fk().ik()},Q.Kj=function(){var e,t=RM(XO(this.b),this.Jj());return M(t,103)?(e=P(t,19),(e.Bb&IX)!=0||!!QR(P(t,19))):!1},Q.jl=function(){var e,t=RM(XO(this.b),this.Jj()),n,r;return M(t,103)?(e=P(t,19),n=QR(e),!!n&&(r=n.t,r>1||r==-1)):!1},Q.kl=function(){var e,t=RM(XO(this.b),this.Jj()),n;return M(t,103)?(e=P(t,19),n=QR(e),!!n):!1},Q.ll=function(){var e,t=RM(XO(this.b),this.Jj());return M(t,103)?(e=P(t,19),(e.Bb&aK)!=0):!1},Q.bd=function(e){var t,n,r=this.xj(e),i;if(r>=0)return r;if(this.ml()){for(n=0,i=this.Cj();n<i;++n)if(t=Nbe(this,this.vj(n)),j(t)===j(e))return n}return-1},Q.Lj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Oh(this.b,QR(P(RM(XO(this.b),this.Jj()),19)).n,P(RM(XO(this.b),this.Jj()).Fk(),29).ik(),t):n.Oh(this.b,NL(n.Ah(),QR(P(RM(XO(this.b),this.Jj()),19))),null,t):n.Oh(this.b,-1-this.Jj(),null,t)},Q.Mj=function(e,t){var n;return n=P(e,52),this.kl()?this.il()?n.Qh(this.b,QR(P(RM(XO(this.b),this.Jj()),19)).n,P(RM(XO(this.b),this.Jj()).Fk(),29).ik(),t):n.Qh(this.b,NL(n.Ah(),QR(P(RM(XO(this.b),this.Jj()),19))),null,t):n.Qh(this.b,-1-this.Jj(),null,t)},Q.$k=function(){var e,t=RM(XO(this.b),this.Jj());return M(t,103)?(e=P(t,19),(e.Bb&IX)!=0):!1},Q.ml=function(){return M(RM(XO(this.b),this.Jj()).Fk(),88)},Q.dk=function(e){return RM(XO(this.b),this.Jj()).Fk().dk(e)},Q.Nj=function(){return bC(this.b)},Q.Oj=function(){return!this.yj()},Q.Qi=function(){return RM(XO(this.b),this.Jj()).Qi()},Q.Ui=function(e,t){return GU(this,e,t)},Q.Wb=function(e){zU(this),FD(this,P(e,16))},Q.Nc=function(){var e;if(this.ll())for(e=this.Cj()-1;e>=0;--e)GU(this,e,this.vj(e));return this.Dj()},Q.Oc=function(e){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)GU(this,t,this.vj(t));return this.Ej(e)},Q.Ek=function(){zU(this)},Q.Xi=function(e,t){return $Me(this,e,t)},L(pZ,`DelegatingEcoreEList`,744),q(1141,744,_ht,wpe),Q.oj=function(e,t){Rfe(this,e,P(t,29))},Q.pj=function(e){Hle(this,P(e,29))},Q.vj=function(e){var t,n;return t=P(H(DA(this.a),e),87),n=t.c,M(n,88)?P(n,29):(xW(),t9)},Q.Aj=function(e){var t,n;return t=P(pH(DA(this.a),e),87),n=t.c,M(n,88)?P(n,29):(xW(),t9)},Q.Bj=function(e,t){return kKe(this,e,P(t,29))},Q.Ji=function(){return!1},Q.Gj=function(e,t,n,r,i){return null},Q.qj=function(){return new Dg(this)},Q.rj=function(){RU(DA(this.a))},Q.sj=function(e){return FVe(this,e)},Q.tj=function(e){var t,n;for(n=e.Jc();n.Ob();)if(t=n.Pb(),!FVe(this,t))return!1;return!0},Q.uj=function(e){var t,n,r;if(M(e,16)&&(r=P(e,16),r.gc()==DA(this.a).i)){for(t=r.Jc(),n=new pw(this);t.Ob();)if(j(t.Pb())!==j(OR(n)))return!1;return!0}return!1},Q.wj=function(){var e,t,n=1,r,i;for(t=new pw(DA(this.a));t.e!=t.i.gc();)e=P(OR(t),87),r=(i=e.c,M(i,88)?P(i,29):(xW(),t9)),n=31*n+(r?Ow(r):0);return n},Q.xj=function(e){var t,n,r=0,i;for(n=new pw(DA(this.a));n.e!=n.i.gc();){if(t=P(OR(n),87),j(e)===j((i=t.c,M(i,88)?P(i,29):(xW(),t9))))return r;++r}return-1},Q.yj=function(){return DA(this.a).i==0},Q.zj=function(){return null},Q.Cj=function(){return DA(this.a).i},Q.Dj=function(){var e,t,n,r,i,a=DA(this.a).i;for(i=V(sQ,NW,1,a,5,1),n=0,t=new pw(DA(this.a));t.e!=t.i.gc();)e=P(OR(t),87),i[n++]=(r=e.c,M(r,88)?P(r,29):(xW(),t9));return i},Q.Ej=function(e){var t,n,r,i,a,o,s=DA(this.a).i;for(e.length<s&&(i=bN(WF(e).c,s),e=i),e.length>s&&BD(e,s,null),r=0,n=new pw(DA(this.a));n.e!=n.i.gc();)t=P(OR(n),87),a=(o=t.c,M(o,88)?P(o,29):(xW(),t9)),BD(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new py;for(i.a+=`[`,e=DA(this.a),t=0,r=DA(this.a).i;t<r;)ZS(i,vw((n=P(H(e,t),87).c,M(n,88)?P(n,29):(xW(),t9)))),++t<r&&(i.a+=MW);return i.a+=`]`,i.a},Q.Hj=function(e){},Q.Jj=function(){return 10},Q.il=function(){return!0},Q.Kj=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.ll=function(){return!0},Q.$k=function(){return!1},Q.ml=function(){return!0},Q.dk=function(e){return M(e,88)},Q.Oj=function(){return CDe(this.a)},Q.Qi=function(){return!0},Q.Wi=function(){return!0},L(LX,`EClassImpl/8`,1141),q(1142,2027,uG,Dg),Q.dd=function(e){return AN(this.a,e)},Q.gc=function(){return DA(this.a.a).i},L(LX,`EClassImpl/8/1`,1142),q(1143,492,rZ,Dl),Q.$i=function(e){return V(F7,NW,143,e,0,1)},Q.Wi=function(){return!1},L(LX,`EClassImpl/9`,1143),q(1130,48,Kst,Bne),L(LX,`EClassImpl/MyHashSet`,1130),q(563,360,{109:1,94:1,93:1,143:1,159:1,832:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,161:1,117:1,118:1,681:1},p_),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return vz(this);case 4:return this.gk();case 5:return this.F;case 6:return t?nN(this):hk(this);case 7:return!this.A&&(this.A=new uw(W7,this,7)),this.A;case 8:return Cw(),!!(this.Bb&256)}return qj(this,e-PD(this.fi()),RM((r=P(zP(this,16),29),r||this.fi()),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!vz(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!hk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256)}return _A(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:Ak(this,oT(t));return;case 2:kC(this,oT(t));return;case 5:qU(this,oT(t));return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A),!this.A&&(this.A=new uw(W7,this,7)),FD(this.A,P(t,18));return;case 8:NI(this,Kv(aT(t)));return}vL(this,e-PD(this.fi()),RM((n=P(zP(this,16),29),n||this.fi()),e),t)},Q.fi=function(){return xW(),IBt},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),aP(this,null);return;case 2:tI(this,null),yN(this,this.D);return;case 5:qU(this,null);return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A);return;case 8:NI(this,!0);return}AI(this,e-PD(this.fi()),RM((t=P(zP(this,16),29),t||this.fi()),e))},Q.mi=function(){TI((WB(),p9),this).ve(),this.Bb|=1},Q.mk=function(){var e,t,n;if(!this.c&&(e=s4e(nN(this)),!e.dc()))for(n=e.Jc();n.Ob();)t=oT(n.Pb()),YH(this,t)&&rHe(this);return this.b},Q.gk=function(){var e;if(!this.e){e=null;try{e=vz(this)}catch(e){if(e=lF(e),!M(e,101))throw D(e)}this.d=null,e&&e.i&1&&(this.d=e==J9?(Cw(),vQ):e==q9?G(0):e==Q9?new dm(0):e==Z9?0:e==Y9?uR(0):e==$9?xI(0):e==X9?yM(0):VP(0)),this.e=!0}return this.d},Q.lk=function(){return!!(this.Bb&256)},Q.pl=function(e){e&&(this.D=`org.eclipse.emf.common.util.AbstractEnumerator`)},Q.el=function(e){qIe(this,e),this.pl(e)},Q.fl=function(e){this.C=e,this.e=!1},Q.Ib=function(){var e;return this.Db&64?FL(this):(e=new yw(FL(this)),e.a+=` (serializable: `,Uy(e,!!(this.Bb&256)),e.a+=`)`,e.a)},Q.c=!1,Q.d=null,Q.e=!1,L(LX,`EDataTypeImpl`,563),q(459,563,{109:1,94:1,93:1,143:1,159:1,832:1,675:1,158:1,197:1,57:1,114:1,52:1,100:1,360:1,459:1,161:1,117:1,118:1,681:1},nv),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D==null?this.B:this.D;case 3:return vz(this);case 4:return yBe(this);case 5:return this.F;case 6:return t?nN(this):hk(this);case 7:return!this.A&&(this.A=new uw(W7,this,7)),this.A;case 8:return Cw(),!!(this.Bb&256);case 9:return!this.a&&(this.a=new F(R7,this,9,5)),this.a}return qj(this,e-PD((xW(),X7)),RM((r=P(zP(this,16),29),r||X7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 6:return this.Cb&&(n=(i=this.Db>>16,i>=0?xz(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,6,n);case 9:return!this.a&&(this.a=new F(R7,this,9,5)),BL(this.a,e,n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),X7)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),X7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 6:return JH(this,null,6,n);case 7:return!this.A&&(this.A=new uw(W7,this,7)),RR(this.A,e,n);case 9:return!this.a&&(this.a=new F(R7,this,9,5)),RR(this.a,e,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),X7)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),X7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!vz(this);case 4:return!!yBe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!hk(this);case 7:return!!this.A&&this.A.i!=0;case 8:return!(this.Bb&256);case 9:return!!this.a&&this.a.i!=0}return _A(this,e-PD((xW(),X7)),RM((t=P(zP(this,16),29),t||X7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:Ak(this,oT(t));return;case 2:kC(this,oT(t));return;case 5:qU(this,oT(t));return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A),!this.A&&(this.A=new uw(W7,this,7)),FD(this.A,P(t,18));return;case 8:NI(this,Kv(aT(t)));return;case 9:!this.a&&(this.a=new F(R7,this,9,5)),RU(this.a),!this.a&&(this.a=new F(R7,this,9,5)),FD(this.a,P(t,18));return}vL(this,e-PD((xW(),X7)),RM((n=P(zP(this,16),29),n||X7),e),t)},Q.fi=function(){return xW(),X7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,184)&&(P(this.Cb,184).tb=null),aP(this,null);return;case 2:tI(this,null),yN(this,this.D);return;case 5:qU(this,null);return;case 7:!this.A&&(this.A=new uw(W7,this,7)),RU(this.A);return;case 8:NI(this,!0);return;case 9:!this.a&&(this.a=new F(R7,this,9,5)),RU(this.a);return}AI(this,e-PD((xW(),X7)),RM((t=P(zP(this,16),29),t||X7),e))},Q.mi=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)sT(H(this.a,e));TI((WB(),p9),this).ve(),this.Bb|=1},Q.gk=function(){return yBe(this)},Q.dk=function(e){return e!=null},Q.pl=function(e){},L(LX,`EEnumImpl`,459),q(568,439,{109:1,94:1,93:1,2004:1,684:1,158:1,197:1,57:1,114:1,52:1,100:1,568:1,161:1,117:1,118:1},Jg),Q.ve=function(){return this.zb},Q.xh=function(e){return Zqe(this,e)},Q.Ih=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return G(this.d);case 3:return this.b?this.b:this.a;case 4:return i=this.c,i??this.zb;case 5:return this.Db>>16==5?P(this.Cb,675):null}return qj(this,e-PD((xW(),Z7)),RM((r=P(zP(this,16),29),r||Z7),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 5:return this.Cb&&(n=(i=this.Db>>16,i>=0?Zqe(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,5,n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),Z7)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),Z7)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 5:return JH(this,null,5,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),Z7)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),Z7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&P(this.Cb,675))}return _A(this,e-PD((xW(),Z7)),RM((t=P(zP(this,16),29),t||Z7),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:aP(this,oT(t));return;case 2:gN(this,P(t,15).a);return;case 3:_0e(this,P(t,2004));return;case 4:RN(this,oT(t));return}vL(this,e-PD((xW(),Z7)),RM((n=P(zP(this,16),29),n||Z7),e),t)},Q.fi=function(){return xW(),Z7},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:aP(this,null);return;case 2:gN(this,0);return;case 3:_0e(this,null);return;case 4:RN(this,null);return}AI(this,e-PD((xW(),Z7)),RM((t=P(zP(this,16),29),t||Z7),e))},Q.Ib=function(){var e;return e=this.c,e??this.zb},Q.b=null,Q.c=null,Q.d=0,L(LX,`EEnumLiteralImpl`,568);var KBt=wE(LX,`EFactoryImpl/InternalEDateTimeFormat`);q(485,1,{2079:1},Og),L(LX,`EFactoryImpl/1ClientInternalEDateTimeFormat`,485),q(248,118,{109:1,94:1,93:1,87:1,57:1,114:1,52:1,100:1,248:1,117:1,118:1},Wg),Q.zh=function(e,t,n){var r;return n=JH(this,e,t,n),this.e&&M(e,179)&&(r=VV(this,this.e),r!=this.c&&(n=JU(this,r,n))),n},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new lw(z7,this,1)),this.d;case 2:return t?QH(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?az(this):this.a}return qj(this,e-PD((xW(),$7)),RM((r=P(zP(this,16),29),r||$7),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return ZBe(this,null,n);case 1:return!this.d&&(this.d=new lw(z7,this,1)),RR(this.d,e,n);case 3:return XBe(this,null,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),$7)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),$7)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return _A(this,e-PD((xW(),$7)),RM((t=P(zP(this,16),29),t||$7),e))},Q.$h=function(e,t){var n;switch(e){case 0:RYe(this,P(t,87));return;case 1:!this.d&&(this.d=new lw(z7,this,1)),RU(this.d),!this.d&&(this.d=new lw(z7,this,1)),FD(this.d,P(t,18));return;case 3:LYe(this,P(t,87));return;case 4:AZe(this,P(t,835));return;case 5:tN(this,P(t,143));return}vL(this,e-PD((xW(),$7)),RM((n=P(zP(this,16),29),n||$7),e),t)},Q.fi=function(){return xW(),$7},Q.hi=function(e){var t;switch(e){case 0:RYe(this,null);return;case 1:!this.d&&(this.d=new lw(z7,this,1)),RU(this.d);return;case 3:LYe(this,null);return;case 4:AZe(this,null);return;case 5:tN(this,null);return}AI(this,e-PD((xW(),$7)),RM((t=P(zP(this,16),29),t||$7),e))},Q.Ib=function(){var e=new bw(jV(this));return e.a+=` (expression: `,kU(this,e),e.a+=`)`,e.a};var qBt;L(LX,`EGenericTypeImpl`,248),q(2032,2027,DZ),Q.Ei=function(e,t){Spe(this,e,t)},Q.Uk=function(e,t){return Spe(this,this.gc(),e),t},Q.Yi=function(e){return LR(this.nj(),e)},Q.Gi=function(){return this.Hi()},Q.nj=function(){return new one(this)},Q.Hi=function(){return this.Ii(0)},Q.Ii=function(e){return this.nj().dd(e)},Q.Vk=function(e,t){return ML(this,e,!0),t},Q.Ri=function(e,t){var n,r=Mz(this,t);return n=this.dd(e),n.Rb(r),r},Q.Si=function(e,t){var n;ML(this,t,!0),n=this.dd(e),n.Rb(t)},L(pZ,`AbstractSequentialInternalEList`,2032),q(482,2032,DZ,Pw),Q.Yi=function(e){return LR(this.nj(),e)},Q.Gi=function(){return this.b==null?(Wb(),Wb(),u9):this.ql()},Q.nj=function(){return new Qce(this.a,this.b)},Q.Hi=function(){return this.b==null?(Wb(),Wb(),u9):this.ql()},Q.Ii=function(e){var t,n;if(this.b==null){if(e<0||e>1)throw D(new Fv(dZ+e+`, size=0`));return Wb(),Wb(),u9}for(n=this.ql(),t=0;t<e;++t)BP(n);return n},Q.dc=function(){var e,t,n,r,i,a;if(this.b!=null){for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.tl()||this.a.Uh(e)){if(a=this.a.Kh(e,!1),Kb(),P(e,69).vk()){for(t=P(a,163),r=0,i=t.gc();r<i;++r)if(iSe(t.Rl(r))&&t.Sl(r)!=null)return!1}else if(e.Hk()){if(!P(a,18).dc())return!1}else if(a!=null)return!1}}return!0},Q.Jc=function(){return OIe(this)},Q.dd=function(e){var t,n;if(this.b==null){if(e!=0)throw D(new Fv(dZ+e+`, size=0`));return Wb(),Wb(),u9}for(n=this.sl()?this.rl():this.ql(),t=0;t<e;++t)BP(n);return n},Q.Ri=function(e,t){throw D(new d_)},Q.Si=function(e,t){throw D(new d_)},Q.ql=function(){return new Fw(this.a,this.b)},Q.rl=function(){return new jfe(this.a,this.b)},Q.sl=function(){return!0},Q.gc=function(){var e,t,n,r,i=0,a,o;if(this.b!=null){for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.tl()||this.a.Uh(e))if(o=this.a.Kh(e,!1),Kb(),P(e,69).vk())for(t=P(o,163),r=0,a=t.gc();r<a;++r)iSe(t.Rl(r))&&t.Sl(r)!=null&&++i;else e.Hk()?i+=P(o,18).gc():o!=null&&++i}return i},Q.tl=function(){return!0};var JBt;L(pZ,`EContentsEList`,482),q(1147,482,DZ,Afe),Q.ql=function(){return new Mfe(this.a,this.b)},Q.rl=function(){return new Nfe(this.a,this.b)},Q.tl=function(){return!1},L(LX,`ENamedElementImpl/1`,1147),q(287,1,OZ,Fw),Q.Nb=function(e){_D(this,e)},Q.Rb=function(e){throw D(new d_)},Q.ul=function(e){if(this.g!=0||this.e)throw D(new Wv(`Iterator already in use or already filtered`));this.e=e},Q.Ob=function(){var e,t,n,r,i,a;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!r$e(this,this.p):!S0e(this))){for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.nk()!=$5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(a=this.b.Kh(t,this.sl()),this.f=(Kb(),P(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=P(a,16),this.k=r):(r=P(a,72),this.k=this.j=r),M(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?r$e(this,this.p):S0e(this))return i=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}return i=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=3,!0}},Q.Sb=function(){var e,t,n,r,i,a;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!i$e(this,this.p):!V$e(this))){for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.nk()!=$5||t.Jj()!=0)&&(!this.tl()||this.b.Uh(t))){if(a=this.b.Kh(t,this.sl()),this.f=(Kb(),P(t,69).vk()),this.f||t.Hk()){if(this.sl()?(r=P(a,16),this.k=r):(r=P(a,72),this.k=this.j=r),M(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?i$e(this,this.p):V$e(this))return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(a!=null)return this.k=null,this.p=null,n=a,this.i=n,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}return i=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(e=P(i,75),e.Jk(),n=e.kd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}},Q.Pb=function(){return BP(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw D(new f_)},Q.Vb=function(){return this.a-1},Q.Qb=function(){throw D(new d_)},Q.sl=function(){return!1},Q.Wb=function(e){throw D(new d_)},Q.tl=function(){return!0},Q.a=0,Q.d=0,Q.f=!1,Q.g=0,Q.n=0,Q.o=0;var u9;L(pZ,`EContentsEList/FeatureIteratorImpl`,287),q(700,287,OZ,jfe),Q.sl=function(){return!0},L(pZ,`EContentsEList/ResolvingFeatureIteratorImpl`,700),q(1148,700,OZ,Nfe),Q.tl=function(){return!1},L(LX,`ENamedElementImpl/1/1`,1148),q(1149,287,OZ,Mfe),Q.tl=function(){return!1},L(LX,`ENamedElementImpl/1/2`,1149),q(39,151,uZ,MA,NA,lD,zj,gM,QA,EFe,ADe,DFe,jDe,HAe,MDe,AFe,NDe,VAe,PDe,OFe,FDe,uD,Bj,XCe,kFe,IDe,BAe,kDe),Q.Ij=function(){return AMe(this)},Q.Pj=function(){var e=AMe(this);return e?e.gk():null},Q.fj=function(e){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,e)},Q.hj=function(){return this.c},Q.Qj=function(){var e=AMe(this);return e?e.rk():!1},Q.b=-1,L(LX,`ENotificationImpl`,39),q(403,293,{109:1,94:1,93:1,158:1,197:1,57:1,62:1,114:1,470:1,52:1,100:1,161:1,403:1,293:1,117:1,118:1},rv),Q.xh=function(e){return hJe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Cw(),!!(this.Bb&256);case 3:return Cw(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return Cw(),a=this.t,a>1||a==-1;case 7:return Cw(),i=this.s,i>=1;case 8:return t?Lz(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?P(this.Cb,29):null;case 11:return!this.d&&(this.d=new uw(W7,this,11)),this.d;case 12:return!this.c&&(this.c=new F(H7,this,12,10)),this.c;case 13:return!this.a&&(this.a=new pT(this,this)),this.a;case 14:return fM(this)}return qj(this,e-PD((xW(),n9)),RM((r=P(zP(this,16),29),r||n9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?hJe(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,10,n);case 12:return!this.c&&(this.c=new F(H7,this,12,10)),BL(this.c,e,n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),n9)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),n9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 9:return _xe(this,n);case 10:return JH(this,null,10,n);case 11:return!this.d&&(this.d=new uw(W7,this,11)),RR(this.d,e,n);case 12:return!this.c&&(this.c=new F(H7,this,12,10)),RR(this.c,e,n);case 14:return RR(fM(this),e,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),n9)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),n9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&GD(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&GD(this.q).i==0);case 10:return!!(this.Db>>16==10&&P(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&fM(this.a.a).i!=0&&!(this.b&&rz(this.b));case 14:return!!this.b&&rz(this.b)}return _A(this,e-PD((xW(),n9)),RM((t=P(zP(this,16),29),t||n9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:aP(this,oT(t));return;case 2:jI(this,Kv(aT(t)));return;case 3:MI(this,Kv(aT(t)));return;case 4:_N(this,P(t,15).a);return;case 5:vN(this,P(t,15).a);return;case 8:lI(this,P(t,143));return;case 9:r=hB(this,P(t,87),null),r&&r.mj();return;case 11:!this.d&&(this.d=new uw(W7,this,11)),RU(this.d),!this.d&&(this.d=new uw(W7,this,11)),FD(this.d,P(t,18));return;case 12:!this.c&&(this.c=new F(H7,this,12,10)),RU(this.c),!this.c&&(this.c=new F(H7,this,12,10)),FD(this.c,P(t,18));return;case 13:!this.a&&(this.a=new pT(this,this)),zU(this.a),!this.a&&(this.a=new pT(this,this)),FD(this.a,P(t,18));return;case 14:RU(fM(this)),FD(fM(this),P(t,18));return}vL(this,e-PD((xW(),n9)),RM((n=P(zP(this,16),29),n||n9),e),t)},Q.fi=function(){return xW(),n9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:aP(this,null);return;case 2:jI(this,!0);return;case 3:MI(this,!0);return;case 4:_N(this,0);return;case 5:vN(this,1);return;case 8:lI(this,null);return;case 9:n=hB(this,null,null),n&&n.mj();return;case 11:!this.d&&(this.d=new uw(W7,this,11)),RU(this.d);return;case 12:!this.c&&(this.c=new F(H7,this,12,10)),RU(this.c);return;case 13:this.a&&zU(this.a);return;case 14:this.b&&RU(this.b);return}AI(this,e-PD((xW(),n9)),RM((t=P(zP(this,16),29),t||n9),e))},Q.mi=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)sT(H(this.c,e));Lz(this),this.Bb|=1},L(LX,`EOperationImpl`,403),q(500,744,_ht,pT),Q.oj=function(e,t){Lfe(this,e,P(t,143))},Q.pj=function(e){Ule(this,P(e,143))},Q.vj=function(e){var t,n;return t=P(H(fM(this.a),e),87),n=t.c,n||(xW(),e9)},Q.Aj=function(e){var t,n;return t=P(pH(fM(this.a),e),87),n=t.c,n||(xW(),e9)},Q.Bj=function(e,t){return TWe(this,e,P(t,143))},Q.Ji=function(){return!1},Q.Gj=function(e,t,n,r,i){return null},Q.qj=function(){return new kg(this)},Q.rj=function(){RU(fM(this.a))},Q.sj=function(e){return HVe(this,e)},Q.tj=function(e){var t,n;for(n=e.Jc();n.Ob();)if(t=n.Pb(),!HVe(this,t))return!1;return!0},Q.uj=function(e){var t,n,r;if(M(e,16)&&(r=P(e,16),r.gc()==fM(this.a).i)){for(t=r.Jc(),n=new pw(this);t.Ob();)if(j(t.Pb())!==j(OR(n)))return!1;return!0}return!1},Q.wj=function(){var e,t,n=1,r,i;for(t=new pw(fM(this.a));t.e!=t.i.gc();)e=P(OR(t),87),r=(i=e.c,i||(xW(),e9)),n=31*n+(r?rP(r):0);return n},Q.xj=function(e){var t,n,r=0,i;for(n=new pw(fM(this.a));n.e!=n.i.gc();){if(t=P(OR(n),87),j(e)===j((i=t.c,i||(xW(),e9))))return r;++r}return-1},Q.yj=function(){return fM(this.a).i==0},Q.zj=function(){return null},Q.Cj=function(){return fM(this.a).i},Q.Dj=function(){var e,t,n,r,i,a=fM(this.a).i;for(i=V(sQ,NW,1,a,5,1),n=0,t=new pw(fM(this.a));t.e!=t.i.gc();)e=P(OR(t),87),i[n++]=(r=e.c,r||(xW(),e9));return i},Q.Ej=function(e){var t,n,r,i,a,o,s=fM(this.a).i;for(e.length<s&&(i=bN(WF(e).c,s),e=i),e.length>s&&BD(e,s,null),r=0,n=new pw(fM(this.a));n.e!=n.i.gc();)t=P(OR(n),87),a=(o=t.c,o||(xW(),e9)),BD(e,r++,a);return e},Q.Fj=function(){var e,t,n,r,i=new py;for(i.a+=`[`,e=fM(this.a),t=0,r=fM(this.a).i;t<r;)ZS(i,vw((n=P(H(e,t),87).c,n||(xW(),e9)))),++t<r&&(i.a+=MW);return i.a+=`]`,i.a},Q.Hj=function(e){},Q.Jj=function(){return 13},Q.il=function(){return!0},Q.Kj=function(){return!1},Q.jl=function(){return!1},Q.kl=function(){return!1},Q.ll=function(){return!0},Q.$k=function(){return!1},Q.ml=function(){return!0},Q.dk=function(e){return M(e,143)},Q.Oj=function(){return WDe(this.a)},Q.Qi=function(){return!0},Q.Wi=function(){return!0},L(LX,`EOperationImpl/1`,500),q(1331,2027,uG,kg),Q.dd=function(e){return AN(this.a,e)},Q.gc=function(){return fM(this.a.a).i},L(LX,`EOperationImpl/1/1`,1331),q(1332,544,CZ,zye),Q.Ri=function(e,t){var n,r;return n=P(GI(this,e,t),87),bC(this.e)&&v_(this,new Bj(this.a,7,(xW(),zBt),G(t),(r=n.c,r||e9),e)),n},Q.Sj=function(e,t){return CVe(this,P(e,87),t)},Q.Tj=function(e,t){return SVe(this,P(e,87),t)},Q.Uj=function(e,t,n){return $We(this,P(e,87),P(t,87),n)},Q.Gj=function(e,t,n,r,i){switch(e){case 3:return Ck(this,e,t,n,r,this.i>1);case 5:return Ck(this,e,t,n,r,this.i-P(n,16).gc()>0);default:return new gM(this.e,e,this.c,t,n,r,!0)}},Q.Rj=function(){return!0},Q.Oj=function(){return rz(this)},Q.Ek=function(){RU(this)},L(LX,`EOperationImpl/2`,1332),q(493,1,{2002:1,493:1},Cce),L(LX,`EPackageImpl/1`,493),q(14,81,CZ,F),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.kl=function(){return!0},Q.b=0,L(pZ,`EObjectContainmentWithInverseEList`,14),q(361,14,CZ,kT),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectContainmentWithInverseEList/Resolving`,361),q(313,361,CZ,cD),Q.Li=function(){this.a.tb=null},L(LX,`EPackageImpl/2`,313),q(1244,1,{},Ol),L(LX,`EPackageImpl/3`,1244),q(721,44,hK,iv),Q._b=function(e){return VS(e)?awe(this,e):!!HE(this.f,e)},L(LX,`EPackageRegistryImpl`,721),q(504,293,{109:1,94:1,93:1,158:1,197:1,57:1,2081:1,114:1,470:1,52:1,100:1,161:1,504:1,293:1,117:1,118:1},av),Q.xh=function(e){return gJe(this,e)},Q.Ih=function(e,t,n){var r,i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Cw(),!!(this.Bb&256);case 3:return Cw(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return Cw(),a=this.t,a>1||a==-1;case 7:return Cw(),i=this.s,i>=1;case 8:return t?Lz(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?P(this.Cb,62):null}return qj(this,e-PD((xW(),i9)),RM((r=P(zP(this,16),29),r||i9),e),t,n)},Q.Ph=function(e,t,n){var r,i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),BL(this.Ab,e,n);case 10:return this.Cb&&(n=(i=this.Db>>16,i>=0?gJe(this,n):this.Cb.Qh(this,-1-i,null,n))),JH(this,e,10,n)}return a=P(RM((r=P(zP(this,16),29),r||(xW(),i9)),t),69),a.uk().xk(this,sR(this),t-PD((xW(),i9)),e,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 9:return _xe(this,n);case 10:return JH(this,null,10,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),i9)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),i9)),e,n)},Q.Th=function(e){var t,n,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&GD(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&GD(this.q).i==0);case 10:return!!(this.Db>>16==10&&P(this.Cb,62))}return _A(this,e-PD((xW(),i9)),RM((t=P(zP(this,16),29),t||i9),e))},Q.fi=function(){return xW(),i9},L(LX,`EParameterImpl`,504),q(103,451,{109:1,94:1,93:1,158:1,197:1,57:1,19:1,179:1,69:1,114:1,470:1,52:1,100:1,161:1,103:1,451:1,293:1,117:1,118:1,682:1},$fe),Q.Ih=function(e,t,n){var r,i,a,o;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Cw(),!!(this.Bb&256);case 3:return Cw(),!!(this.Bb&512);case 4:return G(this.s);case 5:return G(this.t);case 6:return Cw(),o=this.t,o>1||o==-1;case 7:return Cw(),i=this.s,i>=1;case 8:return t?Lz(this):this.r;case 9:return this.q;case 10:return Cw(),(this.Bb&fZ)!=0;case 11:return Cw(),(this.Bb&RX)!=0;case 12:return Cw(),(this.Bb&rK)!=0;case 13:return this.j;case 14:return KV(this);case 15:return Cw(),(this.Bb&mZ)!=0;case 16:return Cw(),(this.Bb&qW)!=0;case 17:return _k(this);case 18:return Cw(),(this.Bb&IX)!=0;case 19:return Cw(),a=QR(this),!!(a&&(a.Bb&IX)!=0);case 20:return Cw(),(this.Bb&aK)!=0;case 21:return t?QR(this):this.b;case 22:return t?ize(this):LAe(this);case 23:return!this.a&&(this.a=new dw(P7,this,23)),this.a}return qj(this,e-PD((xW(),a9)),RM((r=P(zP(this,16),29),r||a9),e),t,n)},Q.Th=function(e){var t,n,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!(this.Bb&256);case 3:return!(this.Bb&512);case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return n=this.s,n>=1;case 8:return!!this.r&&!this.q.e&&GD(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&GD(this.q).i==0);case 10:return(this.Bb&fZ)==0;case 11:return(this.Bb&RX)!=0;case 12:return(this.Bb&rK)!=0;case 13:return this.j!=null;case 14:return KV(this)!=null;case 15:return(this.Bb&mZ)!=0;case 16:return(this.Bb&qW)!=0;case 17:return!!_k(this);case 18:return(this.Bb&IX)!=0;case 19:return r=QR(this),!!r&&(r.Bb&IX)!=0;case 20:return(this.Bb&aK)==0;case 21:return!!this.b;case 22:return!!LAe(this);case 23:return!!this.a&&this.a.i!=0}return _A(this,e-PD((xW(),a9)),RM((t=P(zP(this,16),29),t||a9),e))},Q.$h=function(e,t){var n,r;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:kk(this,oT(t));return;case 2:jI(this,Kv(aT(t)));return;case 3:MI(this,Kv(aT(t)));return;case 4:_N(this,P(t,15).a);return;case 5:vN(this,P(t,15).a);return;case 8:lI(this,P(t,143));return;case 9:r=hB(this,P(t,87),null),r&&r.mj();return;case 10:JI(this,Kv(aT(t)));return;case 11:XI(this,Kv(aT(t)));return;case 12:YI(this,Kv(aT(t)));return;case 13:Dce(this,oT(t));return;case 15:qI(this,Kv(aT(t)));return;case 16:dL(this,Kv(aT(t)));return;case 18:aEe(this,Kv(aT(t)));return;case 20:xHe(this,Kv(aT(t)));return;case 21:jIe(this,P(t,19));return;case 23:!this.a&&(this.a=new dw(P7,this,23)),RU(this.a),!this.a&&(this.a=new dw(P7,this,23)),FD(this.a,P(t,18));return}vL(this,e-PD((xW(),a9)),RM((n=P(zP(this,16),29),n||a9),e),t)},Q.fi=function(){return xW(),a9},Q.hi=function(e){var t,n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:M(this.Cb,88)&&tV(XA(P(this.Cb,88)),4),aP(this,null);return;case 2:jI(this,!0);return;case 3:MI(this,!0);return;case 4:_N(this,0);return;case 5:vN(this,1);return;case 8:lI(this,null);return;case 9:n=hB(this,null,null),n&&n.mj();return;case 10:JI(this,!0);return;case 11:XI(this,!1);return;case 12:YI(this,!1);return;case 13:this.i=null,UN(this,null);return;case 15:qI(this,!1);return;case 16:dL(this,!1);return;case 18:bHe(this,!1),M(this.Cb,88)&&tV(XA(P(this.Cb,88)),2);return;case 20:xHe(this,!0);return;case 21:jIe(this,null);return;case 23:!this.a&&(this.a=new dw(P7,this,23)),RU(this.a);return}AI(this,e-PD((xW(),a9)),RM((t=P(zP(this,16),29),t||a9),e))},Q.mi=function(){ize(this),_O(uM((WB(),p9),this)),Lz(this),this.Bb|=1},Q.sk=function(){return QR(this)},Q.Zk=function(){var e;return e=QR(this),!!e&&(e.Bb&IX)!=0},Q.$k=function(){return(this.Bb&IX)!=0},Q._k=function(){return(this.Bb&aK)!=0},Q.Wk=function(e,t){return this.c=null,xVe(this,e,t)},Q.Ib=function(){var e;return this.Db&64?TH(this):(e=new yw(TH(this)),e.a+=` (containment: `,Uy(e,(this.Bb&IX)!=0),e.a+=`, resolveProxies: `,Uy(e,(this.Bb&aK)!=0),e.a+=`)`,e.a)},L(LX,`EReferenceImpl`,103),q(550,118,{109:1,45:1,94:1,93:1,136:1,57:1,114:1,52:1,100:1,550:1,117:1,118:1},kl),Q.Fb=function(e){return this===e},Q.jd=function(){return this.b},Q.kd=function(){return this.c},Q.Hb=function(){return Ow(this)},Q.Ai=function(e){Xve(this,oT(e))},Q.ld=function(e){return dve(this,oT(e))},Q.Ih=function(e,t,n){var r;switch(e){case 0:return this.b;case 1:return this.c}return qj(this,e-PD((xW(),o9)),RM((r=P(zP(this,16),29),r||o9),e),t,n)},Q.Th=function(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return _A(this,e-PD((xW(),o9)),RM((t=P(zP(this,16),29),t||o9),e))},Q.$h=function(e,t){var n;switch(e){case 0:Zve(this,oT(t));return;case 1:pIe(this,oT(t));return}vL(this,e-PD((xW(),o9)),RM((n=P(zP(this,16),29),n||o9),e),t)},Q.fi=function(){return xW(),o9},Q.hi=function(e){var t;switch(e){case 0:_Ie(this,null);return;case 1:pIe(this,null);return}AI(this,e-PD((xW(),o9)),RM((t=P(zP(this,16),29),t||o9),e))},Q.yi=function(){var e;return this.a==-1&&(e=this.b,this.a=e==null?0:IF(e)),this.a},Q.zi=function(e){this.a=e},Q.Ib=function(){var e;return this.Db&64?jV(this):(e=new yw(jV(this)),e.a+=` (key: `,ZS(e,this.b),e.a+=`, value: `,ZS(e,this.c),e.a+=`)`,e.a)},Q.a=-1,Q.b=null,Q.c=null;var d9=L(LX,`EStringToStringMapEntryImpl`,550),YBt=wE(pZ,`FeatureMap/Entry/Internal`);q(562,1,kZ),Q.vl=function(e){return this.wl(P(e,52))},Q.wl=function(e){return this.vl(e)},Q.Fb=function(e){var t,n;return this===e?!0:M(e,75)?(t=P(e,75),t.Jk()==this.c&&(n=this.kd(),n==null?t.kd()==null:OI(n,t.kd()))):!1},Q.Jk=function(){return this.c},Q.Hb=function(){var e=this.kd();return rP(this.c)^(e==null?0:rP(e))},Q.Ib=function(){var e=this.c,t=nN(e.ok()).vi();return e.ve(),(t!=null&&t.length!=0?t+`:`+e.ve():e.ve())+`=`+this.kd()},L(LX,`EStructuralFeatureImpl/BasicFeatureMapEntry`,562),q(778,562,kZ,Hpe),Q.wl=function(e){return new Hpe(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return yLe(this,e,this.a,t,n)},Q.yl=function(e,t,n){return bLe(this,e,this.a,t,n)},L(LX,`EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry`,778),q(1305,1,{},wce),Q.wk=function(e,t,n,r,i){return P(Uj(e,this.b),219).Wl(this.a).Dk(r)},Q.xk=function(e,t,n,r,i){return P(Uj(e,this.b),219).Nl(this.a,r,i)},Q.yk=function(e,t,n,r,i){return P(Uj(e,this.b),219).Ol(this.a,r,i)},Q.zk=function(e,t,n){return P(Uj(e,this.b),219).Wl(this.a).Oj()},Q.Ak=function(e,t,n,r){P(Uj(e,this.b),219).Wl(this.a).Wb(r)},Q.Bk=function(e,t,n){return P(Uj(e,this.b),219).Wl(this.a)},Q.Ck=function(e,t,n){P(Uj(e,this.b),219).Wl(this.a).Ek()},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator`,1305),q(89,1,{},$T,kO,WO,AA),Q.wk=function(e,t,n,r,i){var a=t.ii(n);if(a??t.ji(n,a=gW(this,e)),!i)switch(this.e){case 50:case 41:return P(a,587)._j();case 40:return P(a,219).Tl()}return a},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return o??t.ji(n,o=gW(this,e)),a=P(o,72).Uk(r,i),a},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return a!=null&&(i=P(a,72).Vk(r,i)),i},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&P(r,78).Oj()},Q.Ak=function(e,t,n,r){var i=P(t.ii(n),78);!i&&t.ji(n,i=gW(this,e)),i.Wb(r)},Q.Bk=function(e,t,n){var r,i=t.ii(n);return i??t.ji(n,i=gW(this,e)),M(i,78)?P(i,78):(r=P(t.ii(n),16),new ane(r))},Q.Ck=function(e,t,n){var r=P(t.ii(n),78);!r&&t.ji(n,r=gW(this,e)),r.Ek()},Q.b=0,Q.e=0,L(LX,`EStructuralFeatureImpl/InternalSettingDelegateMany`,89),q(499,1,{}),Q.xk=function(e,t,n,r,i){throw D(new d_)},Q.yk=function(e,t,n,r,i){throw D(new d_)},Q.Bk=function(e,t,n){return new gCe(this,e,t,n)};var f9;L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingle`,499),q(1322,1,uht,gCe),Q.Dk=function(e){return this.a.wk(this.c,this.d,this.b,e,!0)},Q.Oj=function(){return this.a.zk(this.c,this.d,this.b)},Q.Wb=function(e){this.a.Ak(this.c,this.d,this.b,e)},Q.Ek=function(){this.a.Ck(this.c,this.d,this.b)},Q.b=0,L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingle/1`,1322),q(771,499,{},Ywe),Q.wk=function(e,t,n,r,i){return IH(e,e.Mh(),e.Ch())==this.b?this._k()&&r?wV(e):e.Mh():null},Q.xk=function(e,t,n,r,i){var a,o;return e.Mh()&&(i=(a=e.Ch(),a>=0?e.xh(i):e.Mh().Qh(e,-1-a,null,i))),o=NL(e.Ah(),this.e),e.zh(r,o,i)},Q.yk=function(e,t,n,r,i){var a=NL(e.Ah(),this.e);return e.zh(null,a,i)},Q.zk=function(e,t,n){var r=NL(e.Ah(),this.e);return!!e.Mh()&&e.Ch()==r},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!$H(this.a,r))throw D(new Hv(AZ+(M(r,57)?NYe(P(r,57).Ah()):sFe(WF(r)))+jZ+this.a+`'`));if(i=e.Mh(),o=NL(e.Ah(),this.e),j(r)!==j(i)||e.Ch()!=o&&r!=null){if(Fz(e,P(r,57)))throw D(new Uv(BX+e.Ib()));c=null,i&&(c=(a=e.Ch(),a>=0?e.xh(c):e.Mh().Qh(e,-1-a,null,c))),s=P(r,52),s&&(c=s.Oh(e,NL(s.Ah(),this.b),null,c)),c=e.zh(s,o,c),c&&c.mj()}else e.sh()&&e.th()&&jP(e,new lD(e,1,o,r,r))},Q.Ck=function(e,t,n){var r=e.Mh(),i,a,o;r?(o=(i=e.Ch(),i>=0?e.xh(null):e.Mh().Qh(e,-1-i,null,null)),a=NL(e.Ah(),this.e),o=e.zh(null,a,o),o&&o.mj()):e.sh()&&e.th()&&jP(e,new uD(e,1,this.e,null,null))},Q._k=function(){return!1},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainer`,771),q(1306,771,{},v_e),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving`,1306),q(560,499,{}),Q.wk=function(e,t,n,r,i){var a;return a=t.ii(n),a==null?this.b:j(a)===j(f9)?null:a},Q.zk=function(e,t,n){var r=t.ii(n);return r!=null&&(j(r)===j(f9)||!OI(r,this.b))},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=(a=t.ii(n),a==null?this.b:j(a)===j(f9)?null:a),r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),jP(e,this.d.Al(e,1,this.e,i,r))):r==null?this.c==null?this.b==null?t.ji(n,null):t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=(i=t.ii(n),i==null?this.b:j(i)===j(f9)?null:i),t.ki(n),jP(e,this.d.Al(e,1,this.e,r,this.b))):t.ki(n)},Q.zl=function(e){throw D(new o_)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData`,560),q(MZ,1,{},Al),Q.Al=function(e,t,n,r,i){return new uD(e,t,n,r,i)},Q.Bl=function(e,t,n,r,i,a){return new XCe(e,t,n,r,i,a)};var XBt,ZBt,QBt,$Bt,eVt,tVt,nVt,rVt,iVt;L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator`,MZ),q(1323,MZ,{},jl),Q.Al=function(e,t,n,r,i){return new BAe(e,t,n,Kv(aT(r)),Kv(aT(i)))},Q.Bl=function(e,t,n,r,i,a){return new kDe(e,t,n,Kv(aT(r)),Kv(aT(i)),a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1`,1323),q(1324,MZ,{},Ml),Q.Al=function(e,t,n,r,i){return new EFe(e,t,n,P(r,221).a,P(i,221).a)},Q.Bl=function(e,t,n,r,i,a){return new ADe(e,t,n,P(r,221).a,P(i,221).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2`,1324),q(1325,MZ,{},Nl),Q.Al=function(e,t,n,r,i){return new DFe(e,t,n,P(r,180).a,P(i,180).a)},Q.Bl=function(e,t,n,r,i,a){return new jDe(e,t,n,P(r,180).a,P(i,180).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3`,1325),q(1326,MZ,{},Pl),Q.Al=function(e,t,n,r,i){return new HAe(e,t,n,O(N(r)),O(N(i)))},Q.Bl=function(e,t,n,r,i,a){return new MDe(e,t,n,O(N(r)),O(N(i)),a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4`,1326),q(1327,MZ,{},Fl),Q.Al=function(e,t,n,r,i){return new AFe(e,t,n,P(r,164).a,P(i,164).a)},Q.Bl=function(e,t,n,r,i,a){return new NDe(e,t,n,P(r,164).a,P(i,164).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5`,1327),q(1328,MZ,{},Il),Q.Al=function(e,t,n,r,i){return new VAe(e,t,n,P(r,15).a,P(i,15).a)},Q.Bl=function(e,t,n,r,i,a){return new PDe(e,t,n,P(r,15).a,P(i,15).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6`,1328),q(1329,MZ,{},Ll),Q.Al=function(e,t,n,r,i){return new OFe(e,t,n,P(r,190).a,P(i,190).a)},Q.Bl=function(e,t,n,r,i,a){return new FDe(e,t,n,P(r,190).a,P(i,190).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7`,1329),q(1330,MZ,{},Rl),Q.Al=function(e,t,n,r,i){return new kFe(e,t,n,P(r,191).a,P(i,191).a)},Q.Bl=function(e,t,n,r,i,a){return new IDe(e,t,n,P(r,191).a,P(i,191).a,a)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8`,1330),q(1308,560,{},bCe),Q.zl=function(e){if(!this.a.dk(e))throw D(new Hv(AZ+WF(e)+jZ+this.a+`'`))},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic`,1308),q(1309,560,{},Bye),Q.zl=function(e){},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic`,1309),q(772,560,{}),Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a;e.sh()&&e.th()?(i=!0,a=t.ii(n),a==null?(i=!1,a=this.b):j(a)===j(f9)&&(a=null),r==null?this.c==null?t.ji(n,f9):(t.ji(n,null),r=this.b):(this.zl(r),t.ji(n,r)),jP(e,this.d.Bl(e,1,this.e,a,r,!i))):r==null?this.c==null?t.ji(n,f9):t.ji(n,null):(this.zl(r),t.ji(n,r))},Q.Ck=function(e,t,n){var r,i;e.sh()&&e.th()?(r=!0,i=t.ii(n),i==null?(r=!1,i=this.b):j(i)===j(f9)&&(i=null),t.ki(n),jP(e,this.d.Bl(e,2,this.e,i,this.b,r))):t.ki(n)},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable`,772),q(1310,772,{},xCe),Q.zl=function(e){if(!this.a.dk(e))throw D(new Hv(AZ+WF(e)+jZ+this.a+`'`))},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic`,1310),q(1311,772,{},Vye),Q.zl=function(e){},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic`,1311),q(402,499,{},PE),Q.wk=function(e,t,n,r,i){var a,o,s,c,l=t.ii(n);if(this.rk()&&j(l)===j(f9))return null;if(this._k()&&r&&l!=null){if(s=P(l,52),s.Sh()&&(c=yI(e,s),s!=c)){if(!$H(this.a,c))throw D(new Hv(AZ+WF(c)+jZ+this.a+`'`));t.ji(n,l=c),this.$k()&&(a=P(c,52),o=s.Qh(e,this.b?NL(s.Ah(),this.b):-1-NL(e.Ah(),this.e),null,null),!a.Mh()&&(o=a.Oh(e,this.b?NL(a.Ah(),this.b):-1-NL(e.Ah(),this.e),null,o)),o&&o.mj()),e.sh()&&e.th()&&jP(e,new uD(e,9,this.e,s,c))}return l}return l},Q.xk=function(e,t,n,r,i){var a,o=t.ii(n);return j(o)===j(f9)&&(o=null),t.ji(n,r),this.Kj()?j(o)!==j(r)&&o!=null&&(a=P(o,52),i=a.Qh(e,NL(a.Ah(),this.b),null,i)):this.$k()&&o!=null&&(i=P(o,52).Qh(e,-1-NL(e.Ah(),this.e),null,i)),e.sh()&&e.th()&&(!i&&(i=new Ry(4)),i.lj(new uD(e,1,this.e,o,r))),i},Q.yk=function(e,t,n,r,i){var a=t.ii(n);return j(a)===j(f9)&&(a=null),t.ki(n),e.sh()&&e.th()&&(!i&&(i=new Ry(4)),this.rk()?i.lj(new uD(e,2,this.e,a,null)):i.lj(new uD(e,1,this.e,a,null))),i},Q.zk=function(e,t,n){return t.ii(n)!=null},Q.Ak=function(e,t,n,r){var i,a,o,s,c;if(r!=null&&!$H(this.a,r))throw D(new Hv(AZ+(M(r,57)?NYe(P(r,57).Ah()):sFe(WF(r)))+jZ+this.a+`'`));c=t.ii(n),s=c!=null,this.rk()&&j(c)===j(f9)&&(c=null),o=null,this.Kj()?j(c)!==j(r)&&(c!=null&&(i=P(c,52),o=i.Qh(e,NL(i.Ah(),this.b),null,o)),r!=null&&(i=P(r,52),o=i.Oh(e,NL(i.Ah(),this.b),null,o))):this.$k()&&j(c)!==j(r)&&(c!=null&&(o=P(c,52).Qh(e,-1-NL(e.Ah(),this.e),null,o)),r!=null&&(o=P(r,52).Oh(e,-1-NL(e.Ah(),this.e),null,o))),r==null&&this.rk()?t.ji(n,f9):t.ji(n,r),e.sh()&&e.th()?(a=new XCe(e,1,this.e,c,r,this.rk()&&!s),o?(o.lj(a),o.mj()):jP(e,a)):o&&o.mj()},Q.Ck=function(e,t,n){var r,i,a,o,s=t.ii(n);o=s!=null,this.rk()&&j(s)===j(f9)&&(s=null),a=null,s!=null&&(this.Kj()?(r=P(s,52),a=r.Qh(e,NL(r.Ah(),this.b),null,a)):this.$k()&&(a=P(s,52).Qh(e,-1-NL(e.Ah(),this.e),null,a))),t.ki(n),e.sh()&&e.th()?(i=new XCe(e,this.rk()?2:1,this.e,s,null,o),a?(a.lj(i),a.mj()):jP(e,i)):a&&a.mj()},Q.Kj=function(){return!1},Q.$k=function(){return!1},Q._k=function(){return!1},Q.rk=function(){return!1},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObject`,402),q(561,402,{},nT),Q.$k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment`,561),q(1314,561,{},Vfe),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving`,1314),q(774,561,{},Hfe),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable`,774),q(1316,774,{},Ufe),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving`,1316),q(639,561,{},y_e),Q.Kj=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse`,639),q(1315,639,{},S_e),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving`,1315),q(775,639,{},C_e),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable`,775),q(1317,775,{},w_e),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving`,1317),q(640,402,{},zfe),Q._k=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving`,640),q(1318,640,{},Wfe),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable`,1318),q(776,640,{},b_e),Q.Kj=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse`,776),q(1319,776,{},T_e),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable`,1319),q(1312,402,{},Bfe),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable`,1312),q(773,402,{},x_e),Q.Kj=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse`,773),q(1313,773,{},E_e),Q.rk=function(){return!0},L(LX,`EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable`,1313),q(777,562,kZ,Yxe),Q.wl=function(e){return new Yxe(this.a,this.c,e)},Q.kd=function(){return this.b},Q.xl=function(e,t,n){return cMe(this,e,this.b,n)},Q.yl=function(e,t,n){return lMe(this,e,this.b,n)},L(LX,`EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry`,777),q(1320,1,uht,ane),Q.Dk=function(e){return this.a},Q.Oj=function(){return M(this.a,98)?P(this.a,98).Oj():!this.a.dc()},Q.Wb=function(e){this.a.$b(),this.a.Fc(P(e,16))},Q.Ek=function(){M(this.a,98)?P(this.a,98).Ek():this.a.$b()},L(LX,`EStructuralFeatureImpl/SettingMany`,1320),q(1321,562,kZ,Hke),Q.vl=function(e){return new wT((UU(),A9),this.b.oi(this.a,e))},Q.kd=function(){return null},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},L(LX,`EStructuralFeatureImpl/SimpleContentFeatureMapEntry`,1321),q(641,562,kZ,wT),Q.vl=function(e){return new wT(this.c,e)},Q.kd=function(){return this.a},Q.xl=function(e,t,n){return n},Q.yl=function(e,t,n){return n},L(LX,`EStructuralFeatureImpl/SimpleFeatureMapEntry`,641),q(396,492,rZ,zl),Q.$i=function(e){return V(I7,NW,29,e,0,1)},Q.Wi=function(){return!1},L(LX,`ESuperAdapter/1`,396),q(446,439,{109:1,94:1,93:1,158:1,197:1,57:1,114:1,835:1,52:1,100:1,161:1,446:1,117:1,118:1},Bl),Q.Ih=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new IE(this,z7,this)),this.a}return qj(this,e-PD((xW(),s9)),RM((r=P(zP(this,16),29),r||s9),e),t,n)},Q.Rh=function(e,t,n){var r,i;switch(t){case 0:return!this.Ab&&(this.Ab=new F(j7,this,0,3)),RR(this.Ab,e,n);case 2:return!this.a&&(this.a=new IE(this,z7,this)),RR(this.a,e,n)}return i=P(RM((r=P(zP(this,16),29),r||(xW(),s9)),t),69),i.uk().yk(this,sR(this),t-PD((xW(),s9)),e,n)},Q.Th=function(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return _A(this,e-PD((xW(),s9)),RM((t=P(zP(this,16),29),t||s9),e))},Q.$h=function(e,t){var n;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab),!this.Ab&&(this.Ab=new F(j7,this,0,3)),FD(this.Ab,P(t,18));return;case 1:aP(this,oT(t));return;case 2:!this.a&&(this.a=new IE(this,z7,this)),RU(this.a),!this.a&&(this.a=new IE(this,z7,this)),FD(this.a,P(t,18));return}vL(this,e-PD((xW(),s9)),RM((n=P(zP(this,16),29),n||s9),e),t)},Q.fi=function(){return xW(),s9},Q.hi=function(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new F(j7,this,0,3)),RU(this.Ab);return;case 1:aP(this,null);return;case 2:!this.a&&(this.a=new IE(this,z7,this)),RU(this.a);return}AI(this,e-PD((xW(),s9)),RM((t=P(zP(this,16),29),t||s9),e))},L(LX,`ETypeParameterImpl`,446),q(447,81,CZ,IE),Q.Lj=function(e,t){return VXe(this,P(e,87),t)},Q.Mj=function(e,t){return HXe(this,P(e,87),t)},L(LX,`ETypeParameterImpl/1`,447),q(638,44,hK,ov),Q.ec=function(){return new Ag(this)},L(LX,`ETypeParameterImpl/2`,638),q(557,UW,WW,Ag),Q.Ec=function(e){return Sme(this,P(e,87))},Q.Fc=function(e){var t,n,r=!1;for(n=e.Jc();n.Ob();)t=P(n.Pb(),87),lO(this.a,t,``)??(r=!0);return r},Q.$b=function(){SD(this.a)},Q.Gc=function(e){return hD(this.a,e)},Q.Jc=function(){var e;return e=new OP(new vm(this.a).a),new jg(e)},Q.Kc=function(e){return vje(this,e)},Q.gc=function(){return lb(this.a)},L(LX,`ETypeParameterImpl/2/1`,557),q(558,1,zW,jg),Q.Nb=function(e){_D(this,e)},Q.Pb=function(){return P(WN(this.a).jd(),87)},Q.Ob=function(){return this.a.b},Q.Qb=function(){RNe(this.a)},L(LX,`ETypeParameterImpl/2/1/1`,558),q(1282,44,hK,Vne),Q._b=function(e){return VS(e)?awe(this,e):!!HE(this.f,e)},Q.xc=function(e){var t=VS(e)?ik(this,e):US(HE(this.f,e)),n;return M(t,836)?(n=P(t,836),t=n.Ik(),lO(this,P(e,241),t),t):t??(e==null?(Gb(),fVt):null)},L(LX,`EValidatorRegistryImpl`,1282),q(1304,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,2005:1,52:1,100:1,161:1,117:1,118:1},Vl),Q.oi=function(e,t){switch(e.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:yL(t);case 25:return iFe(t);case 27:return JMe(t);case 28:return YMe(t);case 29:return t==null?null:xue(h7[0],P(t,205));case 41:return t==null?``:Gy(P(t,298));case 42:return yL(t);case 50:return oT(t);default:throw D(new Uv(VX+e.ve()+HX))}},Q.pi=function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g;switch(e.G==-1&&(e.G=(f=nN(e),f?GR(f.si(),e):-1)),e.G){case 0:return n=new tv,n;case 1:return t=new bl,t;case 2:return r=new Af,r;case 4:return i=new p_,i;case 5:return a=new nv,a;case 6:return o=new Jg,o;case 7:return s=new kf,s;case 10:return l=new vl,l;case 11:return u=new rv,u;case 12:return d=new qCe,d;case 13:return p=new av,p;case 14:return m=new $fe,m;case 17:return h=new kl,h;case 18:return c=new Wg,c;case 19:return g=new Bl,g;default:throw D(new Uv(Mpt+e.zb+HX))}},Q.qi=function(e,t){switch(e.fk()){case 20:return t==null?null:new wie(t);case 21:return t==null?null:new jC(t);case 23:case 22:return t==null?null:bWe(t);case 26:case 24:return t==null?null:yM(GH(t,-128,127)<<24>>24);case 25:return $2e(t);case 27:return _qe(t);case 28:return vqe(t);case 29:return vZe(t);case 32:case 31:return t==null?null:AB(t);case 38:case 37:return t==null?null:new x_(t);case 40:case 39:return t==null?null:G(GH(t,hG,OW));case 41:return null;case 42:return null;case 44:case 43:return t==null?null:uR(iW(t));case 49:case 48:return t==null?null:xI(GH(t,PZ,32767)<<16>>16);case 50:return t;default:throw D(new Uv(VX+e.ve()+HX))}},L(LX,`EcoreFactoryImpl`,1304),q(549,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,2003:1,52:1,100:1,161:1,184:1,549:1,117:1,118:1,680:1},CSe),Q.gb=!1,Q.hb=!1;var aVt,oVt=!1;L(LX,`EcorePackageImpl`,549),q(1200,1,{836:1},Hl),Q.Ik=function(){return lde(),pVt},L(LX,`EcorePackageImpl/1`,1200),q(1209,1,RZ,Ul),Q.dk=function(e){return M(e,158)},Q.ek=function(e){return V(o7,NW,158,e,0,1)},L(LX,`EcorePackageImpl/10`,1209),q(1210,1,RZ,Wl),Q.dk=function(e){return M(e,197)},Q.ek=function(e){return V(Vzt,NW,197,e,0,1)},L(LX,`EcorePackageImpl/11`,1210),q(1211,1,RZ,Gl),Q.dk=function(e){return M(e,57)},Q.ek=function(e){return V(Q5,NW,57,e,0,1)},L(LX,`EcorePackageImpl/12`,1211),q(1212,1,RZ,Kl),Q.dk=function(e){return M(e,403)},Q.ek=function(e){return V(B7,mht,62,e,0,1)},L(LX,`EcorePackageImpl/13`,1212),q(1213,1,RZ,ql),Q.dk=function(e){return M(e,241)},Q.ek=function(e){return V(c7,NW,241,e,0,1)},L(LX,`EcorePackageImpl/14`,1213),q(1214,1,RZ,Jl),Q.dk=function(e){return M(e,504)},Q.ek=function(e){return V(H7,NW,2081,e,0,1)},L(LX,`EcorePackageImpl/15`,1214),q(1215,1,RZ,Yl),Q.dk=function(e){return M(e,103)},Q.ek=function(e){return V(U7,SZ,19,e,0,1)},L(LX,`EcorePackageImpl/16`,1215),q(1216,1,RZ,Xl),Q.dk=function(e){return M(e,179)},Q.ek=function(e){return V(N7,SZ,179,e,0,1)},L(LX,`EcorePackageImpl/17`,1216),q(1217,1,RZ,Zl),Q.dk=function(e){return M(e,470)},Q.ek=function(e){return V(M7,NW,470,e,0,1)},L(LX,`EcorePackageImpl/18`,1217),q(1218,1,RZ,Ql),Q.dk=function(e){return M(e,550)},Q.ek=function(e){return V(d9,Xmt,550,e,0,1)},L(LX,`EcorePackageImpl/19`,1218),q(1201,1,RZ,$l),Q.dk=function(e){return M(e,335)},Q.ek=function(e){return V(P7,SZ,38,e,0,1)},L(LX,`EcorePackageImpl/2`,1201),q(1219,1,RZ,eu),Q.dk=function(e){return M(e,248)},Q.ek=function(e){return V(z7,ght,87,e,0,1)},L(LX,`EcorePackageImpl/20`,1219),q(1220,1,RZ,tu),Q.dk=function(e){return M(e,446)},Q.ek=function(e){return V(W7,NW,835,e,0,1)},L(LX,`EcorePackageImpl/21`,1220),q(1221,1,RZ,nu),Q.dk=function(e){return zS(e)},Q.ek=function(e){return V(bQ,X,473,e,8,1)},L(LX,`EcorePackageImpl/22`,1221),q(1222,1,RZ,ru),Q.dk=function(e){return M(e,195)},Q.ek=function(e){return V(X9,X,195,e,0,2)},L(LX,`EcorePackageImpl/23`,1222),q(1223,1,RZ,iu),Q.dk=function(e){return M(e,221)},Q.ek=function(e){return V(xQ,X,221,e,0,1)},L(LX,`EcorePackageImpl/24`,1223),q(1224,1,RZ,au),Q.dk=function(e){return M(e,180)},Q.ek=function(e){return V(SQ,X,180,e,0,1)},L(LX,`EcorePackageImpl/25`,1224),q(1225,1,RZ,ou),Q.dk=function(e){return M(e,205)},Q.ek=function(e){return V(gQ,X,205,e,0,1)},L(LX,`EcorePackageImpl/26`,1225),q(1226,1,RZ,su),Q.dk=function(e){return!1},Q.ek=function(e){return V(cHt,NW,2177,e,0,1)},L(LX,`EcorePackageImpl/27`,1226),q(1227,1,RZ,cu),Q.dk=function(e){return BS(e)},Q.ek=function(e){return V(CQ,X,346,e,7,1)},L(LX,`EcorePackageImpl/28`,1227),q(1228,1,RZ,lu),Q.dk=function(e){return M(e,61)},Q.ek=function(e){return V(sBt,qK,61,e,0,1)},L(LX,`EcorePackageImpl/29`,1228),q(1202,1,RZ,uu),Q.dk=function(e){return M(e,505)},Q.ek=function(e){return V(j7,{3:1,4:1,5:1,1998:1},588,e,0,1)},L(LX,`EcorePackageImpl/3`,1202),q(1229,1,RZ,du),Q.dk=function(e){return M(e,568)},Q.ek=function(e){return V(hBt,NW,2004,e,0,1)},L(LX,`EcorePackageImpl/30`,1229),q(1230,1,RZ,fu),Q.dk=function(e){return M(e,163)},Q.ek=function(e){return V(dVt,qK,163,e,0,1)},L(LX,`EcorePackageImpl/31`,1230),q(1231,1,RZ,pu),Q.dk=function(e){return M(e,75)},Q.ek=function(e){return V(c9,Dht,75,e,0,1)},L(LX,`EcorePackageImpl/32`,1231),q(1232,1,RZ,mu),Q.dk=function(e){return M(e,164)},Q.ek=function(e){return V(wQ,X,164,e,0,1)},L(LX,`EcorePackageImpl/33`,1232),q(1233,1,RZ,hu),Q.dk=function(e){return M(e,15)},Q.ek=function(e){return V(TQ,X,15,e,0,1)},L(LX,`EcorePackageImpl/34`,1233),q(1234,1,RZ,gu),Q.dk=function(e){return M(e,298)},Q.ek=function(e){return V(Agt,NW,298,e,0,1)},L(LX,`EcorePackageImpl/35`,1234),q(1235,1,RZ,_u),Q.dk=function(e){return M(e,190)},Q.ek=function(e){return V(EQ,X,190,e,0,1)},L(LX,`EcorePackageImpl/36`,1235),q(1236,1,RZ,vu),Q.dk=function(e){return M(e,92)},Q.ek=function(e){return V(Ngt,NW,92,e,0,1)},L(LX,`EcorePackageImpl/37`,1236),q(1237,1,RZ,yu),Q.dk=function(e){return M(e,589)},Q.ek=function(e){return V(sVt,NW,589,e,0,1)},L(LX,`EcorePackageImpl/38`,1237),q(1238,1,RZ,bu),Q.dk=function(e){return!1},Q.ek=function(e){return V(lHt,NW,2178,e,0,1)},L(LX,`EcorePackageImpl/39`,1238),q(1203,1,RZ,xu),Q.dk=function(e){return M(e,88)},Q.ek=function(e){return V(I7,NW,29,e,0,1)},L(LX,`EcorePackageImpl/4`,1203),q(1239,1,RZ,Su),Q.dk=function(e){return M(e,191)},Q.ek=function(e){return V(DQ,X,191,e,0,1)},L(LX,`EcorePackageImpl/40`,1239),q(1240,1,RZ,Cu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(LX,`EcorePackageImpl/41`,1240),q(1241,1,RZ,wu),Q.dk=function(e){return M(e,586)},Q.ek=function(e){return V(lBt,NW,586,e,0,1)},L(LX,`EcorePackageImpl/42`,1241),q(1242,1,RZ,Tu),Q.dk=function(e){return!1},Q.ek=function(e){return V(uHt,X,2179,e,0,1)},L(LX,`EcorePackageImpl/43`,1242),q(1243,1,RZ,Eu),Q.dk=function(e){return M(e,45)},Q.ek=function(e){return V(dQ,tG,45,e,0,1)},L(LX,`EcorePackageImpl/44`,1243),q(1204,1,RZ,Du),Q.dk=function(e){return M(e,143)},Q.ek=function(e){return V(F7,NW,143,e,0,1)},L(LX,`EcorePackageImpl/5`,1204),q(1205,1,RZ,Ou),Q.dk=function(e){return M(e,159)},Q.ek=function(e){return V(kBt,NW,159,e,0,1)},L(LX,`EcorePackageImpl/6`,1205),q(1206,1,RZ,ku),Q.dk=function(e){return M(e,459)},Q.ek=function(e){return V(L7,NW,675,e,0,1)},L(LX,`EcorePackageImpl/7`,1206),q(1207,1,RZ,Au),Q.dk=function(e){return M(e,568)},Q.ek=function(e){return V(R7,NW,684,e,0,1)},L(LX,`EcorePackageImpl/8`,1207),q(1208,1,RZ,ju),Q.dk=function(e){return M(e,469)},Q.ek=function(e){return V(s7,NW,469,e,0,1)},L(LX,`EcorePackageImpl/9`,1208),q(1020,2045,Jmt,Vv),Q.Ki=function(e,t){TVe(this,P(t,415))},Q.Oi=function(e,t){w$e(this,e,P(t,415))},L(LX,`MinimalEObjectImpl/1ArrayDelegatingAdapterList`,1020),q(1021,151,uZ,Xxe),Q.hj=function(){return this.a.a},L(LX,`MinimalEObjectImpl/1ArrayDelegatingAdapterList/1`,1021),q(1048,1047,{},Xle),L(`org.eclipse.emf.ecore.plugin`,`EcorePlugin`,1048);var sVt=wE(Oht,`Resource`);q(787,1486,kht),Q.Fl=function(e){},Q.Gl=function(e){},Q.Cl=function(){return!this.a&&(this.a=new Ig(this)),this.a},Q.Dl=function(e){var t,n,r=e.length,i,a;if(r>0){if(Ik(0,e.length),e.charCodeAt(0)==47){for(a=new Mj(4),i=1,t=1;t<r;++t)Ik(t,e.length),e.charCodeAt(t)==47&&(ow(a,i==t?``:(kj(i,t,e.length),e.substr(i,t-i))),i=t+1);return ow(a,(Ik(i,e.length+1),e.substr(i))),VJe(this,a)}Ik(r-1,e.length),e.charCodeAt(r-1)==63&&(n=bme(e,_B(63),r-2),n>0&&(e=(kj(0,n,e.length),e.substr(0,n))))}return P1e(this,e)},Q.El=function(){return this.c},Q.Ib=function(){var e;return Gy(this.Pm)+`@`+(e=rP(this)>>>0,e.toString(16))+` uri='`+this.d+`'`},Q.b=!1,L(Aht,`ResourceImpl`,787),q(1487,787,kht,Fg),L(Aht,`BinaryResourceImpl`,1487),q(1160,697,lmt),Q._i=function(e){return M(e,57)?ywe(this,P(e,57)):M(e,589)?new pw(P(e,589).Cl()):j(e)===j(this.f)?P(e,18).Jc():(mT(),E7.a)},Q.Ob=function(){return h0e(this)},Q.a=!1,L(pZ,`EcoreUtil/ContentTreeIterator`,1160),q(1488,1160,lmt,kbe),Q._i=function(e){return j(e)===j(this.f)?P(e,16).Jc():new wOe(P(e,57))},L(Aht,`ResourceImpl/5`,1488),q(648,2057,hht,Ig),Q.Gc=function(e){return this.i<=4?Wz(this,e):M(e,52)&&P(e,52).Gh()==this.a},Q.Ki=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},Q.Mi=function(e,t){e==0?this.a.b||(this.a.b=!0):Dj(this,e,t)},Q.Oi=function(e,t){},Q.Pi=function(e,t,n){},Q.Jj=function(){return 2},Q.hj=function(){return this.a},Q.Kj=function(){return!0},Q.Lj=function(e,t){return t=P(e,52).ci(this.a,t),t},Q.Mj=function(e,t){return P(e,52).ci(null,t)},Q.Nj=function(){return!1},Q.Qi=function(){return!0},Q.$i=function(e){return V(Q5,NW,57,e,0,1)},Q.Wi=function(){return!1},L(Aht,`ResourceImpl/ContentsEList`,648),q(954,2027,uG,one),Q.dd=function(e){return this.a.Ii(e)},Q.gc=function(){return this.a.gc()},L(pZ,`AbstractSequentialInternalEList/1`,954);var cVt,lVt,p9,uVt;q(626,1,{},ave);var m9,h9;L(pZ,`BasicExtendedMetaData`,626),q(1151,1,{},Tce),Q.Hl=function(){return null},Q.Il=function(){return this.a==-2&&em(this,oZe(this.d,this.b)),this.a},Q.Jl=function(){return null},Q.Kl=function(){return jO(),jO(),IQ},Q.ve=function(){return this.c==qZ&&rm(this,LWe(this.d,this.b)),this.c},Q.Ll=function(){return 0},Q.a=-2,Q.c=qZ,L(pZ,`BasicExtendedMetaData/EClassExtendedMetaDataImpl`,1151),q(1152,1,{},RDe),Q.Hl=function(){return this.a==(gj(),m9)&&tm(this,w5e(this.f,this.b)),this.a},Q.Il=function(){return 0},Q.Jl=function(){return this.c==(gj(),m9)&&im(this,T5e(this.f,this.b)),this.c},Q.Kl=function(){return!this.d&&hee(this,Det(this.f,this.b)),this.d},Q.ve=function(){return this.e==qZ&&_ee(this,LWe(this.f,this.b)),this.e},Q.Ll=function(){return this.g==-2&&yee(this,dXe(this.f,this.b)),this.g},Q.e=qZ,Q.g=-2,L(pZ,`BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl`,1152),q(1150,1,{},Ece),Q.b=!1,Q.c=!1,L(pZ,`BasicExtendedMetaData/EPackageExtendedMetaDataImpl`,1150),q(1153,1,{},zDe),Q.c=-2,Q.e=qZ,Q.f=qZ,L(pZ,`BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl`,1153),q(582,624,CZ,uE),Q.Jj=function(){return this.c},Q.ml=function(){return!1},Q.Ui=function(e,t){return t},Q.c=0,L(pZ,`EDataTypeEList`,582);var dVt=wE(pZ,`FeatureMap`);q(76,582,{3:1,4:1,20:1,31:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},DP),Q._c=function(e,t){I3e(this,e,P(t,75))},Q.Ec=function(e){return z4e(this,P(e,75))},Q.Fi=function(e){yxe(this,P(e,75))},Q.Lj=function(e,t){return Ume(this,P(e,75),t)},Q.Mj=function(e,t){return Wme(this,P(e,75),t)},Q.Ri=function(e,t){return J7e(this,e,t)},Q.Ui=function(e,t){return mrt(this,e,P(t,75))},Q.fd=function(e,t){return z6e(this,e,P(t,75))},Q.Sj=function(e,t){return Gme(this,P(e,75),t)},Q.Tj=function(e,t){return Kme(this,P(e,75),t)},Q.Uj=function(e,t,n){return zYe(this,P(e,75),P(t,75),n)},Q.Xi=function(e,t){return cB(this,e,P(t,75))},Q.Ml=function(e,t){return D7e(this,e,t)},Q.ad=function(e,t){var n,r,i,a,o,s,c,l=new WM(t.gc()),u;for(i=t.Jc();i.Ob();)if(r=P(i.Pb(),75),a=r.Jk(),lH(this.e,a))(!a.Qi()||!SA(this,a,r.kd())&&!Wz(l,r))&&Pj(l,r);else{for(u=oH(this.e.Ah(),a),n=P(this.g,122),o=!0,s=0;s<this.i;++s)if(c=n[s],u.$l(c.Jk())){P(WR(this,s,r),75),o=!1;break}o&&Pj(l,r)}return YRe(this,e,l)},Q.Fc=function(e){var t,n,r,i,a,o,s,c=new WM(e.gc()),l;for(r=e.Jc();r.Ob();)if(n=P(r.Pb(),75),i=n.Jk(),lH(this.e,i))(!i.Qi()||!SA(this,i,n.kd())&&!Wz(c,n))&&Pj(c,n);else{for(l=oH(this.e.Ah(),i),t=P(this.g,122),a=!0,o=0;o<this.i;++o)if(s=t[o],l.$l(s.Jk())){P(WR(this,o,n),75),a=!1;break}a&&Pj(c,n)}return FD(this,c)},Q.Di=function(e){return this.j=-1,tU(this,this.i,e)},Q.Nl=function(e,t,n){return A5e(this,e,t,n)},Q.Vk=function(e,t){return zH(this,e,t)},Q.Ol=function(e,t,n){return ytt(this,e,t,n)},Q.Pl=function(){return this},Q.Ql=function(e,t){return SU(this,e,t)},Q.Rl=function(e){return P(H(this,e),75).Jk()},Q.Sl=function(e){return P(H(this,e),75).kd()},Q.Tl=function(){return this.b},Q.Kj=function(){return!0},Q.Rj=function(){return!0},Q.Ul=function(e){return!RL(this,e)},Q.$i=function(e){return V(YBt,Dht,344,e,0,1)},Q.nl=function(e){return rT(this,e)},Q.Wb=function(e){ED(this,e)},Q.Vl=function(e,t){OU(this,e,t)},Q.Wl=function(e){return yIe(this,e)},Q.Xl=function(e){GKe(this,e)},L(pZ,`BasicFeatureMap`,76),q(1925,1,GW),Q.Nb=function(e){_D(this,e)},Q.Rb=function(e){if(this.g==-1)throw D(new l_);YE(this);try{Y6e(this.e,this.b,this.a,e),this.d=this.e.j,VR(this)}catch(e){throw e=lF(e),M(e,99)?D(new s_):D(e)}},Q.Ob=function(){return HF(this)},Q.Sb=function(){return $ze(this)},Q.Pb=function(){return VR(this)},Q.Tb=function(){return this.a},Q.Ub=function(){var e;if($ze(this))return YE(this),this.g=--this.a,this.sl()&&(e=lV(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw D(new f_)},Q.Vb=function(){return this.a-1},Q.Qb=function(){if(this.g==-1)throw D(new l_);YE(this);try{VQe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw e=lF(e),M(e,99)?D(new s_):D(e)}},Q.sl=function(){return!1},Q.Wb=function(e){if(this.g==-1)throw D(new l_);YE(this);try{Met(this.e,this.b,this.g,e),this.d=this.e.j}catch(e){throw e=lF(e),M(e,99)?D(new s_):D(e)}},Q.a=0,Q.c=0,Q.d=0,Q.f=!1,Q.g=0,Q.i=0,L(pZ,`FeatureMapUtil/BasicFeatureEIterator`,1925),q(412,1925,GW,GP),Q.Yl=function(){var e,t,n=this.e.i;for(e=P(this.e.g,122);this.c<n;){if(t=e[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},Q.Zl=function(){for(var e=P(this.e.g,122),t;--this.c>=0;)if(t=e[this.c],this.k.$l(t.Jk()))return this.j=this.f?t:t.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},L(pZ,`BasicFeatureMap/FeatureEIterator`,412),q(666,412,GW,cC),Q.sl=function(){return!0},L(pZ,`BasicFeatureMap/ResolvingFeatureEIterator`,666),q(952,482,DZ,Nue),Q.nj=function(){return this},L(pZ,`EContentsEList/1`,952),q(953,482,DZ,Qce),Q.sl=function(){return!1},L(pZ,`EContentsEList/2`,953),q(951,287,OZ,Pue),Q.ul=function(e){},Q.Ob=function(){return!1},Q.Sb=function(){return!1},L(pZ,`EContentsEList/FeatureIteratorImpl/1`,951),q(825,582,CZ,Que),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;RU(this),bC(this.e)?(e=this.a,this.a=!1,jP(this.e,new QA(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EDataTypeEList/Unsettable`,825),q(1923,582,CZ,$ue),Q.Qi=function(){return!0},L(pZ,`EDataTypeUniqueEList`,1923),q(1924,825,CZ,ede),Q.Qi=function(){return!0},L(pZ,`EDataTypeUniqueEList/Unsettable`,1924),q(145,81,CZ,uw),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectContainmentEList/Resolving`,145),q(1154,544,CZ,tde),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectContainmentEList/Unsettable/Resolving`,1154),q(753,14,CZ,ame),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;RU(this),bC(this.e)?(e=this.a,this.a=!1,jP(this.e,new QA(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EObjectContainmentWithInverseEList/Unsettable`,753),q(1188,753,CZ,ome),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectContainmentWithInverseEList/Unsettable/Resolving`,1188),q(745,491,CZ,nde),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;RU(this),bC(this.e)?(e=this.a,this.a=!1,jP(this.e,new QA(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EObjectEList/Unsettable`,745),q(339,491,CZ,dw),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectResolvingEList`,339),q(1828,745,CZ,rde),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectResolvingEList/Unsettable`,1828),q(1489,1,{},Mu);var fVt;L(pZ,`EObjectValidator`,1489),q(548,491,CZ,dD),Q.gl=function(){return this.d},Q.hl=function(){return this.b},Q.Kj=function(){return!0},Q.kl=function(){return!0},Q.b=0,L(pZ,`EObjectWithInverseEList`,548),q(1191,548,CZ,sme),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseEList/ManyInverse`,1191),q(627,548,CZ,AT),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;RU(this),bC(this.e)?(e=this.a,this.a=!1,jP(this.e,new QA(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EObjectWithInverseEList/Unsettable`,627),q(1190,627,CZ,cme),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseEList/Unsettable/ManyInverse`,1190),q(754,548,CZ,lme),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectWithInverseResolvingEList`,754),q(33,754,CZ,jT),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseResolvingEList/ManyInverse`,33),q(755,627,CZ,ume),Q.ll=function(){return!0},Q.Ui=function(e,t){return xV(this,e,P(t,57))},L(pZ,`EObjectWithInverseResolvingEList/Unsettable`,755),q(1189,755,CZ,dme),Q.jl=function(){return!0},L(pZ,`EObjectWithInverseResolvingEList/Unsettable/ManyInverse`,1189),q(1155,624,CZ),Q.Ji=function(){return!(this.b&1792)},Q.Li=function(){this.b|=1},Q.il=function(){return!!(this.b&4)},Q.Kj=function(){return!!(this.b&40)},Q.jl=function(){return!!(this.b&16)},Q.kl=function(){return!!(this.b&8)},Q.ll=function(){return(this.b&RX)!=0},Q.$k=function(){return!!(this.b&32)},Q.ml=function(){return(this.b&fZ)!=0},Q.dk=function(e){return this.d?gke(this.d,e):this.Jk().Fk().dk(e)},Q.Oj=function(){return this.b&2?!!(this.b&1):this.i!=0},Q.Qi=function(){return!!(this.b&128)},Q.Ek=function(){var e;RU(this),this.b&2&&(bC(this.e)?(e=!!(this.b&1),this.b&=-2,v_(this,new QA(this.e,2,NL(this.e.Ah(),this.Jk()),e,!1))):this.b&=-2)},Q.Wi=function(){return!(this.b&1536)},Q.b=0,L(pZ,`EcoreEList/Generic`,1155),q(1156,1155,CZ,YCe),Q.Jk=function(){return this.a},L(pZ,`EcoreEList/Dynamic`,1156),q(752,67,rZ,Lg),Q.$i=function(e){return bN(this.a.a,e)},L(pZ,`EcoreEMap/1`,752),q(751,81,CZ,jbe),Q.Ki=function(e,t){$R(this.b,P(t,136))},Q.Mi=function(e,t){WLe(this.b)},Q.Ni=function(e,t,n){var r;++(r=this.b,P(t,136),r).e},Q.Oi=function(e,t){KI(this.b,P(t,136))},Q.Pi=function(e,t,n){KI(this.b,P(n,136)),j(n)===j(t)&&P(n,136).zi(Vle(P(t,136).jd())),$R(this.b,P(t,136))},L(pZ,`EcoreEMap/DelegateEObjectContainmentEList`,751),q(1186,142,dht,BFe),L(pZ,`EcoreEMap/Unsettable`,1186),q(1187,751,CZ,fme),Q.Li=function(){this.a=!0},Q.Oj=function(){return this.a},Q.Ek=function(){var e;RU(this),bC(this.e)?(e=this.a,this.a=!1,jP(this.e,new QA(this.e,2,this.c,e,!1))):this.a=!1},Q.a=!1,L(pZ,`EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList`,1187),q(1159,223,hK,Sxe),Q.a=!1,Q.b=!1,L(pZ,`EcoreUtil/Copier`,1159),q(747,1,zW,wOe),Q.Nb=function(e){_D(this,e)},Q.Ob=function(){return HUe(this)},Q.Pb=function(){var e;return HUe(this),e=this.b,this.b=null,e},Q.Qb=function(){this.a.Qb()},L(pZ,`EcoreUtil/ProperContentIterator`,747),q(1490,1489,{},Mf);var pVt;L(pZ,`EcoreValidator`,1490);var mVt;wE(pZ,`FeatureMapUtil/Validator`),q(1260,1,{2006:1},Nu),Q.$l=function(e){return!0},L(pZ,`FeatureMapUtil/1`,1260),q(760,1,{2006:1},Zit),Q.$l=function(e){var t;return this.c==e||(t=aT(VD(this.a,e)),t==null?P5e(this,e)?($Ae(this.a,e,(Cw(),yQ)),!0):($Ae(this.a,e,(Cw(),vQ)),!1):t==(Cw(),yQ))},Q.e=!1;var hVt;L(pZ,`FeatureMapUtil/BasicValidator`,760),q(761,44,hK,Rue),L(pZ,`FeatureMapUtil/BasicValidator/Cache`,761),q(495,56,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},KS),Q._c=function(e,t){Y6e(this.c,this.b,e,t)},Q.Ec=function(e){return D7e(this.c,this.b,e)},Q.ad=function(e,t){return Btt(this.c,this.b,e,t)},Q.Fc=function(e){return XC(this,e)},Q.Ei=function(e,t){HPe(this.c,this.b,e,t)},Q.Uk=function(e,t){return A5e(this.c,this.b,e,t)},Q.Yi=function(e){return CU(this.c,this.b,e,!1)},Q.Gi=function(){return Dle(this.c,this.b)},Q.Hi=function(){return Ole(this.c,this.b)},Q.Ii=function(e){return uMe(this.c,this.b,e)},Q.Vk=function(e,t){return Mpe(this,e,t)},Q.$b=function(){y_(this)},Q.Gc=function(e){return SA(this.c,this.b,e)},Q.Hc=function(e){return _Le(this.c,this.b,e)},Q.Xb=function(e){return CU(this.c,this.b,e,!0)},Q.Dk=function(e){return this},Q.bd=function(e){return kke(this.c,this.b,e)},Q.dc=function(){return RS(this)},Q.Oj=function(){return!RL(this.c,this.b)},Q.Jc=function(){return XNe(this.c,this.b)},Q.cd=function(){return ZNe(this.c,this.b)},Q.dd=function(e){return aHe(this.c,this.b,e)},Q.Ri=function(e,t){return Q9e(this.c,this.b,e,t)},Q.Si=function(e,t){hMe(this.c,this.b,e,t)},Q.ed=function(e){return VQe(this.c,this.b,e)},Q.Kc=function(e){return y7e(this.c,this.b,e)},Q.fd=function(e,t){return Met(this.c,this.b,e,t)},Q.Wb=function(e){bV(this.c,this.b),XC(this,P(e,16))},Q.gc=function(){return oHe(this.c,this.b)},Q.Nc=function(){return VDe(this.c,this.b)},Q.Oc=function(e){return Ake(this.c,this.b,e)},Q.Ib=function(){var e,t=new py;for(t.a+=`[`,e=Dle(this.c,this.b);HF(e);)ZS(t,vw(VR(e))),HF(e)&&(t.a+=MW);return t.a+=`]`,t.a},Q.Ek=function(){bV(this.c,this.b)},L(pZ,`FeatureMapUtil/FeatureEList`,495),q(635,39,uZ,PA),Q.fj=function(e){return PI(this,e)},Q.kj=function(e){var t,n,r,i,a,o,s;switch(this.d){case 1:case 2:if(a=e.hj(),j(a)===j(this.c)&&PI(this,null)==e.fj(null))return this.g=e.gj(),e.ej()==1&&(this.d=1),!0;break;case 3:if(i=e.ej(),i===3&&(a=e.hj(),j(a)===j(this.c)&&PI(this,null)==e.fj(null)))return this.d=5,t=new WM(2),Pj(t,this.g),Pj(t,e.gj()),this.g=t,!0;break;case 5:if(i=e.ej(),i===3&&(a=e.hj(),j(a)===j(this.c)&&PI(this,null)==e.fj(null)))return n=P(this.g,18),n.Ec(e.gj()),!0;break;case 4:switch(i=e.ej(),i){case 3:if(a=e.hj(),j(a)===j(this.c)&&PI(this,null)==e.fj(null))return this.d=1,this.g=e.gj(),!0;break;case 4:if(a=e.hj(),j(a)===j(this.c)&&PI(this,null)==e.fj(null))return this.d=6,s=new WM(2),Pj(s,this.n),Pj(s,e.ij()),this.n=s,o=U(k(q9,1),IG,30,15,[this.o,e.jj()]),this.g=o,!0}break;case 6:if(i=e.ej(),i===4&&(a=e.hj(),j(a)===j(this.c)&&PI(this,null)==e.fj(null)))return n=P(this.n,18),n.Ec(e.ij()),o=P(this.g,54),r=V(q9,IG,30,o.length+1,15,1),nU(o,0,r,0,o.length),r[o.length]=e.jj(),this.g=r,!0}return!1},L(pZ,`FeatureMapUtil/FeatureENotificationImpl`,635),q(554,495,{20:1,31:1,56:1,18:1,16:1,61:1,78:1,163:1,219:1,2001:1,72:1,98:1},xE),Q.Ml=function(e,t){return D7e(this.c,e,t)},Q.Nl=function(e,t,n){return A5e(this.c,e,t,n)},Q.Ol=function(e,t,n){return ytt(this.c,e,t,n)},Q.Pl=function(){return this},Q.Ql=function(e,t){return SU(this.c,e,t)},Q.Rl=function(e){return P(CU(this.c,this.b,e,!1),75).Jk()},Q.Sl=function(e){return P(CU(this.c,this.b,e,!1),75).kd()},Q.Tl=function(){return this.a},Q.Ul=function(e){return!RL(this.c,e)},Q.Vl=function(e,t){OU(this.c,e,t)},Q.Wl=function(e){return yIe(this.c,e)},Q.Xl=function(e){GKe(this.c,e)},L(pZ,`FeatureMapUtil/FeatureFeatureMap`,554),q(1259,1,uht,Fce),Q.Dk=function(e){return CU(this.b,this.a,-1,e)},Q.Oj=function(){return!RL(this.b,this.a)},Q.Wb=function(e){OU(this.b,this.a,e)},Q.Ek=function(){bV(this.b,this.a)},L(pZ,`FeatureMapUtil/FeatureValue`,1259);var g9,gVt,_Vt,_9,vVt,v9=wE(YZ,`AnyType`);q(670,63,gG,ay),L(YZ,`InvalidDatatypeValueException`,670);var y9=wE(YZ,Lht),b9=wE(YZ,Rht),yVt=wE(YZ,zht),bVt,x9,xVt,S9,SVt,CVt,wVt,TVt,EVt,DVt,OVt,kVt,AVt,jVt,MVt,C9,NVt,w9,T9,PVt,E9,D9,O9,FVt,k9,A9;q(829,502,{109:1,94:1,93:1,57:1,52:1,100:1,842:1},sv),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new DP(this,0)),this.c):(!this.c&&(this.c=new DP(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new DP(this,0)),P(Mk(this.c,(UU(),S9)),163)):(!this.c&&(this.c=new DP(this,0)),P(P(Mk(this.c,(UU(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new DP(this,2)),this.b):(!this.b&&(this.b=new DP(this,2)),this.b.b)}return qj(this,e-PD(this.fi()),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():this.fi(),e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.c&&(this.c=new DP(this,0)),zH(this.c,e,n);case 1:return(!this.c&&(this.c=new DP(this,0)),P(P(Mk(this.c,(UU(),S9)),163),72)).Vk(e,n);case 2:return!this.b&&(this.b=new DP(this,2)),zH(this.b,e,n)}return r=P(RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():this.fi(),t),69),r.uk().yk(this,zNe(this),t-PD(this.fi()),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new DP(this,0)),P(Mk(this.c,(UU(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0}return _A(this,e-PD(this.fi()),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():this.fi(),e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new DP(this,0)),ED(this.c,t);return;case 1:(!this.c&&(this.c=new DP(this,0)),P(P(Mk(this.c,(UU(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new DP(this,2)),ED(this.b,t);return}vL(this,e-PD(this.fi()),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():this.fi(),e),t)},Q.fi=function(){return UU(),xVt},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new DP(this,0)),RU(this.c);return;case 1:(!this.c&&(this.c=new DP(this,0)),P(Mk(this.c,(UU(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new DP(this,2)),RU(this.b);return}AI(this,e-PD(this.fi()),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():this.fi(),e))},Q.Ib=function(){var e;return this.j&4?jV(this):(e=new yw(jV(this)),e.a+=` (mixed: `,XS(e,this.c),e.a+=`, anyAttribute: `,XS(e,this.b),e.a+=`)`,e.a)},L(XZ,`AnyTypeImpl`,829),q(671,502,{109:1,94:1,93:1,57:1,52:1,100:1,2084:1,671:1},zu),Q.Ih=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return qj(this,e-PD((UU(),C9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():C9,e),t,n)},Q.Th=function(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return _A(this,e-PD((UU(),C9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():C9,e))},Q.$h=function(e,t){switch(e){case 0:om(this,oT(t));return;case 1:cm(this,oT(t));return}vL(this,e-PD((UU(),C9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():C9,e),t)},Q.fi=function(){return UU(),C9},Q.hi=function(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}AI(this,e-PD((UU(),C9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():C9,e))},Q.Ib=function(){var e;return this.j&4?jV(this):(e=new yw(jV(this)),e.a+=` (data: `,ZS(e,this.a),e.a+=`, target: `,ZS(e,this.b),e.a+=`)`,e.a)},Q.a=null,Q.b=null,L(XZ,`ProcessingInstructionImpl`,671),q(672,829,{109:1,94:1,93:1,57:1,52:1,100:1,842:1,2085:1,672:1},Hne),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new DP(this,0)),this.c):(!this.c&&(this.c=new DP(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new DP(this,0)),P(Mk(this.c,(UU(),S9)),163)):(!this.c&&(this.c=new DP(this,0)),P(P(Mk(this.c,(UU(),S9)),163),219)).Tl();case 2:return n?(!this.b&&(this.b=new DP(this,2)),this.b):(!this.b&&(this.b=new DP(this,2)),this.b.b);case 3:return!this.c&&(this.c=new DP(this,0)),oT(SU(this.c,(UU(),T9),!0));case 4:return hme(this.a,(!this.c&&(this.c=new DP(this,0)),oT(SU(this.c,(UU(),T9),!0))));case 5:return this.a}return qj(this,e-PD((UU(),w9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():w9,e),t,n)},Q.Th=function(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new DP(this,0)),P(Mk(this.c,(UU(),S9)),163)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new DP(this,0)),oT(SU(this.c,(UU(),T9),!0))!=null;case 4:return hme(this.a,(!this.c&&(this.c=new DP(this,0)),oT(SU(this.c,(UU(),T9),!0))))!=null;case 5:return!!this.a}return _A(this,e-PD((UU(),w9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():w9,e))},Q.$h=function(e,t){switch(e){case 0:!this.c&&(this.c=new DP(this,0)),ED(this.c,t);return;case 1:(!this.c&&(this.c=new DP(this,0)),P(P(Mk(this.c,(UU(),S9)),163),219)).Wb(t);return;case 2:!this.b&&(this.b=new DP(this,2)),ED(this.b,t);return;case 3:BDe(this,oT(t));return;case 4:BDe(this,mme(this.a,t));return;case 5:sm(this,P(t,159));return}vL(this,e-PD((UU(),w9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():w9,e),t)},Q.fi=function(){return UU(),w9},Q.hi=function(e){switch(e){case 0:!this.c&&(this.c=new DP(this,0)),RU(this.c);return;case 1:(!this.c&&(this.c=new DP(this,0)),P(Mk(this.c,(UU(),S9)),163)).$b();return;case 2:!this.b&&(this.b=new DP(this,2)),RU(this.b);return;case 3:!this.c&&(this.c=new DP(this,0)),OU(this.c,(UU(),T9),null);return;case 4:BDe(this,mme(this.a,null));return;case 5:this.a=null;return}AI(this,e-PD((UU(),w9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():w9,e))},L(XZ,`SimpleAnyTypeImpl`,672),q(673,502,{109:1,94:1,93:1,57:1,52:1,100:1,2086:1,673:1},cv),Q.Ih=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new DP(this,0)),this.a):(!this.a&&(this.a=new DP(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new Rj((xW(),o9),d9,this,1)),this.b):(!this.b&&(this.b=new Rj((xW(),o9),d9,this,1)),Tj(this.b));case 2:return n?(!this.c&&(this.c=new Rj((xW(),o9),d9,this,2)),this.c):(!this.c&&(this.c=new Rj((xW(),o9),d9,this,2)),Tj(this.c));case 3:return!this.a&&(this.a=new DP(this,0)),Mk(this.a,(UU(),D9));case 4:return!this.a&&(this.a=new DP(this,0)),Mk(this.a,(UU(),O9));case 5:return!this.a&&(this.a=new DP(this,0)),Mk(this.a,(UU(),k9));case 6:return!this.a&&(this.a=new DP(this,0)),Mk(this.a,(UU(),A9))}return qj(this,e-PD((UU(),E9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():E9,e),t,n)},Q.Rh=function(e,t,n){var r;switch(t){case 0:return!this.a&&(this.a=new DP(this,0)),zH(this.a,e,n);case 1:return!this.b&&(this.b=new Rj((xW(),o9),d9,this,1)),FT(this.b,e,n);case 2:return!this.c&&(this.c=new Rj((xW(),o9),d9,this,2)),FT(this.c,e,n);case 5:return!this.a&&(this.a=new DP(this,0)),Mpe(Mk(this.a,(UU(),k9)),e,n)}return r=P(RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():(UU(),E9),t),69),r.uk().yk(this,zNe(this),t-PD((UU(),E9)),e,n)},Q.Th=function(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new DP(this,0)),!RS(Mk(this.a,(UU(),D9)));case 4:return!this.a&&(this.a=new DP(this,0)),!RS(Mk(this.a,(UU(),O9)));case 5:return!this.a&&(this.a=new DP(this,0)),!RS(Mk(this.a,(UU(),k9)));case 6:return!this.a&&(this.a=new DP(this,0)),!RS(Mk(this.a,(UU(),A9)))}return _A(this,e-PD((UU(),E9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():E9,e))},Q.$h=function(e,t){switch(e){case 0:!this.a&&(this.a=new DP(this,0)),ED(this.a,t);return;case 1:!this.b&&(this.b=new Rj((xW(),o9),d9,this,1)),TP(this.b,t);return;case 2:!this.c&&(this.c=new Rj((xW(),o9),d9,this,2)),TP(this.c,t);return;case 3:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),D9))),!this.a&&(this.a=new DP(this,0)),XC(Mk(this.a,D9),P(t,18));return;case 4:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),O9))),!this.a&&(this.a=new DP(this,0)),XC(Mk(this.a,O9),P(t,18));return;case 5:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),k9))),!this.a&&(this.a=new DP(this,0)),XC(Mk(this.a,k9),P(t,18));return;case 6:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),A9))),!this.a&&(this.a=new DP(this,0)),XC(Mk(this.a,A9),P(t,18));return}vL(this,e-PD((UU(),E9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():E9,e),t)},Q.fi=function(){return UU(),E9},Q.hi=function(e){switch(e){case 0:!this.a&&(this.a=new DP(this,0)),RU(this.a);return;case 1:!this.b&&(this.b=new Rj((xW(),o9),d9,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Rj((xW(),o9),d9,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),D9)));return;case 4:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),O9)));return;case 5:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),k9)));return;case 6:!this.a&&(this.a=new DP(this,0)),y_(Mk(this.a,(UU(),A9)));return}AI(this,e-PD((UU(),E9)),RM(this.j&2?(!this.k&&(this.k=new jf),this.k).Lk():E9,e))},Q.Ib=function(){var e;return this.j&4?jV(this):(e=new yw(jV(this)),e.a+=` (mixed: `,XS(e,this.a),e.a+=`)`,e.a)},L(XZ,`XMLTypeDocumentRootImpl`,673),q(1993,710,{109:1,94:1,93:1,469:1,158:1,57:1,114:1,52:1,100:1,161:1,117:1,118:1,2087:1},Pu),Q.oi=function(e,t){switch(e.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:yL(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return oT(t);case 6:return Zfe(P(t,195));case 12:case 47:case 49:case 11:return Wrt(this,e,t);case 13:return t==null?null:qtt(P(t,247));case 15:case 14:return t==null?null:nxe(O(N(t)));case 17:return BYe((UU(),t));case 18:return BYe(t);case 21:case 20:return t==null?null:rxe(P(t,164).a);case 27:return Qfe(P(t,195));case 30:return KKe((UU(),P(t,16)));case 31:return KKe(P(t,16));case 40:return Xfe((UU(),t));case 42:return VYe((UU(),t));case 43:return VYe(t);case 59:case 48:return Yfe((UU(),t));default:throw D(new Uv(VX+e.ve()+HX))}},Q.pi=function(e){var t,n,r,i,a;switch(e.G==-1&&(e.G=(n=nN(e),n?GR(n.si(),e):-1)),e.G){case 0:return t=new sv,t;case 1:return r=new zu,r;case 2:return i=new Hne,i;case 3:return a=new cv,a;default:throw D(new Uv(Mpt+e.zb+HX))}},Q.qi=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;switch(e.fk()){case 5:case 52:case 4:return t;case 6:return mGe(t);case 8:case 7:return t==null?null:eXe(t);case 9:return t==null?null:yM(GH((r=EU(t,!0),r.length>0&&(Ik(0,r.length),r.charCodeAt(0)==43)?(Ik(1,r.length+1),r.substr(1)):r),-128,127)<<24>>24);case 10:return t==null?null:yM(GH((i=EU(t,!0),i.length>0&&(Ik(0,i.length),i.charCodeAt(0)==43)?(Ik(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 11:return oT(uW(this,(UU(),wVt),t));case 12:return oT(uW(this,(UU(),TVt),t));case 13:return t==null?null:new wie(EU(t,!0));case 15:case 14:return W4e(t);case 16:return oT(uW(this,(UU(),EVt),t));case 17:return eWe((UU(),t));case 18:return eWe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return EU(t,!0);case 21:case 20:return i3e(t);case 22:return oT(uW(this,(UU(),DVt),t));case 23:return oT(uW(this,(UU(),OVt),t));case 24:return oT(uW(this,(UU(),kVt),t));case 25:return oT(uW(this,(UU(),AVt),t));case 26:return oT(uW(this,(UU(),jVt),t));case 27:return eGe(t);case 30:return tWe((UU(),t));case 31:return tWe(t);case 32:return t==null?null:G(GH((u=EU(t,!0),u.length>0&&(Ik(0,u.length),u.charCodeAt(0)==43)?(Ik(1,u.length+1),u.substr(1)):u),hG,OW));case 33:return t==null?null:new jC((d=EU(t,!0),d.length>0&&(Ik(0,d.length),d.charCodeAt(0)==43)?(Ik(1,d.length+1),d.substr(1)):d));case 34:return t==null?null:G(GH((f=EU(t,!0),f.length>0&&(Ik(0,f.length),f.charCodeAt(0)==43)?(Ik(1,f.length+1),f.substr(1)):f),hG,OW));case 36:return t==null?null:uR(iW((p=EU(t,!0),p.length>0&&(Ik(0,p.length),p.charCodeAt(0)==43)?(Ik(1,p.length+1),p.substr(1)):p)));case 37:return t==null?null:uR(iW((m=EU(t,!0),m.length>0&&(Ik(0,m.length),m.charCodeAt(0)==43)?(Ik(1,m.length+1),m.substr(1)):m)));case 40:return jKe((UU(),t));case 42:return nWe((UU(),t));case 43:return nWe(t);case 44:return t==null?null:new jC((h=EU(t,!0),h.length>0&&(Ik(0,h.length),h.charCodeAt(0)==43)?(Ik(1,h.length+1),h.substr(1)):h));case 45:return t==null?null:new jC((g=EU(t,!0),g.length>0&&(Ik(0,g.length),g.charCodeAt(0)==43)?(Ik(1,g.length+1),g.substr(1)):g));case 46:return EU(t,!1);case 47:return oT(uW(this,(UU(),MVt),t));case 59:case 48:return AKe((UU(),t));case 49:return oT(uW(this,(UU(),NVt),t));case 50:return t==null?null:xI(GH((_=EU(t,!0),_.length>0&&(Ik(0,_.length),_.charCodeAt(0)==43)?(Ik(1,_.length+1),_.substr(1)):_),PZ,32767)<<16>>16);case 51:return t==null?null:xI(GH((a=EU(t,!0),a.length>0&&(Ik(0,a.length),a.charCodeAt(0)==43)?(Ik(1,a.length+1),a.substr(1)):a),PZ,32767)<<16>>16);case 53:return oT(uW(this,(UU(),PVt),t));case 55:return t==null?null:xI(GH((o=EU(t,!0),o.length>0&&(Ik(0,o.length),o.charCodeAt(0)==43)?(Ik(1,o.length+1),o.substr(1)):o),PZ,32767)<<16>>16);case 56:return t==null?null:xI(GH((s=EU(t,!0),s.length>0&&(Ik(0,s.length),s.charCodeAt(0)==43)?(Ik(1,s.length+1),s.substr(1)):s),PZ,32767)<<16>>16);case 57:return t==null?null:uR(iW((c=EU(t,!0),c.length>0&&(Ik(0,c.length),c.charCodeAt(0)==43)?(Ik(1,c.length+1),c.substr(1)):c)));case 58:return t==null?null:uR(iW((l=EU(t,!0),l.length>0&&(Ik(0,l.length),l.charCodeAt(0)==43)?(Ik(1,l.length+1),l.substr(1)):l)));case 60:return t==null?null:G(GH((n=EU(t,!0),n.length>0&&(Ik(0,n.length),n.charCodeAt(0)==43)?(Ik(1,n.length+1),n.substr(1)):n),hG,OW));case 61:return t==null?null:G(GH(EU(t,!0),hG,OW));default:throw D(new Uv(VX+e.ve()+HX))}};var IVt,LVt,RVt,zVt;L(XZ,`XMLTypeFactoryImpl`,1993),q(583,184,{109:1,94:1,93:1,158:1,197:1,57:1,241:1,114:1,52:1,100:1,161:1,184:1,117:1,118:1,680:1,2009:1,583:1},wSe),Q.N=!1,Q.O=!1;var BVt=!1;L(XZ,`XMLTypePackageImpl`,583),q(1926,1,{836:1},Fu),Q.Ik=function(){return J9e(),oHt},L(XZ,`XMLTypePackageImpl/1`,1926),q(1935,1,RZ,Iu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/10`,1935),q(1936,1,RZ,Lu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/11`,1936),q(1937,1,RZ,Ru),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/12`,1937),q(1938,1,RZ,Bu),Q.dk=function(e){return BS(e)},Q.ek=function(e){return V(CQ,X,346,e,7,1)},L(XZ,`XMLTypePackageImpl/13`,1938),q(1939,1,RZ,Vu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/14`,1939),q(1940,1,RZ,Hu),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,qK,16,e,0,1)},L(XZ,`XMLTypePackageImpl/15`,1940),q(1941,1,RZ,Uu),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,qK,16,e,0,1)},L(XZ,`XMLTypePackageImpl/16`,1941),q(1942,1,RZ,Wu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/17`,1942),q(1943,1,RZ,Gu),Q.dk=function(e){return M(e,164)},Q.ek=function(e){return V(wQ,X,164,e,0,1)},L(XZ,`XMLTypePackageImpl/18`,1943),q(1944,1,RZ,Ku),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/19`,1944),q(1927,1,RZ,qu),Q.dk=function(e){return M(e,842)},Q.ek=function(e){return V(v9,NW,842,e,0,1)},L(XZ,`XMLTypePackageImpl/2`,1927),q(1945,1,RZ,Ju),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/20`,1945),q(1946,1,RZ,Yu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/21`,1946),q(1947,1,RZ,Xu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/22`,1947),q(1948,1,RZ,Zu),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/23`,1948),q(1949,1,RZ,Qu),Q.dk=function(e){return M(e,195)},Q.ek=function(e){return V(X9,X,195,e,0,2)},L(XZ,`XMLTypePackageImpl/24`,1949),q(1950,1,RZ,$u),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/25`,1950),q(1951,1,RZ,ed),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/26`,1951),q(1952,1,RZ,td),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,qK,16,e,0,1)},L(XZ,`XMLTypePackageImpl/27`,1952),q(1953,1,RZ,nd),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,qK,16,e,0,1)},L(XZ,`XMLTypePackageImpl/28`,1953),q(1954,1,RZ,rd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/29`,1954),q(1928,1,RZ,id),Q.dk=function(e){return M(e,671)},Q.ek=function(e){return V(y9,NW,2084,e,0,1)},L(XZ,`XMLTypePackageImpl/3`,1928),q(1955,1,RZ,ad),Q.dk=function(e){return M(e,15)},Q.ek=function(e){return V(TQ,X,15,e,0,1)},L(XZ,`XMLTypePackageImpl/30`,1955),q(1956,1,RZ,od),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/31`,1956),q(1957,1,RZ,sd),Q.dk=function(e){return M(e,190)},Q.ek=function(e){return V(EQ,X,190,e,0,1)},L(XZ,`XMLTypePackageImpl/32`,1957),q(1958,1,RZ,cd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/33`,1958),q(1959,1,RZ,ld),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/34`,1959),q(1960,1,RZ,ud),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/35`,1960),q(1961,1,RZ,dd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/36`,1961),q(1962,1,RZ,see),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,qK,16,e,0,1)},L(XZ,`XMLTypePackageImpl/37`,1962),q(1963,1,RZ,fd),Q.dk=function(e){return M(e,16)},Q.ek=function(e){return V(uQ,qK,16,e,0,1)},L(XZ,`XMLTypePackageImpl/38`,1963),q(1964,1,RZ,cee),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/39`,1964),q(1929,1,RZ,lee),Q.dk=function(e){return M(e,672)},Q.ek=function(e){return V(b9,NW,2085,e,0,1)},L(XZ,`XMLTypePackageImpl/4`,1929),q(1965,1,RZ,uee),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/40`,1965),q(1966,1,RZ,pd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/41`,1966),q(1967,1,RZ,md),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/42`,1967),q(1968,1,RZ,hd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/43`,1968),q(1969,1,RZ,gd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/44`,1969),q(1970,1,RZ,_d),Q.dk=function(e){return M(e,191)},Q.ek=function(e){return V(DQ,X,191,e,0,1)},L(XZ,`XMLTypePackageImpl/45`,1970),q(1971,1,RZ,vd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/46`,1971),q(1972,1,RZ,yd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/47`,1972),q(1973,1,RZ,bd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/48`,1973),q(1974,1,RZ,xd),Q.dk=function(e){return M(e,191)},Q.ek=function(e){return V(DQ,X,191,e,0,1)},L(XZ,`XMLTypePackageImpl/49`,1974),q(1930,1,RZ,Sd),Q.dk=function(e){return M(e,673)},Q.ek=function(e){return V(yVt,NW,2086,e,0,1)},L(XZ,`XMLTypePackageImpl/5`,1930),q(1975,1,RZ,Cd),Q.dk=function(e){return M(e,190)},Q.ek=function(e){return V(EQ,X,190,e,0,1)},L(XZ,`XMLTypePackageImpl/50`,1975),q(1976,1,RZ,wd),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/51`,1976),q(1977,1,RZ,Td),Q.dk=function(e){return M(e,15)},Q.ek=function(e){return V(TQ,X,15,e,0,1)},L(XZ,`XMLTypePackageImpl/52`,1977),q(1931,1,RZ,Ed),Q.dk=function(e){return VS(e)},Q.ek=function(e){return V(OQ,X,2,e,6,1)},L(XZ,`XMLTypePackageImpl/6`,1931),q(1932,1,RZ,Dd),Q.dk=function(e){return M(e,195)},Q.ek=function(e){return V(X9,X,195,e,0,2)},L(XZ,`XMLTypePackageImpl/7`,1932),q(1933,1,RZ,Od),Q.dk=function(e){return zS(e)},Q.ek=function(e){return V(bQ,X,473,e,8,1)},L(XZ,`XMLTypePackageImpl/8`,1933),q(1934,1,RZ,kd),Q.dk=function(e){return M(e,221)},Q.ek=function(e){return V(xQ,X,221,e,0,1)},L(XZ,`XMLTypePackageImpl/9`,1934);var j9,M9,N9,P9,$;q(53,63,gG,iy),L(tQ,`RegEx/ParseException`,53),q(821,1,{},Ad),Q._l=function(e){return e<this.j&&cO(this.i,e)==63},Q.am=function(){var e,t,n,r,i;if(this.c!=10)throw D(new iy(CW((zC(),aZ))));switch(e=this.a,e){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(pW(this),this.c!=0)throw D(new iy(CW((zC(),cZ))));if(this.a==123){i=0,n=0;do{if(pW(this),this.c!=0)throw D(new iy(CW((zC(),cZ))));if((i=oz(this.a))<0)break;if(n>n*16)throw D(new iy(CW((zC(),Fmt))));n=n*16+i}while(!0);if(this.a!=125)throw D(new iy(CW((zC(),Imt))));if(n>nQ)throw D(new iy(CW((zC(),Lmt))));e=n}else{if(i=0,this.c!=0||(i=oz(this.a))<0||(n=i,pW(this),this.c!=0||(i=oz(this.a))<0))throw D(new iy(CW((zC(),cZ))));n=n*16+i,e=n}break;case 117:if(r=0,pW(this),this.c!=0||(r=oz(this.a))<0||(t=r,pW(this),this.c!=0||(r=oz(this.a))<0)||(t=t*16+r,pW(this),this.c!=0||(r=oz(this.a))<0)||(t=t*16+r,pW(this),this.c!=0||(r=oz(this.a))<0))throw D(new iy(CW((zC(),cZ))));t=t*16+r,e=t;break;case 118:if(pW(this),this.c!=0||(r=oz(this.a))<0||(t=r,pW(this),this.c!=0||(r=oz(this.a))<0)||(t=t*16+r,pW(this),this.c!=0||(r=oz(this.a))<0)||(t=t*16+r,pW(this),this.c!=0||(r=oz(this.a))<0)||(t=t*16+r,pW(this),this.c!=0||(r=oz(this.a))<0)||(t=t*16+r,pW(this),this.c!=0||(r=oz(this.a))<0))throw D(new iy(CW((zC(),cZ))));if(t=t*16+r,t>nQ)throw D(new iy(CW((zC(),`parser.descappe.4`))));e=t;break;case 65:case 90:case 122:throw D(new iy(CW((zC(),Rmt))))}return e},Q.bm=function(e){var t,n;switch(e){case 100:n=(this.e&32)==32?aW(`Nd`,!0):(yW(),B9);break;case 68:n=(this.e&32)==32?aW(`Nd`,!1):(yW(),YVt);break;case 119:n=(this.e&32)==32?aW(`IsWord`,!0):(yW(),U9);break;case 87:n=(this.e&32)==32?aW(`IsWord`,!1):(yW(),ZVt);break;case 115:n=(this.e&32)==32?aW(`IsSpace`,!0):(yW(),H9);break;case 83:n=(this.e&32)==32?aW(`IsSpace`,!1):(yW(),XVt);break;default:throw D(new Dv((t=e,sgt+t.toString(16))))}return n},Q.cm=function(e){var t,n,r,i,a,o,s,c,l,u,d,f;for(this.b=1,pW(this),t=null,this.c==0&&this.a==94?(pW(this),e?u=(yW(),yW(),++W9,new Gk(5)):(t=(yW(),yW(),++W9,new Gk(4)),dH(t,0,nQ),u=(++W9,new Gk(4)))):u=(yW(),yW(),++W9,new Gk(4)),i=!0;(f=this.c)!=1&&!(f==0&&this.a==93&&!i);){if(i=!1,n=this.a,r=!1,f==10)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:DU(u,this.bm(n)),r=!0;break;case 105:case 73:case 99:case 67:n=this.sm(u,n),n<0&&(r=!0);break;case 112:case 80:if(d=J1e(this,n),!d)throw D(new iy(CW((zC(),Tmt))));DU(u,d),r=!0;break;default:n=this.am()}else if(f==20){if(o=Vw(this.i,58,this.d),o<0)throw D(new iy(CW((zC(),Emt))));if(s=!0,cO(this.i,this.d)==94&&(++this.d,s=!1),a=KO(this.i,this.d,o),c=jMe(a,s,(this.e&512)==512),!c)throw D(new iy(CW((zC(),Dmt))));if(DU(u,c),r=!0,o+1>=this.j||cO(this.i,o+1)!=93)throw D(new iy(CW((zC(),Emt))));this.d=o+2}if(pW(this),!r)if(this.c!=0||this.a!=45)dH(u,n,n);else{if(pW(this),(f=this.c)==1)throw D(new iy(CW((zC(),sZ))));f==0&&this.a==93?(dH(u,n,n),dH(u,45,45)):(l=this.a,f==10&&(l=this.am()),pW(this),dH(u,n,l))}(this.e&fZ)==fZ&&this.c==0&&this.a==44&&pW(this)}if(this.c==1)throw D(new iy(CW((zC(),sZ))));return t&&(KU(t,u),u=t),AV(u),FU(u),this.b=0,pW(this),u},Q.dm=function(){for(var e,t,n=this.cm(!1),r;(r=this.c)!=7;)if(e=this.a,r==0&&(e==45||e==38)||r==4){if(pW(this),this.c!=9)throw D(new iy(CW((zC(),Mmt))));if(t=this.cm(!1),r==4)DU(n,t);else if(e==45)KU(n,t);else if(e==38)jrt(n,t);else throw D(new Dv(`ASSERT`))}else throw D(new iy(CW((zC(),Nmt))));return pW(this),n},Q.em=function(){var e=this.a-48,t=(yW(),yW(),++W9,new Xwe(12,null,e));return!this.g&&(this.g=new w_),__(this.g,new Rg(e)),pW(this),t},Q.fm=function(){return pW(this),yW(),$Vt},Q.gm=function(){return pW(this),yW(),QVt},Q.hm=function(){throw D(new iy(CW((zC(),lZ))))},Q.im=function(){throw D(new iy(CW((zC(),lZ))))},Q.jm=function(){return pW(this),Rze()},Q.km=function(){return pW(this),yW(),tHt},Q.lm=function(){return pW(this),yW(),rHt},Q.mm=function(){var e;if(this.d>=this.j||((e=cO(this.i,this.d++))&65504)!=64)throw D(new iy(CW((zC(),xmt))));return pW(this),yW(),yW(),++W9,new NE(0,e-64)},Q.nm=function(){return pW(this),vet()},Q.om=function(){return pW(this),yW(),iHt},Q.pm=function(){var e=(yW(),yW(),++W9,new NE(0,105));return pW(this),e},Q.qm=function(){return pW(this),yW(),nHt},Q.rm=function(){return pW(this),yW(),eHt},Q.sm=function(e,t){return this.am()},Q.tm=function(){return pW(this),yW(),qVt},Q.um=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw D(new iy(CW((zC(),vmt))));if(r=-1,t=null,e=cO(this.i,this.d),49<=e&&e<=57){if(r=e-48,!this.g&&(this.g=new w_),__(this.g,new Rg(r)),++this.d,cO(this.i,this.d)!=41)throw D(new iy(CW((zC(),oZ))));++this.d}else switch(e==63&&--this.d,pW(this),t=Sot(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw D(new iy(CW((zC(),oZ))));break;default:throw D(new iy(CW((zC(),ymt))))}if(pW(this),i=iR(this),n=null,i.e==2){if(i.Nm()!=2)throw D(new iy(CW((zC(),bmt))));n=i.Jm(1),i=i.Jm(0)}if(this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),yW(),yW(),++W9,new TPe(r,t,i,n)},Q.vm=function(){return pW(this),yW(),JVt},Q.wm=function(){var e;if(pW(this),e=gD(24,iR(this)),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.xm=function(){var e;if(pW(this),e=gD(20,iR(this)),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.ym=function(){var e;if(pW(this),e=gD(22,iR(this)),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.zm=function(){var e=0,t,n=0,r,i;for(t=-1;this.d<this.j&&(t=cO(this.i,this.d),i=G0e(t),i!=0);)e|=i,++this.d;if(this.d>=this.j)throw D(new iy(CW((zC(),gmt))));if(t==45){for(++this.d;this.d<this.j&&(t=cO(this.i,this.d),i=G0e(t),i!=0);)n|=i,++this.d;if(this.d>=this.j)throw D(new iy(CW((zC(),gmt))))}if(t==58){if(++this.d,pW(this),r=vxe(iR(this),e,n),this.c!=7)throw D(new iy(CW((zC(),oZ))));pW(this)}else if(t==41)++this.d,pW(this),r=vxe(iR(this),e,n);else throw D(new iy(CW((zC(),_mt))));return r},Q.Am=function(){var e;if(pW(this),e=gD(21,iR(this)),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.Bm=function(){var e;if(pW(this),e=gD(23,iR(this)),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.Cm=function(){var e,t;if(pW(this),e=this.f++,t=Lbe(iR(this),e),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),t},Q.Dm=function(){var e;if(pW(this),e=Lbe(iR(this),0),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.Em=function(e){return pW(this),this.c==5?(pW(this),ME(e,(yW(),yW(),++W9,new TA(9,e)))):ME(e,(yW(),yW(),++W9,new TA(3,e)))},Q.Fm=function(e){var t;return pW(this),t=(yW(),yW(),++W9,new BC(2)),this.c==5?(pW(this),LU(t,V9),LU(t,e)):(LU(t,e),LU(t,V9)),t},Q.Gm=function(e){return pW(this),this.c==5?(pW(this),yW(),yW(),++W9,new TA(9,e)):(yW(),yW(),++W9,new TA(3,e))},Q.a=0,Q.b=0,Q.c=0,Q.d=0,Q.e=0,Q.f=1,Q.g=null,Q.j=0,L(tQ,`RegEx/RegexParser`,821),q(1913,821,{},Une),Q._l=function(e){return!1},Q.am=function(){return U8e(this)},Q.bm=function(e){return KH(e)},Q.cm=function(e){return Vot(this)},Q.dm=function(){throw D(new iy(CW((zC(),lZ))))},Q.em=function(){throw D(new iy(CW((zC(),lZ))))},Q.fm=function(){throw D(new iy(CW((zC(),lZ))))},Q.gm=function(){throw D(new iy(CW((zC(),lZ))))},Q.hm=function(){return pW(this),KH(67)},Q.im=function(){return pW(this),KH(73)},Q.jm=function(){throw D(new iy(CW((zC(),lZ))))},Q.km=function(){throw D(new iy(CW((zC(),lZ))))},Q.lm=function(){throw D(new iy(CW((zC(),lZ))))},Q.mm=function(){return pW(this),KH(99)},Q.nm=function(){throw D(new iy(CW((zC(),lZ))))},Q.om=function(){throw D(new iy(CW((zC(),lZ))))},Q.pm=function(){return pW(this),KH(105)},Q.qm=function(){throw D(new iy(CW((zC(),lZ))))},Q.rm=function(){throw D(new iy(CW((zC(),lZ))))},Q.sm=function(e,t){return DU(e,KH(t)),-1},Q.tm=function(){return pW(this),yW(),yW(),++W9,new NE(0,94)},Q.um=function(){throw D(new iy(CW((zC(),lZ))))},Q.vm=function(){return pW(this),yW(),yW(),++W9,new NE(0,36)},Q.wm=function(){throw D(new iy(CW((zC(),lZ))))},Q.xm=function(){throw D(new iy(CW((zC(),lZ))))},Q.ym=function(){throw D(new iy(CW((zC(),lZ))))},Q.zm=function(){throw D(new iy(CW((zC(),lZ))))},Q.Am=function(){throw D(new iy(CW((zC(),lZ))))},Q.Bm=function(){throw D(new iy(CW((zC(),lZ))))},Q.Cm=function(){var e;if(pW(this),e=Lbe(iR(this),0),this.c!=7)throw D(new iy(CW((zC(),oZ))));return pW(this),e},Q.Dm=function(){throw D(new iy(CW((zC(),lZ))))},Q.Em=function(e){return pW(this),ME(e,(yW(),yW(),++W9,new TA(3,e)))},Q.Fm=function(e){var t;return pW(this),t=(yW(),yW(),++W9,new BC(2)),LU(t,e),LU(t,V9),t},Q.Gm=function(e){return pW(this),yW(),yW(),++W9,new TA(3,e)};var F9=null,I9=null;L(tQ,`RegEx/ParserForXMLSchema`,1913),q(121,1,iQ,zg),Q.Hm=function(e){throw D(new Dv(`Not supported.`))},Q.Im=function(){return-1},Q.Jm=function(e){return null},Q.Km=function(){return null},Q.Lm=function(e){},Q.Mm=function(e){},Q.Nm=function(){return 0},Q.Ib=function(){return this.Om(0)},Q.Om=function(e){return this.e==11?`.`:``},Q.e=0;var VVt,L9,R9,HVt,UVt,z9=null,B9,WVt=null,GVt,V9,KVt=null,qVt,JVt,YVt,XVt,ZVt,QVt,H9,$Vt,eHt,tHt,nHt,U9,rHt,iHt,W9=0,aHt=L(tQ,`RegEx/Token`,121);q(137,121,{3:1,137:1,121:1},Gk),Q.Om=function(e){var t,n,r;if(this.e==4)if(this==GVt)n=`.`;else if(this==B9)n=`\\d`;else if(this==U9)n=`\\w`;else if(this==H9)n=`\\s`;else{for(r=new py,r.a+=`[`,t=0;t<this.b.length;t+=2)(e&fZ)!=0&&t>0&&(r.a+=`,`),this.b[t]===this.b[t+1]?ZS(r,uU(this.b[t])):(ZS(r,uU(this.b[t])),r.a+=`-`,ZS(r,uU(this.b[t+1])));r.a+=`]`,n=r.a}else if(this==YVt)n=`\\D`;else if(this==ZVt)n=`\\W`;else if(this==XVt)n=`\\S`;else{for(r=new py,r.a+=`[^`,t=0;t<this.b.length;t+=2)(e&fZ)!=0&&t>0&&(r.a+=`,`),this.b[t]===this.b[t+1]?ZS(r,uU(this.b[t])):(ZS(r,uU(this.b[t])),r.a+=`-`,ZS(r,uU(this.b[t+1])));r.a+=`]`,n=r.a}return n},Q.a=!1,Q.c=!1,L(tQ,`RegEx/RangeToken`,137),q(581,1,{581:1},Rg),Q.a=0,L(tQ,`RegEx/RegexParser/ReferencePosition`,581),q(580,1,{3:1,580:1},Aae),Q.Fb=function(e){var t;return e==null||!M(e,580)?!1:(t=P(e,580),NT(this.b,t.b)&&this.a==t.a)},Q.Hb=function(){return IF(this.b+`/`+m6e(this.a))},Q.Ib=function(){return this.c.Om(this.a)},Q.a=0,L(tQ,`RegEx/RegularExpression`,580),q(228,121,iQ,NE),Q.Im=function(){return this.a},Q.Om=function(e){var t,n,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r=`\\`+yT(this.a&SG);break;case 12:r=`\\f`;break;case 10:r=`\\n`;break;case 13:r=`\\r`;break;case 9:r=`\\t`;break;case 27:r=`\\e`;break;default:this.a>=aK?(n=(t=this.a>>>0,`0`+t.toString(16)),r=`\\v`+KO(n,n.length-6,n.length)):r=``+yT(this.a&SG)}break;case 8:r=this==qVt||this==JVt?``+yT(this.a&SG):`\\`+yT(this.a&SG);break;default:r=null}return r},Q.a=0,L(tQ,`RegEx/Token/CharToken`,228),q(323,121,iQ,TA),Q.Jm=function(e){return this.a},Q.Lm=function(e){this.b=e},Q.Mm=function(e){this.c=e},Q.Nm=function(){return 1},Q.Om=function(e){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.Om(e)+`*`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}`;else throw D(new Dv(`Token#toString(): CLOSURE `+this.c+MW+this.b));else if(this.c<0&&this.b<0)t=this.a.Om(e)+`*?`;else if(this.c==this.b)t=this.a.Om(e)+`{`+this.c+`}?`;else if(this.c>=0&&this.b>=0)t=this.a.Om(e)+`{`+this.c+`,`+this.b+`}?`;else if(this.c>=0&&this.b<0)t=this.a.Om(e)+`{`+this.c+`,}?`;else throw D(new Dv(`Token#toString(): NONGREEDYCLOSURE `+this.c+MW+this.b));return t},Q.b=0,Q.c=0,L(tQ,`RegEx/Token/ClosureToken`,323),q(822,121,iQ,$be),Q.Jm=function(e){return e==0?this.a:this.b},Q.Nm=function(){return 2},Q.Om=function(e){return this.b.e==3&&this.b.Jm(0)==this.a?this.a.Om(e)+`+`:this.b.e==9&&this.b.Jm(0)==this.a?this.a.Om(e)+`+?`:this.a.Om(e)+(``+this.b.Om(e))},L(tQ,`RegEx/Token/ConcatToken`,822),q(1911,121,iQ,TPe),Q.Jm=function(e){if(e==0)return this.d;if(e==1)return this.b;throw D(new Dv(`Internal Error: `+e))},Q.Nm=function(){return this.b?2:1},Q.Om=function(e){var t=this.c>0?`(?(`+this.c+`)`:this.a.e==8?`(?(`+this.a+`)`:`(?`+this.a;return this.b?t+=this.d+`|`+this.b+`)`:t+=this.d+`)`,t},Q.c=0,L(tQ,`RegEx/Token/ConditionToken`,1911),q(1912,121,iQ,lDe),Q.Jm=function(e){return this.b},Q.Nm=function(){return 1},Q.Om=function(e){return`(?`+(this.a==0?``:m6e(this.a))+(this.c==0?``:m6e(this.c))+`:`+this.b.Om(e)+`)`},Q.a=0,Q.c=0,L(tQ,`RegEx/Token/ModifierToken`,1912),q(823,121,iQ,$xe),Q.Jm=function(e){return this.a},Q.Nm=function(){return 1},Q.Om=function(e){var t=null;switch(this.e){case 6:t=this.b==0?`(?:`+this.a.Om(e)+`)`:`(`+this.a.Om(e)+`)`;break;case 20:t=`(?=`+this.a.Om(e)+`)`;break;case 21:t=`(?!`+this.a.Om(e)+`)`;break;case 22:t=`(?<=`+this.a.Om(e)+`)`;break;case 23:t=`(?<!`+this.a.Om(e)+`)`;break;case 24:t=`(?>`+this.a.Om(e)+`)`}return t},Q.b=0,L(tQ,`RegEx/Token/ParenToken`,823),q(518,121,{3:1,121:1,518:1},Xwe),Q.Km=function(){return this.b},Q.Om=function(e){return this.e==12?`\\`+this.a:S4e(this.b)},Q.a=0,L(tQ,`RegEx/Token/StringToken`,518),q(466,121,iQ,BC),Q.Hm=function(e){LU(this,e)},Q.Jm=function(e){return P(ZD(this.a,e),121)},Q.Nm=function(){return this.a?this.a.a.c.length:0},Q.Om=function(e){var t,n,r,i,a;if(this.e==1){if(this.a.a.c.length==2)t=P(ZD(this.a,0),121),n=P(ZD(this.a,1),121),i=n.e==3&&n.Jm(0)==t?t.Om(e)+`+`:n.e==9&&n.Jm(0)==t?t.Om(e)+`+?`:t.Om(e)+(``+n.Om(e));else{for(a=new py,r=0;r<this.a.a.c.length;r++)ZS(a,P(ZD(this.a,r),121).Om(e));i=a.a}return i}if(this.a.a.c.length==2&&P(ZD(this.a,1),121).e==7)i=P(ZD(this.a,0),121).Om(e)+`?`;else if(this.a.a.c.length==2&&P(ZD(this.a,0),121).e==7)i=P(ZD(this.a,1),121).Om(e)+`??`;else{for(a=new py,ZS(a,P(ZD(this.a,0),121).Om(e)),r=1;r<this.a.a.c.length;r++)a.a+=`|`,ZS(a,P(ZD(this.a,r),121).Om(e));i=a.a}return i},L(tQ,`RegEx/Token/UnionToken`,466),q(515,1,{590:1},Qy),Q.Ib=function(){return this.a.b},L(vgt,`XMLTypeUtil/PatternMatcherImpl`,515),q(1676,1489,{},jd);var oHt;L(vgt,`XMLTypeValidator`,1676),q(270,1,$W,qE),Q.Ic=function(e){UA(this,e)},Q.Jc=function(){return(this.b-this.a)*this.c<0?G9:new fw(this)},Q.a=0,Q.b=0,Q.c=0;var G9;L(ygt,`ExclusiveRange`,270),q(1055,1,GW,Md),Q.Rb=function(e){P(e,15),Qle()},Q.Nb=function(e){_D(this,e)},Q.Pb=function(){return rae()},Q.Ub=function(){return iae()},Q.Wb=function(e){P(e,15),Zle()},Q.Ob=function(){return!1},Q.Sb=function(){return!1},Q.Tb=function(){return-1},Q.Vb=function(){return-1},Q.Qb=function(){throw D(new ey(Sgt))},L(ygt,`ExclusiveRange/1`,1055),q(259,1,GW,fw),Q.Rb=function(e){P(e,15),$le()},Q.Nb=function(e){_D(this,e)},Q.Pb=function(){return BBe(this)},Q.Ub=function(){return BMe(this)},Q.Wb=function(e){P(e,15),eue()},Q.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},Q.Sb=function(){return this.b>0},Q.Tb=function(){return this.b},Q.Vb=function(){return this.b-1},Q.Qb=function(){throw D(new ey(Sgt))},Q.a=0,Q.b=0,L(ygt,`ExclusiveRange/RangeIterator`,259);var K9=oO(gZ,`C`),q9=oO(yZ,`I`),J9=oO(TW,`Z`),Y9=oO(bZ,`J`),X9=oO(hZ,`B`),Z9=oO(_Z,`D`),Q9=oO(vZ,`F`),$9=oO(xZ,`S`),sHt=wE(`org.eclipse.elk.core.labels`,`ILabelManager`),cHt=wE(qX,`DiagnosticChain`),lHt=wE(Oht,`ResourceSet`),uHt=L(qX,`InvocationTargetException`,null),dHt=(fy(),FAe),fHt=fHt=EYe;KFe(yne),JIe(`permProps`,[[[`locale`,`default`],[Cgt,`gecko1_8`]],[[`locale`,`default`],[Cgt,`safari`]]]),fHt(null,`elk`,null)}).call(this)}).call(this,typeof global<`u`?global:typeof self<`u`?self:typeof window<`u`?window:{})},{}],3:[function(e,t,n){function r(e){"@babel/helpers - typeof";return r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=s(e,`string`);return r(t)==`symbol`?t:t+``}function s(e,t){if(r(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||`default`);if(r(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function l(e,t,n){return t=p(t),u(e,f()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(e,t){if(t&&(r(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return d(e)}function d(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var g=function(t){function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c(this,n);var r=Object.assign({},t),i=!1;try{e.resolve(`web-worker`),i=!0}catch{}if(t.workerUrl)if(i){var a=e("web-worker");r.workerFactory=function(e){return new a(e)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
|
|
1175
1175
|
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|
1176
|
-
... Falling back to non-web worker version.`);if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})}))(),1);function Xne(){return new Yne.default}var Zne=Xne(),Cv=264,Qne=52,$ne=54,ere=5;function wv(e){return e===0?Qne:57+e*$ne+(e-1)*ere}async function Tv(e,t){let n=await Zne.layout({id:e.id,layoutOptions:{"elk.algorithm":`layered`,"elk.direction":t,"elk.spacing.nodeNode":`44`,"elk.layered.spacing.nodeNodeBetweenLayers":`88`},children:e.stages.map(e=>({id:e.id,width:Cv,height:wv(e.children.length)})),edges:e.transitions.map((e,t)=>({id:`${e.from}-${e.to}-${t}`,sources:[e.from],targets:[e.to]}))}),r=(n.children??[]).map(e=>({id:e.id,x:e.x??0,y:t===`RIGHT`?0:e.y??0,width:e.width??Cv,height:e.height??wv(0)})),i=(n.edges??[]).map((t,n)=>{let r=e.transitions[n];return{id:t.id,label:r?.label??``,from:r?.from??``,to:r?.to??``,...r?.fromChildId===void 0?{}:{fromChildId:r.fromChildId},points:(t.sections??[]).flatMap(e=>[e.startPoint,...e.bendPoints??[],e.endPoint])}});return Object.freeze({width:n.width??Cv,height:n.height??wv(0),nodes:Object.freeze(r.map(e=>Object.freeze(e))),edges:Object.freeze(i.map(e=>Object.freeze({...e,points:Object.freeze(e.points.map(e=>Object.freeze(e)))})))})}var Ev={diagram:`_diagram_1r90h_1`,dragging:`_dragging_1r90h_45`,canvas:`_canvas_1r90h_50`,canvasLoading:`_canvasLoading_1r90h_56`,edges:`_edges_1r90h_60`,edgeActive:`_edgeActive_1r90h_80`,edgeLabel:`_edgeLabel_1r90h_85`,edgeLabelActive:`_edgeLabelActive_1r90h_101`,stage:`_stage_1r90h_105`,stageCard:`_stageCard_1r90h_116`,stageTitleRow:`_stageTitleRow_1r90h_127`,chips:`_chips_1r90h_137`,metrics:`_metrics_1r90h_138`,stageTotals:`_stageTotals_1r90h_139`,children:`_children_1r90h_152`,childCard:`_childCard_1r90h_158`,childCardWithoutStatus:`_childCardWithoutStatus_1r90h_165`,childStatusDot:`_childStatusDot_1r90h_174`,collapsedStatusDot:`_collapsedStatusDot_1r90h_179`,collapsedStatusDots:`_collapsedStatusDots_1r90h_183`,childTitle:`_childTitle_1r90h_189`,childKindIcon:`_childKindIcon_1r90h_195`,"active-run-pulse":`_active-run-pulse_1r90h_1`,srOnly:`_srOnly_1r90h_258`},Dv={width:0,height:0,nodes:[],edges:[]},tre={activity:kee.faRobot,watch:zm.faEye,"watch-gate":zm.faEye,reactor:Rm.faBolt};function Ov(e,t){let[n,r]=(0,S.useState)(Dv);return(0,S.useEffect)(()=>{if(t===`DOWN`){r(Dv);return}let n=!0;return Tv(e,t).then(e=>{n&&r(e)}),()=>{n=!1}},[e,t]),n}function kv(){let[e,t]=(0,S.useState)(()=>globalThis.matchMedia?.(`(max-width: 42rem)`).matches?`DOWN`:`RIGHT`);return(0,S.useEffect)(()=>{let e=globalThis.matchMedia?.(`(max-width: 42rem)`);if(e===void 0)return;let n=()=>t(e.matches?`DOWN`:`RIGHT`);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function nre(e){let t=(0,S.useRef)(null),n=(0,S.useRef)(new Map),[r,i]=(0,S.useState)(new Map),a=(0,S.useCallback)((e,t)=>{t===null?n.current.delete(e):n.current.set(e,t)},[]);return(0,S.useLayoutEffect)(()=>{let r=t.current;if(r===null||e.nodes.length===0)return;let a=()=>{let e=r.getBoundingClientRect(),t=new Map;for(let[r,i]of n.current){let n=i.getBoundingClientRect();t.set(r,{left:n.left-e.left,top:n.top-e.top,right:n.right-e.left,bottom:n.bottom-e.top});for(let n of i.querySelectorAll(`[data-diagram-child]`)){let i=n.getBoundingClientRect(),a=n.dataset.diagramChild;a!==void 0&&t.set(`${r}:${a}`,{left:i.left-e.left,top:i.top-e.top,right:i.right-e.left,bottom:i.bottom-e.top})}}i(t)};a();let o=globalThis.ResizeObserver===void 0?void 0:new ResizeObserver(a);o?.observe(r);for(let e of n.current.values())o?.observe(e);return()=>o?.disconnect()},[e]),{anchors:r,canvasRef:t,stageRef:a}}function rre(e){return e.totalTokens===void 0?null:(0,w.jsx)(vm,{usage:{totalTokens:e.totalTokens,...e.inputTokens===void 0?{}:{inputTokens:e.inputTokens},...e.outputTokens===void 0?{}:{outputTokens:e.outputTokens},...e.cacheReadTokens===void 0?{}:{cacheReadTokens:e.cacheReadTokens},...e.cacheWriteTokens===void 0?{}:{cacheWriteTokens:e.cacheWriteTokens}}})}function ire(e){return e.kind===`reactor`||e.runCount===void 0&&e.totalDurationMs===void 0&&e.totalCostUsd===void 0&&e.totalTokens===void 0?null:(0,w.jsxs)(`div`,{className:Ev.metrics,children:[e.runCount===void 0?null:(0,w.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,w.jsx)(`span`,{children:um(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,w.jsx)(`span`,{children:cm(e.totalCostUsd)}),e.totalTokens===void 0?null:rre(e)]})}function Av({child:e,onHover:t,showStatus:n}){let r=(e.activeRuns?.length??0)>0,i=jv(e,r);return(0,w.jsxs)(`article`,{className:`${Ev.childCard} ${om.childRun} ${n?``:Ev.childCardWithoutStatus}`,"data-diagram-child":e.id,"data-kind":e.kind,onMouseEnter:()=>t(e.id),onMouseLeave:()=>t(void 0),children:[n?(0,w.jsx)(`span`,{"aria-label":r?`active run`:`${i} status`,className:`${om.childRunDot} ${Ev.childStatusDot}`,"data-status":i,"data-active-run":r||void 0,"data-testid":`child-status-${e.id}`,role:`img`}):null,(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`${om.childRunTitle} ${Ev.childTitle}`,children:[(0,w.jsx)(Sv,{className:Ev.childKindIcon,icon:tre[e.kind]}),(0,w.jsx)(`span`,{children:e.label})]}),ire(e),e.kind===`reactor`?null:e.activeRuns?.map(e=>(0,w.jsxs)(`div`,{className:om.childRunMeta,children:[(0,w.jsxs)(`span`,{children:[e.activity,` running`]}),e.runnerName===void 0?null:(0,w.jsxs)(w.Fragment,{children:[` `,`· `,(0,w.jsx)(`span`,{children:e.runnerName})]}),` · `,(0,w.jsx)(`span`,{children:um(Math.max(0,Date.now()-new Date(e.startedAt).getTime()))})]},e.runId))]})]})}function jv(e,t=!1){if(t)return`active`;if(e.lastOutcome===void 0)return e.status??`pending`;switch(pm(e.lastOutcome)){case`good`:return`completed`;case`warning`:return`blocked`;case`bad`:return`failed`;case`info`:return`needs-clarification`;case`neutral`:return`pending`}}function are(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=1;n<e.length;n+=1){let r=e[n-1],i=e[n],a=e[n+1];if(a===void 0){t+=` L ${i.x} ${i.y}`;continue}let o=Math.min(10,Math.hypot(i.x-r.x,i.y-r.y)/2),s=Math.min(10,Math.hypot(a.x-i.x,a.y-i.y)/2),c={x:i.x+(r.x-i.x)*o/Math.hypot(r.x-i.x,r.y-i.y),y:i.y+(r.y-i.y)*o/Math.hypot(r.x-i.x,r.y-i.y)},l={x:i.x+(a.x-i.x)*s/Math.hypot(a.x-i.x,a.y-i.y),y:i.y+(a.y-i.y)*s/Math.hypot(a.x-i.x,a.y-i.y)};t+=` L ${c.x} ${c.y} Q ${i.x} ${i.y} ${l.x} ${l.y}`}return t}function Mv(e,t){return e.fromChildId===void 0?t.stages.find(t=>t.id===e.from)?.children.find(e=>e.kind===`activity`)?.id:e.fromChildId}function Nv(e,t,n,r,i){if(e.points.length===0)return e.points;let a=n.get(e.from),o=t.stages.find(t=>t.id===e.from),s=Mv(e,t),c=o?.children.findIndex(e=>e.id===s)??-1,l=r.get(s===void 0?e.from:`${e.from}:${s}`),u=r.get(e.to);if(l!==void 0&&u!==void 0){let n=i===`RIGHT`?{x:l.right,y:(l.top+l.bottom)/2}:{x:(l.left+l.right)/2,y:l.bottom},a=i===`RIGHT`?{x:u.left,y:u.top+16}:{x:(u.left+u.right)/2,y:u.top};if(i===`RIGHT`){let i=t.stages.filter(t=>t.id!==e.from&&t.id!==e.to).map(e=>r.get(e.id)).filter(e=>e!==void 0&&e.left>=n.x&&e.right<=a.x);if(i.length>0){let e=Math.max(l.bottom,u.bottom,...i.map(e=>e.bottom))+24,t=n.x+18,r=a.x-18;return[n,{x:t,y:n.y},{x:t,y:e},{x:r,y:e},{x:r,y:a.y},a]}if(n.y===a.y)return[n,a];let o=(n.x+a.x)/2;return[n,{x:o,y:n.y},{x:o,y:a.y},a]}if(n.x===a.x)return[n,a];let o=(n.y+a.y)/2;return[n,{x:n.x,y:o},{x:a.x,y:o},a]}if(s===void 0||a===void 0||c<0)return e.points;let d=57+c*59+27;return[i===`RIGHT`?{x:a.x+a.width,y:a.y+d}:{x:a.x+a.width/2,y:a.y+d+52},...e.points.slice(1)]}function ore(e){if(e.length===0)return;if(e.length===1)return e[0];let t=e.slice(1).map((t,n)=>Math.hypot(t.x-e[n].x,t.y-e[n].y)),n=t.reduce((e,t)=>e+t,0)/2,r=0;for(let i=0;i<t.length;i+=1){let a=t[i];if(r+a>=n){let t=e[i],o=e[i+1],s=(n-r)/a;return{x:t.x+(o.x-t.x)*s,y:t.y+(o.y-t.y)*s}}r+=a}return e.at(-1)}function sre({diagram:e}){let t=kv(),n=Ov(e,t),{anchors:r,canvasRef:i,stageRef:a}=nre(n),o=(0,S.useRef)(void 0),[s,c]=(0,S.useState)(!1),[l,u]=(0,S.useState)(()=>{let t=e.stages.filter(e=>(e.activeRuns?.length??0)>0||e.children.some(e=>(e.activeRuns?.length??0)>0));return new Set(t.map(e=>e.id))}),[d,f]=(0,S.useState)(),p=e.stages.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0||e.children.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0)),m=new Map(n.nodes.map(e=>[e.id,e])),h=l.size>0,g=n.width||(t===`RIGHT`?e.stages.length*352:300),_=n.edges.flatMap(n=>Nv(n,e,m,r,t)),v=Math.max(0,...Array.from(r.values(),e=>e.bottom),..._.map(e=>e.y)),y=t===`RIGHT`&&v>0?v+20:n.height||(t===`RIGHT`?176:e.stages.length*172),b=t===`DOWN`||n.nodes.length>0&&r.size>0,x=e=>{if(t!==`RIGHT`||e.button!==0)return;let n=e.currentTarget;o.current={pointerId:e.pointerId,startX:e.clientX,scrollLeft:n.scrollLeft},n.setPointerCapture(e.pointerId),c(!0)},ee=e=>{let t=o.current;t!==void 0&&t.pointerId===e.pointerId&&(e.currentTarget.scrollLeft=t.scrollLeft-(e.clientX-t.startX))},te=e=>{o.current?.pointerId===e.pointerId&&(o.current=void 0,c(!1),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))};return(0,w.jsx)(`section`,{"aria-label":`Workflow ${e.label}`,className:`${Ev.diagram} ${s?Ev.dragging:``}`,"data-direction":t,onPointerCancel:te,onPointerDown:x,onPointerMove:ee,onPointerUp:te,children:(0,w.jsxs)(`div`,{ref:i,className:`${Ev.canvas} ${b?``:Ev.canvasLoading}`,"data-direction":t,style:{"--graph-width":`${g}px`,"--graph-height":`${y}px`},children:[(0,w.jsxs)(`svg`,{className:Ev.edges,"aria-hidden":`true`,viewBox:`0 0 ${g} ${y}`,preserveAspectRatio:`none`,children:[(0,w.jsx)(`defs`,{children:(0,w.jsx)(`marker`,{id:`workflow-arrow`,markerWidth:`8`,markerHeight:`8`,refX:`7`,refY:`4`,orient:`auto`,children:(0,w.jsx)(`path`,{d:`M 0 0 L 8 4 L 0 8 z`,fill:`context-stroke`})})}),n.edges.map(n=>{let i=Nv(n,e,m,r,t),a=Mv(n,e)===d;return(0,w.jsx)(`g`,{className:a?Ev.edgeActive:Ev.edge,children:(0,w.jsx)(`path`,{d:are(i),markerEnd:`url(#workflow-arrow)`})},n.id)})]}),n.edges.map(n=>{let i=ore(Nv(n,e,m,r,t)),a=Mv(n,e)===d;return i===void 0||n.label.length===0?null:(0,w.jsx)(`span`,{className:`${Ev.edgeLabel} ${a?Ev.edgeLabelActive:``}`,style:{left:`${i.x}px`,top:`${i.y}px`},children:n.label},`${n.id}-label`)}),e.stages.map((e,n)=>{let r=m.get(e.id),i=t===`RIGHT`||l.has(e.id),o=t===`RIGHT`?n*352:18,s=t===`RIGHT`?20:n*172,c=e.runCount!==void 0||e.totalDurationMs!==void 0||e.totalCostUsd!==void 0||e.totalTokens!==void 0,d=()=>u(t=>{let n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n});return(0,w.jsxs)(`div`,{className:`${Ev.stage} ${om.card}`,ref:t=>a(e.id,t),role:`group`,"aria-label":`Stage ${e.id}`,style:t===`RIGHT`?{left:`${r?.x??o}px`,top:`${r?.y??s}px`,width:`${r?.width??264}px`}:void 0,children:[(0,w.jsxs)(`div`,{"aria-expanded":t===`DOWN`?i:void 0,className:`${Ev.stageCard} ${om.cardLink}`,onClick:t===`DOWN`?d:void 0,onKeyDown:t===`DOWN`?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),d())}:void 0,role:t===`DOWN`?`button`:void 0,tabIndex:t===`DOWN`?0:void 0,children:[(0,w.jsx)(`div`,{children:(0,w.jsx)(`div`,{className:Ev.stageTitleRow,children:(0,w.jsx)(`strong`,{className:om.cardTitle,children:e.label})})}),t===`DOWN`&&p&&!i?(0,w.jsx)(`span`,{className:Ev.collapsedStatusDots,children:e.children.map(t=>(0,w.jsx)(`span`,{"aria-label":`${jv(t,(t.activeRuns?.length??0)>0)} status`,className:`${om.childRunDot} ${Ev.childStatusDot} ${Ev.collapsedStatusDot}`,"data-active-run":(t.activeRuns?.length??0)>0||void 0,"data-status":jv(t,(t.activeRuns?.length??0)>0),"data-testid":`collapsed-status-${e.id}-${t.id}`,role:`img`},t.id))}):null,c?(0,w.jsxs)(`div`,{className:Ev.stageTotals,children:[e.runCount===void 0?null:(0,w.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,w.jsx)(`span`,{children:um(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,w.jsx)(`span`,{children:cm(e.totalCostUsd)}),e.totalTokens===void 0?null:rre(e)]}):null]}),i?(0,w.jsx)(`div`,{className:Ev.children,style:t===`DOWN`?{display:`grid`,visibility:`visible`}:void 0,children:e.children.map(e=>(0,w.jsx)(Av,{child:e,onHover:t===`RIGHT`?f:()=>void 0,showStatus:p},e.id))}):null]},e.id)}),h?null:(0,w.jsx)(`span`,{className:Ev.srOnly,children:`All stages are collapsed.`})]})})}function cre(){let e=Jp(),[t,n]=(0,S.useState)(`configuration`),r=gi({queryKey:Yp.system.configuration,queryFn:({signal:t})=>e.system.configuration(t),refetchInterval:Xp.configuration}),i=gi({queryKey:Yp.system.commands,queryFn:({signal:t})=>e.system.commands(t),refetchInterval:Xp.commands,enabled:t===`commands`}),a=gi({queryKey:Yp.workflowDiagrams.get(),queryFn:({signal:t})=>e.workflowDiagrams.get(void 0,t),refetchInterval:Xp.workflowDiagrams,enabled:t===`workflows`}),o=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),r=t.indexOf(e.currentTarget);if(r<0)return;let i=e.key===`ArrowRight`?(r+1)%t.length:e.key===`ArrowLeft`?(r-1+t.length)%t.length:void 0;if(i===void 0)return;e.preventDefault();let a=t[i];a!==void 0&&(n(a.dataset.tab),a.focus())};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($p,{actions:(0,w.jsxs)(tm,{type:`button`,variant:`secondary`,onClick:()=>void(t===`commands`?i.refetch():t===`workflows`?a.refetch():r.refetch()),children:[`Refresh`,` `,t===`commands`?`commands`:t===`workflows`?`workflows`:`configuration`]})}),(0,w.jsxs)(`div`,{className:om.tabs,role:`tablist`,"aria-label":`Configuration sections`,children:[(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`configuration`,id:`configuration-tab`,"aria-controls":`configuration-panel`,"aria-selected":t===`configuration`,tabIndex:t===`configuration`?0:-1,onKeyDown:o,onClick:()=>n(`configuration`),children:`Configuration`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`commands`,id:`commands-tab`,"aria-controls":`commands-panel`,"aria-selected":t===`commands`,tabIndex:t===`commands`?0:-1,onKeyDown:o,onClick:()=>n(`commands`),children:`Commands`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`workflows`,id:`workflows-tab`,"aria-controls":`workflows-panel`,"aria-selected":t===`workflows`,tabIndex:t===`workflows`?0:-1,onKeyDown:o,onClick:()=>n(`workflows`),children:`Workflows`})]}),t===`commands`?(0,w.jsx)(`section`,{id:`commands-panel`,role:`tabpanel`,"aria-labelledby":`commands-tab`,children:i.isPending?(0,w.jsx)(rm,{label:`Loading commands`}):i.error&&!i.data?(0,w.jsx)(am,{error:i.error,retry:()=>void i.refetch()}):i.data&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`p`,{children:`Commands and actions recognized by each configured surface adapter.`}),i.data.data.adapters.length===0?(0,w.jsx)(im,{children:`No adapters expose commands`}):i.data.data.adapters.map(e=>(0,w.jsxs)(em,{children:[(0,w.jsx)(`h2`,{children:e.adapter}),e.commands.length===0?(0,w.jsx)(im,{children:`No commands`}):(0,w.jsx)(`ul`,{children:e.commands.map(e=>(0,w.jsx)(`li`,{children:(0,w.jsx)(`code`,{children:e.syntax})},e.syntax))})]},e.adapter))]})}):t===`workflows`?(0,w.jsx)(`section`,{id:`workflows-panel`,role:`tabpanel`,"aria-labelledby":`workflows-tab`,children:a.isPending?(0,w.jsx)(rm,{label:`Loading workflows`}):a.error&&!a.data?(0,w.jsx)(am,{error:a.error,retry:()=>void a.refetch()}):a.data?.data.diagrams.length===0?(0,w.jsx)(im,{children:`No workflows are configured`}):a.data?.data.diagrams.map(e=>(0,w.jsxs)(`section`,{"aria-labelledby":`workflow-${e.id}`,children:[(0,w.jsx)(`h2`,{id:`workflow-${e.id}`,children:e.label}),(0,w.jsx)(sre,{diagram:e})]},e.id))}):(0,w.jsx)(`section`,{id:`configuration-panel`,role:`tabpanel`,"aria-labelledby":`configuration-tab`,children:r.isPending?(0,w.jsx)(rm,{label:`Loading redacted configuration`}):r.error&&!r.data?(0,w.jsx)(am,{error:r.error,retry:()=>void r.refetch()}):r.data&&(0,w.jsxs)(em,{children:[(0,w.jsx)(`p`,{children:`Read-only effective configuration. Secrets are redacted by Wake.`}),(0,w.jsx)(gee,{value:r.data.data.configuration})]})})]})}function lre(){let[e,t]=Vn(),n=e.get(`cursor`)??void 0,r=e.getAll(`previous`);return{...n===void 0?{}:{cursor:n},hasPrevious:r.length>0,next(r){let i=new URLSearchParams(e);i.append(`previous`,n??``),i.set(`cursor`,r),t(i)},previous(){let n=r.at(-1);if(n===void 0)return;let i=new URLSearchParams(e);i.delete(`previous`);for(let e of r.slice(0,-1))i.append(`previous`,e);n===``?i.delete(`cursor`):i.set(`cursor`,n),t(i)},setFilter(n,r){let i=new URLSearchParams(e);r===``?i.delete(n):i.set(n,r),i.delete(`cursor`),i.delete(`previous`),t(i,{replace:!0})}}}function Pv({navigation:e,nextCursor:t,hasMore:n}){return(0,w.jsxs)(`nav`,{className:Qp.pagination,"aria-label":`Collection pages`,children:[(0,w.jsx)(tm,{type:`button`,variant:`secondary`,disabled:!e.hasPrevious,onClick:e.previous,children:`Previous page`}),(0,w.jsx)(tm,{type:`button`,variant:`secondary`,disabled:!n||t===null,onClick:()=>t!==null&&e.next(t),children:`Next page`})]})}function Fv(e,t,n){let r=new Intl.DateTimeFormat(t??`en-CA`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,...n===void 0?{}:{timeZone:n}}),i=Object.fromEntries(r.formatToParts(new Date(e)).map(e=>[e.type,e.value]));return`${i.year}-${i.month}-${i.day} ${i.hour}:${i.minute}`}function Iv({value:e,locale:t,timeZone:n}){return(0,w.jsx)(`time`,{dateTime:e,title:e,"aria-label":`${Fv(e,t,n)}; exact UTC ${e}`,children:Fv(e,t,n)})}function Lv(){let e=Jp(),t=lre();return(0,w.jsx)(Rv,{client:e,navigation:t},t.cursor??`initial`)}function Rv({client:e,navigation:t}){let n=(0,S.useRef)({page:t.cursor,live:t.cursor}),[r,i]=(0,S.useState)([]),a=gi({queryKey:Yp.events.list(t.cursor),queryFn:async({signal:t})=>e.events.list(n.current.live,void 0,t),refetchInterval:e=>e.state.data?.page.hasMore!==!0&&Xp.events});return(0,S.useEffect)(()=>{a.data!==void 0&&(i(e=>Vv(e,a.data.items)),!a.data.page.hasMore&&a.data.page.nextCursor!==null&&(n.current.live=a.data.page.nextCursor))},[a.data]),(0,w.jsx)(w.Fragment,{children:a.isPending?(0,w.jsx)(rm,{label:`Loading events`}):a.error&&!a.data?(0,w.jsx)(am,{error:a.error,retry:()=>void a.refetch()}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Bv,{records:r}),a.data&&(0,w.jsx)(Pv,{navigation:t,nextCursor:a.data.page.nextCursor,hasMore:a.data.page.hasMore})]})})}function zv({record:e}){let[t,n]=(0,S.useState)(!1);return(0,w.jsxs)(`li`,{className:om.event,children:[(0,w.jsxs)(`button`,{type:`button`,className:om.eventButton,onClick:()=>n(e=>!e),"aria-expanded":t,children:[(0,w.jsx)(Iv,{value:e.occurredAt}),(0,w.jsx)(`span`,{className:om.eventType,children:e.type}),(0,w.jsx)(`span`,{className:om.eventId,children:e.id}),(0,w.jsx)(`span`,{className:om.eventChevron,"aria-hidden":`true`,children:t?`v`:`>`})]}),t&&(0,w.jsx)(`div`,{className:om.eventPayload,children:(0,w.jsx)(`pre`,{children:JSON.stringify(e,null,2)})})]})}function Bv({records:e}){let[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(()=>[...e]),[s,c]=(0,S.useState)([]),l=(0,S.useRef)(a.at(-1)?.position??-1),u=t||r;(0,S.useEffect)(()=>{let e=()=>{let e=document.scrollingElement??document.documentElement;i(e.scrollHeight-e.scrollTop-e.clientHeight>1)};return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,S.useEffect)(()=>{let t=e.filter(e=>e.position>l.current);t.length!==0&&(u?c(e=>Vv(e,t)):(o(e=>Vv(e,t)),l.current=t.at(-1).position))},[e,u]);let d=(0,S.useMemo)(()=>[...a].sort((e,t)=>t.position-e.position),[a]),f=()=>{o(e=>Vv(e,s)),l.current=Math.max(l.current,...s.map(e=>e.position)),c([]),n(!1),i(!1)};return(0,w.jsxs)(`section`,{children:[(0,w.jsxs)(`div`,{className:om.toolbar,children:[(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>u?f():n(!0),children:u?`Resume live view`:`Pause live view`}),s.length>0&&(0,w.jsxs)(tm,{type:`button`,onClick:f,"aria-live":`polite`,children:[s.length,` new `,s.length===1?`event`:`events`]})]}),d.length===0?(0,w.jsx)(im,{children:`No events`}):(0,w.jsx)(`ol`,{className:om.eventList,children:d.map(e=>(0,w.jsx)(zv,{record:e},e.id))})]})}function Vv(e,t,n=200){return[...new Map([...e,...t].map(e=>[e.id,e])).values()].sort((e,t)=>e.position-t.position).slice(-n)}function Hv({caption:e,rows:t,rowKey:n,columns:r}){return(0,w.jsx)(`div`,{className:Qp.tableWrap,children:(0,w.jsxs)(`table`,{className:Qp.table,children:[(0,w.jsx)(`caption`,{children:e}),(0,w.jsx)(`thead`,{children:(0,w.jsx)(`tr`,{children:r.map(e=>(0,w.jsx)(`th`,{scope:`col`,children:e.label},e.label))})}),(0,w.jsx)(`tbody`,{children:t.map(e=>(0,w.jsx)(`tr`,{children:r.map(t=>(0,w.jsx)(`td`,{children:t.render(e)},t.label))},n(e)))})]})})}function Uv(){let e=Jp(),t=gi({queryKey:Yp.system.health,queryFn:({signal:t})=>e.system.health(t),refetchInterval:Xp.health}),n=gi({queryKey:Yp.execution.runners,queryFn:({signal:t})=>e.execution.runners(t),refetchInterval:Xp.runners}),r=async(t,r)=>{let i=crypto.randomUUID();r?await e.execution.unpauseRunner(t,i):await e.execution.pauseRunner(t,i),await n.refetch()};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($p,{actions:(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>{t.refetch(),n.refetch()},children:`Refresh health`})}),t.isPending?(0,w.jsx)(rm,{label:`Checking health`}):t.error&&!t.data?(0,w.jsx)(am,{error:t.error,retry:()=>void t.refetch()}):t.data&&(0,w.jsxs)(em,{children:[(0,w.jsxs)(nm,{tone:t.data.data.status===`ok`?`good`:`warning`,children:[`Wake `,t.data.data.status]}),t.data.data.checks?.map(e=>(0,w.jsxs)(`p`,{children:[e.name,`: `,e.status,e.detail?` — ${e.detail}`:``]},e.name))]}),(0,w.jsx)(`h2`,{children:`Adapter health`}),t.data&&(t.data.data.adapters?.length??0)===0?(0,w.jsx)(im,{children:`No adapter health reported`}):t.data&&(0,w.jsx)(Hv,{caption:`Adapter health`,rows:t.data.data.adapters,rowKey:e=>`${e.adapter}:${e.scope}:${e.channel}`,columns:[{label:`Adapter`,render:e=>e.adapter},{label:`Scope`,render:e=>e.scope},{label:`Channel`,render:e=>e.channel},{label:`Status`,render:e=>(0,w.jsx)(nm,{tone:e.status===`ok`?`good`:`warning`,children:e.status})},{label:`Successes`,render:e=>e.successCount},{label:`Failures`,render:e=>e.failureCount},{label:`Detail`,render:e=>e.detail??`—`}]}),(0,w.jsx)(`h2`,{children:`Runner availability`}),n.isPending?(0,w.jsx)(rm,{label:`Loading runners`}):n.error&&!n.data?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):(n.data?.items.length??0)===0?(0,w.jsx)(im,{children:`No runners configured`}):(0,w.jsx)(Hv,{caption:`Runner availability`,rows:n.data.items,rowKey:e=>e.runnerId,columns:[{label:`Runner`,render:e=>e.runnerId},{label:`Availability`,render:e=>(0,w.jsx)(nm,{tone:e.available?`good`:`warning`,children:e.status})},{label:`Detail`,render:e=>e.detail??`—`},{label:`Control`,render:e=>(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>void r(e.runnerId,!e.available),children:e.available?`Pause`:`Unpause`})}]})]})}function Wv({label:e,value:t}){return(0,w.jsxs)(`div`,{className:Qp.tile,role:`group`,"aria-label":e,children:[(0,w.jsx)(`div`,{className:Qp.tileValue,children:t}),(0,w.jsx)(`div`,{className:Qp.tileLabel,children:e})]})}function ure(){let e=Jp(),t=gi({queryKey:Yp.observability.metrics(7),queryFn:({signal:t})=>e.observability.metrics(7,t),refetchInterval:Xp.observability});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($p,{actions:(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>void t.refetch(),children:`Refresh metrics`})}),t.isPending?(0,w.jsx)(rm,{label:`Loading metrics`}):t.error&&!t.data?(0,w.jsx)(am,{error:t.error,retry:()=>void t.refetch()}):Object.keys(t.data?.data.values??{}).length===0?(0,w.jsx)(im,{children:`No metrics available`}):(0,w.jsx)(`div`,{className:om.tiles,children:Object.entries(t.data.data.values).map(([e,t])=>(0,w.jsx)(Wv,{label:e,value:String(t)},e))})]})}function Gv(){let e=Jp(),t=lre(),n=gi({queryKey:Yp.execution.runList(t.cursor),queryFn:({signal:n})=>e.execution.runs(t.cursor,n),refetchInterval:e=>Zp.runs(e.state.data?.items)});return(0,w.jsxs)(w.Fragment,{children:[n.isPending?(0,w.jsx)(rm,{label:`Loading runs`}):n.error&&!n.data?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):(n.data?.items.length??0)===0?(0,w.jsx)(im,{children:`No runs`}):(0,w.jsx)(Hv,{caption:`Execution runs`,rows:n.data.items,rowKey:e=>e.runId,columns:Kv}),n.data&&(0,w.jsx)(Pv,{navigation:t,nextCursor:n.data.page.nextCursor,hasMore:n.data.page.hasMore})]})}var Kv=[{label:`Run`,render:e=>(0,w.jsx)(Fn,{to:`/runs/${encodeURIComponent(e.runId)}`,children:e.runId})},{label:`Activity`,render:e=>e.activity},{label:`Workflow`,render:e=>e.workflowName??`?`},{label:`Stage`,render:e=>e.stage??`?`},{label:`Runner`,render:e=>O(e)},{label:`Status`,render:e=>Jv(e)},{label:`Started`,render:e=>(0,w.jsx)(Iv,{value:e.startedAt})},{label:`Duration`,render:e=>qv(e)},{label:`Usage`,render:e=>(0,w.jsx)(vm,{usage:e})},{label:`Cost`,render:e=>cm(e.totalCostUsd)}];function O(e){return e.runnerName===void 0?`?`:e.runnerModel===void 0?e.runnerName:`${e.runnerName} (${e.runnerModel})`}function qv(e){let t=e.active?Date.now():e.finishedAt===void 0?void 0:Date.parse(e.finishedAt);return t===void 0?``:um(t-Date.parse(e.startedAt))}function Jv(e){return e.status===`starting`?`Starting`:e.status===`started`?`Running`:e.resolution?.sentinel??e.sentinel}function dre(){let{runId:e=``}=Ct(),t=Jp(),n=gi({queryKey:Yp.execution.run(e),queryFn:({signal:n})=>t.execution.run(e,n),refetchInterval:e=>Zp.runs(e.state.data===void 0?void 0:[e.state.data.data])}),r=gi({queryKey:Yp.execution.transcript(e),queryFn:({signal:n})=>t.execution.transcript(e,n),refetchInterval:Xp.historicalRuns,enabled:e!==``});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`h2`,{children:`Run ${e}`}),n.isPending?(0,w.jsx)(rm,{label:`Loading run`}):n.error?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):n.data&&(0,w.jsxs)(em,{children:[(0,w.jsx)(nm,{children:Jv(n.data.data)}),(0,w.jsxs)(`dl`,{className:om.summary,children:[(0,w.jsx)(`dt`,{children:`Activity`}),(0,w.jsx)(`dd`,{children:n.data.data.activity}),(0,w.jsx)(`dt`,{children:`Attempt`}),(0,w.jsx)(`dd`,{children:n.data.data.attempt}),(0,w.jsx)(`dt`,{children:`Started`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(Iv,{value:n.data.data.startedAt})}),n.data.data.finishedAt!==void 0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`dt`,{children:`Finished`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(Iv,{value:n.data.data.finishedAt})})]})]}),(n.data.data.outcome??n.data.data.failure)!==void 0&&(0,w.jsx)(gee,{value:n.data.data.outcome??n.data.data.failure}),(0,w.jsx)(`h2`,{children:`Transcript`}),r.data?.data.available?(0,w.jsx)(`ol`,{className:om.transcript,"aria-label":`Transcript`,children:r.data.data.entries.map((e,t)=>(0,w.jsxs)(`li`,{className:om.transcriptEntry,children:[(0,w.jsxs)(`div`,{className:om.transcriptHead,children:[(0,w.jsx)(`span`,{children:e.channel}),(0,w.jsx)(Iv,{value:e.occurredAt})]}),(0,w.jsx)(`pre`,{className:om.transcriptText,children:e.text})]},`${e.occurredAt}-${t}`))}):(0,w.jsx)(im,{children:`Transcript unavailable`})]})]})}var Yv=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fab`,n=`github`,r=512,i=512,a=[],o=`f09b`,s=`M216.5 362.5c-66-8-112.5-55.5-112.5-117 0-25 9-52 24-70-6.5-16.5-5.5-51.5 2-66 20-2.5 47 8 63 22.5 19-6 39-9 63.5-9s44.5 3 62.5 8.5c15.5-14 43-24.5 63-22 7 13.5 8 48.5 1.5 65.5 16 19 24.5 44.5 24.5 70.5 0 61.5-46.5 108-113.5 116.5 17 11 28.5 35 28.5 62.5l0 52C323 491.5 335.5 500 350.5 494 441 459.5 512 369 512 257 512 115.5 397 0 255.5 0S0 115.5 0 257c0 111 70.5 203 165.5 237.5 13.5 5 26.5-4 26.5-17.5l0-40c-7 3-16 5-24 5-33 0-52.5-18-66.5-51.5-5.5-13.5-11.5-21.5-23-23-6-.5-8-3-8-6 0-6 10-10.5 20-10.5 14.5 0 27 9 40 27.5 10 14.5 20.5 21 33 21s20.5-4.5 32-16c8.5-8.5 15-16 21-21z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faGithub=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Xv=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`arrow-up-right-from-square`,r=512,i=512,a=[`external-link`],o=`f08e`,s=`M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faArrowUpRightFromSquare=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),fre=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`file-lines`,r=384,i=512,a=[128441,128462,61686,`file-alt`,`file-text`],o=`f15c`,s=`M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM120 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faFileLines=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),pre=Yv(),Zv=Xv(),Qv=fre();function $v({className:e}){return(0,w.jsx)(Sv,{icon:pre.faGithub,className:e,"aria-hidden":`true`})}function ey({className:e}){return(0,w.jsx)(Sv,{icon:Qv.faFileLines,className:e,"aria-hidden":`true`})}function ty({className:e}){return(0,w.jsx)(Sv,{icon:Zv.faArrowUpRightFromSquare,className:e,"aria-hidden":`true`})}var ny={github:$v};function ry(){let e=vt(),t=Jp(),n=gi({queryKey:Yp.board.list(),queryFn:({signal:e})=>t.board.list(void 0,e),refetchInterval:Xp.board}),r=n.data?.items??[];return(0,w.jsx)(w.Fragment,{children:n.isPending?(0,w.jsx)(rm,{label:`Loading work`}):n.error&&!n.data?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):r.length===0?(0,w.jsx)(im,{children:`No matching work items`}):(0,w.jsx)(Hv,{caption:`Work items`,rows:r,rowKey:e=>e.workItemKey,columns:iy(e)})})}var iy=e=>[{label:`Ref`,render:e=>e.externalRef??`?`},{label:`Work item`,render:t=>(0,w.jsx)(Fn,{to:`/work/${encodeURIComponent(t.workItemKey)}`,state:{background:e},children:t.objective})},{label:`Condition`,render:e=>(0,w.jsx)(sm,{variant:`outline`,children:e.condition})},{label:`Workflow`,render:e=>e.workflowName??`?`},{label:`Stage`,render:e=>e.stage??`?`},{label:`Runs`,render:e=>e.runCount},{label:`Last run`,render:e=>e.lastRunAt===void 0?`?`:(0,w.jsx)(Iv,{value:e.lastRunAt})},{label:`Outcome`,render:e=>e.lastRunOutcome===void 0?`?`:(0,w.jsx)(_m,{outcome:e.lastRunOutcome})},{label:`Cost`,render:e=>cm(e.totalCostUsd)},{label:`Usage`,render:e=>(0,w.jsx)(vm,{usage:e})}];function ay({modal:e=!1}){let{workItemKey:t=``}=Ct(),n=Jp(),r=xt(),i=ti(),a=async()=>{await Promise.all([i.invalidateQueries({queryKey:Yp.work.all}),i.invalidateQueries({queryKey:Yp.board.list()})])},o=_i({mutationFn:e=>n.work.command(t,e,`web:${e}:${globalThis.crypto.randomUUID()}`),onSuccess:async(e,t)=>{await a(),t===`delete`&&r(`/work`)}}),[s,c]=(0,S.useState)(``),l=_i({mutationFn:e=>n.work.message(t,e,`web:conversation-message:${globalThis.crypto.randomUUID()}`),onSuccess:async()=>{c(``),await a()}}),u=gi({queryKey:Yp.work.detail(t),queryFn:({signal:e})=>n.work.detail(t,e),refetchInterval:Xp.openWork,enabled:t!==``}),d=gi({queryKey:Yp.workflowDiagrams.get(t),queryFn:({signal:e})=>n.workflowDiagrams.get(t,e),refetchInterval:Xp.workflowDiagrams,enabled:t!==``&&u.data?.data.orchestration.primary!==null}),[f,p]=(0,S.useState)(zf.Failed),[m,h]=(0,S.useState)(`Operator determined this run failed.`),[g,_]=(0,S.useState)(`{
|
|
1176
|
+
... Falling back to non-web worker version.`);if(!r.workerFactory){var o=e("./elk-worker.min.js").Worker;r.workerFactory=function(e){return new o(e)}}return l(this,n,[r])}return m(n,t),a(n)}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=g,g.default=g},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=typeof Worker<`u`?Worker:void 0},{}]},{},[3])(3)})}))(),1);function Xne(){return new Yne.default}var Zne=Xne(),Cv=264,Qne=52,$ne=54,ere=5;function wv(e){return e===0?Qne:57+e*$ne+(e-1)*ere}async function Tv(e,t){let n=await Zne.layout({id:e.id,layoutOptions:{"elk.algorithm":`layered`,"elk.direction":t,"elk.spacing.nodeNode":`44`,"elk.layered.spacing.nodeNodeBetweenLayers":`88`},children:e.stages.map(e=>({id:e.id,width:Cv,height:wv(e.children.length)})),edges:e.transitions.map((e,t)=>({id:`${e.from}-${e.to}-${t}`,sources:[e.from],targets:[e.to]}))}),r=(n.children??[]).map(e=>({id:e.id,x:e.x??0,y:t===`RIGHT`?0:e.y??0,width:e.width??Cv,height:e.height??wv(0)})),i=(n.edges??[]).map((t,n)=>{let r=e.transitions[n];return{id:t.id,label:r?.label??``,from:r?.from??``,to:r?.to??``,...r?.fromChildId===void 0?{}:{fromChildId:r.fromChildId},points:(t.sections??[]).flatMap(e=>[e.startPoint,...e.bendPoints??[],e.endPoint])}});return Object.freeze({width:n.width??Cv,height:n.height??wv(0),nodes:Object.freeze(r.map(e=>Object.freeze(e))),edges:Object.freeze(i.map(e=>Object.freeze({...e,points:Object.freeze(e.points.map(e=>Object.freeze(e)))})))})}var Ev={diagram:`_diagram_1r90h_1`,dragging:`_dragging_1r90h_45`,canvas:`_canvas_1r90h_50`,canvasLoading:`_canvasLoading_1r90h_56`,edges:`_edges_1r90h_60`,edgeActive:`_edgeActive_1r90h_80`,edgeLabel:`_edgeLabel_1r90h_85`,edgeLabelActive:`_edgeLabelActive_1r90h_101`,stage:`_stage_1r90h_105`,stageCard:`_stageCard_1r90h_116`,stageTitleRow:`_stageTitleRow_1r90h_127`,chips:`_chips_1r90h_137`,metrics:`_metrics_1r90h_138`,stageTotals:`_stageTotals_1r90h_139`,children:`_children_1r90h_152`,childCard:`_childCard_1r90h_158`,childCardWithoutStatus:`_childCardWithoutStatus_1r90h_165`,childStatusDot:`_childStatusDot_1r90h_174`,collapsedStatusDot:`_collapsedStatusDot_1r90h_179`,collapsedStatusDots:`_collapsedStatusDots_1r90h_183`,childTitle:`_childTitle_1r90h_189`,childKindIcon:`_childKindIcon_1r90h_195`,"active-run-pulse":`_active-run-pulse_1r90h_1`,srOnly:`_srOnly_1r90h_258`},Dv={width:0,height:0,nodes:[],edges:[]},tre={activity:kee.faRobot,watch:zm.faEye,"watch-gate":zm.faEye,reactor:Rm.faBolt};function Ov(e,t){let[n,r]=(0,S.useState)(Dv);return(0,S.useEffect)(()=>{if(t===`DOWN`){r(Dv);return}let n=!0;return Tv(e,t).then(e=>{n&&r(e)}),()=>{n=!1}},[e,t]),n}function kv(){let[e,t]=(0,S.useState)(()=>globalThis.matchMedia?.(`(max-width: 42rem)`).matches?`DOWN`:`RIGHT`);return(0,S.useEffect)(()=>{let e=globalThis.matchMedia?.(`(max-width: 42rem)`);if(e===void 0)return;let n=()=>t(e.matches?`DOWN`:`RIGHT`);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}function nre(e){let t=(0,S.useRef)(null),n=(0,S.useRef)(new Map),[r,i]=(0,S.useState)(new Map),a=(0,S.useCallback)((e,t)=>{t===null?n.current.delete(e):n.current.set(e,t)},[]);return(0,S.useLayoutEffect)(()=>{let r=t.current;if(r===null||e.nodes.length===0)return;let a=()=>{let e=r.getBoundingClientRect(),t=new Map;for(let[r,i]of n.current){let n=i.getBoundingClientRect();t.set(r,{left:n.left-e.left,top:n.top-e.top,right:n.right-e.left,bottom:n.bottom-e.top});for(let n of i.querySelectorAll(`[data-diagram-child]`)){let i=n.getBoundingClientRect(),a=n.dataset.diagramChild;a!==void 0&&t.set(`${r}:${a}`,{left:i.left-e.left,top:i.top-e.top,right:i.right-e.left,bottom:i.bottom-e.top})}}i(t)};a();let o=globalThis.ResizeObserver===void 0?void 0:new ResizeObserver(a);o?.observe(r);for(let e of n.current.values())o?.observe(e);return()=>o?.disconnect()},[e]),{anchors:r,canvasRef:t,stageRef:a}}function rre(e){return e.totalTokens===void 0?null:(0,w.jsx)(vm,{usage:{totalTokens:e.totalTokens,...e.inputTokens===void 0?{}:{inputTokens:e.inputTokens},...e.outputTokens===void 0?{}:{outputTokens:e.outputTokens},...e.cacheReadTokens===void 0?{}:{cacheReadTokens:e.cacheReadTokens},...e.cacheWriteTokens===void 0?{}:{cacheWriteTokens:e.cacheWriteTokens}}})}function ire(e){return e.kind===`reactor`||e.runCount===void 0&&e.totalDurationMs===void 0&&e.totalCostUsd===void 0&&e.totalTokens===void 0?null:(0,w.jsxs)(`div`,{className:Ev.metrics,children:[e.runCount===void 0?null:(0,w.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,w.jsx)(`span`,{children:um(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,w.jsx)(`span`,{children:cm(e.totalCostUsd)}),e.totalTokens===void 0?null:rre(e)]})}function Av({child:e,onHover:t,showStatus:n}){let r=(e.activeRuns?.length??0)>0,i=jv(e,r);return(0,w.jsxs)(`article`,{className:`${Ev.childCard} ${om.childRun} ${n?``:Ev.childCardWithoutStatus}`,"data-diagram-child":e.id,"data-kind":e.kind,onMouseEnter:()=>t(e.id),onMouseLeave:()=>t(void 0),children:[n?(0,w.jsx)(`span`,{"aria-label":r?`active run`:`${i} status`,className:`${om.childRunDot} ${Ev.childStatusDot}`,"data-status":i,"data-active-run":r||void 0,"data-testid":`child-status-${e.id}`,role:`img`}):null,(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`${om.childRunTitle} ${Ev.childTitle}`,children:[(0,w.jsx)(Sv,{className:Ev.childKindIcon,icon:tre[e.kind]}),(0,w.jsx)(`span`,{children:e.label})]}),ire(e),e.kind===`reactor`?null:e.activeRuns?.map(e=>(0,w.jsxs)(`div`,{className:om.childRunMeta,children:[(0,w.jsxs)(`span`,{children:[e.activity,` running`]}),e.runnerName===void 0?null:(0,w.jsxs)(w.Fragment,{children:[` `,`· `,(0,w.jsx)(`span`,{children:e.runnerName})]}),` · `,(0,w.jsx)(`span`,{children:um(Math.max(0,Date.now()-new Date(e.startedAt).getTime()))})]},e.runId))]})]})}function jv(e,t=!1){if(t)return`active`;if(e.lastOutcome===void 0)return e.status??`pending`;switch(pm(e.lastOutcome)){case`good`:return`completed`;case`warning`:return`blocked`;case`bad`:return`failed`;case`info`:return`needs-clarification`;case`neutral`:return`pending`}}function are(e){if(e.length<2)return``;let t=`M ${e[0].x} ${e[0].y}`;for(let n=1;n<e.length;n+=1){let r=e[n-1],i=e[n],a=e[n+1];if(a===void 0){t+=` L ${i.x} ${i.y}`;continue}let o=Math.min(10,Math.hypot(i.x-r.x,i.y-r.y)/2),s=Math.min(10,Math.hypot(a.x-i.x,a.y-i.y)/2),c={x:i.x+(r.x-i.x)*o/Math.hypot(r.x-i.x,r.y-i.y),y:i.y+(r.y-i.y)*o/Math.hypot(r.x-i.x,r.y-i.y)},l={x:i.x+(a.x-i.x)*s/Math.hypot(a.x-i.x,a.y-i.y),y:i.y+(a.y-i.y)*s/Math.hypot(a.x-i.x,a.y-i.y)};t+=` L ${c.x} ${c.y} Q ${i.x} ${i.y} ${l.x} ${l.y}`}return t}function Mv(e,t){return e.fromChildId===void 0?t.stages.find(t=>t.id===e.from)?.children.find(e=>e.kind===`activity`)?.id:e.fromChildId}function Nv(e,t,n,r,i){if(e.points.length===0)return e.points;let a=n.get(e.from),o=t.stages.find(t=>t.id===e.from),s=Mv(e,t),c=o?.children.findIndex(e=>e.id===s)??-1,l=r.get(s===void 0?e.from:`${e.from}:${s}`),u=r.get(e.to);if(l!==void 0&&u!==void 0){let n=i===`RIGHT`?{x:l.right,y:(l.top+l.bottom)/2}:{x:(l.left+l.right)/2,y:l.bottom},a=i===`RIGHT`?{x:u.left,y:u.top+16}:{x:(u.left+u.right)/2,y:u.top};if(i===`RIGHT`){let i=t.stages.filter(t=>t.id!==e.from&&t.id!==e.to).map(e=>r.get(e.id)).filter(e=>e!==void 0&&e.left>=n.x&&e.right<=a.x);if(i.length>0){let e=Math.max(l.bottom,u.bottom,...i.map(e=>e.bottom))+24,t=n.x+18,r=a.x-18;return[n,{x:t,y:n.y},{x:t,y:e},{x:r,y:e},{x:r,y:a.y},a]}if(n.y===a.y)return[n,a];let o=(n.x+a.x)/2;return[n,{x:o,y:n.y},{x:o,y:a.y},a]}if(n.x===a.x)return[n,a];let o=(n.y+a.y)/2;return[n,{x:n.x,y:o},{x:a.x,y:o},a]}if(s===void 0||a===void 0||c<0)return e.points;let d=57+c*59+27;return[i===`RIGHT`?{x:a.x+a.width,y:a.y+d}:{x:a.x+a.width/2,y:a.y+d+52},...e.points.slice(1)]}function ore(e){if(e.length===0)return;if(e.length===1)return e[0];let t=e.slice(1).map((t,n)=>Math.hypot(t.x-e[n].x,t.y-e[n].y)),n=t.reduce((e,t)=>e+t,0)/2,r=0;for(let i=0;i<t.length;i+=1){let a=t[i];if(r+a>=n){let t=e[i],o=e[i+1],s=(n-r)/a;return{x:t.x+(o.x-t.x)*s,y:t.y+(o.y-t.y)*s}}r+=a}return e.at(-1)}function sre({diagram:e}){let t=kv(),n=Ov(e,t),{anchors:r,canvasRef:i,stageRef:a}=nre(n),o=(0,S.useRef)(void 0),[s,c]=(0,S.useState)(!1),[l,u]=(0,S.useState)(()=>{let t=e.stages.filter(e=>(e.activeRuns?.length??0)>0||e.children.some(e=>(e.activeRuns?.length??0)>0));return new Set(t.map(e=>e.id))}),[d,f]=(0,S.useState)(),p=e.stages.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0||e.children.some(e=>e.status!==void 0||e.lastOutcome!==void 0||e.activeRuns!==void 0||e.runCount!==void 0)),m=new Map(n.nodes.map(e=>[e.id,e])),h=l.size>0,g=n.width||(t===`RIGHT`?e.stages.length*352:300),_=n.edges.flatMap(n=>Nv(n,e,m,r,t)),v=Math.max(0,...Array.from(r.values(),e=>e.bottom),..._.map(e=>e.y)),y=t===`RIGHT`&&v>0?v+20:n.height||(t===`RIGHT`?176:e.stages.length*172),b=t===`DOWN`||n.nodes.length>0&&r.size>0,x=e=>{if(t!==`RIGHT`||e.button!==0)return;let n=e.currentTarget;o.current={pointerId:e.pointerId,startX:e.clientX,scrollLeft:n.scrollLeft},n.setPointerCapture(e.pointerId),c(!0)},ee=e=>{let t=o.current;t!==void 0&&t.pointerId===e.pointerId&&(e.currentTarget.scrollLeft=t.scrollLeft-(e.clientX-t.startX))},te=e=>{o.current?.pointerId===e.pointerId&&(o.current=void 0,c(!1),e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))};return(0,w.jsx)(`section`,{"aria-label":`Workflow ${e.label}`,className:`${Ev.diagram} ${s?Ev.dragging:``}`,"data-direction":t,onPointerCancel:te,onPointerDown:x,onPointerMove:ee,onPointerUp:te,children:(0,w.jsxs)(`div`,{ref:i,className:`${Ev.canvas} ${b?``:Ev.canvasLoading}`,"data-direction":t,style:{"--graph-width":`${g}px`,"--graph-height":`${y}px`},children:[(0,w.jsxs)(`svg`,{className:Ev.edges,"aria-hidden":`true`,viewBox:`0 0 ${g} ${y}`,preserveAspectRatio:`none`,children:[(0,w.jsx)(`defs`,{children:(0,w.jsx)(`marker`,{id:`workflow-arrow`,markerWidth:`8`,markerHeight:`8`,refX:`7`,refY:`4`,orient:`auto`,children:(0,w.jsx)(`path`,{d:`M 0 0 L 8 4 L 0 8 z`,fill:`context-stroke`})})}),n.edges.map(n=>{let i=Nv(n,e,m,r,t),a=Mv(n,e)===d;return(0,w.jsx)(`g`,{className:a?Ev.edgeActive:Ev.edge,children:(0,w.jsx)(`path`,{d:are(i),markerEnd:`url(#workflow-arrow)`})},n.id)})]}),n.edges.map(n=>{let i=ore(Nv(n,e,m,r,t)),a=Mv(n,e)===d;return i===void 0||n.label.length===0?null:(0,w.jsx)(`span`,{className:`${Ev.edgeLabel} ${a?Ev.edgeLabelActive:``}`,style:{left:`${i.x}px`,top:`${i.y}px`},children:n.label},`${n.id}-label`)}),e.stages.map((e,n)=>{let r=m.get(e.id),i=t===`RIGHT`||l.has(e.id),o=t===`RIGHT`?n*352:18,s=t===`RIGHT`?20:n*172,c=e.runCount!==void 0||e.totalDurationMs!==void 0||e.totalCostUsd!==void 0||e.totalTokens!==void 0,d=()=>u(t=>{let n=new Set(t);return n.has(e.id)?n.delete(e.id):n.add(e.id),n});return(0,w.jsxs)(`div`,{className:`${Ev.stage} ${om.card}`,ref:t=>a(e.id,t),role:`group`,"aria-label":`Stage ${e.id}`,style:t===`RIGHT`?{left:`${r?.x??o}px`,top:`${r?.y??s}px`,width:`${r?.width??264}px`}:void 0,children:[(0,w.jsxs)(`div`,{"aria-expanded":t===`DOWN`?i:void 0,className:`${Ev.stageCard} ${om.cardLink}`,onClick:t===`DOWN`?d:void 0,onKeyDown:t===`DOWN`?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),d())}:void 0,role:t===`DOWN`?`button`:void 0,tabIndex:t===`DOWN`?0:void 0,children:[(0,w.jsx)(`div`,{children:(0,w.jsx)(`div`,{className:Ev.stageTitleRow,children:(0,w.jsx)(`strong`,{className:om.cardTitle,children:e.label})})}),t===`DOWN`&&p&&!i?(0,w.jsx)(`span`,{className:Ev.collapsedStatusDots,children:e.children.map(t=>(0,w.jsx)(`span`,{"aria-label":`${jv(t,(t.activeRuns?.length??0)>0)} status`,className:`${om.childRunDot} ${Ev.childStatusDot} ${Ev.collapsedStatusDot}`,"data-active-run":(t.activeRuns?.length??0)>0||void 0,"data-status":jv(t,(t.activeRuns?.length??0)>0),"data-testid":`collapsed-status-${e.id}-${t.id}`,role:`img`},t.id))}):null,c?(0,w.jsxs)(`div`,{className:Ev.stageTotals,children:[e.runCount===void 0?null:(0,w.jsxs)(`span`,{children:[e.runCount,` runs`]}),e.totalDurationMs===void 0?null:(0,w.jsx)(`span`,{children:um(e.totalDurationMs)}),e.totalCostUsd===void 0?null:(0,w.jsx)(`span`,{children:cm(e.totalCostUsd)}),e.totalTokens===void 0?null:rre(e)]}):null]}),i?(0,w.jsx)(`div`,{className:Ev.children,style:t===`DOWN`?{display:`grid`,visibility:`visible`}:void 0,children:e.children.map(e=>(0,w.jsx)(Av,{child:e,onHover:t===`RIGHT`?f:()=>void 0,showStatus:p},e.id))}):null]},e.id)}),h?null:(0,w.jsx)(`span`,{className:Ev.srOnly,children:`All stages are collapsed.`})]})})}function cre(){let e=Jp(),[t,n]=(0,S.useState)(`configuration`),r=gi({queryKey:Yp.system.configuration,queryFn:({signal:t})=>e.system.configuration(t),refetchInterval:Xp.configuration}),i=gi({queryKey:Yp.system.commands,queryFn:({signal:t})=>e.system.commands(t),refetchInterval:Xp.commands,enabled:t===`commands`}),a=gi({queryKey:Yp.workflowDiagrams.get(),queryFn:({signal:t})=>e.workflowDiagrams.get(void 0,t),refetchInterval:Xp.workflowDiagrams,enabled:t===`workflows`}),o=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),r=t.indexOf(e.currentTarget);if(r<0)return;let i=e.key===`ArrowRight`?(r+1)%t.length:e.key===`ArrowLeft`?(r-1+t.length)%t.length:void 0;if(i===void 0)return;e.preventDefault();let a=t[i];a!==void 0&&(n(a.dataset.tab),a.focus())};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($p,{actions:(0,w.jsxs)(tm,{type:`button`,variant:`secondary`,onClick:()=>void(t===`commands`?i.refetch():t===`workflows`?a.refetch():r.refetch()),children:[`Refresh`,` `,t===`commands`?`commands`:t===`workflows`?`workflows`:`configuration`]})}),(0,w.jsxs)(`div`,{className:om.tabs,role:`tablist`,"aria-label":`Configuration sections`,children:[(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`configuration`,id:`configuration-tab`,"aria-controls":`configuration-panel`,"aria-selected":t===`configuration`,tabIndex:t===`configuration`?0:-1,onKeyDown:o,onClick:()=>n(`configuration`),children:`Configuration`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`commands`,id:`commands-tab`,"aria-controls":`commands-panel`,"aria-selected":t===`commands`,tabIndex:t===`commands`?0:-1,onKeyDown:o,onClick:()=>n(`commands`),children:`Commands`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`workflows`,id:`workflows-tab`,"aria-controls":`workflows-panel`,"aria-selected":t===`workflows`,tabIndex:t===`workflows`?0:-1,onKeyDown:o,onClick:()=>n(`workflows`),children:`Workflows`})]}),t===`commands`?(0,w.jsx)(`section`,{id:`commands-panel`,role:`tabpanel`,"aria-labelledby":`commands-tab`,children:i.isPending?(0,w.jsx)(rm,{label:`Loading commands`}):i.error&&!i.data?(0,w.jsx)(am,{error:i.error,retry:()=>void i.refetch()}):i.data&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`p`,{children:`Commands and actions recognized by each configured surface adapter.`}),i.data.data.adapters.length===0?(0,w.jsx)(im,{children:`No adapters expose commands`}):i.data.data.adapters.map(e=>(0,w.jsxs)(em,{children:[(0,w.jsx)(`h2`,{children:e.adapter}),e.commands.length===0?(0,w.jsx)(im,{children:`No commands`}):(0,w.jsx)(`ul`,{children:e.commands.map(e=>(0,w.jsx)(`li`,{children:(0,w.jsx)(`code`,{children:e.syntax})},e.syntax))})]},e.adapter))]})}):t===`workflows`?(0,w.jsx)(`section`,{id:`workflows-panel`,role:`tabpanel`,"aria-labelledby":`workflows-tab`,children:a.isPending?(0,w.jsx)(rm,{label:`Loading workflows`}):a.error&&!a.data?(0,w.jsx)(am,{error:a.error,retry:()=>void a.refetch()}):a.data?.data.diagrams.length===0?(0,w.jsx)(im,{children:`No workflows are configured`}):a.data?.data.diagrams.map(e=>(0,w.jsxs)(`section`,{"aria-labelledby":`workflow-${e.id}`,children:[(0,w.jsx)(`h2`,{id:`workflow-${e.id}`,children:e.label}),(0,w.jsx)(sre,{diagram:e})]},e.id))}):(0,w.jsx)(`section`,{id:`configuration-panel`,role:`tabpanel`,"aria-labelledby":`configuration-tab`,children:r.isPending?(0,w.jsx)(rm,{label:`Loading redacted configuration`}):r.error&&!r.data?(0,w.jsx)(am,{error:r.error,retry:()=>void r.refetch()}):r.data&&(0,w.jsxs)(em,{children:[(0,w.jsx)(`p`,{children:`Read-only effective configuration. Secrets are redacted by Wake.`}),(0,w.jsx)(gee,{value:r.data.data.configuration})]})})]})}function lre(){let[e,t]=Vn(),n=e.get(`cursor`)??void 0,r=e.getAll(`previous`);return{...n===void 0?{}:{cursor:n},hasPrevious:r.length>0,next(r){let i=new URLSearchParams(e);i.append(`previous`,n??``),i.set(`cursor`,r),t(i)},previous(){let n=r.at(-1);if(n===void 0)return;let i=new URLSearchParams(e);i.delete(`previous`);for(let e of r.slice(0,-1))i.append(`previous`,e);n===``?i.delete(`cursor`):i.set(`cursor`,n),t(i)},setFilter(n,r){let i=new URLSearchParams(e);r===``?i.delete(n):i.set(n,r),i.delete(`cursor`),i.delete(`previous`),t(i,{replace:!0})}}}function Pv({navigation:e,nextCursor:t,hasMore:n}){return(0,w.jsxs)(`nav`,{className:Qp.pagination,"aria-label":`Collection pages`,children:[(0,w.jsx)(tm,{type:`button`,variant:`secondary`,disabled:!e.hasPrevious,onClick:e.previous,children:`Previous page`}),(0,w.jsx)(tm,{type:`button`,variant:`secondary`,disabled:!n||t===null,onClick:()=>t!==null&&e.next(t),children:`Next page`})]})}function Fv(e,t,n){let r=new Intl.DateTimeFormat(t??`en-CA`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`,...n===void 0?{}:{timeZone:n}}),i=Object.fromEntries(r.formatToParts(new Date(e)).map(e=>[e.type,e.value]));return`${i.year}-${i.month}-${i.day} ${i.hour}:${i.minute}`}function Iv({value:e,locale:t,timeZone:n}){return(0,w.jsx)(`time`,{dateTime:e,title:e,"aria-label":`${Fv(e,t,n)}; exact UTC ${e}`,children:Fv(e,t,n)})}function Lv(){let e=Jp(),t=lre();return(0,w.jsx)(Rv,{client:e,navigation:t},t.cursor??`initial`)}function Rv({client:e,navigation:t}){let n=(0,S.useRef)({page:t.cursor,live:t.cursor}),[r,i]=(0,S.useState)([]),a=gi({queryKey:Yp.events.list(t.cursor),queryFn:async({signal:t})=>e.events.list(n.current.live,void 0,t),refetchInterval:e=>e.state.data?.page.hasMore!==!0&&Xp.events});return(0,S.useEffect)(()=>{a.data!==void 0&&(i(e=>Vv(e,a.data.items)),!a.data.page.hasMore&&a.data.page.nextCursor!==null&&(n.current.live=a.data.page.nextCursor))},[a.data]),(0,w.jsx)(w.Fragment,{children:a.isPending?(0,w.jsx)(rm,{label:`Loading events`}):a.error&&!a.data?(0,w.jsx)(am,{error:a.error,retry:()=>void a.refetch()}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Bv,{records:r}),a.data&&(0,w.jsx)(Pv,{navigation:t,nextCursor:a.data.page.nextCursor,hasMore:a.data.page.hasMore})]})})}function zv({record:e}){let[t,n]=(0,S.useState)(!1);return(0,w.jsxs)(`li`,{className:om.event,children:[(0,w.jsxs)(`button`,{type:`button`,className:om.eventButton,onClick:()=>n(e=>!e),"aria-expanded":t,children:[(0,w.jsx)(Iv,{value:e.occurredAt}),(0,w.jsx)(`span`,{className:om.eventType,children:e.type}),(0,w.jsx)(`span`,{className:om.eventId,children:e.id}),(0,w.jsx)(`span`,{className:om.eventChevron,"aria-hidden":`true`,children:t?`v`:`>`})]}),t&&(0,w.jsx)(`div`,{className:om.eventPayload,children:(0,w.jsx)(`pre`,{children:JSON.stringify(e,null,2)})})]})}function Bv({records:e}){let[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(()=>[...e]),[s,c]=(0,S.useState)([]),l=(0,S.useRef)(a.at(-1)?.position??-1),u=t||r;(0,S.useEffect)(()=>{let e=()=>{let e=document.scrollingElement??document.documentElement;i(e.scrollHeight-e.scrollTop-e.clientHeight>1)};return window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)},[]),(0,S.useEffect)(()=>{let t=e.filter(e=>e.position>l.current);t.length!==0&&(u?c(e=>Vv(e,t)):(o(e=>Vv(e,t)),l.current=t.at(-1).position))},[e,u]);let d=(0,S.useMemo)(()=>[...a].sort((e,t)=>t.position-e.position),[a]),f=()=>{o(e=>Vv(e,s)),l.current=Math.max(l.current,...s.map(e=>e.position)),c([]),n(!1),i(!1)};return(0,w.jsxs)(`section`,{children:[(0,w.jsxs)(`div`,{className:om.toolbar,children:[(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>u?f():n(!0),children:u?`Resume live view`:`Pause live view`}),s.length>0&&(0,w.jsxs)(tm,{type:`button`,onClick:f,"aria-live":`polite`,children:[s.length,` new `,s.length===1?`event`:`events`]})]}),d.length===0?(0,w.jsx)(im,{children:`No events`}):(0,w.jsx)(`ol`,{className:om.eventList,children:d.map(e=>(0,w.jsx)(zv,{record:e},e.id))})]})}function Vv(e,t,n=200){return[...new Map([...e,...t].map(e=>[e.id,e])).values()].sort((e,t)=>e.position-t.position).slice(-n)}function Hv({caption:e,rows:t,rowKey:n,columns:r}){return(0,w.jsx)(`div`,{className:Qp.tableWrap,children:(0,w.jsxs)(`table`,{className:Qp.table,children:[(0,w.jsx)(`caption`,{children:e}),(0,w.jsx)(`thead`,{children:(0,w.jsx)(`tr`,{children:r.map(e=>(0,w.jsx)(`th`,{scope:`col`,children:e.label},e.label))})}),(0,w.jsx)(`tbody`,{children:t.map(e=>(0,w.jsx)(`tr`,{children:r.map(t=>(0,w.jsx)(`td`,{children:t.render(e)},t.label))},n(e)))})]})})}function Uv(){let e=Jp(),t=ti(),n=gi({queryKey:Yp.system.health,queryFn:({signal:t})=>e.system.health(t),refetchInterval:Xp.health}),r=gi({queryKey:Yp.execution.runners,queryFn:({signal:t})=>e.execution.runners(t),refetchInterval:Xp.runners}),i=gi({queryKey:Yp.controlPlane.status,queryFn:({signal:t})=>e.controlPlane.status(t),refetchInterval:Xp.status}),a=_i({mutationKey:[`control-plane`,`clear-maintenance`],mutationFn:t=>e.controlPlane.clearMaintenance(t,crypto.randomUUID()),onSuccess:()=>{t.invalidateQueries({queryKey:Yp.controlPlane.status}),t.invalidateQueries({queryKey:Yp.system.health})}}),o=async(t,n)=>{let i=crypto.randomUUID();n?await e.execution.unpauseRunner(t,i):await e.execution.pauseRunner(t,i),await r.refetch()};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($p,{actions:(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>{n.refetch(),r.refetch(),i.refetch()},children:`Refresh health`})}),n.isPending?(0,w.jsx)(rm,{label:`Checking health`}):n.error&&!n.data?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):n.data&&(0,w.jsxs)(em,{children:[(0,w.jsxs)(nm,{tone:n.data.data.status===`ok`?`good`:`warning`,children:[`Wake `,n.data.data.status]}),n.data.data.checks?.map(e=>(0,w.jsxs)(`p`,{children:[e.name,`: `,e.status,e.detail?` — ${e.detail}`:``]},e.name))]}),i.data?.data.maintenanceLease?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`h2`,{children:`Maintenance recovery`}),(0,w.jsxs)(em,{children:[(0,w.jsx)(nm,{tone:i.data.data.maintenanceLease.phase===`failed`?`bad`:`warning`,children:i.data.data.maintenanceLease.phase}),(0,w.jsxs)(`p`,{children:[`Started: `,i.data.data.maintenanceLease.startedAt]}),i.data.data.maintenanceLease.failure?(0,w.jsxs)(`p`,{children:[`Failure: `,i.data.data.maintenanceLease.failure]}):null,i.data.data.maintenanceLease.phase===`failed`?(0,w.jsx)(tm,{type:`button`,disabled:a.isPending,onClick:()=>{window.confirm(`Clear this failed maintenance lease? This immediately resumes intake and dispatch. Confirm the update attempt is abandoned.`)&&a.mutate(i.data.data.maintenanceLease.attemptId)},children:`Clear failed maintenance`}):(0,w.jsx)(`p`,{children:`Maintenance is active and cannot be cleared until the update fails.`})]})]}):null,(0,w.jsx)(`h2`,{children:`Adapter health`}),n.data&&(n.data.data.adapters?.length??0)===0?(0,w.jsx)(im,{children:`No adapter health reported`}):n.data&&(0,w.jsx)(Hv,{caption:`Adapter health`,rows:n.data.data.adapters,rowKey:e=>`${e.adapter}:${e.scope}:${e.channel}`,columns:[{label:`Adapter`,render:e=>e.adapter},{label:`Scope`,render:e=>e.scope},{label:`Channel`,render:e=>e.channel},{label:`Status`,render:e=>(0,w.jsx)(nm,{tone:e.status===`ok`?`good`:`warning`,children:e.status})},{label:`Successes`,render:e=>e.successCount},{label:`Failures`,render:e=>e.failureCount},{label:`Detail`,render:e=>e.detail??`—`}]}),(0,w.jsx)(`h2`,{children:`Runner availability`}),r.isPending?(0,w.jsx)(rm,{label:`Loading runners`}):r.error&&!r.data?(0,w.jsx)(am,{error:r.error,retry:()=>void r.refetch()}):(r.data?.items.length??0)===0?(0,w.jsx)(im,{children:`No runners configured`}):(0,w.jsx)(Hv,{caption:`Runner availability`,rows:r.data.items,rowKey:e=>e.runnerId,columns:[{label:`Runner`,render:e=>e.runnerId},{label:`Availability`,render:e=>(0,w.jsx)(nm,{tone:e.available?`good`:`warning`,children:e.status})},{label:`Detail`,render:e=>e.detail??`—`},{label:`Control`,render:e=>(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>void o(e.runnerId,!e.available),children:e.available?`Pause`:`Unpause`})}]})]})}function Wv({label:e,value:t}){return(0,w.jsxs)(`div`,{className:Qp.tile,role:`group`,"aria-label":e,children:[(0,w.jsx)(`div`,{className:Qp.tileValue,children:t}),(0,w.jsx)(`div`,{className:Qp.tileLabel,children:e})]})}function ure(){let e=Jp(),t=gi({queryKey:Yp.observability.metrics(7),queryFn:({signal:t})=>e.observability.metrics(7,t),refetchInterval:Xp.observability});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)($p,{actions:(0,w.jsx)(tm,{type:`button`,variant:`secondary`,onClick:()=>void t.refetch(),children:`Refresh metrics`})}),t.isPending?(0,w.jsx)(rm,{label:`Loading metrics`}):t.error&&!t.data?(0,w.jsx)(am,{error:t.error,retry:()=>void t.refetch()}):Object.keys(t.data?.data.values??{}).length===0?(0,w.jsx)(im,{children:`No metrics available`}):(0,w.jsx)(`div`,{className:om.tiles,children:Object.entries(t.data.data.values).map(([e,t])=>(0,w.jsx)(Wv,{label:e,value:String(t)},e))})]})}function Gv(){let e=Jp(),t=lre(),n=gi({queryKey:Yp.execution.runList(t.cursor),queryFn:({signal:n})=>e.execution.runs(t.cursor,n),refetchInterval:e=>Zp.runs(e.state.data?.items)});return(0,w.jsxs)(w.Fragment,{children:[n.isPending?(0,w.jsx)(rm,{label:`Loading runs`}):n.error&&!n.data?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):(n.data?.items.length??0)===0?(0,w.jsx)(im,{children:`No runs`}):(0,w.jsx)(Hv,{caption:`Execution runs`,rows:n.data.items,rowKey:e=>e.runId,columns:Kv}),n.data&&(0,w.jsx)(Pv,{navigation:t,nextCursor:n.data.page.nextCursor,hasMore:n.data.page.hasMore})]})}var Kv=[{label:`Run`,render:e=>(0,w.jsx)(Fn,{to:`/runs/${encodeURIComponent(e.runId)}`,children:e.runId})},{label:`Activity`,render:e=>e.activity},{label:`Workflow`,render:e=>e.workflowName??`?`},{label:`Stage`,render:e=>e.stage??`?`},{label:`Runner`,render:e=>O(e)},{label:`Status`,render:e=>Jv(e)},{label:`Started`,render:e=>(0,w.jsx)(Iv,{value:e.startedAt})},{label:`Duration`,render:e=>qv(e)},{label:`Usage`,render:e=>(0,w.jsx)(vm,{usage:e})},{label:`Cost`,render:e=>cm(e.totalCostUsd)}];function O(e){return e.runnerName===void 0?`?`:e.runnerModel===void 0?e.runnerName:`${e.runnerName} (${e.runnerModel})`}function qv(e){let t=e.active?Date.now():e.finishedAt===void 0?void 0:Date.parse(e.finishedAt);return t===void 0?``:um(t-Date.parse(e.startedAt))}function Jv(e){return e.status===`starting`?`Starting`:e.status===`started`?`Running`:e.resolution?.sentinel??e.sentinel}function dre(){let{runId:e=``}=Ct(),t=Jp(),n=gi({queryKey:Yp.execution.run(e),queryFn:({signal:n})=>t.execution.run(e,n),refetchInterval:e=>Zp.runs(e.state.data===void 0?void 0:[e.state.data.data])}),r=gi({queryKey:Yp.execution.transcript(e),queryFn:({signal:n})=>t.execution.transcript(e,n),refetchInterval:Xp.historicalRuns,enabled:e!==``});return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`h2`,{children:`Run ${e}`}),n.isPending?(0,w.jsx)(rm,{label:`Loading run`}):n.error?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):n.data&&(0,w.jsxs)(em,{children:[(0,w.jsx)(nm,{children:Jv(n.data.data)}),(0,w.jsxs)(`dl`,{className:om.summary,children:[(0,w.jsx)(`dt`,{children:`Activity`}),(0,w.jsx)(`dd`,{children:n.data.data.activity}),(0,w.jsx)(`dt`,{children:`Attempt`}),(0,w.jsx)(`dd`,{children:n.data.data.attempt}),(0,w.jsx)(`dt`,{children:`Started`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(Iv,{value:n.data.data.startedAt})}),n.data.data.finishedAt!==void 0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`dt`,{children:`Finished`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(Iv,{value:n.data.data.finishedAt})})]})]}),(n.data.data.outcome??n.data.data.failure)!==void 0&&(0,w.jsx)(gee,{value:n.data.data.outcome??n.data.data.failure}),(0,w.jsx)(`h2`,{children:`Transcript`}),r.data?.data.available?(0,w.jsx)(`ol`,{className:om.transcript,"aria-label":`Transcript`,children:r.data.data.entries.map((e,t)=>(0,w.jsxs)(`li`,{className:om.transcriptEntry,children:[(0,w.jsxs)(`div`,{className:om.transcriptHead,children:[(0,w.jsx)(`span`,{children:e.channel}),(0,w.jsx)(Iv,{value:e.occurredAt})]}),(0,w.jsx)(`pre`,{className:om.transcriptText,children:e.text})]},`${e.occurredAt}-${t}`))}):(0,w.jsx)(im,{children:`Transcript unavailable`})]})]})}var Yv=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fab`,n=`github`,r=512,i=512,a=[],o=`f09b`,s=`M216.5 362.5c-66-8-112.5-55.5-112.5-117 0-25 9-52 24-70-6.5-16.5-5.5-51.5 2-66 20-2.5 47 8 63 22.5 19-6 39-9 63.5-9s44.5 3 62.5 8.5c15.5-14 43-24.5 63-22 7 13.5 8 48.5 1.5 65.5 16 19 24.5 44.5 24.5 70.5 0 61.5-46.5 108-113.5 116.5 17 11 28.5 35 28.5 62.5l0 52C323 491.5 335.5 500 350.5 494 441 459.5 512 369 512 257 512 115.5 397 0 255.5 0S0 115.5 0 257c0 111 70.5 203 165.5 237.5 13.5 5 26.5-4 26.5-17.5l0-40c-7 3-16 5-24 5-33 0-52.5-18-66.5-51.5-5.5-13.5-11.5-21.5-23-23-6-.5-8-3-8-6 0-6 10-10.5 20-10.5 14.5 0 27 9 40 27.5 10 14.5 20.5 21 33 21s20.5-4.5 32-16c8.5-8.5 15-16 21-21z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faGithub=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),Xv=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`arrow-up-right-from-square`,r=512,i=512,a=[`external-link`],o=`f08e`,s=`M320 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l82.7 0-201.4 201.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L448 109.3 448 192c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160c0-17.7-14.3-32-32-32L320 0zM80 96C35.8 96 0 131.8 0 176L0 432c0 44.2 35.8 80 80 80l256 0c44.2 0 80-35.8 80-80l0-80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 80c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l80 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 96z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faArrowUpRightFromSquare=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),fre=o((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=`fas`,n=`file-lines`,r=384,i=512,a=[128441,128462,61686,`file-alt`,`file-text`],o=`f15c`,s=`M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM120 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z`;e.definition={prefix:t,iconName:n,icon:[r,i,a,o,s]},e.faFileLines=e.definition,e.prefix=t,e.iconName=n,e.width=r,e.height=i,e.ligatures=a,e.unicode=o,e.svgPathData=s,e.aliases=a})),pre=Yv(),Zv=Xv(),Qv=fre();function $v({className:e}){return(0,w.jsx)(Sv,{icon:pre.faGithub,className:e,"aria-hidden":`true`})}function ey({className:e}){return(0,w.jsx)(Sv,{icon:Qv.faFileLines,className:e,"aria-hidden":`true`})}function ty({className:e}){return(0,w.jsx)(Sv,{icon:Zv.faArrowUpRightFromSquare,className:e,"aria-hidden":`true`})}var ny={github:$v};function ry(){let e=vt(),t=Jp(),n=gi({queryKey:Yp.board.list(),queryFn:({signal:e})=>t.board.list(void 0,e),refetchInterval:Xp.board}),r=n.data?.items??[];return(0,w.jsx)(w.Fragment,{children:n.isPending?(0,w.jsx)(rm,{label:`Loading work`}):n.error&&!n.data?(0,w.jsx)(am,{error:n.error,retry:()=>void n.refetch()}):r.length===0?(0,w.jsx)(im,{children:`No matching work items`}):(0,w.jsx)(Hv,{caption:`Work items`,rows:r,rowKey:e=>e.workItemKey,columns:iy(e)})})}var iy=e=>[{label:`Ref`,render:e=>e.externalRef??`?`},{label:`Work item`,render:t=>(0,w.jsx)(Fn,{to:`/work/${encodeURIComponent(t.workItemKey)}`,state:{background:e},children:t.objective})},{label:`Condition`,render:e=>(0,w.jsx)(sm,{variant:`outline`,children:e.condition})},{label:`Workflow`,render:e=>e.workflowName??`?`},{label:`Stage`,render:e=>e.stage??`?`},{label:`Runs`,render:e=>e.runCount},{label:`Last run`,render:e=>e.lastRunAt===void 0?`?`:(0,w.jsx)(Iv,{value:e.lastRunAt})},{label:`Outcome`,render:e=>e.lastRunOutcome===void 0?`?`:(0,w.jsx)(_m,{outcome:e.lastRunOutcome})},{label:`Cost`,render:e=>cm(e.totalCostUsd)},{label:`Usage`,render:e=>(0,w.jsx)(vm,{usage:e})}];function ay({modal:e=!1}){let{workItemKey:t=``}=Ct(),n=Jp(),r=xt(),i=ti(),a=async()=>{await Promise.all([i.invalidateQueries({queryKey:Yp.work.all}),i.invalidateQueries({queryKey:Yp.board.list()})])},o=_i({mutationFn:e=>n.work.command(t,e,`web:${e}:${globalThis.crypto.randomUUID()}`),onSuccess:async(e,t)=>{await a(),t===`delete`&&r(`/work`)}}),[s,c]=(0,S.useState)(``),l=_i({mutationFn:e=>n.work.message(t,e,`web:conversation-message:${globalThis.crypto.randomUUID()}`),onSuccess:async()=>{c(``),await a()}}),u=gi({queryKey:Yp.work.detail(t),queryFn:({signal:e})=>n.work.detail(t,e),refetchInterval:Xp.openWork,enabled:t!==``}),d=gi({queryKey:Yp.workflowDiagrams.get(t),queryFn:({signal:e})=>n.workflowDiagrams.get(t,e),refetchInterval:Xp.workflowDiagrams,enabled:t!==``&&u.data?.data.orchestration.primary!==null}),[f,p]=(0,S.useState)(zf.Failed),[m,h]=(0,S.useState)(`Operator determined this run failed.`),[g,_]=(0,S.useState)(`{
|
|
1177
1177
|
"kind": "done",
|
|
1178
1178
|
"data": { "status": "DONE" }
|
|
1179
1179
|
}`),v=_i({mutationFn:async({runId:e,outcome:r,status:i})=>{let a=globalThis.crypto.randomUUID();if(await n.execution.resolveAmbiguousRun(e,i===zf.Failed?{status:zf.Failed,reason:m}:{status:zf.Succeeded,outcome:r},`web:resolve-ambiguous-run:${a}`),i!==zf.Succeeded)return n.work.command(t,`retry`,`web:retry-after-ambiguous-resolution:${globalThis.crypto.randomUUID()}`)},onSuccess:a}),[y,b]=(0,S.useState)(`overview`),[x,ee]=(0,S.useState)(),[te,ne]=(0,S.useState)(!1),[C,re]=(0,S.useState)(),ie=gi({queryKey:Yp.events.list(``,t),queryFn:({signal:e})=>n.events.list(void 0,t,e),refetchInterval:Xp.events,enabled:t!==``}),ae=[...u.data?.data.execution.transcriptGroups??[]].sort((e,t)=>Number(e.kind===`run`)-Number(t.kind===`run`)||t.latestAt.localeCompare(e.latestAt)),oe=u.data?.data.orchestration.primary,se=[...u.data?.data.execution.runs??[]].filter(e=>e.workflowInstanceId===oe?.workflowInstanceId&&e.status===`ambiguous`).sort((e,t)=>t.startedAt.localeCompare(e.startedAt))[0],ce=oe!=null&&oe.status===`blocked`&&oy(oe.blockReason),le=ae.find(e=>e.groupId===x)??ae[0],ue=gi({queryKey:Yp.work.transcript(t,le?.groupId??``),queryFn:({signal:e})=>n.work.transcript(t,le.groupId,e),refetchInterval:Xp.historicalRuns,enabled:y===`transcripts`&&t!==``&&le!==void 0}),de=C!==void 0&&le?.runIds.includes(C)?C:le?.runIds.at(-1),fe=[...ue.data?.data.entries??[]].sort((e,t)=>e.occurredAt.localeCompare(t.occurredAt)).filter(e=>!te||e.runId===de),pe=e=>{let t=ae.find(t=>t.groupId===e);ee(e),re(t?.runIds.at(-1)),ne(!1)},me=e=>{let t=Array.from(e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)??[]),n=t.indexOf(e.currentTarget);if(n<0)return;let r=e.key===`ArrowRight`?(n+1)%t.length:e.key===`ArrowLeft`?(n-1+t.length)%t.length:e.key===`Home`?0:e.key===`End`?t.length-1:void 0;if(r===void 0)return;e.preventDefault();let i=t[r];if(i===void 0)return;let a=i.dataset.tab;b(a),i.focus()},he=(0,w.jsx)(`div`,{className:om.detail,children:u.isPending?(0,w.jsx)(rm,{label:`Loading work detail`}):u.error&&!u.data?(0,w.jsx)(am,{error:u.error,retry:()=>void u.refetch()}):u.data?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`h2`,{children:u.data.data.work.objective}),(0,w.jsxs)(`div`,{className:om.tabs,role:`tablist`,"aria-label":`Work detail sections`,children:[(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`overview`,id:`work-detail-overview-tab`,"aria-controls":`work-detail-overview-panel`,"aria-selected":y===`overview`,tabIndex:y===`overview`?0:-1,onKeyDown:me,onClick:()=>b(`overview`),children:`Overview`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`conversation`,id:`work-detail-conversation-tab`,"aria-controls":`work-detail-conversation-panel`,"aria-selected":y===`conversation`,tabIndex:y===`conversation`?0:-1,onKeyDown:me,onClick:()=>b(`conversation`),children:`Conversation`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`events`,id:`work-detail-events-tab`,"aria-controls":`work-detail-events-panel`,"aria-selected":y===`events`,tabIndex:y===`events`?0:-1,onKeyDown:me,onClick:()=>b(`events`),children:`Events`}),(0,w.jsx)(`button`,{type:`button`,role:`tab`,"data-tab":`transcripts`,id:`work-detail-transcripts-tab`,"aria-controls":`work-detail-transcripts-panel`,"aria-selected":y===`transcripts`,tabIndex:y===`transcripts`?0:-1,onKeyDown:me,onClick:()=>b(`transcripts`),children:`Transcripts`})]}),y===`conversation`?(0,w.jsxs)(`section`,{id:`work-detail-conversation-panel`,className:om.conversationPanel,role:`tabpanel`,"aria-labelledby":`work-detail-conversation-tab`,children:[(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`h2`,{id:`work-conversation`,children:`Conversation`}),(0,w.jsx)(`p`,{className:om.conversationHint,children:`Messages recorded here become part of this work item's canonical context.`})]}),u.data.data.conversation.entries.length===0?(0,w.jsx)(im,{children:`No conversation messages`}):(0,w.jsx)(`ol`,{className:om.conversationTimeline,"aria-label":`Conversation`,children:u.data.data.conversation.entries.map(e=>{let t=u.data.data.resources.find(t=>t.resourceId===e.sourceResourceId);return(0,w.jsx)(`li`,{children:(0,w.jsxs)(`article`,{className:om.conversationEntry,children:[(0,w.jsxs)(`header`,{className:om.conversationEntryHead,children:[(0,w.jsx)(`strong`,{children:e.actorId}),(0,w.jsxs)(`span`,{children:[`via `,e.sourceAdapter??e.origin]}),(0,w.jsx)(Iv,{value:e.occurredAt}),e.runId!==void 0&&(0,w.jsxs)(`span`,{children:[(0,w.jsxs)(Fn,{to:`/runs/${encodeURIComponent(e.runId)}`,children:[`run `,e.runId]}),e.stage===void 0?``:` (${e.stage})`]}),t!==void 0&&(0,w.jsx)(`span`,{children:t.externalUrl===void 0?t.locatorLabel:(0,w.jsx)(`a`,{href:t.externalUrl,target:`_blank`,rel:`noopener noreferrer`,children:t.locatorLabel})})]}),e.deleted?(0,w.jsx)(`em`,{children:`Message deleted`}):(0,w.jsx)(`pre`,{className:om.conversationBody,children:e.body}),e.representations.length>0&&(0,w.jsx)(`footer`,{className:om.conversationRepresentations,children:e.representations.map(e=>{let t=u.data.data.resources.find(t=>t.resourceId===e.resourceId),n=t?.locatorLabel??e.resourceId;return(0,w.jsxs)(`span`,{children:[`Published to`,` `,t?.externalUrl===void 0?n:(0,w.jsx)(`a`,{href:t.externalUrl,target:`_blank`,rel:`noopener noreferrer`,children:n})]},`${e.resourceId}:${e.externalId}`)})})]})},e.entryId)})}),u.data.data.conversation.canCreateEntries&&(0,w.jsxs)(`form`,{className:om.conversationComposer,onSubmit:e=>{e.preventDefault();let t=s.trim();t!==``&&l.mutate(t)},children:[(0,w.jsx)(`label`,{htmlFor:`work-conversation-message`,children:`Message`}),(0,w.jsx)(`textarea`,{id:`work-conversation-message`,value:s,disabled:l.isPending,onChange:e=>c(e.target.value),placeholder:`Add context, answer a question, or direct the current work.`,rows:4}),(0,w.jsxs)(`div`,{className:om.conversationComposerActions,children:[(0,w.jsx)(tm,{type:`submit`,disabled:l.isPending||s.trim()===``,children:`Send message`}),(0,w.jsx)(hee,{pending:l.isPending,...l.error===null?{}:{message:l.error?.message}})]})]})]}):y===`transcripts`?(0,w.jsxs)(`section`,{id:`work-detail-transcripts-panel`,role:`tabpanel`,"aria-labelledby":`work-detail-transcripts-tab`,children:[(0,w.jsx)(`h2`,{id:`work-transcripts`,children:`Transcript conversations`}),ae.length===0?(0,w.jsx)(im,{children:`No transcript conversations`}):(0,w.jsxs)(`div`,{className:om.transcriptLayout,children:[(0,w.jsx)(`ol`,{className:om.transcriptGroups,"aria-label":`Transcript groups`,children:ae.map(e=>(0,w.jsx)(`li`,{children:(0,w.jsxs)(`button`,{type:`button`,className:om.transcriptGroup,"aria-pressed":le?.groupId===e.groupId,onClick:()=>pe(e.groupId),children:[(0,w.jsx)(`span`,{children:e.groupId}),(0,w.jsx)(`span`,{children:e.kind===`session`?`Session`:`Run fallback`}),e.cli!==void 0&&(0,w.jsx)(`span`,{children:e.cli}),(0,w.jsx)(Iv,{value:e.latestAt}),(0,w.jsx)(`span`,{children:e.runIds.join(`, `)})]})},e.groupId))}),(0,w.jsxs)(`div`,{className:om.transcriptConversation,children:[le!==void 0&&le.runIds.length>1&&(0,w.jsxs)(`div`,{className:om.transcriptFilters,children:[(0,w.jsxs)(`label`,{children:[`Run`,(0,w.jsx)(`select`,{value:de??``,onChange:e=>re(e.target.value),children:le.runIds.map(e=>(0,w.jsx)(`option`,{value:e,children:e},e))})]}),(0,w.jsxs)(`label`,{children:[(0,w.jsx)(`input`,{type:`checkbox`,checked:te,onChange:e=>ne(e.target.checked)}),`This run only`]})]}),ue.isPending?(0,w.jsx)(rm,{label:`Loading transcript`}):ue.error?(0,w.jsx)(am,{error:ue.error,retry:()=>void ue.refetch()}):ue.data?.data.available===!1?(0,w.jsx)(im,{children:`Transcript unavailable`}):fe.length===0?(0,w.jsx)(im,{children:`No transcript messages`}):(0,w.jsx)(`ol`,{className:om.transcript,"aria-label":`Transcript conversation`,children:fe.map((e,t)=>(0,w.jsxs)(`li`,{children:[t>0&&fe[t-1]?.runId!==e.runId&&(0,w.jsxs)(`div`,{className:om.transcriptRunSeparator,role:`separator`,"aria-label":`Run ${e.runId}`,children:[`Run `,e.runId]}),(0,w.jsxs)(`article`,{className:e.channel===`input`?om.transcriptInput:om.transcriptAgent,"aria-label":`${e.channel===`input`?`Input`:`Agent`} message from ${e.runId}`,children:[(0,w.jsxs)(`div`,{className:om.transcriptHead,children:[(0,w.jsx)(`span`,{children:e.channel===`input`?`Input`:`Agent`}),(0,w.jsx)(Iv,{value:e.occurredAt}),(0,w.jsxs)(`span`,{children:[`Run `,e.runId]}),e.channel===`agent`&&e.durationMs!==void 0&&(0,w.jsx)(`span`,{children:um(e.durationMs)})]}),(0,w.jsx)(`pre`,{className:om.transcriptText,style:{whiteSpace:`pre-wrap`},children:e.text})]})]},`${e.occurredAt}-${t}`))})]})]})]}):y===`events`?(0,w.jsxs)(`section`,{id:`work-detail-events-panel`,role:`tabpanel`,"aria-labelledby":`work-detail-events-tab`,children:[(0,w.jsx)(`h2`,{id:`work-events`,children:`Events`}),ie.isPending?(0,w.jsx)(rm,{label:`Loading events`}):ie.error?(0,w.jsx)(am,{error:ie.error,retry:()=>void ie.refetch()}):ie.data?.items.length?(0,w.jsx)(`ol`,{className:om.eventList,children:[...ie.data.items].sort((e,t)=>t.position-e.position).map(e=>(0,w.jsx)(zv,{record:e},e.id))}):(0,w.jsx)(im,{children:`No events`})]}):(0,w.jsxs)(`div`,{id:`work-detail-overview-panel`,className:om.overviewLayout,role:`tabpanel`,"aria-labelledby":`work-detail-overview-tab`,children:[(0,w.jsxs)(`aside`,{className:om.overviewSidebar,children:[(0,w.jsx)(em,{children:(0,w.jsxs)(`dl`,{className:om.summary,children:[(0,w.jsx)(`dt`,{children:`Work identity`}),(0,w.jsx)(`dd`,{children:u.data.data.work.workItemId}),(0,w.jsx)(`dt`,{children:`State`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(sm,{variant:`outline`,children:u.data.data.work.state})}),(0,w.jsx)(`dt`,{children:`Workflow`}),(0,w.jsx)(`dd`,{children:u.data.data.orchestration.primary?.workflowName??`?`}),(0,w.jsx)(`dt`,{children:`Stage`}),(0,w.jsx)(`dd`,{children:u.data.data.orchestration.primary?.currentStage??`Not started`}),ce&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`dt`,{children:`Blocked because`}),(0,w.jsx)(`dd`,{children:`Ambiguous run requires an operator decision`})]}),u.data.data.work.lastRunOutcome!==void 0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`dt`,{children:`Last run`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(_m,{outcome:u.data.data.work.lastRunOutcome,title:`Outcome of the most recent run`})})]})]})}),ce&&se!==void 0&&(0,w.jsxs)(em,{labelledBy:`ambiguous-run-resolution`,children:[(0,w.jsx)(`h2`,{id:`ambiguous-run-resolution`,className:om.sidebarSectionTitle,children:`Resolve ambiguous run`}),(0,w.jsx)(`p`,{children:`Decide what happened before retrying this work. Wake will record your decision, then retry the work item.`}),(0,w.jsxs)(`dl`,{className:om.summary,children:[(0,w.jsx)(`dt`,{children:`Run`}),(0,w.jsx)(`dd`,{children:se.runId}),(0,w.jsx)(`dt`,{children:`Token usage`}),(0,w.jsx)(`dd`,{children:(0,w.jsx)(vm,{usage:se})}),(0,w.jsx)(`dt`,{children:`Cost`}),(0,w.jsx)(`dd`,{children:cm(se.totalCostUsd)}),(0,w.jsx)(`dt`,{children:`Pull request`}),(0,w.jsx)(`dd`,{children:u.data.data.activities.pullRequest===void 0?`None recorded`:`Recorded for this work item`})]}),(0,w.jsxs)(`fieldset`,{disabled:v.isPending,children:[(0,w.jsx)(`legend`,{children:`Actual outcome`}),(0,w.jsxs)(`label`,{children:[(0,w.jsx)(`input`,{type:`radio`,name:`ambiguous-run-outcome`,checked:f===zf.Failed,onChange:()=>p(zf.Failed)}),`Failed`]}),(0,w.jsxs)(`label`,{children:[(0,w.jsx)(`input`,{type:`radio`,name:`ambiguous-run-outcome`,checked:f===zf.Succeeded,onChange:()=>p(zf.Succeeded)}),`Succeeded`]}),f===zf.Failed?(0,w.jsxs)(`label`,{children:[`Reason`,(0,w.jsx)(`textarea`,{value:m,onChange:e=>h(e.target.value)})]}):(0,w.jsxs)(`label`,{children:[`Actual activity outcome (JSON)`,(0,w.jsx)(`textarea`,{value:g,onChange:e=>_(e.target.value)})]})]}),(0,w.jsx)(tm,{type:`button`,disabled:v.isPending||f===zf.Failed&&m.trim()===``||f===zf.Succeeded&&sy(g)===void 0,onClick:()=>{let e=f===zf.Succeeded?sy(g):void 0;(f!==zf.Succeeded||e!==void 0)&&v.mutate({runId:se.runId,outcome:e,status:f})},children:f===zf.Failed?`Resolve and retry`:`Resolve run`}),f===zf.Succeeded&&sy(g)===void 0&&(0,w.jsx)(`p`,{role:`alert`,children:`The actual activity outcome must be an object with a supported outcome kind.`}),(0,w.jsx)(hee,{pending:v.isPending,...v.error===null?{}:{message:v.error.message}})]}),(0,w.jsxs)(`div`,{className:om.actionBar,children:[u.data.data.orchestration.primary?.retryEligible===!0&&(0,w.jsx)(tm,{type:`button`,disabled:o.isPending,onClick:()=>o.mutate(`retry`),children:`Retry`}),u.data.data.orchestration.primary?.extendEligible===!0&&(0,w.jsx)(tm,{type:`button`,disabled:o.isPending,onClick:()=>o.mutate(`extend`),children:`Extend`}),(0,w.jsx)(tm,{type:`button`,disabled:o.isPending,onClick:()=>o.mutate(u.data.data.work.frozen?`unfreeze`:`freeze`),children:u.data.data.work.frozen?`Unfreeze`:`Freeze`}),(0,w.jsx)(tm,{type:`button`,className:om.dangerButton,disabled:o.isPending,onClick:()=>{window.confirm(`Delete this work item from the board and remove its resource correlations?`)&&o.mutate(`delete`)},children:`Delete`}),(0,w.jsx)(hee,{pending:o.isPending,...o.error===null?{}:{message:o.error?.message}})]}),(0,w.jsxs)(`section`,{"aria-labelledby":`work-resources`,children:[(0,w.jsx)(`h2`,{id:`work-resources`,className:om.sidebarSectionTitle,children:`Resources`}),u.data.data.resources.length===0?(0,w.jsx)(im,{children:`No correlated resources`}):(0,w.jsx)(`ul`,{className:om.resourceList,"aria-label":`Resources`,children:u.data.data.resources.map(e=>{let t=ny[e.adapter]??ey,n=e.title??e.locatorLabel,r=(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(`div`,{className:om.resourceCardTop,children:[(0,w.jsx)(t,{className:om.resourceCardIcon}),(0,w.jsx)(`span`,{className:om.resourceCardTitle,children:n}),e.externalUrl!==void 0&&(0,w.jsx)(ty,{className:om.resourceCardExt})]}),(0,w.jsxs)(`div`,{className:om.resourceCardMeta,children:[e.title!==void 0&&(0,w.jsx)(`span`,{className:om.resourceId,children:e.locatorLabel}),e.capabilities.map(e=>(0,w.jsx)(sm,{variant:`outline`,children:e},e))]})]});return(0,w.jsx)(`li`,{children:e.externalUrl===void 0?(0,w.jsx)(`div`,{className:om.resourceCard,children:r}):(0,w.jsx)(`a`,{className:om.resourceCard,href:e.externalUrl,target:`_blank`,rel:`noopener noreferrer`,children:r})},e.resourceId)})})]})]}),(0,w.jsxs)(`section`,{className:om.overviewMain,"aria-labelledby":`work-runs`,children:[d.data?.data.diagrams[0]===void 0?null:(0,w.jsx)(sre,{diagram:d.data.data.diagrams[0]}),u.data.data.execution.runs.length===0?(0,w.jsx)(im,{children:`No runs`}):(0,w.jsx)(Hv,{caption:`Runs`,rows:u.data.data.execution.runs,rowKey:e=>e.runId,columns:Kv})]})]})]}):null});return e?(0,w.jsx)(`div`,{className:om.modalBackdrop,role:`presentation`,onMouseDown:e=>{e.target===e.currentTarget&&r(-1)},children:(0,w.jsxs)(`section`,{className:om.modal,role:`dialog`,"aria-modal":`true`,"aria-label":`Work item detail`,children:[(0,w.jsxs)(`div`,{className:om.modalHeader,children:[u.data?.data.work.externalRef!==void 0&&(0,w.jsx)(`span`,{className:om.modalRef,children:u.data.data.work.externalRef}),(0,w.jsx)(`button`,{className:om.modalClose,type:`button`,"aria-label":`Close work detail`,onClick:()=>r(-1),children:`Close`})]}),he]})}):he}function oy(e){return e!==void 0&&/^run-ambiguous-after-\d+-attempts$/.test(e)}function sy(e){try{let t=JSON.parse(e);if(typeof t!=`object`||!t||Array.isArray(t))return;let n=t.kind;return typeof n==`string`&&Object.values(Hf).includes(n)?t:void 0}catch{return}}function cy({client:e=new Gp}){let[t]=(0,S.useState)(()=>new iee({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!0,refetchOnReconnect:!0,refetchIntervalInBackground:!1}}})),[n,r]=(0,S.useState)();return(0,S.useEffect)(()=>{let t=new URLSearchParams(globalThis.location.search).get(`grant`);(async()=>{if(t!==null){let n=await e.auth.redeem(t);if(globalThis.history.replaceState({},``,`${globalThis.location.pathname}${globalThis.location.hash}`),n)return r(!0)}return e.auth.session().then(r).catch(()=>r(!1))})()},[e]),n===void 0?null:n?(0,w.jsx)(ni,{client:t,children:(0,w.jsx)(qp.Provider,{value:e,children:(0,w.jsx)(ly,{})})}):(0,w.jsx)(mre,{client:e,onAuthenticated:()=>r(!0)})}function mre({client:e,onAuthenticated:t}){let[n,r]=(0,S.useState)(``),[i,a]=(0,S.useState)(!1);async function o(r){r.preventDefault(),await e.auth.redeem(n)?t():a(!0)}return(0,w.jsx)(`main`,{className:`wake-login`,children:(0,w.jsxs)(`div`,{className:`wake-login-panel`,children:[(0,w.jsx)(`section`,{className:`wake-login-brand`,children:(0,w.jsx)(`img`,{className:`wake-login-logo`,src:yi,alt:`Wake logo`})}),(0,w.jsxs)(`section`,{className:`wake-login-card`,children:[(0,w.jsx)(`h1`,{children:`Login`}),(0,w.jsx)(`p`,{children:`Enter a temporary login code, or scan the code from your operator terminal.`}),(0,w.jsxs)(`form`,{onSubmit:o,children:[(0,w.jsx)(`label`,{htmlFor:`access-key`,children:`Temporary login code`}),(0,w.jsx)(`input`,{id:`access-key`,type:`password`,value:n,onChange:e=>r(e.target.value),autoFocus:!0,required:!0}),(0,w.jsx)(`button`,{className:`wake-login-submit`,type:`submit`,children:`Sign in`}),i&&(0,w.jsx)(`p`,{role:`alert`,children:`Unable to sign in.`})]})]})]})})}function ly(){let e=vt(),t=e.state?.background,n=gre(`(min-width: 48rem)`),r=t!==void 0&&n&&!hre();return(0,w.jsxs)(bee,{children:[(0,w.jsxs)(Jt,{location:r?t:e,children:[(0,w.jsx)(Kt,{path:`/`,element:(0,w.jsx)(Gt,{to:`/board`,replace:!0})}),(0,w.jsx)(Kt,{path:`/board`,element:(0,w.jsx)(Nm,{})}),(0,w.jsx)(Kt,{path:`/work`,element:(0,w.jsx)(ry,{})}),(0,w.jsx)(Kt,{path:`/work/:workItemKey`,element:(0,w.jsx)(ay,{})}),(0,w.jsx)(Kt,{path:`/events`,element:(0,w.jsx)(Lv,{})}),(0,w.jsx)(Kt,{path:`/runs`,element:(0,w.jsx)(Gv,{})}),(0,w.jsx)(Kt,{path:`/runs/:runId`,element:(0,w.jsx)(dre,{})}),(0,w.jsx)(Kt,{path:`/observability`,element:(0,w.jsx)(ure,{})}),(0,w.jsx)(Kt,{path:`/health`,element:(0,w.jsx)(Uv,{})}),(0,w.jsx)(Kt,{path:`/configuration`,element:(0,w.jsx)(cre,{})}),(0,w.jsx)(Kt,{path:`*`,element:(0,w.jsx)(Gt,{to:`/board`,replace:!0})})]}),r&&(0,w.jsx)(Jt,{children:(0,w.jsx)(Kt,{path:`/work/:workItemKey`,element:(0,w.jsx)(ay,{modal:!0})})})]})}function hre(){return globalThis.performance?.getEntriesByType?.(`navigation`)[0]?.type===`reload`}function gre(e){let[t,n]=(0,S.useState)(()=>globalThis.matchMedia?.(e).matches??!0);return(0,S.useEffect)(()=>{let t=globalThis.matchMedia?.(e);if(t===void 0)return;let r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}(0,vi.createRoot)(document.getElementById(`root`)).render((0,w.jsx)(S.StrictMode,{children:(0,w.jsx)(Pn,{children:(0,w.jsx)(cy,{})})}));
|