cedar-embeddable-editor 2.0.22 → 2.0.23
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.
|
@@ -9,8 +9,8 @@ ${e.map((i,a)=>`${a+1}) ${i.toString()}`).join(`
|
|
|
9
9
|
`);return i>=0?e.slice(0,i):e}function ov(n,t){return n?t?`${n} ${t}`:n:t||""}var rz=ci({__forward_ref__:ci});function ai(n){return n.__forward_ref__=ai,n}function Ha(n){return sw(n)?n():n}function sw(n){return typeof n=="function"&&Object.hasOwn(n,rz)&&n.__forward_ref__===ai}function We(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ze(n){return{providers:n.providers||[],imports:n.imports||[]}}function sv(n){return oz(n,lv)}function oz(n,t){return Object.hasOwn(n,t)&&n[t]||null}function sz(n){let t=n?.[lv]??null;return t||null}function WS(n){return n&&Object.hasOwn(n,ev)?n[ev]:null}var lv=ci({\u0275prov:ci});var ev=ci({\u0275inj:ci});var be=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,e){this._desc=t,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=We({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function lw(n){return n&&!!n.\u0275providers}var Df=ci({\u0275cmp:ci});var Af=ci({\u0275dir:ci});var cw=ci({\u0275pipe:ci});var dw=ci({\u0275mod:ci});var If=ci({\u0275fac:ci});var Em=ci({__NG_ELEMENT_ID__:ci});var AM=ci({__NG_ENV_ID__:ci});function VM(n){return dv(n,"@NgModule"),n[dw]||null}function Yl(n){return dv(n,"@Component"),n[Df]||null}function cv(n){return dv(n,"@Directive"),n[Af]||null}function BM(n){return dv(n,"@Pipe"),n[cw]||null}function dv(n,t){if(n==null)throw new rt(-919,false)}function nd(n){return typeof n=="string"?n:n==null?"":String(n)}var jM=ci({ngErrorCode:ci});var lz=ci({ngErrorMessage:ci});var cz=ci({ngTokenPath:ci});function mw(n,t){return zM("",-200,t)}function mv(n,t){throw new rt(-201,false)}function zM(n,t,e){let i=new rt(t,n);return i[jM]=t,i[lz]=n,e&&(i[cz]=e),i}function dz(n){return n[jM]}var JS;function UM(){return JS}function Ir(n){let t=JS;return JS=n,t}function uw(n,t,e){let i=sv(n);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(t!==void 0)return t;mv(n,"")}var rr=globalThis;var mz={};var xm=mz;var uz="__NG_DI_FLAG__";var qS=class{injector;constructor(t){this.injector=t}retrieve(t,e){let i=Cm(e)||0;try{return this.injector.get(t,i&8?null:xm,i)}catch(a){if(Xu(a))return a;throw a}}};function pz(n,t=0){let e=wy();if(e===void 0)throw new rt(-203,false);if(e===null)return uw(n,void 0,t);{let i=hz(t),a=e.retrieve(n,i);if(Xu(a)){if(i.optional)return null;throw a}return a}}function qe(n,t=0){return(UM()||pz)(Ha(n),t)}function N(n,t){return qe(n,Cm(t))}function Cm(n){return typeof n>"u"||typeof n=="number"?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function hz(n){return{optional:!!(n&8),host:!!(n&1),self:!!(n&2),skipSelf:!!(n&4)}}function KS(n){let t=[];for(let e=0;e<n.length;e++){let i=Ha(n[e]);if(Array.isArray(i)){if(i.length===0)throw new rt(900,false);let a,r=0;for(let o=0;o<i.length;o++){let s=i[o],l=fz(s);typeof l=="number"?l===-1?a=s.token:r|=l:a=s}t.push(qe(a,r))}else t.push(qe(i))}return t}function fz(n){return n[uz]}function td(n,t){let e=Object.hasOwn(n,If);return e?n[If]:null}function HM(n,t,e){if(n.length!==t.length)return false;for(let i=0;i<n.length;i++){let a=n[i],r=t[i];if(e&&(a=e(a),r=e(r)),r!==a)return false}return true}function YM(n){return n.flat(Number.POSITIVE_INFINITY)}function uv(n,t){n.forEach(e=>Array.isArray(e)?uv(e,t):t(e))}function pw(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function Rf(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function GM(n,t){let e=[];for(let i=0;i<n;i++)e.push(t);return e}function $M(n,t,e,i){let a=n.length;if(a==t)n.push(e,i);else if(a===1)n.push(i,n[0]),n[0]=e;else{for(a--,n.push(n[a-1],n[a]);a>t;){let r=a-2;n[a]=n[r],a--}n[t]=e,n[t+1]=i}}function pv(n,t,e){let i=op(n,t);return i>=0?n[i|1]=e:(i=~i,$M(n,i,t,e)),i}function hv(n,t){let e=op(n,t);if(e>=0)return n[e|1]}function op(n,t){return gz(n,t,1)}function gz(n,t,e){let i=0,a=n.length>>e;for(;a!==i;){let r=i+(a-i>>1),o=n[r<<e];if(t===o)return r<<e;o>t?a=r:i=r+1}return~(a<<e)}var id={};var ar=[];var ad=new be("");var Of=new be("",-1);var hw=new be("");var rp=class{get(t,e=xm){if(e===xm){let a=zM("",-201);throw a.name="\u0275NotFound",a}return e}};function rd(n){return{\u0275providers:n}}function WM(...n){return{\u0275providers:fw(true,n),\u0275fromNgModule:true}}function fw(n,...t){let e=[],i=new Set,a,r=o=>{e.push(o)};return uv(t,o=>{let s=o;tv(s,r,[],i)&&(a||=[],a.push(s))}),a!==void 0&&JM(a,r),e}function JM(n,t){for(let e=0;e<n.length;e++){let{ngModule:i,providers:a}=n[e];gw(a,r=>{t(r,i)})}}function tv(n,t,e,i){if(n=Ha(n),!n)return false;let a=null,r=WS(n),o=!r&&Yl(n);if(!r&&!o){let l=n.ngModule;if(r=WS(l),r)a=l;else return false}else{if(o&&!o.standalone)return false;a=n}let s=i.has(a);if(o){if(s)return false;if(i.add(a),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let c of l)tv(c,t,e,i)}}else if(r){if(r.imports!=null&&!s){i.add(a);let c;uv(r.imports,d=>{tv(d,t,e,i)&&(c||=[],c.push(d))}),c!==void 0&&JM(c,t)}if(!s){let c=td(a)||(()=>new a);t({provide:a,useFactory:c,deps:ar},a),t({provide:hw,useValue:a,multi:true},a),t({provide:ad,useValue:()=>qe(a),multi:true},a)}let l=r.providers;if(l!=null&&!s){let c=n;gw(l,d=>{t(d,c)})}}else return false;return a!==n&&n.providers!==void 0}function gw(n,t){for(let e of n)lw(e)&&(e=e.\u0275providers),Array.isArray(e)?gw(e,t):t(e)}var bz=ci({provide:String,useValue:ci});function qM(n){return n!==null&&typeof n=="object"&&bz in n}function yz(n){return!!(n&&n.useExisting)}function vz(n){return!!(n&&n.useFactory)}function Sm(n){return typeof n=="function"}function KM(n){return!!n.useClass}var Pf=new be("");var Zy={};var RM={};var $S;function sp(){return $S===void 0&&($S=new rp),$S}var $i=class{};var wm=class extends $i{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,e,i,a){super(),this.parent=e,this.source=i,this.scopes=a,QS(t,o=>this.processProvider(o)),this.records.set(Of,ap(void 0,this)),a.has("environment")&&this.records.set($i,ap(void 0,this));let r=this.records.get(Pf);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(hw,ar,{self:true}))}retrieve(t,e){let i=Cm(e)||0;try{return this.get(t,xm,i)}catch(a){if(Xu(a))return a;throw a}}destroy(){wf(this),this._destroyed=true;let t=Rt(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Rt(t)}}onDestroy(t){return wf(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){wf(this);let e=Vs(this),i=Ir(void 0),a;try{return t()}finally{Vs(e),Ir(i)}}get(t,e=xm,i){if(wf(this),Object.hasOwn(t,AM))return t[AM](this);let a=Cm(i),r,o=Vs(this),s=Ir(void 0);try{if(!(a&4)){let c=this.records.get(t);if(c===void 0){let d=wz(t)&&sv(t);d&&this.injectableDefInScope(d)?c=ap(XS(t),Zy):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,a)}let l=a&2?sp():this.parent;return e=a&8&&e===xm?null:e,l.get(t,e)}catch(l){let c=dz(l);throw c===-200||c===-201?new rt(c,null):l}finally{Ir(s),Vs(o)}}resolveInjectorInitializers(){let t=Rt(null),e=Vs(this),i=Ir(void 0),a;try{let r=this.get(ad,ar,{self:true});for(let o of r)o()}finally{Vs(e),Ir(i),Rt(t)}}toString(){return"R3Injector[...]"}processProvider(t){t=Ha(t);let e=Sm(t)?t:Ha(t&&t.provide),i=xz(t);if(!Sm(t)&&t.multi===true){let a=this.records.get(e);a||(a=ap(void 0,Zy,true),a.factory=()=>KS(a.multi),this.records.set(e,a)),e=t,a.multi.push(t)}this.records.set(e,i)}hydrate(t,e,i){let a=Rt(null);try{if(e.value===RM)throw mw("");return e.value===Zy&&(e.value=RM,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&Sz(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Rt(a)}}injectableDefInScope(t){if(!t.providedIn)return false;let e=Ha(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function XS(n){let t=sv(n),e=t!==null?t.factory:td(n);if(e!==null)return e;if(n instanceof be)throw new rt(-204,false);if(n instanceof Function)return _z(n);throw new rt(-204,false)}function _z(n){if(n.length>0)throw new rt(-204,false);let e=sz(n);return e!==null?()=>e.factory(n):()=>new n}function xz(n){if(qM(n))return ap(void 0,n.useValue);{let t=bw(n);return ap(t,Zy)}}function bw(n,t,e){let i;if(Sm(n)){let a=Ha(n);return td(a)||XS(a)}else if(qM(n))i=()=>Ha(n.useValue);else if(vz(n))i=()=>n.useFactory(...KS(n.deps||[]));else if(yz(n))i=(a,r)=>qe(Ha(n.useExisting),r!==void 0&&r&8?8:void 0);else{let a=Ha(n&&(n.useClass||n.provide));if(Cz(n))i=()=>new a(...KS(n.deps));else return td(a)||XS(a)}return i}function wf(n){if(n.destroyed)throw new rt(-205,false)}function ap(n,t,e=false){return{factory:n,value:t,multi:e?[]:void 0}}function Cz(n){return!!n.deps}function Sz(n){return n!==null&&typeof n=="object"&&typeof n.ngOnDestroy=="function"}function wz(n){return typeof n=="function"||typeof n=="object"&&n.ngMetadataName==="InjectionToken"}function QS(n,t){for(let e of n)Array.isArray(e)?QS(e,t):e&&lw(e)?QS(e.\u0275providers,t):t(e)}function lp(n,t){let e;n instanceof wm?(wf(n),e=n):e=new qS(n);let i,a=Vs(e),r=Ir(void 0);try{return t()}finally{Vs(a),Ir(r)}}function yw(){return UM()!==void 0||wy()!=null}var us=0;var ft=1;var Lt=2;var ra=3;var Ao=4;var Ya=5;var Tm=6;var cp=7;var Xi=8;var Us=9;var ps=10;var di=11;var dp=12;var vw=13;var od=14;var or=15;var sd=16;var km=17;var Hs=18;var Ys=19;var _w=20;var zl=21;var fv=22;var Ul=23;var ro=24;var Mm=25;var hs=26;var mp=27;var Ii=28;var XM=1;var xw=6;var Dm=7;var Ff=8;var Am=9;var Ei=10;function Gl(n){return Array.isArray(n)&&typeof n[XM]=="object"}function sr(n){return Array.isArray(n)&&n[XM]===true}function Cw(n){return(n.flags&4)!==0}function Gs(n){return n.componentOffset>-1}function up(n){return(n.flags&1)===1}function $s(n){return!!n.template}function pp(n){return(n[Lt]&512)!==0}function Rm(n){return(n[Lt]&256)===256}var Un=(function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n[n.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",n})(Un||{});var Nf;var Nm="svg";var gv="math";var ZS="";var OM="*";var ew=()=>Object.create(null);function Nz(){return Nf||(Nf=ew(),ed(Un.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),ed(Un.STYLE,void 0,[["*",["style"]]]),ed(Un.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),ed(Un.URL,gv,[["*",["href","xlink:href"]]]),ed(Un.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),ed(Un.URL,Nm,[["a",["href","xlink:href"]]]),ed(Un.ATTRIBUTE_NO_BINDING,Nm,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),ed(Un.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority","credentialless"]]]),Nf)}function ed(n,t,e){let i=t??ZS;for(let[a,r]of e){let o=a.toLowerCase();for(let s of r){let l=s.toLowerCase(),c=Nf[l]??=ew(),d=c[i]??=ew();d[o]=n}}}function QM(n,t,e){let a=Nz()[t.toLowerCase()];if(!a)return Un.NONE;let r=n.toLowerCase(),o;if(e){let s=a[e];s&&(o=s[r]??s[OM])}if(o===void 0){let s=a[ZS];s&&(o=s[r]??s[OM])}if(o===void 0&&(!e||e===ZS)){let s=a[Nm];s&&(o=s[r])}return o??Un.NONE}function Ga(n){for(;Array.isArray(n);)n=n[us];return n}function Sw(n,t){return Ga(t[n])}function Vr(n,t){return Ga(t[n.index])}function bv(n,t){return n.data[t]}function yv(n,t){return n[t]}function vv(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}function Ro(n,t){let e=t[n];return Gl(e)?e:e[us]}function ZM(n){return(n[Lt]&4)===4}function _v(n){return(n[Lt]&128)===128}function eD(n){return sr(n[ra])}function oo(n,t){return t==null?null:n[t]}function ww(n){n[km]=0}function xv(n){n[Lt]&1024||(n[Lt]|=1024,_v(n)&&Om(n))}function tD(n,t){for(;n>0;)t=t[od],n--;return t}function hp(n){return!!(n[Lt]&9216||n[ro]?.dirty)}function Cv(n){n[ps].changeDetectionScheduler?.notify(8),n[Lt]&64&&(n[Lt]|=1024),hp(n)&&Om(n)}function Om(n){n[ps].changeDetectionScheduler?.notify(0);let t=Hl(n);for(;t!==null&&!(t[Lt]&8192||(t[Lt]|=8192,!_v(t)));)t=Hl(t)}function Sv(n,t){if(Rm(n))throw new rt(911,false);n[zl]===null&&(n[zl]=[]),n[zl].push(t)}function nD(n,t){if(n[zl]===null)return;let e=n[zl].indexOf(t);e!==-1&&n[zl].splice(e,1)}function Hl(n){let t=n[ra];return sr(t)?t[ra]:t}function Nw(n){return n[cp]??=[]}function Iw(n){return n.cleanup??=[]}function iD(n,t,e,i){let a=Nw(t);a.push(e),n.firstCreatePass&&Iw(n).push(i,a.length-1)}var tn={lFrame:fD(null),bindingsEnabled:true,skipHydrationRootTNode:null};var tw=false;function aD(){return tn.lFrame.elementDepthCount}function rD(){tn.lFrame.elementDepthCount++}function Ew(){tn.lFrame.elementDepthCount--}function wv(){return tn.bindingsEnabled}function Tw(){return tn.skipHydrationRootTNode!==null}function kw(n){return tn.skipHydrationRootTNode===n}function Mw(){tn.skipHydrationRootTNode=null}function _t(){return tn.lFrame.lView}function mi(){return tn.lFrame.tView}function ve(n){return tn.lFrame.contextLView=n,n[Xi]}function _e(n){return tn.lFrame.contextLView=null,n}function oa(){let n=Dw();for(;n!==null&&n.type===64;)n=n.parent;return n}function Dw(){return tn.lFrame.currentTNode}function oD(){let n=tn.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}function Pm(n,t){let e=tn.lFrame;e.currentTNode=n,e.isParent=t}function Aw(){return tn.lFrame.isParent}function Rw(){tn.lFrame.isParent=false}function sD(){return tn.lFrame.contextLView}function Ow(){return tw}function Ef(n){let t=tw;return tw=n,t}function Lf(){let n=tn.lFrame,t=n.bindingRootIndex;return t===-1&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function lD(){return tn.lFrame.bindingIndex}function cD(n){return tn.lFrame.bindingIndex=n}function Ws(){return tn.lFrame.bindingIndex++}function Nv(n){let t=tn.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function dD(){return tn.lFrame.inI18n}function mD(n,t){let e=tn.lFrame;e.bindingIndex=e.bindingRootIndex=n,Iv(t)}function uD(){return tn.lFrame.currentDirectiveIndex}function Iv(n){tn.lFrame.currentDirectiveIndex=n}function pD(n){let t=tn.lFrame.currentDirectiveIndex;return t===-1?null:n[t]}function Ev(){return tn.lFrame.currentQueryIndex}function Vf(n){tn.lFrame.currentQueryIndex=n}function Iz(n){let t=n[ft];return t.type===2?t.declTNode:t.type===1?n[Ya]:null}function Pw(n,t,e){if(e&4){let a=t,r=n;for(;a=a.parent,a===null&&!(e&1);)if(a=Iz(r),a===null||(r=r[od],a.type&10))break;if(a===null)return false;t=a,n=r}let i=tn.lFrame=hD();return i.currentTNode=t,i.lView=n,true}function Tv(n){let t=hD(),e=n[ft];tn.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=false}function hD(){let n=tn.lFrame,t=n===null?null:n.child;return t===null?fD(n):t}function fD(n){let t={currentTNode:null,isParent:true,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:false};return n!==null&&(n.child=t),t}function gD(){let n=tn.lFrame;return tn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}var Fw=gD;function kv(){let n=gD();n.isParent=true,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function bD(n){return(tn.lFrame.contextLView=tD(n,tn.lFrame.contextLView))[Xi]}function fs(){return tn.lFrame.selectedIndex}function ld(n){tn.lFrame.selectedIndex=n}function cd(){let n=tn.lFrame;return bv(n.tView,n.selectedIndex)}function Ti(){tn.lFrame.currentNamespace=Nm}function Oo(){Ez()}function Ez(){tn.lFrame.currentNamespace=null}function Lw(){return tn.lFrame.currentNamespace}var yD=true;function Mv(){return yD}function Bf(n){yD=n}function nw(n,t=null,e=null,i){let a=Vw(n,t,e,i);return a.resolveInjectorInitializers(),a}function Vw(n,t=null,e=null,i,a=new Set){let r=[e||ar,WM(n)],o;return new wm(r,t||sp(),o||null,a)}var st=class n{static THROW_IF_NOT_FOUND=xm;static NULL=new rp;static create(t,e){if(Array.isArray(t))return nw({name:""},e,t,"");{let i=t.name??"";return nw({name:i},t.parent,t.providers,i)}}static \u0275prov=We({token:n,providedIn:"any",factory:()=>qe(Of)});static __NG_ELEMENT_ID__=-1};var gt=new be("");var kn=class{static __NG_ELEMENT_ID__=Tz;static __NG_ENV_ID__=t=>t};var nv=class extends kn{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Rm(this._lView)}onDestroy(t){let e=this._lView;return Sv(e,t),()=>nD(e,t)}};function Tz(){return new nv(_t())}var Bw=false;var vD=new be("");var $l=(()=>{class n{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new jl(false);debugTaskTracker=N(vD,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new kt(e=>{e.next(false),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe()}static \u0275prov=We({token:n,providedIn:"root",factory:()=>new n})}return n})();var iw=class extends Le{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,yw()&&(this.destroyRef=N(kn,{optional:true})??void 0,this.pendingTasks=N($l,{optional:true})??void 0)}emit(t){let e=Rt(null);try{super.next(t)}finally{Rt(e)}}subscribe(t,e,i){let a=t,r=e||(()=>null),o=i;if(t&&typeof t=="object"){let l=t;a=l.next?.bind(l),r=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(r=this.wrapInTimeout(r),a&&(a=this.wrapInTimeout(a)),o&&(o=this.wrapInTimeout(o)));let s=super.subscribe({next:a,error:r,complete:o});return t instanceof wt&&t.add(s),s}wrapInTimeout(t){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{t(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}};var Ae=iw;function iv(...n){}function jw(n){let t,e;function i(){n=iv;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),t!==void 0&&clearTimeout(t)}catch(a){}}return t=setTimeout(()=>{n(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{n(),i()})),()=>i()}function _D(n){return queueMicrotask(()=>n()),()=>{n=iv}}var zw="isAngularZone";var Tf=zw+"_ID";var kz=0;var $e=class n{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Ae(false);onMicrotaskEmpty=new Ae(false);onStable=new Ae(false);onError=new Ae(false);constructor(t){let{enableLongStackTrace:e=false,shouldCoalesceEventChangeDetection:i=false,shouldCoalesceRunChangeDetection:a=false,scheduleInRootZone:r=Bw}=t;if(typeof Zone>"u")throw new rt(908,false);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!a&&i,o.shouldCoalesceRunChangeDetection=a,o.callbackScheduled=false,o.scheduleInRootZone=r,Az(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(zw)===true}static assertInAngularZone(){if(!n.isInAngularZone())throw new rt(909,false)}static assertNotInAngularZone(){if(n.isInAngularZone())throw new rt(909,false)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,a){let r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+a,t,Mz,iv,iv);try{return r.runTask(o,e,i)}finally{r.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}};var Mz={};function Uw(n){if(n._nesting==0&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=true}}}function Dz(n){if(n.isCheckStableRunning||n.callbackScheduled)return;n.callbackScheduled=true;function t(){jw(()=>{n.callbackScheduled=false,aw(n),n.isCheckStableRunning=true,Uw(n),n.isCheckStableRunning=false})}n.scheduleInRootZone?Zone.root.run(()=>{t()}):n._outer.run(()=>{t()}),aw(n)}function Az(n){let t=()=>{Dz(n)},e=kz++;n._inner=n._inner.fork({name:"angular",properties:{[zw]:true,[Tf]:e,[Tf+e]:true},onInvokeTask:(i,a,r,o,s,l)=>{if(Rz(l))return i.invokeTask(r,o,s,l);try{return PM(n),i.invokeTask(r,o,s,l)}finally{(n.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||n.shouldCoalesceRunChangeDetection)&&t(),FM(n)}},onInvoke:(i,a,r,o,s,l,c)=>{try{return PM(n),i.invoke(r,o,s,l,c)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!Oz(l)&&t(),FM(n)}},onHasTask:(i,a,r,o)=>{i.hasTask(r,o),a===r&&(o.change=="microTask"?(n._hasPendingMicrotasks=o.microTask,aw(n),Uw(n)):o.change=="macroTask"&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,a,r,o)=>(i.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),false)})}function aw(n){n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&n.callbackScheduled===true?n.hasPendingMicrotasks=true:n.hasPendingMicrotasks=false}function PM(n){n._nesting++,n.isStable&&(n.isStable=false,n.onUnstable.emit(null))}function FM(n){n._nesting--,Uw(n)}var kf=class{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Ae;onMicrotaskEmpty=new Ae;onStable=new Ae;onError=new Ae;run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,a){return t.apply(e,i)}};function Rz(n){return xD(n,"__ignore_ng_zone__")}function Oz(n){return xD(n,"__scheduler_tick__")}function xD(n,t){return!Array.isArray(n)||n.length!==1?false:n[0]?.data?.[t]===true}var Lr=class{_console=console;handleError(t){this._console.error("ERROR",t)}};function CD(n){return Pz(n)?n:new rw(n)}function Pz(n){return n instanceof Error||typeof n=="object"&&n!==null&&typeof n.name=="string"&&typeof n.message=="string"}var rw=class extends Error{constructor(t){super(String(t),{cause:t}),this.name="ErrorBoundaryWrappedError"}};var Js=new be("",{factory:()=>{let n=N($e),t=N($i),e;return i=>{n.runOutsideAngular(()=>{t.destroyed&&!e?setTimeout(()=>{throw i}):(e??=t.get(Lr),e.handleError(i))})}}});var SD={provide:ad,useValue:()=>{let n=N(Lr,{optional:true})},multi:true};function xt(n,t){let[e,i,a]=kS(n,t?.equal),r=e,o=r[pa];return r.set=i,r.update=a,r.asReadonly=wD.bind(r),r}function wD(){let n=this[pa];if(n.readonlyFn===void 0){let t=()=>this();t[pa]=n,n.readonlyFn=t}return n.readonlyFn}var Wl=new be("",{factory:()=>Fz});var Fz="ng";var Dv=new be("");var Fm=new be("",{providedIn:"platform",factory:()=>"unknown"});var jf=new be("");var dd=new be("",{factory:()=>N(gt).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fp=(()=>{class n{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=Lz}return n})();function Lz(){return new fp(_t(),oa())}var ao=class{};var gp=new be("",{factory:()=>true});var Av=new be("");var Rv=(()=>{class n{static \u0275prov=We({token:n,providedIn:"root",factory:()=>new ow})}return n})();var ow=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let e=t.zone,i=this.queues.get(e);i.has(t)&&(i.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let e=t.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(t)||i.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[e,i]of this.queues)e===null?t||=this.flushQueue(i):t||=e.run(()=>this.flushQueue(i));t||(this.dirtyEffectCount=0)}}flushQueue(t){let e=false;for(let i of t)i.dirty&&(this.dirtyEffectCount--,e=true,i.run());return e}};var av=class{[pa];constructor(t){this[pa]=t}destroy(){this[pa].destroy()}};function so(n,t){let e=t?.injector??N(st),i=t?.manualCleanup!==true?e.get(kn):null,a,r=e.get(fp,null,{optional:true}),o=e.get(ao);return r!==null?(a=ID(r.view,o,n),i instanceof nv&&i._lView===r.view&&(i=null)):a=jz(n,e.get(Rv),o),a.injector=e,i!==null&&(a.onDestroyFns=[i.onDestroy(()=>a.destroy())]),new av(a)}var ND=Je(Y({},DS),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let n=Ef(false);try{AS(this)}finally{Ef(n)}},cleanup(){if(!this.cleanupFns?.length)return;let n=Rt(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Rt(n)}}});var Vz=Je(Y({},ND),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Jc(this),this.onDestroyFns!==null)for(let n of this.onDestroyFns)n();this.cleanup(),this.scheduler.remove(this)}});var Bz=Je(Y({},ND),{consumerMarkedDirty(){this.view[Lt]|=8192,Om(this.view),this.notifier.notify(13)},destroy(){if(Jc(this),this.onDestroyFns!==null)for(let n of this.onDestroyFns)n();this.cleanup(),this.view[Ul]?.delete(this)}});function ID(n,t,e){let i=Object.create(Bz);return i.view=n,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=t,i.userFn=e,i.fn=ED(i,e),n[Ul]??=new Set,n[Ul].add(i),i.consumerMarkedDirty(i),i}function jz(n,t,e){let i=Object.create(Vz);return i.userFn=n,i.fn=ED(i,n),i.scheduler=t,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function ED(n,t){return()=>{t(e=>(n.cleanupFns??=[]).push(e))}}function $a(n){return typeof n=="function"&&n[pa]!==void 0}function bp(n){return $a(n)&&typeof n.set=="function"}var yp=(()=>{class n{internalPendingTasks=N($l);scheduler=N(ao);errorHandler=N(Js);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();try{e().catch(this.errorHandler).finally(i)}catch(a){this.errorHandler(a),i()}}static \u0275prov=We({token:n,providedIn:"root",factory:()=>new n})}return n})();var o_=Symbol("InputSignalNode#UNSET");var uA=Je(Y({},Ku),{transformFn:void 0,applyValueToInputSignal(n,t){pm(n,t)}});function qf(n){return{toString:n}.toString()}var ri=(function(n){return n[n.TemplateCreateStart=0]="TemplateCreateStart",n[n.TemplateCreateEnd=1]="TemplateCreateEnd",n[n.TemplateUpdateStart=2]="TemplateUpdateStart",n[n.TemplateUpdateEnd=3]="TemplateUpdateEnd",n[n.LifecycleHookStart=4]="LifecycleHookStart",n[n.LifecycleHookEnd=5]="LifecycleHookEnd",n[n.OutputStart=6]="OutputStart",n[n.OutputEnd=7]="OutputEnd",n[n.BootstrapApplicationStart=8]="BootstrapApplicationStart",n[n.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",n[n.BootstrapComponentStart=10]="BootstrapComponentStart",n[n.BootstrapComponentEnd=11]="BootstrapComponentEnd",n[n.ChangeDetectionStart=12]="ChangeDetectionStart",n[n.ChangeDetectionEnd=13]="ChangeDetectionEnd",n[n.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",n[n.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",n[n.AfterRenderHooksStart=16]="AfterRenderHooksStart",n[n.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",n[n.ComponentStart=18]="ComponentStart",n[n.ComponentEnd=19]="ComponentEnd",n[n.DeferBlockStateStart=20]="DeferBlockStateStart",n[n.DeferBlockStateEnd=21]="DeferBlockStateEnd",n[n.DynamicComponentStart=22]="DynamicComponentStart",n[n.DynamicComponentEnd=23]="DynamicComponentEnd",n[n.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",n[n.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",n})(ri||{});var Hv=class{previousValue;currentValue;firstChange;constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function pA(n,t,e,i){t!==null?t.applyValueToInputSignal(t,i):n[e]=i}var hA=null;var hn=(()=>{hA=TD;let n=()=>TD;return n.ngInherit=true,n})();function Xz(){return hA}function TD(n){return n.type.prototype.ngOnChanges&&(n.setInput=Zz),Qz}function Qz(){let n=fA(this),t=n?.current;if(t){let e=n.previous;if(e===id)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function Zz(n,t,e,i,a){let r=this.declaredInputs[i],o=fA(n)||eU(n,{previous:id,current:null}),s=o.current||(o.current={}),l=o.previous,c=l[r];s[r]=new Hv(c&&c.currentValue,e,l===id),pA(n,t,a,e)}var Zw="__ngSimpleChanges__";function fA(n){return Object.hasOwn(n,Zw)&&n[Zw]||null}function eU(n,t){return n[Zw]=t}var kD=[];var fi=function(n,t=null,e){for(let i=0;i<kD.length;i++){let a=kD[i];a(n,t,e)}};function tU(n,t,e){let{ngOnChanges:i,ngOnInit:a,ngDoCheck:r}=t.type.prototype;if(i){let o=Xz()(t);(e.preOrderHooks??=[]).push(n,o),(e.preOrderCheckHooks??=[]).push(n,o)}a&&(e.preOrderHooks??=[]).push(0-n,a),r&&((e.preOrderHooks??=[]).push(n,r),(e.preOrderCheckHooks??=[]).push(n,r))}function gA(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){let r=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:d}=r;o&&(n.contentHooks??=[]).push(-e,o),s&&((n.contentHooks??=[]).push(e,s),(n.contentCheckHooks??=[]).push(e,s)),l&&(n.viewHooks??=[]).push(-e,l),c&&((n.viewHooks??=[]).push(e,c),(n.viewCheckHooks??=[]).push(e,c)),d!=null&&(n.destroyHooks??=[]).push(e,d)}}function Bv(n,t,e){bA(n,t,3,e)}function jv(n,t,e,i){(n[Lt]&3)===e&&bA(n,t,e,i)}function Hw(n,t){let e=n[Lt];(e&3)===t&&(e&=16383,e+=1,n[Lt]=e)}function bA(n,t,e,i){let a=i!==void 0?n[km]&65535:0,r=i??-1,o=t.length-1,s=0;for(let l=a;l<o;l++)if(typeof t[l+1]=="number"){if(s=t[l],i!=null&&s>=i)break}else t[l]<0&&(n[km]+=65536),(s<r||r==-1)&&(nU(n,e,t,l),n[km]=(n[km]&4294901760)+l+2),l++}function MD(n,t){fi(ri.LifecycleHookStart,n,t);let e=Rt(null);try{t.call(n)}finally{Rt(e),fi(ri.LifecycleHookEnd,n,t)}}function nU(n,t,e,i){let a=e[i]<0,r=e[i+1],o=a?-e[i]:e[i],s=n[o];a?n[Lt]>>14<n[km]>>16&&(n[Lt]&3)===t&&(n[Lt]+=16384,MD(s,r)):MD(s,r)}var xp=-1;var Bm=class{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,e,i,a){this.factory=t,this.name=a,this.canSeeViewProviders=e,this.injectImpl=i}};function iU(n){return(n.flags&8)!==0}function aU(n){return(n.flags&16)!==0}function rU(n,t,e){let i=0;for(;i<e.length;){let a=e[i];if(typeof a=="number"){if(a!==0)break;i++;let r=e[i++],o=e[i++],s=e[i++];n.setAttribute(t,o,s,r)}else{let r=a,o=e[++i];oU(r)?n.setProperty(t,r,o):n.setAttribute(t,r,o),i++}}return i}function yA(n){return n===3||n===4||n===6}function oU(n){return n.charCodeAt(0)===64}function Cp(n,t){if(!(t===null||t.length===0))if(n===null||n.length===0)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){let a=t[i];typeof a=="number"?e=a:e===0||(e===-1||e===2?DD(n,e,a,null,t[++i]):DD(n,e,a,null,null))}}return n}function DD(n,t,e,i,a){let r=0,o=n.length;if(t===-1)o=-1;else for(;r<n.length;){let s=n[r++];if(typeof s=="number"){if(s===t){o=-1;break}else if(s>t){o=r-1;break}}}for(;r<n.length;){let s=n[r];if(typeof s=="number")break;if(s===e){a!==null&&(n[r+1]=a);return}r++,a!==null&&r++}o!==-1&&(n.splice(o,0,t),r=o+1),n.splice(r++,0,e),a!==null&&n.splice(r++,0,a)}function vA(n){return n!==xp}function Yv(n){return n&32767}function sU(n){return n>>16}function Gv(n,t){let e=sU(n),i=t;for(;e>0;)i=i[od],e--;return i}var eN=true;function $v(n){let t=eN;return eN=n,t}var lU=256;var _A=lU-1;var xA=5;var cU=0;var qs={};function dU(n,t,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:Object.hasOwn(e,Em)&&(i=e[Em]),i==null&&(i=e[Em]=cU++);let a=i&_A,r=1<<a;t.data[n+(a>>xA)]|=r}function Wv(n,t){let e=CA(n,t);if(e!==-1)return e;let i=t[ft];i.firstCreatePass&&(n.injectorIndex=t.length,Yw(i.data,n),Yw(t,null),Yw(i.blueprint,null));let a=PN(n,t),r=n.injectorIndex;if(vA(a)){let o=Yv(a),s=Gv(a,t),l=s[ft].data;for(let c=0;c<8;c++)t[r+c]=s[o+c]|l[o+c]}return t[r+8]=a,r}function Yw(n,t){n.push(0,0,0,0,0,0,0,0,t)}function CA(n,t){return n.injectorIndex===-1||n.parent&&n.parent.injectorIndex===n.injectorIndex||t[n.injectorIndex+8]===null?-1:n.injectorIndex}function PN(n,t){if(n.parent&&n.parent.injectorIndex!==-1)return n.parent.injectorIndex;let e=0,i=null,a=t;for(;a!==null;){if(i=EA(a),i===null)return xp;if(e++,a=a[od],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return xp}function tN(n,t,e){dU(n,t,e)}function mU(n,t){if(t==="class")return n.classes;if(t==="style")return n.styles;let e=n.attrs;if(e){let i=e.length,a=0;for(;a<i;){let r=e[a];if(yA(r))break;if(r===0)a=a+2;else if(typeof r=="number")for(a++;a<i&&typeof e[a]=="string";)a++;else{if(r===t)return e[a+1];a=a+2}}}return null}function SA(n,t,e){if(e&8||n!==void 0)return n;mv(t,"NodeInjector")}function wA(n,t,e,i){if(e&8&&i===void 0&&(i=null),(e&3)===0){let a=n[Us],r=Ir(void 0);try{return a?a.get(t,i,e&8):uw(t,i,e&8)}finally{Ir(r)}}return SA(i,t,e)}function NA(n,t,e,i=0,a){if(n!==null){if(t[Lt]&2048&&!(i&2)){let o=fU(n,t,e,i,qs);if(o!==qs)return o}let r=IA(n,t,e,i,qs);if(r!==qs)return r}return wA(t,e,i,a)}function IA(n,t,e,i,a){let r=pU(e);if(typeof r=="function"){if(!Pw(t,n,i))return i&1?SA(a,e,i):wA(t,e,i,a);try{let o;if(o=r(i),o==null&&!(i&8))mv(e);else return o}finally{Fw()}}else if(typeof r=="number"){let o=null,s=CA(n,t),l=xp,c=i&1?t[or][Ya]:null;for((s===-1||i&4)&&(l=s===-1?PN(n,t):t[s+8],l===xp||!RD(i,false)?s=-1:(o=t[ft],s=Yv(l),t=Gv(l,t)));s!==-1;){let d=t[ft];if(AD(r,s,d.data)){let m=uU(s,t,e,o,i,c);if(m!==qs)return m}l=t[s+8],l!==xp&&RD(i,t[ft].data[s+8]===c)&&AD(r,s,t)?(o=d,s=Yv(l),t=Gv(l,t)):s=-1}}return a}function uU(n,t,e,i,a,r){let o=t[ft],s=o.data[n+8],l=i==null?Gs(s)&&eN:i!=o&&(s.type&3)!==0,c=a&1&&r===s,d=zv(s,o,e,l,c);return d!==null?Hf(t,o,d,s,a):qs}function zv(n,t,e,i,a){let r=n.providerIndexes,o=t.data,s=r&1048575,l=n.directiveStart,c=n.directiveEnd,d=r>>20,m=i?s:s+d,b=a?s+d:c;for(let u=m;u<b;u++){let f=o[u];if(u<l&&e===f||u>=l&&f.type===e)return u}if(a){let u=o[l];if(u&&$s(u)&&u.type===e)return l}return null}function Hf(n,t,e,i,a){let r=n[e],o=t.data;if(r instanceof Bm){let s=r;if(s.resolving)throw mw("");let l=$v(s.canSeeViewProviders);s.resolving=true;let c=o[e].type||o[e],d,m=s.injectImpl?Ir(s.injectImpl):null,b=Pw(n,i,0);try{r=n[e]=s.factory(void 0,a,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&tU(e,o[e],t)}finally{m!==null&&Ir(m),$v(l),s.resolving=false,Fw()}}return r}function pU(n){if(typeof n=="string")return n.charCodeAt(0)||0;let t=Object.hasOwn(n,Em)?n[Em]:void 0;return typeof t=="number"?t>=0?t&_A:hU:t}function AD(n,t,e){let i=1<<n;return!!(e[t+(n>>xA)]&i)}function RD(n,t){return!(n&2)&&!(n&1&&t)}var Jl=class{_tNode;_lView;constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return NA(this._tNode,this._lView,t,Cm(i),e)}};function hU(){return new Jl(oa(),_t())}function ki(n){return qf(()=>{let t=n.prototype.constructor,e=t[If]||nN(t),i=Object.prototype,a=Object.getPrototypeOf(n.prototype).constructor;for(;a&&a!==i;){let r=a[If]||nN(a);if(r&&r!==e)return r;a=Object.getPrototypeOf(a)}return r=>new r})}function nN(n){return sw(n)?()=>{let t=nN(Ha(n));return t&&t()}:td(n)}function fU(n,t,e,i,a){let r=n,o=t;for(;r!==null&&o!==null&&o[Lt]&2048&&!pp(o);){let s=IA(r,o,e,i|2,qs);if(s!==qs)return s;i&=-5;let l=r.parent;if(!l){let c=o[_w];if(c){let d=c.get(e,qs,i);if(d!==qs)return d}l=EA(o),o=o[od]}r=l}return a}function EA(n){let t=n[ft],e=t.type;return e===2?t.declTNode:e===1?n[Ya]:null}function FN(n){return mU(oa(),n)}function lt(n){return{token:n.token,providedIn:n.autoProvided===false?null:"root",factory:n.factory,value:void 0}}function gU(){return Ep(oa(),_t())}function Ep(n,t){return new Ue(Vr(n,t))}var Ue=(()=>{class n{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=gU}return n})();function kA(n){return n instanceof Ue?n.nativeElement:n}function bU(){return this._results[Symbol.iterator]()}var lo=class{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new Le}constructor(t=false){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){this.dirty=false;let i=YM(t);(this._changesDetected=!HM(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=true,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=bU};function MA(n){return(n.flags&128)===128}var LN=(function(n){return n[n.OnPush=0]="OnPush",n[n.Eager=1]="Eager",n[n.Default=1]="Default",n})(LN||{});var DA=new Map;var yU=0;function vU(){return yU++}function _U(n){DA.set(n[Ys],n)}function iN(n){DA.delete(n[Ys])}var OD="__ngContext__";function Sp(n,t){Gl(t)?(n[OD]=t[Ys],_U(t)):n[OD]=t}function AA(n){return OA(n[dp])}function RA(n){return OA(n[Ao])}function OA(n){for(;n!==null&&!sr(n);)n=n[Ao];return n}var aN;function VN(n){aN=n}function BN(){if(aN!==void 0)return aN;if(typeof document<"u")return document;throw new rt(210,false)}var PA="r";var FA="di";var LA=false;var VA=new be("",{factory:()=>LA});var PD=new WeakMap;function xU(n,t){if(n==null||typeof n!="object")return;let e=PD.get(n);e||(e=new WeakSet,PD.set(n,e)),e.add(t)}var CU=(n,t,e,i)=>{};function SU(n,t,e,i){CU(n,t,e,i)}function s_(n){return(n.flags&32)===32}var wU=()=>null;function BA(n,t,e=false){return wU(n,t,e)}function jA(n,t){let e=n.contentQueries;if(e!==null){let i=Rt(null);try{for(let a=0;a<e.length;a+=2){let r=e[a],o=e[a+1];if(o!==-1){let s=n.data[o];Vf(r),s.contentQueries(2,t[o],o)}}}finally{Rt(i)}}}function rN(n,t,e){Vf(0);let i=Rt(null);try{t(n,e)}finally{Rt(i)}}function jN(n,t,e){if(Cw(t)){let i=Rt(null);try{let a=t.directiveStart,r=t.directiveEnd;for(let o=a;o<r;o++){let s=n.data[o];if(s.contentQueries){let l=e[o];s.contentQueries(1,l,o)}}}finally{Rt(i)}}}var ys=(function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n[n.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",n})(ys||{});var NU={"http://www.w3.org/2000/svg":Nm,"http://www.w3.org/1998/Math/MathML":gv};var Ov;function IU(){if(Ov===void 0&&(Ov=null,rr.trustedTypes))try{Ov=rr.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Ov}function l_(n){return IU()?.createHTML(n)||n}var Pv;function zA(){if(Pv===void 0&&(Pv=null,rr.trustedTypes))try{Pv=rr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Pv}function FD(n){return zA()?.createHTML(n)||n}function LD(n){return zA()?.createScriptURL(n)||n}var ql=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rv})`}};var oN=class extends ql{getTypeName(){return"HTML"}};var sN=class extends ql{getTypeName(){return"Style"}};var lN=class extends ql{getTypeName(){return"Script"}};var cN=class extends ql{getTypeName(){return"URL"}};var dN=class extends ql{getTypeName(){return"ResourceURL"}};function co(n){return n instanceof ql?n.changingThisBreaksApplicationSecurity:n}function Qs(n,t){let e=UA(n);if(e!=null&&e!==t){if(e==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${e} (see ${rv})`)}return e===t}function UA(n){return n instanceof ql&&n.getTypeName()||null}function zN(n){return new oN(n)}function UN(n){return new sN(n)}function HN(n){return new lN(n)}function YN(n){return new cN(n)}function GN(n){return new dN(n)}function EU(n){let t=new uN(n);return TU()?new mN(t):t}var mN=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let e=new window.DOMParser().parseFromString(l_(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch(e){return null}}};var uN=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=l_(t),e}};function TU(){try{return!!new window.DOMParser().parseFromString(l_(""),"text/html")}catch(n){return false}}var kU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Kf(n){return n=String(n),n.match(kU)?n:"unsafe:"+n}function Kl(n){let t=Object.create(null);for(let e of n.split(","))t[e]=true;return t}function Xf(...n){let t=Object.create(null);for(let e of n)for(let i in e)Object.hasOwn(e,i)&&(t[i]=true);return t}var HA=Kl("area,br,col,hr,img,wbr");var YA=Kl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr");var GA=Kl("rp,rt");var MU=Xf(GA,YA);var DU=Xf(YA,Kl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul"));var AU=Xf(GA,Kl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video"));var VD=Xf(HA,DU,AU,MU);var $A=Kl("background,cite,href,itemtype,longdesc,poster,src,xlink:href");var RU=Kl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width");var OU=Kl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext");var PU=Xf($A,RU,OU);var FU=Kl("script,style,template");var pN=class{sanitizedSomething=false;buf=[];sanitizeChildren(t){let e=t.firstChild,i=true,a=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=true,i&&e.firstChild){a.push(e),e=BU(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=VU(e);if(r){e=r;break}e=a.pop()}}return this.buf.join("")}startElement(t){let e=BD(t).toLowerCase();if(!Object.hasOwn(VD,e))return this.sanitizedSomething=true,!Object.hasOwn(FU,e);this.buf.push("<"),this.buf.push(e);let i=t.attributes;for(let a=0;a<i.length;a++){let r=i.item(a),o=r.name,s=o.toLowerCase();if(!Object.hasOwn(PU,s)){this.sanitizedSomething=true;continue}let l=r.value;$A[s]&&(l=Kf(l)),this.buf.push(" ",o,'="',jD(l),'"')}return this.buf.push(">"),true}endElement(t){let e=BD(t).toLowerCase();Object.hasOwn(VD,e)&&!Object.hasOwn(HA,e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(jD(t))}};function LU(n,t){return(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function VU(n){let t=n.nextSibling;if(t&&n!==t.previousSibling)throw WA(t);return t}function BU(n){let t=n.firstChild;if(t&&LU(n,t))throw WA(t);return t}function BD(n){let t=n.nodeName;return typeof t=="string"?t:"FORM"}function WA(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}var jU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var zU=/([^\#-~ |!])/g;function jD(n){return n.replace(/&/g,"&").replace(jU,function(t){let e=t.charCodeAt(0),i=t.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(zU,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Fv;function c_(n,t){let e=null;try{Fv=Fv||EU(n);let i=t?String(t):"";e=Fv.getInertBodyElement(i);let a=5,r=i;do{if(a===0)throw new Error("Failed to sanitize html because the input is unstable");a--,i=r,r=e.innerHTML,e=Fv.getInertBodyElement(i)}while(i!==r);let s=new pN().sanitizeChildren(zD(e)||e);return l_(s)}finally{if(e){let i=zD(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function zD(n){return"content"in n&&UU(n)?n.content:null}function UU(n){return n.nodeType===Node.ELEMENT_NODE&&n.nodeName==="TEMPLATE"}var HU=/^>|^->|<!--|-->|--!>|<!-$/g;var YU=/(<|>)/g;var GU="\u200B$1\u200B";function $U(n){return n.replace(HU,t=>t.replace(YU,GU))}function WU(n,t){return n.createText(t)}function JU(n,t,e){n.setValue(t,e)}function qU(n,t){return n.createComment($U(t))}function JA(n,t,e){return n.createElement(t,e)}function Lm(n,t,e,i,a){n.insertBefore(t,e,i,a)}function qA(n,t,e){n.appendChild(t,e)}function UD(n,t,e,i,a){i!==null?Lm(n,t,e,i,a):qA(n,t,e)}function KA(n,t,e,i){n.removeChild(null,t,e,i)}function KU(n,t,e){n.setAttribute(t,"style",e)}function XU(n,t,e){e===""?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function XA(n,t,e){let{mergedAttrs:i,classes:a,styles:r}=e;i!==null&&rU(n,t,i),a!==null&&XU(n,t,a),r!==null&&KU(n,t,r)}function QU(n,t=true){if(n[0]!=":")return[null,n];let e=n.indexOf(":",1);if(e===-1){if(t)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[null,n]}return[n.slice(1,e),n.slice(e+1)]}function Qf(n,t,e){if(t!==void 0&&e!==void 0&&ZU(t,e)!==Un.HTML)return n;let i=WN();return i?FD(i.sanitize(Un.HTML,n)||""):Qs(n,"HTML")?FD(co(n)):c_(BN(),nd(n))}function Cn(n){let t=WN();return t?t.sanitize(Un.URL,n)||"":Qs(n,"URL")?co(n):Kf(nd(n))}function $N(n){let t=WN();if(t)return LD(t.sanitize(Un.RESOURCE_URL,n)||"");if(Qs(n,"ResourceURL"))return LD(co(n));throw new rt(904,false)}function WN(){let n=_t();return n&&n[ps].sanitizer}function ZU(n,t){let[e,i]=e6(n);return QM(i,t,e)}function e6(n){n=n.toLowerCase();let t=QU(n,false);if(t[0])return t;let i=fs()===-1?null:cd(),a=i?.namespace;if(n==="#host"&&i?.type===2){let r=Vr(i,_t());if(r.tagName&&(n=r.tagName.toLowerCase()),a==null){let o=r.namespaceURI;a=o&&NU[o]}}return[a,n]}function t6(n){return n instanceof Function?n():n}function n6(n,t,e){let i=n.length;for(;;){let a=n.indexOf(t,e);if(a===-1)return a;if(a===0||n.charCodeAt(a-1)<=32){let r=t.length;if(a+r===i||n.charCodeAt(a+r)<=32)return a}e=a+1}}var QA="ng-template";function i6(n,t,e,i){let a=0;if(i){for(;a<t.length&&typeof t[a]=="string";a+=2)if(t[a]==="class"&&n6(t[a+1].toLowerCase(),e,0)!==-1)return true}else if(JN(n))return false;if(a=t.indexOf(1,a),a>-1){let r;for(;++a<t.length&&typeof(r=t[a])=="string";)if(r.toLowerCase()===e)return true}return false}function JN(n){return n.type===4&&n.value!==QA}function a6(n,t,e){let i=n.type===4&&!e?QA:n.value;return t===i}function r6(n,t,e){let i=4,a=n.attrs,r=a!==null?l6(a):0,o=false;for(let s=0;s<t.length;s++){let l=t[s];if(typeof l=="number"){if(!o&&!gs(i)&&!gs(l))return false;if(o&&gs(l))continue;o=false,i=l|i&1;continue}if(!o)if(i&4){if(i=2|i&1,l!==""&&!a6(n,l,e)||l===""&&t.length===1){if(gs(i))return false;o=true}}else if(i&8){if(a===null||!i6(n,a,l,e)){if(gs(i))return false;o=true}}else{let c=t[++s],d=o6(l,a,JN(n),e);if(d===-1){if(gs(i))return false;o=true;continue}if(c!==""){let m;if(d>r?m="":m=a[d+1].toLowerCase(),i&2&&c!==m){if(gs(i))return false;o=true}}}}return gs(i)||o}function gs(n){return(n&1)===0}function o6(n,t,e,i){if(t===null)return-1;let a=0;if(i||!e){let r=false;for(;a<t.length;){let o=t[a];if(o===n)return a;if(o===3||o===6)r=true;else if(o===1||o===2){let s=t[++a];for(;typeof s=="string";)s=t[++a];continue}else{if(o===4)break;if(o===0){a+=4;continue}}a+=r?1:2}return-1}else return c6(t,n)}function ZA(n,t,e=false){for(let i=0;i<t.length;i++)if(r6(n,t[i],e))return true;return false}function s6(n){let t=n.attrs;if(t!=null){let e=t.indexOf(5);if((e&1)===0)return t[e+1]}return null}function l6(n){for(let t=0;t<n.length;t++){let e=n[t];if(yA(e))return t}return n.length}function c6(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){let i=n[e];if(typeof i=="number")return-1;if(i===t)return e;e++}return-1}function d6(n,t){e:for(let e=0;e<t.length;e++){let i=t[e];if(n.length===i.length){for(let a=0;a<n.length;a++)if(n[a]!==i[a])continue e;return true}}return false}function HD(n,t){return n?":not("+t.trim()+")":t}function m6(n){let t=n[0],e=1,i=2,a="",r=false;for(;e<n.length;){let o=n[e];if(typeof o=="string")if(i&2){let s=n[++e];a+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else i&8?a+="."+o:i&4&&(a+=" "+o);else a!==""&&!gs(o)&&(t+=HD(r,a),a=""),i=o,r=r||!gs(i);e++}return a!==""&&(t+=HD(r,a)),t}function u6(n){return n.map(m6).join(",")}function p6(n){let t=[],e=[],i=1,a=2;for(;i<n.length;){let r=n[i];if(typeof r=="string")a===2?r!==""&&t.push(r,n[++i]):a===8&&e.push(r);else{if(!gs(a))break;a=r}i++}return e.length&&t.push(1,...e),t}var lr={};var Ks=(function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n})(Ks||{});var h6;function qN(n,t){return h6(n,t)}var md=new Set;var Rbe=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var hN=new WeakMap;function eR(n){return n?n[od]??n:null}var vp=new WeakSet;function f6(n,t,e){let i=hN.get(n);if(!i||i.length===0)return;let a=t.parentNode,r=t.previousSibling,o=eR(e);for(let s=i.length-1;s>=0;s--){let{el:l,declarationView:c}=i[s],d=l.parentNode;l===t?(i.splice(s,1),vp.add(l),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):r&&l===r?(i.splice(s,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),l.parentNode?.removeChild(l)):d&&a&&d!==a&&(o===null||c===null||o===c)&&(i.splice(s,1),l.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),l.parentNode?.removeChild(l))}}function g6(n,t,e){let i=eR(e),a=hN.get(n);a?a.some(r=>r.el===t)||a.push({el:t,declarationView:i}):hN.set(n,[{el:t,declarationView:i}])}var d_=(function(n){return n[n.CHANGE_DETECTION=0]="CHANGE_DETECTION",n[n.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",n})(d_||{});var Po=new be("");var YD=new Set;function Zs(n){YD.has(n)||(YD.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}var m_=(()=>{class n{impl=null;execute(){this.impl?.execute()}static \u0275prov=We({token:n,providedIn:"root",factory:()=>new n})}return n})();var KN=[0,1,2,3];var XN=(()=>{class n{ngZone=N($e);scheduler=N(ao);errorHandler=N(Lr,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){N(Po,{optional:true})}execute(){let e=this.sequences.size>0;e&&fi(ri.AfterRenderHooksStart),this.executing=true;for(let i of KN)for(let a of this.sequences)if(!(a.erroredOrDestroyed||!a.hooks[i]))try{a.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=a.hooks[i];return r(a.pipelinedValue)},a.snapshot))}catch(r){a.erroredOrDestroyed=true,this.errorHandler?.handleError(r)}this.executing=false;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&fi(ri.AfterRenderHooksEnd)}register(e){let{view:i}=e;i!==void 0?((i[Mm]??=[]).push(e),Om(i),i[Lt]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=true,e.pipelinedValue=void 0,e.once=true):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,i){return i?i.run(d_.AFTER_NEXT_RENDER,e):e()}static \u0275prov=We({token:n,providedIn:"root",factory:()=>new n})}return n})();var Yf=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,e,i,a,r,o=null){this.impl=t,this.hooks=e,this.view=i,this.once=a,this.snapshot=o,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[Mm];t&&(this.view[Mm]=t.filter(e=>e!==this))}};function Wi(n,t){let e=t?.injector??N(st);return Zs("NgAfterNextRender"),y6(n,e,t,true)}function b6(n){return n instanceof Function?[void 0,void 0,n,void 0]:[n.earlyRead,n.write,n.mixedReadWrite,n.read]}function y6(n,t,e,i){let a=t.get(m_);a.impl??=t.get(XN);let r=t.get(Po,null,{optional:true}),o=e?.manualCleanup!==true?t.get(kn):null,s=t.get(fp,null,{optional:true}),l=new Yf(a.impl,b6(n),s?.view,i,o,r?.snapshot(null));return a.impl.register(l),l}var QN=new be("",{factory:()=>{let n=N($i),t=new Set;return n.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:n}}});function tR(n,t,e){let i=n.get(QN);if(Array.isArray(t))for(let a of t)i.queue.add(a),e?.detachedLeaveAnimationFns?.push(a);else i.queue.add(t),e?.detachedLeaveAnimationFns?.push(t);i.scheduler&&i.scheduler(n)}function v6(n,t){let e=n.get(QN);if(Array.isArray(t))for(let i of t)e.queue.delete(i);else e.queue.delete(t)}function _6(n,t){let e=n.get(QN);if(t.detachedLeaveAnimationFns){for(let i of t.detachedLeaveAnimationFns)e.queue.delete(i);t.detachedLeaveAnimationFns=void 0}}function x6(n,t){for(let[e,i]of t)tR(n,i.animateFns)}function GD(n,t,e,i){let a=n?.[hs]?.enter;t!==null&&a&&a.has(e.index)&&x6(i,a)}function $D(n,t,e,i){try{e.get(Of)}catch(o){return i(false)}let a=n?n[hs]??={}:void 0;a?.enter?.has(t.index)&&v6(e,a.enter.get(t.index).animateFns);let r=C6(n,t,a);if(r.size===0&&!(n?ZN(n,t):false))return i(false);n&&md.add(n[Ys]),tR(e,()=>S6(n,t,a,r,i),a)}function C6(n,t,e){let i=new Map,a=e?.leave;if(a&&a.has(t.index)&&i.set(t.index,a.get(t.index)),n&&a)for(let[r,o]of a){if(i.has(r))continue;let l=n[ft].data[r].parent;for(;l;){if(l===t){i.set(r,o);break}l=l.parent}}return i}function S6(n,t,e,i,a){let r=[];if(e&&e.leave)for(let[o]of i){if(!e.leave.has(o))continue;let s=e.leave.get(o);for(let l of s.animateFns){let{promise:c}=l();r.push(c)}e.detachedLeaveAnimationFns=void 0}if(n&&eI(n,t,r),r.length>0){let o=e||n?.[hs];if(o){let s=o.running;s&&r.push(s),o.running=Promise.allSettled(r),I6(n,o.running,a)}else Promise.allSettled(r).then(()=>{n&&md.delete(n[Ys]),a(true)})}else n&&md.delete(n[Ys]),a(false)}function ZN(n,t){if(t.type&12){let i=n[t.index];if(sr(i))for(let a=Ei;a<i.length;a++){let r=i[a];if(r[ft].type===2&&w6(r))return true}}let e=t.child;for(;e;){if(ZN(n,e))return true;e=e.next}return false}function w6(n){let t=n[hs];if(t?.leave&&t.leave.size>0)return true;let e=n[ft].firstChild;for(;e;){if(ZN(n,e))return true;e=e.next}return false}function eI(n,t,e){if(t.type&12){let a=n[t.index];if(sr(a))for(let r=Ei;r<a.length;r++){let o=a[r];o[ft].type===2&&N6(o,e)}}let i=t.child;for(;i;)eI(n,i,e),i=i.next}function N6(n,t){let e=n[hs];if(e&&e.leave)for(let a of e.leave.values())for(let r of a.animateFns){let{promise:o}=r();t.push(o)}let i=n[ft].firstChild;for(;i;)eI(n,i,t),i=i.next}function I6(n,t,e){t.then(()=>{n[hs]?.running===t&&(n[hs].running=void 0,md.delete(n[Ys])),e(true)})}function nR(n){let t=n[hs]??={};t.detachedLeaveAnimationFns=[];let e=n[ft].firstChild;for(;e;)iR(n,e),e=e.next}function iR(n,t){if(t.type&12){let i=n[t.index];if(sr(i))for(let a=Ei;a<i.length;a++){let r=i[a];r[ft].type===2&&nR(r)}}let e=t.child;for(;e;)iR(n,e),e=e.next}function aR(n){let t=n[hs];if(t&&t.detachedLeaveAnimationFns&&t.detachedLeaveAnimationFns.length>0){let i=n[Us];_6(i,t),md.delete(n[Ys]),t.detachedLeaveAnimationFns=void 0}else t&&(t.detachedLeaveAnimationFns=void 0);let e=n[ft].firstChild;for(;e;)rR(n,e),e=e.next}function rR(n,t){if(t.type&12){let i=n[t.index];if(sr(i))for(let a=Ei;a<i.length;a++){let r=i[a];r[ft].type===2&&aR(r)}}let e=t.child;for(;e;)rR(n,e),e=e.next}function _p(n,t,e,i,a,r,o,s){if(a!=null){let l,c=false;sr(a)?l=a:Gl(a)&&(c=true,a=a[us]);let d=Ga(a);n===0&&i!==null?(GD(s,i,r,e),o==null?qA(t,i,d):Lm(t,i,d,o||null,true)):n===1&&i!==null?(Lm(t,i,d,o||null,true),f6(r,d,s),vp.has(d)||GD(s,i,r,e)):n===2?(s?.[hs]?.leave?.has(r.index)&&g6(r,d,s),vp.delete(d),$D(s,r,e,m=>{if(vp.has(d)){vp.delete(d);return}KA(t,d,c,m)})):n===3&&(vp.delete(d),$D(s,r,e,()=>{t.destroyNode(d)})),l!=null&&L6(t,n,e,l,r,i,o)}}function E6(n,t){oR(n,t),t[us]=null,t[Ya]=null}function T6(n,t,e,i,a,r){i[us]=a,i[Ya]=t,p_(n,i,e,1,a,r)}function oR(n,t){t[ps].changeDetectionScheduler?.notify(9),p_(n,t,t[di],2,null,null)}function k6(n){let t=n[dp];if(!t)return Gw(n[ft],n);for(;t;){let e=null;if(Gl(t))e=t[dp];else{let i=t[Ei];i&&(e=i)}if(!e){for(;t&&!t[Ao]&&t!==n;)Gl(t)&&Gw(t[ft],t),t=t[ra];t===null&&(t=n),Gl(t)&&Gw(t[ft],t),e=t&&t[Ao]}t=e}}function tI(n,t){let e=n[Am],i=e.indexOf(t);e.splice(i,1)}function u_(n,t){if(Rm(t))return;let e=t[di];e.destroyNode&&p_(n,t,e,3,null,null),k6(t)}function Gw(n,t){if(Rm(t))return;let e=Rt(null);try{t[Lt]&=-129,t[Lt]|=256,t[ro]&&Jc(t[ro]),D6(n,t),M6(n,t),t[ft].type===1&&t[di].destroy();let i=t[sd];if(i!==null&&sr(t[ra])){i!==t[ra]&&tI(i,t);let a=t[Hs];a!==null&&a.detachView(n)}iN(t)}finally{Rt(e)}}function M6(n,t){let e=n.cleanup,i=t[cp];if(e!==null)for(let o=0;o<e.length-1;o+=2)if(typeof e[o]=="string"){let s=e[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else{let s=i[e[o+1]];e[o].call(s)}i!==null&&(t[cp]=null);let a=t[zl];if(a!==null){t[zl]=null;for(let o=0;o<a.length;o++){let s=a[o];s()}}let r=t[Ul];if(r!==null){t[Ul]=null;for(let o of r)o.destroy()}}function D6(n,t){let e;if(n!=null&&(e=n.destroyHooks)!=null)for(let i=0;i<e.length;i+=2){let a=t[e[i]];if(!(a instanceof Bm)){let r=e[i+1];if(Array.isArray(r))for(let o=0;o<r.length;o+=2){let s=a[r[o]],l=r[o+1];fi(ri.LifecycleHookStart,s,l);try{l.call(s)}finally{fi(ri.LifecycleHookEnd,s,l)}}else{fi(ri.LifecycleHookStart,a,r);try{r.call(a)}finally{fi(ri.LifecycleHookEnd,a,r)}}}}}function sR(n,t,e){if(t===null)throw new rt(510,false);return A6(n,t.parent,e)}function A6(n,t,e){let i=t;for(;i!==null&&i.type&168;)t=i,i=t.parent;if(i===null)return e[us];if(Gs(i)){let{encapsulation:a}=n.data[i.directiveStart+i.componentOffset];if(a===ys.None||a===ys.Emulated)return null}return Vr(i,e)}function lR(n,t,e){return O6(n,t,e)}function R6(n,t,e){return n.type&40?Vr(n,e):null}var O6=R6;var WD;function nI(n,t,e,i){let a=sR(n,i,t),r=t[di],o=i.parent||t[Ya],s=lR(o,i,t);if(a!=null)if(Array.isArray(e))for(let l=0;l<e.length;l++)UD(r,a,e[l],s,false);else UD(r,a,e,s,false);WD!==void 0&&WD(r,i,t,e,a)}function zf(n,t){if(t!==null){let e=t.type;if(e&3)return Vr(t,n);if(e&4)return fN(-1,n[t.index]);if(e&8){let i=t.child;if(i!==null)return zf(n,i);{let a=n[t.index];return sr(a)?fN(-1,a):Ga(a)}}else{if(e&128)return zf(n,t.next);if(e&32)return qN(t,n)()||Ga(n[t.index]);{let i=cR(n,t);if(i!==null){if(Array.isArray(i))return i[0];let a=Hl(n[or]);return zf(a,i)}else return zf(n,t.next)}}}return null}function cR(n,t){if(t!==null){let i=n[or][Ya],a=t.projection;return i.projection[a]}return null}function fN(n,t){let e=Ei+n+1;if(e<t.length){let i=t[e],a=i[ft].firstChild;if(a!==null)return zf(i,a)}return t[Dm]}function iI(n,t,e,i,a,r,o){for(;e!=null;){let s=i[Us];if(e.type===128){e=e.next;continue}let l=i[e.index],c=e.type;if(o&&t===0&&(l&&Sp(Ga(l),i),e.flags|=2),!s_(e))if(c&8)iI(n,t,e.child,i,a,r,false),_p(t,n,s,a,l,e,r,i);else if(c&32){let d=qN(e,i),m;for(;m=d();)_p(t,n,s,a,m,e,r,i);_p(t,n,s,a,l,e,r,i)}else c&16?dR(n,t,i,e,a,r):_p(t,n,s,a,l,e,r,i);e=o?e.projectionNext:e.next}}function p_(n,t,e,i,a,r){n.type===3?P6(e,i,t,a,r):iI(e,i,n.firstChild,t,a,r,false)}function P6(n,t,e,i,a){let o=e[ft].firstChild,s=o.next,l=Ga(e[o.index]),c=Ga(e[s.index]),d=s.index+1,m=e[d];if(t===1||t===0)i!==null&&(m&&m.hasChildNodes()?Lm(n,i,m,a,true):(Lm(n,i,l,a,true),Lm(n,i,c,a,true)));else if(t===2){if(m||(m=document.createDocumentFragment(),e[d]=m),l&&l.parentNode===m)return;let b=l;for(;b!==null;){let u=b.nextSibling;if(m.appendChild(b),b===c)break;b=u}}}function F6(n,t,e){let i=t[di],a=sR(n,e,t),r=e.parent||t[Ya],o=lR(r,e,t);dR(i,0,t,e,a,o)}function dR(n,t,e,i,a,r){let o=e[or],l=o[Ya].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let d=l[c];_p(t,n,e[Us],a,d,i,r,e)}else{let c=l,d=o[ra];MA(i)&&(c.flags|=128),iI(n,t,c,d,a,r,true)}}function L6(n,t,e,i,a,r,o){let s=i[Dm],l=Ga(i);if(s!==l&&_p(t,n,e,r,s,a,o),(i[Lt]&4)===0)for(let c=Ei;c<i.length;c++){let d=i[c];p_(d[ft],d,n,t,r,s)}}function V6(n,t,e,i,a){if(t)a?n.addClass(e,i):n.removeClass(e,i);else{let r=i.indexOf("-")===-1?void 0:Ks.DashCase;a==null?n.removeStyle(e,i,r):(typeof a=="string"&&a.endsWith("!important")&&(a=a.slice(0,-10),r|=Ks.Important),n.setStyle(e,i,a,r))}}function aI(n,t,e,i,a,r,o,s,l,c,d){let m=Ii+i,b=m+a,u=B6(m,b),f=typeof c=="function"?c():c;return u[ft]={type:n,blueprint:u,template:e,queries:null,viewQuery:s,declTNode:t,data:u.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:b,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof r=="function"?r():r,pipeRegistry:typeof o=="function"?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:false,ssrId:d}}function B6(n,t){let e=[];for(let i=0;i<t;i++)e.push(i<n?null:lr);return e}function j6(n){let t=n.tView;return t===null||t.incompleteFirstPass?n.tView=aI(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts,n.id):t}function rI(n,t,e,i,a,r,o,s,l,c,d){let m=t.blueprint.slice();return m[us]=a,m[Lt]=i|4|128|8|64|1024,(c!==null||n&&n[Lt]&2048)&&(m[Lt]|=2048),ww(m),m[ra]=m[od]=n,m[Xi]=e,m[ps]=o||n&&n[ps],m[di]=s||n&&n[di],m[Us]=l||n&&n[Us]||null,m[Ya]=r,m[Ys]=vU(),m[Tm]=d,m[_w]=c,m[or]=t.type==2?n[or]:m,m}function z6(n,t,e){let i=Vr(t,n),a=j6(e),r=n[ps].rendererFactory,o=oI(n,rI(n,a,null,mR(e),i,t,null,r.createRenderer(i,e),null,null,null));return n[t.index]=o}function mR(n){let t=16;return n.signals?t=4096:n.onPush&&(t=64),t}function uR(n,t,e,i){if(e===0)return-1;let a=t.length;for(let r=0;r<e;r++)t.push(i),n.blueprint.push(i),n.data.push(null);return a}function oI(n,t){return n[dp]?n[vw][Ao]=t:n[dp]=t,n[vw]=t,t}function _(n=1){pR(mi(),_t(),fs()+n,false)}function pR(n,t,e,i){if(!i)if((t[Lt]&3)===3){let r=n.preOrderCheckHooks;r!==null&&Bv(t,r,e)}else{let r=n.preOrderHooks;r!==null&&jv(t,r,0,e)}ld(e)}var Zf=(function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n})(Zf||{});function jm(n,t,e,i){let a=Rt(null);try{let[r,o,s]=n.inputs[e],l=null;(o&Zf.SignalBased)!==0&&(l=t[r][pa]),l!==null&&l.transformFn!==void 0?i=l.transformFn(i):s!==null&&(i=s.call(t,i)),n.setInput!==null?n.setInput(t,l,i,e,r):pA(t,l,r,i)}finally{Rt(a)}}function hR(n,t,e,i,a){let r=fs(),o=i&2;try{ld(-1),o&&t.length>Ii&&pR(n,t,Ii,false);let s=o?ri.TemplateUpdateStart:ri.TemplateCreateStart;fi(s,a,e),e(i,a)}finally{ld(r);let s=o?ri.TemplateUpdateEnd:ri.TemplateCreateEnd;fi(s,a,e)}}function h_(n,t,e){$6(n,t,e),(e.flags&64)===64&&W6(n,t,e)}function eg(n,t,e=Vr){let i=t.localNames;if(i!==null){let a=t.index+1;for(let r=0;r<i.length;r+=2){let o=i[r+1],s=o===-1?e(t,n):n[o];n[a++]=s}}}function U6(n,t,e,i){let r=i.get(VA,LA)||e===ys.ShadowDom||e===ys.ExperimentalIsolatedShadowDom,o=n.selectRootElement(t,r);return H6(o),o}function H6(n){Y6(n)}var Y6=()=>null;function G6(n){return n==="class"?"className":n==="for"?"htmlFor":n==="formaction"?"formAction":n==="innerHtml"?"innerHTML":n==="readonly"?"readOnly":n==="tabindex"?"tabIndex":n}function fR(n,t,e,i,a,r){let o=t[ft];if(f_(n,o,t,e,i)){Gs(n)&&bR(t,n.index);return}n.type&3&&(e=G6(e)),gR(n,t,e,i,a,r)}function gR(n,t,e,i,a,r){if(n.type&3){let o=Vr(n,t);i=r!=null?r(i,n.value||"",e):i,a.setProperty(o,e,i)}else n.type&12}function bR(n,t){let e=Ro(t,n);e[Lt]&16||(e[Lt]|=64)}function $6(n,t,e){let i=e.directiveStart,a=e.directiveEnd;Gs(e)&&z6(t,e,n.data[i+e.componentOffset]),n.firstCreatePass||Wv(e,t);let r=e.initialInputs;for(let o=i;o<a;o++){let s=n.data[o],l=Hf(t,n,o,e);if(Sp(l,t),r!==null&&K6(t,o-i,l,s,e,r),$s(s)){let c=Ro(e.index,t);c[Xi]=Hf(t,n,o,e)}}}function W6(n,t,e){let i=e.directiveStart,a=e.directiveEnd,r=e.index,o=uD();try{ld(r);for(let s=i;s<a;s++){let l=n.data[s],c=t[s];Iv(s),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&J6(l,c)}}finally{ld(-1),Iv(o)}}function J6(n,t){n.hostBindings!==null&&n.hostBindings(1,t)}function sI(n,t){let e=n.directiveRegistry,i=null;if(e)for(let a=0;a<e.length;a++){let r=e[a];ZA(t,r.selectors,false)&&(i??=[],$s(r)?i.unshift(r):i.push(r))}return i}function q6(n,t,e,i,a,r){let o=Vr(n,t);yR(t[di],o,r,n.value,e,i,a)}function yR(n,t,e,i,a,r,o){if(r==null)o?.(r,i||"",a),n.removeAttribute(t,a,e);else{let s=o==null?nd(r):o(r,i||"",a);n.setAttribute(t,a,s,e)}}function K6(n,t,e,i,a,r){let o=r[t];if(o!==null)for(let s=0;s<o.length;s+=2){let l=o[s],c=o[s+1];jm(i,e,l,c)}}function lI(n,t,e,i,a){let r=Ii+e,o=t[ft],s=a(o,t,n,i,e);t[r]=s,Pm(n,true);let l=n.type===2;return l?(XA(t[di],s,n),(aD()===0||up(n))&&Sp(s,t),rD()):Sp(s,t),Mv()&&(!l||!s_(n))&&nI(o,t,s,n),n}function cI(n){let t=n;return Aw()?Rw():(t=t.parent,Pm(t,false)),t}function X6(n,t){let e=n[Us];if(!e)return;let i;try{i=e.get(Js,null)}catch(a){i=null}i?.(t)}function f_(n,t,e,i,a){let r=n.inputs?.[i],o=n.hostDirectiveInputs?.[i],s=false;if(o)for(let l=0;l<o.length;l+=2){let c=o[l],d=o[l+1],m=t.data[c];jm(m,e[c],d,a),s=true}if(r)for(let l of r){let c=e[l],d=t.data[l];jm(d,c,i,a),s=true}return s}function Q6(n,t,e,i,a,r){let o=null,s=null,l=null,c=false,d=n.directiveToIndex.get(i.type);if(typeof d=="number"?o=d:[o,s,l]=d,s!==null&&l!==null&&n.hostDirectiveInputs&&Object.hasOwn(n.hostDirectiveInputs,a)){let m=n.hostDirectiveInputs[a];for(let b=0;b<m.length;b+=2){let u=m[b];if(u>=s&&u<=l){let f=t.data[u],g=m[b+1];jm(f,e[u],g,r),c=true}else if(u>l)break}}return o!==null&&Object.hasOwn(i.inputs,a)&&(jm(i,e[o],a,r),c=true),c}function Z6(n,t){let e=Ro(t,n),i=e[ft];e7(i,e);let a=e[us];a!==null&&e[Tm]===null&&(e[Tm]=BA(a,e[Us])),fi(ri.ComponentStart);try{dI(i,e,e[Xi])}finally{fi(ri.ComponentEnd,e[Xi])}}function e7(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])}function dI(n,t,e){Tv(t);try{let i=n.viewQuery;i!==null&&rN(1,i,e);let a=n.template;a!==null&&hR(n,t,a,1,e),n.firstCreatePass&&(n.firstCreatePass=false),t[Hs]?.finishViewCreation(n),n.staticContentQueries&&jA(n,t),n.staticViewQueries&&rN(2,n.viewQuery,e);let r=n.components;r!==null&&t7(t,r)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=true,n.firstCreatePass=false),i}finally{t[Lt]&=-5,kv()}}function t7(n,t){for(let e=0;e<t.length;e++)Z6(n,t[e])}function tg(n,t,e,i){let a=Rt(null);try{let r=t.tView,s=n[Lt]&4096?4096:16,l=rI(n,r,e,s,null,t,null,null,i?.injector??null,i?.embeddedViewInjector??null,i?.dehydratedView??null),c=n[t.index];l[sd]=c;let d=n[Hs];return d!==null&&(l[Hs]=d.createEmbeddedView(r)),dI(r,l,e),l}finally{Rt(a)}}function wp(n,t){return!t||t.firstChild===null||MA(n)}function Gf(n,t,e,i,a=false){if(n.type===3){let r=n.firstChild,o=r.next,s=Ga(t[r.index]),l=Ga(t[o.index]),c=s;for(;c!==null&&(i.push(c),c!==l);)c=c.nextSibling;return i}for(;e!==null;){if(e.type===128){e=a?e.projectionNext:e.next;continue}let r=t[e.index];if(r!==null)if(sr(r)){let s=r[Dm];s!==r[us]&&i.push(Ga(r)),r[Lt]&4||vR(r,i),i.push(s)}else i.push(Ga(r));let o=e.type;if(o&8)Gf(n,t,e.child,i);else if(o&32){let s=qN(e,t),l;for(;l=s();)i.push(l)}else if(o&16){let s=cR(t,e);if(Array.isArray(s))i.push(...s);else{let l=Hl(t[or]);Gf(l[ft],l,s,i,true)}}e=a?e.projectionNext:e.next}return i}function vR(n,t){for(let e=Ei;e<n.length;e++){let i=n[e],a=i[ft].firstChild;a!==null&&Gf(i[ft],i,a,t)}}function _R(n){if(n[Mm]!==null){for(let t of n[Mm])t.impl.addSequence(t);n[Mm].length=0}}var xR=[];function n7(n){return n[ro]??i7(n)}function i7(n){let t=xR.pop()??Object.create(r7);return t.lView=n,t}function a7(n){n.lView[ro]!==n&&(n.lView=null,xR.push(n))}var r7=Je(Y({},mm),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:n=>{Om(n.lView)},consumerOnSignalRead(){this.lView[ro]=this}});function o7(n){let t=n[ro]??Object.create(s7);return t.lView=n,t}var s7=Je(Y({},mm),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:n=>{let t=Hl(n.lView);for(;t&&!CR(t[ft]);)t=Hl(t);t&&xv(t)},consumerOnSignalRead(){this.lView[ro]=this}});function CR(n){return n.type!==2}function SR(n){if(n[Ul]===null)return;let t=true;for(;t;){let e=false;for(let i of n[Ul])if(i.dirty&&(e=true,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()),n[Ul]===null))return;t=e&&!!(n[Lt]&8192)}}var l7=100;function wR(n,t=0){let i=n[ps].rendererFactory,a=false;a||i.begin?.();try{c7(n,t)}finally{a||i.end?.()}}function c7(n,t){let e=Ow();try{Ef(true),gN(n,t);let i=0;for(;hp(n);){if(i===l7)throw new rt(103,false);i++,gN(n,1)}}finally{Ef(e)}}function d7(n,t,e,i){if(Rm(t))return;let a=t[Lt],r=false,o=false;Tv(t);let s=true,l=null,c=null;r||(CR(n)?(c=n7(t),l=Wc(c)):xy()===null?(s=false,c=o7(t),l=Wc(c)):t[ro]&&(Jc(t[ro]),t[ro]=null));try{ww(t),cD(n.bindingStartIndex),e!==null&&hR(n,t,e,2,i);let d=(a&3)===3;if(!r)if(d){let u=n.preOrderCheckHooks;u!==null&&Bv(t,u,null)}else{let u=n.preOrderHooks;u!==null&&jv(t,u,0,null),Hw(t,0)}if(o||m7(t),SR(t),NR(t,0),n.contentQueries!==null&&jA(n,t),!r)if(d){let u=n.contentCheckHooks;u!==null&&Bv(t,u)}else{let u=n.contentHooks;u!==null&&jv(t,u,1),Hw(t,1)}p7(n,t);let m=n.components;m!==null&&ER(t,m,0);let b=n.viewQuery;if(b!==null&&rN(2,b,i),!r)if(d){let u=n.viewCheckHooks;u!==null&&Bv(t,u)}else{let u=n.viewHooks;u!==null&&jv(t,u,2),Hw(t,2)}if(n.firstUpdatePass===true&&(n.firstUpdatePass=false),t[fv]){for(let u of t[fv])u();t[fv]=null}r||(_R(t),t[Lt]&=-73)}catch(d){let m=false,b=d,u=t;for(;u!==null;){if(sr(u)){u=u[ra];continue}let f=u[mp];if(f)try{let g=t[or][Xi],x=g?.constructor,w={declarationInstance:g,declarationType:x,caughtBy:f};f(CD(b),w),m=true;break}catch(g){b=g}u=u[ra]}if(!m)throw r||Om(t),b}finally{c!==null&&(um(c,l),s&&a7(c)),kv()}}function NR(n,t){for(let e=AA(n);e!==null;e=RA(e))for(let i=Ei;i<e.length;i++){let a=e[i];IR(a,t)}}function m7(n){for(let t=AA(n);t!==null;t=RA(t)){if(!(t[Lt]&2))continue;let e=t[Am];for(let i=0;i<e.length;i++){let a=e[i];xv(a)}}}function u7(n,t,e){fi(ri.ComponentStart);let i=Ro(t,n);try{IR(i,e)}finally{fi(ri.ComponentEnd,i[Xi])}}function IR(n,t){_v(n)&&gN(n,t)}function gN(n,t){let i=n[ft],a=n[Lt],r=n[ro],o=!!(t===0&&a&16);if(o||=!!(a&64&&t===0),o||=!!(a&1024),o||=!!(r?.dirty&&Ju(r)),o||=false,r&&(r.dirty=false),n[Lt]&=-9217,o)d7(i,n,i.template,n[Xi]);else if(a&8192){let s=Rt(null);try{SR(n),NR(n,1);let l=i.components;l!==null&&ER(n,l,1),_R(n)}finally{Rt(s)}}}function ER(n,t,e){for(let i=0;i<t.length;i++)u7(n,t[i],e)}function p7(n,t){let e=n.hostBindingOpCodes;if(e!==null)try{for(let i=0;i<e.length;i++){let a=e[i];if(a<0)ld(~a);else{let r=a,o=e[++i],s=e[++i];mD(o,r);let l=t[r];fi(ri.HostBindingsUpdateStart,l);try{s(2,l)}finally{fi(ri.HostBindingsUpdateEnd,l)}}}}finally{ld(-1)}}function mI(n,t){let e=Ow()?64:1088;for(n[ps].changeDetectionScheduler?.notify(t);n;){n[Lt]|=e;let i=Hl(n);if(pp(n)&&!i)return n;n=i}return null}function TR(n,t,e,i){return[n,true,0,t,null,i,null,e,null,null]}function kR(n,t){let e=Ei+t;if(e<n.length)return n[e]}function ng(n,t,e,i=true){let a=t[ft];if(h7(a,t,n,e),i){let o=fN(e,n),s=t[di],l=s.parentNode(n[Dm]);l!==null&&T6(a,n[Ya],s,t,l,o)}let r=t[Tm];r!==null&&r.firstChild!==null&&(r.firstChild=null)}function MR(n,t){let e=$f(n,t);return e!==void 0&&u_(e[ft],e),e}function $f(n,t){if(n.length<=Ei)return;let e=Ei+t,i=n[e];if(i){let a=i[sd];a!==null&&a!==n&&tI(a,i),t>0&&(n[e-1][Ao]=i[Ao]);let r=Rf(n,Ei+t);E6(i[ft],i);let o=r[Hs];o!==null&&o.detachView(r[ft]),i[ra]=null,i[Ao]=null,i[Lt]&=-129}return i}function h7(n,t,e,i){let a=Ei+i,r=e.length;i>0&&(e[a-1][Ao]=t),i<r-Ei?(t[Ao]=e[a],pw(e,Ei+i,t)):(e.push(t),t[Ao]=null),t[ra]=e;let o=t[sd];o!==null&&e!==o&&DR(o,t);let s=t[Hs];s!==null&&s.insertView(n),Cv(t),t[Lt]|=128}function DR(n,t){let e=n[Am],i=t[ra];if(Gl(i))n[Lt]|=2;else{let a=i[ra][or];t[or]!==a&&(n[Lt]|=2)}e===null?n[Am]=[t]:e.push(t)}var ud=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,e=t[ft];return Gf(e,t,e.firstChild,[])}constructor(t,e){this._lView=t,this._cdRefInjectingView=e}get context(){return this._lView[Xi]}set context(t){this._lView[Xi]=t}get destroyed(){return Rm(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ra];if(sr(t)){let e=t[Ff],i=e?e.indexOf(this):-1;i>-1&&($f(t,i),Rf(e,i))}this._attachedToViewContainer=false}u_(this._lView[ft],this._lView)}onDestroy(t){Sv(this._lView,t)}markForCheck(){mI(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[Lt]&=-129}reattach(){Cv(this._lView),this._lView[Lt]|=128}detectChanges(){this._lView[Lt]|=1024,wR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new rt(902,false);this._attachedToViewContainer=true}detachFromAppRef(){this._appRef=null;let t=pp(this._lView),e=this._lView[sd];e!==null&&!t&&tI(e,this._lView),oR(this._lView[ft],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new rt(902,false);this._appRef=t;let e=pp(this._lView),i=this._lView[sd];i!==null&&!e&&DR(i,this._lView),Cv(this._lView)}};function uI(n){return hp(n._lView)||!!(n._lView[Lt]&64)}function pI(n){xv(n._lView)}var Da=(()=>{class n{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=f7;constructor(e,i,a){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=a}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,a){let r=tg(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:a});return new ud(r)}}return n})();function f7(){return g_(oa(),_t())}function g_(n,t){return n.type&4?new Da(t,n,Ep(n,t)):null}function Hm(n,t,e,i,a){let r=n.data[t];if(r===null)r=g7(n,t,e,i,a),dD()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=i,r.attrs=a;let o=oD();r.injectorIndex=o===null?-1:o.injectorIndex}return Pm(r,true),r}function g7(n,t,e,i,a){let r=Dw(),o=Aw(),s=o?r:r&&r.parent,l=n.data[t]=y7(n,s,e,t,i,a);return b7(n,l,r,o),l}function b7(n,t,e,i){n.firstChild===null&&(n.firstChild=t),e!==null&&(i?e.child==null&&t.parent!==null&&(e.child=t):e.next===null&&(e.next=t,t.prev=e))}function y7(n,t,e,i,a,r){let o=t?t.injectorIndex:-1,s=0;return Tw()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:s,providerIndexes:0,value:a,namespace:Lw(),attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function v7(n){let t=n[xw]??[],i=n[ra][di],a=[];for(let r of t)r.data[FA]!==void 0?a.push(r):_7(r,i);n[xw]=a}function _7(n,t){let e=0,i=n.firstChild;if(i){let a=n.data[PA];for(;e<a;){let r=i.nextSibling;KA(t,i,false),i=r,e++}}}var x7=()=>null;var C7=()=>null;function Jv(n,t){return x7(n,t)}function AR(n,t,e){return C7(n,t,e)}var RR=class{};var ha=class{};var pn=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>S7()};function S7(){let n=_t(),t=oa(),e=Ro(t.index,n);return(Gl(e)?e:n)[di]}var OR=(()=>{class n{static \u0275prov=We({token:n,providedIn:"root",factory:()=>null})}return n})();function PR(n){return n.debugInfo?.className||n.type.name||null}var Uv={};var qv=class{injector;parentInjector;constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){let a=this.injector.get(t,Uv,i);return a!==Uv||e===Uv?a:this.parentInjector.get(t,e,i)}};function hI(n,t,e){return n[t]=e}function w7(n,t){return n[t]}function Br(n,t,e){if(e===lr)return false;let i=n[t];return Object.is(i,e)?false:(n[t]=e,true)}function FR(n,t,e,i){let a=Br(n,t,e);return Br(n,t+1,i)||a}function Vm(n,t,e){return function i(a){let r=i.__ngNativeEl__;r!==void 0&&xU(a,r);let o=Gs(n)?Ro(n.index,t):t;mI(o,5);let s=t[Xi],l=JD(t,s,e,a),c=i.__ngNextListenerFn__;for(;c;)l=JD(t,s,c,a)&&l,c=c.__ngNextListenerFn__;return l}}function JD(n,t,e,i){let a=Rt(null);try{return fi(ri.OutputStart,t,e),e(i)!==false}catch(r){return X6(n,r),false}finally{fi(ri.OutputEnd,t,e),Rt(a)}}function fI(n,t,e,i,a,r,o,s){let l=up(n),c=false,d=null;if(!i&&l&&(d=I7(t,e,r,n.index)),d!==null){let m=d.__ngLastListenerFn__||d;m.__ngNextListenerFn__=o,d.__ngLastListenerFn__=o,c=true}else{let m=Vr(n,e),b=i?i(m):m;SU(e,b,r,s),i||(s.__ngNativeEl__=m);let u=a.listen(b,r,s);if(!N7(r)){let f=i?g=>i(Ga(g[n.index])):n.index;LR(f,t,e,r,s,u,false)}}return c}function N7(n){return n.startsWith("animation")||n.startsWith("transition")}function I7(n,t,e,i){let a=n.cleanup;if(a!=null)for(let r=0;r<a.length-1;r+=2){let o=a[r];if(o===e&&a[r+1]===i){let s=t[cp],l=a[r+2];return s&&s.length>l?s[l]:null}typeof o=="string"&&(r+=2)}return null}function LR(n,t,e,i,a,r,o){let s=t.firstCreatePass?Iw(t):null,l=Nw(e),c=l.length;l.push(a,r),s&&s.push(i,n,c,(c+1)*(o?-1:1))}function qD(n,t,e,i,a){let r=null,o=null,s=null,l=false,c=n.directiveToIndex.get(e.type);if(typeof c=="number"?r=c:[r,o,s]=c,o!==null&&s!==null&&n.hostDirectiveOutputs&&Object.hasOwn(n.hostDirectiveOutputs,i)){let d=n.hostDirectiveOutputs[i];for(let m=0;m<d.length;m+=2){let b=d[m];if(b>=o&&b<=s)l=true,Kv(n,t,b,d[m+1],i,a);else if(b>s)break}}return Object.hasOwn(e.outputs,i)&&(l=true,Kv(n,t,r,i,i,a)),l}function Kv(n,t,e,i,a,r){let o=t[e],s=t[ft],c=s.data[e].outputs[i],m=o[c].subscribe(r);LR(n.index,s,t,a,r,m,true)}function Ht(){E7()}function E7(){let n=_t(),t=mi(),e=oa();if(t.firstCreatePass&&k7(t,e),e.controlDirectiveIndex===-1)return;Zs("NgSignalForms");let i=n[e.controlDirectiveIndex];t.data[e.controlDirectiveIndex].controlDef.create(i,new Xv(n,t,e))}function Yt(){T7()}function T7(){let n=_t(),t=mi(),e=cd();if(e.controlDirectiveIndex===-1)return;let i=t.data[e.controlDirectiveIndex].controlDef,a=n[e.controlDirectiveIndex];i.update(a,new Xv(n,t,e))}var Xv=class{lView;tView;tNode;hasPassThrough;constructor(t,e,i){this.lView=t,this.tView=e,this.tNode=i,this.hasPassThrough=!!(i.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return Vr(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,e){let i=this.tView.data[this.tNode.customControlIndex];qD(this.tNode,this.lView,i,t,Vm(this.tNode,this.lView,e))}listenToCustomControlModel(t){let e=this.tNode.flags&1024?"valueChange":"checkedChange",i=this.tView.data[this.tNode.customControlIndex];qD(this.tNode,this.lView,i,e,Vm(this.tNode,this.lView,t))}listenToDom(t,e){fI(this.tNode,this.tView,this.lView,void 0,this.lView[di],t,e,Vm(this.tNode,this.lView,e))}setInputOnDirectives(t,e,i){let a=this.tNode.inputs?.[t],r=this.tNode.hostDirectiveInputs?.[t];if(!a&&!r)return false;let o=false;if(a)for(let s of a){if(s===this.tNode.controlDirectiveIndex)continue;let l=this.lView[s],c=this.tView.data[s];(!i||i(XD(l,c,t)))&&(jm(c,l,t,e),o=true)}if(r)for(let s=0;s<r.length;s+=2){let l=r[s];if(l===this.tNode.controlDirectiveIndex)continue;let c=this.lView[l],d=r[s+1],m=this.tView.data[l];(!i||i(XD(c,m,t)))&&(jm(m,c,d,e),o=true)}return o}setCustomControlModelInput(t){let e=this.tView.data[this.tNode.customControlIndex],i=this.tNode.flags&1024?"value":"checked";Q6(this.tNode,this.tView,this.lView,e,i,t)}customControlHasInput(t){if(this.tNode.customControlIndex===-1)return false;let e=this.tView.data[this.tNode.customControlIndex];return(e.signalFormsInputPresence??=this._buildCustomControlInputCache(e))[t]===true}_buildCustomControlInputCache(t){let e={};for(let i in t.inputs)e[i]=true;if(t.hostDirectives!==null){let i=[...t.hostDirectives];for(;i.length>0;){let a=i.shift();if(typeof a!="function"){for(let o in a.inputs)e[a.inputs[o]]=true;let r=KD(a.directive);r!==null&&i.push(...r);continue}for(let r of a()){if(typeof r=="function")continue;if(r.inputs)for(let s=0;s<r.inputs.length;s+=2){let l=r.inputs[s+1]||r.inputs[s];e[l]=true}let o=KD(r.directive);o!==null&&i.push(...o)}}}return e}};function KD(n){return typeof n=="function"&&"\u0275dir"in n?n.\u0275dir.hostDirectives??null:null}function XD(n,t,e){if(!t.inputs||!Object.hasOwn(t.inputs,e))return;let[i,a]=t.inputs[e];if((a&Zf.SignalBased)!==0){let o=n[i][pa];return o.value===o_?void 0:o.value}return n[i]}function k7(n,t,e){for(let a=t.directiveStart;a<t.directiveEnd;a++)if(n.data[a].controlDef){t.controlDirectiveIndex=a;break}if(t.controlDirectiveIndex===-1)return;let i=n.data[t.controlDirectiveIndex].controlDef;if(i.passThroughInput&&(t.inputs?.[i.passThroughInput]?.length??0)>1){t.flags|=4096;return}M7(n,t)}function M7(n,t){for(let e=t.directiveStart;e<t.directiveEnd;e++){let i=n.data[e];if(!(t.directiveToIndex&&!t.directiveToIndex.has(i.type))){if(QD(i,"value")){t.flags|=1024,t.customControlIndex=e;return}if(QD(i,"checked")){t.flags|=2048,t.customControlIndex=e;return}}}if(t.hostDirectiveInputs!==null&&t.hostDirectiveOutputs!==null&&t.directiveToIndex!==null){let e=(i,a)=>{let r=t.hostDirectiveInputs[i],o=t.hostDirectiveOutputs[i+"Change"];if(!r||!o)return false;for(let s=0;s<r.length;s+=2){let l=r[s];for(let c=0;c<o.length;c+=2){let d=o[c];if(l===d)for(let m of t.directiveToIndex.values()){if(!Array.isArray(m))continue;let[b,u,f]=m;if(l>=u&&l<=f)return t.flags|=a,t.customControlIndex=b,true}}}return false};if(e("value",1024)||e("checked",2048))return}}function QD(n,t){return D7(n,t)&&A7(n,t+"Change")}function D7(n,t){return t in n.inputs}function A7(n,t){return t in n.outputs}var bN=Symbol("BINDING");var Ym=new be("");function Qv(n,t,e){let i=e?n.styles:null,a=e?n.classes:null,r=0;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];if(typeof s=="number")r=s;else if(r==1)a=ov(a,s);else if(r==2){let l=s,c=t[++o];i=ov(i,l+": "+c+";")}}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=a:n.classesWithoutHost=a}function X(n,t=0){let e=_t();if(e===null)return qe(n,t);let i=oa();return NA(i,e,Ha(n),t)}function ig(){let n="invalid";throw new Error(n)}function VR(n,t,e,i,a){let r=i===null?null:{"":-1},o=a(n,e);if(o!==null){let s=o,l=null,c=null;for(let d of o)if(d.resolveHostDirectives!==null){[s,l,c]=d.resolveHostDirectives(o);break}P7(n,t,e,s,r,l,c)}r!==null&&i!==null&&R7(e,i,r)}function R7(n,t,e){let i=n.localNames=[];for(let a=0;a<t.length;a+=2){let r=e[t[a+1]];if(r==null)throw new rt(-301,false);i.push(t[a],r)}}function O7(n,t,e){t.componentOffset=e,(n.components??=[]).push(t.index)}function P7(n,t,e,i,a,r,o){let s=i.length,l=null;for(let b=0;b<s;b++){let u=i[b];l===null&&$s(u)&&(l=u,O7(n,e,b)),tN(Wv(e,t),n,u.type)}z7(e,n.data.length,s),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let b=0;b<s;b++){let u=i[b];u.providersResolver&&u.providersResolver(u)}let c=false,d=false,m=uR(n,t,s,null);s>0&&(e.directiveToIndex=new Map);for(let b=0;b<s;b++){let u=i[b];if(e.mergedAttrs=Cp(e.mergedAttrs,u.hostAttrs),L7(n,e,t,m,u),j7(m,u,a),o!==null&&o.has(u)){let[g,x]=o.get(u);e.directiveToIndex.set(u.type,[m,g+e.directiveStart,x+e.directiveStart])}else(r===null||!r.has(u))&&e.directiveToIndex.set(u.type,m);u.contentQueries!==null&&(e.flags|=4),(u.hostBindings!==null||u.hostAttrs!==null||u.hostVars!==0)&&(e.flags|=64);let f=u.type.prototype;!c&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((n.preOrderHooks??=[]).push(e.index),c=true),!d&&(f.ngOnChanges||f.ngDoCheck)&&((n.preOrderCheckHooks??=[]).push(e.index),d=true),m++}F7(n,e,r)}function F7(n,t,e){for(let i=t.directiveStart;i<t.directiveEnd;i++){let a=n.data[i];if(e===null||!e.has(a))ZD(0,t,a,i),ZD(1,t,a,i),tA(t,i,false);else{let r=e.get(a);eA(0,t,r,i),eA(1,t,r,i),tA(t,i,true)}}}function ZD(n,t,e,i){let a=n===0?e.inputs:e.outputs;for(let r in a)if(Object.hasOwn(a,r)){let o;n===0?o=t.inputs??={}:o=t.outputs??={},o[r]??=[],o[r].push(i),BR(t,r)}}function eA(n,t,e,i){let a=n===0?e.inputs:e.outputs;for(let r in a)if(Object.hasOwn(a,r)){let o=a[r],s;n===0?s=t.hostDirectiveInputs??={}:s=t.hostDirectiveOutputs??={},s[o]??=[],s[o].push(i,r),BR(t,o)}}function BR(n,t){t==="class"?n.flags|=8:t==="style"&&(n.flags|=16)}function tA(n,t,e){let{attrs:i,inputs:a,hostDirectiveInputs:r}=n;if(i===null||!e&&a===null||e&&r===null||JN(n)){n.initialInputs??=[],n.initialInputs.push(null);return}let o=null,s=0;for(;s<i.length;){let l=i[s];if(l===0){s+=4;continue}else if(l===5){s+=2;continue}else if(typeof l=="number")break;if(!e&&Object.hasOwn(a,l)){let c=a[l];for(let d of c)if(d===t){o??=[],o.push(l,i[s+1]);break}}else if(e&&Object.hasOwn(r,l)){let c=r[l];for(let d=0;d<c.length;d+=2)if(c[d]===t){o??=[],o.push(c[d+1],i[s+1]);break}}s+=2}n.initialInputs??=[],n.initialInputs.push(o)}function L7(n,t,e,i,a){n.data[i]=a;let r=a.factory||(a.factory=td(a.type,true)),o=new Bm(r,$s(a),X,null);n.blueprint[i]=o,e[i]=o,V7(n,t,i,uR(n,e,a.hostVars,lr),a)}function V7(n,t,e,i,a){let r=a.hostBindings;if(r){let o=n.hostBindingOpCodes;o===null&&(o=n.hostBindingOpCodes=[]);let s=~t.index;B7(o)!=s&&o.push(s),o.push(e,i,r)}}function B7(n){let t=n.length;for(;t>0;){let e=n[--t];if(typeof e=="number"&&e<0)return e}return 0}function j7(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;$s(t)&&(e[""]=n)}}function z7(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}function gI(n,t,e,i,a,r,o,s){let l=t[ft],c=l.consts,d=oo(c,o),m=Hm(l,n,e,i,d);return r&&VR(l,t,m,oo(c,s),a),m.mergedAttrs=Cp(m.mergedAttrs,m.attrs),m.attrs!==null&&Qv(m,m.attrs,false),m.mergedAttrs!==null&&Qv(m,m.mergedAttrs,true),l.queries!==null&&l.queries.elementStart(l,m),m}function bI(n,t){gA(n,t),Cw(t)&&n.queries.elementEnd(t)}function U7(n,t,e,i,a,r){let o=t.consts,s=oo(o,a),l=Hm(t,n,e,i,s);if(l.mergedAttrs=Cp(l.mergedAttrs,l.attrs),r!=null){let c=oo(o,r);l.localNames=[];for(let d=0;d<c.length;d+=2)l.localNames.push(c[d],-1)}return l.attrs!==null&&Qv(l,l.attrs,false),l.mergedAttrs!==null&&Qv(l,l.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,l),l}var jR=typeof ShadowRoot<"u";var H7=typeof Document<"u";function Y7(n){return Object.keys(n).map(t=>{let[e,i,a]=n[t],r={propName:e,templateName:t,isSignal:(i&Zf.SignalBased)!==0};return a&&(r.transform=a),r})}function G7(n){return Object.keys(n).map(t=>({propName:n[t],templateName:t}))}function $7(n,t,e){let i=t instanceof $i?t:t?.injector;return i&&n.getStandaloneInjector!==null&&(i=n.getStandaloneInjector(i)||i),i?new qv(e,i):e}function W7(n){let t=n.get(ha,null);if(t===null)throw new rt(407,false);let e=n.get(OR,null),i=n.get(ao,null),a=n.get(Po,null,{optional:true});return{rendererFactory:t,sanitizer:e,changeDetectionScheduler:i,ngReflect:false,tracingService:a}}function J7(n,t,e){let i=zR(n);return JA(t,i,i==="svg"?Nm:i==="math"?gv:e)}function q7(n){if((n&&"localName"in n&&typeof n.localName=="string"?n.localName:n?.tagName)?.toLowerCase()==="script")throw new rt(905,false)}function zR(n){return(n.selectors[0][0]||"div").toLowerCase()}var zm=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Y7(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=G7(this.componentDef.outputs),this.cachedOutputs}constructor(t,e){this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=u6(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!e}create(t,e,i,a,r,o,s,l){fi(ri.DynamicComponentStart);let c=Rt(null);try{let d=this.componentDef,m=$7(d,a||this.ngModule,t),b=W7(m),u=b.tracingService;return u&&u.componentCreate?u.componentCreate(PR(d),()=>this.createComponentRef(b,m,e,i,r,o,s,l)):this.createComponentRef(b,m,e,i,r,o,s,l)}finally{Rt(c)}}createComponentRef(t,e,i,a,r,o,s,l){let c=this.componentDef,d=K7(a,c,o,r,l),m=t.rendererFactory.createRenderer(null,c),b=a?U6(m,a,c.encapsulation,e):J7(c,m,s??null);q7(b);let u=e.get(Ym,null),f=X7(b,()=>e.get(gt,null)??BN());u&&u.addHost(f);let g=o?.some(nA)||r?.some(C=>typeof C!="function"&&C.bindings.some(nA)),x=rI(null,d,null,512|mR(c),null,null,t,m,e,null,BA(b,e,true));u&&jR&&f instanceof ShadowRoot&&Sv(x,()=>{u.removeHost(f)}),x[Ii]=b,Tv(x);let w=null;try{let C=gI(Ii,x,2,"#host",()=>d.directiveRegistry,true,0);XA(m,b,C),Sp(b,x),h_(d,x,C),jN(d,C,x),bI(d,C),i!==void 0&&Z7(C,this.ngContentSelectors,i),w=Ro(C.index,x),x[Xi]=w[Xi],dI(d,x,null)}catch(C){throw w!==null&&iN(w),iN(x),C}finally{fi(ri.DynamicComponentEnd),kv()}return new Zv(this.componentType,x,!!g)}};function K7(n,t,e,i,a){let r=n?["ng-version","22.2.0"]:p6(t.selectors[0]),o=null,s=null,l=0;if(e)for(let m of e)l+=m[bN].requiredVars,m.create&&(m.targetIdx=0,(o??=[]).push(m)),m.update&&(m.targetIdx=0,(s??=[]).push(m));if(i)for(let m=0;m<i.length;m++){let b=i[m];if(typeof b!="function")for(let u of b.bindings){l+=u[bN].requiredVars;let f=m+1;u.create&&(u.targetIdx=f,(o??=[]).push(u)),u.update&&(u.targetIdx=f,(s??=[]).push(u))}}let c=[t];if(i)for(let m of i){let b=typeof m=="function"?m:m.type,u=cv(b);c.push(u)}return aI(0,null,Q7(o,s),1,l,c,null,null,null,[r],null)}function X7(n,t){let e=n.getRootNode?.();return H7&&e instanceof Document?e.head:e&&jR&&e instanceof ShadowRoot?e:t().head}function Q7(n,t){return!n&&!t?null:e=>{if(e&1&&n)for(let i of n)i.create();if(e&2&&t)for(let i of t)i.update()}}function nA(n){let t=n[bN].kind;return t==="input"||t==="twoWay"}var Zv=class extends RR{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=bv(e[ft],Ii),this.location=Ep(this._tNode,e),this.instance=Ro(this._tNode.index,e)[Xi],this.hostView=this.changeDetectorRef=new ud(e,void 0),this.componentType=t}setInput(t,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let a=this._rootLView,r=f_(i,a[ft],a,t,e);this.previousInputValues.set(t,e);let o=Ro(i.index,a);mI(o,1)}get injector(){return new Jl(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Z7(n,t,e){let i=n.projection=[];for(let a=0;a<t.length;a++){let r=e[a];i.push(r!=null&&r.length?Array.from(r):null)}}var Qi=(()=>{class n{static __NG_ELEMENT_ID__=eH}return n})();function eH(){let n=oa();return UR(n,_t())}var yN=class n extends Qi{_lContainer;_hostTNode;_hostLView;constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Ep(this._hostTNode,this._hostLView)}get injector(){return new Jl(this._hostTNode,this._hostLView)}get parentInjector(){let t=PN(this._hostTNode,this._hostLView);if(vA(t)){let e=Gv(t,this._hostLView),i=Yv(t),a=e[ft].data[i+8];return new Jl(a,e)}else return new Jl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let e=iA(this._lContainer);return e!==null&&e[t]||null}get length(){return this._lContainer.length-Ei}createEmbeddedView(t,e,i){let a,r,o;typeof i=="number"?a=i:i!=null&&(a=i.index,r=i.injector,o=i.onError);let s=Jv(this._lContainer,t.ssrId),l=t.createEmbeddedViewImpl(e||{},r,s);return o&&(l._lView[mp]=o),this.insertImpl(l,a,wp(this._hostTNode,s)),l}createComponent(t,e,i,a,r,o,s){let l,c,d=e||{};l=d.index,i=d.injector,a=d.projectableNodes,r=d.environmentInjector||d.ngModuleRef,o=d.directives,s=d.bindings,c=d.onError;let m=new zm(Yl(t)),b=i||this.parentInjector;if(!r&&m.ngModule==null){let C=this.parentInjector.get($i,null);C&&(r=C)}let u=Yl(m.componentType??{}),f=Jv(this._lContainer,u?.id??null),g=f?.firstChild??null,x=m.create(b,a,g,r,o,s,this._getHostElementNamespace());return c&&(x.hostView._lView[mp]=c),this.insertImpl(x.hostView,l,wp(this._hostTNode,f)),x}_getHostElementNamespace(){if(this._hostTNode.type&2){let t=this._hostTNode.parent??this._hostLView[Ya];return t!==null&&t.type&2&&typeof t.value=="string"&&t.value.toLowerCase()==="foreignobject"?null:t?.namespace??null}return this._hostTNode.namespace}insert(t,e){return this.insertImpl(t,e,true)}insertImpl(t,e,i){let a=t._lView;if(eD(a)){let s=this.indexOf(t);if(s!==-1)this.detach(s);else{let l=a[ra],c=new n(l,l[Ya],l[ra]);c.detach(c.indexOf(t))}}let r=this._adjustIndex(e),o=this._lContainer;return ng(o,a,r,i),t.attachToViewContainerRef(),pw($w(o),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){let e=iA(this._lContainer);return e!==null?e.indexOf(t):-1}remove(t){let e=this._adjustIndex(t,-1),i=$f(this._lContainer,e);i&&(Rf($w(this._lContainer),e),u_(i[ft],i))}detach(t){let e=this._adjustIndex(t,-1),i=$f(this._lContainer,e);return i&&Rf($w(this._lContainer),e)!=null?new ud(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function iA(n){return n[Ff]}function $w(n){return n[Ff]||(n[Ff]=[])}function UR(n,t){let e,i=t[n.index];return sr(i)?e=i:(e=TR(i,t,null,n),t[n.index]=e,oI(t,e)),nH(e,t,n,i),new yN(e,n,t)}function tH(n,t){let e=n[di],i=e.createComment(""),a=Vr(t,n),r=e.parentNode(a);return Lm(e,r,i,e.nextSibling(a),false),i}var nH=rH;var iH=()=>false;function aH(n,t,e){return iH(n,t,e)}function rH(n,t,e,i){if(n[Dm])return;let a;e.type&8?a=Ga(i):a=tH(t,e),n[Dm]=a}var vN=class n{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new n(this.queryList)}setDirty(){this.queryList.setDirty()}};var _N=class n{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let e=t.queries;if(e!==null){let i=t.contentQueries!==null?t.contentQueries[0]:e.length,a=[];for(let r=0;r<i;r++){let o=e.getByIndex(r),s=this.queries[o.indexInDeclarationView];a.push(s.clone())}return new n(a)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)vI(t,e).matches!==null&&this.queries[e].setDirty()}};var e_=class{flags;read;predicate;constructor(t,e,i=null){this.flags=e,this.read=i,typeof t=="string"?this.predicate=dH(t):this.predicate=t}};var xN=class n{queries;constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){let a=e!==null?e.length:0,r=this.getByIndex(i).embeddedTView(t,a);r&&(r.indexInDeclarationView=i,e!==null?e.push(r):e=[r])}return e!==null?new n(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}};var CN=class n{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,e=-1){this.metadata=t,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,e),new n(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let e=this._declarationNodeIndex,i=t.parent;for(;i!==null&&i.type&8&&i.index!==e;)i=i.parent;return e===(i!==null?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){let i=this.metadata.predicate;if(Array.isArray(i))for(let a=0;a<i.length;a++){let r=i[a];this.matchTNodeWithReadOption(t,e,oH(e,r)),this.matchTNodeWithReadOption(t,e,zv(e,t,r,false,false))}else i===Da?e.type&4&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,zv(e,t,i,false,false))}matchTNodeWithReadOption(t,e,i){if(i!==null){let a=this.metadata.read;if(a!==null)if(a===Ue||a===Qi||a===st||a===Da&&e.type&4)this.addMatch(e.index,-2);else{let r=zv(e,t,a,false,false);r!==null&&this.addMatch(e.index,r)}else this.addMatch(e.index,i)}}addMatch(t,e){this.matches===null?this.matches=[t,e]:this.matches.push(t,e)}};function oH(n,t){let e=n.localNames;if(e!==null){for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1]}return null}function sH(n,t){return n.type&11?Ep(n,t):n.type&4?g_(n,t):null}function lH(n,t,e,i){return e===-1?sH(t,n):e===-2?cH(n,t,i):Hf(n,n[ft],e,t)}function cH(n,t,e){if(e===Ue)return Ep(t,n);if(e===Da)return g_(t,n);if(e===Qi)return UR(t,n);if(e===st)return new Jl(t,n)}function HR(n,t,e,i){let a=t[Hs].queries[i];if(a.matches===null){let r=n.data,o=e.matches,s=[];for(let l=0;o!==null&&l<o.length;l+=2){let c=o[l];if(c<0)s.push(null);else{let d=r[c];s.push(lH(t,d,o[l+1],e.metadata.read))}}a.matches=s}return a.matches}function SN(n,t,e,i){let a=n.queries.getByIndex(e),r=a.matches;if(r!==null){let o=HR(n,t,a,e);for(let s=0;s<r.length;s+=2){let l=r[s];if(l>0)i.push(o[s/2]);else{let c=r[s+1],d=t[-l];for(let m=Ei;m<d.length;m++){let b=d[m];b[sd]===b[ra]&&SN(b[ft],b,c,i)}if(d[Am]!==null){let m=d[Am];for(let b=0;b<m.length;b++){let u=m[b];SN(u[ft],u,c,i)}}}}}return i}function yI(n,t){return n[Hs].queries[t].queryList}function YR(n,t,e){let i=new lo((e&4)===4);return iD(n,t,i,i.destroy),(t[Hs]??=new _N).queries.push(new vN(i))-1}function GR(n,t,e){let i=mi();return i.firstCreatePass&&(WR(i,new e_(n,t,e),-1),(t&2)===2&&(i.staticViewQueries=true)),YR(i,_t(),t)}function $R(n,t,e,i){let a=mi();if(a.firstCreatePass){let r=oa();WR(a,new e_(t,e,i),r.index),mH(a,n),(e&2)===2&&(a.staticContentQueries=true)}return YR(a,_t(),e)}function dH(n){return n.split(",").map(t=>t.trim())}function WR(n,t,e){n.queries===null&&(n.queries=new xN),n.queries.track(new CN(t,e))}function mH(n,t){let e=n.contentQueries||(n.contentQueries=[]),i=e.length?e[e.length-1]:-1;t!==i&&e.push(n.queries.length-1,t)}function vI(n,t){return n.queries.getByIndex(t)}function JR(n,t){let e=n[ft],i=vI(e,t);return i.crossesNgTemplate?SN(e,n,t,[]):HR(e,n,i,t)}function qR(n,t,e){let i,a=bf(()=>{i._dirtyCounter();let r=uH(i,n);if(t&&r===void 0)throw new rt(-951,false);return r});return i=a[pa],i._dirtyCounter=xt(0),i._flatValue=void 0,a}function _I(n){return qR(true,false,n)}function xI(n){return qR(true,true,n)}function KR(n,t){let e=n[pa];e._lView=_t(),e._queryIndex=t,e._queryList=yI(e._lView,t),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function uH(n,t){let e=n._lView,i=n._queryIndex;if(e===void 0||i===void 0||e[Lt]&4)return t?void 0:ar;let a=yI(e,i),r=JR(e,i);return a.reset(r,kA),t?a.first:a._changesDetected||n._flatValue===void 0?n._flatValue=a.toArray():n._flatValue}function pd(n){return!!n&&typeof n.then=="function"}function b_(n){return!!n&&typeof n.subscribe=="function"}var Xs=class{};var XR=class{};var Wf=class extends Xs{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,e,i,a=true){super(),this.ngModuleType=t,this._parent=e;let r=VM(t);this._bootstrapComponents=t6(r.bootstrap),this._r3Injector=Vw(t,e,[{provide:Xs,useValue:this},...i],Mf(t),new Set(["environment"])),a&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}};var t_=class extends XR{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Wf(this.moduleType,t,[])}};function QR(n,t,e){return new Wf(n,t,e,false)}var n_=class extends Xs{injector;instance=null;constructor(t){super();let e=new wm([...t.providers,{provide:Xs,useValue:this}],t.parent||sp(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function ZR(n,t,e=null){return new n_({providers:n,parent:t,debugName:e,runEnvironmentInitializers:true}).injector}var pH=(()=>{class n{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=fw(false,e.type),a=i.length>0?ZR([i],this._injector,""):null;this.cachedInjectors.set(e,a)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=We({token:n,providedIn:"environment",factory:()=>new n(qe($i))})}return n})();function fe(n){return qf(()=>{let t=eO(n),e=Je(Y({},t),{decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection!==LN.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&n.dependencies||null,getStandaloneInjector:t.standalone?a=>a.get(pH).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:n.signals??false,data:n.data||{},encapsulation:n.encapsulation||ys.Emulated,styles:n.styles||ar,_:null,schemas:n.schemas||null,tView:null,id:""});t.standalone&&Zs("NgStandalone"),tO(e);let i=n.dependencies;return e.directiveDefs=aA(i,hH),e.pipeDefs=aA(i,BM),e.id=bH(e),e})}function hH(n){return Yl(n)||cv(n)}function Ye(n){return qf(()=>({type:n.type,bootstrap:n.bootstrap||ar,declarations:n.declarations||ar,imports:n.imports||ar,exports:n.exports||ar,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function fH(n,t){if(n==null)return id;let e={};for(let i in n)if(Object.hasOwn(n,i)){let a=n[i],r,o,s,l;Array.isArray(a)?(s=a[0],r=a[1],o=a[2]??r,l=a[3]||null):(r=a,o=a,s=Zf.None,l=null),e[r]=[i,s,l],t[r]=o}return e}function gH(n){if(n==null)return id;let t={};for(let e in n)Object.hasOwn(n,e)&&(t[n[e]]=e);return t}function Be(n){return qf(()=>{let t=eO(n);return tO(t),t})}function jr(n){return{type:n.type,name:n.name,factory:null,pure:n.pure!==false,standalone:n.standalone??true,onDestroy:n.type.prototype.ngOnDestroy||null}}function eO(n){let t={};return{type:n.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputConfig:n.inputs||id,exportAs:n.exportAs||null,standalone:n.standalone??true,signals:n.signals===true,selectors:n.selectors||ar,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:fH(n.inputs,t),outputs:gH(n.outputs),debugInfo:null}}function tO(n){n.features?.forEach(t=>t(n))}function aA(n,t){return n?()=>{let e=typeof n=="function"?n():n,i=[];for(let a of e){let r=t(a);r!==null&&i.push(r)}return i}:null}function bH(n){let t=0,e=typeof n.consts=="function"?"":n.consts,i=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,e,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery];for(let r of i.join("|"))t=Math.imul(31,t)+r.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var nO=new be("");var CI=(()=>{class n{resolve;reject;initialized=false;done=false;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=N(nO,{optional:true})??[];injector=N(st);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let a of this.appInits){let r=lp(this.injector,a);if(pd(r))e.push(r);else if(b_(r)){let o=new Promise((s,l)=>{r.subscribe({complete:s,error:l})});e.push(o)}}let i=()=>{this.done=true,this.resolve()};Promise.all(e).then(()=>{i()}).catch(a=>{this.reject(a)}),e.length===0&&i(),this.initialized=true}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function ag(n){return t=>{t.controlDef={create:(e,i)=>{e?.\u0275ngControlCreate(i)},update:(e,i)=>{e?.\u0275ngControlUpdate?.(i)},passThroughInput:n}}}function _H(n){return Object.getPrototypeOf(n.prototype).constructor}function Ke(n){let t=_H(n.type),e=true,i=[n];for(;t&&t!==Function.prototype&&t!==Object.prototype;){let a,r=Object.hasOwn(t,Df)?t[Df]:void 0,o=Object.hasOwn(t,Af)?t[Af]:void 0;if($s(n))a=r??o;else{if(r)throw new rt(903,false);a=o}if(a){if(e){i.push(a);let l=n;l.inputs=Ww(n.inputs),l.declaredInputs=Ww(n.declaredInputs),l.outputs=Ww(n.outputs);let c=a.hostBindings;c&&NH(n,c);let d=a.viewQuery,m=a.contentQueries;if(d&&SH(n,d),m&&wH(n,m),xH(n,a),LM(n.outputs,a.outputs),$s(a)&&a.data.animation){let b=n.data;b.animation=(b.animation||[]).concat(a.data.animation)}}let s=a.features;if(s)for(let l=0;l<s.length;l++){let c=s[l];c&&c.ngInherit&&c(n),c===Ke&&(e=false)}}t=Object.getPrototypeOf(t)}CH(i)}function xH(n,t){for(let e in t.inputs){if(!Object.hasOwn(t.inputs,e)||Object.hasOwn(n.inputs,e))continue;let i=t.inputs[e];i!==void 0&&(n.inputs[e]=i,n.declaredInputs[e]=t.declaredInputs[e])}}function CH(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){let a=n[i];a.hostVars=t+=a.hostVars,a.hostAttrs=Cp(a.hostAttrs,e=Cp(e,a.hostAttrs))}}function Ww(n){return n===id?{}:n===ar?[]:n}function SH(n,t){let e=n.viewQuery;e?n.viewQuery=(i,a)=>{t(i,a),e(i,a)}:n.viewQuery=t}function wH(n,t){let e=n.contentQueries;e?n.contentQueries=(i,a,r)=>{t(i,a,r),e(i,a,r)}:n.contentQueries=t}function NH(n,t){let e=n.hostBindings;e?n.hostBindings=(i,a)=>{t(i,a),e(i,a)}:n.hostBindings=t}function aO(n,t,e,i,a,r,o,s){if(e.firstCreatePass){n.mergedAttrs=Cp(n.mergedAttrs,n.attrs);let d=n.tView=aI(2,n,a,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,n),d.queries=e.queries.embeddedTView(n))}s&&(n.flags|=s),Pm(n,false);let l=EH(e,t,n,i);Mv()&&nI(e,t,l,n),Sp(l,t);let c=TR(l,t,l,n);t[i+Ii]=c,oI(t,c),aH(c,n,t)}function IH(n,t,e,i,a,r,o,s,l,c,d){let m=e+Ii,b;return t.firstCreatePass?(b=Hm(t,m,4,o||null,s||null),wv()&&VR(t,n,b,oo(t.consts,c),sI),gA(t,b)):b=t.data[m],aO(b,n,t,e,i,a,r,l),up(b)&&h_(t,n,b),c!=null&&eg(n,b,d),b}function Np(n,t,e,i,a,r,o,s,l,c,d){let m=e+Ii,b;if(t.firstCreatePass){if(b=Hm(t,m,4,o||null,s||null),c!=null){let u=oo(t.consts,c);b.localNames=[];for(let f=0;f<u.length;f+=2)b.localNames.push(u[f],-1)}}else b=t.data[m];return aO(b,n,t,e,i,a,r,l),c!=null&&eg(n,b,d),b}function cr(n,t,e,i,a,r,o,s){let l=_t(),c=mi(),d=oo(c.consts,r);return IH(l,c,n,t,e,i,a,d,void 0,o,s),cr}function Gm(n,t,e,i,a,r,o,s){let l=_t(),c=mi(),d=oo(c.consts,r);return Np(l,c,n,t,e,i,a,d,void 0,o,s),Gm}var EH=TH;function TH(n,t,e,i){return Bf(true),t[di].createComment("")}var y_=new be("");var Tp=new be("");var wI=new be("USE_PENDING_TASKS",{providedIn:"root",factory:()=>typeof Zone>"u"});var rg=(()=>{class n{_ngZone;registry;_isZoneStable=true;_callbacks=[];_taskTrackingZone=null;_destroyRef;pendingTasksInternal=N($l);_usePendingTasks=N(wI);constructor(e,i,a){this._ngZone=e,this.registry=i,yw()&&(this._destroyRef=N(kn,{optional:true})??void 0),NI||(rO(a),a.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=false}}),i,a;this._ngZone.runOutsideAngular(()=>{this._usePendingTasks&&(i=this.pendingTasksInternal.hasPendingTasksObservable.subscribe(()=>{this.isStable()&&this._ngZone.runOutsideAngular(()=>{this._runCallbacksIfReady()})})),a=this._ngZone.onStable.subscribe({next:()=>{$e.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=true,this._runCallbacksIfReady()})}})}),this._destroyRef?.onDestroy(()=>{e.unsubscribe(),i?.unsubscribe(),a.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks&&(!this._usePendingTasks||!this.pendingTasksInternal.hasPendingTasks)}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(e)?(clearTimeout(i.timeoutId),false):true)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,a){let r=-1;i&&i>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==r),e()},i)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:a})}whenStable(e,i,a){if(a&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,a),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,a){return[]}static \u0275fac=function(i){return new(i||n)(qe($e),qe(og),qe(Tp))};static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})();var og=(()=>{class n{_applications=new Map;registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=true){return NI?.findTestabilityInTree(this,e,i)??null}static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function rO(n){NI=n}var NI;var II=new be("");function oO(){TS(()=>{let n="";throw new rt(-600,n)})}var kH=10;function EI(n,t){return Array.isArray(t)?t.reduce(EI,n):Y(Y({},n),t)}var Wa=(()=>{class n{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=N(Js);afterRenderManager=N(m_);zonelessEnabled=N(gp);rootEffectScheduler=N(Rv);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new Le;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=N($l);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(Ut(e=>!e))}constructor(){N(Po,{optional:true})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:a=>{a&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=N($i);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,a=st.NULL){return this._injector.get($e).run(()=>{if(fi(ri.BootstrapComponentStart),!this._injector.get(CI).done){let w="";throw new rt(405,w)}let s=Yl(e),l=this._injector.get(Xs),c=new zm(s,l);this.componentTypes.push(e);let{hostElement:d,directives:m,bindings:b}=MH(i),u=d||c.selector,f=c.create(a,[],u,l.injector,m,b),g=f.location.nativeElement,x=f.injector.get(y_,null);return x?.registerApplication(g),f.onDestroy(()=>{this.detachView(f.hostView),Uf(this.components,f),x?.unregisterApplication(g)}),this._loadComponent(f),fi(ri.BootstrapComponentEnd,f),f})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){fi(ri.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(d_.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw fi(ri.ChangeDetectionEnd),new rt(101,false);let e=Rt(null);try{this._runningTick=true,this.synchronize()}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Rt(e),this.afterTick.next(),fi(ri.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ha,null,{optional:true}));let e=0;for(;this.dirtyFlags!==0&&e++<kH;){fi(ri.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{fi(ri.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let e=false;if(this.dirtyFlags&7){let i=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:a}of this.allViews){if(!i&&!hp(a))continue;let r=i&&!this.zonelessEnabled?0:1;wR(a,r),e=true}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}e||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:e})=>hp(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Uf(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(a){this.internalErrorHandler(a)}this.components.push(e),this._injector.get(II,[]).forEach(a=>a(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=true,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Uf(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new rt(406,false);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function MH(n){return n===void 0||typeof n=="string"||n instanceof Element?{hostElement:n}:n}function Uf(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Xl(n,t){let e=_t(),i=Ws();if(Br(e,i,t)){let a=mi(),r=cd();if(f_(r,a,e,n,t))Gs(r)&&bR(e,r.index);else{let s=Vr(r,e);yR(e[di],s,null,r.value,n,t,null)}}return Xl}function re(n,t,e,i){let a=_t(),r=Ws();if(Br(a,r,t)){let o=mi(),s=cd();q6(s,a,n,t,e,i)}return re}var NN=class{destroy(t){}updateValue(t,e){}swap(t,e){let i=Math.min(t,e),a=Math.max(t,e),r=this.detach(a);if(a-i>1){let o=this.detach(i);this.attach(i,r),this.attach(a,o)}else this.attach(i,r)}move(t,e){this.attach(e,this.detach(t))}};function Jw(n,t,e,i,a){return n===e&&Object.is(t,i)?1:Object.is(a(n,t),a(e,i))?-1:0}function DH(n,t,e,i){let a,r,o=0,s=n.length-1,l=void 0;if(Array.isArray(t)){Rt(i);let c=t.length-1;for(Rt(null);o<=s&&o<=c;){let d=n.at(o),m=t[o],b=Jw(o,d,o,m,e);if(b!==0){b<0&&n.updateValue(o,m),o++;continue}let u=n.at(s),f=t[c],g=Jw(s,u,c,f,e);if(g!==0){g<0&&n.updateValue(s,f),s--,c--;continue}let x=e(o,d),w=e(s,u),C=e(o,m);if(Object.is(C,w)){let I=e(c,f);Object.is(I,x)?(n.swap(o,s),n.updateValue(s,f),c--,s--):n.move(s,o),n.updateValue(o,m),o++;continue}if(a??=new i_,r??=oA(n,o,s,e),IN(n,a,o,C))n.updateValue(o,m),o++,s++;else if(r.has(C))a.set(x,n.detach(o)),s--;else{let I=n.create(o,t[o]);n.attach(o,I),o++,s++}}for(;o<=c;)rA(n,a,e,o,t[o]),o++}else if(t!=null){Rt(i);let c=t[Symbol.iterator]();Rt(null);let d=c.next();for(;!d.done&&o<=s;){let m=n.at(o),b=d.value,u=Jw(o,m,o,b,e);if(u!==0)u<0&&n.updateValue(o,b),o++,d=c.next();else{a??=new i_,r??=oA(n,o,s,e);let f=e(o,b);if(IN(n,a,o,f))n.updateValue(o,b),o++,s++,d=c.next();else if(!r.has(f))n.attach(o,n.create(o,b)),o++,s++,d=c.next();else{let g=e(o,m);a.set(g,n.detach(o)),s--}}}for(;!d.done;)rA(n,a,e,n.length,d.value),d=c.next()}for(;o<=s;)n.destroy(n.detach(s--));a?.forEach(c=>{n.destroy(c)})}function IN(n,t,e,i){return t!==void 0&&t.has(i)?(n.attach(e,t.get(i)),t.delete(i),true):false}function rA(n,t,e,i,a){if(IN(n,t,i,e(i,a)))n.updateValue(i,a);else{let r=n.create(i,a);n.attach(i,r)}}function oA(n,t,e,i){let a=new Set;for(let r=t;r<=e;r++)a.add(i(r,n.at(r)));return a}var i_=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let i=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let a=this._vMap;for(;a.has(i);)i=a.get(i);a.set(i,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,i]of this.kvMap)if(t(i,e),this._vMap!==void 0){let a=this._vMap;for(;a.has(i);)i=a.get(i),t(i,e)}}};function L(n,t,e,i,a,r,o,s){Zs("NgControlFlow");let l=_t(),c=mi(),d=oo(c.consts,r);return Np(l,c,n,t,e,i,a,d,256,o,s),TI}function TI(n,t,e,i,a,r,o,s){return Zs("NgControlFlow"),AH(n,t,e,i,a,r,o,s),TI}function AH(n,t,e,i,a,r,o,s){let l=_t(),c=mi(),d=oo(c.consts,r);Np(l,c,n,t,e,i,a,d,512,o,s)}function V(n,t){Zs("NgControlFlow");let e=_t(),i=Ws(),a=e[i]!==lr?e[i]:-1,r=a!==-1?a_(e,Ii+a):void 0,o=0;if(Br(e,i,n)){let s=Rt(null);try{if(r!==void 0&&MR(r,o),n!==-1){let l=Ii+n,c=a_(e,l),d=MN(e[ft],l),m=AR(c,d,e),b=tg(e,d,t,{dehydratedView:m});ng(c,b,o,wp(d,m))}}finally{Rt(s)}}else if(r!==void 0){let s=kR(r,o);s!==void 0&&(s[Xi]=t)}}var EN=class{lContainer;$implicit;$index;constructor(t,e,i){this.lContainer=t,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Ei}};function sg(n){return n}function Vn(n,t){return t}var TN=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,e,i){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=i}};function Mt(n,t,e,i,a,r,o,s,l,c,d,m,b){Zs("NgControlFlow");let u=_t(),f=mi(),g=l!==void 0,x=_t(),w=s?o.bind(x[or][Xi]):o,C=new TN(g,w);x[Ii+n]=C,Np(u,f,n+1,t,e,i,a,oo(f.consts,r),256),g&&Np(u,f,n+2,l,c,d,m,oo(f.consts,b),512)}var kN=class extends NN{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,e,i){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Ei}at(t){return this.getLView(t)[Xi].$implicit}attach(t,e){let i=e[Tm];this.needsIndexUpdate||=t!==this.length,ng(this.lContainer,e,t,wp(this.templateTNode,i)),RH(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,OH(this.lContainer,t),PH(this.lContainer,t)}create(t,e){let i=Jv(this.lContainer,this.templateTNode.tView.ssrId);return tg(this.hostLView,this.templateTNode,new EN(this.lContainer,e,t),{dehydratedView:i})}destroy(t){u_(t[ft],t)}updateValue(t,e){this.getLView(t)[Xi].$implicit=e}reset(){this.needsIndexUpdate=false}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Xi].$index=t}getLView(t){return FH(this.lContainer,t)}};function Dt(n){let t=Rt(null),e=fs();try{let i=_t(),a=i[ft],r=i[e],o=e+1,s=a_(i,o);if(r.liveCollection===void 0){let c=MN(a,o);r.liveCollection=new kN(s,i,c)}else r.liveCollection.reset();let l=r.liveCollection;if(DH(l,n,r.trackByFn,t),l.updateIndexes(),r.hasEmptyBlock){let c=Ws(),d=l.length===0;if(Br(i,c,d)){let m=e+2,b=a_(i,m);if(d){let u=MN(a,m),f=AR(b,u,i),g=tg(i,u,void 0,{dehydratedView:f});ng(b,g,0,wp(u,f))}else a.firstUpdatePass&&v7(b),MR(b,0)}}}finally{Rt(t)}}function a_(n,t){return n[t]}function RH(n,t){if(n.length<=Ei)return;let e=Ei+t,i=n[e];i&&aR(i)}function OH(n,t){if(n.length<=Ei)return;let e=Ei+t,i=n[e];i&&nR(i)}function PH(n,t){return $f(n,t)}function FH(n,t){return kR(n,t)}function MN(n,t){return bv(n,t)}function B(n,t,e){let i=_t(),a=Ws();if(Br(i,a,t)){let r=mi(),o=cd();fR(o,i,n,t,i[di],e)}return B}function DN(n,t,e,i,a){f_(t,n,e,a?"class":"style",i)}function T(n,t,e,i){let a=_t(),r=a[ft],o=n+Ii,s=r.firstCreatePass?gI(o,a,2,t,sI,wv(),e,i):r.data[o];if(Gs(s)){let l=a[ps].tracingService;if(l&&l.componentCreate){let c=r.data[s.directiveStart+s.componentOffset];return l.componentCreate(PR(c),()=>(sA(n,t,a,s,i),T))}}return sA(n,t,a,s,i),T}function sA(n,t,e,i,a){if(lI(i,e,n,t,sO),up(i)){let r=e[ft];h_(r,e,i),jN(r,i,e)}a!=null&&eg(e,i)}function k(){let n=mi(),t=oa(),e=cI(t);return n.firstCreatePass&&bI(n,e),kw(e)&&Mw(),Ew(),e.classesWithoutHost!=null&&iU(e)&&DN(n,e,_t(),e.classesWithoutHost,true),e.stylesWithoutHost!=null&&aU(e)&&DN(n,e,_t(),e.stylesWithoutHost,false),k}function ne(n,t,e,i){return T(n,t,e,i),k(),ne}function fn(n,t,e,i){let a=_t(),r=a[ft],o=n+Ii,s=r.firstCreatePass?U7(o,r,2,t,e,i):r.data[o];return lI(s,a,n,t,sO),i!=null&&eg(a,s),fn}function Mn(){let n=oa(),t=cI(n);return kw(t)&&Mw(),Ew(),Mn}function dr(n,t,e,i){return fn(n,t,e,i),Mn(),dr}var sO=(n,t,e,i,a)=>(Bf(true),JA(t[di],i,Lw()));function Sa(n,t,e){let i=_t(),a=i[ft],r=n+Ii,o=a.firstCreatePass?gI(r,i,8,"ng-container",sI,wv(),t,e):a.data[r];if(lI(o,i,n,"ng-container",LH),up(o)){let s=i[ft];h_(s,i,o),jN(s,o,i)}return e!=null&&eg(i,o),Sa}function wa(){let n=mi(),t=oa(),e=cI(t);return n.firstCreatePass&&bI(n,e),wa}function kp(n,t,e){return Sa(n,t,e),wa(),kp}var LH=(n,t,e,i,a)=>(Bf(true),qU(t[di],""));function je(){return _t()}function Mi(n,t,e){let i=_t(),a=Ws();if(Br(i,a,t)){let r=mi(),o=cd();gR(o,i,n,t,i[di],e)}return Mi}var lg="en-US";var VH=lg;function lO(n){typeof n=="string"&&(VH=n.toLowerCase().replace(/_/g,"-"))}function ce(n,t,e){let i=_t(),a=mi(),r=oa();return cO(a,i,i[di],r,n,t,e),ce}function hd(n,t,e){let i=_t(),a=mi(),r=oa();return(r.type&3||e)&&fI(r,a,i,e,i[di],n,t,Vm(r,i,t)),hd}function cO(n,t,e,i,a,r,o){let s=true,l=null;if((i.type&3||o)&&(l??=Vm(i,t,r),fI(i,n,t,o,e,a,r,l)&&(s=false)),s){let c=i.outputs?.[a],d=i.hostDirectiveOutputs?.[a];if(d&&d.length)for(let m=0;m<d.length;m+=2){let b=d[m],u=d[m+1];l??=Vm(i,t,r),Kv(i,t,b,u,a,l)}if(c&&c.length)for(let m of c)l??=Vm(i,t,r),Kv(i,t,m,a,a,l)}}function A(n=1){return bD(n)}function BH(n,t){let e=null,i=s6(n);for(let a=0;a<t.length;a++){let r=t[a];if(r==="*"){e=a;continue}if(i===null?ZA(n,r,true):d6(i,r))return a}return e}function Wt(n){let t=_t()[or][Ya];if(!t.projection){let e=n?n.length:1,i=t.projection=GM(e,null),a=i.slice(),r=t.child;for(;r!==null;){if(r.type!==128){let o=n?BH(r,n):0;o!==null&&(a[o]?a[o].projectionNext=r:i[o]=r,a[o]=r)}r=r.next}}}function ot(n,t=0,e,i,a,r){let o=_t(),s=mi(),l=i?n+1:null;l!==null&&Np(o,s,l,i,a,r,null,e);let c=Hm(s,Ii+n,16,null,e||null);c.projection===null&&(c.projection=t),Rw();let m=!o[Tm]||Tw();o[or][Ya].projection[c.projection]===null&&l!==null?jH(o,s,l):m&&!s_(c)&&F6(s,o,c)}function jH(n,t,e){let i=Ii+e,a=t.data[i],r=n[i],o=Jv(r,a.tView.ssrId),s=tg(n,a,void 0,{dehydratedView:o});ng(r,s,0,wp(a,o))}function Pi(n,t,e,i){return $R(n,t,e,i),Pi}function ln(n,t,e){return GR(n,t,e),ln}function Xe(n){let t=_t(),e=mi(),i=Ev();Vf(i+1);let a=vI(e,i);if(n.dirty&&ZM(t)===((a.metadata.flags&2)===2)){if(a.matches===null)n.reset([]);else{let r=JR(t,i);n.reset(r,kA),n.notifyOnChanges()}return true}return false}function Qe(){return yI(_t(),Ev())}function v_(n,t,e,i,a){return KR(t,$R(n,e,i,a)),v_}function __(n,t,e,i){return KR(n,GR(t,e,i)),__}function x_(n=1){Vf(Ev()+n)}function Qt(n){let t=sD();return yv(t,Ii+n)}function Lv(n,t){return n<<17|t<<2}function Um(n){return n>>17&32767}function zH(n){return(n&2)==2}function UH(n,t){return n&131071|t<<17}function AN(n){return n|2}function Ip(n){return(n&131068)>>2}function qw(n,t){return n&-131069|t<<2}function HH(n){return(n&1)===1}function RN(n){return n|1}function YH(n,t,e,i,a,r){let o=r?t.classBindings:t.styleBindings,s=Um(o),l=Ip(o);n[i]=e;let c=false,d;if(Array.isArray(e)){let m=e;d=m[1],(d===null||op(m,d)>0)&&(c=true)}else d=e;if(a)if(l!==0){let b=Um(n[s+1]);n[i+1]=Lv(b,s),b!==0&&(n[b+1]=qw(n[b+1],i)),n[s+1]=UH(n[s+1],i)}else n[i+1]=Lv(s,0),s!==0&&(n[s+1]=qw(n[s+1],i)),s=i;else n[i+1]=Lv(l,0),s===0?s=i:n[l+1]=qw(n[l+1],i),l=i;c&&(n[i+1]=AN(n[i+1])),lA(n,d,i,true),lA(n,d,i,false),GH(t,d,n,i,r),o=Lv(s,l),r?t.classBindings=o:t.styleBindings=o}function GH(n,t,e,i,a){let r=a?n.residualClasses:n.residualStyles;r!=null&&typeof t=="string"&&op(r,t)>=0&&(e[i+1]=RN(e[i+1]))}function lA(n,t,e,i){let a=n[e+1],r=t===null,o=i?Um(a):Ip(a),s=false;for(;o!==0&&(s===false||r);){let l=n[o],c=n[o+1];$H(l,t)&&(s=true,n[o+1]=i?RN(c):AN(c)),o=i?Um(c):Ip(c)}s&&(n[e+1]=i?AN(a):RN(a))}function $H(n,t){return n===null||t==null||(Array.isArray(n)?n[1]:n)===t?true:Array.isArray(n)&&typeof t=="string"?op(n,t)>=0:false}var bs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function WH(n){return n.substring(bs.key,bs.keyEnd)}function JH(n){return qH(n),dO(n,mO(n,0,bs.textEnd))}function dO(n,t){let e=bs.textEnd;return e===t?-1:(t=bs.keyEnd=KH(n,bs.key=t,e),mO(n,t,e))}function qH(n){bs.key=0,bs.keyEnd=0,bs.value=0,bs.valueEnd=0,bs.textEnd=n.length}function mO(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function KH(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}function mr(n,t,e){return uO(n,t,e,false),mr}function we(n,t){return uO(n,t,null,true),we}function Fi(n){QH(a9,XH,n,true)}function XH(n,t){for(let e=JH(t);e>=0;e=dO(t,e))pv(n,WH(t),true)}function uO(n,t,e,i){let a=_t(),r=mi(),o=Nv(2);if(r.firstUpdatePass&&hO(r,n,o,i),t!==lr&&Br(a,o,t)){let s=r.data[fs()];fO(r,s,a,a[di],n,a[o+1]=o9(t,e),i,o)}}function QH(n,t,e,i){let a=mi(),r=Nv(2);a.firstUpdatePass&&hO(a,null,r,i);let o=_t();if(e!==lr&&Br(o,r,e)){let s=a.data[fs()];if(gO(s,i)&&!pO(a,r)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=ov(l,e||"")),DN(a,s,o,e,i)}else r9(a,s,o,o[di],o[r+1],o[r+1]=i9(n,t,e),i,r)}}function pO(n,t){return t>=n.expandoStartIndex}function hO(n,t,e,i){let a=n.data;if(a[e+1]===null){let r=a[fs()],o=pO(n,e);gO(r,i)&&t===null&&!o&&(t=false),t=ZH(a,r,t,i),YH(a,r,t,e,o,i)}}function ZH(n,t,e,i){let a=pD(n),r=i?t.residualClasses:t.residualStyles;if(a===null)(i?t.classBindings:t.styleBindings)===0&&(e=Kw(null,n,t,e,i),e=Jf(e,t.attrs,i),r=null);else{let o=t.directiveStylingLast;if(o===-1||n[o]!==a)if(e=Kw(a,n,t,e,i),r===null){let l=e9(n,t,i);l!==void 0&&Array.isArray(l)&&(l=Kw(null,n,t,l[1],i),l=Jf(l,t.attrs,i),t9(n,t,i,l))}else r=n9(n,t,i)}return r!==void 0&&(i?t.residualClasses=r:t.residualStyles=r),e}function e9(n,t,e){let i=e?t.classBindings:t.styleBindings;if(Ip(i)!==0)return n[Um(i)]}function t9(n,t,e,i){let a=e?t.classBindings:t.styleBindings;n[Um(a)]=i}function n9(n,t,e){let i,a=t.directiveEnd;for(let r=1+t.directiveStylingLast;r<a;r++){let o=n[r].hostAttrs;i=Jf(i,o,e)}return Jf(i,t.attrs,e)}function Kw(n,t,e,i,a){let r=null,o=e.directiveEnd,s=e.directiveStylingLast;for(s===-1?s=e.directiveStart:s++;s<o&&(r=t[s],i=Jf(i,r.hostAttrs,a),r!==n);)s++;return n!==null&&(e.directiveStylingLast=s),i}function Jf(n,t,e){let i=e?1:2,a=-1;if(t!==null)for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?a=o:a===i&&(Array.isArray(n)||(n=n===void 0?[]:["",n]),pv(n,o,e?true:t[++r]))}return n===void 0?null:n}function i9(n,t,e){if(e==null||e==="")return ar;let i=[],a=co(e);if(Array.isArray(a))for(let r=0;r<a.length;r++)n(i,a[r],true);else if(a instanceof Set)for(let r of a)n(i,r,true);else if(typeof a=="object")for(let r in a)Object.hasOwn(a,r)&&n(i,r,a[r]);else typeof a=="string"&&t(i,a);return i}function a9(n,t,e){let i=String(t);i!==""&&!i.includes(" ")&&pv(n,i,e)}function r9(n,t,e,i,a,r,o,s){a===lr&&(a=ar);let l=0,c=0,d=0<a.length?a[0]:null,m=0<r.length?r[0]:null;for(;d!==null||m!==null;){let b=l<a.length?a[l+1]:void 0,u=c<r.length?r[c+1]:void 0,f=null,g;d===m?(l+=2,c+=2,b!==u&&(f=m,g=u)):m===null||d!==null&&d<m?(l+=2,f=d):(c+=2,f=m,g=u),f!==null&&fO(n,t,e,i,f,g,o,s),d=l<a.length?a[l]:null,m=c<r.length?r[c]:null}}function fO(n,t,e,i,a,r,o,s){if(!(t.type&3))return;let l=n.data,c=l[s+1],d=HH(c)?cA(l,t,e,a,Ip(c),o):void 0;if(!r_(d)){r_(r)||zH(c)&&(r=cA(l,null,e,a,s,o));let m=Sw(fs(),e);V6(i,o,m,a,r)}}function cA(n,t,e,i,a,r){let o=t===null,s;for(;a>0;){let l=n[a],c=Array.isArray(l),d=c?l[1]:l,m=d===null,b=e[a+1];b===lr&&(b=m?ar:void 0);let u=m?hv(b,i):d===i?b:void 0;if(c&&!r_(u)&&(u=hv(l,i)),r_(u)&&(s=u,o))return s;let f=n[a+1];a=o?Um(f):Ip(f)}if(t!==null){let l=r?t.residualClasses:t.residualStyles;l!=null&&(s=hv(l,i))}return s}function r_(n){return n!==void 0}function o9(n,t){return n==null||n===""||(typeof t=="string"?n=co(n)+t:typeof n=="object"&&(n=Mf(co(n)))),n}function gO(n,t){return(n.flags&(t?8:16))!==0}function G(n,t=""){let e=_t(),i=mi(),a=n+Ii,r=i.firstCreatePass?Hm(i,a,1,t,null):i.data[a],o=s9(i,e,r,t);e[a]=o,Mv()&&nI(i,e,o,r),Pm(r,false)}var s9=(n,t,e,i)=>(Bf(true),WU(t[di],i));function bO(n,t,e,i=""){return Br(n,Ws(),e)?t+nd(e)+i:lr}function l9(n,t,e,i,a,r=""){let o=lD(),s=FR(n,o,e,a);return Nv(2),s?t+nd(e)+i+nd(a)+r:lr}function ge(n){return Ve("",n),ge}function Ve(n,t,e){let i=_t(),a=bO(i,n,t,e);return a!==lr&&yO(i,fs(),a),Ve}function $m(n,t,e,i,a){let r=_t(),o=l9(r,n,t,e,i,a);return o!==lr&&yO(r,fs(),o),$m}function yO(n,t,e){let i=Sw(t,n);JU(n[di],i,e)}function el(n,t,e){bp(t)&&(t=t());let i=_t(),a=Ws();if(Br(i,a,t)){let r=mi(),o=cd();fR(o,i,n,t,i[di],e)}return el}function Ql(n,t){let e=bp(n);return e&&n.set(t),e}function tl(n,t){let e=_t(),i=mi(),a=oa();return cO(i,e,e[di],a,n,t),tl}var c9={};function Aa(n){Zs("NgLet");let t=mi(),e=_t(),i=n+Ii,a=Hm(t,i,128,null,null);return Pm(a,false),vv(t,e,i,c9),Aa}function Ct(n){return Br(_t(),Ws(),n)?nd(n):lr}function kI(n,t,e=""){return bO(_t(),n,t,e)}function dA(n,t,e){let i=mi();i.firstCreatePass&&vO(t,i.data,i.blueprint,$s(n),e)}function vO(n,t,e,i,a){if(n=Ha(n),Array.isArray(n))for(let r=0;r<n.length;r++)vO(n[r],t,e,i,a);else{let r=mi(),o=_t(),s=oa(),l=Sm(n)?n:Ha(n.provide),c=bw(n),d=s.providerIndexes&1048575,m=s.directiveStart,b=s.providerIndexes>>20;if(Sm(n)||!n.multi){let u=new Bm(c,a,X,null),f=Qw(l,t,a?d:d+b,m);f===-1?(tN(Wv(s,o),r,l),Xw(r,n,t.length),t.push(l),s.directiveStart++,s.directiveEnd++,a&&(s.providerIndexes+=1048576),e.push(u),o.push(u)):(e[f]=u,o[f]=u)}else{let u=Qw(l,t,d+b,m),f=Qw(l,t,d,d+b),g=u>=0&&e[u],x=f>=0&&e[f];if(a&&!x||!a&&!g){tN(Wv(s,o),r,l);let w=u9(a?m9:d9,e.length,a,i,c,n);!a&&x&&(e[f].providerFactory=w),Xw(r,n,t.length,0),t.push(l),s.directiveStart++,s.directiveEnd++,a&&(s.providerIndexes+=1048576),e.push(w),o.push(w)}else{let w=_O(e[a?f:u],c,!a&&i);Xw(r,n,u>-1?u:f,w)}!a&&i&&x&&e[f].componentProviders++}}}function Xw(n,t,e,i){let a=Sm(t),r=KM(t);if(a||r){let l=(r?Ha(t.useClass):t).prototype.ngOnDestroy;if(l){let c=n.destroyHooks||(n.destroyHooks=[]);if(!a&&t.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function _O(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function Qw(n,t,e,i){for(let a=e;a<i;a++)if(t[a]===n)return a;return-1}function d9(n,t,e,i,a){return ON(this.multi,[])}function m9(n,t,e,i,a){let r=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,l=Hf(i,i[ft],this.providerFactory.index,a);o=l.slice(0,s),ON(r,o);for(let c=s;c<l.length;c++)o.push(l[c])}else o=[],ON(r,o);return o}function ON(n,t){for(let e=0;e<n.length;e++){let i=n[e];t.push(i())}return t}function u9(n,t,e,i,a,r){let o=new Bm(n,e,X,null);return o.multi=[],o.index=t,o.componentProviders=0,_O(o,a,i&&!e),o}function vt(n,t){return e=>{e.providersResolver=(i,a)=>dA(i,a?a(n):n,false),t&&(e.viewProvidersResolver=(i,a)=>dA(i,a?a(t):t,true))}}function nl(n,t){let e=Lf()+n,i=_t();return i[e]===lr?hI(i,e,t()):w7(i,e)}function It(n,t,e){return CO(_t(),Lf(),n,t,e)}function xO(n,t){let e=n[t];return e===lr?void 0:e}function CO(n,t,e,i,a,r){let o=t+e;return Br(n,o,a)?hI(n,o+1,r?i.call(r,a):i(a)):xO(n,o+1)}function p9(n,t,e,i,a,r,o){let s=t+e;return FR(n,s,a,r)?hI(n,s+2,o?i.call(o,a,r):i(a,r)):xO(n,s+2)}function U(n,t){let e=mi(),i,a=n+Ii;e.firstCreatePass?(i=h9(t,e.pipeRegistry),e.data[a]=i,i.onDestroy&&(e.destroyHooks??=[]).push(a,i.onDestroy)):i=e.data[a];let r=i.factory||(i.factory=td(i.type,true)),o,s=Ir(X);try{let l=$v(false),c=r();return $v(l),vv(e,_t(),a,c),c}finally{Ir(s)}}function h9(n,t){if(t)for(let e=t.length-1;e>=0;e--){let i=t[e];if(n===i.name)return i}}function Q(n,t,e){let i=n+Ii,a=_t(),r=yv(a,i);return SO(a,i)?CO(a,Lf(),t,r.transform,e,r):r.transform(e)}function it(n,t,e,i){let a=n+Ii,r=_t(),o=yv(r,a);return SO(r,a)?p9(r,Lf(),t,o.transform,e,i,o):o.transform(e,i)}function SO(n,t){return n[ft].data[t].pure}function Mp(n,t){return g_(n,t)}var NO=(()=>{class n{applicationErrorHandler=N(Js);appRef=N(Wa);taskService=N($l);ngZone=N($e);zonelessEnabled=N(gp);tracing=N(Po,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new wt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Tf):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(N(Av,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?_D:jw;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Tf+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=true,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){this.applicationErrorHandler(i)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function IO(){return[{provide:ao,useExisting:NO},{provide:$e,useClass:kf},{provide:gp,useValue:true}]}var EO=new be("");function f9(){return typeof $localize<"u"&&$localize.locale||lg}var Dp=new be("",{factory:()=>N(Dp,{optional:true,skipSelf:true})||f9()});function Ja(n,t){return bf(n,t?.equal)}function Li(n){return iM(n)}var TO=class n extends Error{_brand;constructor(t){super(t)}static IDLE=new n("IDLE");static LOADING=new n("LOADING")};function OO(n,t){let e=Object.create(uA);e.value=n,e.transformFn=t?.transform;function i(){if($c(e),e.value===o_){let a=null;throw new rt(-950,a)}return e.value}return i[pa]=e,i}var zr=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>FN(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};var PO=(()=>{let n=new be("");return n.__NG_ELEMENT_ID__=t=>{let e=oa();if(e===null)throw new rt(-204,false);if(e.type&2)return e.value;if(t&8)return null;throw new rt(-204,false)},n})();function kO(n,t){return OO(n,t)}function E9(n){return OO(o_,n)}var AI=(kO.required=E9,kO);function MO(n,t){return _I(t)}function T9(n,t){return xI(t)}var dg=(MO.required=T9,MO);function DO(n,t){return _I(t)}function k9(n,t){return xI(t)}var FO=(DO.required=k9,DO);var LO=(()=>{class n{constructor(e){}static \u0275fac=function(i){return new(i||n)(qe(Wa))};static \u0275mod=Ye({type:n});static \u0275inj=ze({})}return n})();var M9=1e4;var MCe=M9-1e3;var Vt=(()=>{class n{static __NG_ELEMENT_ID__=D9}return n})();function D9(n){return A9(oa(),_t(),(n&16)===16)}function A9(n,t,e){if(Gs(n)&&!e){let i=Ro(n.index,t);return new ud(i,i)}else if(n.type&175){let i=t[or];return new ud(i,t)}return null}var R9=(()=>{class n{zone=N($e);changeDetectionScheduler=N(ao);applicationRef=N(Wa);applicationErrorHandler=N(Js);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var O9=new be("",{factory:()=>false});function P9({ngZoneFactory:n,scheduleInRootZone:t}){return n??=()=>new $e(Je(Y({},VO()),{scheduleInRootZone:t})),[{provide:gp,useValue:false},{provide:$e,useFactory:n},{provide:ad,multi:true,useFactory:()=>{let e=N(R9,{optional:true});return()=>e.initialize()}},{provide:ad,multi:true,useFactory:()=>{let e=N(F9);return()=>{e.initialize()}}},{provide:Av,useValue:t??Bw}]}function RI(n){let t=n?.scheduleInRootZone,e=P9({ngZoneFactory:()=>{let i=VO(n);return i.scheduleInRootZone=t,i.shouldCoalesceEventChangeDetection&&Zs("NgZone_CoalesceEvent"),new $e(i)},scheduleInRootZone:t});return rd([{provide:O9,useValue:true},e])}function VO(n){return{enableLongStackTrace:false,shouldCoalesceEventChangeDetection:n?.eventCoalescing??false,shouldCoalesceRunChangeDetection:n?.runCoalescing??false}}var F9=(()=>{class n{subscription=new wt;initialized=false;zone=N($e);pendingTasks=N($l);initialize(){if(this.initialized)return;this.initialized=true;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$e.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$e.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function L9(n,t,e){let i=new t_(e);return Promise.resolve(i)}var C_=new be("");var V9=new be("");function cg(n){return!n.moduleRef}function B9(n){let t=cg(n)?n.r3Injector:n.moduleRef.injector,e=t.get($e);return e.run(()=>{cg(n)?n.r3Injector.resolveInjectorInitializers():n.moduleRef.resolveInjectorInitializers();let i=t.get(Js),a;if(e.runOutsideAngular(()=>{a=e.onError.subscribe({next:i})}),cg(n)){let r=()=>t.destroy(),o=n.platformInjector.get(C_);o.add(r),t.onDestroy(()=>{a.unsubscribe(),o.delete(r)})}else{let r=()=>n.moduleRef.destroy(),o=n.platformInjector.get(C_);o.add(r),n.moduleRef.onDestroy(()=>{Uf(n.allPlatformModules,n.moduleRef),a.unsubscribe(),o.delete(r)})}return z9(i,e,()=>{let r=t.get($l),o=r.add(),s=t.get(CI);return s.runInitializers(),s.donePromise.then(()=>{let l=t.get(Dp,lg);if(lO(l||lg),!t.get(V9,true))return cg(n)?t.get(Wa):(n.allPlatformModules.push(n.moduleRef),n.moduleRef);if(cg(n)){let d=t.get(Wa);return n.rootComponent!==void 0&&d.bootstrap(n.rootComponent),d}else return BO?.(n.moduleRef,n.allPlatformModules),n.moduleRef}).finally(()=>{r.remove(o)})})})}var BO;function RO(){BO=j9}function j9(n,t){let e=n.injector.get(Wa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>e.bootstrap(i));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(e);else throw new rt(-403,false);t.push(n)}function z9(n,t,e){try{let i=e();return pd(i)?i.catch(a=>{throw t.runOutsideAngular(()=>n(a)),a}):i}catch(i){throw t.runOutsideAngular(()=>n(i)),i}}var jO=(()=>{class n{_injector;_modules=[];_destroyListeners=[];_destroyed=false;constructor(e){this._injector=e}bootstrapModuleFactory(e,i){let a=[IO(),...i?.applicationProviders??[],SD],r=QR(e.moduleType,this.injector,a);return RO(),B9({moduleRef:r,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,i=[]){let a=EI({},i);return RO(),L9(this.injector,a,e).then(r=>this.bootstrapModuleFactory(r,a))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new rt(404,false);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let e=this._injector.get(C_,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=true}get destroyed(){return this._destroyed}static \u0275fac=function(i){return new(i||n)(qe(st))};static \u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();var OI=null;function U9(n){if(FI())throw new rt(400,false);oO(),OI=n;let t=n.get(jO);return G9(n),t}function PI(n,t,e=[]){let i=`Platform: ${t}`,a=new be(i);return(r=[])=>{let o=FI();if(!o){let s=[...e,...r,{provide:a,useValue:true}];o=n?.(s)??U9(H9(s,i))}return Y9(a)}}function H9(n=[],t){return st.create({name:t,providers:[{provide:Pf,useValue:"platform"},{provide:C_,useValue:new Set([()=>OI=null])},...n]})}function Y9(n){let t=FI();if(!t)throw new rt(-401,false);return t}function FI(){return OI?.get(jO)??null}function G9(n){let t=n.get(Dv,null);lp(n,()=>{t?.forEach(e=>e())})}function Oe(n){return typeof n=="boolean"?n:n!=null&&n!=="false"}function Vi(n,t=NaN){return!isNaN(parseFloat(n))&&!isNaN(Number(n))?Number(n):t}var MI=Symbol("NOT_SET");var zO=new Set;var $9=Je(Y({},Ku),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:MI,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true}this.sequence.scheduler.notify(7)},phaseFn(n){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==MI&&!Ju(this))return this.signal;try{for(let a of this.cleanup??zO)a()}finally{this.cleanup?.clear()}let t=[];n!==void 0&&t.push(n),t.push(this.registerCleanupFn);let e=Wc(this),i;try{i=this.userFn.apply(null,t)}finally{um(this,e)}return(this.value===MI||!this.equal(this.value,i))&&(this.value=i,this.version++),this.signal}});var DI=class extends Yf{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,e,i,a,r,o=null){super(t,[void 0,void 0,void 0,void 0],i,false,r.get(kn),o),this.scheduler=a;for(let s of KN){let l=e[s];if(l===void 0)continue;let c=Object.create($9);c.sequence=this,c.phase=s,c.userFn=l,c.dirty=true,c.signal=()=>($c(c),c.value),c.signal[pa]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[s]=c,this.hooks[s]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let e of t.cleanup??zO)e()}finally{Jc(t)}}};function LI(n,t){let e=t?.injector??N(st),i=e.get(ao),a=e.get(m_),r=e.get(Po,null,{optional:true});a.impl??=e.get(XN);let o=n;typeof o=="function"&&(o={mixedReadWrite:n});let s=e.get(fp,null,{optional:true}),l=new DI(a.impl,[o.earlyRead,o.write,o.mixedReadWrite,o.read],s?.view,i,e,r?.snapshot(null));return a.impl.register(l),l}var UO=PI(null,"core",[]);function Ap(n,t){let e=Yl(n),i=t.elementInjector||sp(),r=new zm(e).create(i,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings);return t.onError&&(r.hostView._lView[mp]=t.onError),r}function mg(n){let t=Yl(n);if(!t)return null;let e=new zm(t);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var HO=null;function mo(){return HO}function VI(n){HO??=n}var ug=class{};var Rp=(()=>{class n{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:()=>N(YO),providedIn:"platform"})}return n})();var YO=(()=>{class n extends Rp{_location;_history;_doc=N(gt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mo().getBaseHref(this._doc)}onPopState(e){let i=mo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,false),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=mo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,false),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,a){this._history.pushState(e,i,a)}replaceState(e,i,a){this._history.replaceState(e,i,a)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:()=>new n,providedIn:"platform"})}return n})();function WO(n,t){return n?t?n.endsWith("/")?t.startsWith("/")?n+t.slice(1):n+t:t.startsWith("/")?n+t:`${n}/${t}`:n:t}function GO(n){let t=n.search(/#|\?|$/);return n[t-1]==="/"?n.slice(0,t-1)+n.slice(t):n}function fd(n){return n&&n[0]!=="?"?`?${n}`:n}var w_=(()=>{class n{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:()=>N(J9),providedIn:"root"})}return n})();var W9=new be("");var J9=(()=>{class n extends w_{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??N(gt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return WO(this._baseHref,e)}path(e=false){let i=this._platformLocation.pathname+fd(this._platformLocation.search),a=this._platformLocation.hash;return a&&e?`${i}${a}`:i}pushState(e,i,a,r){let o=this.prepareExternalUrl(a+fd(r));this._platformLocation.pushState(e,i,o)}replaceState(e,i,a,r){let o=this.prepareExternalUrl(a+fd(r));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||n)(qe(Rp),qe(W9,8))};static \u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var N_=(()=>{class n{_subject=new Le;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=X9(GO($O(i))),this._locationStrategy.onPopState(a=>{let r={url:this.path(true),pop:true,state:a.state,type:a.type};a.hasUAVisualTransition&&(r.hasUAVisualTransition=true),this._subject.next(r)})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=false){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+fd(i))}normalize(e){return n.stripTrailingSlash(K9(this._basePath,$O(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",a=null){this._locationStrategy.pushState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+fd(i)),a)}replaceState(e,i="",a=null){this._locationStrategy.replaceState(a,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+fd(i)),a)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(a=>a(e,i))}subscribe(e,i,a){return this._subject.subscribe({next:e,error:i??void 0,complete:a??void 0})}static normalizeQueryParams=fd;static joinWithSlash=WO;static stripTrailingSlash=GO;static \u0275fac=function(i){return new(i||n)(qe(w_))};static \u0275prov=We({token:n,factory:()=>q9(),providedIn:"root"})}return n})();function q9(){return new N_(qe(w_))}function K9(n,t){if(!n||!t.startsWith(n))return t;let e=t.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:t}function $O(n){return n.replace(/\/index\.html$/,"")}function X9(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var BI=/\s+/;var JO=[];var UI=(()=>{class n{_ngEl;_renderer;initialClasses=JO;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(BI):JO}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(BI):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,true);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,true);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let a=this.stateMap.get(e);a!==void 0?(a.enabled!==i&&(a.changed=true,a.enabled=i),a.touched=true):this.stateMap.set(e,{enabled:i,changed:true,touched:true})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],a=e[1];a.changed?(this._toggleClass(i,a.enabled),a.changed=false):a.touched||(a.enabled&&this._toggleClass(i,false),this.stateMap.delete(i)),a.touched=false}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(BI).forEach(a=>{i?this._renderer.addClass(this._ngEl.nativeElement,a):this._renderer.removeClass(this._ngEl.nativeElement,a)})}static \u0275fac=function(i){return new(i||n)(X(Ue),X(pn))};static \u0275dir=Be({type:n,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return n})();var pg=(()=>{class n{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=N(st);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let a=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,a,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,a)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,a):false,get:(e,i,a)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,a)}})}static \u0275fac=function(i){return new(i||n)(X(Qi))};static \u0275dir=Be({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[hn]})}return n})();function Z9(n,t){return new rt(2100,false)}var jI=class{createSubscription(t,e,i){return Li(()=>t.subscribe({next:e,error:i}))}dispose(t){Li(()=>t.unsubscribe())}};var zI=class{createSubscription(t,e,i){return t.then(a=>e?.(a),a=>i?.(a)),{unsubscribe:()=>{e=null,i=null}}}dispose(t){t.unsubscribe()}};var eY=new zI;var tY=new jI;var qa=(()=>{class n{_ref;_latestValue=null;markForCheckOnValueUpdate=true;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=N(Js);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=false,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=true}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i),i=>this.applicationErrorHandler(i))}_selectStrategy(e){if(pd(e))return eY;if(b_(e))return tY;throw Z9(n,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(i){return new(i||n)(X(Vt,16))};static \u0275pipe=jr({name:"async",type:n,pure:false})}return n})();var hg=(()=>{class n{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(i){return new(i||n)};static \u0275pipe=jr({name:"json",type:n,pure:false})}return n})();var Wm=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({})}return n})();function fg(n,t){t=encodeURIComponent(t);for(let e of n.split(";")){let i=e.indexOf("="),[a,r]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(a.trim()!==t)continue;let o=r;try{o=decodeURIComponent(r)}catch(s){}return o.length>1&&o[0]==='"'&&o[o.length-1]==='"'&&(o=o.slice(1,-1)),o}return null}var nY=(()=>{class n{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var HI=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:function(i){let a=null;return i?a=new(i||n):a=qe(nY),a},providedIn:"root"})}return n})();var YI="browser";function qO(n){return n===YI}var gg=class{_doc;constructor(t){this._doc=t}manager};var I_=(()=>{class n extends gg{constructor(e){super(e)}supports(e){return true}addEventListener(e,i,a,r){return e.addEventListener(i,a,r),()=>this.removeEventListener(e,i,a,r)}removeEventListener(e,i,a,r){return e.removeEventListener(i,a,r)}static \u0275fac=function(i){return new(i||n)(qe(gt))};static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})();var k_=new be("");var JI=(()=>{class n{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(o=>{o.manager=this});let a=e.filter(o=>!(o instanceof I_));this._plugins=a.slice().reverse();let r=e.find(o=>o instanceof I_);r&&this._plugins.push(r)}addEventListener(e,i,a,r){return this._findPluginFor(i).addEventListener(e,i,a,r)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(r=>r.supports(e)),!i)throw new rt(-5101,false);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||n)(qe(k_),qe($e))};static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})();var GI="ng-app-id";function KO(n){for(let t of n)t.remove()}function XO(n,t){let e=t.createElement("style");return e.textContent=n,e}function aY(n,t,e,i){let a=n.head?.querySelectorAll(`style[${GI}="${t}"],link[${GI}="${t}"]`);if(!a||a.length===0)return false;for(let r of a)r.removeAttribute(GI),r instanceof HTMLLinkElement?i.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]});return true}function WI(n,t){let e=t.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",n),e}var qI=(()=>{class n{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,a,r={}){this.doc=e,this.appId=i,this.nonce=a,aY(e,i,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,i){for(let a of e)this.addUsage(a,this.inline,XO);i?.forEach(a=>this.addUsage(a,this.external,WI))}removeStyles(e,i){for(let a of e)this.removeUsage(a,this.inline);i?.forEach(a=>this.removeUsage(a,this.external))}addUsage(e,i,a){let r=i.get(e);r?r.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,a(e,this.doc)))})}removeUsage(e,i){let a=i.get(e);a&&(a.usage--,a.usage<=0&&(KO(a.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])KO(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[i,{elements:a}]of this.inline)a.push(this.addElement(e,XO(i,this.doc)));for(let[i,{elements:a}]of this.external)a.push(this.addElement(e,WI(i,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let i of[...this.inline.values(),...this.external.values()]){let a=[];for(let r of i.elements)r.parentNode===e?r.remove():a.push(r);i.elements=a}}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||n)(qe(gt),qe(Wl),qe(dd,8),qe(Fm))};static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})();var $I={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"};var KI=/%COMP%/g;var ZO="%COMP%";var rY=`_nghost-${ZO}`;var oY=`_ngcontent-${ZO}`;var sY=true;var lY=new be("",{factory:()=>sY});var cY=new be("");function dY(n){return oY.replace(KI,n)}function mY(n){return rY.replace(KI,n)}function e2(n,t){return t.map(e=>e.replace(KI,n))}var XI=(()=>{class n{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,i,a,r,o,s,l=null,c=null,d=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=a,this.removeStylesOnCompDestroy=r,this.doc=o,this.ngZone=s,this.nonce=l,this.tracingService=c,this.cssVarNamespace=d??"",this.defaultRenderer=new bg(e,o,s,this.tracingService,this.cssVarNamespace)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let a=this.getOrCreateRenderer(e,i);return a instanceof T_?a.applyToHost(e):a instanceof yg&&a.applyStyles(),a}getOrCreateRenderer(e,i){let a=this.rendererByCompId,r=a.get(i.id);if(!r){let o=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,m=this.tracingService;switch(i.encapsulation){case ys.Emulated:r=new T_(l,c,i,this.appId,d,o,s,m,this.cssVarNamespace);break;case ys.ShadowDom:return new E_(l,e,i,o,s,this.nonce,m,this.cssVarNamespace,c);case ys.ExperimentalIsolatedShadowDom:return new E_(l,e,i,o,s,this.nonce,m,this.cssVarNamespace);default:r=new yg(l,c,i,d,o,s,m,this.cssVarNamespace);break}a.set(i.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||n)(qe(JI),qe(Ym),qe(Wl),qe(lY),qe(gt),qe($e),qe(dd),qe(Po,8),qe(cY,8))};static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})();var bg=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=true;constructor(t,e,i,a,r=""){this.eventManager=t,this.doc=e,this.ngZone=i,this.tracingService=a,this.cssVarNamespace=r}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS($I[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(QO(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){if(t){let a=QO(t)?t.content:t;if(i!=null&&i.parentNode!==a)throw new rt(-5106,false);a.insertBefore(e,i)}}removeChild(t,e){e.remove()}selectRootElement(t,e){let i=typeof t=="string"?this.doc.querySelector(t):t;if(!i)throw new rt(-5104,false);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,a){if(a){e=a+":"+e;let r=$I[a];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){let a=$I[i];a?t.removeAttributeNS(a,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,a){let r=e.startsWith("--");r&&(e=e.replace("%NS%",this.cssVarNamespace)),r||a&(Ks.DashCase|Ks.Important)?t.style.setProperty(e,i,a&Ks.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){let a=e.startsWith("--");a&&(e=e.replace("%NS%",this.cssVarNamespace)),a||i&Ks.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t!=null&&(t[e]=i)}setValue(t,e){t.nodeValue=e}listen(t,e,i,a){if(typeof t=="string"&&(t=mo().getGlobalEventTarget(this.doc,t),!t))throw new rt(-5102,false);let r=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(t,e,r)),this.eventManager.addEventListener(t,e,r,a)}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;t(e)===false&&e.preventDefault()}}};function QO(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var E_=class extends bg{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,i,a,r,o,s,l,c){super(t,a,r,s,l),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=e2(i.id,d).map(b=>b.replace(/%NS%/g,l));for(let b of d){let u=document.createElement("style");o&&u.setAttribute("nonce",o),u.textContent=b,this.shadowRoot.appendChild(u)}let m=i.getExternalStyles?.();if(m)for(let b of m){let u=WI(b,a);o&&u.setAttribute("nonce",o),this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}};var yg=class extends bg{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,i,a,r,o,s,l,c){super(t,r,o,s,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=a;let d=i.styles,m=c?e2(c,d):d;this.styles=m.map(b=>b.replace(/%NS%/g,l)),this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&md.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}};var T_=class extends yg{contentAttr;hostAttr;constructor(t,e,i,a,r,o,s,l,c){let d=a+"-"+i.id;super(t,e,i,r,o,s,l,c,d),this.contentAttr=dY(d),this.hostAttr=mY(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}};var M_=class n extends ug{supportsDOMEvents=true;static makeCurrent(){VI(new n)}onAndCancel(t,e,i,a){return t.addEventListener(e,i,a),()=>{t.removeEventListener(e,i,a)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=uY();return e==null?null:pY(e)}resetBaseElement(){vg=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return fg(document.cookie,t)}};var vg=null;function uY(){return vg=vg||document.head.querySelector("base"),vg?vg.getAttribute("href"):null}function pY(n){return new URL(n,document.baseURI).pathname}var D_=class{addToWindow(t){rr.getAngularTestability=(i,a=true)=>{let r=t.findTestabilityInTree(i,a);if(r==null)throw new rt(5103,false);return r},rr.getAllAngularTestabilities=()=>t.getAllTestabilities(),rr.getAllAngularRootElements=()=>t.getAllRootElements();let e=i=>{let a=rr.getAllAngularTestabilities(),r=a.length,o=function(){r--,r==0&&i()};a.forEach(s=>{s.whenStable(o)})};rr.frameworkStabilizers||(rr.frameworkStabilizers=[]),rr.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,i){if(e==null)return null;let a=t.getTestability(e);return a??(i?mo().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,true):this.findTestabilityInTree(t,e.parentElement,true):null)}};var t2=["alt","control","meta","shift"];var hY={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"};var fY={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};var n2=(()=>{class n extends gg{constructor(e){super(e)}supports(e){return n.parseEventName(e)!=null}addEventListener(e,i,a,r){let o=n.parseEventName(i),s=n.eventCallback(o.fullKey,a,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mo().onAndCancel(e,o.domEventName,s,r))}static parseEventName(e){let i=e.toLowerCase().split("."),a=i.shift();if(i.length===0||!(a==="keydown"||a==="keyup"))return null;let r=n._normalizeKey(i.pop()),o="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),o="code."),t2.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),o+=c+".")}),o+=r,i.length!=0||r.length===0)return null;let l={};return l.domEventName=a,l.fullKey=o,l}static matchEventFullKeyCode(e,i){let a=hY[e.key]||e.key,r="";return i.indexOf("code.")>-1&&(a=e.code,r="code."),a==null||!a?false:(a=a.toLowerCase(),a===" "?a="space":a==="."&&(a="dot"),t2.forEach(o=>{if(o!==a){let s=fY[o];s(e)&&(r+=o+".")}}),r+=a,r===i)}static eventCallback(e,i,a){return r=>{n.matchEventFullKeyCode(r,e)&&a.runGuarded(()=>i(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||n)(qe(gt))};static \u0275prov=We({token:n,factory:n.\u0275fac})}return n})();function gY(){M_.makeCurrent()}function bY(){return new Lr}function yY(){return VN(document),document}var vY=[{provide:Fm,useValue:YI},{provide:Dv,useValue:gY,multi:true},{provide:gt,useFactory:yY}];var A_=PI(UO,"browser",vY);var _Y=[{provide:Tp,useClass:D_},{provide:y_,useClass:rg,deps:[$e,og,Tp]},{provide:rg,useClass:rg,deps:[$e,og,Tp]}];var xY=[{provide:Pf,useValue:"root"},{provide:Lr,useFactory:bY},{provide:k_,useClass:I_,multi:true},{provide:k_,useClass:n2,multi:true},XI,{provide:Ym,useClass:qI},{provide:qI,useExisting:Ym},JI,{provide:ha,useExisting:XI},[]];var _g=(()=>{class n{constructor(){}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({providers:[...xY,..._Y],imports:[Wm,LO]})}return n})();var rl=class n{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
10
10
|
`).forEach(e=>{let i=e.indexOf(":");if(i>0){let a=e.slice(0,i),r=e.slice(i+1).trim();this.addHeaderEntry(a,r)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[e,i]of t.headers.entries())this.headers.set(e,i),this.normalizedNames.set(e,t.normalizedNames.get(e))}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(t.name,e);let a=t.op==="a"?(this.headers.get(e)||[]).slice():[];a.push(...i),this.headers.set(e,a);break;case"d":let r=t.value;if(r===void 0)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=Array.isArray(r)?r:[r],s=this.headers.get(e);if(!s)return;s=s.filter(l=>o.indexOf(l)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(t,e){let i=t.toLowerCase();this.maybeSetNormalizedName(t,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(t,e){let i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),a=t.toLowerCase();this.headers.set(a,i),this.maybeSetNormalizedName(t,a)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var O_=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};var P_=class{encodeKey(t){return i2(t)}encodeValue(t){return i2(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function CY(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(a=>{let r=a.indexOf("="),[o,s]=r==-1?[t.decodeKey(a),""]:[t.decodeKey(a.slice(0,r)),t.decodeValue(a.slice(r+1))],l=e.get(o)||[];l.push(s),e.set(o,l)}),e}var SY=/%(\d[a-f0-9])/gi;var wY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function i2(n){return encodeURIComponent(n).replace(SY,(t,e)=>wY[e]??t)}function R_(n){return`${n}`}var vs=class n{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new P_,t.fromString){if(t.fromObject)throw new rt(2805,false);this.map=CY(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let i=t.fromObject[e],a=Array.isArray(i)?i.map(R_):[R_(i)];this.map.set(e,a)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(i=>{let a=t[i];Array.isArray(a)?a.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:a,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,e]of this.cloneFrom.map.entries())this.map.set(t,e);this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=t.op==="a"?(this.map.get(t.param)||[]).slice():[];e.push(R_(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let i=(this.map.get(t.param)||[]).slice(),a=i.indexOf(R_(t.value));a!==-1&&i.splice(a,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function NY(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return false;default:return true}}function a2(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function r2(n){return typeof Blob<"u"&&n instanceof Blob}function o2(n){return typeof FormData<"u"&&n instanceof FormData}function IY(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var xg="Content-Type";var F_="Accept";var d2="text/plain";var m2="application/json";var u2=`${m2}, ${d2}, */*`;var Op=class n{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,e,i,a){this.url=e,this.method=t.toUpperCase();let r;if(NY(this.method)||a?(this.body=i!==void 0?i:null,r=a):r=i,r){if(this.reportProgress=!!r.reportProgress,this.reportUploadProgress=!!r.reportUploadProgress,this.reportDownloadProgress=!!r.reportDownloadProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new rt(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer!==void 0&&(this.referrer=r.referrer),r.referrerPolicy&&(this.referrerPolicy=r.referrerPolicy),this.transferCache=r.transferCache}if(this.headers??=new rl,this.context??=new O_,!this.params)this.params=new vs,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let s=e,l="",c=e.indexOf("#");c!==-1&&(l=e.substring(c),s=e.substring(0,c));let d=s.indexOf("?"),m=d===-1?"?":d<s.length-1?"&":"";this.urlWithParams=s+m+o+l}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||a2(this.body)||r2(this.body)||o2(this.body)||IY(this.body)?this.body:this.body instanceof vs?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||o2(this.body)?null:r2(this.body)?this.body.type||null:a2(this.body)?null:typeof this.body=="string"?d2:this.body instanceof vs?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?m2:null}clone(t={}){let e=t.method||this.method,i=t.url||this.url,a=t.responseType||this.responseType,r=t.keepalive??this.keepalive,o=t.priority||this.priority,s=t.cache||this.cache,l=t.mode||this.mode,c=t.redirect||this.redirect,d=t.credentials||this.credentials,m=t.referrer??this.referrer,b=t.integrity||this.integrity,u=t.referrerPolicy||this.referrerPolicy,f=t.transferCache??this.transferCache,g=t.timeout??this.timeout,x=t.body!==void 0?t.body:this.body,w=t.withCredentials??this.withCredentials,C=t.reportProgress??this.reportProgress,I=t.reportUploadProgress??this.reportUploadProgress,O=t.reportDownloadProgress??this.reportDownloadProgress,E=t.headers||this.headers,R=t.params||this.params,D=t.context??this.context;return t.setHeaders!==void 0&&(E=Object.keys(t.setHeaders).reduce((F,z)=>F.set(z,t.setHeaders[z]),E)),t.setParams&&(R=Object.keys(t.setParams).reduce((F,z)=>F.set(z,t.setParams[z]),R)),new n(e,i,x,{params:R,headers:E,context:D,reportProgress:C,reportUploadProgress:I,reportDownloadProgress:O,responseType:a,withCredentials:w,transferCache:f,keepalive:r,cache:s,priority:o,timeout:g,mode:l,redirect:c,credentials:d,referrer:m,integrity:b,referrerPolicy:u})}};var al=(function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n})(al||{});var Pp=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,i="OK"){this.headers=t.headers||new rl,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}};var Cg=class n extends Pp{constructor(t={}){super(t)}type=al.ResponseHeader;clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var Fp=class n extends Pp{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=al.Response;clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}};var il=class extends Pp{name="HttpErrorResponse";message;error;ok=false;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}};var p2=200;var EY=204;var TY=/^\)\]\}',?\n/;var Gwe=1024*1024;var h2=new be("",{factory:()=>null});var L_=(()=>{class n{fetchImpl=N(ZI,{optional:true})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=N($e);destroyRef=N(kn);maxResponseSize=N(h2);handle(e){return new kt(i=>{let a=new AbortController,r=false,o={next:l=>{l.type===al.Response&&(r=true),i.next(l)},error:l=>{r=true,i.error(l)},complete:()=>{r=true,i.complete()}};this.doRequest(e,a.signal,o).then(e1,l=>o.error(new il({error:l})));let s;return e.timeout&&(s=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{a.signal.aborted||a.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{s!==void 0&&clearTimeout(s),!r&&!a.signal.aborted&&a.abort()}})}doRequest(e,i,a){return nt(this,null,function*(){let r=this.createRequestInit(e),o;try{let x=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,Y({signal:i},r)));kY(x),a.next({type:al.Sent}),o=yield x}catch(x){a.error(new il({error:x,status:x.status??0,statusText:x.statusText,url:e.urlWithParams,headers:x.headers}));return}let s=new rl(o.headers),l=o.statusText,c=o.url||e.urlWithParams,d=o.status,m=null,b=e.reportProgress||e.reportDownloadProgress;if(b&&a.next(new Cg({headers:s,status:d,statusText:l,url:c})),o.body){let x=o.headers.get(xg)??"",w=o.headers.get("content-length"),C=w!==null?Number(w):NaN;this.maxResponseSize!==null&&Number.isFinite(C)&&C>this.maxResponseSize&&(yield o.body.cancel(),s2(this.maxResponseSize));let I=[],O=o.body.getReader(),E=0,R,D,F=typeof Zone<"u"&&Zone.current,z=false;if(yield this.ngZone.runOutsideAngular(()=>nt(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield O.cancel(),z=true;break}let{done:$,value:H}=yield O.read();if($)break;if(I.push(H),E+=H.length,this.maxResponseSize!==null&&E>this.maxResponseSize&&(yield O.cancel(),s2(this.maxResponseSize)),b){D=e.responseType==="text"?(D??"")+(R??=l2(x)).decode(H,{stream:true}):void 0;let me=()=>a.next({type:al.DownloadProgress,total:Number.isFinite(C)?C:void 0,loaded:E,partialText:D});F?F.run(me):me()}}})),z){a.complete();return}let ie=this.concatChunks(I,E);try{m=this.parseBody(e,ie,x,d)}catch($){a.error(new il({error:$,headers:new rl(o.headers),status:o.status,statusText:o.statusText,url:o.url||e.urlWithParams}));return}}d===0&&(d=m?p2:0);let u=d>=200&&d<300,f=o.redirected,g=o.type;u?(a.next(new Fp({body:m,headers:s,status:d,statusText:l,url:c,redirected:f,responseType:g})),a.complete()):a.error(new il({error:m,headers:s,status:d,statusText:l,url:c,redirected:f,responseType:g}))})}parseBody(e,i,a,r){switch(e.responseType){case"json":let o=new TextDecoder().decode(i).replace(TY,"");if(o==="")return null;try{return JSON.parse(o)}catch(s){if(r<200||r>=300)return o;throw s}case"text":return l2(a).decode(i);case"blob":return new Blob([i],{type:a});case"arraybuffer":return i.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new rt(2824,false);let i={},a;if(a=e.credentials,e.withCredentials&&(a="include"),e.headers.forEach((r,o)=>i[r]=o.join(",")),e.headers.has(F_)||(i[F_]=u2),!e.headers.has(xg)){let r=e.detectContentTypeHeader();r!==null&&(i[xg]=r)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:a,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,i){let a=new Uint8Array(i),r=0;for(let o of e)a.set(o,r),r+=o.length;return a}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var ZI=class{};function e1(){}function kY(n){n.then(e1,e1)}function s2(n){throw new rt(-2825,false)}var MY=/charset=\s*["']?([^;"'\s]+)["']?/i;function l2(n){let t=n.match(MY);if(t!==null)try{return new TextDecoder(t[1])}catch(e){}return new TextDecoder}var DY=new be("",{factory:()=>true});var AY="XSRF-TOKEN";var RY=new be("",{factory:()=>AY});var OY="X-XSRF-TOKEN";var PY=new be("",{factory:()=>OY});var FY=(()=>{class n{cookieName=N(RY);doc=N(gt);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=fg(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var f2=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:function(i){let a=null;return i?a=new(i||n):a=qe(FY),a},providedIn:"root"})}return n})();function g2(n,t){if(!N(DY)||n.method==="GET"||n.method==="HEAD")return t(n);try{let a=N(Rp).href,{origin:r}=new URL(a),{origin:o}=new URL(n.url,r);if(r!==o)return t(n)}catch(a){return t(n)}let e=N(f2).getToken(),i=N(PY);return e!=null&&!n.headers.has(i)&&(n=n.clone({headers:n.headers.set(i,e)})),t(n)}function b2(n,t){return t(n)}function LY(n,t){return(e,i)=>t.intercept(e,{handle:a=>n(a,i)})}function VY(n,t,e){return(i,a)=>lp(e,()=>t(i,r=>n(r,a)))}var y2=new be("");var n1=new be("",{factory:()=>[g2]});var v2=new be("");var i1=new be("",{factory:()=>true});function BY(){let n=null;return(t,e)=>{n===null&&(n=(N(y2,{optional:true})??[]).reduceRight(LY,b2));let i=N(yp);if(N(i1)){let r=i.add();return n(t,e).pipe(io(r))}else return n(t,e)}}var B_=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:function(i){let a=null;return i?a=new(i||n):a=qe(L_),a},providedIn:"root"})}return n})();var V_=(()=>{class n{backend;injector;chain=null;pendingTasks=N(yp);contributeToStability=N(i1);constructor(e,i){this.backend=e,this.injector=i}handle(e){if(this.chain===null){let a=this.injector.get(j_,null,{skipSelf:true}),r=a!==null&&this.backend===a,o=this.injector.get(v2,[],r?{self:true}:void 0),s=Array.from(new Set([...this.injector.get(n1),...o]));this.chain=s.reduceRight((l,c)=>VY(l,c,this.injector),b2)}let i=this.chain;if(this.contributeToStability){let a=this.pendingTasks.add();return Li(()=>i(e,r=>this.backend.handle(r))).pipe(io(a))}else return Li(()=>i(e,a=>this.backend.handle(a)))}static \u0275fac=function(i){return new(i||n)(qe(B_),qe($i))};static \u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var j_=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:function(i){let a=null;return i?a=new(i||n):a=qe(V_),a},providedIn:"root"})}return n})();function QI(n,t){return Y({body:t},n)}var ur=(()=>{class n{handler;constructor(e){this.handler=e}request(e,i,a={}){let r;if(e instanceof Op)r=e;else{let l;a.headers instanceof rl?l=a.headers:l=new rl(a.headers);let c;a.params&&(a.params instanceof vs?c=a.params:c=new vs({fromObject:a.params})),r=new Op(e,i,a.body!==void 0?a.body:null,{headers:l,context:a.context,params:c,reportProgress:a.reportProgress,reportUploadProgress:a.reportUploadProgress,reportDownloadProgress:a.reportDownloadProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials,transferCache:a.transferCache,keepalive:a.keepalive,priority:a.priority,cache:a.cache,mode:a.mode,redirect:a.redirect,credentials:a.credentials,referrer:a.referrer,referrerPolicy:a.referrerPolicy,integrity:a.integrity,timeout:a.timeout})}let o=Kt(r).pipe(_f(l=>this.handler.handle(l)));if(e instanceof Op||a.observe==="events")return o;let s=o.pipe($n(l=>l instanceof Fp));switch(a.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(Ut(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new rt(2806,false);return l.body}));case"blob":return s.pipe(Ut(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new rt(2807,false);return l.body}));case"text":return s.pipe(Ut(l=>{if(l.body!==null&&typeof l.body!="string")throw new rt(2808,false);return l.body}));default:return s.pipe(Ut(l=>l.body))}case"response":return s;default:throw new rt(2809,false)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new vs().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,a={}){return this.request("PATCH",e,QI(a,i))}post(e,i,a={}){return this.request("POST",e,QI(a,i))}put(e,i,a={}){return this.request("PUT",e,QI(a,i))}static \u0275fac=function(i){return new(i||n)(qe(j_))};static \u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var jY=/^\)\]\}',?\n/;var t1=(()=>{class n{xhrFactory;tracingService=N(Po,{optional:true});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new rt(-2800,false);let i=this.xhrFactory;return Kt(null).pipe(Wn(()=>new kt(r=>{let o=i.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=true),e.headers.forEach((C,I)=>o.setRequestHeader(C,I.join(","))),e.headers.has(F_)||o.setRequestHeader(F_,u2),!e.headers.has(xg)){let C=e.detectContentTypeHeader();C!==null&&o.setRequestHeader(xg,C)}if(e.timeout&&(o.timeout=e.timeout),e.responseType){let C=e.responseType.toLowerCase();o.responseType=C!=="json"?C:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let C=o.statusText||"OK",I=new rl(o.getAllResponseHeaders()),O=o.responseURL||e.url;return l=new Cg({headers:I,status:o.status,statusText:C,url:O}),l},d=this.maybePropagateTrace(()=>{let{headers:C,status:I,statusText:O,url:E}=c(),R=null;I!==EY&&(R=typeof o.response>"u"?o.responseText:o.response),I===0&&(I=R?p2:0);let D=I>=200&&I<300;if(e.responseType==="json"&&typeof R=="string"){let F=R;R=R.replace(jY,"");try{R=R!==""?JSON.parse(R):null}catch(z){R=F,D&&(D=false,R={error:z,text:R})}}D?(r.next(new Fp({body:R,headers:C,status:I,statusText:O,url:E||void 0})),r.complete()):r.error(new il({error:R,headers:C,status:I,statusText:O,url:E||void 0}))}),m=this.maybePropagateTrace(C=>{let{url:I}=c(),O=new il({error:C,status:o.status||0,statusText:o.statusText||"Unknown Error",url:I||void 0});r.error(O)}),b=m;e.timeout&&(b=this.maybePropagateTrace(C=>{let{url:I}=c(),O=new il({error:new DOMException("Request timed out","TimeoutError"),status:o.status||0,statusText:o.statusText||"Request timeout",url:I||void 0});r.error(O)}));let u=false,f=this.maybePropagateTrace(C=>{u||(r.next(c()),u=true);let I={type:al.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),e.responseType==="text"&&o.responseText&&(I.partialText=o.responseText),r.next(I)}),g=this.maybePropagateTrace(C=>{let I={type:al.UploadProgress,loaded:C.loaded};C.lengthComputable&&(I.total=C.total),r.next(I)});o.addEventListener("load",d),o.addEventListener("error",m),o.addEventListener("timeout",b),o.addEventListener("abort",m);let x=e.reportProgress||e.reportUploadProgress,w=e.reportProgress||e.reportDownloadProgress;return w&&o.addEventListener("progress",f),x&&s!==null&&o.upload&&o.upload.addEventListener("progress",g),o.send(s),r.next({type:al.Sent}),()=>{o.removeEventListener("error",m),o.removeEventListener("abort",m),o.removeEventListener("load",d),o.removeEventListener("timeout",b),w&&o.removeEventListener("progress",f),x&&s!==null&&o.upload&&o.upload.removeEventListener("progress",g),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(i){return new(i||n)(qe(HI))};static \u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var z_=(function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n[n.Xhr=7]="Xhr",n})(z_||{});function _2(n,t){return{\u0275kind:n,\u0275providers:t}}function Sg(...n){let t=[ur,L_,V_,{provide:j_,useExisting:V_},{provide:B_,useFactory:()=>N(L_)},{provide:n1,useValue:g2,multi:true}];for(let e of n)t.push(...e.\u0275providers);return rd(t)}var c2=new be("");function wg(){return _2(z_.LegacyInterceptors,[{provide:c2,useFactory:BY},{provide:n1,useExisting:c2,multi:true}])}function Ng(){return _2(z_.Xhr,[t1,{provide:B_,useExisting:t1}])}var uo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=We({token:n,factory:function(i){let a=null;return i?a=new(i||n):a=qe(zY),a},providedIn:"root"})}return n})();var zY=(()=>{class n extends uo{_doc=N(gt);sanitize(e,i){if(i==null)return null;switch(e){case Un.NONE:return i;case Un.HTML:return Qs(i,"HTML")?co(i):c_(this._doc,String(i)).toString();case Un.STYLE:return Qs(i,"Style")?co(i):i;case Un.SCRIPT:if(Qs(i,"Script"))return co(i);throw new rt(5200,false);case Un.URL:return Qs(i,"URL")?co(i):Kf(String(i));case Un.RESOURCE_URL:if(Qs(i,"ResourceURL"))return co(i);throw new rt(-5201,false);default:throw new rt(5202,false)}}bypassSecurityTrustHtml(e){return zN(e)}bypassSecurityTrustStyle(e){return UN(e)}bypassSecurityTrustScript(e){return HN(e)}bypassSecurityTrustUrl(e){return YN(e)}bypassSecurityTrustResourceUrl(e){return GN(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var r1={production:true};var UY={schedule(n,t){let e=setTimeout(n,t);return()=>clearTimeout(e)}};function HY(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function YY(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}var o1;function GY(n,t){if(!o1){let e=Element.prototype;o1=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE?o1.call(n,t):false}function $Y(n){let t={};return n.forEach(({propName:e,templateName:i,transform:a})=>{t[HY(i)]=[e,a]}),t}function WY(n,t){return mg(n).inputs}function JY(n,t){let e=n.childNodes,i=t.map(()=>[]),a=-1;t.some((r,o)=>r==="*"?(a=o,true):false);for(let r=0,o=e.length;r<o;++r){let s=e[r],l=qY(s,t,a);l!==-1&&i[l].push(s)}return i}function qY(n,t,e){let i=e;return YY(n)&&t.some((a,r)=>a!=="*"&&GY(n,a)?(i=r,true):false),i}var KY=10;var s1=class{component;componentMirror;inputMap=new Map;constructor(t){this.component=t,this.componentMirror=mg(t);for(let e of this.componentMirror.inputs)this.inputMap.set(e.propName,e.templateName)}create(t){return new l1(this.component,t,this.inputMap)}};var l1=class{component;injector;inputMap;eventEmitters=new Bs(1);events=this.eventEmitters.pipe(Wn(t=>ni(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,i){this.component=t,this.injector=e,this.inputMap=i,this.ngZone=this.injector.get($e),this.appRef=this.injector.get(Wa),this.cdScheduler=e.get(ao),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=UY.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},KY))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),uI(this.componentRef.hostView)&&(pI(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let e=st.create({providers:[],parent:this.injector}),i=JY(t,mg(this.component).ngContentSelectors);this.componentRef=Ap(this.component,{environmentInjector:this.injector,elementInjector:e,hostElement:t,projectableNodes:i}),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=mg(this.component).outputs.map(({propName:i,templateName:a})=>{let r=t.instance[i];return new kt(o=>{let s=r.subscribe(l=>o.next({name:a,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}};var c1=class extends HTMLElement{ngElementEventsSubscription=null};function Lp(n,t){let e=WY(n),i=t.strategyFactory||new s1(n),a=$Y(e);class r extends c1{injector;static observedAttributes=Object.keys(a);get ngElementStrategy(){if(!this._ngElementStrategy){let s=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l,transform:c})=>{if(!Object.hasOwn(this,l))return;let d=this[l];delete this[l],s.setInputValue(l,d,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(s){super(),this.injector=s}attributeChangedCallback(s,l,c,d){let[m,b]=a[s];this.ngElementStrategy.setInputValue(m,c,b)}connectedCallback(){let s=false;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=true),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{let l=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(l)})}}return e.forEach(({propName:o,transform:s,isSignal:l})=>{Object.defineProperty(r.prototype,o,{get(){let c=this.ngElementStrategy.getInputValue(o);return l&&$a(c)?c():c},set(c){this.ngElementStrategy.setInputValue(o,c,s)},configurable:true,enumerable:true})}),r}var H_=class{constructor(){this.ontologies=[],this.valueSets=[],this.classes=[],this.branches=[],this.actions=[]}};var Y_=class{constructor(){this.valueConstraints=new H_,this.inputText=""}};var G_=class{constructor(){this.parameterObject=new Y_,this.page=1,this.pageSize=50}};var Di=(()=>{class n{constructor(){this.eventHandler=null,this.readyEmitted=false}injectEventHandler(e){let i=this.eventHandler!==null;this.eventHandler=e,i&&this.trace('CEDAR Embeddable Editor: "eventHandler" replaced; this handler receives from now on.')}emit(e,i,a=null){let r=this.eventHandler,o=r?.[e];if(typeof o=="function")try{o.call(r,i,a)}catch(s){console.error("CEE ERROR: the injected eventHandler threw from "+e+"()"),console.error(s)}}trace(e){console.log("CEE TRACE: "+e),this.emit("trace",e)}traceGroup(e,i){console.log("CEE TRACE: "+e+" : "+i),this.emit("trace",e+" : "+i)}traceObject(e,i){console.log("CEE TRACE: "+e),console.log(i),this.emit("trace",e,i)}error(e){console.error("CEE ERROR: "+e),this.emit("error",e)}errorObject(e,i){console.error("CEE ERROR: "+e),console.error(i),this.emit("error",e,i)}valueChanged(e,i){let a=this.eventHandler,r=a?.valueChanged;if(typeof r=="function")try{r.call(a,[...e],i)}catch(o){console.error("CEE ERROR: the injected eventHandler threw from valueChanged()"),console.error(o)}}ready(){if(this.readyEmitted)return;this.readyEmitted=true;let e=this.eventHandler,i=e?.ready;if(typeof i=="function")try{i.call(e)}catch(a){console.error("CEE ERROR: the injected eventHandler threw from ready()"),console.error(a)}}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var x2="bioportal/integrated-search";var ol=(()=>{class n{constructor(e,i){this.http=e,this.messageHandlerService=i,this.integratedSearchUrl=null,this.reportedUnconfigured=false}setIntegratedSearchUrl(e){this.integratedSearchUrl=e}getData(e,i){let a=new G_;a.parameterObject.inputText=e,a.parameterObject.valueConstraints.branches=i.controlledInfo.branches,a.parameterObject.valueConstraints.classes=i.controlledInfo.classes,a.parameterObject.valueConstraints.ontologies=i.controlledInfo.ontologies,a.parameterObject.valueConstraints.valueSets=i.controlledInfo.valueSets,a.parameterObject.valueConstraints.actions=i.controlledInfo.actions;let r=this.integratedSearchUrl;if(r===null)return this.reportUnconfigured(),qc(()=>new Error("terminologyBaseUrl is not configured"));let o=Math.floor(Math.random()*2e3);return Ma(o).pipe(Wn(()=>this.http.post(r,a)),Ut(s=>this.toTerms(s,e)))}reportUnconfigured(){this.reportedUnconfigured||(this.reportedUnconfigured=true,this.messageHandlerService.error('CEDAR Embeddable Editor: controlled-term search is off, because "terminologyBaseUrl" is not configured. Set it to the CEDAR terminology server, ending in a slash.'))}toTerms(e,i){return e==null?[]:Array.isArray(e.collection)?e.collection.map(a=>({iri:a["@id"],label:a.prefLabel??""})):(this.messageHandlerService.errorObject(i||"empty string",e),[])}static{this.\u0275fac=function(i){return new(i||n)(qe(ur),qe(Di))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var XY={5846(n,t,e){t.JsonReaderBehavior=t.C=void 0;let i=e(7639);t.C={STRICT:"strict",FEBRUARY_2024:"february-2024"};class a extends i.ReaderWriterBehavior{value;constructor(o,s){super(s),this.value=o}getValue(){return this.value}static STRICT=new a(t.C.STRICT,false);static FEBRUARY_2024=new a(t.C.FEBRUARY_2024,true)}t.JsonReaderBehavior=a},2022(n,t,e){t.JsonWriterBehavior=t.C=void 0;let i=e(7639);t.C={STRICT:"strict",FEBRUARY_2024:"february-2024"};class a extends i.ReaderWriterBehavior{value;_outputPages;_usePropertiesAtLanguage;_includeSkosNotationForLinksAndControlled;constructor(o,s,l,c,d){super(d),this.value=o,this._outputPages=s,this._usePropertiesAtLanguage=l,this._includeSkosNotationForLinksAndControlled=c}getValue(){return this.value}static STRICT=new a(t.C.STRICT,false,true,true,false);static FEBRUARY_2024=new a(t.C.FEBRUARY_2024,true,false,false,true);outputPages(){return this._outputPages}usePropertiesAtLanguage(){return this._usePropertiesAtLanguage}includeSkosNotationForLinksAndControlled(){return this._includeSkosNotationForLinksAndControlled}}t.JsonWriterBehavior=a},7639(n,t){t.ReaderWriterBehavior=void 0,t.ReaderWriterBehavior=class{_useWarningForKnownIssues;constructor(e){this._useWarningForKnownIssues=e}useWarningForKnownIssues(){return this._useWarningForKnownIssues}}},1395(n,t,e){t.YamlReaderBehavior=t.L=void 0;let i=e(7639);t.L={STRICT:"strict"};class a extends i.ReaderWriterBehavior{value;constructor(o,s){super(s),this.value=o}getValue(){return this.value}static STRICT=new a(t.L.STRICT,false)}t.YamlReaderBehavior=a},9411(n,t,e){t.YamlWriterBehavior=t.D=void 0;let i=e(7639);t.D={STRICT:"strict"};class a extends i.ReaderWriterBehavior{value;constructor(o,s){super(s),this.value=o}getValue(){return this.value}static STRICT=new a(t.D.STRICT,false)}t.YamlWriterBehavior=a},6568(n,t,e){t.CedarBuilders=void 0;let i=e(766),a=e(1762),r=e(4925),o=e(7889),s=e(1259),l=e(345),c=e(2875),d=e(8084),m=e(3675),b=e(9497),u=e(1667),f=e(2052),g=e(4675),x=e(9916),w=e(3138),C=e(2703),I=e(9521),O=e(5795),E=e(7674),R=e(9105),D=e(1513),F=e(7328),z=e(2376),ie=e(3914),$=e(7162),H=e(3474),me=e(9062),J=e(6610);t.CedarBuilders=class{static templateBuilder(){return new i.TemplateBuilder}static templateElementBuilder(){return new a.TemplateElementBuilder}static templateInstanceBuilder(){return new r.TemplateInstanceBuilder}static textFieldBuilder(){return o.TextFieldBuilderImpl.create()}static textAreaBuilder(){return s.TextAreaBuilderImpl.create()}static temporalFieldBuilder(){return l.TemporalFieldBuilderImpl.create()}static phoneNumberFieldBuilder(){return d.PhoneNumberFieldBuilderImpl.create()}static numericFieldBuilder(){return m.NumericFieldBuilderImpl.create()}static emailFieldBuilder(){return u.EmailFieldBuilderImpl.create()}static attributeValueFieldBuilder(){return f.AttributeValueFieldBuilderImpl.create()}static youtubeFieldBuilder(){return E.StaticYoutubeFieldBuilderImpl.create()}static sectionBreakFieldBuilder(){return O.StaticSectionBreakFieldBuilderImpl.create()}static richTextFieldBuilder(){return I.StaticRichTextFieldBuilderImpl.create()}static pageBreakFieldBuilder(){return C.StaticPageBreakFieldBuilderImpl.create()}static imageFieldBuilder(){return w.StaticImageFieldBuilderImpl.create()}static linkFieldBuilder(){return b.LinkFieldBuilderImpl.create()}static extRorFieldBuilder(){return F.ExtRorFieldBuilderImpl.create()}static extOrcidFieldBuilder(){return z.ExtOrcidFieldBuilderImpl.create()}static extPfasFieldBuilder(){return ie.ExtPfasFieldBuilderImpl.create()}static extPubmedFieldBuilder(){return $.ExtPubmedFieldBuilderImpl.create()}static extRridFieldBuilder(){return H.ExtRridFieldBuilderImpl.create()}static extNihGrantIdFieldBuilder(){return me.ExtNihGrantIdFieldBuilderImpl.create()}static extDoiFieldBuilder(){return J.ExtDoiFieldBuilderImpl.create()}static singleChoiceListFieldBuilder(){return R.SingleChoiceListFieldBuilderImpl.create()}static multipleChoiceListFieldBuilder(){return D.MultipleChoiceListFieldBuilderImpl.create()}static radioFieldBuilder(){return c.RadioFieldBuilderImpl.create()}static checkboxFieldBuilder(){return g.CheckboxFieldBuilderImpl.create()}static controlledTermFieldBuilder(){return x.ControlledTermFieldBuilderImpl.create()}}},1998(n,t,e){t.CedarReaders=void 0;let i=e(2103),a=e(8639);t.CedarReaders=class{static json(){return i.CedarJsonReaders}static yaml(){return a.CedarYamlReaders}}},8446(n,t,e){t.IriSyntax=void 0;let i=e(8748);t.IriSyntax=class{constructor(){}static isValid(a){if(a==="")return false;try{return i.ReaderUtil.assertIdentifier(a,"value"),true}catch(r){return false}}}},8748(n,t,e){t.ReaderUtil=void 0;let i=e(9517),a=e(8802);t.ReaderUtil=class{static assertIdentifierCharacters(r,o){if(r!==null){if(Array.from(r).some(s=>s.charCodeAt(0)<=32||s.charCodeAt(0)>=127&&s.charCodeAt(0)<=159||new RegExp("\\p{Z}","u").test(s)))throw new Error(`Invalid URI at "${o}": unescaped space or control character.`);if(r.indexOf("#")!==r.lastIndexOf("#"))throw new Error(`Invalid URI at "${o}": more than one fragment delimiter.`);if(r.split(/[/?#]/,1)[0].includes(":")&&!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(r))throw new Error(`Invalid URI at "${o}": malformed scheme.`)}}static assertFieldIri(r,o){if(r===null)return;if(r==="")throw new Error(`An empty string is not a URI at "${o}"; write null or leave the key out where there is no value.`);if(typeof r!="string")throw new Error(`Invalid URI/IRI at "${o}": expected string.`);let s=false,l=false;for(let d of r){let m=d.codePointAt(0);if(d==="#"?(l=true,s=false):d!=="?"||l||(s=true),m<128){if(m<=32||m===127||'<>"{}|\\^`'.includes(d))throw new Error(`Invalid URI/IRI at "${o}": unescaped space, control or forbidden character.`)}else if(!(m>=160&&m<=55295||m>=63744&&m<=64975||m>=65008&&m<=65519||m>=65536&&m<=917501&&(65535&m)<=65533||m>=921600&&m<=983037||s&&(m>=57344&&m<=63743||m>=983040&&m<=1048573||m>=1048576&&m<=1114109)))throw new Error(`Invalid URI/IRI at "${o}": forbidden Unicode character.`)}if(/%(?![0-9a-fA-F]{2})/.test(r))throw new Error(`Invalid URI/IRI at "${o}": malformed percent escape.`);let c=Array.from(r,d=>d.codePointAt(0)>=128?encodeURIComponent(d):d).join("");this.assertIdentifierCharacters(c,o)}static assertIri(r,o){if(r!==null&&r!==""){if(typeof r!="string")throw new Error(`Invalid URI at "${o}": expected a string.`);this.assertFieldIri(r,o),this.assertIdentifierCharacters(r,o)}}static getIri(r,o){let s=this.getString(r,o);return this.assertIri(s,o),s}static assertIdentifier(r,o){if(r!==null){if(typeof r!="string")throw new Error(`Invalid URI at "${o}": expected a string.`);if(r==="")throw new Error(`An empty string is not a URI at "${o}"; write null or leave the key out where there is no value.`);if(this.assertIri(r,o),!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(r))throw new Error(`Invalid URI at "${o}": an identifier must be an absolute IRI.`)}}static getIdentifier(r,o){let s=this.getString(r,o);return this.assertIdentifier(s,o),s}static getArtifactIdentifier(r,o,s){return s?this.getIri(r,o):this.getIdentifier(r,o)}static getString(r,o){return Object.hasOwn(r,o)?r[o]:null}static getSingleType(r,o){if(!Object.hasOwn(r,o))return null;let s=r[o];if(!Array.isArray(s))return s;if(s.length>1)throw new Error(`A field value can have at most one ${o}.`);return s.length===1?s[0]:null}static getStringOrEmpty(r,o){return Object.hasOwn(r,o)?r[o]:""}static getBoolean(r,o){return!!Object.hasOwn(r,o)&&r[o]}static getBooleanOrNullOrUndefined(r,o){return Object.hasOwn(r,o)?r[o]===null?null:r[o]:void 0}static getBooleanOrNull(r,o){return Object.hasOwn(r,o)?r[o]===null?null:r[o]:null}static getNumber(r,o){return Object.hasOwn(r,o)?r[o]:null}static getNumericDefault(r,o){if(!Object.hasOwn(r,o)||r[o]===null||r[o]===void 0)return null;let s=r[o];if(typeof s=="number"){if(Number.isFinite(s))return s;throw new Error(`Numeric default at "${o}" must be finite.`)}if(typeof s=="string"){let l=s.trim();if(l==="")return null;if(!/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(l))throw new Error(`Numeric default at "${o}" is not a valid number: "${s}".`);let c=Number(l);if(Number.isFinite(c))return c;throw new Error(`Numeric default at "${o}" must be finite.`)}throw new Error(`Numeric default at "${o}" must be a number or numeric string.`)}static getNumberOrZero(r,o){return Object.hasOwn(r,o)?r[o]:0}static getNumberOrNull(r,o){return Object.hasOwn(r,o)?r[o]:null}static getNode(r,o){return Object.hasOwn(r,o)?r[o]:i.JsonNode.getEmpty()}static getNodeOrNull(r,o){return Object.hasOwn(r,o)?r[o]:null}static getStringList(r,o){return Object.hasOwn(r,o)&&Array.isArray(r[o])?r[o]:[]}static getFilteredStringList(r,o){return Object.hasOwn(r,o)&&Array.isArray(r[o])?r[o].filter(s=>s.trim()!==""):[]}static getStringMap(r,o){if(Object.hasOwn(r,o)&&typeof r[o]=="object"&&!Array.isArray(r[o])&&r[o]!==null){let s=r[o],l=Object.entries(s),c=new Map;for(let[d,m]of l)c.set(d,m);return c}return new Map}static deepClone(r){return this.deepUnfreeze(r)}static deepUnfreeze(r){if(r===null||typeof r!="object"&&typeof r!="function")return r;let o=Array.isArray(r)?r.slice():Y({},r);return Object.getOwnPropertyNames(o).forEach(s=>{o[s]=this.deepUnfreeze(o[s])}),o}static deepFreeze(r){return Object.freeze(r),Object.getOwnPropertyNames(r).forEach(o=>{let s=r[o];s===null||typeof s!="object"&&typeof s!="function"||Object.isFrozen(s)||this.deepFreeze(s)}),r}static getNodeList(r,o){return Object.hasOwn(r,o)&&Array.isArray(r[o])?r[o]:i.JsonNode.getEmptyList()}static getURI(r,o){let s=this.getStringOrEmpty(r,o);return this.assertIri(s,o),new a.Iri(s)}static getIdentifierURI(r,o){let s=this.getStringOrEmpty(r,o);return this.assertIdentifier(s===null?"":s,o),new a.Iri(s)}static deleteNodeKey(r,o){Object.hasOwn(r,o)&&delete r[o]}}},797(n,t,e){t.applySchemaReaderDefaults=function(o,s,l,c){if(!l.equal(new i.JsonPath))return;let d=c==="json"?"bibo:status":"status";s[c==="json"?"pav:version":"version"]==null&&(o.pav_version=a.PavVersion.DEFAULT),s[d]==null&&(o.bibo_status=r.BiboStatus.DRAFT)};let i=e(3188),a=e(1027),r=e(3910)},2103(n,t,e){t.CedarJsonReaders=void 0;let i=e(2763),a=e(8748),r=e(2733),o=e(5291),s=e(7909),l=e(5846),c=e(9232),d=e(4381);class m{behavior;constructor(u){this.behavior=u}static getStrict(){return new m(l.JsonReaderBehavior.STRICT)}static getFebruary2024(){return new m(l.JsonReaderBehavior.FEBRUARY_2024)}static detectArtifactType(u){let f;if(f=typeof u=="string"?JSON.parse(u):u,f&&f["@type"]){let g=a.ReaderUtil.getString(f,r.JsonSchema.atType);return i.CedarArtifactType.forValue(g)}return i.CedarArtifactType.NULL}getReaderForArtifactType(u){switch(u){case i.CedarArtifactType.TEMPLATE:return o.JsonTemplateReader.getStrict();case i.CedarArtifactType.TEMPLATE_ELEMENT:return s.JsonTemplateElementReader.getStrict();case i.CedarArtifactType.TEMPLATE_FIELD:case i.CedarArtifactType.STATIC_TEMPLATE_FIELD:return d.JsonTemplateFieldReader.getStrict();case i.CedarArtifactType.TEMPLATE_INSTANCE:return c.JsonTemplateInstanceReader.getStrict();default:throw new Error(`No JSON reader available for CedarArtifactType: ${u}`)}}getTemplateReader(){return o.JsonTemplateReader.getForBehavior(this.behavior)}getTemplateElementReader(){return s.JsonTemplateElementReader.getForBehavior(this.behavior)}getTemplateFieldReader(){return d.JsonTemplateFieldReader.getForBehavior(this.behavior)}getTemplateInstanceReader(){return c.JsonTemplateInstanceReader.getForBehavior(this.behavior)}}t.CedarJsonReaders=m},7993(n,t,e){t.JsonAbstractArtifactReader=void 0;let i=e(8534),a=e(8748),r=e(2733),o=e(2234),s=e(9857),l=e(2763),c=e(5226),d=e(936),m=e(2787),b=e(3549);class u{static refuseEmptyIdentifier(g,x=r.JsonSchema.atId){let w=a.ReaderUtil.getString(g,x);if(w!==null&&typeof w!="string")throw new Error(`Invalid URI at "${x}": expected a string.`);if(w!==null&&w.trim()==="")throw new Error(`An empty string is not a URI at "${x}"; write null or leave the key out where there is no value.`);a.ReaderUtil.assertIri(w,x)}behavior;knownArtifactType=l.CedarArtifactType.NULL;get lenient(){return this.behavior.useWarningForKnownIssues()}constructor(g){this.behavior=g}readNonReportableAttributes(g,x){u.refuseEmptyIdentifier(x),g.at_id=i.CedarArtifactId.forValue(a.ReaderUtil.getString(x,r.JsonSchema.atId)),g.schema_name=a.ReaderUtil.getString(x,r.JsonSchema.schemaName),g.schema_description=a.ReaderUtil.getStringOrEmpty(x,r.JsonSchema.schemaDescription),g.pav_createdBy=o.CedarUser.forValue(a.ReaderUtil.getString(x,r.JsonSchema.pavCreatedBy)),g.pav_createdOn=s.IsoDate.forValue(a.ReaderUtil.getString(x,r.JsonSchema.pavCreatedOn)),g.oslc_modifiedBy=o.CedarUser.forValue(a.ReaderUtil.getString(x,r.JsonSchema.oslcModifiedBy)),g.pav_lastUpdatedOn=s.IsoDate.forValue(a.ReaderUtil.getString(x,r.JsonSchema.pavLastUpdatedOn))}readAnnotations(g,x){let w=new c.Annotations,C=a.ReaderUtil.getNodeOrNull(x,d.CedarModel.annotations);C!==null&&Object.keys(C).forEach(I=>{let O=C[I];if(O===null||typeof O!="object"||Array.isArray(O))throw new Error(`Value of annotation must be an object at /_annotations/${I}`);let E=a.ReaderUtil.getNode(C,I),R=a.ReaderUtil.getString(E,r.JsonSchema.atId);if(R!==null)w.add(new m.AnnotationAtId(I,R));else{let D=a.ReaderUtil.getString(E,r.JsonSchema.atValue);if(D===null)throw new Error(`Value of annotation must contain an @id or @value at /_annotations/${I}`);w.add(new b.AnnotationAtValue(I,D))}}),w.getSize()>0&&(g.annotations=w)}}t.JsonAbstractArtifactReader=u},3326(n,t,e){t.JsonAbstractInstanceArtifactReader=void 0;let i=e(8534),a=e(8748),r=e(2733),o=e(7993);class s extends o.JsonAbstractArtifactReader{constructor(c){super(c)}readNonReportableAttributes(c,d){a.ReaderUtil.getArtifactIdentifier(d,r.JsonSchema.atId,this.lenient),super.readNonReportableAttributes(c,d),c.schema_isBasedOn=i.CedarArtifactId.forValue(a.ReaderUtil.getArtifactIdentifier(d,r.JsonSchema.schemaIsBasedOn,this.lenient)),c.pav_derivedFrom=i.CedarArtifactId.forValue(a.ReaderUtil.getArtifactIdentifier(d,r.JsonSchema.pavDerivedFrom,this.lenient))}}t.JsonAbstractInstanceArtifactReader=s},978(n,t,e){t.JsonAbstractSchemaArtifactReader=void 0;let i=e(4443),a=e(8333),r=e(8534),o=e(8748),s=e(2733),l=e(5747),c=e(8557),d=e(1027),m=e(3910),b=e(7993);class u extends b.JsonAbstractArtifactReader{constructor(g){super(g)}readNonReportableAttributes(g,x){g.extensions=i.SchemaExtensions.fromJson(x),super.readNonReportableAttributes(g,x),g.title=g.schema_name===null?null:(0,a.internalNameFor)(g.schema_name,this.artifactTypeWord()),g.description=o.ReaderUtil.getString(x,l.TemplateProperty.description),g.schema_schemaVersion=c.SchemaVersion.forValue(o.ReaderUtil.getString(x,s.JsonSchema.schemaVersion)),g.pav_version=d.PavVersion.forValue(o.ReaderUtil.getString(x,s.JsonSchema.pavVersion)),g.bibo_status=m.BiboStatus.forJsonValue(o.ReaderUtil.getString(x,s.JsonSchema.biboStatus)),g.pav_derivedFrom=r.CedarArtifactId.forValue(o.ReaderUtil.getArtifactIdentifier(x,s.JsonSchema.pavDerivedFrom,this.lenient)),g.pav_previousVersion=r.CedarArtifactId.forValue(this.lenient?o.ReaderUtil.getString(x,s.JsonSchema.pavPreviousVersion):o.ReaderUtil.getIdentifier(x,s.JsonSchema.pavPreviousVersion)),g.schema_identifier=o.ReaderUtil.getString(x,s.JsonSchema.schemaIdentifier)}}t.JsonAbstractSchemaArtifactReader=u},8518(n,t){t.JsonArtifactReaderResult=void 0,t.JsonArtifactReaderResult=class{_artifact;_parsingResult;_artifactSourceObject;constructor(e,i,a){this._artifact=e,this._parsingResult=i,this._artifactSourceObject=a}get artifact(){return this._artifact}get parsingResult(){return this._parsingResult}get artifactSourceObject(){return this._artifactSourceObject}}},5510(n,t,e){t.JsonContainerArtifactReader=void 0;let i=e(5588),a=e(978),r=e(1492),o=e(455),s=e(2763),l=e(8748),c=e(2733),d=e(936),m=e(9034),b=e(2888),u=e(9760),f=e(3056),g=e(5793),x=e(2475),w=e(6968),C=e(3812),I=e(3608),O=e(3239),E=e(9519),R=e(7752),D=e(8220),F=new Set([s.CedarArtifactType.TEMPLATE.getValue(),s.CedarArtifactType.TEMPLATE_ELEMENT.getValue(),s.CedarArtifactType.TEMPLATE_FIELD.getValue(),s.CedarArtifactType.STATIC_TEMPLATE_FIELD.getValue()]);class z extends a.JsonAbstractSchemaArtifactReader{artifactTypeWord(){return this.knownArtifactType===s.CedarArtifactType.TEMPLATE?"template":"element"}fieldReader;constructor($){super($),this.fieldReader=D.JsonTemplateFieldReaderInternal.getForBehavior($)}readAndStoreCandidateChildInfo($,H,me,J,q){let ae=s.CedarArtifactType.forValue(l.ReaderUtil.getString($,c.JsonSchema.atType));if(ae!==s.CedarArtifactType.NULL){let de=new o.ChildDeploymentInfo(H);de.atType=ae;let pe=l.ReaderUtil.getNode($,d.CedarModel.ui);return de.uiInputType=m.UiInputType.forValue(l.ReaderUtil.getString(pe,d.CedarModel.inputType)),de.hidden=l.ReaderUtil.getBoolean(pe,d.CedarModel.Ui.hidden),J.add(de),de}return this.reportBlueprintDifference(me,new b.ComparisonError("jtr09",u.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,q.add(H,c.JsonSchema.atType))),null}readReportableAttributes($,H,me,J){f.JsonObjectComparator.comparePrimitive(me,this.knownArtifactType.getValue(),l.ReaderUtil.getString(H,c.JsonSchema.atType),J.add(c.JsonSchema.atType));let q=l.ReaderUtil.getNode(H,c.JsonSchema.atContext),ae=w.JsonContainerArtifactContent.CONTEXT_VERBATIM;f.JsonObjectComparator.compareBothWays(me,ae,q,J.add(c.JsonSchema.atContext),this.behavior,[c.JsonSchema.atLanguage,...Object.keys($.extensions.prefixes)]),f.JsonObjectComparator.comparePrimitive(me,g.JavascriptType.OBJECT.getValue(),l.ReaderUtil.getString(H,d.CedarModel.type),J.add(d.CedarModel.type)),f.JsonObjectComparator.comparePrimitive(me,x.ArtifactSchema.CURRENT.getValue(),l.ReaderUtil.getString(H,d.CedarModel.schema),J.add(d.CedarModel.schema)),$.language=R.Language.forValue(l.ReaderUtil.getString(q,c.JsonSchema.atLanguage))}parseChildren($,H,me,J,q){for(let ae of $.children){let de=l.ReaderUtil.getNode(H,ae.name),pe=q.add(c.JsonSchema.properties,ae.name);if(ae.isMultiInAnyWay()&&(de=l.ReaderUtil.getNode(de,c.JsonSchema.items),pe=pe.add(c.JsonSchema.items)),ae.atType===s.CedarArtifactType.STATIC_TEMPLATE_FIELD){let Fe=this.fieldReader.readFromObjectInternal(de,ae,pe),Me=Fe.field.createDeploymentBuilder(ae.name).withLabel(ae.label).withDescription(ae.description);Me.withHidden(ae.hidden);let ut=Me.build();me.addChild(Fe.field,ut),J.merge(Fe.parsingResult)}else if(ae.atType===s.CedarArtifactType.TEMPLATE_FIELD){let Fe=this.fieldReader.readFromObjectInternal(de,ae,pe),Me=Fe.field.createDeploymentBuilder(ae.name),ut=ae;Me.withIri(ut.iri).withLabel(ae.label).withDescription(ae.description),ae instanceof E.AbstractFieldChildDeploymentInfo&&Me.withHidden(ae.hidden).withRequiredValue(ae.requiredValue).withRecommendedValue(ae.recommendedValue).withContinuePreviousLine(ae.continuePreviousLine).withValueRecommendationEnabled(ae.valueRecommendationEnabled),Me instanceof I.ChildDeploymentInfoBuilder&&ae instanceof o.ChildDeploymentInfo?Me.withMultiInstance(ae.multiInstance).withMinItems(ae.minItems).withMaxItems(ae.maxItems):Me instanceof O.ChildDeploymentInfoAlwaysMultipleBuilder&&Me.withMinItems(ut.minItems).withMaxItems(ut.maxItems);let zt=Me.build();me.addChild(Fe.field,zt),J.merge(Fe.parsingResult)}else if(ae.atType===s.CedarArtifactType.TEMPLATE_ELEMENT){let Fe=this.getElementReader().readFromObject(de,pe),Me=Fe.element.createDeploymentBuilder(ae.name).withLabel(ae.label).withDescription(ae.description);ae instanceof C.AbstractDynamicChildDeploymentInfo&&Me.withIri(ae.iri),ae instanceof o.ChildDeploymentInfo&&Me.withMultiInstance(ae.multiInstance).withMinItems(ae.minItems).withMaxItems(ae.maxItems),me.addChild(Fe.element,Me.build()),J.merge(Fe.parsingResult)}}}validatePropertiesVsOrder($,H,me,J){for(let q of $.children)H.includes(q.name)||this.reportBlueprintDifference(me,new b.ComparisonError("jtr08",u.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,J.add(d.CedarModel.ui,d.CedarModel.order),q.name,null))}finalizeChildInfo($,H,me,J){let q=new r.ContainerArtifactChildrenInfo;for(let ae of $){let de=H.get(ae);de!=null?q.add(de):this.reportBlueprintDifference(me,new b.ComparisonError("jtr07",u.ComparisonErrorType.UNEXPECTED_KEY_IN_REAL_OBJECT,J.add(d.CedarModel.ui,d.CedarModel.order),null,ae))}return q}getCandidateChildrenInfo($,H,me,J){let q=new r.ContainerArtifactChildrenInfo;return Object.keys($).forEach(ae=>{if(i.ReservedNames.isReservedName(ae)){let de=l.ReaderUtil.getNode($,ae),pe=l.ReaderUtil.getString(de,c.JsonSchema.type)==="array"?l.ReaderUtil.getNode(de,c.JsonSchema.items):de,Fe=pe?.[c.JsonSchema.atType];if((Array.isArray(Fe)?Fe:[Fe]).some(Me=>F.has(Me)))throw new Error(`Child schema uses a reserved instance property name at ${J.add(c.JsonSchema.properties,ae).toString()}`)}if(!H.has(ae)){let de=l.ReaderUtil.getNode($,ae);if(typeof de=="object"&&de!==null){let pe=de,Fe=l.ReaderUtil.getString(de,c.JsonSchema.type);if(Fe=="object")this.readAndStoreCandidateChildInfo(pe,ae,me,q,J.add(c.JsonSchema.properties,ae));else if(Fe=="array"){pe=l.ReaderUtil.getNode(de,c.JsonSchema.items);let Me=this.readAndStoreCandidateChildInfo(pe,ae,me,q,J.add(c.JsonSchema.properties,ae,c.JsonSchema.items));Me!==null&&(Me.multiInstance=true,Me.minItems=l.ReaderUtil.getNumber(de,d.CedarModel.minItems),Me.maxItems=l.ReaderUtil.getNumber(de,d.CedarModel.maxItems))}}}}),q}generateAndValidateRequiredMap($,H,me,J){let q=$.reduce((ae,de)=>(ae.set(de,true),ae),new Map);for(let ae of H)q.has(ae)||this.reportBlueprintDifference(me,new b.ComparisonError("jtr01",u.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,J.add(c.JsonSchema.required),ae));return q}checkRequiredBothWays($,H,me,J,q,ae){let de=$.getChildrenNamesForRequired();for(let pe of de)H.has(pe)||this.reportBlueprintDifference(q,new b.ComparisonError("jtr02",u.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,ae.add(c.JsonSchema.required),pe));for(let pe of me)J.has(pe)||$.has(pe)||this.reportBlueprintDifference(q,new b.ComparisonError("jtr03",u.ComparisonErrorType.UNEXPECTED_KEY_IN_REAL_OBJECT,ae.add(c.JsonSchema.required),pe))}extractUIPreferredLabelsAndDescriptions($,H,me,J){let q=l.ReaderUtil.getStringMap($,d.CedarModel.propertyLabels);if(q!==null)for(let de of H.children)q.has(de.name)&&(de.label=q.get(de.name)??null);let ae=l.ReaderUtil.getStringMap($,d.CedarModel.propertyDescriptions);if(ae!==null)for(let de of H.children)ae.has(de.name)&&(de.description=ae.get(de.name)??null)}reportBlueprintDifference($,H){this.behavior.useWarningForKnownIssues()&&f.JsonObjectComparator.isKnownProductionVariation(H.errorPath)?$.addBlueprintComparisonWarning(H):$.addBlueprintComparisonError(H)}extractIRIMappings($,H,me,J){let q=l.ReaderUtil.getNode($,c.JsonSchema.atContext),ae=l.ReaderUtil.getNode(q,c.JsonSchema.properties);for(let de of H.children)if(this.includeInIRIMapping(de)){if(ae===null||!Object.hasOwn(ae,de.name))continue;let pe=l.ReaderUtil.getNode(ae,de.name),Fe=l.ReaderUtil.getStringList(pe,c.JsonSchema.enum);Fe===null||Fe.length!=1?this.reportBlueprintDifference(me,new b.ComparisonError("jtr06",u.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,J.add(c.JsonSchema.properties,c.JsonSchema.atContext,c.JsonSchema.properties,de.name,c.JsonSchema.enum,0))):de instanceof C.AbstractDynamicChildDeploymentInfo&&(l.ReaderUtil.assertIdentifier(Fe[0],c.JsonSchema.enum),de.iri=Fe[0])}}readInstanceTypeSpecification($,H,me){let J=l.ReaderUtil.getNode(H,c.JsonSchema.properties);if(J!==null){let q=l.ReaderUtil.getNode(J,c.JsonSchema.atType);if(q!==null){let ae=l.ReaderUtil.getNodeList(q,c.JsonSchema.oneOf);ae!==null&&ae.forEach(de=>{let pe=l.ReaderUtil.getStringList(de,c.JsonSchema.enum);if(Object.hasOwn(de,c.JsonSchema.enum)){if(!Array.isArray(de[c.JsonSchema.enum])||pe.length===0)throw new Error("Instance types must be a nonempty array of IRIs");$.instanceTypeSpecifications=pe}})}}}}t.JsonContainerArtifactReader=z},7909(n,t,e){t.JsonTemplateElementReader=void 0;let i=e(797),a=e(936),r=e(2733),o=e(2763),s=e(5747),l=e(8748),c=e(3056),d=e(4036),m=e(3188),b=e(5846),u=e(9932),f=e(4948),g=e(7661),x=e(5510),w=e(1501);class C extends x.JsonContainerArtifactReader{knownArtifactType=o.CedarArtifactType.TEMPLATE_ELEMENT;constructor(O){super(O)}static getStrict(){return new C(b.JsonReaderBehavior.STRICT)}static getFebruary2024(){return new C(b.JsonReaderBehavior.FEBRUARY_2024)}static getForBehavior(O){return new C(O)}getElementReader(){return this}includeInIRIMapping(O){return O.atType!==o.CedarArtifactType.STATIC_TEMPLATE_FIELD}readFromString(O){let E;try{E=JSON.parse(O)}catch(R){E={}}return this.readFromObject(E,new m.JsonPath)}readFromObject(O,E=new m.JsonPath){let R=new d.JsonArtifactParsingResult,D=g.TemplateElement.buildEmptyWithNullValues();return E.getLastComponent()===null&&l.ReaderUtil.getArtifactIdentifier(O,r.JsonSchema.atId,this.lenient),this.readNonReportableAttributes(D,O),(0,i.applySchemaReaderDefaults)(D,O,E,"json"),this.readReportableAttributes(D,O,R,E),this.readAnnotations(D,O),this.readInstanceTypeSpecification(D,O,R),this.readAndValidateChildrenInfo(D,O,R,E),new f.JsonTemplateElementReaderResult(D,R,O)}readNonReportableAttributes(O,E){O.skos_prefLabel=l.ReaderUtil.getString(E,a.CedarModel.skosPrefLabel),O.skos_altLabel=l.ReaderUtil.getFilteredStringList(E,a.CedarModel.skosAltLabel);let R=l.ReaderUtil.getNode(E,a.CedarModel.ui);R!==null&&(O.header=l.ReaderUtil.getString(R,a.CedarModel.header),O.footer=l.ReaderUtil.getString(R,a.CedarModel.footer)),super.readNonReportableAttributes(O,E)}readAndValidateChildrenInfo(O,E,R,D){let F=l.ReaderUtil.getStringList(E,r.JsonSchema.required),z=l.ReaderUtil.getNode(E,r.JsonSchema.properties),ie=this.generateAndValidateRequiredMap(F,w.JsonTemplateElementContent.REQUIRED_PARTIAL,R,D),$=this.getCandidateChildrenInfo(z,w.JsonTemplateElementContent.PROPERTIES_PARTIAL_KEY_MAP,R,D);this.checkRequiredBothWays($,ie,F,w.JsonTemplateElementContent.REQUIRED_PARTIAL_KEY_MAP,R,D);let H=l.ReaderUtil.getNode(E,a.CedarModel.ui);this.extractUIPreferredLabelsAndDescriptions(H,$,R,D),this.extractIRIMappings(z,$,R,D);let me=l.ReaderUtil.getStringList(H,a.CedarModel.order),J=this.finalizeChildInfo(me,$,R,D);this.validatePropertiesVsOrder($,me,R,D),this.validateProperties(J,z,O,R,D),this.parseChildren(J,z,O,R,D)}validateProperties(O,E,R,D,F){let z=l.ReaderUtil.deepClone(w.JsonTemplateElementContent.PROPERTIES_PARTIAL);O.hasAttributeValue()&&(z[r.JsonSchema.atContext][s.TemplateProperty.additionalProperties]=u.JsonTemplateFieldContentDynamic.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE);let ie=z[r.JsonSchema.atContext],$=l.ReaderUtil.getNodeList(ie,r.JsonSchema.required);$!=null&&$.length==0&&l.ReaderUtil.deleteNodeKey(ie,r.JsonSchema.required),w.JsonTemplateElementContent.acceptEitherIdTyping(z,E),c.JsonObjectComparator.compareToLeft(D,z,E,F.add(r.JsonSchema.properties),this.behavior)}}t.JsonTemplateElementReader=C},4948(n,t,e){t.JsonTemplateElementReaderResult=void 0;let i=e(8518);class a extends i.JsonArtifactReaderResult{constructor(o,s,l){super(o,s,l)}get element(){return this._artifact}get elementSourceObject(){return this._artifactSourceObject}}t.JsonTemplateElementReaderResult=a},4381(n,t,e){t.JsonTemplateFieldReader=void 0;let i=e(797),a=e(9517),r=e(4036),o=e(3188),s=e(8748),l=e(2733),c=e(5747),d=e(3056),m=e(2763),b=e(5793),u=e(936),f=e(2475),g=e(9932),x=e(9241),w=e(5933),C=e(6511),I=e(9148),O=e(6291),E=e(8596),R=e(7095),D=e(9251),F=e(9315),z=e(2691),ie=e(1769),$=e(9683),H=e(1468),me=e(9053),J=e(9034),q=e(19),ae=e(2419),de=e(9366),pe=e(4869),Fe=e(8728),Me=e(5846),ut=e(6396),zt=e(855),li=e(978),ht=e(455),qi=e(7752),Ar=e(8244),ct=e(4956),Yi=e(6854),en=e(3028),Ge=e(7004),yn=e(1886),za=e(8583),Ze=e(6591),$t=e(6731);class na extends li.JsonAbstractSchemaArtifactReader{artifactTypeWord(){return"field"}constructor(Pt){super(Pt)}static getStrict(){return new na(Me.JsonReaderBehavior.STRICT)}static getFebruary2024(){return new na(Me.JsonReaderBehavior.FEBRUARY_2024)}static getForBehavior(Pt){return new na(Pt)}static dynamicTypeReaderMap=new Map([[pe.CedarFieldType.TEXT,new x.JsonFieldReaderTextField],[pe.CedarFieldType.TEXTAREA,new $.JsonFieldReaderTextArea],[pe.CedarFieldType.CONTROLLED_TERM,new Fe.JsonFieldReaderControlledTerm],[pe.CedarFieldType.LINK,new R.JsonFieldReaderLink],[pe.CedarFieldType.EXT_ROR,new Ar.JsonFieldReaderExtRor],[pe.CedarFieldType.EXT_ORCID,new ct.JsonFieldReaderExtOrcid],[pe.CedarFieldType.EXT_PFAS,new Yi.JsonFieldReaderExtPfas],[pe.CedarFieldType.EXT_PUBMED,new en.JsonFieldReaderExtPubmed],[pe.CedarFieldType.EXT_RRID,new Ge.JsonFieldReaderExtRrid],[pe.CedarFieldType.EXT_NIH_GRANT_ID,new yn.JsonFieldReaderExtNihGrantId],[pe.CedarFieldType.EXT_DOI,new za.JsonFieldReaderExtDoi],[pe.CedarFieldType.TEMPORAL,new F.JsonFieldReaderTemporal],[pe.CedarFieldType.EMAIL,new z.JsonFieldReaderEmail],[pe.CedarFieldType.NUMERIC,new ie.JsonFieldReaderNumeric],[pe.CedarFieldType.PHONE_NUMBER,new H.JsonFieldReaderPhoneNumber],[pe.CedarFieldType.RADIO,new me.JsonFieldReaderRadio],[pe.CedarFieldType.CHECKBOX,new q.JsonFieldReaderCheckbox],[pe.CedarFieldType.SINGLE_SELECT_LIST,new ae.JsonFieldReaderList],[pe.CedarFieldType.MULTIPLE_SELECT_LIST,new ae.JsonFieldReaderList],[pe.CedarFieldType.ATTRIBUTE_VALUE,new de.JsonFieldReaderAttributeValue],[pe.CedarFieldType.STATIC_PAGE_BREAK,new w.JsonFieldReaderPageBreak],[pe.CedarFieldType.STATIC_SECTION_BREAK,new C.JsonFieldReaderSectionBreak],[pe.CedarFieldType.STATIC_IMAGE,new I.JsonFieldReaderImage],[pe.CedarFieldType.STATIC_RICH_TEXT,new O.JsonFieldReaderRichText],[pe.CedarFieldType.STATIC_YOUTUBE,new E.JsonFieldReaderYoutube]]);readFromString(Pt){let Tt;try{Tt=JSON.parse(Pt)}catch(Qn){Tt={}}return this.readFromObject(Tt)}readFromObject(Pt){let Tt=s.ReaderUtil.getNode(Pt,l.JsonSchema.items);Pt.type==="array"&&s.ReaderUtil.getNode(Tt,u.CedarModel.ui)[u.CedarModel.inputType]==="attribute-value"&&(Pt=Tt);let Qn=ht.ChildDeploymentInfo.standalone(),wi=new o.JsonPath;return this.readFromObjectInternal(Pt,Qn,wi)}readFromObjectInternal(Pt,Tt,Qn){let wi=new r.JsonArtifactParsingResult,Nn=na.readFieldSpecificAttributes(Pt,Tt,wi,Qn);if(Tt instanceof ht.ChildDeploymentInfo&&Tt.isStandalone()&&(Nn instanceof Ze.TextFieldImpl||Nn instanceof $t.ControlledTermFieldImpl)&&(Nn.valueRecommendationEnabled=Tt.valueRecommendationEnabled),Tt instanceof ht.ChildDeploymentInfo&&Tt.isStandalone()){let Qa=s.ReaderUtil.getNode(Pt,u.CedarModel.ui);Nn.hidden=s.ReaderUtil.getBoolean(Qa,u.CedarModel.Ui.hidden),Nn.continuePreviousLine=Tt.continuePreviousLine,Nn.cedarFieldType.recordsRequirement&&(Nn.requiredValue=Tt.requiredValue,Nn.recommendedValue=Tt.recommendedValue)}return Tt instanceof ht.ChildDeploymentInfo&&Tt.isStandalone()&&s.ReaderUtil.getArtifactIdentifier(Pt,l.JsonSchema.atId,this.lenient),this.readNonReportableAttributes(Nn,Pt),(0,i.applySchemaReaderDefaults)(Nn,Pt,Qn,"json"),this.readReportableAttributes(Nn,Pt,wi,Qn),this.readAnnotations(Nn,Pt),new ut.JsonTemplateFieldReaderResult(Nn,wi,Pt)}readNonReportableAttributes(Pt,Tt){super.readNonReportableAttributes(Pt,Tt),Pt.skos_prefLabel=s.ReaderUtil.getString(Tt,u.CedarModel.skosPrefLabel),Pt.skos_altLabel=s.ReaderUtil.getFilteredStringList(Tt,u.CedarModel.skosAltLabel)}readReportableAttributes(Pt,Tt,Qn,wi){let Nn=s.ReaderUtil.getNode(Tt,l.JsonSchema.atContext),Qa=a.JsonNode.getEmpty();Pt.cedarArtifactType==m.CedarArtifactType.TEMPLATE_FIELD?Qa=g.JsonTemplateFieldContentDynamic.CONTEXT_VERBATIM:Pt.cedarArtifactType==m.CedarArtifactType.STATIC_TEMPLATE_FIELD&&(Qa=D.JsonTemplateFieldContentStatic.CONTEXT_VERBATIM),d.JsonObjectComparator.compareBothWays(Qn,Qa,Nn,wi.add(l.JsonSchema.atContext),this.behavior,[l.JsonSchema.atLanguage,...Object.keys(Pt.extensions.prefixes)]),Pt.cedarFieldType===pe.CedarFieldType.ATTRIBUTE_VALUE?d.JsonObjectComparator.comparePrimitive(Qn,b.JavascriptType.STRING.getValue(),s.ReaderUtil.getString(Tt,u.CedarModel.type),wi.add(u.CedarModel.type)):d.JsonObjectComparator.comparePrimitive(Qn,b.JavascriptType.OBJECT.getValue(),s.ReaderUtil.getString(Tt,u.CedarModel.type),wi.add(u.CedarModel.type)),d.JsonObjectComparator.comparePrimitive(Qn,false,s.ReaderUtil.getBoolean(Tt,c.TemplateProperty.additionalProperties),wi.add(c.TemplateProperty.additionalProperties)),d.JsonObjectComparator.comparePrimitive(Qn,f.ArtifactSchema.CURRENT.getValue(),s.ReaderUtil.getString(Tt,u.CedarModel.schema),wi.add(u.CedarModel.schema)),Pt.language=qi.Language.forValue(s.ReaderUtil.getString(Nn,l.JsonSchema.atLanguage))}static readFieldSpecificAttributes(Pt,Tt,Qn,wi){let Nn=m.CedarArtifactType.forValue(s.ReaderUtil.getString(Pt,l.JsonSchema.atType)),Qa=s.ReaderUtil.getNode(Pt,u.CedarModel.ui),Cr=s.ReaderUtil.getString(Qa,u.CedarModel.inputType),Zo=J.UiInputType.forValue(Cr),Zr=this.getCedarFieldType(Pt,Zo);if(Zr===pe.CedarFieldType.NULL)throw new Error(`Unknown uiInputType type: "${Cr}"`);if((Nn==m.CedarArtifactType.TEMPLATE_FIELD||Nn==m.CedarArtifactType.STATIC_TEMPLATE_FIELD)&&Zo!=null){let xa=this.dynamicTypeReaderMap.get(Zr);if(!xa)throw new Error(`
|
|
11
11
|
No reader defined for dynamic input type "${Zr.getValue()}"`);return xa.read(Pt,Tt,Qn,wi)}return zt.UnknownTemplateField.build()}static fieldHasValueConstraint(Pt){let Tt=s.ReaderUtil.getNode(Pt,u.CedarModel.valueConstraints);return s.ReaderUtil.getNodeList(Tt,u.CedarModel.ontologies).length>0||s.ReaderUtil.getNodeList(Tt,u.CedarModel.branches).length>0||s.ReaderUtil.getNodeList(Tt,u.CedarModel.classes).length>0||s.ReaderUtil.getNodeList(Tt,u.CedarModel.valueSets).length>0}static getCedarFieldType(Pt,Tt){let Qn=pe.CedarFieldType.forUiInputType(Tt);if(Qn===pe.CedarFieldType.TEXT||Qn===pe.CedarFieldType.CONTROLLED_TERM){let wi=s.ReaderUtil.getNode(Pt,l.JsonSchema.properties);Qn=Object.prototype.hasOwnProperty.call(wi,l.JsonSchema.atId)&&!Object.prototype.hasOwnProperty.call(wi,l.JsonSchema.atValue)||this.fieldHasValueConstraint(Pt)?pe.CedarFieldType.CONTROLLED_TERM:pe.CedarFieldType.TEXT}return Qn}}t.JsonTemplateFieldReader=na},8220(n,t,e){t.JsonTemplateFieldReaderInternal=void 0;let i=e(3188),a=e(4381),r=e(455);class o extends a.JsonTemplateFieldReader{constructor(l){super(l)}static getForBehavior(l){return new o(l)}readFromObjectInternal(l,c,d){return c=c||r.ChildDeploymentInfo.standalone(),d=d||new i.JsonPath,super.readFromObjectInternal(l,c,d)}}t.JsonTemplateFieldReaderInternal=o},6396(n,t,e){t.JsonTemplateFieldReaderResult=void 0;let i=e(8518);class a extends i.JsonArtifactReaderResult{constructor(o,s,l){super(o,s,l)}get field(){return this._artifact}get fieldSourceObject(){return this._artifactSourceObject}}t.JsonTemplateFieldReaderResult=a},4385(n,t,e){t.JsonTemplateFieldTypeSpecificReader=void 0;let i=e(855),a=e(8748),r=e(936);t.JsonTemplateFieldTypeSpecificReader=class{read(o,s,l,c){return i.UnknownTemplateField.build()}readRequiredAndHidden(o,s){let l=a.ReaderUtil.getNode(o,r.CedarModel.valueConstraints);l!=null&&(s.requiredValue=a.ReaderUtil.getBoolean(l,r.CedarModel.requiredValue),s.recommendedValue=a.ReaderUtil.getBoolean(l,r.CedarModel.ValueConstraints.recommendedValue));let c=a.ReaderUtil.getNode(o,r.CedarModel.ui);c&&(s.hidden=a.ReaderUtil.getBoolean(c,r.CedarModel.Ui.hidden),s.continuePreviousLine=a.ReaderUtil.getBoolean(c,r.CedarModel.Ui.continuePreviousLine),s.valueRecommendationEnabled=a.ReaderUtil.getBoolean(c,r.CedarModel.Ui.valueRecommendationEnabled))}}},9232(n,t,e){t.JsonTemplateInstanceReader=void 0;let i=e(1625),a=e(9167),r=e(2763),o=e(4036),s=e(2888),l=e(9760),c=e(3188),d=e(5846),m=e(3326),b=e(2272),u=e(6537),f=e(8748),g=e(2733),x=e(7723),w=e(5222),C=e(7571),I=e(7548),O=e(8193),E=e(4877),R=e(4465),D=e(3644),F=e(9327),z=e(936),ie=e(350),$=e(4033);class H extends m.JsonAbstractInstanceArtifactReader{knownArtifactType=r.CedarArtifactType.TEMPLATE_INSTANCE;knownKeys={[g.JsonSchema.atId]:true,[g.JsonSchema.atType]:true,[g.JsonSchema.pavDerivedFrom]:true,[g.JsonSchema.schemaIdentifier]:true,[g.JsonSchema.oslcModifiedBy]:true,[g.JsonSchema.pavLastUpdatedOn]:true,[g.JsonSchema.pavCreatedBy]:true,[g.JsonSchema.pavCreatedOn]:true,[g.JsonSchema.schemaDescription]:true,[g.JsonSchema.schemaName]:true,[g.JsonSchema.schemaIsBasedOn]:true,[g.JsonSchema.atContext]:true,[z.CedarModel.annotations]:true};constructor(J){super(J)}static getStrict(){return new H(d.JsonReaderBehavior.STRICT)}static getFebruary2024(){return new H(d.JsonReaderBehavior.FEBRUARY_2024)}static getForBehavior(J){return new H(J)}readFromString(J){let q;try{q=JSON.parse(J)}catch(ae){q={}}return this.readFromObject(q,new c.JsonPath)}readFromObject(J,q){let ae=new o.JsonArtifactParsingResult,de=b.TemplateInstance.buildEmptyWithNullValues();this.readNonReportableAttributes(de,J),de.descriptionWasAbsent=f.ReaderUtil.getString(J,g.JsonSchema.schemaDescription)===null,de.schema_description=de.schema_description??"";let pe=q??new c.JsonPath;return this.readInstanceData(J,de,pe,ae),H.reportEnvelope(J,pe,ae),new u.JsonTemplateInstanceReaderResult(de,ae,J)}static ENVELOPE_KEYS=[g.JsonSchema.atContext,g.JsonSchema.atId,g.JsonSchema.schemaIsBasedOn,g.JsonSchema.pavCreatedOn,g.JsonSchema.pavCreatedBy,g.JsonSchema.oslcModifiedBy,g.JsonSchema.pavLastUpdatedOn];static reportEnvelope(J,q,ae){for(let de of H.ENVELOPE_KEYS){if(!Object.hasOwn(J,de)){ae.addBlueprintComparisonWarning(new s.ComparisonError("JsonTemplateInstanceReader",l.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,q.add(de),de));continue}let pe=f.ReaderUtil.getNode(J,de);(pe==null||de===g.JsonSchema.atContext&&Object.keys(pe).length===0)&&ae.addBlueprintComparisonWarning(new s.ComparisonError("JsonTemplateInstanceReader",l.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,q.add(de),de,null))}}readInstanceData(J,q,ae,de){q.dataContainer=this.readInstanceContainer(J,ae,de),this.readAnnotations(q,J)}readInstanceContainer(J,q,ae){return this.parseContainer(J,q,ae,"template")}isKnownKey(J){return Object.hasOwn(this.knownKeys,J)}parseContainer(J,q,ae,de="element"){let pe=new x.InstanceDataContainer;Object.keys(J).forEach(Me=>{if(!this.isKnownKey(Me)){let ut=f.ReaderUtil.getNode(J,Me);if(Array.isArray(ut)){let zt=[];pe.setValue(Me,zt);let li=ut.some(ht=>ht!==null&&typeof ht=="object"&&Object.hasOwn(ht,g.JsonSchema.atContext));ut.forEach((ht,qi)=>{if(li){if(ht===null||typeof ht!="object"||Array.isArray(ht)||Object.hasOwn(ht,g.JsonSchema.atValue))throw new Error(`Cannot mix fields and element instances in array "${Me}" at index ${qi}`);zt[qi]=this.parseContainer(ht,q.add(Me,qi),ae)}else zt[qi]=this.parseNode(ht,q.add(Me,qi),ae)})}else pe.setValue(Me,this.parseNode(ut,q.add(Me),ae))}});for(let Me of $.AttributeValueNamePolicy.findConflicts(pe,de,true).filter(ut=>ut.path.length===0))ae.addBlueprintComparisonError(new s.ComparisonError("JsonTemplateInstanceReader",l.ComparisonErrorType.VALUE_MISMATCH,q.add(...$.AttributeValueNamePolicy.locationOf(Me)),"a unique, non-reserved attribute-value name",Me.name));this.packAttributeValues(pe);let Fe=Object.hasOwn(J,g.JsonSchema.atContext)?f.ReaderUtil.getNode(J,g.JsonSchema.atContext):null;if(Fe!=null){let Me=Fe;Object.keys(pe.values).forEach(ut=>{let zt=f.ReaderUtil.getString(Me,ut);zt!==null&&pe.setIri(ut,zt)}),Object.keys(pe.values).forEach(ut=>{let zt=pe.values[ut];zt instanceof F.InstanceDataAttributeValueField&&Object.keys(zt.values).forEach(li=>{let ht=f.ReaderUtil.getString(Me,li);ht!==null&&pe.setIri(li,ht)})}),Object.keys(Me).forEach(ut=>{if(Object.hasOwn(ie.JsonTemplateInstanceContent.CONTEXT_VERBATIM,ut))return;let zt=f.ReaderUtil.getString(Me,ut);zt!==null&&pe.setIri(ut,zt)})}if(Object.hasOwn(J,g.JsonSchema.atId)){let Me=f.ReaderUtil.getString(J,g.JsonSchema.atId);if(Me!==null){if(typeof Me!="string")throw new Error(`Invalid URI at "${g.JsonSchema.atId}": expected a string.`);Me.trim()===""?(this.behavior.useWarningForKnownIssues()||H.refuseEmptyIdentifier(J),ae.addBlueprintComparisonWarning(new s.ComparisonError("JsonTemplateInstanceReader",l.ComparisonErrorType.VALUE_MISMATCH,q.add(g.JsonSchema.atId),"an absolute IRI or null while the occurrence awaits server assignment",Me))):this.lenient?f.ReaderUtil.assertIri(Me,g.JsonSchema.atId):f.ReaderUtil.assertIdentifier(Me,g.JsonSchema.atId),pe.id=Me}}return pe}static VALUE_ATOM_KEYS=new Set([g.JsonSchema.atValue,g.JsonSchema.atLanguage,g.JsonSchema.atId,g.JsonSchema.rdfsLabel,g.JsonSchema.atType,z.CedarModel.skosNotation,z.CedarModel.skosPrefLabel]);static isValueNode(J){if(J==null)return false;if(typeof J=="string"||Object.hasOwn(J,g.JsonSchema.atValue))return true;if(Object.hasOwn(J,g.JsonSchema.atContext))return false;let q=Object.keys(J);return q.length>0&&q.every(ae=>H.VALUE_ATOM_KEYS.has(ae))}static readValueNode(J){return J==null?new R.InstanceDataEmptyNode:typeof J=="string"?new D.InstanceDataAttributeValueFieldName(J):H.isValueNode(J)?H.parseDataAtom(J):new R.InstanceDataEmptyNode}parseNode(J,q,ae){if(J==null)return new R.InstanceDataEmptyNode;if(typeof J=="string")return new D.InstanceDataAttributeValueFieldName(J);if(H.isValueNode(J)){let de=H.parseDataAtom(J);return H.reportNullIri(de,q,ae),de}return Object.keys(J).length===0?new R.InstanceDataEmptyNode:this.parseContainer(J,q,ae)}static reportNullIri(J,q,ae){(J instanceof C.InstanceDataLinkAtom||J instanceof O.InstanceDataControlledAtom)&&J.id===null&&ae.addBlueprintComparisonError(new s.ComparisonError("JsonTemplateInstanceReader",l.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,q.add(g.JsonSchema.atId),"an IRI",null))}static parseDataAtom(J){if(Object.hasOwn(J,g.JsonSchema.atId)&&Object.hasOwn(J,g.JsonSchema.atValue))throw new Error("A field cannot contain both @id and @value.");let q=this.parseDataAtomWithoutNotation(J);return"language"in q&&(q.language=f.ReaderUtil.getString(J,g.JsonSchema.atLanguage)),"preferredLabel"in q&&(q.preferredLabel=f.ReaderUtil.getString(J,z.CedarModel.skosPrefLabel)),!("notation"in q)||q instanceof i.InstanceDataNotationAtom||(q.notation=f.ReaderUtil.getString(J,g.JsonSchema.skosNotation)),q}static parseDataAtomWithoutNotation(J){if(Object.hasOwn(J,g.JsonSchema.atValue)){let de=f.ReaderUtil.getString(J,g.JsonSchema.atValue),pe=f.ReaderUtil.getSingleType(J,g.JsonSchema.atType);return pe===null?new w.InstanceDataStringAtom(de,f.ReaderUtil.getString(J,g.JsonSchema.rdfsLabel)):new E.InstanceDataTypedAtom(de,pe,f.ReaderUtil.getString(J,g.JsonSchema.rdfsLabel))}if(Object.hasOwn(J,g.JsonSchema.atId)){f.ReaderUtil.assertFieldIri(f.ReaderUtil.getString(J,g.JsonSchema.atId),g.JsonSchema.atId);let de=f.ReaderUtil.getString(J,g.JsonSchema.atId),pe=f.ReaderUtil.getString(J,g.JsonSchema.rdfsLabel);return pe===null?C.InstanceDataLinkAtom.fromParsedNode(de,f.ReaderUtil.getSingleType(J,g.JsonSchema.atType)):O.InstanceDataControlledAtom.fromParsedNode(de,pe,f.ReaderUtil.getSingleType(J,g.JsonSchema.atType))}let q=f.ReaderUtil.getString(J,g.JsonSchema.rdfsLabel);if(q!==null)return new a.InstanceDataLabelAtom(q,f.ReaderUtil.getSingleType(J,g.JsonSchema.atType));let ae=f.ReaderUtil.getString(J,g.JsonSchema.skosNotation);return ae!==null?new i.InstanceDataNotationAtom(ae,f.ReaderUtil.getSingleType(J,g.JsonSchema.atType)):new I.InstanceDataEmptyAtom(J)}packAttributeValues(J){let q=J.values,ae=[];Object.keys(q).forEach(de=>{let pe=q[de];if(Array.isArray(pe)){let Fe=false;if(pe.forEach((Me,ut)=>{Me instanceof D.InstanceDataAttributeValueFieldName||(Fe=true)}),pe.length>0&&!Fe){let Me=new F.InstanceDataAttributeValueField(de);ae.push(Me),pe.forEach((ut,zt)=>{let li=ut.name;if(li!==null&&Object.hasOwn(q,li)){let ht=q[li];Me.addValue(li,ht)}})}}}),ae.forEach((de,pe)=>{let Fe=de.name;Fe!==null&&(q[Fe]=de,Object.keys(de.values).forEach(Me=>{Object.hasOwn(q,Me)&&delete q[Me]}))}),J.values=q}}t.JsonTemplateInstanceReader=H},6537(n,t,e){t.JsonTemplateInstanceReaderResult=void 0;let i=e(8518);class a extends i.JsonArtifactReaderResult{constructor(o,s,l){super(o,s,l)}get instance(){return this._artifact}get instanceSourceObject(){return this._artifactSourceObject}}t.JsonTemplateInstanceReaderResult=a},5291(n,t,e){t.JsonTemplateReader=void 0;let i=e(797),a=e(936),r=e(2733),o=e(2763),s=e(5747),l=e(8748),c=e(6551),d=e(3056),m=e(4036),b=e(7954),u=e(3188),f=e(5846),g=e(9932),x=e(7909),w=e(5510),C=e(3281);class I extends w.JsonContainerArtifactReader{elementReader;knownArtifactType=o.CedarArtifactType.TEMPLATE;constructor(E){super(E),this.elementReader=x.JsonTemplateElementReader.getForBehavior(E)}static getStrict(){return new I(f.JsonReaderBehavior.STRICT)}static getFebruary2024(){return new I(f.JsonReaderBehavior.FEBRUARY_2024)}static getForBehavior(E){return new I(E)}getElementReader(){return this.elementReader}includeInIRIMapping(E){return E.atType!==o.CedarArtifactType.STATIC_TEMPLATE_FIELD}readFromString(E){let R;try{R=JSON.parse(E)}catch(D){R={}}return this.readFromObject(R)}readFromObject(E,R=new u.JsonPath){let D=new m.JsonArtifactParsingResult,F=C.Template.buildEmptyWithNullValues();return l.ReaderUtil.getArtifactIdentifier(E,r.JsonSchema.atId,this.lenient),this.readNonReportableAttributes(F,E),(0,i.applySchemaReaderDefaults)(F,E,R,"json"),this.readReportableAttributes(F,E,D,R),this.readAnnotations(F,E),this.readInstanceTypeSpecification(F,E,D),this.readAndValidateChildrenInfo(F,E,D,R),new b.JsonTemplateReaderResult(F,D,E)}readNonReportableAttributes(E,R){super.readNonReportableAttributes(E,R);let D=l.ReaderUtil.getNode(R,a.CedarModel.ui);D!==null&&(E.header=l.ReaderUtil.getString(D,a.CedarModel.header),E.footer=l.ReaderUtil.getString(D,a.CedarModel.footer))}readAndValidateChildrenInfo(E,R,D,F){let z=l.ReaderUtil.getStringList(R,r.JsonSchema.required),ie=l.ReaderUtil.getNode(R,r.JsonSchema.properties),$=this.generateAndValidateRequiredMap(z,c.JsonTemplateContent.REQUIRED_PARTIAL,D,F),H=this.getCandidateChildrenInfo(ie,c.JsonTemplateContent.PROPERTIES_PARTIAL_KEY_MAP,D,F);this.checkRequiredBothWays(H,$,z,c.JsonTemplateContent.REQUIRED_PARTIAL_KEY_MAP,D,F);let me=l.ReaderUtil.getNode(R,a.CedarModel.ui);this.extractUIPreferredLabelsAndDescriptions(me,H,D,F),this.extractIRIMappings(ie,H,D,F);let J=l.ReaderUtil.getStringList(me,a.CedarModel.order),q=this.finalizeChildInfo(J,H,D,F);this.validatePropertiesVsOrder(H,J,D,F),this.validateProperties(q,ie,E,D,F),this.parseChildren(q,ie,E,D,F)}validateProperties(E,R,D,F,z){let ie=l.ReaderUtil.deepClone(c.JsonTemplateContent.PROPERTIES_PARTIAL);E.hasAttributeValue()&&(ie=l.ReaderUtil.deepClone(c.JsonTemplateContent.PROPERTIES_PARTIAL),ie[r.JsonSchema.atContext][s.TemplateProperty.additionalProperties]=g.JsonTemplateFieldContentDynamic.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE),a.CedarModel.annotations in R||delete ie[a.CedarModel.annotations];let $=l.ReaderUtil.getNode(l.ReaderUtil.getNode(R,r.JsonSchema.atContext),r.JsonSchema.properties);a.CedarModel.annotations in $||delete l.ReaderUtil.getNode(l.ReaderUtil.getNode(ie,r.JsonSchema.atContext),r.JsonSchema.properties)[a.CedarModel.annotations],d.JsonObjectComparator.compareToLeft(F,ie,R,z.add(r.JsonSchema.properties),this.behavior)}}t.JsonTemplateReader=I},7954(n,t,e){t.JsonTemplateReaderResult=void 0;let i=e(8518);class a extends i.JsonArtifactReaderResult{constructor(o,s,l){super(o,s,l)}get template(){return this._artifact}get templateSourceObject(){return this._artifactSourceObject}}t.JsonTemplateReaderResult=a},8639(n,t,e){t.CedarYamlReaders=void 0;let i=e(2763),a=e(1395),r=e(5677),o=e(8239),s=e(2999),l=e(9946);class c{behavior;isCompact;constructor(m,b=false){this.behavior=m,this.isCompact=b}static getStrict(){return new c(a.YamlReaderBehavior.STRICT)}static getStrictForCompact(){return new c(a.YamlReaderBehavior.STRICT,true)}getTemplateReader(){return r.YamlTemplateReader.getForBehavior(this.behavior,this.isCompact)}getTemplateElementReader(){return o.YamlTemplateElementReader.getForBehavior(this.behavior,this.isCompact)}getTemplateFieldReader(){return s.YamlTemplateFieldReader.getForBehavior(this.behavior,this.isCompact)}getTemplateInstanceReader(){return l.YamlTemplateInstanceReader.getForBehavior(this.behavior)}getReaderForArtifactType(m){switch(m){case i.CedarArtifactType.TEMPLATE:return r.YamlTemplateReader.getForBehavior(this.behavior,this.isCompact);case i.CedarArtifactType.TEMPLATE_ELEMENT:return o.YamlTemplateElementReader.getForBehavior(this.behavior,this.isCompact);case i.CedarArtifactType.TEMPLATE_FIELD:case i.CedarArtifactType.STATIC_TEMPLATE_FIELD:return s.YamlTemplateFieldReader.getForBehavior(this.behavior,this.isCompact);case i.CedarArtifactType.TEMPLATE_INSTANCE:return l.YamlTemplateInstanceReader.getForBehavior(this.behavior);default:throw new Error(`No YAML reader available for CedarArtifactType: ${m}`)}}}t.CedarYamlReaders=c},6575(n,t,e){t.YamlAbstractArtifactReader=void 0;let i=e(4443),a=e(8333),r=e(8534),o=e(2234),s=e(9857),l=e(8557),c=e(1027),d=e(3910),m=e(2763),b=e(5226),u=e(2787),f=e(3549),g=e(8748),x=e(2099),w=e(7752);class C{behavior;knownArtifactType=m.CedarArtifactType.NULL;isCompact;constructor(O,E=false){this.behavior=O,this.isCompact=E}artifactTypeWord(){return this.knownArtifactType===m.CedarArtifactType.TEMPLATE?"template":this.knownArtifactType===m.CedarArtifactType.TEMPLATE_ELEMENT?"element":"field"}readNonReportableAttributes(O,E){if(O.extensions=i.SchemaExtensions.fromYaml(E),C.refuseEmptyIdentifier(E),O.at_id=r.CedarArtifactId.forValue(g.ReaderUtil.getString(E,x.YamlKeys.id)),O.schema_name=g.ReaderUtil.getString(E,x.YamlKeys.name),O.schema_description=g.ReaderUtil.getStringOrEmpty(E,x.YamlKeys.description),O.schema_name!==null){let D=this.artifactTypeWord();O.title=(0,a.internalNameFor)(O.schema_name,D),O.description=`${O.schema_name} ${D} schema generated by the CEDAR Artifact Library`}O.pav_createdBy=o.CedarUser.forValue(g.ReaderUtil.getString(E,x.YamlKeys.createdBy)),O.pav_createdOn=s.IsoDate.forValue(g.ReaderUtil.getString(E,x.YamlKeys.createdOn)),O.oslc_modifiedBy=o.CedarUser.forValue(g.ReaderUtil.getString(E,x.YamlKeys.modifiedBy)),O.pav_lastUpdatedOn=s.IsoDate.forValue(g.ReaderUtil.getString(E,x.YamlKeys.modifiedOn));let R=g.ReaderUtil.getString(E,x.YamlKeys.modelVersion);if(R===null&&!this.isCompact)throw new Error(`No ${x.YamlKeys.modelVersion} present. A document without one is the compact form, which a reader has to be asked for.`);O.schema_schemaVersion=l.SchemaVersion.forValue(R),O.pav_version=c.PavVersion.forValue(g.ReaderUtil.getString(E,x.YamlKeys.version)),O.bibo_status=d.BiboStatus.forYamlValue(g.ReaderUtil.getString(E,x.YamlKeys.status)),O.pav_derivedFrom=r.CedarArtifactId.forValue(g.ReaderUtil.getArtifactIdentifier(E,x.YamlKeys.derivedFrom,this.behavior.useWarningForKnownIssues())),O.pav_previousVersion=r.CedarArtifactId.forValue(g.ReaderUtil.getIdentifier(E,x.YamlKeys.previousVersion)),O.schema_identifier=g.ReaderUtil.getString(E,x.YamlKeys.identifier),O.language=w.Language.forValue(g.ReaderUtil.getString(E,x.YamlKeys.language))}static refuseEmptyIdentifier(O,E=x.YamlKeys.id){let R=g.ReaderUtil.getString(O,E);if(R!==null&&typeof R!="string")throw new Error(`Invalid URI at "${E}": expected a string.`);if(R!==null&&R.trim()==="")throw new Error(`An empty string is not a URI at "${E}"; write null or leave the key out where there is no value.`);g.ReaderUtil.assertIri(R,E)}readAnnotations(O,E,R,D){let F=new b.Annotations,z=g.ReaderUtil.getNode(E,x.YamlKeys.annotations);Object.keys(z).forEach(ie=>{let $=z[ie];if($===null||typeof $!="object"||Array.isArray($))throw new Error(`Expected map value for annotation at /annotations/${ie}`);let H=g.ReaderUtil.getNode(z,ie),me=g.ReaderUtil.getString(H,x.YamlKeys.id),J=g.ReaderUtil.getString(H,x.YamlKeys.value);if(ie!==null)if(me!==null)F.add(new u.AnnotationAtId(ie,me));else{if(J===null)throw new Error(`Annotation must have either a value or id at /annotations/${ie}`);F.add(new f.AnnotationAtValue(ie,J))}}),F.getSize()>0&&(O.annotations=F)}}t.YamlAbstractArtifactReader=C},6532(n,t){t.YamlArtifactReaderResult=void 0,t.YamlArtifactReaderResult=class{_artifact;_parsingResult;_artifactSourceObject;constructor(e,i,a){this._artifact=e,this._parsingResult=i,this._artifactSourceObject=a}get artifact(){return this._artifact}get parsingResult(){return this._parsingResult}get artifactSourceObject(){return this._artifactSourceObject}}},9300(n,t,e){t.YamlContainerArtifactReader=void 0;let i=e(5588),a=e(6575),r=e(2999),o=e(455),s=e(2763),l=e(8748),c=e(2099),d=e(699),m=e(9499),b=e(4869),u=e(3239),f=e(8290),g=e(3608),x=e(513);class w extends a.YamlAbstractArtifactReader{fieldReader;constructor(I,O=false){super(I,O),this.fieldReader=r.YamlTemplateFieldReader.getForBehavior(I,O)}readAndValidateChildrenInfo(I,O,E,R){l.ReaderUtil.getNodeList(O,c.YamlKeys.children).forEach(D=>{let F=l.ReaderUtil.getString(D,c.YamlKeys.type),z=l.ReaderUtil.getString(D,c.YamlKeys.key),ie=m.YamlArtifactType.forValue(F);if(z===null)throw new Error(`A child without a ${c.YamlKeys.key} at ${R.add(c.YamlKeys.children).toString()}`);{if(typeof z!="string")throw new Error(`Child key must be a string at ${R.add(c.YamlKeys.children,c.YamlKeys.key).toString()}`);if(i.ReservedNames.isReservedName(z))throw new Error(`Child schema uses a reserved instance property name at ${R.add(c.YamlKeys.children,z).toString()}`);let $=new o.ChildDeploymentInfo(z);$.atType=s.CedarArtifactType.forYamlArtifactType(ie);let H=l.ReaderUtil.getNode(D,c.YamlKeys.configuration);if($.label=l.ReaderUtil.getString(H,c.YamlKeys.overrideLabel),$.description=l.ReaderUtil.getString(H,c.YamlKeys.overrideDescription),$.multiInstance=l.ReaderUtil.getBoolean(H,c.YamlKeys.multiple),$.multiInstance&&($.minItems=l.ReaderUtil.getNumber(H,c.YamlKeys.minItems)??x.AbstractChildDeploymentInfo.defaultMinItems,$.maxItems=l.ReaderUtil.getNumber(H,c.YamlKeys.maxItems)),$.requiredValue=l.ReaderUtil.getBoolean(H,c.YamlKeys.required),$.recommendedValue=l.ReaderUtil.getBoolean(H,c.YamlKeys.recommended),$.hidden=l.ReaderUtil.getBoolean(H,c.YamlKeys.hidden),$.valueRecommendationEnabled=l.ReaderUtil.getBoolean(H,c.YamlKeys.valueRecommendation),$.iri=l.ReaderUtil.getIdentifier(H,c.YamlKeys.propertyIri),ie.isField()){let me=b.CedarFieldType.forYamlArtifactType(ie);$.uiInputType=me.getUiInputType();let J=this.fieldReader.readFromObject(D,$,R.add(c.YamlKeys.children,z));(0,d.isSizedStaticField)(J.field)&&(J.field.width=l.ReaderUtil.getNumber(H,c.YamlKeys.width),J.field.height=l.ReaderUtil.getNumber(H,c.YamlKeys.height)),$.label=w.entryFor($.label,J.field.schema_name),$.description=w.entryFor($.description,J.field.schema_description);let q=J.field.createDeploymentBuilder($.name).withLabel($.label).withDescription($.description);if(q instanceof f.ChildDeploymentInfoStaticBuilder&&q.withHidden($.hidden),$.atType===s.CedarArtifactType.TEMPLATE_FIELD){let de=q;de.withHidden($.hidden).withIri($.iri).withContinuePreviousLine(l.ReaderUtil.getBoolean(H,c.YamlKeys.continuePreviousLine)).withRecommendedValue($.recommendedValue).withRequiredValue($.requiredValue).withValueRecommendationEnabled($.valueRecommendationEnabled),de instanceof g.ChildDeploymentInfoBuilder&&de.withMultiInstance($.multiInstance).withMinItems($.minItems).withMaxItems($.maxItems)}q instanceof u.ChildDeploymentInfoAlwaysMultipleBuilder&&q.withMinItems(l.ReaderUtil.getNumber(H,c.YamlKeys.minItems)).withMaxItems(l.ReaderUtil.getNumber(H,c.YamlKeys.maxItems));let ae=q.build();I.addChild(J.field,ae)}else{if(!ie.isElement())throw new Error(`Unknown child type "${F}" at ${R.add(c.YamlKeys.children,z).toString()}`);{let me=this.getElementReader().readFromObject(D,$,R.add(c.YamlKeys.children,z)),J=me.element.createDeploymentBuilder(z).withLabel(w.entryFor($.label,me.element.schema_name)).withDescription(w.entryFor($.description,me.element.schema_description)).withIri($.iri).withMultiInstance($.multiInstance).withMinItems($.minItems).withMaxItems($.maxItems).build();I.addChild(me.element,J)}}}})}static entryFor(I,O){return I!==null?I:O}}t.YamlContainerArtifactReader=w},8239(n,t,e){var i=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:true}),t.YamlTemplateElementReader=void 0;let a=e(797),r=e(2763),o=e(3188),s=e(1395),l=e(7661),c=e(455),d=i(e(3198)),m=e(9300),b=e(4646),u=e(1591),f=e(8748),g=e(2099);class x extends m.YamlContainerArtifactReader{knownArtifactType=r.CedarArtifactType.TEMPLATE_ELEMENT;constructor(C,I=false){super(C,I)}static getStrict(){return new x(s.YamlReaderBehavior.STRICT)}static getStrictForCompact(){return new x(s.YamlReaderBehavior.STRICT,true)}static getForBehavior(C,I=false){return new x(C,I)}getElementReader(){return this}readFromString(C){let I;try{I=d.default.parse(C)}catch(O){I={}}return this.readFromObject(I,c.ChildDeploymentInfo.empty(),new o.JsonPath)}readFromObject(C,I,O){let E=new u.YamlArtifactParsingResult,R=l.TemplateElement.buildEmptyWithNullValues();return O.getLastComponent()===null&&f.ReaderUtil.getIdentifier(C,g.YamlKeys.id),this.readNonReportableAttributes(R,C),(0,a.applySchemaReaderDefaults)(R,C,O,"yaml"),this.readAnnotations(R,C,E,O),super.readAndValidateChildrenInfo(R,C,E,O),new b.YamlTemplateElementReaderResult(R,E,C)}readNonReportableAttributes(C,I){super.readNonReportableAttributes(C,I);let O=I[g.YamlKeys.instanceType];if(O!=null&&typeof O!="string"&&(!Array.isArray(O)||O.length===0))throw new Error("Instance types must be an IRI or a nonempty array of IRIs");C.instanceTypeSpecifications=Array.isArray(O)?O:typeof O=="string"?[O]:[],C.skos_prefLabel=f.ReaderUtil.getString(I,g.YamlKeys.prefLabel),C.skos_altLabel=f.ReaderUtil.getFilteredStringList(I,g.YamlKeys.altLabels),C.header=f.ReaderUtil.getString(I,g.YamlKeys.header),C.footer=f.ReaderUtil.getString(I,g.YamlKeys.footer)}}t.YamlTemplateElementReader=x},4646(n,t){t.YamlTemplateElementReaderResult=void 0,t.YamlTemplateElementReaderResult=class{_element;_parsingResult;_elementSourceObject;constructor(e,i,a){this._element=e,this._parsingResult=i,this._elementSourceObject=a}get element(){return this._element}get parsingResult(){return this._parsingResult}get elementSourceObject(){return this._elementSourceObject}}},2999(n,t,e){var i=this&&this.__importDefault||function(Yi){return Yi&&Yi.__esModule?Yi:{default:Yi}};Object.defineProperty(t,"__esModule",{value:true}),t.YamlTemplateFieldReader=void 0;let a=e(797),r=e(3188),o=e(8748),s=e(2763),l=e(3054),c=e(1790),d=e(455),m=e(6575),b=e(1395),u=i(e(3198)),f=e(2099),g=e(9499),x=e(1268),w=e(3168),C=e(384),I=e(1872),O=e(529),E=e(4568),R=e(8568),D=e(3980),F=e(7941),z=e(1404),ie=e(7089),$=e(4329),H=e(7268),me=e(2709),J=e(7124),q=e(4284),ae=e(9299),de=e(1591),pe=e(6651),Fe=e(7123),Me=e(5075),ut=e(7709),zt=e(6089),li=e(8543),ht=e(5907),qi=e(6731),Ar=e(6591);class ct extends m.YamlAbstractArtifactReader{knownArtifactType=s.CedarArtifactType.TEMPLATE_FIELD;constructor(en,Ge=false){super(en,Ge)}static getStrict(){return new ct(b.YamlReaderBehavior.STRICT)}static getStrictForCompact(){return new ct(b.YamlReaderBehavior.STRICT,true)}static getForBehavior(en,Ge=false){return new ct(en,Ge)}static readerMap=new Map([[g.YamlArtifactType.TEXTFIELD,new x.YamlFieldReaderTextField],[g.YamlArtifactType.TEXTAREA,new w.YamlFieldReaderTextArea],[g.YamlArtifactType.CONTROLLED_TERM,new ae.YamlFieldReaderControlledTerm],[g.YamlArtifactType.LINK,new R.YamlFieldReaderLink],[g.YamlArtifactType.EXT_ROR,new pe.YamlFieldReaderExtRor],[g.YamlArtifactType.EXT_ORCID,new Fe.YamlFieldReaderExtOrcid],[g.YamlArtifactType.EXT_PFAS,new Me.YamlFieldReaderExtPfas],[g.YamlArtifactType.EXT_PUBMED,new ut.YamlFieldReaderExtPubmed],[g.YamlArtifactType.EXT_RRID,new zt.YamlFieldReaderExtRrid],[g.YamlArtifactType.EXT_NIH_GRANT_ID,new li.YamlFieldReaderExtNihGrantId],[g.YamlArtifactType.EXT_DOI,new ht.YamlFieldReaderExtDoi],[g.YamlArtifactType.TEMPORAL,new C.YamlFieldReaderTemporal],[g.YamlArtifactType.EMAIL,new l.YamlFieldReaderEmail],[g.YamlArtifactType.NUMERIC,new I.YamlFieldReaderNumeric],[g.YamlArtifactType.PHONE_NUMBER,new $.YamlFieldReaderPhoneNumber],[g.YamlArtifactType.RADIO,new q.YamlFieldReaderRadio],[g.YamlArtifactType.CHECKBOX,new H.YamlFieldReaderCheckbox],[g.YamlArtifactType.SINGLE_SELECT_LIST,new me.YamlFieldReaderSingleSelectList],[g.YamlArtifactType.MULTI_SELECT_LIST,new J.YamlFieldReaderMultiSelectList],[g.YamlArtifactType.ATTRIBUTE_VALUE,new O.YamlFieldReaderAttributeValue],[g.YamlArtifactType.PAGE_BREAK,new E.YamlFieldReaderPageBreak],[g.YamlArtifactType.SECTION_BREAK,new D.YamlFieldReaderSectionBreak],[g.YamlArtifactType.IMAGE,new F.YamlFieldReaderImage],[g.YamlArtifactType.RICH_TEXT,new z.YamlFieldReaderRichText],[g.YamlArtifactType.YOUTUBE,new ie.YamlFieldReaderYoutube]]);readFromString(en){let Ge;try{Ge=u.default.parse(en)}catch(yn){Ge={}}return this.readFromObject(Ge,d.ChildDeploymentInfo.empty(),new r.JsonPath)}readFromObject(en,Ge,yn){let za=new de.YamlArtifactParsingResult,Ze=ct.readFieldSpecificAttributes(en,Ge,za,yn);return yn.getLastComponent()===null&&o.ReaderUtil.getIdentifier(en,f.YamlKeys.id),this.readNonReportableAttributes(Ze,en),(0,a.applySchemaReaderDefaults)(Ze,en,yn,"yaml"),this.readAnnotations(Ze,en,za,yn),new c.YamlTemplateFieldReaderResult(Ze,za,en)}readNonReportableAttributes(en,Ge){super.readNonReportableAttributes(en,Ge),en.skos_prefLabel=o.ReaderUtil.getString(Ge,f.YamlKeys.prefLabel),en.skos_altLabel=o.ReaderUtil.getFilteredStringList(Ge,f.YamlKeys.altLabels),(en instanceof qi.ControlledTermFieldImpl||en instanceof Ar.TextFieldImpl)&&(en.valueRecommendationEnabled=o.ReaderUtil.getBoolean(Ge,f.YamlKeys.valueRecommendation));let yn=o.ReaderUtil.getNode(Ge,f.YamlKeys.configuration);en.hidden=ct.readFlag(yn,Ge,f.YamlKeys.hidden),en.requiredValue=ct.readFlag(yn,Ge,f.YamlKeys.required),en.recommendedValue=ct.readFlag(yn,Ge,f.YamlKeys.recommended),en.continuePreviousLine=ct.readFlag(yn,Ge,f.YamlKeys.continuePreviousLine)}static readFlag(en,Ge,yn){return o.ReaderUtil.getBoolean(en,yn)||o.ReaderUtil.getBoolean(Ge,yn)}static readFieldSpecificAttributes(en,Ge,yn,za){let Ze=g.YamlArtifactType.forValue(o.ReaderUtil.getString(en,f.YamlKeys.type));if(Ze.isField()){let $t=this.readerMap.get(Ze);if(!$t)throw new Error(`No reader defined for dynamic input type "${Ze.getValue()}"`);let na=$t.read(en,Ge,yn,za),zn=s.CedarArtifactType.NULL;return Ze.isStaticField()?zn=s.CedarArtifactType.STATIC_TEMPLATE_FIELD:Ze.isDynamicField()&&(zn=s.CedarArtifactType.TEMPLATE_FIELD),na.cedarArtifactType=zn,na}throw new Error(`Unknown field type "${o.ReaderUtil.getString(en,f.YamlKeys.type)}" at ${za.toString()}`)}}t.YamlTemplateFieldReader=ct},1790(n,t){t.YamlTemplateFieldReaderResult=void 0,t.YamlTemplateFieldReaderResult=class{_field;_parsingResult;_fieldSourceObject;constructor(e,i,a){this._field=e,this._parsingResult=i,this._fieldSourceObject=a}get field(){return this._field}get parsingResult(){return this._parsingResult}get fieldSourceObject(){return this._fieldSourceObject}}},5675(n,t,e){t.YamlTemplateFieldTypeSpecificReader=void 0;let i=e(855),a=e(8748),r=e(2099),o=e(4081),s=e(6145);t.YamlTemplateFieldTypeSpecificReader=class{read(l,c,d,m){return i.UnknownTemplateField.build()}static readAndStoreListValueConstraints(l,c){c.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(l,r.YamlKeys.default);let d=a.ReaderUtil.getNodeList(l,r.YamlKeys.values);d!==null&&d.forEach(m=>{let b=a.ReaderUtil.getString(m,r.YamlKeys.label),u=a.ReaderUtil.getBoolean(m,r.YamlKeys.selected),f=Object.hasOwn(m,r.YamlKeys.selected);if(b!=null){let g=new o.ListOption(b,u,f);c.valueConstraints.literals.push(g)}})}}},9946(n,t,e){var i=this&&this.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(t,"__esModule",{value:true}),t.YamlTemplateInstanceReader=void 0;let a=e(5588),r=e(1625),o=e(9167),s=i(e(3198)),l=e(8534),c=e(1395),d=e(6575),m=e(2234),b=e(9857),u=e(1591),f=e(2099),g=e(8748),x=e(2272),w=e(147),C=e(7723),I=e(5222),O=e(4877),E=e(7571),R=e(8193),D=e(4465),F=e(9327),z=e(4033),ie=e(2888),$=e(6109),H=e(3188);class me extends d.YamlAbstractArtifactReader{constructor(q,ae=false){super(q,ae)}static getStrict(){return new me(c.YamlReaderBehavior.STRICT)}static getStrictForCompact(){return new me(c.YamlReaderBehavior.STRICT,true)}static getForBehavior(q,ae=false){return new me(q,ae)}readFromString(q){let ae;try{ae=s.default.parse(q)}catch(de){ae={}}return this.readFromObject(ae)}readFromObject(q){let ae=new u.YamlArtifactParsingResult,de=x.TemplateInstance.buildEmptyWithNullValues(),pe=q??{};de.schema_name=g.ReaderUtil.getString(pe,f.YamlKeys.name),de.schema_description=g.ReaderUtil.getString(pe,f.YamlKeys.description)??"",de.descriptionWasAbsent=g.ReaderUtil.getString(pe,f.YamlKeys.description)===null,de.at_id=l.CedarArtifactId.forValue(g.ReaderUtil.getIdentifier(pe,f.YamlKeys.id));let Fe=this.behavior.useWarningForKnownIssues();de.schema_isBasedOn=l.CedarArtifactId.forValue(g.ReaderUtil.getArtifactIdentifier(pe,f.YamlKeys.isBasedOn,Fe)),de.pav_derivedFrom=l.CedarArtifactId.forValue(g.ReaderUtil.getArtifactIdentifier(pe,f.YamlKeys.derivedFrom,Fe)),de.pav_createdBy=m.CedarUser.forValue(g.ReaderUtil.getString(pe,f.YamlKeys.createdBy)),de.pav_createdOn=b.IsoDate.forValue(g.ReaderUtil.getString(pe,f.YamlKeys.createdOn)),de.oslc_modifiedBy=m.CedarUser.forValue(g.ReaderUtil.getString(pe,f.YamlKeys.modifiedBy)),de.pav_lastUpdatedOn=b.IsoDate.forValue(g.ReaderUtil.getString(pe,f.YamlKeys.modifiedOn)),this.readAnnotations(de,pe,ae,new H.JsonPath),de.dataContainer=this.parseContainer(pe,true);for(let Me of z.AttributeValueNamePolicy.findConflicts(de.dataContainer,"template",true))ae.addBlueprintComparisonError(new ie.ComparisonError("YamlTemplateInstanceReader",$.YamlComparisonErrorType.VALUE_MISMATCH,new H.JsonPath(...z.AttributeValueNamePolicy.locationOf(Me)),"a unique, non-reserved attribute-value name",Me.name));return new w.YamlTemplateInstanceReaderResult(de,ae,pe)}static RESERVED_KEYS=a.ReservedNames.TEMPLATE_INSTANCE_YAML_KEYS;static ELEMENT_RESERVED_KEYS=a.ReservedNames.NESTED_ELEMENT_INSTANCE_YAML_KEYS;parseContainer(q,ae=false){let de=new C.InstanceDataContainer,pe=g.ReaderUtil.getNode(q,f.YamlKeys.children);pe!==null&&Object.keys(pe).forEach(Me=>{let ut=g.ReaderUtil.getNode(pe,Me)??pe[Me];if(Array.isArray(ut)){let zt=[];de.setValue(Me,zt),ut.forEach((li,ht)=>{zt[ht]=this.parseNode(li)})}else de.setValue(Me,this.parseNode(ut))}),Object.keys(q).forEach(Me=>{if((ae?me.RESERVED_KEYS:me.ELEMENT_RESERVED_KEYS).has(Me))return;let ut=q[Me];if(ut===null||typeof ut!="object"||Array.isArray(ut))return;let zt=new F.InstanceDataAttributeValueField(Me);Object.keys(ut).forEach(li=>{let ht=ut[li];zt.addValue(li,new I.InstanceDataStringAtom(this.parseAttributeValue(ht)))}),de.setValue(Me,zt)});let Fe=g.ReaderUtil.getIdentifier(q,f.YamlKeys.id);return Fe!==null&&(de.id=Fe),de}parseAttributeValue(q){if(typeof q=="string")return q;if(q!==null&&typeof q=="object"&&!Array.isArray(q)){let ae=q[f.YamlKeys.value];return typeof ae=="string"?ae:null}return null}parseNode(q){let ae=this.parseNodeWithoutNotation(q);return q!==null&&typeof q=="object"&&"language"in ae&&(ae.language=g.ReaderUtil.getString(q,f.YamlKeys.language)),q!==null&&typeof q=="object"&&"preferredLabel"in ae&&(ae.preferredLabel=g.ReaderUtil.getString(q,f.YamlKeys.prefLabel)),q===null||typeof q!="object"||!("notation"in ae)||ae instanceof r.InstanceDataNotationAtom||(ae.notation=g.ReaderUtil.getString(q,f.YamlKeys.notation)),ae}parseNodeWithoutNotation(q){if(q==null)return new D.InstanceDataEmptyNode;if(typeof q=="string")return new I.InstanceDataStringAtom(q);if(Object.hasOwn(q,f.YamlKeys.children)||g.ReaderUtil.getString(q,f.YamlKeys.type)==="element-instance")return this.parseContainer(q);if(Object.hasOwn(q,f.YamlKeys.id)&&Object.hasOwn(q,f.YamlKeys.value))throw new Error("A field cannot contain both id and value.");if(Array.isArray(q[f.YamlKeys.datatype]))throw new Error("A field value can have at most one datatype.");if(Object.hasOwn(q,f.YamlKeys.value)){let pe=g.ReaderUtil.getString(q,f.YamlKeys.value),Fe=g.ReaderUtil.getString(q,f.YamlKeys.datatype),Me=g.ReaderUtil.getString(q,f.YamlKeys.label);return Fe===null?new I.InstanceDataStringAtom(pe,Me):new O.InstanceDataTypedAtom(pe,Fe,Me)}if(Object.hasOwn(q,f.YamlKeys.id)){g.ReaderUtil.assertFieldIri(g.ReaderUtil.getString(q,f.YamlKeys.id),f.YamlKeys.id);let pe=g.ReaderUtil.getString(q,f.YamlKeys.id),Fe=g.ReaderUtil.getString(q,f.YamlKeys.label),Me=g.ReaderUtil.getString(q,f.YamlKeys.datatype);return Fe===null?E.InstanceDataLinkAtom.fromParsedNode(pe,Me):R.InstanceDataControlledAtom.fromParsedNode(pe,Fe,Me)}let ae=g.ReaderUtil.getString(q,f.YamlKeys.label);if(ae!==null)return new o.InstanceDataLabelAtom(ae,g.ReaderUtil.getString(q,f.YamlKeys.datatype));let de=g.ReaderUtil.getString(q,f.YamlKeys.notation);return de!==null?new r.InstanceDataNotationAtom(de,g.ReaderUtil.getString(q,f.YamlKeys.datatype)):new D.InstanceDataEmptyNode}}t.YamlTemplateInstanceReader=me},147(n,t,e){t.YamlTemplateInstanceReaderResult=void 0;let i=e(6532);class a extends i.YamlArtifactReaderResult{constructor(o,s,l){super(o,s,l)}get instance(){return this._artifact}get instanceSourceObject(){return this._artifactSourceObject}}t.YamlTemplateInstanceReaderResult=a},5677(n,t,e){var i=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:true}),t.YamlTemplateReader=void 0;let a=e(797),r=e(2763),o=e(8748),s=e(7868),l=e(3188),c=e(1395),d=e(8239),m=e(3281),b=i(e(3198)),u=e(9300),f=e(2099),g=e(1591);class x extends u.YamlContainerArtifactReader{elementReader;knownArtifactType=r.CedarArtifactType.TEMPLATE;constructor(C,I=false){super(C,I),this.elementReader=d.YamlTemplateElementReader.getForBehavior(C,I)}static getStrict(){return new x(c.YamlReaderBehavior.STRICT)}static getStrictForCompact(){return new x(c.YamlReaderBehavior.STRICT,true)}static getForBehavior(C,I=false){return new x(C,I)}getElementReader(){return this.elementReader}readFromString(C){let I;try{I=b.default.parse(C)}catch(O){I={}}return this.readFromObject(I)}readFromObject(C,I=new l.JsonPath){let O=new g.YamlArtifactParsingResult,E=m.Template.buildEmptyWithNullValues();return o.ReaderUtil.getIdentifier(C,f.YamlKeys.id),this.readNonReportableAttributes(E,C),(0,a.applySchemaReaderDefaults)(E,C,I,"yaml"),this.readAnnotations(E,C,O,I),this.readInstanceTypeSpecification(E,C,O),this.readAndValidateChildrenInfo(E,C,O,I),new s.YamlTemplateReaderResult(E,O,C)}readNonReportableAttributes(C,I){super.readNonReportableAttributes(C,I),C.header=o.ReaderUtil.getString(I,f.YamlKeys.header),C.footer=o.ReaderUtil.getString(I,f.YamlKeys.footer)}readInstanceTypeSpecification(C,I,O){let E=I[f.YamlKeys.instanceType];if(E!=null&&typeof E!="string"&&(!Array.isArray(E)||E.length===0))throw new Error("Instance types must be an IRI or a nonempty array of IRIs");C.instanceTypeSpecifications=Array.isArray(E)?E:typeof E=="string"?[E]:[]}}t.YamlTemplateReader=x},7868(n,t){t.YamlTemplateReaderResult=void 0,t.YamlTemplateReaderResult=class{_template;_parsingResult;_templateSourceObject;constructor(e,i,a){this._template=e,this._parsingResult=i,this._templateSourceObject=a}get template(){return this._template}get parsingResult(){return this._parsingResult}get templateSourceObject(){return this._templateSourceObject}}},1888(n,t,e){t.RoundTrip=void 0;let i=e(6396),a=e(2748),r=e(4036),o=e(3056),s=e(455),l=e(3188),c=e(7954),d=e(7519),m=e(4948),b=e(6645),u=e(2022);t.RoundTrip=class{static compare(f,g){if(f instanceof i.JsonTemplateFieldReaderResult&&g instanceof a.JsonTemplateFieldWriterInternal)return this.compareField(f,g);if(f instanceof m.JsonTemplateElementReaderResult&&g instanceof b.JsonTemplateElementWriter)return this.compareElement(f,g);if(f instanceof c.JsonTemplateReaderResult&&g instanceof d.JsonTemplateWriter)return this.compareTemplate(f,g);if(typeof f=="string"&&typeof g=="string")return this.compareString(f,g);throw new Error("Invalid argument types for compare method")}static compareField(f,g){let x=new r.JsonArtifactParsingResult;return o.JsonObjectComparator.compareBothWays(x,f.fieldSourceObject,g.getAsJsonNode(f.field,s.ChildDeploymentInfo.empty()),new l.JsonPath,g.getBehavior()),x}static compareElement(f,g){let x=new r.JsonArtifactParsingResult;return o.JsonObjectComparator.compareBothWays(x,f.elementSourceObject,g.getAsJsonNode(f.element),new l.JsonPath,g.getBehavior()),x}static compareTemplate(f,g){let x=new r.JsonArtifactParsingResult;return o.JsonObjectComparator.compareBothWays(x,f.templateSourceObject,g.getAsJsonNode(f.template),new l.JsonPath,g.getBehavior()),x}static compareString(f,g){let x=JSON.parse(f),w=JSON.parse(g),C=new r.JsonArtifactParsingResult;return o.JsonObjectComparator.compareBothWays(C,x,w,new l.JsonPath,u.JsonWriterBehavior.STRICT),C}}},2112(n,t){t.AbstractArtifactWriter=void 0,t.AbstractArtifactWriter=class{constructor(){}}},8810(n,t,e){t.CedarWriters=void 0;let i=e(9607),a=e(5359);t.CedarWriters=class{static json(){return i.CedarJsonWriters}static yaml(){return a.CedarYamlWriters}}},5692(n,t,e){t.WriterUtil=void 0;let i=e(8878),a=e(3812);t.WriterUtil=class{static getMultiMinMax(r,o){let s=null,l=null,c=false;return r.isMultiInstanceByDefinition()?o instanceof i.ChildDeploymentInfoAlwaysMultiple&&(c=true,s=o.minItems,l=o.maxItems):r.isSingleInstanceByDefinition()?c=false:(c=o.isMultiInAnyWay(),c&&o instanceof a.AbstractDynamicChildDeploymentInfo&&(s=o.minItems,l=o.maxItems)),{isMultiInstance:c,minItems:s,maxItems:l}}}},9607(n,t,e){t.CedarJsonWriters=void 0;let i=e(2022),a=e(4872),r=e(7519),o=e(4869),s=e(7501),l=e(3691),c=e(4841),d=e(5459),m=e(8970),b=e(2347),u=e(41),f=e(6029),g=e(6766),x=e(9309),w=e(8663),C=e(7335),I=e(275),O=e(6876),E=e(9031),R=e(9129),D=e(1442),F=e(8280),z=e(8354),ie=e(5996),$=e(2418),H=e(9222),me=e(9184),J=e(7054),q=e(2395),ae=e(2813),de=e(6645),pe=e(2981),Fe=e(7432),Me=e(8014),ut=e(3281),zt=e(7661),li=e(6320),ht=e(7584),qi=e(8096),Ar=e(6122),ct=e(3312),Yi=e(4780),en=e(5250),Ge=e(7412);class yn{behavior;jsonDynamicFieldWriters;jsonStaticFieldWriters;jsonValueConstraintsWriters;jsonAtomicWriter;jsonAnnotationsWriter;jsonTemplateWriter;jsonTemplateElementWriter;jsonTemplateInstanceWriter;constructor(Ze){this.behavior=Ze,this.jsonAtomicWriter=new a.JsonAtomicWriter(Ze),this.jsonAnnotationsWriter=new pe.JsonAnnotationsWriter(Ze),this.jsonTemplateWriter=r.JsonTemplateWriter.getFor(Ze,this),this.jsonTemplateElementWriter=de.JsonTemplateElementWriter.getFor(Ze,this),this.jsonTemplateInstanceWriter=li.JsonTemplateInstanceWriter.getFor(Ze,this),this.jsonDynamicFieldWriters=new Map([[o.CedarFieldType.TEXT,new s.JsonFieldWriterTextField(Ze,this)],[o.CedarFieldType.TEXTAREA,new I.JsonFieldWriterTextArea(Ze,this)],[o.CedarFieldType.CONTROLLED_TERM,new F.JsonFieldWriterControlledTerm(Ze,this)],[o.CedarFieldType.PHONE_NUMBER,new O.JsonFieldWriterPhoneNumber(Ze,this)],[o.CedarFieldType.EMAIL,new E.JsonFieldWriterEmail(Ze,this)],[o.CedarFieldType.LINK,new l.JsonFieldWriterLink(Ze,this)],[o.CedarFieldType.EXT_ROR,new ht.JsonFieldWriterExtRor(Ze,this)],[o.CedarFieldType.EXT_ORCID,new qi.JsonFieldWriterExtOrcid(Ze,this)],[o.CedarFieldType.EXT_PFAS,new Ar.JsonFieldWriterExtPfas(Ze,this)],[o.CedarFieldType.EXT_PUBMED,new ct.JsonFieldWriterExtPubmed(Ze,this)],[o.CedarFieldType.EXT_RRID,new Yi.JsonFieldWriterExtRrid(Ze,this)],[o.CedarFieldType.EXT_NIH_GRANT_ID,new en.JsonFieldWriterExtNihGrantId(Ze,this)],[o.CedarFieldType.EXT_DOI,new Ge.JsonFieldWriterExtDoi(Ze,this)],[o.CedarFieldType.NUMERIC,new c.JsonFieldWriterNumeric(Ze,this)],[o.CedarFieldType.TEMPORAL,new d.JsonFieldWriterTemporal(Ze,this)],[o.CedarFieldType.RADIO,new x.JsonFieldWriterRadio(Ze,this)],[o.CedarFieldType.CHECKBOX,new w.JsonFieldWriterCheckbox(Ze,this)],[o.CedarFieldType.SINGLE_SELECT_LIST,new C.JsonFieldWriterList(Ze,this)],[o.CedarFieldType.MULTIPLE_SELECT_LIST,new C.JsonFieldWriterList(Ze,this)],[o.CedarFieldType.ATTRIBUTE_VALUE,new D.JsonFieldWriterAttributeValue(Ze,this)]]),this.jsonStaticFieldWriters=new Map([[o.CedarFieldType.STATIC_PAGE_BREAK,new b.JsonFieldWriterStaticPageBreak(Ze,this)],[o.CedarFieldType.STATIC_SECTION_BREAK,new u.JsonFieldWriterStaticSectionsBreak(Ze,this)],[o.CedarFieldType.STATIC_IMAGE,new m.JsonFieldWriterStaticImage(Ze,this)],[o.CedarFieldType.STATIC_RICH_TEXT,new f.JsonFieldWriterStaticRichText(Ze,this)],[o.CedarFieldType.STATIC_YOUTUBE,new g.JsonFieldWriterStaticYoutube(Ze,this)]]),this.jsonValueConstraintsWriters=new Map([[z.ControlledTermOntology.className,new ie.JsonValueConstraintsOntologyWriter(Ze,this)],[$.ControlledTermClass.className,new H.JsonValueConstraintsClassWriter(Ze,this)],[me.ControlledTermBranch.className,new J.JsonValueConstraintsBranchWriter(Ze,this)],[q.ControlledTermValueSet.className,new ae.JsonValueConstraintsValueSetWriter(Ze,this)],[Fe.ControlledTermAction.className,new Me.JsonValueConstraintsActionWriter(Ze,this)]])}static getStrict(){return new yn(i.JsonWriterBehavior.STRICT)}static getFebruary2024(){return new yn(i.JsonWriterBehavior.FEBRUARY_2024)}static getFor(Ze){return new yn(Ze)}getTemplateWriter(){return this.jsonTemplateWriter}getTemplateElementWriter(){return this.jsonTemplateElementWriter}getTemplateInstanceWriter(){return this.jsonTemplateInstanceWriter}getAtomicWriter(){return this.jsonAtomicWriter}getFieldWriterForType(Ze){let $t;if($t=Ze.isStaticField?this.jsonStaticFieldWriters.get(Ze):this.jsonDynamicFieldWriters.get(Ze),$t)return $t;throw new Error(`No JSON writer found for field type: ${Ze.getValue()}`)}getWriterForValueConstraint(Ze){let $t=Ze.className,na=this.jsonValueConstraintsWriters.get($t);if(na)return na;throw new Error(`No JSON writer found for class type: ${$t}`)}getFieldWriterForField(Ze){return this.getFieldWriterForType(Ze.cedarFieldType)}getAnnotationsWriter(){return this.jsonAnnotationsWriter}getWriterForArtifact(Ze){if(Ze instanceof ut.Template)return r.JsonTemplateWriter.getFor(this.behavior,this);if(Ze instanceof zt.TemplateElement)return de.JsonTemplateElementWriter.getFor(this.behavior,this);if(Ze instanceof R.TemplateField)return this.getFieldWriterForType(Ze.cedarFieldType);throw new Error(`No JSON reader available for CedarArtifact: ${Ze}`)}}t.CedarJsonWriters=yn},3161(n,t,e){t.JsonAbstractArtifactWriter=void 0;let i=e(2112),a=e(9517),r=e(2733),o=e(3910),s=e(1027),l=e(936),c=e(8534);class d extends i.AbstractArtifactWriter{behavior;writers;atomicWriter;annotationsWriter;constructor(b,u){super(),this.behavior=b,this.writers=u,this.atomicWriter=u.getAtomicWriter(),this.annotationsWriter=u.getAnnotationsWriter()}getBehavior(){return this.behavior}macroSchemaNameAndDescription(b){return{[r.JsonSchema.schemaName]:b.schema_name,[r.JsonSchema.schemaDescription]:b.schema_description}}macroProvenance(b,u){return{[r.JsonSchema.pavCreatedOn]:u.write(b.pav_createdOn),[r.JsonSchema.pavCreatedBy]:u.write(b.pav_createdBy),[r.JsonSchema.pavLastUpdatedOn]:u.write(b.pav_lastUpdatedOn),[r.JsonSchema.oslcModifiedBy]:u.write(b.oslc_modifiedBy)}}macroStatusAndVersion(b,u){let f=a.JsonNode.getEmpty();return b.pav_version!==s.PavVersion.NULL&&(f[r.JsonSchema.pavVersion]=u.write(b.pav_version)),b.bibo_status!==o.BiboStatus.NULL&&(f[r.JsonSchema.biboStatus]=u.write(b.bibo_status)),f}macroSkos(b){let u=a.JsonNode.getEmpty();return b.skos_prefLabel!==null&&(u[l.CedarModel.skosPrefLabel]=b.skos_prefLabel),b.skos_altLabel!==null&&b.skos_altLabel.length>0&&(u[l.CedarModel.skosAltLabel]=b.skos_altLabel),u}macroDerivedFrom(b){let u=a.JsonNode.getEmpty();return b.pav_derivedFrom!==c.CedarArtifactId.NULL&&(u[r.JsonSchema.pavDerivedFrom]=this.atomicWriter.write(b.pav_derivedFrom)),u}macroIsBasedOn(b){let u=a.JsonNode.getEmpty();return b.schema_isBasedOn!==c.CedarArtifactId.NULL&&(u[r.JsonSchema.schemaIsBasedOn]=this.atomicWriter.write(b.schema_isBasedOn)),u}macroPreviousVersion(b){let u=a.JsonNode.getEmpty();return b.pav_previousVersion!==c.CedarArtifactId.NULL&&(u[r.JsonSchema.pavPreviousVersion]=this.atomicWriter.write(b.pav_previousVersion)),u}macroSchemaIdentifier(b){let u=a.JsonNode.getEmpty();return b.schema_identifier!==null&&(u[r.JsonSchema.schemaIdentifier]=b.schema_identifier),u}macroAnnotations(b){return this.annotationsWriter.write(b.annotations)}}t.JsonAbstractArtifactWriter=d},8872(n,t,e){t.JsonAbstractContainerArtifactWriter=void 0;let i=e(8198),a=e(3161),r=e(6968),o=e(9517),s=e(9129),l=e(2733),c=e(936),d=e(5692),m=e(513),b=e(8748);class u extends a.JsonAbstractArtifactWriter{macroContext(g){return r.JsonContainerArtifactContent.CONTEXT_VERBATIM}getChildMapAsJson(g){let x=o.JsonNode.getEmpty();return g.getChildrenInfo().getChildrenNames().forEach(w=>{let C=g.getChild(w);if(C!=null){let I=o.JsonNode.getEmpty(),O=g.getChildrenInfo().get(w);if(O!==null&&(I=C instanceof s.TemplateField?this.writers.getFieldWriterForType(C.cedarFieldType).getAsJsonNode(C,O):this.writers.getTemplateElementWriter().getAsJsonNode(C)),O!==null){let{isMultiInstance:E,minItems:R,maxItems:D}=d.WriterUtil.getMultiMinMax(C,O),F=R,z=D;if(E){F===null&&(F=m.AbstractChildDeploymentInfo.defaultMinItems);let ie=o.JsonNode.getEmpty();ie[c.CedarModel.minItems]=F,z!==null&&z!==i.UNBOUNDED_MAX_ITEMS&&(ie[c.CedarModel.maxItems]=z),I=Je(Y({[l.JsonSchema.type]:"array"},ie),{[l.JsonSchema.items]:I})}x[w]=I}}}),x}expandInstanceTypeSpecification(g,x){if(g.instanceTypeSpecifications.length>0){let w=b.ReaderUtil.getNode(x,l.JsonSchema.atType);b.ReaderUtil.getNodeList(w,l.JsonSchema.oneOf).forEach(C=>{let I=b.ReaderUtil.getString(C,l.JsonSchema.type);I=="string"?C[l.JsonSchema.enum]=[...g.instanceTypeSpecifications]:I=="array"&&(b.ReaderUtil.getNode(C,l.JsonSchema.items)[l.JsonSchema.enum]=[...g.instanceTypeSpecifications])})}}}t.JsonAbstractContainerArtifactWriter=u},2981(n,t,e){t.JsonAnnotationsWriter=void 0;let i=e(9517),a=e(936),r=e(2787),o=e(2733),s=e(3549);t.JsonAnnotationsWriter=class{behavior;constructor(l){this.behavior=l}write(l){let c=i.JsonNode.getEmpty();if(l!==null&&l.getSize()>0){let d=i.JsonNode.getEmpty();l.getAnnotationNames().forEach(m=>{let b=l.get(m);b instanceof r.AnnotationAtId?d[m]={[o.JsonSchema.atId]:b.getAtId()}:b instanceof s.AnnotationAtValue&&(d[m]={[o.JsonSchema.atValue]:b.getAtValue()})}),c[a.CedarModel.annotations]=d}return c}}},4872(n,t,e){t.JsonAtomicWriter=void 0;let i=e(8534),a=e(2763),r=e(5793),o=e(9857),s=e(2234),l=e(3910),c=e(1027),d=e(2475),m=e(8557),b=e(3447),u=e(8588),f=e(7974),g=e(3764),x=e(9034),w=e(3746),C=e(9932),I=e(8802),O=e(4531),E=e(7752);t.JsonAtomicWriter=class{behavior;constructor(R){this.behavior=R}write(R){if(R==null)return null;if(R instanceof i.CedarArtifactId)return this.writeCedarArtifactId(R);if(R instanceof a.CedarArtifactType)return this.writeCedarArtifactType(R);if(R instanceof r.JavascriptType)return this.writeJavascriptType(R);if(R instanceof o.IsoDate)return this.writeCedarDate(R);if(R instanceof s.CedarUser)return this.writeCedarUser(R);if(R instanceof l.BiboStatus)return this.writeBiboStatusJson(R);if(R instanceof c.PavVersion)return this.writePavVersion(R);if(R instanceof d.ArtifactSchema)return this.writeCedarSchema(R);if(R instanceof m.SchemaVersion)return this.writeSchemaVersion(R);if(R instanceof b.NumberType)return this.writeNumberType(R);if(R instanceof u.TemporalType)return this.writeTemporalType(R);if(R instanceof f.TemporalGranularity)return this.writeTemporalGranularity(R);if(R instanceof g.TimeFormat)return this.writeTimeFormat(R);if(R instanceof x.UiInputType)return this.writeUiInputType(R);if(R instanceof w.AdditionalProperties)return this.writeAdditionalProperties(R);if(R instanceof I.Iri)return this.writeURI(R);if(R instanceof O.BioportalTermType)return this.writeBioportalTermTypeJson(R);if(R instanceof E.Language)return this.writeLanguage(R);throw new Error("Unsupported type")}writeCedarArtifactId(R){return R.getValue()}writeCedarArtifactType(R){return R.getValue()}writeJavascriptType(R){return R.getValue()}writeCedarDate(R){return R.getValue()}writeCedarUser(R){return R.getValue()}writeBiboStatusJson(R){return R.getJsonValue()}writePavVersion(R){return R.getValue()}writeCedarSchema(R){return R.getValue()}writeSchemaVersion(R){return R.getValue()!==null?R.getValue():m.SchemaVersion.CURRENT.getValue()}writeNumberType(R){return R.getValue()}writeTemporalType(R){return R.getValue()}writeTemporalGranularity(R){return R.getValue()}writeTimeFormat(R){return R.getValue()}writeUiInputType(R){return R.getValue()}writeAdditionalProperties(R){return R!==w.AdditionalProperties.FALSE&&(R===w.AdditionalProperties.ALLOW_ATTRIBUTE_VALUE?C.JsonTemplateFieldContentDynamic.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_OUTSIDE:null)}writeURI(R){return R.getValue()}writeBioportalTermTypeJson(R){return R.getJsonValue()}writeLanguage(R){return R.getValue()}}},6645(n,t,e){t.JsonTemplateElementWriter=void 0;let i=e(8972),a=e(8557),r=e(8748),o=e(2733),s=e(936),l=e(2763),c=e(5793),d=e(5747),m=e(2475),b=e(9932),u=e(1501),f=e(8872),g=e(7752);class x extends f.JsonAbstractContainerArtifactWriter{constructor(C,I){super(C,I)}static getFor(C,I){return new x(C,I)}buildProperties(C){let I=r.ReaderUtil.deepClone(u.JsonTemplateElementContent.PROPERTIES_PARTIAL);C.language!==g.Language.NULL&&(I[o.JsonSchema.atContext][o.JsonSchema.atLanguage]=this.atomicWriter.write(C.language));let O=C.getChildrenInfo().getIRIMap();I[o.JsonSchema.atContext][o.JsonSchema.properties]=Y(Y({},I[o.JsonSchema.atContext][o.JsonSchema.properties]),O);let E=C.getChildrenInfo().getChildNamesWithIri();E.length>0?I[o.JsonSchema.atContext][o.JsonSchema.required]=[...I[o.JsonSchema.atContext][o.JsonSchema.required],...E]:r.ReaderUtil.deleteNodeKey(I[o.JsonSchema.atContext],o.JsonSchema.required),C.getChildrenInfo().hasAttributeValue()&&(I[o.JsonSchema.atContext][d.TemplateProperty.additionalProperties]=b.JsonTemplateFieldContentDynamic.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE);let R=Y(Y({},I),this.getChildMapAsJson(C));return this.expandInstanceTypeSpecification(C,R),R}getAsJsonString(C,I=2){return(0,i.stringifySchema)(this.getAsJsonNode(C),I)}getAsJsonNode(C){let I=this.buildProperties(C),O={[s.CedarModel.order]:C.getChildrenInfo().getChildrenNames(),[s.CedarModel.propertyLabels]:C.getChildrenInfo().getPropertyLabelMap(C),[s.CedarModel.propertyDescriptions]:C.getChildrenInfo().getPropertyDescriptionMap(C)};return C.header!==null&&(O[s.CedarModel.header]=C.header),C.footer!==null&&(O[s.CedarModel.footer]=C.footer),C.extensions.applyJson(Je(Y(Je(Y(Y(Y(Y(Y(Y(Y({[o.JsonSchema.atId]:this.atomicWriter.write(C.at_id),[o.JsonSchema.atType]:this.atomicWriter.write(l.CedarArtifactType.TEMPLATE_ELEMENT),[o.JsonSchema.atContext]:this.macroContext(C),[s.CedarModel.type]:this.atomicWriter.write(c.JavascriptType.OBJECT),[d.TemplateProperty.title]:C.title,[d.TemplateProperty.description]:C.description,[s.CedarModel.ui]:O,[o.JsonSchema.properties]:I,[o.JsonSchema.required]:[...u.JsonTemplateElementContent.REQUIRED_PARTIAL,...C.getChildrenInfo().getChildrenNamesForRequired()]},this.macroAnnotations(C)),this.macroSchemaNameAndDescription(C)),this.macroProvenance(C,this.atomicWriter)),this.macroSkos(C)),this.macroStatusAndVersion(C,this.atomicWriter)),this.macroPreviousVersion(C)),this.macroDerivedFrom(C)),{[o.JsonSchema.schemaVersion]:this.atomicWriter.write(a.SchemaVersion.CURRENT),[d.TemplateProperty.additionalProperties]:this.atomicWriter.write(C.getAdditionalProperties())}),this.macroSchemaIdentifier(C)),{[s.CedarModel.schema]:this.atomicWriter.write(m.ArtifactSchema.CURRENT)}))}}t.JsonTemplateElementWriter=x},2748(n,t,e){t.JsonTemplateFieldWriterInternal=void 0;let i=e(8972),a=e(8557),r=e(9517),o=e(936),s=e(2733),l=e(9932),c=e(5793),d=e(5747),m=e(2475),b=e(3161),u=e(3746),f=e(455),g=e(3812),x=e(9519),w=e(6731),C=e(6591),I=e(7752),O=e(8748);class E extends b.JsonAbstractArtifactWriter{constructor(D,F){super(D,F)}expandPropertiesNode(D){D[s.JsonSchema.properties]=l.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_LITERAL,this.behavior.usePropertiesAtLanguage()||(D[s.JsonSchema.properties]=l.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE)}expandRequiredNode(D){D[s.JsonSchema.required]=[s.JsonSchema.atValue]}expandUINode(D,F,z){z instanceof g.AbstractDynamicChildDeploymentInfo&&(z.hidden&&(D[o.CedarModel.Ui.hidden]=z.hidden),z instanceof x.AbstractFieldChildDeploymentInfo&&(z.continuePreviousLine&&(D[o.CedarModel.Ui.continuePreviousLine]=z.continuePreviousLine),z.valueRecommendationEnabled&&F.supportsValueRecommendation()&&(D[o.CedarModel.Ui.valueRecommendationEnabled]=z.valueRecommendationEnabled))),D[o.CedarModel.Ui.hidden]===void 0&&F.hidden&&(D[o.CedarModel.Ui.hidden]=true),D[o.CedarModel.Ui.continuePreviousLine]===void 0&&F.continuePreviousLine&&(D[o.CedarModel.Ui.continuePreviousLine]=true),D[o.CedarModel.Ui.valueRecommendationEnabled]===void 0&&(F instanceof w.ControlledTermFieldImpl||F instanceof C.TextFieldImpl)&&F.valueRecommendationEnabled&&(D[o.CedarModel.Ui.valueRecommendationEnabled]=true)}buildUIObject(D,F){let z={[o.CedarModel.inputType]:this.atomicWriter.write(D.cedarFieldType.getUiInputType())},ie={[o.CedarModel.ui]:z};return this.expandUINode(z,D,F),ie}expandTypeNode(D,F){}expandValueConstraintsNode(D,F,z){z instanceof g.AbstractDynamicChildDeploymentInfo&&(D[o.CedarModel.requiredValue]=z.requiredValue),!D[o.CedarModel.requiredValue]&&F.requiredValue&&(D[o.CedarModel.requiredValue]=true),z instanceof g.AbstractDynamicChildDeploymentInfo&&z.recommendedValue&&(D[o.CedarModel.ValueConstraints.recommendedValue]=z.recommendedValue),!D[o.CedarModel.ValueConstraints.recommendedValue]&&F.recommendedValue&&(D[o.CedarModel.ValueConstraints.recommendedValue]=true)}buildValueConstraintsObject(D,F){let z=r.JsonNode.getEmpty(),ie={[o.CedarModel.valueConstraints]:z};return this.expandValueConstraintsNode(z,D,F),ie}expandLiterals(D,F){let z=r.JsonNode.getEmptyList();D.valueConstraints.literals.forEach(ie=>{let $=r.JsonNode.getEmpty();$[o.CedarModel.label]=ie.label,(ie.statesSelectedByDefault||ie.selectedByDefault)&&($[o.CedarModel.selectedByDefault]=ie.selectedByDefault),z.push($)}),z.length>0&&(F[o.CedarModel.literals]=z)}getAsJsonString(D,F=2){return(0,i.stringifySchema)(this.getAsJsonNode(D,f.ChildDeploymentInfo.standalone()),F)}getAsJsonNode(D,F=f.ChildDeploymentInfo.standalone()){let z=r.JsonNode.getEmpty();this.expandPropertiesNode(z);let ie=r.JsonNode.getEmpty();this.expandRequiredNode(ie);let $=this.buildUIObject(D,F),H=this.buildValueConstraintsObject(D,F),me={[o.CedarModel.type]:this.atomicWriter.write(c.JavascriptType.OBJECT)};return this.expandTypeNode(me,D),D.extensions.applyJson(Je(Y(Je(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Je(Y({[s.JsonSchema.atId]:this.atomicWriter.write(D.at_id),[s.JsonSchema.atType]:this.atomicWriter.write(D.cedarArtifactType),[s.JsonSchema.atContext]:this.macroContext(D)},me),{[d.TemplateProperty.title]:D.title,[d.TemplateProperty.description]:D.description}),$),H),z),ie),this.macroAnnotations(D)),this.macroSchemaNameAndDescription(D)),this.macroProvenance(D,this.atomicWriter)),this.macroSkos(D)),this.macroStatusAndVersion(D,this.atomicWriter)),this.macroPreviousVersion(D)),this.macroDerivedFrom(D)),{[s.JsonSchema.schemaVersion]:this.atomicWriter.write(a.SchemaVersion.CURRENT),[d.TemplateProperty.additionalProperties]:this.atomicWriter.write(u.AdditionalProperties.FALSE)}),this.macroSchemaIdentifier(D)),{[o.CedarModel.schema]:this.atomicWriter.write(m.ArtifactSchema.CURRENT)}))}macroContext(D){let F=O.ReaderUtil.deepClone(l.JsonTemplateFieldContentDynamic.CONTEXT_VERBATIM);return D.language!==I.Language.NULL&&(F[s.JsonSchema.atLanguage]=this.atomicWriter.write(D.language)),F}}t.JsonTemplateFieldWriterInternal=E},6320(n,t,e){t.JsonTemplateInstanceWriter=void 0;let i=e(9868),a=e(1625),r=e(9167),o=e(8748),s=e(2733),l=e(936),c=e(9517),d=e(3161),m=e(350),b=e(7723),u=e(5222),f=e(4877),g=e(9327),x=e(3644),w=e(8193),C=e(7571),I=e(7548),O=e(4465),E=e(4033);class R extends d.JsonAbstractArtifactWriter{constructor(F,z){super(F,z)}macroContext(F){return m.JsonTemplateInstanceContent.CONTEXT_VERBATIM}static getFor(F,z){return new R(F,z)}buildContext(F){let z=o.ReaderUtil.deepClone(m.JsonTemplateInstanceContent.CONTEXT_VERBATIM);return Object.keys(F.dataContainer.iris).forEach(ie=>{z[ie]=F.dataContainer.iris[ie]}),Y({},z)}getDataTree(F){let z=c.JsonNode.getEmpty();return this.serializeDataLevelInto(F.dataContainer,z,true),z}serializeDataLevelInto(F,z,ie=false){ie||(z[s.JsonSchema.atId]=F.id===""?null:F.id),Object.keys(F.values).forEach(H=>{let me=F.values[H];if(Array.isArray(me)){let J=c.JsonNode.getEmptyList();z[H]=J,me.forEach((q,ae)=>{if(q instanceof x.InstanceDataAttributeValueFieldName){let pe=q.name;return void(pe.trim().length>0&&J.push(pe))}let de=this.serializeCommonType(q);de!==null&&J.push(de)})}else{let J=this.serializeCommonType(me);if(J!==null&&(z[H]=J),me instanceof g.InstanceDataAttributeValueField){let q=[];Object.keys(me.values).forEach(ae=>{q.push(ae)}),z[H]=q}}}),this.serializeAttributeValueFields(F,z);let $=c.JsonNode.getEmpty();Object.keys(F.iris).forEach(H=>{$[H]=F.iris[H]}),z[s.JsonSchema.atContext]=$}static writeValueNode(F){let z=this.writeValueNodeWithoutNotation(F);return z!==null&&"language"in F&&F.language!==null&&(z[s.JsonSchema.atLanguage]=F.language),z!==null&&"notation"in F&&F.notation!==null&&(z[s.JsonSchema.skosNotation]=F.notation),z!==null&&"preferredLabel"in F&&F.preferredLabel!==null&&(z[l.CedarModel.skosPrefLabel]=F.preferredLabel),z}static writeValueNodeWithoutNotation(F){return F instanceof a.InstanceDataNotationAtom?F.type===null?c.JsonNode.getEmpty():{[s.JsonSchema.atType]:F.type}:F instanceof u.InstanceDataStringAtom?Y({[s.JsonSchema.atValue]:F.value},F.label===null?{}:{[s.JsonSchema.rdfsLabel]:F.label}):F instanceof f.InstanceDataTypedAtom?Je(Y({[s.JsonSchema.atValue]:F.value},F.label===null?{}:{[s.JsonSchema.rdfsLabel]:F.label}),{[s.JsonSchema.atType]:F.type}):F instanceof r.InstanceDataLabelAtom?Y({[s.JsonSchema.rdfsLabel]:F.label},F.type===null?{}:{[s.JsonSchema.atType]:F.type}):F instanceof w.InstanceDataControlledAtom?Y({[s.JsonSchema.atId]:F.id,[s.JsonSchema.rdfsLabel]:F.label},F.type===null?{}:{[s.JsonSchema.atType]:F.type}):F instanceof C.InstanceDataLinkAtom?Y({[s.JsonSchema.atId]:F.id},F.type===null?{}:{[s.JsonSchema.atType]:F.type}):F instanceof I.InstanceDataEmptyAtom||F instanceof O.InstanceDataEmptyNode?c.JsonNode.getEmpty():null}serializeCommonType(F){if(F instanceof b.InstanceDataContainer){let z=c.JsonNode.getEmpty();return this.serializeDataLevelInto(F,z),z}return R.writeValueNode(F)}serializeAtomString(F){return Y({[s.JsonSchema.atValue]:F.value},F.label===null?{}:{[s.JsonSchema.rdfsLabel]:F.label})}serializeAttributeValueFields(F,z){Object.keys(F.values).forEach(ie=>{let $=F.values[ie];$ instanceof g.InstanceDataAttributeValueField&&Object.keys($.values).forEach(H=>{let me=$.values[H];me instanceof u.InstanceDataStringAtom&&(z[H]=this.serializeAtomString(me))})})}getAsJsonString(F,z=2){return(0,i.stringifyInstance)(this.getAsJsonNode(F),F.dataContainer,z)}getAsJsonNode(F){E.AttributeValueNamePolicy.assertValid(F.dataContainer);let z=this.buildContext(F),ie=this.macroSchemaNameAndDescription(F);return F.descriptionWasAbsent&&F.schema_description===""&&delete ie[s.JsonSchema.schemaDescription],Y(Y(Je(Y(Je(Y(Y(Y({[s.JsonSchema.atId]:this.atomicWriter.write(F.at_id)},ie),this.getDataTree(F)),this.macroAnnotations(F)),{[s.JsonSchema.atContext]:z}),this.macroIsBasedOn(F)),{[s.JsonSchema.schemaDescription]:F.schema_description}),this.macroProvenance(F,this.atomicWriter)),this.macroDerivedFrom(F))}}t.JsonTemplateInstanceWriter=R},7519(n,t,e){t.JsonTemplateWriter=void 0;let i=e(8972),a=e(8557),r=e(8748),o=e(6551),s=e(2733),l=e(936),c=e(2763),d=e(5793),m=e(5747),b=e(2475),u=e(9932),f=e(8872),g=e(7752);class x extends f.JsonAbstractContainerArtifactWriter{constructor(C,I){super(C,I)}static getFor(C,I){return new x(C,I)}buildProperties(C){let I=r.ReaderUtil.deepClone(o.JsonTemplateContent.PROPERTIES_PARTIAL);C.language!==g.Language.NULL&&(I[s.JsonSchema.atContext][s.JsonSchema.atLanguage]=this.atomicWriter.write(C.language));let O=C.getChildrenInfo().getIRIMap();I[s.JsonSchema.atContext][s.JsonSchema.properties]=Y(Y({},I[s.JsonSchema.atContext][s.JsonSchema.properties]),O);let E=C.getChildrenInfo().getChildNamesWithIri();I[s.JsonSchema.atContext][s.JsonSchema.required]=[...I[s.JsonSchema.atContext][s.JsonSchema.required],...E],C.getChildrenInfo().hasAttributeValue()&&(I[s.JsonSchema.atContext][m.TemplateProperty.additionalProperties]=u.JsonTemplateFieldContentDynamic.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE);let R=Y(Y({},I),this.getChildMapAsJson(C));return this.expandInstanceTypeSpecification(C,R),R}getAsJsonString(C,I=2){return(0,i.stringifySchema)(this.getAsJsonNode(C),I)}getAsJsonNode(C){let I=this.buildProperties(C),O={[l.CedarModel.order]:C.getChildrenInfo().getChildrenNames(),[l.CedarModel.propertyLabels]:C.getChildrenInfo().getPropertyLabelMap(C),[l.CedarModel.propertyDescriptions]:C.getChildrenInfo().getPropertyDescriptionMap(C)};return this.behavior.outputPages()&&(O[l.CedarModel.pages]=[]),C.header!==null&&(O[l.CedarModel.header]=C.header),C.footer!==null&&(O[l.CedarModel.footer]=C.footer),C.extensions.applyJson(Je(Y(Je(Y(Y(Y(Y(Y(Y({[s.JsonSchema.atId]:this.atomicWriter.write(C.at_id),[s.JsonSchema.atType]:this.atomicWriter.write(c.CedarArtifactType.TEMPLATE),[s.JsonSchema.atContext]:this.macroContext(C),[l.CedarModel.type]:this.atomicWriter.write(d.JavascriptType.OBJECT),[m.TemplateProperty.title]:C.title,[m.TemplateProperty.description]:C.description,[l.CedarModel.ui]:O,[s.JsonSchema.properties]:I,[s.JsonSchema.required]:[...o.JsonTemplateContent.REQUIRED_PARTIAL,...C.getChildrenInfo().getChildrenNamesForRequired()],[m.TemplateProperty.additionalProperties]:this.atomicWriter.write(C.getAdditionalProperties())},this.macroAnnotations(C)),this.macroSchemaNameAndDescription(C)),this.macroProvenance(C,this.atomicWriter)),this.macroStatusAndVersion(C,this.atomicWriter)),this.macroPreviousVersion(C)),this.macroDerivedFrom(C)),{[s.JsonSchema.schemaVersion]:this.atomicWriter.write(a.SchemaVersion.CURRENT)}),this.macroSchemaIdentifier(C)),{[l.CedarModel.schema]:this.atomicWriter.write(b.ArtifactSchema.CURRENT)}))}}t.JsonTemplateWriter=x},9868(n,t,e){t.stringifyInstance=function(r,o,s){return JSON.stringify((function l(c,d){let m=Y({},c),b=new Map;for(let[C,I]of Object.entries(d.values))I instanceof a.InstanceDataAttributeValueField?b.set(C,c[C]):I instanceof i.InstanceDataContainer?m[C]=l(c[C],I):Array.isArray(I)&&Array.isArray(c[C])&&(m[C]=c[C].map((O,E)=>I[E]instanceof i.InstanceDataContainer?l(O,I[E]):O));let u=Object.keys(d.values),f=new Set([...u,...[...b.values()].flat()]),g=Object.keys(m).filter(C=>!f.has(C)),x=u.flatMap(C=>[C,...b.get(C)??[]]).filter(C=>Object.hasOwn(m,C)),w=g.findIndex(C=>C==="_annotations"||C==="@context");return g.splice(w<0?g.length:w,0,...x),new Proxy(m,{ownKeys:()=>g})})(r,o),null,s)};let i=e(7723),a=e(9327)},8972(n,t,e){t.stringifySchema=function(o,s){return JSON.stringify((function l(c){if(Array.isArray(c))return c.map(l);if(!r(c))return c;let d=Object.fromEntries(Object.entries(c).map(([u,f])=>[u,l(f)])),m=d._ui,b=r(m)?m.order:void 0;if(Array.isArray(b)&&b.every(u=>typeof u=="string")&&r(m)&&r(d.properties)){let u=new Set(b),f=d.properties;d.properties=a(f,[...Object.keys(f).filter(x=>!u.has(x)),...b]);let g=f["@context"];r(g)&&r(g.properties)&&(g.properties=a(g.properties,[...Object.keys(g.properties).filter(x=>!u.has(x)),...b]));for(let x of["propertyLabels","propertyDescriptions"]){let w=m[x];r(w)&&(m[x]=a(w,b))}}return d})(o),null,s).replace(/"(?:\\.|[^"\\])*"|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,l=>l.startsWith('"')?l:(0,i.javaPlainDecimal)(Number(l)))};let i=e(7120);function a(o,s){let l=[...new Set([...s.filter(c=>Object.hasOwn(o,c)),...Object.keys(o)])];return new Proxy(o,{ownKeys:()=>l})}function r(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}},5359(n,t,e){t.CedarYamlWriters=void 0;let i=e(4869),a=e(1933),r=e(8354),o=e(2418),s=e(9184),l=e(2395),c=e(7432),d=e(6116),m=e(2342),b=e(2287),u=e(836),f=e(7436),g=e(7594),x=e(1784),w=e(6082),C=e(4935),I=e(6314),O=e(1903),E=e(5251),R=e(1521),D=e(1038),F=e(3292),z=e(9821),ie=e(4500),$=e(3080),H=e(8136),me=e(9535),J=e(1181),q=e(765),ae=e(3671),de=e(9532),pe=e(4647),Fe=e(9411),Me=e(9326),ut=e(491),zt=e(4355),li=e(5587),ht=e(6557),qi=e(4077),Ar=e(3711),ct=e(6967);class Yi{behavior;yamlDynamicFieldWriters;yamlStaticFieldWriters;yamlValueConstraintsWriters;yamlAtomicWriter;yamlAnnotationsWriter;yamlTemplateWriter;yamlTemplateElementWriter;yamlTemplateInstanceWriter;constructor(Ge){this.behavior=Ge,this.yamlAtomicWriter=new m.YamlAtomicWriter(Ge),this.yamlAnnotationsWriter=new b.YamlAnnotationsWriter(Ge),this.yamlTemplateWriter=a.YamlTemplateWriter.getFor(Ge,this),this.yamlTemplateElementWriter=E.YamlTemplateElementWriter.getFor(Ge,this),this.yamlTemplateInstanceWriter=Me.YamlTemplateInstanceWriter.getFor(Ge,this),this.yamlDynamicFieldWriters=new Map([[i.CedarFieldType.TEXT,new d.YamlFieldWriterTextField(Ge,this)],[i.CedarFieldType.TEXTAREA,new u.YamlFieldWriterTextArea(Ge,this)],[i.CedarFieldType.CONTROLLED_TERM,new me.YamlFieldWriterControlledTerm(Ge,this)],[i.CedarFieldType.PHONE_NUMBER,new z.YamlFieldWriterPhoneNumber(Ge,this)],[i.CedarFieldType.EMAIL,new D.YamlFieldWriterEmail(Ge,this)],[i.CedarFieldType.LINK,new x.YamlFieldWriterLink(Ge,this)],[i.CedarFieldType.EXT_ROR,new ut.YamlFieldWriterExtRor(Ge,this)],[i.CedarFieldType.EXT_ORCID,new zt.YamlFieldWriterExtOrcid(Ge,this)],[i.CedarFieldType.EXT_PFAS,new li.YamlFieldWriterExtPfas(Ge,this)],[i.CedarFieldType.EXT_PUBMED,new ht.YamlFieldWriterExtPubmed(Ge,this)],[i.CedarFieldType.EXT_RRID,new qi.YamlFieldWriterExtRrid(Ge,this)],[i.CedarFieldType.EXT_NIH_GRANT_ID,new Ar.YamlFieldWriterExtNihGrantId(Ge,this)],[i.CedarFieldType.EXT_DOI,new ct.YamlFieldWriterExtDoi(Ge,this)],[i.CedarFieldType.NUMERIC,new F.YamlFieldWriterNumeric(Ge,this)],[i.CedarFieldType.TEMPORAL,new f.YamlFieldWriterTemporal(Ge,this)],[i.CedarFieldType.RADIO,new H.YamlFieldWriterRadio(Ge,this)],[i.CedarFieldType.CHECKBOX,new ie.YamlFieldWriterCheckbox(Ge,this)],[i.CedarFieldType.SINGLE_SELECT_LIST,new $.YamlFieldWriterList(Ge,this)],[i.CedarFieldType.MULTIPLE_SELECT_LIST,new $.YamlFieldWriterList(Ge,this)],[i.CedarFieldType.ATTRIBUTE_VALUE,new R.YamlFieldWriterAttributeValue(Ge,this)]]),this.yamlStaticFieldWriters=new Map([[i.CedarFieldType.STATIC_PAGE_BREAK,new g.YamlFieldWriterStaticPageBreak(Ge,this)],[i.CedarFieldType.STATIC_SECTION_BREAK,new w.YAMLFieldWriterStaticSectionsBreak(Ge,this)],[i.CedarFieldType.STATIC_IMAGE,new C.YamlFieldWriterStaticImage(Ge,this)],[i.CedarFieldType.STATIC_RICH_TEXT,new I.YamlFieldWriterStaticRichText(Ge,this)],[i.CedarFieldType.STATIC_YOUTUBE,new O.YamlFieldWriterStaticYoutube(Ge,this)]]),this.yamlValueConstraintsWriters=new Map([[r.ControlledTermOntology.className,new J.YamlValueConstraintsOntologyWriter(Ge,this)],[o.ControlledTermClass.className,new q.YamlValueConstraintsClassWriter(Ge,this)],[s.ControlledTermBranch.className,new ae.YamlValueConstraintsBranchWriter(Ge,this)],[l.ControlledTermValueSet.className,new de.YamlValueConstraintsValueSetWriter(Ge,this)],[c.ControlledTermAction.className,new pe.YamlValueConstraintsActionWriter(Ge,this)]])}static getStrict(){return new Yi(Fe.YamlWriterBehavior.STRICT)}static getFor(Ge){return new Yi(Ge)}getFieldWriterForType(Ge){let yn;if(yn=Ge.isStaticField?this.yamlStaticFieldWriters.get(Ge):this.yamlDynamicFieldWriters.get(Ge),yn)return yn;throw new Error(`No YAML writer found for field type: ${Ge.getValue()}`)}getFieldWriterForField(Ge){return this.getFieldWriterForType(Ge.cedarFieldType)}getAtomicWriter(){return this.yamlAtomicWriter}getAnnotationsWriter(){return this.yamlAnnotationsWriter}getTemplateWriter(){return this.yamlTemplateWriter}getTemplateElementWriter(){return this.yamlTemplateElementWriter}getTemplateInstanceWriter(){return this.yamlTemplateInstanceWriter}getWriterForValueConstraint(Ge){let yn=Ge.className,za=this.yamlValueConstraintsWriters.get(yn);if(za)return za;throw new Error(`No YAML writer found for class type: ${yn}`)}}t.CedarYamlWriters=Yi},7120(n,t){t.javaPlainDecimal=function(e){if(!Number.isFinite(e))throw new RangeError("Expected a finite number");if(e===0)return"0";if(Number.isSafeInteger(e))return String(e);let i=e<0?"-":"",a=Math.abs(e),r=new DataView(new ArrayBuffer(8));r.setFloat64(0,a);let o=r.getBigUint64(0),s=Number(o>>52n&2047n),l=o&(1n<<52n)-1n|(s?1n<<52n:0n),c=s?s-1075:-1074,d=l.toString(2).length,m=c+d-1,b=l,u=1n;if(c>=0?b<<=BigInt(c):u<<=BigInt(-c),m<=62&&b%u===0n){let Fe=b/u,Me=m>d?(1n<<BigInt(m-d-1)).toString().length-1:0,ut=10n**BigInt(Me);return Fe=(Fe+ut/2n)/ut*ut,i+String(Fe)}let f=Math.floor(.289529654*(Number(l)/2**(d-1)-1.5)+.176091259+.301029995663981*m),g=b,x=u;f>=0?x*=10n**BigInt(f):g*=10n**BigInt(-f);let w=c-1-((l&l-1n)==0n?1:0),C=1n,I=1n;function O(Fe,Me){for(;Me;)[Fe,Me]=[Me,Fe%Me];return Fe}w>=0?C<<=BigInt(w):I<<=BigInt(-w),f>=0?I*=10n**BigInt(f):C*=10n**BigInt(-f);let E=x/O(x,I)*I;function R(Fe){let Me=0;for(;(1n&Fe)==0n;)Fe>>=1n,Me++;return Me}function D(Fe){return Fe===0?0:Fe<27?(5n**BigInt(Fe)).toString(2).length:3*Fe}g*=E/x,C*=E/I,x=E,E=O(O(g,x),C),g/=E,x/=E,C/=E;let F=d-R(l)+R(g)+D(Math.max(0,-f)),z=R(x)+1+D(Math.max(0,f)+1),ie=F<32&&z<32?32:F<64&&z<64?64:0,$=Fe=>ie?BigInt.asIntN(ie,Fe):Fe,H=10n*x,me=0n,J=0,q=true;for(;;){let Fe=g/x;g=g%x*10n,C=$(10n*C);let Me=C<=0n||g<C,ut=C<=0n||(ie?$(g+C)>H:g+C>=H);if(q&&Fe===0n&&!ut?f--:(me=10n*me+Fe,J++),q&&(f<-3||f>=8)&&(Me=false,ut=false),q=false,Me||ut){let zt=$($(2n*g)-H);ut&&(!Me||zt>0n||zt===0n&&me%2n==1n)&&me++;break}}let ae=String(me),de=f-J+1;if(de>=0)return i+ae+"0".repeat(de);let pe=ae.length+de;return ae=pe>0?ae.slice(0,pe)+"."+ae.slice(pe):"0."+"0".repeat(-pe)+ae,i+ae.replace(/\.?0+$/,"")}},6574(n,t,e){var i,a=this&&this.__createBinding||(Object.create?function(u,f,g,x){x===void 0&&(x=g);var w=Object.getOwnPropertyDescriptor(f,g);w&&!("get"in w?!f.__esModule:w.writable||w.configurable)||(w={enumerable:true,get:function(){return f[g]}}),Object.defineProperty(u,x,w)}:function(u,f,g,x){x===void 0&&(x=g),u[x]=f[g]}),r=this&&this.__setModuleDefault||(Object.create?function(u,f){Object.defineProperty(u,"default",{enumerable:true,value:f})}:function(u,f){u.default=f}),o=this&&this.__importStar||(i=function(u){return i=Object.getOwnPropertyNames||function(f){var g=[];for(var x in f)Object.prototype.hasOwnProperty.call(f,x)&&(g[g.length]=x);return g},i(u)},function(u){if(u&&u.__esModule)return u;var f={};if(u!=null)for(var g=i(u),x=0;x<g.length;x++)g[x]!=="default"&&a(f,u,g[x]);return r(f,u),f});Object.defineProperty(t,"__esModule",{value:true}),t.SimpleYamlSerializer=void 0;let s=e(7120),l=o(e(3198)),c=e(1100),d={blockQuote:"literal",doubleQuotedMinMultiLineLength:1e9,lineWidth:0,minContentWidth:0,defaultStringType:"QUOTE_DOUBLE",defaultKeyType:"PLAIN",doubleQuotedAsJSON:true},m=new Map([[0,"0"],[7,"a"],[8,"b"],[9,"t"],[10,"n"],[11,"v"],[12,"f"],[13,"r"],[27,"e"],[34,'"'],[92,"\\"],[133,"N"],[160,"_"],[8232,"L"],[8233,"P"]]);function b(u){let f='"';for(let g of u){let x=g.codePointAt(0),w=m.get(x);f+=w!==void 0?"\\"+w:x<32||x>=127&&x<=159?"\\x"+x.toString(16).padStart(2,"0"):x>=55296&&x<=57343||x===65534||x===65535?"\\u"+x.toString(16).padStart(4,"0"):g}return f+'"'}t.SimpleYamlSerializer=class{static serialize(u){let f=new WeakMap,g=new l.default.Document(u,{customTags:x=>x.map(w=>typeof w!="string"&&w.collection===void 0&&w.tag==="tag:yaml.org,2002:str"?Je(Y({},w),{stringify(C,I,O,E){let R=f.get(C);if(R!==void 0)return R;let D=w.stringify(C,I,O,E);return D.startsWith('"')?b(String(C.value)):D}}):typeof w=="string"||w.collection!==void 0||w.tag!=="tag:yaml.org,2002:float"&&w.tag!=="tag:yaml.org,2002:int"?w:Je(Y({},w),{stringify:(C,I,O,E)=>typeof C.value=="number"&&Number.isFinite(C.value)?(0,s.javaPlainDecimal)(C.value):w.stringify(C,I,O,E)}))});return(0,l.visit)(g,{Scalar(x,w,C){if(x==="key"&&typeof w.value=="string"){let I=(0,c.yamlKeyNeedsQuoting)(w.value);w.type=I?l.Scalar.QUOTE_DOUBLE:l.Scalar.PLAIN,w.value.length>=128&&(f.set(w,I?b(w.value):w.value),w.type=l.Scalar.BLOCK_LITERAL)}else if(x==="value"&&typeof w.value=="string"){let I=C.at(-1);(0,l.isPair)(I)&&(0,l.isScalar)(I.key)&&typeof I.key.value=="string"&&(0,c.mayWriteYamlValuePlain)(I.key.value,w.value)&&(w.type=l.Scalar.PLAIN)}}}),g.toString(d).trim()+`
|
|
12
|
-
`}}},211(n,t,e){t.YamlAbstractArtifactWriter=void 0;let i=e(2112),a=e(8333),r=e(9517),o=e(2099),s=e(3910),l=e(1027),c=e(9129),d=e(8534),m=e(2234),b=e(9857),u=e(7661),f=e(9499),g=e(3281),x=e(6731),w=e(6591),C=e(7752),I=e(8557),O=e(2272);class E extends i.AbstractArtifactWriter{behavior;writers;atomicWriter;annotationsWriter;constructor(D,F){super(),this.behavior=D,this.writers=F,this.atomicWriter=F.getAtomicWriter(),this.annotationsWriter=F.getAnnotationsWriter()}macroNameAndDescription(D){let F=r.JsonNode.getEmpty();return D instanceof a.AbstractSchemaArtifact&&D.language!==C.Language.NULL&&(F[o.YamlKeys.language]=this.atomicWriter.write(D.language)),F[o.YamlKeys.name]=D.schema_name,D.schema_description!==""&&(F[o.YamlKeys.description]=D.schema_description),F}macroStatusAndVersion(D,F){let z=r.JsonNode.getEmpty();return F||(D.bibo_status!==s.BiboStatus.NULL&&(z[o.YamlKeys.status]=this.atomicWriter.write(D.bibo_status)),D.pav_version!==l.PavVersion.NULL&&(z[o.YamlKeys.version]=this.atomicWriter.write(D.pav_version)),z[o.YamlKeys.modelVersion]=this.atomicWriter.write(I.SchemaVersion.CURRENT)),z}macroInstanceType(D){let F=r.JsonNode.getEmpty();return D.instanceTypeSpecifications.length>0&&(F[o.YamlKeys.instanceType]=D.instanceTypeSpecifications.length===1?D.instanceTypeSpecifications[0]:[...D.instanceTypeSpecifications]),F}macroSkos(D){let F=r.JsonNode.getEmpty();return D.skos_prefLabel!==null&&(F[o.YamlKeys.prefLabel]=D.skos_prefLabel),D.skos_altLabel!==null&&D.skos_altLabel.length>0&&(F[o.YamlKeys.altLabels]=D.skos_altLabel),F}macroStandaloneFieldFlags(D){let F=r.JsonNode.getEmpty();return D.hidden&&(F[o.YamlKeys.hidden]=true),D.continuePreviousLine&&(F[o.YamlKeys.continuePreviousLine]=true),F}macroStandaloneFieldConfiguration(D){let F=r.JsonNode.getEmpty();return D.cedarFieldType.recordsRequirement&&(D.requiredValue&&(F[o.YamlKeys.required]=true),D.recommendedValue&&(F[o.YamlKeys.recommended]=true)),r.JsonNode.hasEntries(F)?{[o.YamlKeys.configuration]:F}:{}}macroValueRecommendation(D){let F=r.JsonNode.getEmpty();return(D instanceof x.ControlledTermFieldImpl||D instanceof w.TextFieldImpl)&&D.valueRecommendationEnabled&&(F[o.YamlKeys.valueRecommendation]=D.valueRecommendationEnabled),F}macroProvenance(D,F){let z=r.JsonNode.getEmpty();return F||(D.pav_createdOn!==b.IsoDate.NULL&&(z[o.YamlKeys.createdOn]=this.atomicWriter.write(D.pav_createdOn)),D.pav_createdBy!==m.CedarUser.NULL&&(z[o.YamlKeys.createdBy]=this.atomicWriter.write(D.pav_createdBy)),D.pav_lastUpdatedOn!==b.IsoDate.NULL&&(z[o.YamlKeys.modifiedOn]=this.atomicWriter.write(D.pav_lastUpdatedOn)),D.oslc_modifiedBy!==m.CedarUser.NULL&&(z[o.YamlKeys.modifiedBy]=this.atomicWriter.write(D.oslc_modifiedBy))),z}macroSchemaIdentifier(D){let F=r.JsonNode.getEmpty();return D.schema_identifier!==null&&(F[o.YamlKeys.identifier]=D.schema_identifier),F}macroType(D){let F=r.JsonNode.getEmpty();return F[o.YamlKeys.type]=this.getYamlType(D),F}macroId(D,F=false,z=true){let ie=r.JsonNode.getEmpty();return D.at_id===d.CedarArtifactId.NULL||F&&!z||(ie[o.YamlKeys.id]=this.atomicWriter.write(D.at_id)),ie}macroDerivedFrom(D,F){let z=r.JsonNode.getEmpty();return F||D.pav_derivedFrom!==d.CedarArtifactId.NULL&&(z[o.YamlKeys.derivedFrom]=this.atomicWriter.write(D.pav_derivedFrom)),z}macroIsBasedOn(D){let F=r.JsonNode.getEmpty();return D.schema_isBasedOn!==d.CedarArtifactId.NULL&&(F[o.YamlKeys.isBasedOn]=this.atomicWriter.write(D.schema_isBasedOn)),F}macroPreviousVersion(D,F){let z=r.JsonNode.getEmpty();return F||D.pav_previousVersion!==d.CedarArtifactId.NULL&&(z[o.YamlKeys.previousVersion]=this.atomicWriter.write(D.pav_previousVersion)),z}macroAnnotations(D){return this.annotationsWriter.write(D.annotations)}getYamlType(D){return D instanceof g.Template?f.YamlArtifactType.TEMPLATE.getValue():D instanceof u.TemplateElement?f.YamlArtifactType.ELEMENT.getValue():D instanceof c.TemplateField?D.cedarFieldType.getYamlType().getValue():D instanceof O.TemplateInstance?f.YamlArtifactType.TEMPLATE_INSTANCE.getValue():void 0}}t.YamlAbstractArtifactWriter=E},5386(n,t,e){t.YamlAbstractContainerArtifactWriter=void 0;let i=e(8198),a=e(8878),r=e(9517),o=e(9129),s=e(211),l=e(2099),c=e(3812),d=e(9519),m=e(5692),b=e(699),u=e(513);class f extends s.YamlAbstractArtifactWriter{getChildListAsJSON(x,w){let C=r.JsonNode.getEmptyList();return x.getChildrenInfo().getChildrenNames().forEach(I=>{let O=x.getChild(I);if(O!=null){let E=r.JsonNode.getEmpty(),R=x.getChildrenInfo().get(I);if(R!==null){E[l.YamlKeys.key]=I,E=O instanceof o.TemplateField?Y(Y({},E),this.writers.getFieldWriterForType(O.cedarFieldType).getYamlAsJsonNode(O,R,w,false)):Y(Y({},E),this.writers.getTemplateElementWriter().getYamlAsJsonNode(O,w,false));let D=this.getDeploymentInfo(O,R,w);r.JsonNode.hasEntries(D)&&(E[l.YamlKeys.configuration]=D),C.push(E)}}}),C}getDeploymentInfo(x,w,C){let I=r.JsonNode.getEmpty();if(w instanceof c.AbstractDynamicChildDeploymentInfo){let z=!(x instanceof o.TemplateField)||x.cedarFieldType.recordsRequirement;w.requiredValue&&z&&(I[l.YamlKeys.required]=true),w.hidden&&(I[l.YamlKeys.hidden]=true),w.recommendedValue&&z&&(I[l.YamlKeys.recommended]=true),w.iri!==null&&(C||(I[l.YamlKeys.propertyIri]=w.iri))}w instanceof c.AbstractDynamicChildDeploymentInfo||!w.hidden||(I[l.YamlKeys.hidden]=true),w.label!==null&&w.label!==x?.schema_name&&(I[l.YamlKeys.overrideLabel]=w.label),w.description!==null&&w.description!==x?.schema_description&&(I[l.YamlKeys.overrideDescription]=w.description),w instanceof d.AbstractFieldChildDeploymentInfo&&(w.continuePreviousLine&&(I[l.YamlKeys.continuePreviousLine]=true),w.valueRecommendationEnabled&&x instanceof o.TemplateField&&x.supportsValueRecommendation()&&(I[l.YamlKeys.valueRecommendation]=true));let{isMultiInstance:O,minItems:E,maxItems:R}=m.WriterUtil.getMultiMinMax(x,w),D=E,F=R;return O&&(D===null&&(D=u.AbstractChildDeploymentInfo.defaultMinItems),x?.isMultiInstanceByDefinition()||x?.isSingleInstanceByDefinition()?w instanceof a.ChildDeploymentInfoAlwaysMultiple&&(
|
|
13
|
-
`)||I.length===0})(C)));var C},t.yamlKeyNeedsQuoting=function(x){return!/^[A-Za-z_](?:[A-Za-z0-9_ -]*[A-Za-z0-9_-])?$(?![\s\S])/.test(x)||/^(y|yes|n|no|true|false|on|off|null)$/i.test(x)};let i=e(8349),a=e(4531),r=e(3910),o=e(3447),s=e(7974),l=e(8588),c=e(3764),d=e(9499),m=[/^\d{4}-\d{1,2}-\d{1,2}(?:$|[Tt ])/,/^(y|Y|n|N|yes|Yes|YES|no|No|NO|on|On|ON|off|Off|OFF|true|True|TRUE|false|False|FALSE)$/,/^(null|Null|NULL|~|<<|=)$/,/^[-+]?[0-9][0-9_]*$/,/^[-+]?0[xX][0-9a-fA-F_]+$/,/^[-+]?0[bB][01_]+$/,/^[-+]?0[oO]?[0-7_]+$/,/^[-+]?[0-9_]*\.?[0-9_]+([eE][-+]?[0-9]+)?$/,/^[-+]?\.(inf|Inf|INF|nan|NaN|NAN)$/,/^[-+]?[0-9][0-9_]*(:[0-5]?[0-9])+(\.[0-9_]*)?$/],b=new Set([...Object.values(d.YamlArtifactTypeValues),"element-instance",i.YamlValues.Controlled.class,a.BioportalTermTypeYamlValues.VALUE,i.YamlValues.Controlled.ontology,i.YamlValues.Controlled.branch,i.YamlValues.Controlled.valueSet]),u=new Set(["xsd:string","xsd:anyUri",...Object.values(l.TemporalTypeValues),...Object.values(o.NumberTypeValues),i.YamlValues.iri]),f=/^\d+\.\d+\.\d+$/,g=new Map([["type",b],["status",new Set(Object.values(r.BiboStatusYamlValues))],["datatype",u],["action",new Set(["move","delete"])],["granularity",new Set(Object.values(s.TemporalGranularityValues))],["termType",new Set(Object.values(a.BioportalTermTypeYamlValues))],["inputTimeFormat",new Set(Object.values(c.TimeFormatValues))]]);[...g.keys()]},5251(n,t,e){t.YamlTemplateElementWriter=void 0;let i=e(9517),a=e(6574),r=e(2099),o=e(5386);class s extends o.YamlAbstractContainerArtifactWriter{constructor(c,d){super(c,d)}static getFor(c,d){return new s(c,d)}getYamlAsJsonNode(c,d=false,m=true){let b=i.JsonNode.getEmpty();c.header!==null&&(b[r.YamlKeys.header]=c.header),c.footer!==null&&(b[r.YamlKeys.footer]=c.footer);let u=Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(c)),this.macroNameAndDescription(c)),this.macroSchemaIdentifier(c)),this.macroId(c,d,m)),this.macroStatusAndVersion(c,d)),this.macroInstanceType(c)),b),this.macroPreviousVersion(c,d)),this.macroDerivedFrom(c,d)),this.macroProvenance(c,d)),this.macroSkos(c)),this.macroAnnotations(c)),f=this.getChildListAsJSON(c,d);return f.length>0&&(u[r.YamlKeys.children]=f),c.extensions.applyYaml(u)}getAsYamlString(c,d=false){return a.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(c,d))}}t.YamlTemplateElementWriter=s},5430(n,t,e){t.YamlTemplateFieldWriterInternal=void 0;let i=e(9517),a=e(936),r=e(455),o=e(2099),s=e(211),l=e(6574);class c extends s.YamlAbstractArtifactWriter{constructor(m,b){super(m,b)}getAsYamlString(m,b=false){return l.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(m,r.ChildDeploymentInfo.empty(),b))}getYamlAsJsonNode(m,b=r.ChildDeploymentInfo.empty(),u=false,f=true){let g=this.buildUIObject(m,b),x=this.buildValueConstraintsObject(m,b);return m.extensions.applyYaml(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(m)),this.macroNameAndDescription(m)),this.macroSchemaIdentifier(m)),this.macroId(m,u,f)),this.macroStatusAndVersion(m,u)),this.macroSkos(m)),g),x),this.macroPreviousVersion(m,u)),this.macroDerivedFrom(m,u)),this.macroProvenance(m,u)),this.macroAnnotations(m)),f?this.macroStandaloneFieldFlags(m):{}),this.macroValueRecommendation(m)),f?this.macroStandaloneFieldConfiguration(m):{}))}expandUINodeForYAML(m){return i.JsonNode.getEmpty()}expandValueConstraintsNodeForYAML(m,b,u){}buildValueConstraintsObject(m,b){let u=i.JsonNode.getEmpty();return this.expandValueConstraintsNodeForYAML(u,m,b),u}expandLiterals(m,b){let u=i.JsonNode.getEmptyList();m.valueConstraints.literals.forEach(f=>{let g=i.JsonNode.getEmpty();g[a.CedarModel.label]=f.label,(f.statesSelectedByDefault||f.selectedByDefault)&&(g[o.YamlKeys.selected]=f.selectedByDefault),u.push(g)}),u.length>0&&(b[o.YamlKeys.values]=u)}buildUIObject(m,b){return this.expandUINodeForYAML(m)}}t.YamlTemplateFieldWriterInternal=c},9326(n,t,e){t.YamlTemplateInstanceWriter=void 0;let i=e(5588),a=e(1625),r=e(9167),o=e(9517),s=e(6574),l=e(211),c=e(7723),d=e(9327),m=e(5222),b=e(7571),u=e(4877),f=e(8193),g=e(2099),x=e(4033),w=e(3644),C="element-instance";class I extends l.YamlAbstractArtifactWriter{constructor(E,R){super(E,R)}static getFor(E,R){return new I(E,R)}getYamlAsJsonNode(E,R=false){return x.AttributeValueNamePolicy.assertValid(E.dataContainer),Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(E)),this.macroNameAndDescription(E)),this.macroId(E,R,true)),this.macroIsBasedOn(E)),this.macroDerivedFrom(E,R)),this.macroProvenance(E,R)),this.getDataTree(E,R)),this.macroAnnotations(E))}getAsYamlString(E,R=false){return s.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(E,R))}getDataTree(E,R){let D=o.JsonNode.getEmpty();return this.serializeDataLevelInto(E.dataContainer,D,R,true),D}serializeDataLevelInto(E,R,D,F=false){let z=o.JsonNode.getEmpty(),ie=this.getUnpackedAttributeValueGroups(E),$=new Set(Array.from(ie.values()).flat());Object.keys(E.values).forEach(me=>{if(ie.has(me)||$.has(me))return;let J=E.values[me];if(Array.isArray(J)){let q=o.JsonNode.getEmptyList();J.forEach((ae,de)=>{let pe=this.serializeCommonType(ae,D);if(pe!==null&&o.JsonNode.hasEntries(pe))q.push(pe);else if(ae instanceof c.InstanceDataContainer){let Fe={[g.YamlKeys.type]:C};!D&&this.hasId(ae.id)&&(Fe[g.YamlKeys.id]=ae.id),q.push(Fe)}}),q.length>0&&(z[me]=q)}else{let q=this.serializeCommonType(J,D);q!==null&&o.JsonNode.hasEntries(q)&&(z[me]=q)}}),o.JsonNode.hasEntries(z)&&(!this.hasId(E.id)||D&&!F||(R[g.YamlKeys.id]=E.id),R[g.YamlKeys.children]=z);let H=o.JsonNode.getEmpty();this.serializeAttributeValueFields(E,H,ie,F),F||!o.JsonNode.hasEntries(R)&&!o.JsonNode.hasEntries(H)||(Object.hasOwn(R,g.YamlKeys.children)||(R[g.YamlKeys.type]=C),!D&&this.hasId(E.id)&&(R[g.YamlKeys.id]=E.id)),Object.assign(R,H)}serializeAttributeValueFields(E,R,D,F){Object.keys(E.values).forEach(z=>{let ie=E.values[z];if((ie instanceof d.InstanceDataAttributeValueField||D.has(z))&&i.ReservedNames.yamlKeys(F?"template":"element").has(z))throw new Error(`Attribute-value field key "${z}" is reserved for CEDAR YAML metadata.`);if(ie instanceof d.InstanceDataAttributeValueField){let $=o.JsonNode.getEmpty(),H=false;Object.keys(ie.values).forEach(me=>{let J=ie.values[me];if(J instanceof m.InstanceDataStringAtom){let q=this.serializeAtomString(J);q!==null&&($[me]=q,H=true)}}),H&&(R[z]=$)}});for(let[z,ie]of D){let $=o.JsonNode.getEmpty();for(let H of ie){let me=E.values[H];if(me instanceof m.InstanceDataStringAtom){let J=this.serializeAtomString(me);J!==null&&($[H]=J)}}o.JsonNode.hasEntries($)&&(R[z]=$)}}getUnpackedAttributeValueGroups(E){let R=new Map;for(let[D,F]of Object.entries(E.values)){if(!Array.isArray(F))continue;let z=F.filter(ie=>ie instanceof w.InstanceDataAttributeValueFieldName).map(ie=>ie.name).filter(ie=>ie.trim().length>0);z.length>0&&R.set(D,z)}return R}serializeCommonType(E,R){let D=this.serializeCommonTypeWithoutNotation(E,R);if("notation"in E&&E.notation!==null){let F=D??o.JsonNode.getEmpty();F[g.YamlKeys.notation]=E.notation,D=F}if("preferredLabel"in E&&E.preferredLabel!==null){let F=D??o.JsonNode.getEmpty();F[g.YamlKeys.prefLabel]=E.preferredLabel,D=F}return D!==null&&"language"in E&&E.language!==null&&(D[g.YamlKeys.language]=E.language),D}serializeCommonTypeWithoutNotation(E,R){if(E instanceof a.InstanceDataNotationAtom)return E.type===null?o.JsonNode.getEmpty():{[g.YamlKeys.datatype]:E.type};if(E instanceof m.InstanceDataStringAtom)return this.serializeAtomString(E);if(E instanceof u.InstanceDataTypedAtom)return E.value===null&&E.label===null&&E.notation===null&&E.preferredLabel===null?null:Y({[g.YamlKeys.datatype]:E.type,[g.YamlKeys.value]:E.value},E.label===null?{}:{[g.YamlKeys.label]:E.label});if(E instanceof r.InstanceDataLabelAtom)return Je(Y({},E.type===null?{}:{[g.YamlKeys.datatype]:E.type}),{[g.YamlKeys.label]:E.label});if(E instanceof f.InstanceDataControlledAtom){let D=o.JsonNode.getEmpty();return E.type===null||!this.hasId(E.id)&&E.label===null&&E.notation===null||(D[g.YamlKeys.datatype]=E.type),this.hasId(E.id)&&(D[g.YamlKeys.id]=E.id),E.label!==null&&(D[g.YamlKeys.label]=E.label),o.JsonNode.hasEntries(D)?D:null}if(E instanceof b.InstanceDataLinkAtom)return this.serializeAtomLink(E);if(E instanceof c.InstanceDataContainer){let D=o.JsonNode.getEmpty();return this.serializeDataLevelInto(E,D,R),D}return null}serializeAtomString(E){return E.value===null&&E.label===null&&E.notation===null&&E.preferredLabel===null?null:Y({[g.YamlKeys.value]:E.value},E.label===null?{}:{[g.YamlKeys.label]:E.label})}serializeAtomLink(E){return this.hasId(E.id)?Je(Y({},E.type===null?{}:{[g.YamlKeys.datatype]:E.type}),{[g.YamlKeys.id]:E.id}):E.notation!==null&&E.type!==null?{[g.YamlKeys.datatype]:E.type}:null}hasId(E){return E!==null&&E!==""}}t.YamlTemplateInstanceWriter=I},1933(n,t,e){t.YamlTemplateWriter=void 0;let i=e(9517),a=e(6574),r=e(2099),o=e(5386);class s extends o.YamlAbstractContainerArtifactWriter{constructor(c,d){super(c,d)}static getFor(c,d){return new s(c,d)}getYamlAsJsonNode(c,d=false){let m=i.JsonNode.getEmpty();c.header!==null&&(m[r.YamlKeys.header]=c.header),c.footer!==null&&(m[r.YamlKeys.footer]=c.footer);let b=Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(c)),this.macroNameAndDescription(c)),this.macroSchemaIdentifier(c)),this.macroId(c,d,true)),this.macroStatusAndVersion(c,d)),this.macroInstanceType(c)),m),this.macroPreviousVersion(c,d)),this.macroDerivedFrom(c,d)),this.macroProvenance(c,d)),this.macroAnnotations(c)),u=this.getChildListAsJSON(c,d);return u.length>0&&(b[r.YamlKeys.children]=u),c.extensions.applyYaml(b)}getAsYamlString(c,d=false){return a.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(c,d))}}t.YamlTemplateWriter=s},1641(n,t,e){t.AbstractArtifactBuilder=void 0;let i=e(4443),a=e(8333),r=e(2763),o=e(9857),s=e(2234),l=e(1027),c=e(3910),d=e(8534),m=e(8557);class b{at_id=d.CedarArtifactId.NULL;title=null;description=null;schema_schemaVersion=m.SchemaVersion.CURRENT;pav_createdOn=o.IsoDate.NULL;pav_createdBy=s.CedarUser.NULL;pav_lastUpdatedOn=o.IsoDate.NULL;oslc_modifiedBy=s.CedarUser.NULL;extensions=new i.SchemaExtensions;withExtensions(f){return this.extensions=f,this}pav_version=l.PavVersion.DEFAULT;bibo_status=c.BiboStatus.DRAFT;schema_name=null;schema_description="";schema_identifier=null;pav_derivedFrom=d.CedarArtifactId.NULL;withAtId(f){return f instanceof d.CedarArtifactId?this.at_id=f:this.at_id=d.CedarArtifactId.forValue(f),this}withTitle(f){return this.title=f,this}withDescription(f){return this.description=f,this}withSchemaVersion(f){return this.schema_schemaVersion=f,this}withCreatedOn(f){return f instanceof o.IsoDate?this.pav_createdOn=f:this.pav_createdOn=o.IsoDate.forValue(f),this}withCreatedBy(f){return f instanceof s.CedarUser?this.pav_createdBy=f:this.pav_createdBy=s.CedarUser.forValue(f),this}withLastUpdatedOn(f){return f instanceof o.IsoDate?this.pav_lastUpdatedOn=f:this.pav_lastUpdatedOn=o.IsoDate.forValue(f),this}withModifiedBy(f){return f instanceof s.CedarUser?this.oslc_modifiedBy=f:this.oslc_modifiedBy=s.CedarUser.forValue(f),this}withVersion(f){return f instanceof l.PavVersion?this.pav_version=f:this.pav_version=l.PavVersion.forValue(f),this}withStatus(f){return f instanceof c.BiboStatus?this.bibo_status=f:this.bibo_status=c.BiboStatus.forJsonValue(f),this}withSchemaName(f){return this.schema_name=f,this}withSchemaDescription(f){return this.schema_description=f??"",this}withDerivedFrom(f){return this.pav_derivedFrom=f,this}withSchemaIdentifier(f){return this.schema_identifier=f,this}buildInternal(f){if(f.at_id=this.at_id,f.title=this.title,f.description=this.description,f.schema_schemaVersion=this.schema_schemaVersion,f.pav_createdOn=this.pav_createdOn,f.pav_createdBy=this.pav_createdBy,f.pav_lastUpdatedOn=this.pav_lastUpdatedOn,f.oslc_modifiedBy=this.oslc_modifiedBy,f.extensions=this.extensions,f.pav_version=this.pav_version,f.bibo_status=this.bibo_status,f.schema_name=this.schema_name,f.schema_description=this.schema_description,f.schema_identifier=this.schema_identifier,f.pav_derivedFrom=this.pav_derivedFrom,f.title===null&&f.schema_name!==null){let g=b.kindOf(f.cedarArtifactType);g!==null&&(f.title=(0,a.internalNameFor)(f.schema_name,g))}}static kindOf(f){return f===r.CedarArtifactType.TEMPLATE?"template":f===r.CedarArtifactType.TEMPLATE_ELEMENT?"element":f===r.CedarArtifactType.TEMPLATE_FIELD||f===r.CedarArtifactType.STATIC_TEMPLATE_FIELD?"field":null}}t.AbstractArtifactBuilder=b},2674(n,t,e){t.AbstractArtifact=void 0;let i=e(9857),a=e(2234),r=e(8534),o=e(2763);t.AbstractArtifact=class{at_id=r.CedarArtifactId.NULL;pav_createdOn=i.IsoDate.NULL;pav_createdBy=a.CedarUser.NULL;pav_lastUpdatedOn=i.IsoDate.NULL;oslc_modifiedBy=a.CedarUser.NULL;pav_derivedFrom=r.CedarArtifactId.NULL;schema_name=null;schema_description="";cedarArtifactType=o.CedarArtifactType.NULL;annotations=null}},5451(n,t,e){t.AbstractContainerArtifact=void 0;let i=e(8333),a=e(1492),r=e(3746),o=e(2763),s=e(4869),l=e(5588);class c extends i.AbstractSchemaArtifact{childrenInfo=new a.ContainerArtifactChildrenInfo;childMap=new Map;instanceTypes=[];get instanceTypeSpecifications(){return[...this.instanceTypes]}set instanceTypeSpecifications(m){if(!Array.isArray(m)||m.some(b=>typeof b!="string"||!/^[a-z][a-z0-9+.-]*:\S+$/i.test(b))||new Set(m).size!==m.length)throw new Error("Instance types must be unique absolute IRIs");this.instanceTypes=[...m]}get instanceTypeSpecification(){return this.instanceTypeSpecifications[0]??null}set instanceTypeSpecification(m){this.instanceTypeSpecifications=m===null?[]:[m]}addChild(m,b){c.refuseReservedChildName(this,m,b.name),this.childrenInfo.add(b),this.childMap.set(b.name,m)}static refuseReservedChildName(m,b,u){if(Array.from(u).every(c.isJavaWhitespace))throw new Error("A child key must not be blank.");let f=b.cedarArtifactType===o.CedarArtifactType.TEMPLATE_FIELD&&b.cedarFieldType===s.CedarFieldType.ATTRIBUTE_VALUE,g=m.cedarArtifactType===o.CedarArtifactType.TEMPLATE?"template":"element";if(f?l.ReservedNames.isReservedAttributeValueFieldName(u,g):l.ReservedNames.isReservedName(u))throw new Error(`Child name "${u}" is reserved for CEDAR instance metadata.`)}static isJavaWhitespace(m){let b=m.codePointAt(0);return b>=9&&b<=13||b>=28&&b<=31||new RegExp("\\p{Z}","u").test(m)&&b!==160&&b!==8199&&b!==8239}getChildrenInfo(){return this.childrenInfo}getAdditionalProperties(){return this.childrenInfo.hasAttributeValue()?r.AdditionalProperties.ALLOW_ATTRIBUTE_VALUE:r.AdditionalProperties.FALSE}getChild(m){return this.childMap.get(m)??null}getElement(m){let b=this.getChild(m);return b!==null&&b.cedarArtifactType===o.CedarArtifactType.TEMPLATE_ELEMENT?b:null}getField(m){let b=this.getChild(m);return b!==null&&b.cedarArtifactType===o.CedarArtifactType.TEMPLATE_FIELD?b:null}getChildInfo(m){return this.childrenInfo.get(m)}}t.AbstractContainerArtifact=c},5697(n,t,e){t.AbstractInstanceArtifact=void 0;let i=e(8534),a=e(2674);class r extends a.AbstractArtifact{schema_isBasedOn=i.CedarArtifactId.NULL}t.AbstractInstanceArtifact=r},8333(n,t,e){t.AbstractSchemaArtifact=void 0,t.internalNameFor=function(m,b){return`${m} ${b} schema`};let i=e(4443),a=e(1027),r=e(3910),o=e(8534),s=e(8557),l=e(2674),c=e(7752);class d extends l.AbstractArtifact{extensions=new i.SchemaExtensions;title=null;description=null;schema_schemaVersion=s.SchemaVersion.NULL;pav_version=a.PavVersion.NULL;bibo_status=r.BiboStatus.NULL;schema_identifier=null;pav_previousVersion=o.CedarArtifactId.NULL;language=c.Language.NULL}t.AbstractSchemaArtifact=d},5588(n,t,e){t.ReservedNames=void 0;let i=e(2099);class a{static INSTANCE_PROPERTIES=new Set(["schema:name","schema:description","schema:identifier","schema:isBasedOn","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","pav:derivedFrom","oslc:modifiedBy","_annotations","rdfs:label","skos:notation","skos:prefLabel","skos:altLabel"]);static OBJECT_INTERNALS=new Set(["__proto__","constructor","prototype"]);static TEMPLATE_INSTANCE_YAML_KEYS=new Set([i.YamlKeys.type,i.YamlKeys.name,i.YamlKeys.description,i.YamlKeys.id,i.YamlKeys.isBasedOn,i.YamlKeys.derivedFrom,i.YamlKeys.children,i.YamlKeys.annotations,i.YamlKeys.createdOn,i.YamlKeys.createdBy,i.YamlKeys.modifiedOn,i.YamlKeys.modifiedBy]);static NESTED_ELEMENT_INSTANCE_YAML_KEYS=new Set([i.YamlKeys.type,i.YamlKeys.id,i.YamlKeys.children]);static STANDALONE_ELEMENT_INSTANCE_YAML_KEYS=new Set([i.YamlKeys.type,i.YamlKeys.name,i.YamlKeys.description,i.YamlKeys.id,i.YamlKeys.children,i.YamlKeys.createdOn,i.YamlKeys.createdBy,i.YamlKeys.modifiedOn,i.YamlKeys.modifiedBy]);static requireChildName(o){if(a.isReservedName(o))throw new Error(`Child name "${o}" is reserved for CEDAR instance metadata.`)}constructor(){}static isReservedName(o){return o.startsWith("@")||a.INSTANCE_PROPERTIES.has(o)||a.OBJECT_INTERNALS.has(o)}static isReservedAttributeValueFieldName(o,s){return a.isReservedName(o)||(s==="template"?a.TEMPLATE_INSTANCE_YAML_KEYS:a.STANDALONE_ELEMENT_INSTANCE_YAML_KEYS).has(o)}static yamlKeys(o){return o==="template"?a.TEMPLATE_INSTANCE_YAML_KEYS:a.NESTED_ELEMENT_INSTANCE_YAML_KEYS}}t.ReservedNames=a},4443(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.SchemaExtensions=void 0;let e=new Set(["xsd","pav","bibo","oslc","schema","skos","rdfs","_annotations"]);function i(s){return/^[A-Za-z_][A-Za-z0-9_-]*$/.test(s)&&!e.has(s)}function a(s){return s!==null&&typeof s=="object"&&!Array.isArray(s)}function r(s){return Array.isArray(s)?s.map(r):a(s)?Object.fromEntries(Object.keys(s).sort().map(l=>[l,r(s[l])])):s}class o{namespaces;values;constructor(l={},c={}){for(let[d,m]of Object.entries(l))if(!i(d)||typeof m!="string"||!/^[A-Za-z][A-Za-z0-9+.-]*:[^\s]*$/.test(m))throw new Error(`Invalid schema extension prefix: ${d}`);for(let d of Object.keys(c)){let m=d.indexOf(":");if(m<1||m===d.length-1||!Object.hasOwn(l,d.slice(0,m)))throw new Error(`Unbound schema extension property: ${d}`)}this.namespaces=r(l),this.values=r(c)}get prefixes(){return Y({},this.namespaces)}get properties(){return r(this.values)}get isEmpty(){return Object.keys(this.namespaces).length===0&&Object.keys(this.values).length===0}static fromJson(l){let c=a(l["@context"])?l["@context"]:{},d=Object.fromEntries(Object.entries(c).filter(([b,u])=>i(b)&&typeof u=="string")),m=Object.fromEntries(Object.entries(l).filter(([b])=>{let u=b.indexOf(":");return u>0&&Object.hasOwn(d,b.slice(0,u))}));return new o(d,m)}static fromYaml(l){if(!Object.hasOwn(l,"extensions"))return new o;let c=l.extensions;if(!a(c)||Object.keys(c).length!==2||!a(c.prefixes)||!a(c.properties))throw new Error("extensions requires prefixes and properties objects");return new o(c.prefixes,c.properties)}applyJson(l){return l["@context"]=Y(Y({},l["@context"]),this.prefixes),Object.assign(l,this.properties),l}applyYaml(l){return this.isEmpty||(l.extensions={prefixes:this.prefixes,properties:this.properties}),l}}t.SchemaExtensions=o},2787(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.AnnotationAtId=void 0,t.AnnotationAtId=class{name;id;constructor(e,i){this.name=e,this.id=i}getName(){return this.name}getAtId(){return this.id}}},3549(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.AnnotationAtValue=void 0,t.AnnotationAtValue=class{name;value;constructor(e,i){this.name=e,this.value=i}getName(){return this.name}getAtValue(){return this.value}}},5226(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.Annotations=void 0,t.Annotations=class{annotations=new Map;add(e){this.annotations.set(e.getName(),e)}getSize(){return this.annotations.size}getAnnotationNames(){return Array.from(this.annotations.keys())}get(e){return this.annotations.has(e)?this.annotations.get(e):null}}},936(n,t){t.CedarModel=void 0,t.CedarModel=class{static ui="_ui";static schema="$schema";static order="order";static inputType="inputType";static type="type";static items="items";static valueConstraints="_valueConstraints";static requiredValue="requiredValue";static defaultValue="defaultValue";static minItems="minItems";static maxItems="maxItems";static minLength="minLength";static maxLength="maxLength";static numberType="numberType";static temporalType="temporalType";static temporalGranularity="temporalGranularity";static timezoneEnabled="timezoneEnabled";static inputTimeFormat="inputTimeFormat";static unitOfMeasure="unitOfMeasure";static minValue="minValue";static maxValue="maxValue";static decimalPlace="decimalPlace";static content="_content";static size="_size";static width="width";static height="height";static regex="regex";static pages="pages";static header="header";static footer="footer";static ontologies="ontologies";static valueSets="valueSets";static classes="classes";static branches="branches";static actions="actions";static multipleChoice="multipleChoice";static literals="literals";static label="label";static selectedByDefault="selectedByDefault";static propertyDescriptions="propertyDescriptions";static propertyLabels="propertyLabels";static skosPrefLabel="skos:prefLabel";static skosAltLabel="skos:altLabel";static skosNotation="skos:notation";static format="format";static enum="enum";static annotations="_annotations";static propertyIriPrefix="https://schema.metadatacenter.org/properties/";static ValueConstraints=class{static acronym="acronym";static name="name";static uri="uri";static numTerms="numTerms";static label="label";static source="source";static type="type";static termType="termType";static prefLabel="prefLabel";static maxDepth="maxDepth";static vsCollection="vsCollection";static termUri="termUri";static sourceUri="sourceUri";static iri="iri";static sourceSystem="sourceSystem";static version="version";static versionId="id";static versionEffectiveDate="effectiveDate";static versionDeclaredVersion="declaredVersion";static action="action";static to="to";static recommendedValue="recommendedValue"};static Ui=class{static hidden="hidden";static continuePreviousLine="continuePreviousLine";static valueRecommendationEnabled="valueRecommendationEnabled"}}},2733(n,t){t.JsonSchema=void 0,t.JsonSchema=class{static skosNotation="skos:notation";static properties="properties";static required="required";static atContext="@context";static atId="@id";static atType="@type";static atValue="@value";static atLanguage="@language";static schemaIsBasedOn="schema:isBasedOn";static schemaName="schema:name";static schemaDescription="schema:description";static schemaVersion="schema:schemaVersion";static schemaIdentifier="schema:identifier";static pavDerivedFrom="pav:derivedFrom";static pavPreviousVersion="pav:previousVersion";static pavCreatedOn="pav:createdOn";static pavCreatedBy="pav:createdBy";static pavLastUpdatedOn="pav:lastUpdatedOn";static oslcModifiedBy="oslc:modifiedBy";static pavVersion="pav:version";static biboStatus="bibo:status";static rdfsLabel="rdfs:label";static termUri="termUri";static enum="enum";static oneOf="oneOf";static type="type";static items="items"}},4216(n,t){t.NonStandardDatatype=void 0,t.NonStandardDatatype=class{static IRI="iri"}},5747(n,t){t.TemplateProperty=void 0,t.TemplateProperty=class{static title="title";static description="description";static additionalProperties="additionalProperties"}},2099(n,t){t.YamlKeys=void 0,t.YamlKeys=class{static notation="notation";static id="id";static type="type";static name="name";static description="description";static modelVersion="modelVersion";static status="status";static version="version";static language="language";static label="label";static prefLabel="prefLabel";static altLabels="altLabels";static datatype="datatype";static valueRecommendation="valueRecommendation";static required="required";static recommended="recommended";static hidden="hidden";static continuePreviousLine="continuePreviousLine";static propertyIri="propertyIri";static overrideLabel="overrideLabel";static overrideDescription="overrideDescription";static default="default";static minLength="minLength";static maxLength="maxLength";static regex="regex";static identifier="identifier";static derivedFrom="derivedFrom";static previousVersion="previousVersion";static createdOn="createdOn";static createdBy="createdBy";static modifiedOn="modifiedOn";static modifiedBy="modifiedBy";static isBasedOn="isBasedOn";static instanceType="instanceType";static annotations="annotations";static value="value";static granularity="granularity";static inputTimeZone="inputTimeZone";static inputTimeFormat="inputTimeFormat";static header="header";static footer="footer";static children="children";static multiple="multiple";static minItems="minItems";static maxItems="maxItems";static content="content";static height="height";static width="width";static key="key";static minValue="minValue";static maxValue="maxValue";static decimalPlaces="decimalPlaces";static unit="unit";static multipleChoice="multipleChoice";static values="values";static selected="selected";static actions="actions";static action="action";static configuration="configuration";static Controlled=class{static sourceSystem="sourceSystem";static sourceAcronym="sourceAcronym";static sourceName="sourceName";static sourceIri="sourceIri";static sourceUri="sourceUri";static termIri="termIri";static termType="termType";static termLabel="termLabel";static termDisplayLabel="termDisplayLabel";static termBaseIri="termBaseIri";static termBaseLabel="termBaseLabel";static termMaxDepth="termMaxDepth";static termCount="termCount";static versionId="id";static versionEffectiveDate="effectiveDate";static versionDeclaredVersion="declaredVersion";static to="to"}}},8349(n,t){t.YamlValues=void 0,t.YamlValues=class{static id="id";static value="value";static iri="iri";static string="string";static Controlled=class{static class="class";static ontology="ontology";static valueSet="valueSet";static branch="branch"}}},513(n,t,e){t.AbstractChildDeploymentInfo=void 0;let i=e(2763),a=e(9034);t.AbstractChildDeploymentInfo=class{static defaultMinItems=1;_name;_atType=i.CedarArtifactType.NULL;_uiInputType=a.UiInputType.NULL;_label=null;_description=null;constructor(r){this._name=r}get name(){return this._name}hasParent(){return this._name!==""}get atType(){return this._atType}set atType(r){this._atType=r}get uiInputType(){return this._uiInputType}set uiInputType(r){this._uiInputType=r}get label(){return this._label}set label(r){this._label=r}get description(){return this._description}set description(r){this._description=r}get hidden(){return false}}},6910(n,t,e){t.AbstractChildDeploymentInfoBuilder=void 0;let i=e(2763),a=e(9034),r=e(9129);t.AbstractChildDeploymentInfoBuilder=class{child=null;name="";atType=i.CedarArtifactType.NULL;uiInputType=a.UiInputType.NULL;label=null;description=null;constructor(o,s){this.child=o,this.name=s}withLabel(o){return this.label=o,this}withDescription(o){return this.description=o,this}setCommonData(o){o.label=this.label,o.description=this.description,o.atType=this.atType,o.uiInputType=this.uiInputType,this.child!=null&&(o.atType=this.child.cedarArtifactType,this.child instanceof r.TemplateField&&(o.uiInputType=this.child.cedarFieldType.getUiInputType()))}}},3812(n,t,e){t.AbstractDynamicChildDeploymentInfo=void 0;let i=e(513);class a extends i.AbstractChildDeploymentInfo{_iri=null;constructor(o){super(o)}get iri(){return this._iri}set iri(o){this._iri=o}get requiredValue(){return false}get recommendedValue(){return false}get minItems(){return null}get maxItems(){return null}}t.AbstractDynamicChildDeploymentInfo=a},4809(n,t,e){t.AbstractDynamicChildDeploymentInfoBuilder=void 0;let i=e(455),a=e(6910);class r extends a.AbstractChildDeploymentInfoBuilder{iri=null;constructor(s,l){super(s,l)}withIri(s){return this.iri=s,this}build(){let s=new i.ChildDeploymentInfo(this.name);return this.setCommonData(s),s}setCommonData(s){super.setCommonData(s),s.iri=this.iri}}t.AbstractDynamicChildDeploymentInfoBuilder=r},9519(n,t,e){t.AbstractFieldChildDeploymentInfo=void 0;let i=e(3812);class a extends i.AbstractDynamicChildDeploymentInfo{_hidden=false;_requiredValue=false;_recommendedValue=false;_continuePreviousLine=false;_valueRecommendationEnabled=false;constructor(o){super(o)}get hidden(){return this._hidden}set hidden(o){this._hidden=o}get requiredValue(){return this._requiredValue}set requiredValue(o){this._requiredValue=o}get recommendedValue(){return this._recommendedValue}set recommendedValue(o){this._recommendedValue=o}get continuePreviousLine(){return this._continuePreviousLine}set continuePreviousLine(o){this._continuePreviousLine=o}get valueRecommendationEnabled(){return this._valueRecommendationEnabled}set valueRecommendationEnabled(o){this._valueRecommendationEnabled=o}}t.AbstractFieldChildDeploymentInfo=a},6096(n,t,e){t.AbstractFieldChildDeploymentInfoBuilder=void 0;let i=e(9129),a=e(4809),r=e(9519);class o extends a.AbstractDynamicChildDeploymentInfoBuilder{hidden=false;requiredValue=false;recommendedValue=false;continuePreviousLine=false;valueRecommendationEnabled=false;constructor(l,c){super(l,c)}withHidden(l){return this.hidden=l,this}get recordsRequirement(){return!(this.child instanceof i.TemplateField)||this.child.cedarFieldType.recordsRequirement}withRequiredValue(l){return this.recordsRequirement&&(this.requiredValue=l),this}withRecommendedValue(l){return this.recordsRequirement&&(this.recommendedValue=l),this}withContinuePreviousLine(l){return this.continuePreviousLine=l,this}withValueRecommendationEnabled(l){return this.valueRecommendationEnabled=l,this}setCommonData(l){super.setCommonData(l),l instanceof r.AbstractFieldChildDeploymentInfo&&(l.hidden=this.hidden,l.requiredValue=this.requiredValue,l.recommendedValue=this.recommendedValue,l.continuePreviousLine=this.continuePreviousLine,l.valueRecommendationEnabled=this.valueRecommendationEnabled)}}t.AbstractFieldChildDeploymentInfoBuilder=o},455(n,t,e){t.ChildDeploymentInfo=void 0;let i=e(9519);class a extends i.AbstractFieldChildDeploymentInfo{_multiInstance=false;_minItems=null;_maxItems=null;_standalone=false;static empty(){return new a("")}static standalone(){let o=new a("");return o._standalone=true,o}constructor(o){super(o)}get multiInstance(){return this._multiInstance}set multiInstance(o){this._multiInstance=o}get minItems(){return this._minItems}set minItems(o){this._minItems=o}get maxItems(){return this._maxItems}set maxItems(o){this._maxItems=o}isMultiInAnyWay(){return this._multiInstance}isStandalone(){return this._standalone}}t.ChildDeploymentInfo=a},8878(n,t,e){t.ChildDeploymentInfoAlwaysMultiple=void 0;let i=e(9519);class a extends i.AbstractFieldChildDeploymentInfo{_declaredMinItems=null;_declaredMaxItems=null;static empty(){return new a("")}constructor(o){super(o)}isMultiInAnyWay(){return true}get declaredMinItems(){return this._declaredMinItems}get declaredMaxItems(){return this._declaredMaxItems}set declaredMinItems(o){this._declaredMinItems=o}set declaredMaxItems(o){this._declaredMaxItems=o}get minItems(){return this._declaredMinItems!==null?this._declaredMinItems:this.defaultMinItems}get defaultMinItems(){return 0}get maxItems(){return this._declaredMaxItems}}t.ChildDeploymentInfoAlwaysMultiple=a},3239(n,t,e){t.ChildDeploymentInfoAlwaysMultipleBuilder=void 0;let i=e(8198),a=e(8878),r=e(6096),o=e(9129),s=e(4869);class l extends r.AbstractFieldChildDeploymentInfoBuilder{declaredMinItems=null;declaredMaxItems=null;constructor(d,m){super(d,m)}withMinItems(d){return this.declaredMinItems=d,this}withMaxItems(d){return this.declaredMaxItems=d,this}build(){if((0,i.assertItemBounds)(this.name,this.declaredMinItems,this.declaredMaxItems),this.child instanceof o.TemplateField&&this.child.cedarFieldType===s.CedarFieldType.ATTRIBUTE_VALUE&&this.declaredMinItems!==null&&this.declaredMinItems>0)throw new Error(`minItems must be zero in attribute-value field ${this.name}`);let d=new a.ChildDeploymentInfoAlwaysMultiple(this.name);return this.setCommonData(d),d.declaredMinItems=this.declaredMinItems,d.declaredMaxItems=this.declaredMaxItems,d}}t.ChildDeploymentInfoAlwaysMultipleBuilder=l},2266(n,t,e){t.ChildDeploymentInfoAlwaysSingle=void 0;let i=e(9519);class a extends i.AbstractFieldChildDeploymentInfo{static empty(){return new a("")}constructor(o){super(o)}isMultiInAnyWay(){return false}}t.ChildDeploymentInfoAlwaysSingle=a},587(n,t,e){t.ChildDeploymentInfoAlwaysSingleBuilder=void 0;let i=e(2266),a=e(6096);class r extends a.AbstractFieldChildDeploymentInfoBuilder{constructor(s,l){super(s,l)}build(){let s=new i.ChildDeploymentInfoAlwaysSingle(this.name);return this.setCommonData(s),s}}t.ChildDeploymentInfoAlwaysSingleBuilder=r},3608(n,t,e){t.ChildDeploymentInfoBuilder=void 0;let i=e(8198),a=e(455),r=e(6096);class o extends r.AbstractFieldChildDeploymentInfoBuilder{multiInstance=false;minItems=null;maxItems=null;constructor(l,c){super(l,c)}withMultiInstance(l){return this.multiInstance=l,this}withMinItems(l){return this.minItems=l,this}withMaxItems(l){return this.maxItems=l,this}build(){(0,i.assertItemBounds)(this.name,this.minItems,this.maxItems);let l=new a.ChildDeploymentInfo(this.name);return this.setCommonData(l),l.multiInstance=this.multiInstance,l.minItems=this.minItems,l.maxItems=this.maxItems,l}}t.ChildDeploymentInfoBuilder=o},4831(n,t,e){t.ChildDeploymentInfoElement=void 0;let i=e(3812);class a extends i.AbstractDynamicChildDeploymentInfo{_multiInstance=false;_minItems=null;_maxItems=null;static empty(){return new a("")}constructor(o){super(o)}get multiInstance(){return this._multiInstance}set multiInstance(o){this._multiInstance=o}get minItems(){return this._minItems}set minItems(o){this._minItems=o}get maxItems(){return this._maxItems}set maxItems(o){this._maxItems=o}isMultiInAnyWay(){return this._multiInstance}}t.ChildDeploymentInfoElement=a},6976(n,t,e){t.ChildDeploymentInfoElementBuilder=void 0;let i=e(8198),a=e(4809),r=e(4831);class o extends a.AbstractDynamicChildDeploymentInfoBuilder{multiInstance=false;minItems=null;maxItems=null;constructor(l,c){super(l,c)}withMultiInstance(l){return this.multiInstance=l,this}withMinItems(l){return this.minItems=l,this}withMaxItems(l){return this.maxItems=l,this}build(){(0,i.assertItemBounds)(this.name,this.minItems,this.maxItems);let l=new r.ChildDeploymentInfoElement(this.name);return this.setCommonData(l),l.multiInstance=this.multiInstance,l.minItems=this.minItems,l.maxItems=this.maxItems,l}}t.ChildDeploymentInfoElementBuilder=o},3581(n,t,e){t.ChildDeploymentInfoStatic=void 0;let i=e(513);class a extends i.AbstractChildDeploymentInfo{_hidden=false;static empty(){return new a("")}constructor(o){super(o)}get hidden(){return this._hidden}set hidden(o){this._hidden=o}isMultiInAnyWay(){return false}}t.ChildDeploymentInfoStatic=a},8290(n,t,e){t.ChildDeploymentInfoStaticBuilder=void 0;let i=e(6910),a=e(3581);class r extends i.AbstractChildDeploymentInfoBuilder{hidden=false;constructor(s,l){super(s,l)}withHidden(s){return this.hidden=s,this}build(){let s=new a.ChildDeploymentInfoStatic(this.name);return super.setCommonData(s),s.hidden=this.hidden,s}}t.ChildDeploymentInfoStaticBuilder=r},1492(n,t,e){t.ContainerArtifactChildrenInfo=void 0;let i=e(2763),a=e(2733),r=e(9034),o=e(3812);t.ContainerArtifactChildrenInfo=class{childNameList=[];childMap=new Map;add(s){this.childNameList.push(s.name),this.childMap.set(s.name,s)}get children(){return this.childNameList.map(s=>this.childMap.get(s))}has(s){return this.childMap.has(s)}get(s){return this.childMap.get(s)??null}getChildrenNames(){return Array.from(this.childMap.keys())}getChildrenNamesForRequiredInProperties(){let s=[];for(let[l,c]of this.childMap.entries())c.atType!==i.CedarArtifactType.STATIC_TEMPLATE_FIELD&&c.uiInputType!==r.UiInputType.ATTRIBUTE_VALUE&&s.push(l);return s}getChildrenNamesForRequired(){let s=[];for(let[l,c]of this.childMap.entries())c.atType!==i.CedarArtifactType.STATIC_TEMPLATE_FIELD&&c.uiInputType!==r.UiInputType.ATTRIBUTE_VALUE&&s.push(l);return s}getOnlyElementNamesForPropertiesContextRequired(){let s=[];for(let[l,c]of this.childMap.entries())c.atType===i.CedarArtifactType.TEMPLATE_ELEMENT&&s.push(l);return s}getPropertyLabelMap(s){let l={};return this.childNameList.forEach(c=>{let d=this.getChildInfo(c);d.label!==null&&(l[d.name]=d.label)}),l}getPropertyDescriptionMap(s){let l={};return this.childNameList.forEach(c=>{let d=this.getChildInfo(c);d.description!==null&&(l[d.name]=d.description)}),l}getChildIriMap(){return this.collectChildIris(false)}collectChildIris(s){let l={};return this.childNameList.forEach(c=>{let d=this.getChildInfo(c);d.atType===i.CedarArtifactType.STATIC_TEMPLATE_FIELD||!s&&d.uiInputType===r.UiInputType.ATTRIBUTE_VALUE||d instanceof o.AbstractDynamicChildDeploymentInfo&&d.iri!==null&&(l[d.name]=d.iri)}),l}getChildNamesWithIri(){let s=this.getChildIriMap();return this.getChildrenNames().filter(l=>Object.prototype.hasOwnProperty.call(s,l))}getIRIMap(){let s={},l=this.collectChildIris(true);return Object.keys(l).forEach(c=>{s[c]={[a.JsonSchema.enum]:[l[c]]}}),s}hasAttributeValue(){for(let s of this.childMap.values())if(s.uiInputType===r.UiInputType.ATTRIBUTE_VALUE)return true;return false}getChildInfo(s){return this.childMap.get(s)}}},8198(n,t){t.UNBOUNDED_MAX_ITEMS=void 0,t.assertItemBounds=function(e,i,a){if(i!==null&&i<0)throw new Error(`minItems must be zero or greater in ${e}`);if(a!==null&&a<0)throw new Error(`maxItems must be zero or greater in ${e}`);if(i!==null&&a!==null&&a!==t.UNBOUNDED_MAX_ITEMS&&i>a)throw new Error(`minItems must be less than or equal to maxItems in ${e}`)},t.UNBOUNDED_MAX_ITEMS=0},7661(n,t,e){t.TemplateElement=void 0;let i=e(3910),a=e(8557),r=e(1027),o=e(5451),s=e(2763),l=e(6976);class c extends o.AbstractContainerArtifact{skos_altLabel=null;skos_prefLabel=null;header=null;footer=null;constructor(){super(),this.cedarArtifactType=s.CedarArtifactType.TEMPLATE_ELEMENT}static buildEmptyWithNullValues(){return new c}static buildEmptyWithDefaultValues(){let m=new c;return m.schema_schemaVersion=a.SchemaVersion.CURRENT,m.bibo_status=i.BiboStatus.DRAFT,m.pav_version=r.PavVersion.DEFAULT,m}isMultiInstanceByDefinition(){return false}isSingleInstanceByDefinition(){return false}createDeploymentBuilder(m){return new l.ChildDeploymentInfoElementBuilder(this,m)}}t.TemplateElement=c},1762(n,t,e){t.TemplateElementBuilder=void 0;let i=e(1641),a=e(7661);class r extends i.AbstractArtifactBuilder{children=[];instanceTypeSpecification=null;withInstanceTypeSpecification(s){return this.instanceTypeSpecification=s,this}addChild(s,l){return this.children.push([s,l]),this}build(){let s=a.TemplateElement.buildEmptyWithNullValues();return super.buildInternal(s),s.instanceTypeSpecification=this.instanceTypeSpecification,this.children.forEach(([l,c])=>{s.addChild(l,c)}),s}}t.TemplateElementBuilder=r},7282(n,t){t.ChoiceOptionEntity=void 0,t.ChoiceOptionEntity=class{label;selectedByDefault;statesSelectedByDefault;constructor(e,i,a=true){if(e==null||e==="")throw new Error("A permitted value requires a label. A choice that names nothing cannot be chosen.");this.label=e,this.selectedByDefault=i,this.statesSelectedByDefault=a}}},6145(n,t,e){t.DefaultValueSerialization=void 0;let i=e(8802),a=e(8748);t.DefaultValueSerialization=class{static literalFromNode(r,o){return a.ReaderUtil.getString(r,o)}static writeLiteral(r,o,s){s!==null&&s!==""&&(r[o]=s)}static iriFromNode(r,o){if(a.ReaderUtil.getString(r,o)==="")return null;let s=a.ReaderUtil.getIdentifier(r,o);return s===null?null:new i.Iri(s)}static writeIri(r,o,s){s===null||s.isEmpty()||(r[o]=s.getValue())}}},3557(n,t,e){t.JsonValueConstraintsWriter=void 0;let i=e(3161);class a extends i.JsonAbstractArtifactWriter{}t.JsonValueConstraintsWriter=a},9129(n,t,e){t.TemplateField=void 0;let i=e(4328),a=e(4869),r=e(8333);class o extends r.AbstractSchemaArtifact{skos_altLabel=null;skos_prefLabel=null;hidden=false;requiredValue=false;recommendedValue=false;continuePreviousLine=false;valueConstraints=new i.ValueConstraints;cedarFieldType=a.CedarFieldType.NULL;isMultiInstanceByDefinition(){return false}isSingleInstanceByDefinition(){return false}supportsValueRecommendation(){return false}}t.TemplateField=o},3350(n,t,e){t.TemplateFieldBuilder=void 0;let i=e(1641);class a extends i.AbstractArtifactBuilder{skos_altLabel=null;skos_prefLabel=null;withAlternateLabels(o){return this.skos_altLabel=o,this}addAlternateLabel(o){return this.skos_altLabel===null&&(this.skos_altLabel=[]),this.skos_altLabel.push(o),this}withPreferredLabel(o){return this.skos_prefLabel=o,this}buildInternal(o){super.buildInternal(o),o.skos_altLabel=this.skos_altLabel,o.skos_prefLabel=this.skos_prefLabel}}t.TemplateFieldBuilder=a},855(n,t,e){t.UnknownTemplateField=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(3608);class s extends i.TemplateField{constructor(){super(),this.cedarFieldType=a.CedarFieldType.NULL,this.cedarArtifactType=r.CedarArtifactType.NULL}static build(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoBuilder(this,c)}}t.UnknownTemplateField=s},4328(n,t){t.ValueConstraints=void 0,t.ValueConstraints=class{constructor(){}}},1902(n,t,e){t.ValueConstraintsIriField=void 0;let i=e(4328);class a extends i.ValueConstraints{defaultValue=null;constructor(){super()}}t.ValueConstraintsIriField=a},7765(n,t,e){t.ValueConstraintsLiteralField=void 0;let i=e(4328);class a extends i.ValueConstraints{defaultValue=null;constructor(){super()}}t.ValueConstraintsLiteralField=a},2500(n,t,e){t.YamlValueConstraintsWriter=void 0;let i=e(211);class a extends i.YamlAbstractArtifactWriter{}t.YamlValueConstraintsWriter=a},2052(n,t,e){t.AttributeValueFieldBuilderImpl=void 0;let i=e(3350),a=e(9571);class r extends i.TemplateFieldBuilder{constructor(){super()}static create(){return new r}build(){let s=a.AttributeValueFieldImpl.buildEmpty();return super.buildInternal(s),s}}t.AttributeValueFieldBuilderImpl=r},9571(n,t,e){t.AttributeValueFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(4328),s=e(3239);class l extends i.TemplateField{constructor(){super(),this.cedarFieldType=a.CedarFieldType.ATTRIBUTE_VALUE,this.valueConstraints=new o.ValueConstraints,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}isMultiInstanceByDefinition(){return true}createDeploymentBuilder(d){return new s.ChildDeploymentInfoAlwaysMultipleBuilder(this,d)}}t.AttributeValueFieldImpl=l},9366(n,t,e){t.JsonFieldReaderAttributeValue=void 0;let i=e(4385),a=e(9571);class r extends i.JsonTemplateFieldTypeSpecificReader{read(s,l,c,d){let m=a.AttributeValueFieldImpl.buildEmpty();return this.readRequiredAndHidden(s,l),m}}t.JsonFieldReaderAttributeValue=r},1442(n,t,e){t.JsonFieldWriterAttributeValue=void 0;let i=e(455),a=e(2748),r=e(9517),o=e(936),s=e(5793);class l extends a.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}getAsJsonNode(d,m=i.ChildDeploymentInfo.standalone()){let b=super.getAsJsonNode(d,m);return m instanceof i.ChildDeploymentInfo&&m.isStandalone()?{type:"array",minItems:0,items:b}:b}expandPropertiesNode(d){}expandRequiredNode(d){}expandTypeNode(d,m){d[o.CedarModel.type]=this.atomicWriter.write(s.JavascriptType.STRING)}buildValueConstraintsObject(d){return r.JsonNode.getEmpty()}}t.JsonFieldWriterAttributeValue=l},529(n,t,e){t.YamlFieldReaderAttributeValue=void 0;let i=e(5675),a=e(9571);class r extends i.YamlTemplateFieldTypeSpecificReader{read(s,l,c,d){return a.AttributeValueFieldImpl.buildEmpty()}}t.YamlFieldReaderAttributeValue=r},1521(n,t,e){t.YamlFieldWriterAttributeValue=void 0;let i=e(5430);class a extends i.YamlTemplateFieldWriterInternal{constructor(o,s){super(o,s)}}t.YamlFieldWriterAttributeValue=a},4675(n,t,e){t.CheckboxFieldBuilderImpl=void 0;let i=e(3350),a=e(9915),r=e(9282);class o extends i.TemplateFieldBuilder{defaultValue=null;literals=[];constructor(){super()}static create(){return new o}addCheckboxOption(l,c){return this.literals.push(new a.CheckboxOption(l,c??false,c!==void 0)),this}withDefaultValue(l){return this.defaultValue=l,this}build(){let l=r.CheckboxFieldImpl.buildEmpty();return super.buildInternal(l),l.valueConstraints.defaultValue=this.defaultValue,l.valueConstraints.literals=this.literals,l}}t.CheckboxFieldBuilderImpl=o},9282(n,t,e){t.CheckboxFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1489),s=e(3239);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.CHECKBOX,this.valueConstraints=new o.ValueConstraintsCheckboxField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}isMultiInstanceByDefinition(){return true}createDeploymentBuilder(d){return new s.ChildDeploymentInfoAlwaysMultipleBuilder(this,d)}}t.CheckboxFieldImpl=l},9915(n,t,e){t.CheckboxOption=void 0;let i=e(7282);class a extends i.ChoiceOptionEntity{constructor(o,s,l=true){super(o,s,l)}}t.CheckboxOption=a},19(n,t,e){t.JsonFieldReaderCheckbox=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(9915),s=e(9282),l=e(6145);class c extends r.JsonTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.CheckboxFieldImpl.buildEmpty();this.readRequiredAndHidden(m,b);let x=i.ReaderUtil.getNode(m,a.CedarModel.valueConstraints);if(x!=null){g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(x,a.CedarModel.defaultValue);let w=i.ReaderUtil.getNodeList(x,a.CedarModel.literals);w!==null&&w.forEach(C=>{let I=i.ReaderUtil.getString(C,a.CedarModel.label),O=i.ReaderUtil.getBoolean(C,a.CedarModel.selectedByDefault),E=Object.hasOwn(C,a.CedarModel.selectedByDefault);if(I!=null){let R=new o.CheckboxOption(I,O,E);g.valueConstraints.literals.push(R)}})}return g}}t.JsonFieldReaderCheckbox=c},8663(n,t,e){t.JsonFieldWriterCheckbox=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),this.expandLiterals(c,l),super.expandValueConstraintsNode(l,c,d),l[i.CedarModel.multipleChoice]=true}}t.JsonFieldWriterCheckbox=o},1489(n,t,e){t.ValueConstraintsCheckboxField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{literals=[];constructor(){super()}}t.ValueConstraintsCheckboxField=a},7268(n,t,e){t.YamlFieldReaderCheckbox=void 0;let i=e(8748),a=e(9915),r=e(5675),o=e(2099),s=e(9282),l=e(6145);class c extends r.YamlTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.CheckboxFieldImpl.buildEmpty();g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(m,o.YamlKeys.default);let x=i.ReaderUtil.getNodeList(m,o.YamlKeys.values);return x!==null&&x.forEach(w=>{let C=i.ReaderUtil.getString(w,o.YamlKeys.label),I=i.ReaderUtil.getBoolean(w,o.YamlKeys.selected),O=Object.hasOwn(w,o.YamlKeys.selected);if(C!=null){let E=new a.CheckboxOption(C,I,O);g.valueConstraints.literals.push(E)}}),g}}t.YamlFieldReaderCheckbox=c},4500(n,t,e){t.YamlFieldWriterCheckbox=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),this.expandLiterals(c,l)}}t.YamlFieldWriterCheckbox=o},9916(n,t,e){t.ControlledTermFieldBuilderImpl=void 0;let i=e(5376),a=e(3350),r=e(6731);class o extends a.TemplateFieldBuilder{valueConstraints=new i.ValueConstraintsControlledTermField;constructor(){super()}static create(){return new o}withDefaultValue(l){return this.valueConstraints.defaultValue=l,this}addOntology(l){return this.valueConstraints.ontologies.push(l),this}addValueSet(l){return this.valueConstraints.valueSets.push(l),this}addClass(l){return this.valueConstraints.classes.push(l),this}addBranch(l){return this.valueConstraints.branches.push(l),this}addAction(l){return this.valueConstraints.actions.push(l),this}build(){let l=r.ControlledTermFieldImpl.buildEmpty();return super.buildInternal(l),l.valueConstraints=this.valueConstraints,l}}t.ControlledTermFieldBuilderImpl=o},6731(n,t,e){t.ControlledTermFieldImpl=void 0;let i=e(9129),a=e(5376),r=e(4869),o=e(2763),s=e(3608);class l extends i.TemplateField{valueConstraints;valueRecommendationEnabled=false;constructor(){super(),this.cedarFieldType=r.CedarFieldType.CONTROLLED_TERM,this.valueConstraints=new a.ValueConstraintsControlledTermField,this.cedarArtifactType=o.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}supportsValueRecommendation(){return true}}t.ControlledTermFieldImpl=l},8728(n,t,e){t.JsonFieldReaderControlledTerm=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(8354),s=e(2418),l=e(9184),c=e(2395),d=e(7295),m=e(2733),b=e(7432),u=e(4531),f=e(6731),g=e(5753);class x extends r.JsonTemplateFieldTypeSpecificReader{read(C,I,O,E){let R=f.ControlledTermFieldImpl.buildEmpty();this.readRequiredAndHidden(C,I);let D=i.ReaderUtil.getNode(C,a.CedarModel.valueConstraints);return D!=null&&(R.valueConstraints.ontologies=this.getOntologies(i.ReaderUtil.getNodeList(D,a.CedarModel.ontologies)),R.valueConstraints.classes=this.getClasses(i.ReaderUtil.getNodeList(D,a.CedarModel.classes)),R.valueConstraints.branches=this.getBranches(i.ReaderUtil.getNodeList(D,a.CedarModel.branches)),R.valueConstraints.valueSets=this.getValueSets(i.ReaderUtil.getNodeList(D,a.CedarModel.valueSets)),R.valueConstraints.defaultValue=this.getDefaultValue(i.ReaderUtil.getNodeOrNull(D,a.CedarModel.defaultValue)),R.valueConstraints.actions=this.getActions(i.ReaderUtil.getNodeList(D,a.CedarModel.actions))),R}getOntologies(C){let I=[];return C.forEach(O=>{let E=new o.ControlledTermOntology(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.acronym),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.name),i.ReaderUtil.getNumberOrNull(O,a.CedarModel.ValueConstraints.numTerms),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getClasses(C){let I=[];return C.forEach(O=>{let E=new s.ControlledTermClass(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.label),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.source),u.BioportalTermType.forJsonValue(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.type)),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.prefLabel),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getBranches(C){let I=[];return C.forEach(O=>{let E=new l.ControlledTermBranch(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.source),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.acronym),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.name),i.ReaderUtil.getNumberOrZero(O,a.CedarModel.ValueConstraints.maxDepth),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getValueSets(C){let I=[];return C.forEach(O=>{let E=new c.ControlledTermValueSet(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.vsCollection),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.name),i.ReaderUtil.getNumberOrNull(O,a.CedarModel.ValueConstraints.numTerms),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getActions(C){let I=[];return C.forEach(O=>{let E=new b.ControlledTermAction(i.ReaderUtil.getNumber(O,a.CedarModel.ValueConstraints.to),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.action),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.termUri),i.ReaderUtil.getURI(O,a.CedarModel.ValueConstraints.sourceUri),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.source),u.BioportalTermType.forJsonValue(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.type)));I.push(E)}),I}static readSourceAndVersion(C){let I=i.ReaderUtil.getURI(C,a.CedarModel.ValueConstraints.iri),O=i.ReaderUtil.getNodeOrNull(C,a.CedarModel.ValueConstraints.version),E=O===null?null:new g.ControlledTermVersion(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.versionId),i.ReaderUtil.getString(O,a.CedarModel.ValueConstraints.versionEffectiveDate),i.ReaderUtil.getString(O,a.CedarModel.ValueConstraints.versionDeclaredVersion));return[I.isEmpty()?null:I,i.ReaderUtil.getString(C,a.CedarModel.ValueConstraints.sourceSystem),E]}getDefaultValue(C){if(C==null)return null;let I=i.ReaderUtil.getString(C,m.JsonSchema.rdfsLabel);return Object.hasOwn(C,m.JsonSchema.termUri)||I!==null?new d.ControlledTermDefaultValue(i.ReaderUtil.getIdentifierURI(C,m.JsonSchema.termUri),I??""):null}}t.JsonFieldReaderControlledTerm=x},8280(n,t,e){t.JsonFieldWriterControlledTerm=void 0;let i=e(9517),a=e(936),r=e(2748),o=e(2733),s=e(9932);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[o.JsonSchema.properties]=s.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[o.JsonSchema.properties]=s.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}expandValueConstraintsNode(d,m,b){let u=i.JsonNode.getEmptyList();m.valueConstraints.ontologies.forEach(C=>{u.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.ontologies]=u;let f=i.JsonNode.getEmptyList();m.valueConstraints.valueSets.forEach(C=>{f.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.valueSets]=f;let g=i.JsonNode.getEmptyList();m.valueConstraints.classes.forEach(C=>{g.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.classes]=g;let x=i.JsonNode.getEmptyList();m.valueConstraints.branches.forEach(C=>{x.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.branches]=x;let w=i.JsonNode.getEmptyList();if(m.valueConstraints.actions.forEach(C=>{w.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),w.length>0&&(d[a.CedarModel.actions]=w),m.valueConstraints.defaultValue!=null){let C=i.JsonNode.getEmpty();C[o.JsonSchema.termUri]=this.atomicWriter.write(m.valueConstraints.defaultValue.termUri),C[o.JsonSchema.rdfsLabel]=m.valueConstraints.defaultValue.rdfsLabel,d[a.CedarModel.defaultValue]=C}super.expandValueConstraintsNode(d,m,b)}}t.JsonFieldWriterControlledTerm=l},5376(n,t,e){t.ValueConstraintsControlledTermField=void 0;let i=e(4328);class a extends i.ValueConstraints{defaultValue=null;ontologies=[];valueSets=[];classes=[];branches=[];actions=[];constructor(){super()}}t.ValueConstraintsControlledTermField=a},9299(n,t,e){t.YamlFieldReaderControlledTerm=void 0;let i=e(8748),a=e(7295),r=e(4531),o=e(5675),s=e(2099),l=e(8349),c=e(5491),d=e(3091),m=e(2957),b=e(1556),u=e(7733),f=e(6731),g=e(8802),x=e(5753);class w extends o.YamlTemplateFieldTypeSpecificReader{read(I,O,E,R){let D=f.ControlledTermFieldImpl.buildEmpty();i.ReaderUtil.getNodeList(I,s.YamlKeys.values).forEach(z=>{let ie=i.ReaderUtil.getString(z,s.YamlKeys.type);if(ie===l.YamlValues.Controlled.ontology){let $=new c.ControlledTermOntologyBuilder().withAcronym(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withName(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceName)).withUri(this.ontologyUri(z)).withNumTerms(i.ReaderUtil.getNumberOrNull(z,s.YamlKeys.Controlled.termCount));this.readSourceAndVersion(z,$),D.valueConstraints.ontologies.push($.build())}else if(ie===l.YamlValues.Controlled.class){let $=i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termLabel),H=i.ReaderUtil.getString(z,s.YamlKeys.Controlled.termDisplayLabel),me=new d.ControlledTermClassBuilder().withUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termIri)).withSource(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withLabel(H??$).withPrefLabel($).withType(r.BioportalTermType.forYamlValue(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termType)));this.readSourceAndVersion(z,me),D.valueConstraints.classes.push(me.build())}else if(ie===l.YamlValues.Controlled.branch){let $=new m.ControlledTermBranchBuilder().withUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termBaseIri)).withSource(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceName)).withName(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termBaseLabel)).withAcronym(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withMaxDepth(i.ReaderUtil.getNumberOrZero(z,s.YamlKeys.Controlled.termMaxDepth));this.readSourceAndVersion(z,$),D.valueConstraints.branches.push($.build())}else if(ie===l.YamlValues.Controlled.valueSet){let $=new b.ControlledTermValueSetBuilder().withUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termBaseIri)).withNumTerms(i.ReaderUtil.getNumberOrNull(z,s.YamlKeys.Controlled.termCount)).withVsCollection(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withName(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termBaseLabel));this.readSourceAndVersion(z,$),D.valueConstraints.valueSets.push($.build())}});let F=i.ReaderUtil.getNodeOrNull(I,s.YamlKeys.default);if(F!==null){let z=i.ReaderUtil.getIdentifierURI(F,s.YamlKeys.value),ie=i.ReaderUtil.getStringOrEmpty(F,s.YamlKeys.label);D.valueConstraints.defaultValue=new a.ControlledTermDefaultValue(z,ie)}return i.ReaderUtil.getNodeList(I,s.YamlKeys.actions).forEach(z=>{let ie=new u.ControlledTermActionBuilder().withAction(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.action)).withSource(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withType(r.BioportalTermType.forYamlValue(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.type))).withTermUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termIri)).withTo(i.ReaderUtil.getNumber(z,s.YamlKeys.Controlled.to)).withSourceUri(i.ReaderUtil.getURI(z,s.YamlKeys.Controlled.sourceIri));D.valueConstraints.actions.push(ie.build())}),D}ontologyUri(I){return new g.Iri(`https://data.bioontology.org/ontologies/${i.ReaderUtil.getStringOrEmpty(I,s.YamlKeys.Controlled.sourceAcronym)}`)}readSourceAndVersion(I,O){let E=i.ReaderUtil.getURI(I,s.YamlKeys.Controlled.sourceIri);E.isEmpty()||O.withIri(E),O.withSourceSystem(i.ReaderUtil.getString(I,s.YamlKeys.Controlled.sourceSystem));let R=i.ReaderUtil.getNodeOrNull(I,s.YamlKeys.version);R!==null&&O.withVersion(new x.ControlledTermVersion(i.ReaderUtil.getStringOrEmpty(R,s.YamlKeys.Controlled.versionId),i.ReaderUtil.getString(R,s.YamlKeys.Controlled.versionEffectiveDate),i.ReaderUtil.getString(R,s.YamlKeys.Controlled.versionDeclaredVersion)))}}t.YamlFieldReaderControlledTerm=w},9535(n,t,e){t.YamlFieldWriterControlledTerm=void 0;let i=e(9517),a=e(5430),r=e(2099),o=e(4216);class s extends a.YamlTemplateFieldWriterInternal{constructor(c,d){super(c,d)}expandUINodeForYAML(c){return{[r.YamlKeys.datatype]:o.NonStandardDatatype.IRI}}expandValueConstraintsNodeForYAML(c,d,m){if(d.valueConstraints.defaultValue!=null){let f={[r.YamlKeys.value]:this.atomicWriter.write(d.valueConstraints.defaultValue.termUri),[r.YamlKeys.label]:d.valueConstraints.defaultValue.rdfsLabel};c[r.YamlKeys.default]=f}let b=i.JsonNode.getEmptyList();d.valueConstraints.ontologies.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),d.valueConstraints.classes.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),d.valueConstraints.branches.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),d.valueConstraints.valueSets.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),b.length>0&&(c[r.YamlKeys.values]=b);let u=i.JsonNode.getEmptyList();d.valueConstraints.actions.forEach(f=>{u.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),u.length>0&&(c[r.YamlKeys.actions]=u)}}t.YamlFieldWriterControlledTerm=s},1524(n,t,e){t.AbstractJsonControlledTermValueConstraintWriter=void 0;let i=e(9517),a=e(3557),r=e(936);class o extends a.JsonValueConstraintsWriter{writeSourceAndVersion(l,c){c.iri===null||c.iri.isEmpty()||(l[r.CedarModel.ValueConstraints.iri]=this.atomicWriter.write(c.iri)),c.sourceSystem!==null&&(l[r.CedarModel.ValueConstraints.sourceSystem]=c.sourceSystem);let d=c.version;if(d!==null){let m=i.JsonNode.getEmpty();m[r.CedarModel.ValueConstraints.versionId]=d.id,d.effectiveDate!==null&&(m[r.CedarModel.ValueConstraints.versionEffectiveDate]=d.effectiveDate),d.declaredVersion!==null&&(m[r.CedarModel.ValueConstraints.versionDeclaredVersion]=d.declaredVersion),l[r.CedarModel.ValueConstraints.version]=m}}}t.AbstractJsonControlledTermValueConstraintWriter=o},4339(n,t,e){t.AbstractYamlControlledTermValueConstraintWriter=void 0;let i=e(9517),a=e(2500),r=e(2099);class o extends a.YamlValueConstraintsWriter{writeSourceSystem(l,c){c.sourceSystem!==null&&(l[r.YamlKeys.Controlled.sourceSystem]=c.sourceSystem)}writeSourceIri(l,c){c.iri===null||c.iri.isEmpty()||(l[r.YamlKeys.Controlled.sourceIri]=this.atomicWriter.write(c.iri))}writeVersion(l,c){let d=c.version;if(d===null)return;let m=i.JsonNode.getEmpty();m[r.YamlKeys.Controlled.versionId]=d.id,d.effectiveDate!==null&&(m[r.YamlKeys.Controlled.versionEffectiveDate]=d.effectiveDate),d.declaredVersion!==null&&(m[r.YamlKeys.Controlled.versionDeclaredVersion]=d.declaredVersion),l[r.YamlKeys.version]=m}}t.AbstractYamlControlledTermValueConstraintWriter=o},2369(n,t,e){t.ControlledTermAbstractValueConstraint=void 0;let i=e(4328);class a extends i.ValueConstraints{className="ControlledTermAbstractValueConstraint";_iri;_sourceSystem;_version;constructor(o=null,s=null,l=null){super(),this._iri=o,this._sourceSystem=s,this._version=l}get iri(){return this._iri}get sourceSystem(){return this._sourceSystem}get version(){return this._version}}t.ControlledTermAbstractValueConstraint=a},7295(n,t){t.ControlledTermDefaultValue=void 0,t.ControlledTermDefaultValue=class{_termUri;_rdfsLabel;constructor(e,i){this._termUri=e,this._rdfsLabel=i}get termUri(){return this._termUri}get rdfsLabel(){return this._rdfsLabel}isControlledDefaultValue(){return false}}},2480(n,t,e){t.ControlledTermDefaultValueBuilder=void 0;let i=e(8802),a=e(7295),r=e(3539);t.ControlledTermDefaultValueBuilder=class{termUri=i.Iri.empty();rdfsLabel="";withTermUri(o){return this.termUri=o,this}withRdfsLabel(o){return this.rdfsLabel=o,this}build(){return r.ValueConstraintRequirements.requireIri(this.termUri,"a term URI","A controlled-term default value"),r.ValueConstraintRequirements.requireText(this.rdfsLabel,"a label","A controlled-term default value"),new a.ControlledTermDefaultValue(this.termUri,this.rdfsLabel)}}},5753(n,t){t.ControlledTermVersion=void 0,t.ControlledTermVersion=class{_id;_effectiveDate;_declaredVersion;constructor(e,i=null,a=null){this._id=e,this._effectiveDate=i,this._declaredVersion=a}get id(){return this._id}get effectiveDate(){return this._effectiveDate}get declaredVersion(){return this._declaredVersion}}},3539(n,t){t.ValueConstraintRequirements=void 0,t.ValueConstraintRequirements=class{static requireText(e,i,a){if(e==null||e==="")throw new Error(`${a} requires ${i}.`)}static requireIri(e,i,a){if(e==null||e.isEmpty())throw new Error(`${a} requires ${i}. A constraint that points at nothing cannot be resolved.`)}static requireTermType(e,i){if(e==null||e.getJsonValue()===null)throw new Error(`${i} requires a term type.`)}}},7432(n,t,e){t.ControlledTermAction=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermAction";className="ControlledTermAction";_to=null;_action;_termUri;_sourceUri;_source;_type;constructor(o,s,l,c,d,m){super(),this._to=o,this._action=s,this._termUri=l,this._sourceUri=c,this._source=d,this._type=m}get to(){return this._to}get action(){return this._action}get termUri(){return this._termUri}get sourceUri(){return this._sourceUri}get source(){return this._source}get type(){return this._type}}t.ControlledTermAction=a},7733(n,t,e){t.ControlledTermActionBuilder=void 0;let i=e(8802),a=e(7432),r=e(3539),o=e(4531);t.ControlledTermActionBuilder=class{_to=null;_action="";_termUri=i.Iri.empty();_sourceUri=i.Iri.empty();_source="";_type=o.BioportalTermType.NULL;withTo(s){return this._to=s,this}withAction(s){return this._action=s,this}withTermUri(s){return this._termUri=s,this}withSourceUri(s){return this._sourceUri=s,this}withSource(s){return this._source=s,this}withType(s){return this._type=s,this}build(){return r.ValueConstraintRequirements.requireText(this._action,"an action","A controlled-term action"),r.ValueConstraintRequirements.requireIri(this._termUri,"a term URI","A controlled-term action"),r.ValueConstraintRequirements.requireIri(this._sourceUri,"a source URI","A controlled-term action"),r.ValueConstraintRequirements.requireText(this._source,"a source","A controlled-term action"),r.ValueConstraintRequirements.requireTermType(this._type,"A controlled-term action"),new a.ControlledTermAction(this._to,this._action,this._termUri,this._sourceUri,this._source,this._type)}}},8014(n,t,e){t.JsonValueConstraintsActionWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.termUri]=this.atomicWriter.write(l.termUri),c[a.CedarModel.ValueConstraints.source]=l.source,c[a.CedarModel.ValueConstraints.type]=this.atomicWriter.write(l.type),c[a.CedarModel.ValueConstraints.action]=l.action,c[a.CedarModel.ValueConstraints.sourceUri]=this.atomicWriter.write(l.sourceUri),l.to!==null&&(c[a.CedarModel.ValueConstraints.to]=l.to),c}}t.JsonValueConstraintsActionWriter=o},4647(n,t,e){t.YamlValueConstraintsActionWriter=void 0;let i=e(9517),a=e(4339),r=e(2099);class o extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[r.YamlKeys.action]=l.action,l.to!==null&&(c[r.YamlKeys.Controlled.to]=l.to),c[r.YamlKeys.Controlled.termIri]=this.atomicWriter.write(l.termUri),c[r.YamlKeys.Controlled.sourceIri]=this.atomicWriter.write(l.sourceUri),c[r.YamlKeys.Controlled.sourceAcronym]=l.source,c[r.YamlKeys.type]=this.atomicWriter.write(l.type),c}}t.YamlValueConstraintsActionWriter=o},9184(n,t,e){t.ControlledTermBranch=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermBranch";className="ControlledTermBranch";_source;_acronym;_name;_uri;_maxDepth=0;constructor(o,s,l,c,d,m=null,b=null,u=null){super(m,b,u),this._source=o,this._acronym=s,this._uri=d,this._name=l,this._maxDepth=c}get source(){return this._source}get acronym(){return this._acronym}get name(){return this._name}get uri(){return this._uri}get maxDepth(){return this._maxDepth}}t.ControlledTermBranch=a},2957(n,t,e){t.ControlledTermBranchBuilder=void 0;let i=e(8802),a=e(9184),r=e(3539);t.ControlledTermBranchBuilder=class{_source="";_acronym="";_name="";_uri=i.Iri.empty();_maxDepth=0;_iri=null;_sourceSystem=null;_version=null;withSource(o){return this._source=o,this}withAcronym(o){return this._acronym=o,this}withName(o){return this._name=o,this}withUri(o){return this._uri=o,this}withMaxDepth(o){return this._maxDepth=o,this}withIri(o){return this._iri=o,this}withSourceSystem(o){return this._sourceSystem=o,this}withVersion(o){return this._version=o,this}build(){return r.ValueConstraintRequirements.requireIri(this._uri,"a URI","A branch constraint"),r.ValueConstraintRequirements.requireText(this._source,"a source","A branch constraint"),r.ValueConstraintRequirements.requireText(this._acronym,"an acronym","A branch constraint"),r.ValueConstraintRequirements.requireText(this._name,"a name","A branch constraint"),new a.ControlledTermBranch(this._source,this._acronym,this._name,this._maxDepth,this._uri,this._iri,this._sourceSystem,this._version)}}},7054(n,t,e){t.JsonValueConstraintsBranchWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.source]=l.source,c[a.CedarModel.ValueConstraints.acronym]=l.acronym,c[a.CedarModel.ValueConstraints.name]=l.name,c[a.CedarModel.ValueConstraints.maxDepth]=l.maxDepth,this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsBranchWriter=o},3671(n,t,e){t.YamlValueConstraintsBranchWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.branch,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.acronym,d[r.YamlKeys.Controlled.sourceName]=c.source,this.writeSourceIri(d,c),d[r.YamlKeys.Controlled.termBaseIri]=this.atomicWriter.write(c.uri),d[r.YamlKeys.Controlled.termBaseLabel]=c.name,d[r.YamlKeys.Controlled.termMaxDepth]=c.maxDepth,this.writeVersion(d,c),d}}t.YamlValueConstraintsBranchWriter=s},2418(n,t,e){t.ControlledTermClass=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermClass";className="ControlledTermClass";_label;_source;_type;_prefLabel;_uri;constructor(o,s,l,c,d,m=null,b=null,u=null){super(m,b,u),this._label=o,this._source=s,this._type=l,this._prefLabel=c,this._uri=d}get label(){return this._label}get source(){return this._source}get type(){return this._type}get prefLabel(){return this._prefLabel}get uri(){return this._uri}}t.ControlledTermClass=a},3091(n,t,e){t.ControlledTermClassBuilder=void 0;let i=e(8802),a=e(2418),r=e(3539),o=e(4531);t.ControlledTermClassBuilder=class{_label="";_source="";_type=o.BioportalTermType.NULL;_prefLabel="";_uri=i.Iri.empty();_iri=null;_sourceSystem=null;_version=null;withLabel(s){return this._label=s,this}withSource(s){return this._source=s,this}withType(s){return this._type=s,this}withPrefLabel(s){return this._prefLabel=s,this}withUri(s){return this._uri=s,this}withIri(s){return this._iri=s,this}withSourceSystem(s){return this._sourceSystem=s,this}withVersion(s){return this._version=s,this}build(){return r.ValueConstraintRequirements.requireIri(this._uri,"a URI","A class constraint"),r.ValueConstraintRequirements.requireText(this._label,"a label","A class constraint"),r.ValueConstraintRequirements.requireText(this._prefLabel,"a preferred label","A class constraint"),r.ValueConstraintRequirements.requireText(this._source,"a source","A class constraint"),r.ValueConstraintRequirements.requireTermType(this._type,"A class constraint"),new a.ControlledTermClass(this._label,this._source,this._type,this._prefLabel,this._uri,this._iri,this._sourceSystem,this._version)}}},9222(n,t,e){t.JsonValueConstraintsClassWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.source]=l.source,c[a.CedarModel.ValueConstraints.label]=l.label,c[a.CedarModel.ValueConstraints.prefLabel]=l.prefLabel,c[a.CedarModel.ValueConstraints.type]=this.atomicWriter.write(l.type),this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsClassWriter=o},765(n,t,e){t.YamlValueConstraintsClassWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.class,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.source,this.writeSourceIri(d,c),d[r.YamlKeys.Controlled.termIri]=this.atomicWriter.write(c.uri),d[r.YamlKeys.Controlled.termType]=this.atomicWriter.write(c.type),d[r.YamlKeys.Controlled.termLabel]=c.prefLabel,c.label!==c.prefLabel&&(d[r.YamlKeys.Controlled.termDisplayLabel]=c.label),this.writeVersion(d,c),d}}t.YamlValueConstraintsClassWriter=s},8354(n,t,e){t.ControlledTermOntology=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermOntology";className="ControlledTermOntology";_acronym;_name;_uri;_numTerms=0;constructor(o,s,l,c,d=null,m=null,b=null){super(d,m,b),this._acronym=o,this._name=s,this._uri=c,this._numTerms=l}get acronym(){return this._acronym}get name(){return this._name}get uri(){return this._uri}get numTerms(){return this._numTerms}}t.ControlledTermOntology=a},5491(n,t,e){t.ControlledTermOntologyBuilder=void 0;let i=e(8802),a=e(8354),r=e(3539);t.ControlledTermOntologyBuilder=class{acronym="";name="";numTerms=null;uri=i.Iri.empty();iri=null;sourceSystem=null;version=null;withAcronym(o){return this.acronym=o,this}withName(o){return this.name=o,this}withNumTerms(o){return this.numTerms=o,this}withUri(o){return this.uri=o,this}withIri(o){return this.iri=o,this}withSourceSystem(o){return this.sourceSystem=o,this}withVersion(o){return this.version=o,this}build(){return r.ValueConstraintRequirements.requireIri(this.uri,"a URI","An ontology constraint"),r.ValueConstraintRequirements.requireText(this.acronym,"an acronym","An ontology constraint"),r.ValueConstraintRequirements.requireText(this.name,"a name","An ontology constraint"),new a.ControlledTermOntology(this.acronym,this.name,this.numTerms,this.uri,this.iri,this.sourceSystem,this.version)}}},5996(n,t,e){t.JsonValueConstraintsOntologyWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.acronym]=l.acronym,c[a.CedarModel.ValueConstraints.name]=l.name,l.numTerms!==null&&(c[a.CedarModel.ValueConstraints.numTerms]=l.numTerms),this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsOntologyWriter=o},1181(n,t,e){t.YamlValueConstraintsOntologyWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.ontology,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.acronym,d[r.YamlKeys.Controlled.sourceName]=c.name,this.writeSourceIri(d,c),c.numTerms!==null&&(d[r.YamlKeys.Controlled.termCount]=c.numTerms),this.writeVersion(d,c),d}}t.YamlValueConstraintsOntologyWriter=s},2395(n,t,e){t.ControlledTermValueSet=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermValueSet";className="ControlledTermValueSet";_vsCollection;_name;_uri;_numTerms=0;constructor(o,s,l,c,d=null,m=null,b=null){super(d,m,b),this._vsCollection=o,this._name=s,this._uri=c,this._numTerms=l}get vsCollection(){return this._vsCollection}get name(){return this._name}get uri(){return this._uri}get numTerms(){return this._numTerms}}t.ControlledTermValueSet=a},1556(n,t,e){t.ControlledTermValueSetBuilder=void 0;let i=e(8802),a=e(2395),r=e(3539);t.ControlledTermValueSetBuilder=class{_vsCollection="";_name="";_uri=i.Iri.empty();_numTerms=null;_iri=null;_sourceSystem=null;_version=null;withVsCollection(o){return this._vsCollection=o,this}withName(o){return this._name=o,this}withUri(o){return this._uri=o,this}withNumTerms(o){return this._numTerms=o,this}withIri(o){return this._iri=o,this}withSourceSystem(o){return this._sourceSystem=o,this}withVersion(o){return this._version=o,this}build(){return r.ValueConstraintRequirements.requireIri(this._uri,"a URI","A value-set constraint"),r.ValueConstraintRequirements.requireText(this._vsCollection,"a value-set collection","A value-set constraint"),r.ValueConstraintRequirements.requireText(this._name,"a name","A value-set constraint"),new a.ControlledTermValueSet(this._vsCollection,this._name,this._numTerms,this._uri,this._iri,this._sourceSystem,this._version)}}},2813(n,t,e){t.JsonValueConstraintsValueSetWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.vsCollection]=l.vsCollection,c[a.CedarModel.ValueConstraints.name]=l.name,l.numTerms!==null&&(c[a.CedarModel.ValueConstraints.numTerms]=l.numTerms),this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsValueSetWriter=o},9532(n,t,e){t.YamlValueConstraintsValueSetWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.valueSet,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.vsCollection,this.writeSourceIri(d,c),d[r.YamlKeys.Controlled.termBaseIri]=this.atomicWriter.write(c.uri),d[r.YamlKeys.Controlled.termBaseLabel]=c.name,c.numTerms!==null&&(d[r.YamlKeys.Controlled.termCount]=c.numTerms),this.writeVersion(d,c),d}}t.YamlValueConstraintsValueSetWriter=s},1667(n,t,e){t.EmailFieldBuilderImpl=void 0;let i=e(3350),a=e(4450);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.EmailFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.EmailFieldBuilderImpl=r},4450(n,t,e){t.EmailFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(7765),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EMAIL,this.valueConstraints=new o.ValueConstraintsLiteralField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.EmailFieldImpl=l},2691(n,t,e){t.JsonFieldReaderEmail=void 0;let i=e(4385),a=e(4450),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.EmailFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderEmail=l},9031(n,t,e){t.JsonFieldWriterEmail=void 0;let i=e(2748),a=e(936),r=e(6145);class o extends i.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.CedarModel.defaultValue,c.valueConstraints.defaultValue),super.expandValueConstraintsNode(l,c,d)}}t.JsonFieldWriterEmail=o},3054(n,t,e){t.YamlFieldReaderEmail=void 0;let i=e(5675),a=e(4450),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.EmailFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.literalFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderEmail=s},1038(n,t,e){t.YamlFieldWriterEmail=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterEmail=o},6610(n,t,e){t.ExtDoiFieldBuilderImpl=void 0;let i=e(3350),a=e(997);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtDoiFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtDoiFieldBuilderImpl=r},997(n,t,e){t.ExtDoiFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_DOI,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtDoiFieldImpl=l},8583(n,t,e){t.JsonFieldReaderExtDoi=void 0;let i=e(4385),a=e(997),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtDoiFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtDoi=l},7412(n,t,e){t.JsonFieldWriterExtDoi=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtDoi=l},5907(n,t,e){t.YamlFieldReaderExtDoi=void 0;let i=e(5675),a=e(997),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtDoiFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtDoi=s},6967(n,t,e){t.YamlFieldWriterExtDoi=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtDoi=o},9062(n,t,e){t.ExtNihGrantIdFieldBuilderImpl=void 0;let i=e(3350),a=e(7313);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtNihGrantIdFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtNihGrantIdFieldBuilderImpl=r},7313(n,t,e){t.ExtNihGrantIdFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_NIH_GRANT_ID,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtNihGrantIdFieldImpl=l},1886(n,t,e){t.JsonFieldReaderExtNihGrantId=void 0;let i=e(4385),a=e(7313),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtNihGrantIdFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtNihGrantId=l},5250(n,t,e){t.JsonFieldWriterExtNihGrantId=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtNihGrantId=l},8543(n,t,e){t.YamlFieldReaderExtNihGrantId=void 0;let i=e(5675),a=e(7313),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtNihGrantIdFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtNihGrantId=s},3711(n,t,e){t.YamlFieldWriterExtNihGrantId=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtNihGrantId=o},2376(n,t,e){t.ExtOrcidFieldBuilderImpl=void 0;let i=e(3350),a=e(5967);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtOrcidFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtOrcidFieldBuilderImpl=r},5967(n,t,e){t.ExtOrcidFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_ORCID,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtOrcidFieldImpl=l},4956(n,t,e){t.JsonFieldReaderExtOrcid=void 0;let i=e(4385),a=e(5967),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtOrcidFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtOrcid=l},8096(n,t,e){t.JsonFieldWriterExtOrcid=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtOrcid=l},7123(n,t,e){t.YamlFieldReaderExtOrcid=void 0;let i=e(5675),a=e(5967),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtOrcidFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtOrcid=s},4355(n,t,e){t.YamlFieldWriterExtOrcid=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtOrcid=o},3914(n,t,e){t.ExtPfasFieldBuilderImpl=void 0;let i=e(3350),a=e(6637);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtPfasFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtPfasFieldBuilderImpl=r},6637(n,t,e){t.ExtPfasFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_PFAS,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtPfasFieldImpl=l},6854(n,t,e){t.JsonFieldReaderExtPfas=void 0;let i=e(4385),a=e(6637),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtPfasFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtPfas=l},6122(n,t,e){t.JsonFieldWriterExtPfas=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtPfas=l},5075(n,t,e){t.YamlFieldReaderExtPfas=void 0;let i=e(5675),a=e(6637),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtPfasFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtPfas=s},5587(n,t,e){t.YamlFieldWriterExtPfas=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtPfas=o},7162(n,t,e){t.ExtPubmedFieldBuilderImpl=void 0;let i=e(3350),a=e(2685);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtPubmedFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtPubmedFieldBuilderImpl=r},2685(n,t,e){t.ExtPubmedFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_PUBMED,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtPubmedFieldImpl=l},3028(n,t,e){t.JsonFieldReaderExtPubmed=void 0;let i=e(4385),a=e(2685),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtPubmedFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtPubmed=l},3312(n,t,e){t.JsonFieldWriterExtPubmed=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtPubmed=l},7709(n,t,e){t.YamlFieldReaderExtPubmed=void 0;let i=e(5675),a=e(2685),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtPubmedFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtPubmed=s},6557(n,t,e){t.YamlFieldWriterExtPubmed=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtPubmed=o},7328(n,t,e){t.ExtRorFieldBuilderImpl=void 0;let i=e(3350),a=e(4007);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtRorFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtRorFieldBuilderImpl=r},4007(n,t,e){t.ExtRorFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_ROR,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtRorFieldImpl=l},8244(n,t,e){t.JsonFieldReaderExtRor=void 0;let i=e(4385),a=e(4007),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtRorFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtRor=l},7584(n,t,e){t.JsonFieldWriterExtRor=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtRor=l},6651(n,t,e){t.YamlFieldReaderExtRor=void 0;let i=e(5675),a=e(4007),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtRorFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtRor=s},491(n,t,e){t.YamlFieldWriterExtRor=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtRor=o},3474(n,t,e){t.ExtRridFieldBuilderImpl=void 0;let i=e(3350),a=e(789);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtRridFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtRridFieldBuilderImpl=r},789(n,t,e){t.ExtRridFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_RRID,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtRridFieldImpl=l},7004(n,t,e){t.JsonFieldReaderExtRrid=void 0;let i=e(4385),a=e(789),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtRridFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtRrid=l},4780(n,t,e){t.JsonFieldWriterExtRrid=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtRrid=l},6089(n,t,e){t.YamlFieldReaderExtRrid=void 0;let i=e(5675),a=e(789),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtRridFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtRrid=s},4077(n,t,e){t.YamlFieldWriterExtRrid=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtRrid=o},7095(n,t,e){t.JsonFieldReaderLink=void 0;let i=e(4385),a=e(4084),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.LinkFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderLink=l},3691(n,t,e){t.JsonFieldWriterLink=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterLink=l},9497(n,t,e){t.LinkFieldBuilderImpl=void 0;let i=e(3350),a=e(4084);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.LinkFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.LinkFieldBuilderImpl=r},4084(n,t,e){t.LinkFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.LINK,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.LinkFieldImpl=l},8568(n,t,e){t.YamlFieldReaderLink=void 0;let i=e(5675),a=e(4084),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.LinkFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderLink=s},1784(n,t,e){t.YamlFieldWriterLink=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterLink=o},1513(n,t,e){t.MultipleChoiceListFieldBuilderImpl=void 0;let i=e(9513);class a extends i.ListFieldBuilderImpl{constructor(){super(),this.multipleChoice=true}static create(){return new a}build(){return super.build()}}t.MultipleChoiceListFieldBuilderImpl=a},4932(n,t,e){t.MultipleChoiceListFieldImpl=void 0;let i=e(5316),a=e(4869),r=e(3239);class o extends i.ListFieldImpl{constructor(){super(),this.multipleChoice=true,this.cedarFieldType=a.CedarFieldType.MULTIPLE_SELECT_LIST}static buildEmpty(){return new o}isMultiInstanceByDefinition(){return true}createDeploymentBuilder(l){return new r.ChildDeploymentInfoAlwaysMultipleBuilder(this,l)}}t.MultipleChoiceListFieldImpl=o},7124(n,t,e){t.YamlFieldReaderMultiSelectList=void 0;let i=e(5675),a=e(4932);class r extends i.YamlTemplateFieldTypeSpecificReader{read(s,l,c,d){let m=a.MultipleChoiceListFieldImpl.buildEmpty();return i.YamlTemplateFieldTypeSpecificReader.readAndStoreListValueConstraints(s,m),m}}t.YamlFieldReaderMultiSelectList=r},9105(n,t,e){t.SingleChoiceListFieldBuilderImpl=void 0;let i=e(9513);class a extends i.ListFieldBuilderImpl{constructor(){super(),this.multipleChoice=false}static create(){return new a}build(){return super.build()}}t.SingleChoiceListFieldBuilderImpl=a},1676(n,t,e){t.SingleChoiceListFieldImpl=void 0;let i=e(5316),a=e(3608),r=e(4869);class o extends i.ListFieldImpl{constructor(){super(),this.multipleChoice=false,this.cedarFieldType=r.CedarFieldType.SINGLE_SELECT_LIST}static buildEmpty(){return new o}createDeploymentBuilder(l){return new a.ChildDeploymentInfoBuilder(this,l)}}t.SingleChoiceListFieldImpl=o},2709(n,t,e){t.YamlFieldReaderSingleSelectList=void 0;let i=e(5675),a=e(1676);class r extends i.YamlTemplateFieldTypeSpecificReader{read(s,l,c,d){let m=a.SingleChoiceListFieldImpl.buildEmpty();return i.YamlTemplateFieldTypeSpecificReader.readAndStoreListValueConstraints(s,m),m}}t.YamlFieldReaderSingleSelectList=r},2419(n,t,e){t.JsonFieldReaderList=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(4081),s=e(4932),l=e(1676),c=e(6145);class d extends r.JsonTemplateFieldTypeSpecificReader{read(b,u,f,g){let x=l.SingleChoiceListFieldImpl.buildEmpty();this.readRequiredAndHidden(b,u);let w=i.ReaderUtil.getNode(b,a.CedarModel.valueConstraints);if(w!=null){i.ReaderUtil.getBoolean(w,a.CedarModel.multipleChoice)&&(x=s.MultipleChoiceListFieldImpl.buildEmpty()),x.valueConstraints.defaultValue=c.DefaultValueSerialization.literalFromNode(w,a.CedarModel.defaultValue);let C=i.ReaderUtil.getNodeList(w,a.CedarModel.literals);C!==null&&C.forEach(I=>{let O=i.ReaderUtil.getString(I,a.CedarModel.label),E=i.ReaderUtil.getBoolean(I,a.CedarModel.selectedByDefault),R=Object.hasOwn(I,a.CedarModel.selectedByDefault);if(O!=null){let D=new o.ListOption(O,E,R);x.valueConstraints.literals.push(D)}})}return x}}t.JsonFieldReaderList=d},7335(n,t,e){t.JsonFieldWriterList=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),this.expandLiterals(c,l),super.expandValueConstraintsNode(l,c,d),l[i.CedarModel.multipleChoice]=c.multipleChoice}}t.JsonFieldWriterList=o},9513(n,t,e){t.ListFieldBuilderImpl=void 0;let i=e(4081),a=e(3350),r=e(4932),o=e(1676);class s extends a.TemplateFieldBuilder{multipleChoice=false;defaultValue=null;literals=[];constructor(){super()}withDefaultValue(c){return this.defaultValue=c,this}addListOption(c,d){return this.literals.push(new i.ListOption(c,d??false,d!==void 0)),this}build(){let c;if(c=this.multipleChoice?r.MultipleChoiceListFieldImpl.buildEmpty():o.SingleChoiceListFieldImpl.buildEmpty(),super.buildInternal(c),!this.multipleChoice){let d=-1;for(let m=this.literals.length-1;m>=0;m--)if(this.literals[m].selectedByDefault){d=m;break}d!==-1&&this.literals.forEach((m,b)=>{m.selectedByDefault=b===d,m.statesSelectedByDefault=m.selectedByDefault})}return c.valueConstraints.defaultValue=this.defaultValue,c.valueConstraints.literals=this.literals,c}}t.ListFieldBuilderImpl=s},5316(n,t,e){t.ListFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1623);class s extends i.TemplateField{valueConstraints;multipleChoice;constructor(){super(),this.cedarFieldType=a.CedarFieldType.NULL,this.valueConstraints=new o.ValueConstraintsListField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.multipleChoice=false}}t.ListFieldImpl=s},4081(n,t,e){t.ListOption=void 0;let i=e(7282);class a extends i.ChoiceOptionEntity{constructor(o,s,l=true){super(o,s,l)}}t.ListOption=a},1623(n,t,e){t.ValueConstraintsListField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{literals=[];constructor(){super()}}t.ValueConstraintsListField=a},3080(n,t,e){t.YamlFieldWriterList=void 0;let i=e(5430),a=e(9499),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldWriterInternal{constructor(c,d){super(c,d)}expandValueConstraintsNodeForYAML(c,d,m){o.DefaultValueSerialization.writeLiteral(c,r.YamlKeys.default,d.valueConstraints.defaultValue),this.expandLiterals(d,c)}getYamlType(c){return c.multipleChoice?a.YamlArtifactType.MULTI_SELECT_LIST.getValue():a.YamlArtifactType.SINGLE_SELECT_LIST.getValue()}}t.YamlFieldWriterList=s},1769(n,t,e){t.JsonFieldReaderNumeric=void 0;let i=e(8748),a=e(936),r=e(3447),o=e(4385),s=e(4074),l=e(6444);class c extends o.JsonTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.NumericFieldImpl.buildEmpty();this.readRequiredAndHidden(m,b);let x=i.ReaderUtil.getNode(m,a.CedarModel.valueConstraints);if(x!=null){let w=i.ReaderUtil.getString(x,a.CedarModel.numberType);w!==null&&(g.valueConstraints.numberType=r.NumberType.forValue(w)),g.valueConstraints.minValue=i.ReaderUtil.getNumber(x,a.CedarModel.minValue),g.valueConstraints.maxValue=i.ReaderUtil.getNumber(x,a.CedarModel.maxValue),g.valueConstraints.decimalPlaces=i.ReaderUtil.getNumber(x,a.CedarModel.decimalPlace),g.valueConstraints.unitOfMeasure=i.ReaderUtil.getString(x,a.CedarModel.unitOfMeasure),g.valueConstraints.defaultValue=i.ReaderUtil.getNumericDefault(x,a.CedarModel.defaultValue),l.NumericDefaultValueValidator.assertValid(g.valueConstraints.numberType,g.valueConstraints.defaultValue,g.valueConstraints.minValue,g.valueConstraints.maxValue)}return g}}t.JsonFieldReaderNumeric=c},4841(n,t,e){t.JsonFieldWriterNumeric=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6444);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandPropertiesNode(d){d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_LITERAL}expandRequiredNode(d){d[a.JsonSchema.required]=[a.JsonSchema.atValue,a.JsonSchema.atType]}expandValueConstraintsNode(d,m,b){s.NumericDefaultValueValidator.assertValid(m.valueConstraints.numberType,m.valueConstraints.defaultValue,m.valueConstraints.minValue,m.valueConstraints.maxValue),d[o.CedarModel.numberType]=this.atomicWriter.write(m.valueConstraints.numberType),m.valueConstraints.minValue!=null&&(d[o.CedarModel.minValue]=m.valueConstraints.minValue),m.valueConstraints.maxValue!=null&&(d[o.CedarModel.maxValue]=m.valueConstraints.maxValue),m.valueConstraints.decimalPlaces!=null&&(d[o.CedarModel.decimalPlace]=m.valueConstraints.decimalPlaces),m.valueConstraints.unitOfMeasure!=null&&(d[o.CedarModel.unitOfMeasure]=m.valueConstraints.unitOfMeasure),m.valueConstraints.defaultValue!=null&&(d[o.CedarModel.defaultValue]=String(m.valueConstraints.defaultValue)),super.expandValueConstraintsNode(d,m,b)}}t.JsonFieldWriterNumeric=l},6444(n,t,e){t.NumericDefaultValueValidator=void 0;let i=e(3447);t.NumericDefaultValueValidator=class{static assertValid(a,r,o=null,s=null){if(r===null)return;if(!Number.isFinite(r))throw new Error("Numeric default must be finite.");let l=a.getValue();if(l===null)throw new Error("Numeric default requires a numeric datatype.");let c={[i.NumberTypeValues.BYTE]:[-128,127],[i.NumberTypeValues.SHORT]:[-32768,32767],[i.NumberTypeValues.INT]:[-2147483648,2147483647],[i.NumberTypeValues.LONG]:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER]}[l];if(c!==void 0){if(!Number.isSafeInteger(r))throw new Error(`Numeric default ${r} must be a safely representable integer for ${l}.`);if(r<c[0]||r>c[1])throw new Error(`Numeric default ${r} is outside the ${l} range.`)}if(l===i.NumberTypeValues.FLOAT){let d=Math.abs(r);if(d>34028234663852886e22||d!==0&&d<1401298464324817e-60)throw new Error(`Numeric default ${r} is outside the ${l} range.`)}if(o!==null&&r<o)throw new Error(`Numeric default ${r} is below minValue ${o}.`);if(s!==null&&r>s)throw new Error(`Numeric default ${r} is above maxValue ${s}.`)}}},3675(n,t,e){t.NumericFieldBuilderImpl=void 0;let i=e(3350),a=e(3447),r=e(4074),o=e(6444);class s extends i.TemplateFieldBuilder{numberType=a.NumberType.DECIMAL;minValue=null;maxValue=null;decimalPlaces=null;unitOfMeasure=null;defaultValue=null;constructor(){super()}static create(){return new s}withNumberType(c){return this.numberType=c,this}withMinValue(c){return this.minValue=c,this}withMaxValue(c){return this.maxValue=c,this}withDecimalPlaces(c){return this.decimalPlaces=c,this}withUnitOfMeasure(c){return this.unitOfMeasure=c,this}withDefaultValue(c){return this.defaultValue=c,this}build(){o.NumericDefaultValueValidator.assertValid(this.numberType,this.defaultValue,this.minValue,this.maxValue);let c=r.NumericFieldImpl.buildEmpty();return super.buildInternal(c),c.valueConstraints.numberType=this.numberType,c.valueConstraints.minValue=this.minValue,c.valueConstraints.maxValue=this.maxValue,c.valueConstraints.decimalPlaces=this.decimalPlaces,c.valueConstraints.unitOfMeasure=this.unitOfMeasure,c.valueConstraints.defaultValue=this.defaultValue,c}}t.NumericFieldBuilderImpl=s},4074(n,t,e){t.NumericFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1211),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.NUMERIC,this.valueConstraints=new o.ValueConstraintsNumericField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.NumericFieldImpl=l},1211(n,t,e){t.ValueConstraintsNumericField=void 0;let i=e(4328),a=e(3447);class r extends i.ValueConstraints{numberType=a.NumberType.DECIMAL;minValue=null;maxValue=null;decimalPlaces=null;unitOfMeasure=null;defaultValue=null;constructor(){super()}}t.ValueConstraintsNumericField=r},1872(n,t,e){t.YamlFieldReaderNumeric=void 0;let i=e(8748),a=e(3447),r=e(5675),o=e(2099),s=e(4074),l=e(6444);class c extends r.YamlTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.NumericFieldImpl.buildEmpty(),x=i.ReaderUtil.getString(m,o.YamlKeys.datatype);return x!==null&&(g.valueConstraints.numberType=a.NumberType.forValue(x)),g.valueConstraints.minValue=i.ReaderUtil.getNumber(m,o.YamlKeys.minValue),g.valueConstraints.maxValue=i.ReaderUtil.getNumber(m,o.YamlKeys.maxValue),g.valueConstraints.decimalPlaces=i.ReaderUtil.getNumber(m,o.YamlKeys.decimalPlaces),g.valueConstraints.unitOfMeasure=i.ReaderUtil.getString(m,o.YamlKeys.unit),g.valueConstraints.defaultValue=i.ReaderUtil.getNumericDefault(m,o.YamlKeys.default),l.NumericDefaultValueValidator.assertValid(g.valueConstraints.numberType,g.valueConstraints.defaultValue,g.valueConstraints.minValue,g.valueConstraints.maxValue),g}}t.YamlFieldReaderNumeric=c},3292(n,t,e){t.YamlFieldWriterNumeric=void 0;let i=e(5430),a=e(2099),r=e(6444);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.NumericDefaultValueValidator.assertValid(c.valueConstraints.numberType,c.valueConstraints.defaultValue,c.valueConstraints.minValue,c.valueConstraints.maxValue),l[a.YamlKeys.datatype]=this.atomicWriter.write(c.valueConstraints.numberType),c.valueConstraints.minValue!=null&&(l[a.YamlKeys.minValue]=c.valueConstraints.minValue),c.valueConstraints.maxValue!=null&&(l[a.YamlKeys.maxValue]=c.valueConstraints.maxValue),c.valueConstraints.decimalPlaces!=null&&(l[a.YamlKeys.decimalPlaces]=c.valueConstraints.decimalPlaces),c.valueConstraints.unitOfMeasure!=null&&(l[a.YamlKeys.unit]=c.valueConstraints.unitOfMeasure),c.valueConstraints.defaultValue!=null&&(l[a.YamlKeys.default]=c.valueConstraints.defaultValue)}}t.YamlFieldWriterNumeric=o},1468(n,t,e){t.JsonFieldReaderPhoneNumber=void 0;let i=e(4385),a=e(7459),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.PhoneNumberFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderPhoneNumber=l},6876(n,t,e){t.JsonFieldWriterPhoneNumber=void 0;let i=e(2748),a=e(936),r=e(6145);class o extends i.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.CedarModel.defaultValue,c.valueConstraints.defaultValue),super.expandValueConstraintsNode(l,c,d)}}t.JsonFieldWriterPhoneNumber=o},8084(n,t,e){t.PhoneNumberFieldBuilderImpl=void 0;let i=e(3350),a=e(7459);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.PhoneNumberFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.PhoneNumberFieldBuilderImpl=r},7459(n,t,e){t.PhoneNumberFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(7765),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.PHONE_NUMBER,this.valueConstraints=new o.ValueConstraintsLiteralField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.PhoneNumberFieldImpl=l},4329(n,t,e){t.YamlFieldReaderPhoneNumber=void 0;let i=e(5675),a=e(7459),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.PhoneNumberFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.literalFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderPhoneNumber=s},9821(n,t,e){t.YamlFieldWriterPhoneNumber=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterPhoneNumber=o},9053(n,t,e){t.JsonFieldReaderRadio=void 0;let i=e(8748),a=e(936),r=e(3315),o=e(4385),s=e(8618),l=e(6145);class c extends o.JsonTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.RadioFieldImpl.buildEmpty();this.readRequiredAndHidden(m,b);let x=i.ReaderUtil.getNode(m,a.CedarModel.valueConstraints);if(x!=null){g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(x,a.CedarModel.defaultValue);let w=i.ReaderUtil.getNodeList(x,a.CedarModel.literals);w!==null&&w.forEach(C=>{let I=i.ReaderUtil.getString(C,a.CedarModel.label),O=i.ReaderUtil.getBoolean(C,a.CedarModel.selectedByDefault),E=Object.hasOwn(C,a.CedarModel.selectedByDefault);if(I!=null){let R=new r.RadioOption(I,O,E);g.valueConstraints.literals.push(R)}})}return g}}t.JsonFieldReaderRadio=c},9309(n,t,e){t.JsonFieldWriterRadio=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),this.expandLiterals(c,l),super.expandValueConstraintsNode(l,c,d),l[i.CedarModel.multipleChoice]=false}}t.JsonFieldWriterRadio=o},2875(n,t,e){t.RadioFieldBuilderImpl=void 0;let i=e(3350),a=e(3315),r=e(8618);class o extends i.TemplateFieldBuilder{defaultValue=null;literals=[];constructor(){super()}static create(){return new o}addRadioOption(l,c){return this.literals.push(new a.RadioOption(l,c??false,c!==void 0)),this}withDefaultValue(l){return this.defaultValue=l,this}build(){let l=r.RadioFieldImpl.buildEmpty();super.buildInternal(l),l.valueConstraints.defaultValue=this.defaultValue;let c=-1;for(let d=this.literals.length-1;d>=0;d--)if(this.literals[d].selectedByDefault){c=d;break}return c!==-1&&this.literals.forEach((d,m)=>{d.selectedByDefault=m===c,d.statesSelectedByDefault=d.selectedByDefault}),l.valueConstraints.literals=this.literals,l}}t.RadioFieldBuilderImpl=o},8618(n,t,e){t.RadioFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(9931),s=e(587);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.RADIO,this.valueConstraints=new o.ValueConstraintsRadioField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}isSingleInstanceByDefinition(){return true}createDeploymentBuilder(d){return new s.ChildDeploymentInfoAlwaysSingleBuilder(this,d)}}t.RadioFieldImpl=l},3315(n,t,e){t.RadioOption=void 0;let i=e(7282);class a extends i.ChoiceOptionEntity{constructor(o,s,l=true){super(o,s,l)}}t.RadioOption=a},9931(n,t,e){t.ValueConstraintsRadioField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{literals=[];constructor(){super()}}t.ValueConstraintsRadioField=a},4284(n,t,e){t.YamlFieldReaderRadio=void 0;let i=e(8748),a=e(3315),r=e(5675),o=e(2099),s=e(8618),l=e(6145);class c extends r.YamlTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.RadioFieldImpl.buildEmpty();g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(m,o.YamlKeys.default);let x=i.ReaderUtil.getNodeList(m,o.YamlKeys.values);return x!==null&&x.forEach(w=>{let C=i.ReaderUtil.getString(w,o.YamlKeys.label),I=i.ReaderUtil.getBoolean(w,o.YamlKeys.selected),O=Object.hasOwn(w,o.YamlKeys.selected);if(C!=null){let E=new a.RadioOption(C,I,O);g.valueConstraints.literals.push(E)}}),g}}t.YamlFieldReaderRadio=c},8136(n,t,e){t.YamlFieldWriterRadio=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),this.expandLiterals(c,l)}}t.YamlFieldWriterRadio=o},9315(n,t,e){t.JsonFieldReaderTemporal=void 0;let i=e(8748),a=e(936),r=e(8588),o=e(3764),s=e(7974),l=e(4385),c=e(964),d=e(6342);class m extends l.JsonTemplateFieldTypeSpecificReader{read(u,f,g,x){let w=c.TemporalFieldImpl.buildEmpty();this.readRequiredAndHidden(u,f);let C=i.ReaderUtil.getNode(u,a.CedarModel.ui);C!=null&&(w.temporalGranularity=s.TemporalGranularity.forValue(i.ReaderUtil.getString(C,a.CedarModel.temporalGranularity)),w.inputTimeFormat=o.TimeFormat.forValue(i.ReaderUtil.getString(C,a.CedarModel.inputTimeFormat)),w.timezoneEnabled=i.ReaderUtil.getBoolean(C,a.CedarModel.timezoneEnabled));let I=i.ReaderUtil.getNode(u,a.CedarModel.valueConstraints);if(I!=null){let O=i.ReaderUtil.getString(I,a.CedarModel.temporalType);O!==null&&(w.valueConstraints.temporalType=r.TemporalType.forValue(O)),w.valueConstraints.defaultValue=i.ReaderUtil.getString(I,a.CedarModel.defaultValue),d.TemporalDefaultValueValidator.assertValid(w.valueConstraints.temporalType,w.temporalGranularity,w.valueConstraints.defaultValue)}return w}}t.JsonFieldReaderTemporal=m},5459(n,t,e){t.JsonFieldWriterTemporal=void 0;let i=e(936),a=e(3764),r=e(7974),o=e(2748),s=e(2733),l=e(6342);class c extends o.JsonTemplateFieldWriterInternal{constructor(m,b){super(m,b)}expandUINode(m,b,u){super.expandUINode(m,b,u),b.temporalGranularity!==r.TemporalGranularity.NULL&&(m[i.CedarModel.temporalGranularity]=this.atomicWriter.write(b.temporalGranularity)),r.TemporalGranularity.hasTime(b.temporalGranularity)&&(b.inputTimeFormat!==a.TimeFormat.NULL&&(m[i.CedarModel.inputTimeFormat]=this.atomicWriter.write(b.inputTimeFormat)),m[i.CedarModel.timezoneEnabled]=b.timezoneEnabled)}expandValueConstraintsNode(m,b,u){l.TemporalDefaultValueValidator.assertValid(b.valueConstraints.temporalType,b.temporalGranularity,b.valueConstraints.defaultValue),m[i.CedarModel.temporalType]=this.atomicWriter.write(b.valueConstraints.temporalType),b.valueConstraints.defaultValue!=null&&b.valueConstraints.defaultValue!==""&&(m[i.CedarModel.defaultValue]=b.valueConstraints.defaultValue),super.expandValueConstraintsNode(m,b,u)}expandRequiredNode(m){m[s.JsonSchema.required]=[s.JsonSchema.atValue,s.JsonSchema.atType]}}t.JsonFieldWriterTemporal=c},6342(n,t,e){t.TemporalDefaultValueValidator=void 0;let i=e(7974),a=e(8588);t.TemporalDefaultValueValidator=class{static zone="(?:Z|[+-](?:(?:0\\d|1[0-3]):[0-5]\\d|14:00))?";static hour="(?:[01]\\d|2[0-3])";static minute="[0-5]\\d";static second="[0-5]\\d";static assertValid(r,o,s){if(s===null||s==="")return;let l=r.getValue();if(l===null)throw new Error("Temporal default requires a temporal datatype.");if(!this.isCompatibleGranularity(r,o))throw new Error(`Temporal datatype ${l} is not compatible with ${o.getValue()} granularity.`);let c=this.datePattern(o,l===a.TemporalType.DATE.getValue()),d=this.timePattern(o),m;if(m=l===a.TemporalType.DATE.getValue()?c:l===a.TemporalType.TIME.getValue()?d:this.dateTimePattern(o),!m.test(s)||!this.hasValidCalendarDate(s))throw new Error(`Temporal default "${s}" is not valid for ${l}`+(o.getValue()===null?".":` at ${o.getValue()} granularity.`))}static isCompatibleGranularity(r,o){return o===i.TemporalGranularity.NULL||(r===a.TemporalType.DATE?[i.TemporalGranularity.YEAR,i.TemporalGranularity.MONTH,i.TemporalGranularity.DAY].includes(o):r===a.TemporalType.TIME?i.TemporalGranularity.valuesWithTimes().includes(o):[i.TemporalGranularity.DAY,...i.TemporalGranularity.valuesWithTimes()].includes(o))}static datePattern(r,o){return r===i.TemporalGranularity.YEAR?/^\d{4}$/:r===i.TemporalGranularity.MONTH?/^\d{4}-(?:0[1-9]|1[0-2])$/:r!==i.TemporalGranularity.DAY&&o?/^\d{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12]\d|3[01]))?)?$/:/^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$/}static timePattern(r){let o=this.zone,s=this.hour,l=this.minute,c=this.second;return r===i.TemporalGranularity.HOUR?new RegExp(`^${s}${o}$`):r===i.TemporalGranularity.MINUTE?new RegExp(`^${s}:${l}${o}$`):r===i.TemporalGranularity.SECOND?new RegExp(`^${s}:${l}:${c}${o}$`):r===i.TemporalGranularity.DECIMAL_SECOND?new RegExp(`^${s}:${l}:${c}\\.\\d+${o}$`):new RegExp(`^${s}(?::${l}(?::${c}(?:\\.\\d+)?)?)?${o}$`)}static dateTimePattern(r){let o="\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])";return r===i.TemporalGranularity.HOUR||r===i.TemporalGranularity.MINUTE||r===i.TemporalGranularity.SECOND||r===i.TemporalGranularity.DECIMAL_SECOND?new RegExp(`^${o}T${this.timePatternSource(r)}$`):r===i.TemporalGranularity.YEAR||r===i.TemporalGranularity.MONTH?/a^/:r===i.TemporalGranularity.DAY?new RegExp(`^${o}$`):new RegExp(`^${o}(?:T${this.timePatternSource(i.TemporalGranularity.NULL)})?$`)}static timePatternSource(r){return this.timePattern(r).source.replace(/^\^|\$$/g,"")}static hasValidCalendarDate(r){let o=/^(\d{4})-(\d{2})-(\d{2})/.exec(r);if(o===null)return true;let s=Number(o[1]),l=Number(o[2]);return Number(o[3])<=[31,s%4!=0||s%100==0&&s%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][l-1]}}},345(n,t,e){t.TemporalFieldBuilderImpl=void 0;let i=e(3350),a=e(3764),r=e(7974),o=e(8588),s=e(964),l=e(6342);class c extends i.TemplateFieldBuilder{timezoneEnabled=false;inputTimeFormat=a.TimeFormat.NULL;temporalGranularity=r.TemporalGranularity.NULL;temporalType=o.TemporalType.DATETIME;defaultValue=null;constructor(){super()}static create(){return new c}withTimezoneEnabled(m){return this.timezoneEnabled=m,this}withInputTimeFormat(m){return this.inputTimeFormat=m,this}withTemporalGranularity(m){return this.temporalGranularity=m,this}withTemporalType(m){return this.temporalType=m,this}withDefaultValue(m){return this.defaultValue=m,this}build(){l.TemporalDefaultValueValidator.assertValid(this.temporalType,this.temporalGranularity,this.defaultValue);let m=s.TemporalFieldImpl.buildEmpty();return super.buildInternal(m),m.timezoneEnabled=this.timezoneEnabled,m.inputTimeFormat=this.inputTimeFormat,m.temporalGranularity=this.temporalGranularity,m.valueConstraints.temporalType=this.temporalType,m.valueConstraints.defaultValue=this.defaultValue,m}}t.TemporalFieldBuilderImpl=c},964(n,t,e){t.TemporalFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(3567),s=e(3764),l=e(7974),c=e(3608);class d extends i.TemplateField{valueConstraints;timezoneEnabled=false;inputTimeFormat=s.TimeFormat.NULL;temporalGranularity=l.TemporalGranularity.NULL;constructor(){super(),this.cedarFieldType=a.CedarFieldType.TEMPORAL,this.valueConstraints=new o.ValueConstraintsTemporalField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new d}createDeploymentBuilder(b){return new c.ChildDeploymentInfoBuilder(this,b)}}t.TemporalFieldImpl=d},3567(n,t,e){t.ValueConstraintsTemporalField=void 0;let i=e(4328),a=e(8588);class r extends i.ValueConstraints{temporalType=a.TemporalType.DATETIME;defaultValue=null;constructor(){super()}}t.ValueConstraintsTemporalField=r},384(n,t,e){t.YamlFieldReaderTemporal=void 0;let i=e(8748),a=e(8588),r=e(3764),o=e(7974),s=e(5675),l=e(2099),c=e(964),d=e(6342);class m extends s.YamlTemplateFieldTypeSpecificReader{read(u,f,g,x){let w=c.TemporalFieldImpl.buildEmpty();w.temporalGranularity=o.TemporalGranularity.forValue(i.ReaderUtil.getString(u,l.YamlKeys.granularity)),w.inputTimeFormat=r.TimeFormat.forValue(i.ReaderUtil.getString(u,l.YamlKeys.inputTimeFormat)),w.timezoneEnabled=i.ReaderUtil.getBoolean(u,l.YamlKeys.inputTimeZone);let C=i.ReaderUtil.getString(u,l.YamlKeys.datatype);return C!==null&&(w.valueConstraints.temporalType=a.TemporalType.forValue(C)),w.valueConstraints.defaultValue=i.ReaderUtil.getString(u,l.YamlKeys.default),d.TemporalDefaultValueValidator.assertValid(w.valueConstraints.temporalType,w.temporalGranularity,w.valueConstraints.defaultValue),w}}t.YamlFieldReaderTemporal=m},7436(n,t,e){t.YamlFieldWriterTemporal=void 0;let i=e(3764),a=e(7974),r=e(5430),o=e(2099),s=e(6342);class l extends r.YamlTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNodeForYAML(d,m,b){s.TemporalDefaultValueValidator.assertValid(m.valueConstraints.temporalType,m.temporalGranularity,m.valueConstraints.defaultValue),d[o.YamlKeys.datatype]=this.atomicWriter.write(m.valueConstraints.temporalType),m.temporalGranularity!==a.TemporalGranularity.NULL?(d[o.YamlKeys.granularity]=this.atomicWriter.write(m.temporalGranularity),m.valueConstraints.defaultValue!=null&&m.valueConstraints.defaultValue!==""&&(d[o.YamlKeys.default]=m.valueConstraints.defaultValue),m.temporalGranularity!==a.TemporalGranularity.YEAR&&m.temporalGranularity!==a.TemporalGranularity.MONTH&&m.temporalGranularity!==a.TemporalGranularity.DAY&&(m.inputTimeFormat!==i.TimeFormat.NULL&&(d[o.YamlKeys.inputTimeFormat]=this.atomicWriter.write(m.inputTimeFormat)),m.timezoneEnabled&&(d[o.YamlKeys.inputTimeZone]=m.timezoneEnabled))):m.valueConstraints.defaultValue!=null&&m.valueConstraints.defaultValue!==""&&(d[o.YamlKeys.default]=m.valueConstraints.defaultValue)}}t.YamlFieldWriterTemporal=l},9683(n,t,e){t.JsonFieldReaderTextArea=void 0;let i=e(4385),a=e(5450),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.TextAreaImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,o.CedarModel.defaultValue),f.valueConstraints.minLength=r.ReaderUtil.getNumber(g,o.CedarModel.minLength),f.valueConstraints.maxLength=r.ReaderUtil.getNumber(g,o.CedarModel.maxLength)),f}}t.JsonFieldReaderTextArea=l},275(n,t,e){t.JsonFieldWriterTextArea=void 0;let i=e(2748),a=e(936),r=e(6145);class o extends i.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.CedarModel.defaultValue,c.valueConstraints.defaultValue),c.valueConstraints.minLength!==null&&(l[a.CedarModel.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!==null&&(l[a.CedarModel.maxLength]=c.valueConstraints.maxLength),super.expandValueConstraintsNode(l,c,d)}}t.JsonFieldWriterTextArea=o},1259(n,t,e){t.TextAreaBuilderImpl=void 0;let i=e(3350),a=e(5450);class r extends i.TemplateFieldBuilder{defaultValue=null;minLength=null;maxLength=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}withMinLength(s){return this.minLength=s,this}withMaxLength(s){return this.maxLength=s,this}build(){let s=a.TextAreaImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s.valueConstraints.minLength=this.minLength,s.valueConstraints.maxLength=this.maxLength,s}}t.TextAreaBuilderImpl=r},5450(n,t,e){t.TextAreaImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(3608),s=e(5923);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.TEXTAREA,this.valueConstraints=new s.ValueConstraintsTextArea,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new o.ChildDeploymentInfoBuilder(this,d)}}t.TextAreaImpl=l},5923(n,t,e){t.ValueConstraintsTextArea=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{minLength=null;maxLength=null;constructor(){super()}}t.ValueConstraintsTextArea=a},3168(n,t,e){t.YamlFieldReaderTextArea=void 0;let i=e(8748),a=e(5675),r=e(5450),o=e(2099),s=e(6145);class l extends a.YamlTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=r.TextAreaImpl.buildEmpty();return f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(d,o.YamlKeys.default),f.valueConstraints.minLength=i.ReaderUtil.getNumber(d,o.YamlKeys.minLength),f.valueConstraints.maxLength=i.ReaderUtil.getNumber(d,o.YamlKeys.maxLength),f}}t.YamlFieldReaderTextArea=l},836(n,t,e){t.YamlFieldWriterTextArea=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),c.valueConstraints.minLength!==null&&(l[a.YamlKeys.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!==null&&(l[a.YamlKeys.maxLength]=c.valueConstraints.maxLength)}}t.YamlFieldWriterTextArea=o},9241(n,t,e){t.JsonFieldReaderTextField=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(6591),s=e(6145);class l extends r.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=o.TextFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=i.ReaderUtil.getNode(d,a.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,a.CedarModel.defaultValue),f.valueConstraints.minLength=i.ReaderUtil.getNumber(g,a.CedarModel.minLength),f.valueConstraints.maxLength=i.ReaderUtil.getNumber(g,a.CedarModel.maxLength),f.valueConstraints.regex=i.ReaderUtil.getString(g,a.CedarModel.regex)),f}}t.JsonFieldReaderTextField=l},7501(n,t,e){t.JsonFieldWriterTextField=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){c.valueConstraints.minLength!==null&&(l[i.CedarModel.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!==null&&(l[i.CedarModel.maxLength]=c.valueConstraints.maxLength),r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),super.expandValueConstraintsNode(l,c,d),c.valueConstraints.regex!==null&&(l[i.CedarModel.regex]=c.valueConstraints.regex)}}t.JsonFieldWriterTextField=o},7889(n,t,e){t.TextFieldBuilderImpl=void 0;let i=e(3350),a=e(6591);class r extends i.TemplateFieldBuilder{defaultValue=null;minLength=null;maxLength=null;regex=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}withMinLength(s){return this.minLength=s,this}withMaxLength(s){return this.maxLength=s,this}withRegex(s){return this.regex=s,this}build(){let s=a.TextFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s.valueConstraints.minLength=this.minLength,s.valueConstraints.maxLength=this.maxLength,s.valueConstraints.regex=this.regex,s}}t.TextFieldBuilderImpl=r},6591(n,t,e){t.TextFieldImpl=void 0;let i=e(9129),a=e(9711),r=e(4869),o=e(2763),s=e(3608);class l extends i.TemplateField{valueConstraints;valueRecommendationEnabled=false;constructor(){super(),this.cedarFieldType=r.CedarFieldType.TEXT,this.valueConstraints=new a.ValueConstraintsTextField,this.cedarArtifactType=o.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}supportsValueRecommendation(){return true}}t.TextFieldImpl=l},9711(n,t,e){t.ValueConstraintsTextField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{minLength=null;maxLength=null;regex=null;constructor(){super()}}t.ValueConstraintsTextField=a},1268(n,t,e){t.YamlFieldReaderTextField=void 0;let i=e(8748),a=e(5675),r=e(2099),o=e(6591),s=e(6145);class l extends a.YamlTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=o.TextFieldImpl.buildEmpty();return f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(d,r.YamlKeys.default),f.valueConstraints.minLength=i.ReaderUtil.getNumber(d,r.YamlKeys.minLength),f.valueConstraints.maxLength=i.ReaderUtil.getNumber(d,r.YamlKeys.maxLength),f.valueConstraints.regex=i.ReaderUtil.getString(d,r.YamlKeys.regex),f}}t.YamlFieldReaderTextField=l},6116(n,t,e){t.YamlFieldWriterTextField=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),c.valueConstraints.minLength!=null&&(l[a.YamlKeys.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!=null&&(l[a.YamlKeys.maxLength]=c.valueConstraints.maxLength),c.valueConstraints.regex!=null&&(l[a.YamlKeys.regex]=c.valueConstraints.regex)}}t.YamlFieldWriterTextField=o},8053(n,t,e){t.JsonStaticFieldWriter=void 0;let i=e(7752),a=e(455),r=e(2748),o=e(2733),s=e(9251),l=e(936),c=e(5793),d=e(5747),m=e(3746),b=e(2475);class u extends r.JsonTemplateFieldWriterInternal{constructor(g,x){super(g,x)}expandUiNode(g,x){}buildUIObject(g){let x={[l.CedarModel.inputType]:this.atomicWriter.write(g.cedarFieldType.getUiInputType())};return this.expandUiNode(x,g),l.CedarModel.content in x||(x[l.CedarModel.content]=null),{[l.CedarModel.ui]:x}}getAsJsonNode(g,x=a.ChildDeploymentInfo.empty()){let w=this.buildUIObject(g);return x.hidden&&(w[l.CedarModel.ui][l.CedarModel.Ui.hidden]=true),g.extensions.applyJson(Je(Y(Y(Y(Y(Y(Y(Y(Y(Y({[o.JsonSchema.atId]:this.atomicWriter.write(g.at_id),[o.JsonSchema.atType]:this.atomicWriter.write(g.cedarArtifactType),[o.JsonSchema.atContext]:this.macroContext(g),[l.CedarModel.type]:this.atomicWriter.write(c.JavascriptType.OBJECT),[d.TemplateProperty.title]:g.title,[d.TemplateProperty.description]:g.description},w),this.macroSchemaNameAndDescription(g)),this.macroProvenance(g,this.atomicWriter)),this.macroSkos(g)),this.macroStatusAndVersion(g,this.atomicWriter)),this.macroSchemaIdentifier(g)),this.macroAnnotations(g)),this.macroPreviousVersion(g)),this.macroDerivedFrom(g)),{[o.JsonSchema.schemaVersion]:this.atomicWriter.write(g.schema_schemaVersion),[d.TemplateProperty.additionalProperties]:this.atomicWriter.write(m.AdditionalProperties.FALSE),[l.CedarModel.schema]:this.atomicWriter.write(b.ArtifactSchema.CURRENT)}))}macroContext(g){let x=Y({},s.JsonTemplateFieldContentStatic.CONTEXT_VERBATIM);return g.language!==i.Language.NULL&&(x[o.JsonSchema.atLanguage]=this.atomicWriter.write(g.language)),x}}t.JsonStaticFieldWriter=u},699(n,t){t.isSizedStaticField=function(e){return e!==null&&"width"in e&&"height"in e}},934(n,t,e){t.YamlStaticFieldWriter=void 0;let i=e(9517),a=e(5430),r=e(455);class o extends a.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return super.expandUINodeForYAML(l)}expandSizeForYAML(l){return i.JsonNode.getEmpty()}buildUIObject(l){return this.expandUINodeForYAML(l)}getYamlAsJsonNode(l,c=r.ChildDeploymentInfo.empty(),d=false,m=true){return l.extensions.applyYaml(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(l)),this.macroNameAndDescription(l)),this.macroSchemaIdentifier(l)),this.macroId(l,d,m)),this.macroStatusAndVersion(l,d)),this.macroSkos(l)),this.expandUINodeForYAML(l)),c.hasParent()?i.JsonNode.getEmpty():this.expandSizeForYAML(l)),this.macroProvenance(l,d)),this.macroDerivedFrom(l,d)),this.macroPreviousVersion(l,d)),this.macroAnnotations(l)))}}t.YamlStaticFieldWriter=o},9148(n,t,e){t.JsonFieldReaderImage=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(5573);class s extends r.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticImageFieldImpl.buildEmpty(),f=i.ReaderUtil.getNode(c,a.CedarModel.ui);u.content=i.ReaderUtil.getString(f,a.CedarModel.content);let g=i.ReaderUtil.getNode(f,a.CedarModel.size);return u.width=i.ReaderUtil.getNumber(g,a.CedarModel.width),u.height=i.ReaderUtil.getNumber(g,a.CedarModel.height),u}}t.JsonFieldReaderImage=s},8970(n,t,e){t.JsonFieldWriterStaticImage=void 0;let i=e(9517),a=e(936),r=e(8053);class o extends r.JsonStaticFieldWriter{constructor(l,c){super(l,c)}expandUiNode(l,c){if(c.content!==null&&(l[a.CedarModel.content]=c.content),c.width!==null||c.height!==null){let d=i.JsonNode.getEmpty();c.width!==null&&(d[a.CedarModel.width]=c.width),c.height!==null&&(d[a.CedarModel.height]=c.height),l[a.CedarModel.size]=d}}}t.JsonFieldWriterStaticImage=o},3138(n,t,e){t.StaticImageFieldBuilderImpl=void 0;let i=e(3350),a=e(5573);class r extends i.TemplateFieldBuilder{content=null;width=null;height=null;constructor(){super()}static create(){return new r}withContent(s){return this.content=s,this}withWidth(s){return this.width=s,this}withHeight(s){return this.height=s,this}build(){let s=a.StaticImageFieldImpl.buildEmpty();return super.buildInternal(s),s.content=this.content,s.width=this.width,s.height=this.height,s}}t.StaticImageFieldBuilderImpl=r},5573(n,t,e){t.StaticImageFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;width=null;height=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_IMAGE,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticImageFieldImpl=s},7941(n,t,e){t.YamlFieldReaderImage=void 0;let i=e(8748),a=e(2099),r=e(5675),o=e(5573);class s extends r.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticImageFieldImpl.buildEmpty();return u.content=i.ReaderUtil.getString(c,a.YamlKeys.content),u.width=i.ReaderUtil.getNumber(c,a.YamlKeys.width),u.height=i.ReaderUtil.getNumber(c,a.YamlKeys.height),u}}t.YamlFieldReaderImage=s},4935(n,t,e){t.YamlFieldWriterStaticImage=void 0;let i=e(9517),a=e(934),r=e(2099);class o extends a.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){let c=i.JsonNode.getEmpty();return l.content!==null&&(c[r.YamlKeys.content]=l.content),c}expandSizeForYAML(l){let c=i.JsonNode.getEmpty();return l.width!==null&&(c[r.YamlKeys.width]=l.width),l.height!==null&&(c[r.YamlKeys.height]=l.height),c}}t.YamlFieldWriterStaticImage=o},5933(n,t,e){t.JsonFieldReaderPageBreak=void 0;let i=e(4385),a=e(9046),r=e(936),o=e(8748);class s extends i.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticPageBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(o.ReaderUtil.getNode(c,r.CedarModel.ui),r.CedarModel.content),u}}t.JsonFieldReaderPageBreak=s},2347(n,t,e){t.JsonFieldWriterStaticPageBreak=void 0;let i=e(8053),a=e(936);class r extends i.JsonStaticFieldWriter{constructor(s,l){super(s,l)}expandUiNode(s,l){l.content!==null&&(s[a.CedarModel.content]=l.content)}}t.JsonFieldWriterStaticPageBreak=r},2703(n,t,e){t.StaticPageBreakFieldBuilderImpl=void 0;let i=e(3350),a=e(9046);class r extends i.TemplateFieldBuilder{constructor(){super()}static create(){return new r}build(){let s=a.StaticPageBreakFieldImpl.buildEmpty();return super.buildInternal(s),s}}t.StaticPageBreakFieldBuilderImpl=r},9046(n,t,e){t.StaticPageBreakFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_PAGE_BREAK,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticPageBreakFieldImpl=s},4568(n,t,e){t.YamlFieldReaderPageBreak=void 0;let i=e(5675),a=e(9046),r=e(2099),o=e(8748);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticPageBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(c,r.YamlKeys.content),u}}t.YamlFieldReaderPageBreak=s},7594(n,t,e){t.YamlFieldWriterStaticPageBreak=void 0;let i=e(934),a=e(2099),r=e(9517);class o extends i.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return l.content!==null?{[a.YamlKeys.content]:l.content}:r.JsonNode.getEmpty()}}t.YamlFieldWriterStaticPageBreak=o},6291(n,t,e){t.JsonFieldReaderRichText=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(5548);class s extends r.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticRichTextFieldImpl.buildEmpty(),f=i.ReaderUtil.getNode(c,a.CedarModel.ui);return u.content=i.ReaderUtil.getString(f,a.CedarModel.content),u}}t.JsonFieldReaderRichText=s},6029(n,t,e){t.JsonFieldWriterStaticRichText=void 0;let i=e(936),a=e(8053);class r extends a.JsonStaticFieldWriter{constructor(s,l){super(s,l)}expandUiNode(s,l){l.content!==null&&(s[i.CedarModel.content]=l.content)}}t.JsonFieldWriterStaticRichText=r},9521(n,t,e){t.StaticRichTextFieldBuilderImpl=void 0;let i=e(3350),a=e(5548);class r extends i.TemplateFieldBuilder{content=null;constructor(){super()}static create(){return new r}withContent(s){return this.content=s,this}build(){let s=a.StaticRichTextFieldImpl.buildEmpty();return super.buildInternal(s),s.content=this.content,s}}t.StaticRichTextFieldBuilderImpl=r},5548(n,t,e){t.StaticRichTextFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_RICH_TEXT,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticRichTextFieldImpl=s},1404(n,t,e){t.YamlFieldReaderRichText=void 0;let i=e(8748),a=e(5675),r=e(2099),o=e(5548);class s extends a.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticRichTextFieldImpl.buildEmpty();return u.content=i.ReaderUtil.getString(c,r.YamlKeys.content),u}}t.YamlFieldReaderRichText=s},6314(n,t,e){t.YamlFieldWriterStaticRichText=void 0;let i=e(9517),a=e(934),r=e(2099);class o extends a.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return l.content!==null?{[r.YamlKeys.content]:l.content}:i.JsonNode.getEmpty()}}t.YamlFieldWriterStaticRichText=o},6511(n,t,e){t.JsonFieldReaderSectionBreak=void 0;let i=e(4385),a=e(2546),r=e(936),o=e(8748);class s extends i.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticSectionBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(o.ReaderUtil.getNode(c,r.CedarModel.ui),r.CedarModel.content),u}}t.JsonFieldReaderSectionBreak=s},41(n,t,e){t.JsonFieldWriterStaticSectionsBreak=void 0;let i=e(8053),a=e(936);class r extends i.JsonStaticFieldWriter{constructor(s,l){super(s,l)}expandUiNode(s,l){l.content!==null&&(s[a.CedarModel.content]=l.content)}}t.JsonFieldWriterStaticSectionsBreak=r},5795(n,t,e){t.StaticSectionBreakFieldBuilderImpl=void 0;let i=e(3350),a=e(2546);class r extends i.TemplateFieldBuilder{constructor(){super()}static create(){return new r}build(){let s=a.StaticSectionBreakFieldImpl.buildEmpty();return super.buildInternal(s),s}}t.StaticSectionBreakFieldBuilderImpl=r},2546(n,t,e){t.StaticSectionBreakFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_SECTION_BREAK,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticSectionBreakFieldImpl=s},3980(n,t,e){t.YamlFieldReaderSectionBreak=void 0;let i=e(5675),a=e(2546),r=e(2099),o=e(8748);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticSectionBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(c,r.YamlKeys.content),u}}t.YamlFieldReaderSectionBreak=s},6082(n,t,e){t.YAMLFieldWriterStaticSectionsBreak=void 0;let i=e(934),a=e(2099),r=e(9517);class o extends i.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return l.content!==null?{[a.YamlKeys.content]:l.content}:r.JsonNode.getEmpty()}}t.YAMLFieldWriterStaticSectionsBreak=o},8596(n,t,e){t.JsonFieldReaderYoutube=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(477);class s extends r.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticYoutubeFieldImpl.buildEmpty(),f=i.ReaderUtil.getNode(c,a.CedarModel.ui);u.videoId=i.ReaderUtil.getString(f,a.CedarModel.content);let g=i.ReaderUtil.getNode(f,a.CedarModel.size);return u.width=i.ReaderUtil.getNumber(g,a.CedarModel.width),u.height=i.ReaderUtil.getNumber(g,a.CedarModel.height),u}}t.JsonFieldReaderYoutube=s},6766(n,t,e){t.JsonFieldWriterStaticYoutube=void 0;let i=e(9517),a=e(936),r=e(8053);class o extends r.JsonStaticFieldWriter{constructor(l,c){super(l,c)}expandUiNode(l,c){if(c.videoId!==null&&(l[a.CedarModel.content]=c.videoId),c.width!==null||c.height!==null){let d=i.JsonNode.getEmpty();c.width!==null&&(d[a.CedarModel.width]=c.width),c.height!==null&&(d[a.CedarModel.height]=c.height),l[a.CedarModel.size]=d}}}t.JsonFieldWriterStaticYoutube=o},7674(n,t,e){t.StaticYoutubeFieldBuilderImpl=void 0;let i=e(3350),a=e(477);class r extends i.TemplateFieldBuilder{videoId=null;width=null;height=null;constructor(){super()}static create(){return new r}withVideoId(s){return this.videoId=s,this}withWidth(s){return this.width=s,this}withHeight(s){return this.height=s,this}build(){let s=a.StaticYoutubeFieldImpl.buildEmpty();return super.buildInternal(s),s.videoId=this.videoId,s.width=this.width,s.height=this.height,s}}t.StaticYoutubeFieldBuilderImpl=r},477(n,t,e){t.StaticYoutubeFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{videoId=null;width=null;height=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_YOUTUBE,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticYoutubeFieldImpl=s},7089(n,t,e){t.YamlFieldReaderYoutube=void 0;let i=e(8748),a=e(5675),r=e(2099),o=e(477);class s extends a.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticYoutubeFieldImpl.buildEmpty();return u.videoId=i.ReaderUtil.getString(c,r.YamlKeys.content),u.width=i.ReaderUtil.getNumber(c,r.YamlKeys.width),u.height=i.ReaderUtil.getNumber(c,r.YamlKeys.height),u}}t.YamlFieldReaderYoutube=s},1903(n,t,e){t.YamlFieldWriterStaticYoutube=void 0;let i=e(9517),a=e(934),r=e(2099);class o extends a.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){let c=i.JsonNode.getEmpty();return l.videoId!==null&&(c[r.YamlKeys.content]=l.videoId),c}expandSizeForYAML(l){let c=i.JsonNode.getEmpty();return l.width!==null&&(c[r.YamlKeys.width]=l.width),l.height!==null&&(c[r.YamlKeys.height]=l.height),c}}t.YamlFieldWriterStaticYoutube=o},4033(n,t,e){t.AttributeValueNamePolicy=void 0;let i=e(5588),a=e(9327),r=e(3644),o=e(7723);class s{constructor(){}static isReserved(c){return i.ReservedNames.isReservedName(c)}static findConflicts(c,d="template",m=false){let b=[];return s.scanContainer(c,[],b,d,m),b}static locationOf(c){return c.kind==="reservedField"?[...c.path,c.groupName]:[...c.path,c.groupName,c.name]}static assertValid(c){let d=s.findConflicts(c)[0];if(d===void 0)return;let m=s.locationOf(d).join("/");if(d.kind==="reservedField")throw new Error(`Attribute-value field name "${d.name}" at /${m} is reserved for CEDAR instance metadata`);let b=d.kind==="reserved"?"is reserved for instance metadata":d.kind==="blank"?"must not be blank":d.kind==="sibling"?"collides with another child in the same object":`is also used by attribute-value field "${d.conflictingGroupName}"`;throw new Error(`Attribute-value name "${d.name}" at /${m} ${b}`)}static scanContainer(c,d,m,b,u){for(let I of Object.keys(c.values))i.ReservedNames.requireChildName(I);let f=s.attributeValueGroups(c),g=new Set(f.map(I=>I.name)),x=new Set(f.filter(I=>I.unpacked).flatMap(I=>I.attributeNames)),w=new Set(Object.keys(c.values).filter(I=>!g.has(I)&&!x.has(I))),C=new Map;for(let I of f){i.ReservedNames.isReservedAttributeValueFieldName(I.name,b)&&m.push({kind:"reservedField",name:I.name,groupName:I.name,path:d});let O=new Set;for(let E of I.attributeNames){if(E.trim()===""){u&&m.push({kind:"blank",name:E,groupName:I.name,path:d});continue}s.isReserved(E)&&m.push({kind:"reserved",name:E,groupName:I.name,path:d}),(w.has(E)||g.has(E))&&m.push({kind:"sibling",name:E,groupName:I.name,path:d}),O.has(E)?m.push({kind:"duplicate",name:E,groupName:I.name,path:d,conflictingGroupName:I.name}):O.add(E);let R=C.get(E);R!==void 0&&R!==I.name?m.push({kind:"duplicate",name:E,groupName:I.name,path:d,conflictingGroupName:R}):C.set(E,I.name)}}for(let[I,O]of Object.entries(c.values))g.has(I)||x.has(I)||s.scanValue(O,[...d,I],m,u)}static scanValue(c,d,m,b){c instanceof o.InstanceDataContainer?s.scanContainer(c,d,m,"element",b):Array.isArray(c)&&c.forEach((u,f)=>s.scanValue(u,[...d,f],m,b))}static attributeValueGroups(c){let d=[];for(let[m,b]of Object.entries(c.values))if(b instanceof a.InstanceDataAttributeValueField)d.push({name:m,attributeNames:Object.keys(b.values),unpacked:false});else if(Array.isArray(b)){let u=b.filter(f=>f instanceof r.InstanceDataAttributeValueFieldName).map(f=>f.name);u.length>0&&d.push({name:m,attributeNames:u,unpacked:true})}return d}}t.AttributeValueNamePolicy=s},9327(n,t,e){t.InstanceDataAttributeValueField=void 0;let i=e(5588);t.InstanceDataAttributeValueField=class{_name;_values=Object.create(null);_iris;constructor(a){this._name=a,this._values=Object.create(null),this._iris=Object.create(null)}addValue(a,r){i.ReservedNames.requireChildName(a),this._values[a]=r}get name(){return this._name}get values(){return this._values}setIri(a,r){this._iris[a]=r}get iris(){return this._iris}}},3644(n,t){t.InstanceDataAttributeValueFieldName=void 0,t.InstanceDataAttributeValueFieldName=class{_name;constructor(e){this._name=e}get name(){return this._name}}},7723(n,t,e){t.InstanceDataContainer=void 0;let i=e(5588);t.InstanceDataContainer=class{_id=null;_values;_iris;constructor(){this._values=Object.create(null),this._iris=Object.create(null)}setValue(a,r){i.ReservedNames.requireChildName(a),this._values[a]=r}hasValue(a){return Object.hasOwn(this._values,a)}removeValue(a){delete this._values[a],delete this._iris[a]}get values(){return this._values}set values(a){for(let r of Object.keys(a))i.ReservedNames.requireChildName(r);this._values=Object.assign(Object.create(null),a)}setIri(a,r){this._iris[a]=r}hasIri(a){return Object.hasOwn(this._iris,a)}removeIri(a){delete this._iris[a]}get iris(){return this._iris}set id(a){this._id=a}get id(){return this._id}}},8193(n,t,e){t.InstanceDataControlledAtom=void 0;let i=e(7571);class a{language=null;preferredLabel=null;notation=null;_id;_type;_label;constructor(o,s,l,c=null){if(l!==i.PARSED_NODE&&((0,i.assertIri)(o,"InstanceDataControlledAtom"),s==null||s===""))throw new Error("InstanceDataControlledAtom requires a label. An IRI on its own is a link, not a controlled term.");this._id=o,this._type=l===i.PARSED_NODE?c:l??null,this._label=s}static fromParsedNode(o,s,l=null){return new a(o,s,i.PARSED_NODE,l)}get type(){return this._type}get id(){return this._id}get label(){return this._label}}t.InstanceDataControlledAtom=a},7548(n,t){t.InstanceDataEmptyAtom=void 0,t.InstanceDataEmptyAtom=class{_discarded;constructor(e=null){this._discarded=e}get discarded(){return this._discarded}hasDiscardedContent(){return this._discarded!==null&&Object.keys(this._discarded).length>0}}},4465(n,t){t.InstanceDataEmptyNode=void 0,t.InstanceDataEmptyNode=class{}},9167(n,t){t.InstanceDataLabelAtom=void 0,t.InstanceDataLabelAtom=class{label;type;language=null;preferredLabel=null;notation=null;constructor(e,i=null){this.label=e,this.type=i}}},7571(n,t){function e(a,r){if(a==null||a==="")throw new Error(`${r} requires an IRI. An IRI-valued field with nothing in it is an empty node, not a null IRI.`)}t.InstanceDataLinkAtom=t.PARSED_NODE=void 0,t.assertIri=e,t.PARSED_NODE=Symbol("parsed node");class i{language=null;preferredLabel=null;notation=null;_id;_type;constructor(r,o,s=null){o!==t.PARSED_NODE&&e(r,"InstanceDataLinkAtom"),this._id=r,this._type=o===t.PARSED_NODE?s:o??null}static fromParsedNode(r,o=null){return new i(r,t.PARSED_NODE,o)}get type(){return this._type}get id(){return this._id}}t.InstanceDataLinkAtom=i},1625(n,t){t.InstanceDataNotationAtom=void 0,t.InstanceDataNotationAtom=class{notation;type;language=null;preferredLabel=null;constructor(e,i=null){this.notation=e,this.type=i}}},5222(n,t){t.InstanceDataStringAtom=void 0,t.InstanceDataStringAtom=class{label;language=null;preferredLabel=null;notation=null;_value;constructor(e,i=null){this.label=i,this._value=e}get value(){return this._value}}},4877(n,t){t.InstanceDataTypedAtom=void 0,t.InstanceDataTypedAtom=class{label;language=null;preferredLabel=null;notation=null;_value;_type;constructor(e,i,a=null){if(this.label=a,i==null||i==="")throw new Error("InstanceDataTypedAtom requires a type. A literal with no declared type is an InstanceDataStringAtom.");this._value=e,this._type=i}get value(){return this._value}get type(){return this._type}}},9961(n,t,e){t.InstanceInflater=void 0;let i=e(9129),a=e(4869),r=e(1211),o=e(3567),s=e(5222),l=e(4877),c=e(7723),d=e(4465),m=e(2763),b=e(7661),u=e(513),f=e(3812);class g{constructor(){}static inflate(w,C,I="lowerBound"){return g.inflateContainer(w.dataContainer,C,I),w}static emptyField(w){return w.valueConstraints instanceof r.ValueConstraintsNumericField?new l.InstanceDataTypedAtom(null,w.valueConstraints.numberType.getValue()??"xsd:decimal"):w.valueConstraints instanceof o.ValueConstraintsTemporalField?new l.InstanceDataTypedAtom(null,w.valueConstraints.temporalType.getValue()??"xsd:dateTime"):[a.CedarFieldType.CONTROLLED_TERM,a.CedarFieldType.LINK,a.CedarFieldType.EXT_ROR,a.CedarFieldType.EXT_ORCID,a.CedarFieldType.EXT_PFAS,a.CedarFieldType.EXT_PUBMED,a.CedarFieldType.EXT_RRID,a.CedarFieldType.EXT_NIH_GRANT_ID,a.CedarFieldType.EXT_DOI].includes(w.cedarFieldType)?new d.InstanceDataEmptyNode:new s.InstanceDataStringAtom(null)}static startingOccurrences(w,C){if(w instanceof i.TemplateField&&w.cedarFieldType===a.CedarFieldType.ATTRIBUTE_VALUE)return[];let I=(C instanceof f.AbstractDynamicChildDeploymentInfo?C.minItems:null)??u.AbstractChildDeploymentInfo.defaultMinItems;return Array.from({length:I},()=>w instanceof b.TemplateElement?new c.InstanceDataContainer:w instanceof i.TemplateField?g.emptyField(w):new d.InstanceDataEmptyNode)}static inflateContainer(w,C,I){let O=C.getChildrenInfo(),E=O.getChildIriMap();Object.keys(E).forEach(D=>w.setIri(D,E[D]));let R={};O.getChildrenNames().forEach(D=>{let F=C.getChild(D),z=w.values[D];if(z===void 0){if(C.getChildInfo(D)?.atType===m.CedarArtifactType.STATIC_TEMPLATE_FIELD)return;let ie=C.getChildInfo(D);z=ie?.isMultiInAnyWay()?I==="empty"?[]:g.startingOccurrences(F,ie):F instanceof b.TemplateElement?new c.InstanceDataContainer:F instanceof i.TemplateField?g.emptyField(F):new d.InstanceDataEmptyNode}F instanceof b.TemplateElement&&(z instanceof c.InstanceDataContainer?g.inflateContainer(z,F,I):Array.isArray(z)&&z.forEach(ie=>{ie instanceof c.InstanceDataContainer&&g.inflateContainer(ie,F,I)})),R[D]=z}),Object.keys(w.values).forEach(D=>{Object.hasOwn(R,D)||(R[D]=w.values[D])}),w.values=R}}t.InstanceInflater=g},8410(n,t,e){t.InstanceValidator=void 0;let i=e(7723),a=e(7548),r=e(4465),o=e(5222),s=e(4877),l=e(7571),c=e(8193),d=e(3812),m=e(7661),b=e(964),u=e(4074),f=e(4036),g=e(2888),x=e(9760),w=e(3188),C=e(2733),I=e(9034),O=e(9327),E=e(3644),R=e(4033),D=e(2763),F="InstanceValidator";class z{constructor(){}static validate($,H){let me=new f.JsonArtifactParsingResult;return z.validateContainer($.dataContainer,H,new w.JsonPath,me),me}static validateContainer($,H,me,J){let q=H.getChildrenInfo(),ae=H.cedarArtifactType===D.CedarArtifactType.TEMPLATE?"template":"element";for(let de of R.AttributeValueNamePolicy.findConflicts($,ae).filter(pe=>pe.path.length===0))J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me.add(...R.AttributeValueNamePolicy.locationOf(de)),"a unique, non-reserved attribute-value name",de.name));for(let[de,pe]of z.attributeValueGroups($))for(let Fe of pe){let Me=q.get(Fe);Me!==null&&Me.atType!==D.CedarArtifactType.STATIC_TEMPLATE_FIELD&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me.add(de,Fe),"a name different from every serializable template child",Fe))}for(let de of q.getChildrenNamesForRequiredInProperties())Object.hasOwn($.values,de)||J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,me.add(de),de));for(let de of q.getChildrenNames()){let pe=q.get(de);if(pe?.uiInputType===I.UiInputType.ATTRIBUTE_VALUE)continue;let Fe=$.values[de];Fe!==void 0&&z.validateChild(de,Fe,pe,H.getChild(de),me.add(de),J)}}static attributeValueGroups($){let H=[];for(let[me,J]of Object.entries($.values))if(J instanceof O.InstanceDataAttributeValueField)H.push([me,Object.keys(J.values)]);else if(Array.isArray(J)){let q=J.filter(ae=>ae instanceof E.InstanceDataAttributeValueFieldName).map(ae=>ae.name??"").filter(ae=>ae.length>0);q.length>0&&H.push([me,q])}return H}static validateChild($,H,me,J,q,ae){let de=me?.isMultiInAnyWay()??false,pe=Array.isArray(H)?H:null,Fe=pe!==null;if(de===Fe)return pe!==null?(z.validateCardinality(pe,me,q,ae),void pe.forEach((Me,ut)=>z.validateItem(Me,J,q.add(ut),ae))):void z.validateItem(H,J,q,ae);ae.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,q,de?"a list of values":"a single value",Fe?"a list of values":"a single value"))}static validateCardinality($,H,me,J){if(!(H instanceof d.AbstractDynamicChildDeploymentInfo))return;let{minItems:q,maxItems:ae}=H;q!==null&&$.length<q&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_INDEX_IN_REAL_OBJECT,me,q,$.length)),ae!==null&&$.length>ae&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.UNEXPECTED_INDEX_IN_REAL_OBJECT,me,ae,$.length))}static validateItem($,H,me,J){if(H instanceof m.TemplateElement)return void($ instanceof i.InstanceDataContainer?z.validateContainer($,H,me,J):z.isEmpty($)?z.validateContainer(new i.InstanceDataContainer,H,me,J):J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me,"an element","a field value")));z.validateIri($,me,J);let q=z.declaredValueType(H);q!==null&&z.validateTypedValue($,q,me,J)}static validateIri($,H,me){($ instanceof l.InstanceDataLinkAtom||$ instanceof c.InstanceDataControlledAtom)&&$.id===null&&me.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,H.add(C.JsonSchema.atId),"an IRI",null))}static declaredValueType($){return $ instanceof b.TemporalFieldImpl?$.valueConstraints.temporalType.getValue():$ instanceof u.NumericFieldImpl?$.valueConstraints.numberType.getValue():null}static validateTypedValue($,H,me,J){z.isEmpty($)||($ instanceof s.InstanceDataTypedAtom?$.value!==null&&$.type!==H&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me.add(C.JsonSchema.atType),H,$.type??void 0)):$ instanceof o.InstanceDataStringAtom&&$.value!==null&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,me.add(C.JsonSchema.atType),H)))}static isEmpty($){return $ instanceof a.InstanceDataEmptyAtom||$ instanceof r.InstanceDataEmptyNode||($ instanceof o.InstanceDataStringAtom||$ instanceof s.InstanceDataTypedAtom)&&$.value===null}}t.InstanceValidator=z},2272(n,t,e){t.TemplateInstance=void 0;let i=e(2763),a=e(5697),r=e(7723);class o extends a.AbstractInstanceArtifact{dataContainer;descriptionWasAbsent=false;constructor(){super(),this.cedarArtifactType=i.CedarArtifactType.TEMPLATE_INSTANCE,this.dataContainer=new r.InstanceDataContainer}static buildEmptyWithNullValues(){return new o}}t.TemplateInstance=o},4925(n,t,e){t.TemplateInstanceBuilder=void 0;let i=e(1641),a=e(2272),r=e(7723),o=e(8534);class s extends i.AbstractArtifactBuilder{schema_isBasedOn=o.CedarArtifactId.NULL;dataContainer=new r.InstanceDataContainer;withSchemaIsBasedOn(c){return c instanceof o.CedarArtifactId?this.schema_isBasedOn=c:this.schema_isBasedOn=o.CedarArtifactId.forValue(c),this}withDataValue(c,d){return this.dataContainer.setValue(c,d),this}withDataIri(c,d){return this.dataContainer.setIri(c,d),this}withDataId(c){return this.dataContainer.id=c,this}withDataContainer(c){return this.dataContainer=c,this}build(){let c=a.TemplateInstance.buildEmptyWithNullValues();return c.at_id=this.at_id,c.pav_createdOn=this.pav_createdOn,c.pav_createdBy=this.pav_createdBy,c.pav_lastUpdatedOn=this.pav_lastUpdatedOn,c.oslc_modifiedBy=this.oslc_modifiedBy,c.pav_derivedFrom=this.pav_derivedFrom,c.schema_name=this.schema_name,c.schema_description=this.schema_description,c.schema_isBasedOn=this.schema_isBasedOn,c.dataContainer=this.dataContainer,c}}t.TemplateInstanceBuilder=s},3281(n,t,e){t.Template=void 0;let i=e(3910),a=e(8557),r=e(1027),o=e(5451),s=e(2763);class l extends o.AbstractContainerArtifact{header=null;footer=null;constructor(){super(),this.cedarArtifactType=s.CedarArtifactType.TEMPLATE}static buildEmptyWithNullValues(){return new l}static buildEmptyWithDefaultValues(){let d=new l;return d.schema_schemaVersion=a.SchemaVersion.CURRENT,d.bibo_status=i.BiboStatus.DRAFT,d.pav_version=r.PavVersion.DEFAULT,d}isMultiInstanceByDefinition(){return false}isSingleInstanceByDefinition(){return false}createDeploymentBuilder(d){throw new Error("Method not supported.")}}t.Template=l},766(n,t,e){t.TemplateBuilder=void 0;let i=e(3281),a=e(1641);class r extends a.AbstractArtifactBuilder{header=null;footer=null;instanceTypeSpecification=null;children=[];withHeader(s){return this.header=s,this}withFooter(s){return this.footer=s,this}withInstanceTypeSpecification(s){return this.instanceTypeSpecification=s,this}addChild(s,l){return this.children.push([s,l]),this}build(){let s=i.Template.buildEmptyWithNullValues();return super.buildInternal(s),s.header=this.header,s.footer=this.footer,s.instanceTypeSpecification=this.instanceTypeSpecification,this.children.forEach(([l,c])=>{s.addChild(l,c)}),s}}t.TemplateBuilder=r},9517(n,t){t.JsonNode=void 0,t.JsonNode=class{static getEmpty(){return{}}static getEmptyList(){return[]}static hasEntries(e){return Object.keys(e).length>0}}},4531(n,t){t.BioportalTermType=t.BioportalTermTypeYamlValues=t.P=void 0,t.P={ONTOLOGY_CLASS:"OntologyClass",VALUE:"Value"},t.BioportalTermTypeYamlValues={ONTOLOGY_CLASS:"class",VALUE:"value"};class e{jsonValue;yamlValue;constructor(a,r){this.jsonValue=a,this.yamlValue=r}getJsonValue(){return this.jsonValue}getYamlValue(){return this.yamlValue}static ONTOLOGY_CLASS=new e(t.P.ONTOLOGY_CLASS,t.BioportalTermTypeYamlValues.ONTOLOGY_CLASS);static VALUE=new e(t.P.VALUE,t.BioportalTermTypeYamlValues.VALUE);static NULL=new e(null,null);static values(){return[e.ONTOLOGY_CLASS,e.VALUE]}static forJsonValue(a){for(let r of e.values())if(r.getJsonValue()===a)return r;return this.NULL}static forYamlValue(a){for(let r of e.values())if(r.getYamlValue()===a)return r;return this.NULL}}t.BioportalTermType=e},8534(n,t){t.CedarArtifactId=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static NULL=new e(null);static forValue(a){return a===null||a===""?e.NULL:new e(a)}}t.CedarArtifactId=e},2763(n,t){t.CedarArtifactType=t.df=t.KW=void 0,t.KW={TEMPLATE:"https://schema.metadatacenter.org/core/Template",TEMPLATE_ELEMENT:"https://schema.metadatacenter.org/core/TemplateElement",TEMPLATE_FIELD:"https://schema.metadatacenter.org/core/TemplateField",STATIC_TEMPLATE_FIELD:"https://schema.metadatacenter.org/core/StaticTemplateField",TEMPLATE_INSTANCE:"TemplateInstance"},t.df={TEMPLATE:"template",TEMPLATE_ELEMENT:"templateElement",TEMPLATE_FIELD:"templateField",STATIC_TEMPLATE_FIELD:"staticTemplateField",TEMPLATE_INSTANCE:"instance"};class e{value;yamlValue;constructor(a,r){this.value=a,this.yamlValue=r}getValue(){return this.value}getYamlValue(){return this.yamlValue}static TEMPLATE=new e(t.KW.TEMPLATE,t.df.TEMPLATE);static TEMPLATE_ELEMENT=new e(t.KW.TEMPLATE_ELEMENT,t.df.TEMPLATE_ELEMENT);static TEMPLATE_FIELD=new e(t.KW.TEMPLATE_FIELD,t.df.TEMPLATE_FIELD);static STATIC_TEMPLATE_FIELD=new e(t.KW.STATIC_TEMPLATE_FIELD,t.df.STATIC_TEMPLATE_FIELD);static TEMPLATE_INSTANCE=new e(t.KW.TEMPLATE_INSTANCE,t.df.TEMPLATE_INSTANCE);static NULL=new e(null,null);static values(){return[e.TEMPLATE,e.TEMPLATE_ELEMENT,e.TEMPLATE_FIELD,e.STATIC_TEMPLATE_FIELD,e.TEMPLATE_INSTANCE]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}static forYamlArtifactType(a){return a.isTemplate()?e.TEMPLATE:a.isElement()?e.TEMPLATE_ELEMENT:a.isDynamicField()?e.TEMPLATE_FIELD:a.isStaticField()?e.STATIC_TEMPLATE_FIELD:a.isTemplateInstance()?e.TEMPLATE_INSTANCE:e.NULL}}t.CedarArtifactType=e},8421(n,t){t.CedarFieldCategory=t.I=void 0,t.I={STATIC:"STATIC-field",DYNAMIC:"DYNAMIC-field",NONE:"NONE"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static values(){return[e.STATIC,e.DYNAMIC,e.NONE]}static STATIC=new e(t.I.STATIC);static DYNAMIC=new e(t.I.DYNAMIC);static NONE=new e(t.I.NONE);static NULL=new e(null)}t.CedarFieldCategory=e},4869(n,t,e){t.CedarFieldType=t.K=void 0;let i=e(9034),a=e(9499);t.K={TEXTFIELD:"DYNAMIC-textfield",TEXTAREA:"DYNAMIC-textarea",CONTROLLED_TERM:"DYNAMIC-controlled-term",LINK:"DYNAMIC-link",EXT_ROR:"DYNAMIC-ext-ror",EXT_ORCID:"DYNAMIC-ext-orcid",EXT_PFAS:"DYNAMIC-ext-pfas",EXT_PUBMED:"DYNAMIC-ext-pubmed",EXT_RRID:"DYNAMIC-ext-rrid",EXT_NIH_GRANT_ID:"DYNAMIC-ext-nih-grant-id",EXT_DOI:"DYNAMIC-ext-doi",TEMPORAL:"DYNAMIC-temporal",EMAIL:"DYNAMIC-email",NUMERIC:"DYNAMIC-numeric",PHONE_NUMBER:"DYNAMIC-phone-number",RADIO:"DYNAMIC-radio",CHECKBOX:"DYNAMIC-checkbox",SINGLE_SELECT_LIST:"DYNAMIC-single-select-list",MULTIPLE_SELECT_LIST:"DYNAMIC-multiple-select-list",ATTRIBUTE_VALUE:"DYNAMIC-attribute-value",STATIC_PAGE_BREAK:"STATIC-page-break",STATIC_SECTION_BREAK:"STATIC-section-break",STATIC_IMAGE:"STATIC-image",STATIC_RICH_TEXT:"STATIC-rich_text",STATIC_YOUTUBE:"STATIC-youtube"};class r{value;_uiInputType;_yamlType;staticField;constructor(s,l,c,d){this.value=s,this._uiInputType=l,this._yamlType=c,this.staticField=d}getValue(){return this.value}getUiInputType(){return this._uiInputType}getYamlType(){return this._yamlType}get isStaticField(){return this.staticField}get recordsRequirement(){return!this.staticField&&this.value!==t.K.ATTRIBUTE_VALUE}static values(){return[r.TEXT,r.TEXTAREA,r.CONTROLLED_TERM,r.LINK,r.EXT_ROR,r.EXT_ORCID,r.EXT_PFAS,r.EXT_PUBMED,r.EXT_RRID,r.EXT_NIH_GRANT_ID,r.EXT_DOI,r.TEMPORAL,r.EMAIL,r.NUMERIC,r.PHONE_NUMBER,r.RADIO,r.CHECKBOX,r.SINGLE_SELECT_LIST,r.MULTIPLE_SELECT_LIST,r.ATTRIBUTE_VALUE,r.STATIC_PAGE_BREAK,r.STATIC_SECTION_BREAK,r.STATIC_IMAGE,r.STATIC_RICH_TEXT,r.STATIC_YOUTUBE]}static TEXT=new r(t.K.TEXTFIELD,i.UiInputType.TEXTFIELD,a.YamlArtifactType.TEXTFIELD,false);static TEXTAREA=new r(t.K.TEXTAREA,i.UiInputType.TEXTAREA,a.YamlArtifactType.TEXTAREA,false);static CONTROLLED_TERM=new r(t.K.CONTROLLED_TERM,i.UiInputType.TEXTFIELD,a.YamlArtifactType.CONTROLLED_TERM,false);static LINK=new r(t.K.LINK,i.UiInputType.LINK,a.YamlArtifactType.LINK,false);static EXT_ROR=new r(t.K.EXT_ROR,i.UiInputType.EXT_ROR,a.YamlArtifactType.EXT_ROR,false);static EXT_ORCID=new r(t.K.EXT_ORCID,i.UiInputType.EXT_ORCID,a.YamlArtifactType.EXT_ORCID,false);static EXT_PFAS=new r(t.K.EXT_PFAS,i.UiInputType.EXT_PFAS,a.YamlArtifactType.EXT_PFAS,false);static EXT_PUBMED=new r(t.K.EXT_PUBMED,i.UiInputType.EXT_PUBMED,a.YamlArtifactType.EXT_PUBMED,false);static EXT_RRID=new r(t.K.EXT_RRID,i.UiInputType.EXT_RRID,a.YamlArtifactType.EXT_RRID,false);static EXT_NIH_GRANT_ID=new r(t.K.EXT_NIH_GRANT_ID,i.UiInputType.EXT_NIH_GRANT_ID,a.YamlArtifactType.EXT_NIH_GRANT_ID,false);static EXT_DOI=new r(t.K.EXT_DOI,i.UiInputType.EXT_DOI,a.YamlArtifactType.EXT_DOI,false);static TEMPORAL=new r(t.K.TEMPORAL,i.UiInputType.TEMPORAL,a.YamlArtifactType.TEMPORAL,false);static EMAIL=new r(t.K.EMAIL,i.UiInputType.EMAIL,a.YamlArtifactType.EMAIL,false);static NUMERIC=new r(t.K.NUMERIC,i.UiInputType.NUMERIC,a.YamlArtifactType.NUMERIC,false);static PHONE_NUMBER=new r(t.K.PHONE_NUMBER,i.UiInputType.PHONE_NUMBER,a.YamlArtifactType.PHONE_NUMBER,false);static RADIO=new r(t.K.RADIO,i.UiInputType.RADIO,a.YamlArtifactType.RADIO,false);static CHECKBOX=new r(t.K.CHECKBOX,i.UiInputType.CHECKBOX,a.YamlArtifactType.CHECKBOX,false);static SINGLE_SELECT_LIST=new r(t.K.SINGLE_SELECT_LIST,i.UiInputType.LIST,a.YamlArtifactType.SINGLE_SELECT_LIST,false);static MULTIPLE_SELECT_LIST=new r(t.K.MULTIPLE_SELECT_LIST,i.UiInputType.LIST,a.YamlArtifactType.MULTI_SELECT_LIST,false);static ATTRIBUTE_VALUE=new r(t.K.ATTRIBUTE_VALUE,i.UiInputType.ATTRIBUTE_VALUE,a.YamlArtifactType.ATTRIBUTE_VALUE,false);static STATIC_PAGE_BREAK=new r(t.K.STATIC_PAGE_BREAK,i.UiInputType.PAGE_BREAK,a.YamlArtifactType.PAGE_BREAK,true);static STATIC_SECTION_BREAK=new r(t.K.STATIC_SECTION_BREAK,i.UiInputType.SECTION_BREAK,a.YamlArtifactType.SECTION_BREAK,true);static STATIC_IMAGE=new r(t.K.STATIC_IMAGE,i.UiInputType.IMAGE,a.YamlArtifactType.IMAGE,true);static STATIC_RICH_TEXT=new r(t.K.STATIC_RICH_TEXT,i.UiInputType.RICH_TEXT,a.YamlArtifactType.RICH_TEXT,true);static STATIC_YOUTUBE=new r(t.K.STATIC_YOUTUBE,i.UiInputType.YOUTUBE,a.YamlArtifactType.YOUTUBE,true);static NULL=new r(null,i.UiInputType.NULL,a.YamlArtifactType.NULL,true);static forUiInputType(s){for(let l of r.values())if(l.getUiInputType()===s)return l;return this.NULL}static forYamlArtifactType(s){for(let l of r.values())if(l.getYamlType()===s)return l;return this.NULL}}t.CedarFieldType=r},2234(n,t){t.CedarUser=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static NULL=new e(null);static forValue(a){return a===null?e.NULL:new e(a)}}t.CedarUser=e},3746(n,t){t.AdditionalProperties=t.P=void 0,t.P={FALSE:"false",ALLOW_ATTRIBUTE_VALUE:"allow-attribute-value"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static FALSE=new e(t.P.FALSE);static ALLOW_ATTRIBUTE_VALUE=new e(t.P.ALLOW_ATTRIBUTE_VALUE);static NULL=new e(null);static values(){return[e.FALSE,e.ALLOW_ATTRIBUTE_VALUE]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.AdditionalProperties=e},2475(n,t){t.ArtifactSchema=t.T=void 0,t.T={CURRENT:"http://json-schema.org/draft-04/schema#"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static CURRENT=new e(t.T.CURRENT);static NULL=new e(null);static forValue(a){return new e(a===null?t.T.CURRENT:a)}}t.ArtifactSchema=e},3910(n,t){t.BiboStatus=t.BiboStatusYamlValues=t.l=void 0,t.l={DRAFT:"bibo:draft",PUBLISHED:"bibo:published"},t.BiboStatusYamlValues={DRAFT:"draft",PUBLISHED:"published"};class e{jsonValue;yamlValue;constructor(a,r){this.jsonValue=a,this.yamlValue=r}getJsonValue(){return this.jsonValue}getYamlValue(){return this.yamlValue}static DRAFT=new e(t.l.DRAFT,t.BiboStatusYamlValues.DRAFT);static PUBLISHED=new e(t.l.PUBLISHED,t.BiboStatusYamlValues.PUBLISHED);static NULL=new e(null,null);static values(){return[e.DRAFT,e.PUBLISHED]}static forJsonValue(a){for(let r of e.values())if(r.getJsonValue()===a)return r;return this.NULL}static forYamlValue(a){for(let r of e.values())if(r.getYamlValue()===a)return r;return this.NULL}}t.BiboStatus=e},8802(n,t){t.Iri=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static empty(){return new e("")}isEmpty(){return this.value===""}}t.Iri=e},9857(n,t){t.IsoDate=void 0;class e{date;timezoneOffset;constructor(a,r){this.date=a,this.timezoneOffset=r}static NULL=new e(null,null);getValue(){if(this.date!=null){if(this.timezoneOffset==="Z")return this.date.toISOString().replace(/\.\d{3}Z$/,"Z");let a=this.timezoneOffset.match(/([+-])(\d{2}):(\d{2})/);if(a){let r=a[1]==="+"?1:-1,o=parseInt(a[2],10)*r,s=parseInt(a[3],10)*r,l=this.date.getTime(),c=new Date(l+60*(60*o+s)*1e3),d=c.getUTCFullYear(),m=c.getUTCMonth()+1,b=c.getUTCDate(),u=c.getUTCHours(),f=c.getUTCMinutes(),g=c.getUTCSeconds();return`${d}-${m.toString().padStart(2,"0")}-${b.toString().padStart(2,"0")}T${u.toString().padStart(2,"0")}:${f.toString().padStart(2,"0")}:${g.toString().padStart(2,"0")}${this.timezoneOffset}`}return null}return null}static forValue(a){if(!a)return e.NULL;a=a.replace(/([+-]\d{2})(\d{2})$/,"$1:$2");let r=a.match(/Z|([+-])([01]\d):?([0-5]\d)$/)?.[0]??"Z",o=new Date(r!=="Z"||a.endsWith("Z")?a:`${a}Z`);return new e(o,r)}static now(){let a=new Date,r=this.getCurrentGMTOffset();return new e(a,r)}static getCurrentGMTOffset(){let a=new Date().getTimezoneOffset(),r=Math.abs(a),o=r%60;return`${a>0?"-":"+"}${Math.floor(r/60).toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}}t.IsoDate=e},5793(n,t){t.JavascriptType=t.W=void 0,t.W={ARRAY:"array",OBJECT:"object",STRING:"string"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static ARRAY=new e(t.W.ARRAY);static OBJECT=new e(t.W.OBJECT);static STRING=new e(t.W.STRING);static NULL=new e(null);static values(){return[e.ARRAY,e.OBJECT,e.STRING]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.JavascriptType=e},7752(n,t){t.Language=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static NULL=new e(null);static forValue(a){return a===null||a===""?e.NULL:new e(a)}}t.Language=e},3447(n,t){t.NumberType=t.NumberTypeValues=void 0,t.NumberTypeValues={DECIMAL:"xsd:decimal",INT:"xsd:int",LONG:"xsd:long",BYTE:"xsd:byte",SHORT:"xsd:short",FLOAT:"xsd:float",DOUBLE:"xsd:double"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static DECIMAL=new e(t.NumberTypeValues.DECIMAL);static INT=new e(t.NumberTypeValues.INT);static LONG=new e(t.NumberTypeValues.LONG);static BYTE=new e(t.NumberTypeValues.BYTE);static SHORT=new e(t.NumberTypeValues.SHORT);static FLOAT=new e(t.NumberTypeValues.FLOAT);static DOUBLE=new e(t.NumberTypeValues.DOUBLE);static NULL=new e(null);static values(){return[e.DECIMAL,e.INT,e.LONG,e.BYTE,e.SHORT,e.FLOAT,e.DOUBLE]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.NumberType=e},1027(n,t,e){t.PavVersion=t.o=void 0;let i=e(4506);t.o={DEFAULT:"0.0.1"};class a extends i.SemVer{static DEFAULT=new a(t.o.DEFAULT);static NULL=new a(null);static values(){return[a.DEFAULT,a.NULL]}static forValue(o){for(let s of a.values())if(s.getValue()===o)return s;return new a(o)}}t.PavVersion=a},6389(n,t,e){t.PropertyIri=void 0;let i=e(936);t.PropertyIri=class{static get namespace(){return i.CedarModel.propertyIriPrefix}}},8557(n,t,e){t.SchemaVersion=t.y=void 0;let i=e(4506);t.y={CURRENT:"1.6.0"};class a extends i.SemVer{static CURRENT=new a(t.y.CURRENT);static NULL=new a(null);static values(){return[a.CURRENT]}static forValue(o){for(let s of a.values())if(s.getValue()===o)return s;return new a(o)}}t.SchemaVersion=a},4506(n,t){t.SemVer=void 0,t.SemVer=class{value;constructor(e){this.value=this.validateVersion(e)}getValue(){return this.value}validateVersion(e){if(e===null)return e;let i=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.exec(e);if(i===null||i.slice(1).some(a=>a.length>10||Number(a)>2147483647))throw new Error(`Invalid version "${e}": expected three numbers without leading zeros, separated by periods.`);if(e==="0.0.0")throw new Error('Invalid version "0.0.0": a version is not all zeros.');return e}}},7974(n,t){t.TemporalGranularity=t.TemporalGranularityValues=void 0,t.TemporalGranularityValues={YEAR:"year",MONTH:"month",DAY:"day",HOUR:"hour",MINUTE:"minute",SECOND:"second",DECIMAL_SECOND:"decimalSecond"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static YEAR=new e(t.TemporalGranularityValues.YEAR);static MONTH=new e(t.TemporalGranularityValues.MONTH);static DAY=new e(t.TemporalGranularityValues.DAY);static HOUR=new e(t.TemporalGranularityValues.HOUR);static MINUTE=new e(t.TemporalGranularityValues.MINUTE);static SECOND=new e(t.TemporalGranularityValues.SECOND);static DECIMAL_SECOND=new e(t.TemporalGranularityValues.DECIMAL_SECOND);static NULL=new e(null);static values(){return[e.YEAR,e.MONTH,e.DAY,e.HOUR,e.MINUTE,e.SECOND,e.DECIMAL_SECOND]}static valuesWithTimes(){return[e.HOUR,e.MINUTE,e.SECOND,e.DECIMAL_SECOND]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}static hasTime(a){return this.valuesWithTimes().includes(a)}}t.TemporalGranularity=e},8588(n,t){t.TemporalType=t.TemporalTypeValues=void 0,t.TemporalTypeValues={DATE:"xsd:date",TIME:"xsd:time",DATETIME:"xsd:dateTime"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static DATE=new e(t.TemporalTypeValues.DATE);static TIME=new e(t.TemporalTypeValues.TIME);static DATETIME=new e(t.TemporalTypeValues.DATETIME);static NULL=new e(null);static values(){return[e.DATE,e.TIME,e.DATETIME]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.TemporalType=e},3764(n,t){t.TimeFormat=t.TimeFormatValues=void 0,t.TimeFormatValues={H24:"24h",H12:"12h"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static H24=new e(t.TimeFormatValues.H24);static H12=new e(t.TimeFormatValues.H12);static NULL=new e(null);static values(){return[e.H24,e.H12]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.TimeFormat=e},9034(n,t){t.UiInputType=t.F=void 0,t.F={TEXTFIELD:"textfield",TEXTAREA:"textarea",LINK:"link",EXT_ROR:"ext-ror",EXT_ORCID:"ext-orcid",EXT_PFAS:"ext-pfas",EXT_PUBMED:"ext-pubmed",EXT_RRID:"ext-rrid",EXT_NIH_GRANT_ID:"ext-nih-grant-id",EXT_DOI:"ext-doi",TEMPORAL:"temporal",EMAIL:"email",NUMERIC:"numeric",PHONE_NUMBER:"phone-number",LIST:"list",CHECKBOX:"checkbox",RADIO:"radio",ATTRIBUTE_VALUE:"attribute-value",PAGE_BREAK:"page-break",SECTION_BREAK:"section-break",IMAGE:"image",RICH_TEXT:"richtext",YOUTUBE:"youtube"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static TEXTFIELD=new e(t.F.TEXTFIELD);static TEXTAREA=new e(t.F.TEXTAREA);static LINK=new e(t.F.LINK);static EXT_ROR=new e(t.F.EXT_ROR);static EXT_ORCID=new e(t.F.EXT_ORCID);static EXT_PFAS=new e(t.F.EXT_PFAS);static EXT_PUBMED=new e(t.F.EXT_PUBMED);static EXT_RRID=new e(t.F.EXT_RRID);static EXT_NIH_GRANT_ID=new e(t.F.EXT_NIH_GRANT_ID);static EXT_DOI=new e(t.F.EXT_DOI);static TEMPORAL=new e(t.F.TEMPORAL);static EMAIL=new e(t.F.EMAIL);static NUMERIC=new e(t.F.NUMERIC);static PHONE_NUMBER=new e(t.F.PHONE_NUMBER);static LIST=new e(t.F.LIST);static CHECKBOX=new e(t.F.CHECKBOX);static RADIO=new e(t.F.RADIO);static ATTRIBUTE_VALUE=new e(t.F.ATTRIBUTE_VALUE);static PAGE_BREAK=new e(t.F.PAGE_BREAK);static SECTION_BREAK=new e(t.F.SECTION_BREAK);static IMAGE=new e(t.F.IMAGE);static RICH_TEXT=new e(t.F.RICH_TEXT);static YOUTUBE=new e(t.F.YOUTUBE);static NULL=new e(null);static values(){return[e.TEXTFIELD,e.TEXTAREA,e.LINK,e.EXT_ROR,e.EXT_ORCID,e.EXT_PFAS,e.EXT_PUBMED,e.EXT_RRID,e.EXT_NIH_GRANT_ID,e.EXT_DOI,e.TEMPORAL,e.EMAIL,e.NUMERIC,e.PHONE_NUMBER,e.LIST,e.CHECKBOX,e.RADIO,e.ATTRIBUTE_VALUE,e.PAGE_BREAK,e.SECTION_BREAK,e.IMAGE,e.RICH_TEXT,e.YOUTUBE,e.NULL]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.UiInputType=e},9499(n,t,e){t.YamlArtifactType=t.YamlArtifactTypeValues=void 0;let i=e(8421);t.YamlArtifactTypeValues={TEMPLATE:"template",ELEMENT:"element",TEXTFIELD:"text-field",CONTROLLED_TERM:"controlled-term-field",TEXTAREA:"text-area-field",LINK:"link-field",EXT_ROR:"ext-ror-field",EXT_ORCID:"ext-orcid-field",EXT_PFAS:"ext-pfas-field",EXT_PUBMED:"ext-pubmed-field",EXT_RRID:"ext-rrid-field",EXT_NIH_GRANT_ID:"ext-nih-grant-id-field",EXT_DOI:"ext-doi-field",TEMPORAL:"temporal-field",EMAIL:"email-field",NUMERIC:"numeric-field",PHONE_NUMBER:"phone-number-field",SINGLE_SELECT_LIST:"single-select-list-field",MULTI_SELECT_LIST:"multi-select-list-field",CHECKBOX:"checkbox-field",RADIO:"radio-field",ATTRIBUTE_VALUE:"attribute-value-field",PAGE_BREAK:"static-page-break",SECTION_BREAK:"static-section-break",IMAGE:"static-image",RICH_TEXT:"static-rich-text",YOUTUBE:"static-youtube-video",TEMPLATE_INSTANCE:"instance"};class a{value;category;constructor(o,s){this.value=o,this.category=s}getValue(){return this.value}static TEMPLATE=new a(t.YamlArtifactTypeValues.TEMPLATE,i.CedarFieldCategory.NONE);static ELEMENT=new a(t.YamlArtifactTypeValues.ELEMENT,i.CedarFieldCategory.NONE);static TEXTFIELD=new a(t.YamlArtifactTypeValues.TEXTFIELD,i.CedarFieldCategory.DYNAMIC);static CONTROLLED_TERM=new a(t.YamlArtifactTypeValues.CONTROLLED_TERM,i.CedarFieldCategory.DYNAMIC);static TEXTAREA=new a(t.YamlArtifactTypeValues.TEXTAREA,i.CedarFieldCategory.DYNAMIC);static LINK=new a(t.YamlArtifactTypeValues.LINK,i.CedarFieldCategory.DYNAMIC);static EXT_ROR=new a(t.YamlArtifactTypeValues.EXT_ROR,i.CedarFieldCategory.DYNAMIC);static EXT_ORCID=new a(t.YamlArtifactTypeValues.EXT_ORCID,i.CedarFieldCategory.DYNAMIC);static EXT_PFAS=new a(t.YamlArtifactTypeValues.EXT_PFAS,i.CedarFieldCategory.DYNAMIC);static EXT_PUBMED=new a(t.YamlArtifactTypeValues.EXT_PUBMED,i.CedarFieldCategory.DYNAMIC);static EXT_RRID=new a(t.YamlArtifactTypeValues.EXT_RRID,i.CedarFieldCategory.DYNAMIC);static EXT_NIH_GRANT_ID=new a(t.YamlArtifactTypeValues.EXT_NIH_GRANT_ID,i.CedarFieldCategory.DYNAMIC);static EXT_DOI=new a(t.YamlArtifactTypeValues.EXT_DOI,i.CedarFieldCategory.DYNAMIC);static TEMPORAL=new a(t.YamlArtifactTypeValues.TEMPORAL,i.CedarFieldCategory.DYNAMIC);static EMAIL=new a(t.YamlArtifactTypeValues.EMAIL,i.CedarFieldCategory.DYNAMIC);static NUMERIC=new a(t.YamlArtifactTypeValues.NUMERIC,i.CedarFieldCategory.DYNAMIC);static PHONE_NUMBER=new a(t.YamlArtifactTypeValues.PHONE_NUMBER,i.CedarFieldCategory.DYNAMIC);static SINGLE_SELECT_LIST=new a(t.YamlArtifactTypeValues.SINGLE_SELECT_LIST,i.CedarFieldCategory.DYNAMIC);static MULTI_SELECT_LIST=new a(t.YamlArtifactTypeValues.MULTI_SELECT_LIST,i.CedarFieldCategory.DYNAMIC);static CHECKBOX=new a(t.YamlArtifactTypeValues.CHECKBOX,i.CedarFieldCategory.DYNAMIC);static RADIO=new a(t.YamlArtifactTypeValues.RADIO,i.CedarFieldCategory.DYNAMIC);static ATTRIBUTE_VALUE=new a(t.YamlArtifactTypeValues.ATTRIBUTE_VALUE,i.CedarFieldCategory.DYNAMIC);static PAGE_BREAK=new a(t.YamlArtifactTypeValues.PAGE_BREAK,i.CedarFieldCategory.STATIC);static SECTION_BREAK=new a(t.YamlArtifactTypeValues.SECTION_BREAK,i.CedarFieldCategory.STATIC);static IMAGE=new a(t.YamlArtifactTypeValues.IMAGE,i.CedarFieldCategory.STATIC);static RICH_TEXT=new a(t.YamlArtifactTypeValues.RICH_TEXT,i.CedarFieldCategory.STATIC);static YOUTUBE=new a(t.YamlArtifactTypeValues.YOUTUBE,i.CedarFieldCategory.STATIC);static TEMPLATE_INSTANCE=new a(t.YamlArtifactTypeValues.TEMPLATE_INSTANCE,i.CedarFieldCategory.NONE);static NULL=new a(null,i.CedarFieldCategory.NULL);static values(){return[a.TEMPLATE,a.ELEMENT,a.TEXTFIELD,a.CONTROLLED_TERM,a.TEXTAREA,a.LINK,a.EXT_ROR,a.EXT_ORCID,a.EXT_PFAS,a.EXT_PUBMED,a.EXT_RRID,a.EXT_NIH_GRANT_ID,a.EXT_DOI,a.TEMPORAL,a.EMAIL,a.NUMERIC,a.PHONE_NUMBER,a.SINGLE_SELECT_LIST,a.MULTI_SELECT_LIST,a.CHECKBOX,a.RADIO,a.ATTRIBUTE_VALUE,a.PAGE_BREAK,a.SECTION_BREAK,a.IMAGE,a.RICH_TEXT,a.YOUTUBE,a.TEMPLATE_INSTANCE,a.NULL]}static forValue(o){for(let s of a.values())if(s.getValue()===o)return s;return this.NULL}isTemplate(){return this.value===t.YamlArtifactTypeValues.TEMPLATE}isElement(){return this.value===t.YamlArtifactTypeValues.ELEMENT}isField(){return this.isDynamicField()||this.isStaticField()}isStaticField(){return this.category===i.CedarFieldCategory.STATIC}isDynamicField(){return this.category===i.CedarFieldCategory.DYNAMIC}isTemplateInstance(){return this.value===t.YamlArtifactTypeValues.TEMPLATE_INSTANCE}}t.YamlArtifactType=a},2888(n,t){t.ComparisonError=void 0,t.ComparisonError=class{errorLocation;errorType;errorPath;expectedValue;encounteredValue;stackTopLines;constructor(e,i,a,r,o){this.errorLocation=e,this.errorType=i,this.errorPath=a,this.expectedValue=r,this.encounteredValue=o}}},9760(n,t){t.ComparisonErrorType=t.e=void 0,t.e={MISSING_KEY_IN_REAL_OBJECT:"missingKeyInRealObject",UNEXPECTED_KEY_IN_REAL_OBJECT:"unexpectedKeyInRealObject",VALUE_MISMATCH:"valueMismatch",MISSING_INDEX_IN_REAL_OBJECT:"missingIndexInRealObject",UNEXPECTED_INDEX_IN_REAL_OBJECT:"unexpectedIndexInRealObject",MISSING_VALUE_IN_REAL_OBJECT:"missingValueInRealObject",UNEXPECTED_VALUE_IN_REAL_OBJECT:"unexpectedValueInRealObject"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static MISSING_KEY_IN_REAL_OBJECT=new e(t.e.MISSING_KEY_IN_REAL_OBJECT);static UNEXPECTED_KEY_IN_REAL_OBJECT=new e(t.e.UNEXPECTED_KEY_IN_REAL_OBJECT);static VALUE_MISMATCH=new e(t.e.VALUE_MISMATCH);static MISSING_INDEX_IN_REAL_OBJECT=new e(t.e.MISSING_INDEX_IN_REAL_OBJECT);static UNEXPECTED_INDEX_IN_REAL_OBJECT=new e(t.e.UNEXPECTED_INDEX_IN_REAL_OBJECT);static MISSING_VALUE_IN_REAL_OBJECT=new e(t.e.MISSING_VALUE_IN_REAL_OBJECT);static UNEXPECTED_VALUE_IN_REAL_OBJECT=new e(t.e.UNEXPECTED_VALUE_IN_REAL_OBJECT);static NULL=new e(null);static values(){return[e.MISSING_KEY_IN_REAL_OBJECT,e.UNEXPECTED_KEY_IN_REAL_OBJECT,e.VALUE_MISMATCH,e.MISSING_INDEX_IN_REAL_OBJECT,e.UNEXPECTED_INDEX_IN_REAL_OBJECT,e.MISSING_VALUE_IN_REAL_OBJECT,e.UNEXPECTED_VALUE_IN_REAL_OBJECT]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}toJSON(){return this.value}}t.ComparisonErrorType=e},4325(n,t){t.ComparisonResult=void 0,t.ComparisonResult=class{comparisonErrors=[];comparisonWarnings=[];addComparisonError(e){this.comparisonErrors.push(e)}getComparisonErrors(){return this.comparisonErrors}getComparisonErrorCount(){return this.comparisonErrors.length}addComparisonWarning(e){this.comparisonWarnings.push(e)}getComparisonWarnings(){return this.comparisonWarnings}getComparisonWarningCount(){return this.comparisonWarnings.length}areEqual(){return this.comparisonErrors.length===0&&this.comparisonWarnings.length===0}merge(e){this.comparisonErrors.push(...e.comparisonErrors),this.comparisonWarnings.push(...e.comparisonWarnings)}}},4036(n,t){t.JsonArtifactParsingResult=void 0,t.JsonArtifactParsingResult=class{blueprintComparisonErrors=[];blueprintComparisonWarnings=[];addBlueprintComparisonError(e){this.blueprintComparisonErrors.push(e)}getBlueprintComparisonErrors(){return this.blueprintComparisonErrors}getBlueprintComparisonErrorCount(){return this.blueprintComparisonErrors.length}addBlueprintComparisonWarning(e){this.blueprintComparisonWarnings.push(e)}getBlueprintComparisonWarnings(){return this.blueprintComparisonWarnings}getBlueprintComparisonWarningCount(){return this.blueprintComparisonWarnings.length}wasSuccessful(){return this.blueprintComparisonErrors.length===0}adheresToBlueprint(){return this.blueprintComparisonErrors.length===0&&this.blueprintComparisonWarnings.length===0}merge(e){this.blueprintComparisonErrors.push(...e.blueprintComparisonErrors),this.blueprintComparisonWarnings.push(...e.blueprintComparisonWarnings)}}},3056(n,t,e){t.JsonObjectComparator=void 0;let i=e(2888),a=e(3188),r=e(9760),o=e(5747),s=e(2733),l=e(936);class c{static compareBothWays(m,b,u,f,g,x=[]){(function w(C,I,O){let E=C.getLastComponent()==s.JsonSchema.required;if(Array.isArray(I)&&Array.isArray(O))if(E){let R=new Set(I),D=new Set(O);I.forEach((F,z)=>{let ie=C.add(z);D.has(F)||m.addBlueprintComparisonError(new i.ComparisonError("oca01",r.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,ie,F))}),O.forEach((F,z)=>{let ie=C.add(z);R.has(F)||m.addBlueprintComparisonError(new i.ComparisonError("oca02",r.ComparisonErrorType.UNEXPECTED_VALUE_IN_REAL_OBJECT,ie,void 0,F))})}else{let R=Math.max(I.length,O.length);for(let D=0;D<R;D++){let F=C.add(D);D in I?D in O?typeof I[D]=="object"&&I[D]!==null&&typeof O[D]=="object"&&O[D]!==null?w(F,I[D],O[D]):I[D]!==O[D]&&m.addBlueprintComparisonError(new i.ComparisonError("ocl03",r.ComparisonErrorType.VALUE_MISMATCH,F,I[D],O[D])):m.addBlueprintComparisonError(new i.ComparisonError("ocl02",r.ComparisonErrorType.MISSING_INDEX_IN_REAL_OBJECT,F,I[D])):m.addBlueprintComparisonError(new i.ComparisonError("ocl01",r.ComparisonErrorType.UNEXPECTED_INDEX_IN_REAL_OBJECT,F,void 0,O[D]))}}else new Set([...Object.keys(I),...Object.keys(O)]).forEach(R=>{let D=C.add(R);if(R in I)if(R in O){if(typeof I[R]=="object"&&I[R]!==null&&typeof O[R]=="object"&&O[R]!==null)w(D,I[R],O[R]);else if(I[R]!==O[R]){let F=new i.ComparisonError("oco03",r.ComparisonErrorType.VALUE_MISMATCH,D,I[R],O[R]);g.useWarningForKnownIssues()&&c.isKnownProductionVariation(D)?m.addBlueprintComparisonWarning(F):m.addBlueprintComparisonError(F)}}else g.useWarningForKnownIssues()&&(D.endsIn(l.CedarModel.literals,a.JsonPath.ANY,l.CedarModel.selectedByDefault)||D.endsIn(l.CedarModel.ui,l.CedarModel.pages)||c.isKnownProductionVariation(D))?m.addBlueprintComparisonWarning(new i.ComparisonError("wco02",r.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,D)):m.addBlueprintComparisonError(new i.ComparisonError("oco02",r.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,D));else g.useWarningForKnownIssues()&&(D.endsIn(s.JsonSchema.properties,s.JsonSchema.atLanguage)||c.isKnownProductionVariation(D))?m.addBlueprintComparisonWarning(new i.ComparisonError("wco01",r.ComparisonErrorType.UNEXPECTED_KEY_IN_REAL_OBJECT,D)):x.includes(R)||m.addBlueprintComparisonError(new i.ComparisonError("oco01",r.ComparisonErrorType.UNEXPECTED_KEY_IN_REAL_OBJECT,D))})})(f,b,u)}static isKnownProductionVariation(m){return m.endsIn(s.JsonSchema.atContext,o.TemplateProperty.additionalProperties)||m.endsIn(s.JsonSchema.atContext,s.JsonSchema.properties,a.JsonPath.ANY,l.CedarModel.enum,a.JsonPath.ANY)||m.endsIn(s.JsonSchema.atContext,s.JsonSchema.required,a.JsonPath.ANY)||m.endsIn(s.JsonSchema.atContext,a.JsonPath.ANY)||m.endsIn(l.CedarModel.ui,l.CedarModel.propertyDescriptions,a.JsonPath.ANY)||m.endsIn(l.CedarModel.ui,l.CedarModel.propertyDescriptions)||m.endsIn(l.CedarModel.ui,l.CedarModel.propertyLabels)||m.endsIn(s.JsonSchema.properties,a.JsonPath.ANY,l.CedarModel.enum,a.JsonPath.ANY)||m.endsIn(s.JsonSchema.required)}static reportToLeft(m,b,u){b.useWarningForKnownIssues()&&c.isKnownProductionVariation(u.errorPath)?m.addBlueprintComparisonWarning(u):m.addBlueprintComparisonError(u)}static compareToLeft(m,b,u,f,g){(function x(w,C,I){let O=w.getLastComponent()==s.JsonSchema.required;if(Array.isArray(C)&&Array.isArray(I))if(O){let E=new Set(I);C.forEach((R,D)=>{let F=w.add(D);E.has(R)||c.reportToLeft(m,g,new i.ComparisonError("ola01",r.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,F,R))})}else C.forEach((E,R)=>{let D=w.add(R);R in I?typeof E=="object"&&E!==null&&typeof I[R]=="object"&&I[R]!==null?x(D,E,I[R]):E!==I[R]&&c.reportToLeft(m,g,new i.ComparisonError("oll02",r.ComparisonErrorType.VALUE_MISMATCH,D,E,I[R])):c.reportToLeft(m,g,new i.ComparisonError("oll01",r.ComparisonErrorType.MISSING_INDEX_IN_REAL_OBJECT,D,C[R]))});else Object.keys(C).forEach(E=>{let R=w.add(E);E in I?typeof C[E]=="object"&&C[E]!==null&&typeof I[E]=="object"&&I[E]!==null?x(R,C[E],I[E]):C[E]!==I[E]&&c.reportToLeft(m,g,new i.ComparisonError("olo02",r.ComparisonErrorType.VALUE_MISMATCH,R,C[E],I[E])):c.reportToLeft(m,g,new i.ComparisonError("olo01",r.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,R))})})(f,b,u)}static comparePrimitive(m,b,u,f){return b!==u&&m.addBlueprintComparisonError(new i.ComparisonError("opp1",r.ComparisonErrorType.VALUE_MISMATCH,f,b,u)),m}}t.JsonObjectComparator=c},1591(n,t){t.YamlArtifactParsingResult=void 0,t.YamlArtifactParsingResult=class{blueprintComparisonErrors=[];blueprintComparisonWarnings=[];addBlueprintComparisonError(e){this.blueprintComparisonErrors.push(e)}getBlueprintComparisonErrors(){return this.blueprintComparisonErrors}getBlueprintComparisonErrorCount(){return this.blueprintComparisonErrors.length}addBlueprintComparisonWarning(e){this.blueprintComparisonWarnings.push(e)}getBlueprintComparisonWarnings(){return this.blueprintComparisonWarnings}getBlueprintComparisonWarningCount(){return this.blueprintComparisonWarnings.length}wasSuccessful(){return this.blueprintComparisonErrors.length===0}adheresToBlueprint(){return this.blueprintComparisonErrors.length===0&&this.blueprintComparisonWarnings.length===0}merge(e){this.blueprintComparisonErrors.push(...e.blueprintComparisonErrors),this.blueprintComparisonWarnings.push(...e.blueprintComparisonWarnings)}}},6109(n,t){t.YamlComparisonErrorType=t.H=void 0,t.H={MISSING_KEY_IN_RIGHT_OBJECT:"missingKeyInRightObject",UNEXPECTED_KEY_IN_RIGHT_OBJECT:"unexpectedKeyInRightObject",VALUE_MISMATCH:"valueMismatch",MISSING_INDEX_IN_RIGHT_OBJECT:"missingIndexInRightObject",UNEXPECTED_INDEX_IN_RIGHT_OBJECT:"unexpectedIndexInRightObject",MISSING_VALUE_IN_RIGHT_OBJECT:"missingValueInRightObject",UNEXPECTED_VALUE_IN_RIGHT_OBJECT:"unexpectedValueInRightObject"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static MISSING_KEY_IN_RIGHT_OBJECT=new e(t.H.MISSING_KEY_IN_RIGHT_OBJECT);static UNEXPECTED_KEY_IN_RIGHT_OBJECT=new e(t.H.UNEXPECTED_KEY_IN_RIGHT_OBJECT);static VALUE_MISMATCH=new e(t.H.VALUE_MISMATCH);static MISSING_INDEX_IN_RIGHT_OBJECT=new e(t.H.MISSING_INDEX_IN_RIGHT_OBJECT);static UNEXPECTED_INDEX_IN_RIGHT_OBJECT=new e(t.H.UNEXPECTED_INDEX_IN_RIGHT_OBJECT);static MISSING_VALUE_IN_RIGHT_OBJECT=new e(t.H.MISSING_VALUE_IN_RIGHT_OBJECT);static UNEXPECTED_VALUE_IN_RIGHT_OBJECT=new e(t.H.UNEXPECTED_VALUE_IN_RIGHT_OBJECT);static NULL=new e(null);static values(){return[e.MISSING_KEY_IN_RIGHT_OBJECT,e.UNEXPECTED_KEY_IN_RIGHT_OBJECT,e.VALUE_MISMATCH,e.MISSING_INDEX_IN_RIGHT_OBJECT,e.UNEXPECTED_INDEX_IN_RIGHT_OBJECT,e.MISSING_VALUE_IN_RIGHT_OBJECT,e.UNEXPECTED_VALUE_IN_RIGHT_OBJECT]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}toJSON(){return this.value}}t.YamlComparisonErrorType=e},1885(n,t,e){t.YamlObjectComparator=void 0;let i=e(2888),a=e(3188),r=e(6109),o=e(4325);t.YamlObjectComparator=class{static compare(s,l){let c=new o.ComparisonResult;return this.compareBothWays(c,s,l,new a.JsonPath),c}static compareBothWays(s,l,c,d){(function m(b,u,f){if(Array.isArray(u)&&Array.isArray(f)){let g=Math.max(u.length,f.length);for(let x=0;x<g;x++){let w=b.add(x);x in u?x in f?typeof u[x]=="object"&&u[x]!==null&&typeof f[x]=="object"&&f[x]!==null?m(w,u[x],f[x]):u[x]!==f[x]&&s.addComparisonError(new i.ComparisonError("ocl03",r.YamlComparisonErrorType.VALUE_MISMATCH,w,u[x],f[x])):s.addComparisonError(new i.ComparisonError("ocl02",r.YamlComparisonErrorType.MISSING_INDEX_IN_RIGHT_OBJECT,w,u[x])):s.addComparisonError(new i.ComparisonError("ocl01",r.YamlComparisonErrorType.UNEXPECTED_INDEX_IN_RIGHT_OBJECT,w,void 0,f[x]))}}else new Set([...Object.keys(u),...Object.keys(f)]).forEach(g=>{let x=b.add(g);g in u?g in f?typeof u[g]=="object"&&u[g]!==null&&typeof f[g]=="object"&&f[g]!==null?m(x,u[g],f[g]):u[g]!==f[g]&&s.addComparisonError(new i.ComparisonError("oco03",r.YamlComparisonErrorType.VALUE_MISMATCH,x,u[g],f[g])):s.addComparisonError(new i.ComparisonError("oco02",r.YamlComparisonErrorType.MISSING_KEY_IN_RIGHT_OBJECT,x)):s.addComparisonError(new i.ComparisonError("oco01",r.YamlComparisonErrorType.UNEXPECTED_KEY_IN_RIGHT_OBJECT,x))})})(d,l,c)}}},3188(n,t){t.JsonPath=void 0;class e{path;static ANY="*";constructor(...a){this.path=a}equal(a){return this.path.length===a.path.length&&this.path.every((r,o)=>r===a.path[o])}add(...a){return new e(...this.path,...a)}join(a){return new e(...this.path,...a.path)}toString(){let a="";return this.path.forEach(r=>{a+=typeof r=="number"?`/[${r}]`:`/${r}`}),a+"/"}toJSON(){return this.toString()}getLastComponent(){return this.path.length===0?null:this.path[this.path.length-1]}endsIn(...a){for(let r=1;r<=a.length;r++){if(r>this.path.length)return false;let o=a[a.length-r];if(this.path[this.path.length-r]!==o&&o!=e.ANY)return false}return true}getLastNComponents(a){if(a<=0||this.path.length===0)return new e;let r=Math.max(this.path.length-a,0),o=this.path.slice(r);return new e(...o)}}t.JsonPath=e},6968(n,t,e){t.JsonContainerArtifactContent=void 0;let i=e(8748);class a{static CONTEXT_VERBATIM={xsd:"http://www.w3.org/2001/XMLSchema#",pav:"http://purl.org/pav/",bibo:"http://purl.org/ontology/bibo/",oslc:"http://open-services.net/ns/core#",schema:"http://schema.org/","schema:name":{"@type":"xsd:string"},"schema:description":{"@type":"xsd:string"},"pav:createdOn":{"@type":"xsd:dateTime"},"pav:createdBy":{"@type":"@id"},"pav:lastUpdatedOn":{"@type":"xsd:dateTime"},"oslc:modifiedBy":{"@type":"@id"}};static CONTEXT_VERBATIM_NO_BIBO;static{this.CONTEXT_VERBATIM_NO_BIBO=i.ReaderUtil.deepClone(this.CONTEXT_VERBATIM),i.ReaderUtil.deleteNodeKey(this.CONTEXT_VERBATIM_NO_BIBO,"bibo"),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM_NO_BIBO),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM)}}t.JsonContainerArtifactContent=a},6551(n,t,e){t.JsonTemplateContent=void 0;let i=e(8748);class a{static ANNOTATIONS={type:"object",patternProperties:{"^.+$":{oneOf:[{type:"object",properties:{"@id":{type:"string",format:"uri"}},additionalProperties:false},{type:"object",properties:{"@value":{type:["string","number","boolean","null"]}},additionalProperties:false}]}},additionalProperties:false};static REQUIRED_PARTIAL=["@context","@id","schema:isBasedOn","schema:name","schema:description","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"];static PROPERTIES_PARTIAL={"@context":{type:"object",properties:{_annotations:{type:"string",enum:["@nest"]},rdfs:{type:"string",format:"uri",enum:["http://www.w3.org/2000/01/rdf-schema#"]},xsd:{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},schema:{type:"string",format:"uri",enum:["http://schema.org/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]},skos:{type:"string",format:"uri",enum:["http://www.w3.org/2004/02/skos/core#"]},"rdfs:label":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}},"schema:isBasedOn":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"schema:name":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}},"schema:description":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}},"pav:derivedFrom":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"pav:createdOn":{type:"object",properties:{"@type":{type:"string",enum:["xsd:dateTime"]}}},"pav:createdBy":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"pav:lastUpdatedOn":{type:"object",properties:{"@type":{type:"string",enum:["xsd:dateTime"]}}},"oslc:modifiedBy":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"skos:notation":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}}},required:["xsd","pav","schema","oslc","schema:isBasedOn","schema:name","schema:description","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"],additionalProperties:false},"@id":{type:["string","null"],format:"uri"},"@type":{oneOf:[{type:"string",format:"uri"},{type:"array",minItems:1,items:{type:"string",format:"uri"},uniqueItems:true}]},"schema:isBasedOn":{type:"string",format:"uri"},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"pav:derivedFrom":{type:"string",format:"uri"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},_annotations:a.ANNOTATIONS};static REQUIRED_PARTIAL_KEY_MAP;static PROPERTIES_PARTIAL_KEY_LIST=[];static PROPERTIES_PARTIAL_KEY_MAP=new Map;static CONTEXT_VERBATIM_NO_BIBO;static{Object.keys(a.PROPERTIES_PARTIAL).forEach(o=>{this.PROPERTIES_PARTIAL_KEY_LIST.push(o),this.PROPERTIES_PARTIAL_KEY_MAP.set(o,true)}),this.REQUIRED_PARTIAL_KEY_MAP=this.REQUIRED_PARTIAL.reduce((o,s)=>(o.set(s,true),o),new Map),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL_KEY_MAP),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL_KEY_LIST),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL_KEY_MAP)}}t.JsonTemplateContent=a},1501(n,t,e){t.JsonTemplateElementContent=void 0;let i=e(8748);class a{static REQUIRED_PARTIAL=["@context","@id"];static PROPERTIES_PARTIAL={"@context":{type:"object",properties:{},required:[],additionalProperties:false},"@id":{type:["string","null"],format:"uri"},"@type":{oneOf:[{type:"string",format:"uri"},{type:"array",minItems:1,items:{type:"string",format:"uri"},uniqueItems:true}]}};static LEGACY_ID_TYPING={type:"string",format:"uri"};static acceptEitherIdTyping(o,s){let l=i.ReaderUtil.getNode(s,"@id");l!==null&&JSON.stringify(l)===JSON.stringify(a.LEGACY_ID_TYPING)&&(o["@id"]=i.ReaderUtil.deepClone(a.LEGACY_ID_TYPING))}static REQUIRED_PARTIAL_KEY_MAP;static PROPERTIES_PARTIAL_KEY_MAP=new Map;static CONTEXT_VERBATIM_NO_BIBO;static{Object.keys(a.PROPERTIES_PARTIAL).forEach(o=>{this.PROPERTIES_PARTIAL_KEY_MAP.set(o,true)}),this.REQUIRED_PARTIAL_KEY_MAP=this.REQUIRED_PARTIAL.reduce((o,s)=>(o.set(s,true),o),new Map),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL_KEY_MAP),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL_KEY_MAP)}}t.JsonTemplateElementContent=a},9932(n,t,e){t.JsonTemplateFieldContentDynamic=void 0;let i=e(8748),a=e(2733),r=e(936);class o{static CONTEXT_VERBATIM={xsd:"http://www.w3.org/2001/XMLSchema#",pav:"http://purl.org/pav/",bibo:"http://purl.org/ontology/bibo/",oslc:"http://open-services.net/ns/core#",schema:"http://schema.org/",skos:"http://www.w3.org/2004/02/skos/core#","schema:name":{"@type":"xsd:string"},"schema:description":{"@type":"xsd:string"},"skos:prefLabel":{"@type":"xsd:string"},"skos:altLabel":{"@type":"xsd:string"},"pav:createdOn":{"@type":"xsd:dateTime"},"pav:createdBy":{"@type":"@id"},"pav:lastUpdatedOn":{"@type":"xsd:dateTime"},"oslc:modifiedBy":{"@type":"@id"}};static PROPERTIES_VERBATIM_LITERAL={"@type":{type:"string",format:"uri"},"rdfs:label":{type:["string","null"]},"@value":{type:["string","null"]},"@language":{type:["string","null"],minLength:1}};static PROPERTIES_VERBATIM_IRI={"@type":{type:"string",format:"uri"},"@id":{type:"string",format:"uri"},"rdfs:label":{type:["string","null"]},"skos:notation":{type:["string","null"]}};static ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_OUTSIDE={type:"object",properties:{"@value":{type:["string","null"]},"@type":{type:"string",format:"uri"}},required:["@value"],additionalProperties:false};static ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE={type:"string",format:"uri"};static PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE;static PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION;static CONTEXT_VERBATIM_NO_BIBO;static{i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_LITERAL),this.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE=i.ReaderUtil.deepClone(this.PROPERTIES_VERBATIM_LITERAL),i.ReaderUtil.deleteNodeKey(this.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE,a.JsonSchema.atLanguage),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE),this.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION=i.ReaderUtil.deepClone(this.PROPERTIES_VERBATIM_IRI),i.ReaderUtil.deleteNodeKey(this.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION,r.CedarModel.skosNotation),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION),this.CONTEXT_VERBATIM_NO_BIBO=i.ReaderUtil.deepClone(this.CONTEXT_VERBATIM),i.ReaderUtil.deleteNodeKey(this.CONTEXT_VERBATIM_NO_BIBO,"bibo"),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM_NO_BIBO),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_IRI),i.ReaderUtil.deepFreeze(this.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_OUTSIDE),i.ReaderUtil.deepFreeze(this.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE)}}t.JsonTemplateFieldContentDynamic=o},9251(n,t,e){t.JsonTemplateFieldContentStatic=void 0;let i=e(8748);class a{static CONTEXT_VERBATIM={schema:"http://schema.org/",pav:"http://purl.org/pav/",bibo:"http://purl.org/ontology/bibo/",oslc:"http://open-services.net/ns/core#"};static CONTEXT_VERBATIM_NO_BIBO;static{i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM),this.CONTEXT_VERBATIM_NO_BIBO=i.ReaderUtil.deepClone(this.CONTEXT_VERBATIM),i.ReaderUtil.deleteNodeKey(this.CONTEXT_VERBATIM_NO_BIBO,"bibo"),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM_NO_BIBO)}}t.JsonTemplateFieldContentStatic=a},350(n,t,e){t.JsonTemplateInstanceContent=void 0;let i=e(8748);class a{static CONTEXT_VERBATIM={rdfs:"http://www.w3.org/2000/01/rdf-schema#",xsd:"http://www.w3.org/2001/XMLSchema#",pav:"http://purl.org/pav/",schema:"http://schema.org/",oslc:"http://open-services.net/ns/core#",skos:"http://www.w3.org/2004/02/skos/core#","rdfs:label":{"@type":"xsd:string"},"schema:isBasedOn":{"@type":"@id"},"schema:name":{"@type":"xsd:string"},"schema:description":{"@type":"xsd:string"},"pav:derivedFrom":{"@type":"@id"},"pav:createdOn":{"@type":"xsd:dateTime"},"pav:createdBy":{"@type":"@id"},"pav:lastUpdatedOn":{"@type":"xsd:dateTime"},"oslc:modifiedBy":{"@type":"@id"},"skos:notation":{"@type":"xsd:string"}};static{i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM)}}t.JsonTemplateInstanceContent=a},3198(n,t,e){e.r(t),e.d(t,{Alias:()=>ht,CST:()=>i,Composer:()=>ry,Document:()=>Ls,Lexer:()=>vS,LineCounter:()=>_S,Pair:()=>Ki,Parser:()=>hy,Scalar:()=>ct,Schema:()=>sm,YAMLError:()=>Gu,YAMLMap:()=>Ca,YAMLParseError:()=>os,YAMLSeq:()=>Rr,YAMLWarning:()=>Hc,default:()=>a,isAlias:()=>b,isCollection:()=>C,isDocument:()=>u,isMap:()=>f,isNode:()=>I,isPair:()=>g,isScalar:()=>x,isSeq:()=>w,parse:()=>zk,parseAllDocuments:()=>jk,parseDocument:()=>xS,stringify:()=>Uk,visit:()=>F,visitAsync:()=>ie});var i={};e.r(i),e.d(i,{BOM:()=>ly,DOCUMENT:()=>cy,FLOW_END:()=>dy,SCALAR:()=>hf,createScalarToken:()=>uj,isCollection:()=>gj,isScalar:()=>bj,prettyToken:()=>yj,resolveAsScalar:()=>mj,setScalarValue:()=>pj,stringify:()=>hj,tokenType:()=>Ok,visit:()=>lm});var a={};e.r(a),e.d(a,{Alias:()=>ht,CST:()=>i,Composer:()=>ry,Document:()=>Ls,Lexer:()=>vS,LineCounter:()=>_S,Pair:()=>Ki,Parser:()=>hy,Scalar:()=>ct,Schema:()=>sm,YAMLError:()=>Gu,YAMLMap:()=>Ca,YAMLParseError:()=>os,YAMLSeq:()=>Rr,YAMLWarning:()=>Hc,isAlias:()=>b,isCollection:()=>C,isDocument:()=>u,isMap:()=>f,isNode:()=>I,isPair:()=>g,isScalar:()=>x,isSeq:()=>w,parse:()=>zk,parseAllDocuments:()=>jk,parseDocument:()=>xS,stringify:()=>Uk,visit:()=>F,visitAsync:()=>ie});let r=Symbol.for("yaml.alias"),o=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),l=Symbol.for("yaml.pair"),c=Symbol.for("yaml.scalar"),d=Symbol.for("yaml.seq"),m=Symbol.for("yaml.node.type"),b=y=>!!y&&typeof y=="object"&&y[m]===r,u=y=>!!y&&typeof y=="object"&&y[m]===o,f=y=>!!y&&typeof y=="object"&&y[m]===s,g=y=>!!y&&typeof y=="object"&&y[m]===l,x=y=>!!y&&typeof y=="object"&&y[m]===c,w=y=>!!y&&typeof y=="object"&&y[m]===d;function C(y){if(y&&typeof y=="object")switch(y[m]){case s:case d:return true}return false}function I(y){if(y&&typeof y=="object")switch(y[m]){case r:case s:case c:case d:return true}return false}let O=y=>(x(y)||C(y))&&!!y.anchor,E=Symbol("break visit"),R=Symbol("skip children"),D=Symbol("remove node");function F(y,p){let h=H(p);u(y)?z(null,y.contents,h,Object.freeze([y]))===D&&(y.contents=null):z(null,y,h,Object.freeze([]))}function z(y,p,h,v){let S=me(y,p,h,v);if(I(S)||g(S))return J(y,v,S),z(y,S,h,v);if(typeof S!="symbol"){if(C(p)){v=Object.freeze(v.concat(p));for(let M=0;M<p.items.length;++M){let P=z(M,p.items[M],h,v);if(typeof P=="number")M=P-1;else{if(P===E)return E;P===D&&(p.items.splice(M,1),M-=1)}}}else if(g(p)){v=Object.freeze(v.concat(p));let M=z("key",p.key,h,v);if(M===E)return E;M===D&&(p.key=null);let P=z("value",p.value,h,v);if(P===E)return E;P===D&&(p.value=null)}}return S}function ie(y,p){return nt(this,null,function*(){let h=H(p);u(y)?(yield $(null,y.contents,h,Object.freeze([y])))===D&&(y.contents=null):yield $(null,y,h,Object.freeze([]))})}function $(y,p,h,v){return nt(this,null,function*(){let S=yield me(y,p,h,v);if(I(S)||g(S))return J(y,v,S),$(y,S,h,v);if(typeof S!="symbol"){if(C(p)){v=Object.freeze(v.concat(p));for(let M=0;M<p.items.length;++M){let P=yield $(M,p.items[M],h,v);if(typeof P=="number")M=P-1;else{if(P===E)return E;P===D&&(p.items.splice(M,1),M-=1)}}}else if(g(p)){v=Object.freeze(v.concat(p));let M=yield $("key",p.key,h,v);if(M===E)return E;M===D&&(p.key=null);let P=yield $("value",p.value,h,v);if(P===E)return E;P===D&&(p.value=null)}}return S})}function H(y){return typeof y=="object"&&(y.Collection||y.Node||y.Value)?Object.assign({Alias:y.Node,Map:y.Node,Scalar:y.Node,Seq:y.Node},y.Value&&{Map:y.Value,Scalar:y.Value,Seq:y.Value},y.Collection&&{Map:y.Collection,Seq:y.Collection},y):y}function me(y,p,h,v){return typeof h=="function"?h(y,p,v):f(p)?h.Map?.(y,p,v):w(p)?h.Seq?.(y,p,v):g(p)?h.Pair?.(y,p,v):x(p)?h.Scalar?.(y,p,v):b(p)?h.Alias?.(y,p,v):void 0}function J(y,p,h){let v=p[p.length-1];if(C(v))v.items[y]=h;else if(g(v))y==="key"?v.key=h:v.value=h;else{if(!u(v)){let S=b(v)?"alias":"scalar";throw new Error(`Cannot replace node with ${S} parent`)}v.contents=h}}F.BREAK=E,F.SKIP=R,F.REMOVE=D,ie.BREAK=E,ie.SKIP=R,ie.REMOVE=D;let q={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ae=y=>y.replace(/[!,[\]{}]/g,p=>q[p]);class de{constructor(p,h){this.docStart=null,this.docEnd=false,this.yaml=Object.assign({},de.defaultYaml,p),this.tags=Object.assign({},de.defaultTags,h)}clone(){let p=new de(this.yaml,this.tags);return p.docStart=this.docStart,p}atDocument(){let p=new de(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false,this.yaml={explicit:de.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},de.defaultTags)}return p}add(p,h){this.atNextDocument&&(this.yaml={explicit:de.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},de.defaultTags),this.atNextDocument=false);let v=p.trim().split(/[ \t]+/),S=v.shift();switch(S){case"%TAG":{if(v.length!==2&&(h(0,"%TAG directive should contain exactly two parts"),v.length<2))return false;let[M,P]=v;return this.tags[M]=P,true}case"%YAML":{if(this.yaml.explicit=true,v.length!==1)return h(0,"%YAML directive should contain exactly one part"),false;let[M]=v;return M==="1.1"||M==="1.2"?(this.yaml.version=M,true):(h(6,`Unsupported YAML version ${M}`,/^\d+\.\d+$/.test(M)),false)}default:return h(0,`Unknown directive ${S}`,true),false}}tagName(p,h){if(p==="!")return"!";if(p[0]!=="!")return h(`Not a valid tag: ${p}`),null;if(p[1]==="<"){let P=p.slice(2,-1);return P==="!"||P==="!!"?(h(`Verbatim tags aren't resolved, so ${p} is invalid.`),null):(p[p.length-1]!==">"&&h("Verbatim tags must end with a >"),P)}let[,v,S]=p.match(/^(.*!)([^!]*)$/s);S||h(`The ${p} tag has no suffix`);let M=this.tags[v];if(M)try{return M+decodeURIComponent(S)}catch(P){return h(String(P)),null}return v==="!"?p:(h(`Could not resolve tag: ${p}`),null)}tagString(p){for(let[h,v]of Object.entries(this.tags))if(p.startsWith(v))return h+ae(p.substring(v.length));return p[0]==="!"?p:`!<${p}>`}toString(p){let h=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],v=Object.entries(this.tags),S;if(p&&v.length>0&&I(p.contents)){let M={};F(p.contents,(P,K)=>{I(K)&&K.tag&&(M[K.tag]=true)}),S=Object.keys(M)}else S=[];for(let[M,P]of v)M==="!!"&&P==="tag:yaml.org,2002:"||p&&!S.some(K=>K.startsWith(P))||h.push(`%TAG ${M} ${P}`);return h.join(`
|
|
12
|
+
`}}},211(n,t,e){t.YamlAbstractArtifactWriter=void 0;let i=e(2112),a=e(8333),r=e(9517),o=e(2099),s=e(3910),l=e(1027),c=e(9129),d=e(8534),m=e(2234),b=e(9857),u=e(7661),f=e(9499),g=e(3281),x=e(6731),w=e(6591),C=e(7752),I=e(8557),O=e(2272);class E extends i.AbstractArtifactWriter{behavior;writers;atomicWriter;annotationsWriter;constructor(D,F){super(),this.behavior=D,this.writers=F,this.atomicWriter=F.getAtomicWriter(),this.annotationsWriter=F.getAnnotationsWriter()}macroNameAndDescription(D){let F=r.JsonNode.getEmpty();return D instanceof a.AbstractSchemaArtifact&&D.language!==C.Language.NULL&&(F[o.YamlKeys.language]=this.atomicWriter.write(D.language)),F[o.YamlKeys.name]=D.schema_name,D.schema_description!==""&&(F[o.YamlKeys.description]=D.schema_description),F}macroStatusAndVersion(D,F){let z=r.JsonNode.getEmpty();return F||(D.bibo_status!==s.BiboStatus.NULL&&(z[o.YamlKeys.status]=this.atomicWriter.write(D.bibo_status)),D.pav_version!==l.PavVersion.NULL&&(z[o.YamlKeys.version]=this.atomicWriter.write(D.pav_version)),z[o.YamlKeys.modelVersion]=this.atomicWriter.write(I.SchemaVersion.CURRENT)),z}macroInstanceType(D){let F=r.JsonNode.getEmpty();return D.instanceTypeSpecifications.length>0&&(F[o.YamlKeys.instanceType]=D.instanceTypeSpecifications.length===1?D.instanceTypeSpecifications[0]:[...D.instanceTypeSpecifications]),F}macroSkos(D){let F=r.JsonNode.getEmpty();return D.skos_prefLabel!==null&&(F[o.YamlKeys.prefLabel]=D.skos_prefLabel),D.skos_altLabel!==null&&D.skos_altLabel.length>0&&(F[o.YamlKeys.altLabels]=D.skos_altLabel),F}macroStandaloneFieldFlags(D){let F=r.JsonNode.getEmpty();return D.hidden&&(F[o.YamlKeys.hidden]=true),D.continuePreviousLine&&(F[o.YamlKeys.continuePreviousLine]=true),F}macroStandaloneFieldConfiguration(D){let F=r.JsonNode.getEmpty();return D.cedarFieldType.recordsRequirement&&(D.requiredValue&&(F[o.YamlKeys.required]=true),D.recommendedValue&&(F[o.YamlKeys.recommended]=true)),r.JsonNode.hasEntries(F)?{[o.YamlKeys.configuration]:F}:{}}macroValueRecommendation(D){let F=r.JsonNode.getEmpty();return(D instanceof x.ControlledTermFieldImpl||D instanceof w.TextFieldImpl)&&D.valueRecommendationEnabled&&(F[o.YamlKeys.valueRecommendation]=D.valueRecommendationEnabled),F}macroProvenance(D,F){let z=r.JsonNode.getEmpty();return F||(D.pav_createdOn!==b.IsoDate.NULL&&(z[o.YamlKeys.createdOn]=this.atomicWriter.write(D.pav_createdOn)),D.pav_createdBy!==m.CedarUser.NULL&&(z[o.YamlKeys.createdBy]=this.atomicWriter.write(D.pav_createdBy)),D.pav_lastUpdatedOn!==b.IsoDate.NULL&&(z[o.YamlKeys.modifiedOn]=this.atomicWriter.write(D.pav_lastUpdatedOn)),D.oslc_modifiedBy!==m.CedarUser.NULL&&(z[o.YamlKeys.modifiedBy]=this.atomicWriter.write(D.oslc_modifiedBy))),z}macroSchemaIdentifier(D){let F=r.JsonNode.getEmpty();return D.schema_identifier!==null&&(F[o.YamlKeys.identifier]=D.schema_identifier),F}macroType(D){let F=r.JsonNode.getEmpty();return F[o.YamlKeys.type]=this.getYamlType(D),F}macroId(D,F=false,z=true){let ie=r.JsonNode.getEmpty();return D.at_id===d.CedarArtifactId.NULL||F&&!z||(ie[o.YamlKeys.id]=this.atomicWriter.write(D.at_id)),ie}macroDerivedFrom(D,F){let z=r.JsonNode.getEmpty();return F||D.pav_derivedFrom!==d.CedarArtifactId.NULL&&(z[o.YamlKeys.derivedFrom]=this.atomicWriter.write(D.pav_derivedFrom)),z}macroIsBasedOn(D){let F=r.JsonNode.getEmpty();return D.schema_isBasedOn!==d.CedarArtifactId.NULL&&(F[o.YamlKeys.isBasedOn]=this.atomicWriter.write(D.schema_isBasedOn)),F}macroPreviousVersion(D,F){let z=r.JsonNode.getEmpty();return F||D.pav_previousVersion!==d.CedarArtifactId.NULL&&(z[o.YamlKeys.previousVersion]=this.atomicWriter.write(D.pav_previousVersion)),z}macroAnnotations(D){return this.annotationsWriter.write(D.annotations)}getYamlType(D){return D instanceof g.Template?f.YamlArtifactType.TEMPLATE.getValue():D instanceof u.TemplateElement?f.YamlArtifactType.ELEMENT.getValue():D instanceof c.TemplateField?D.cedarFieldType.getYamlType().getValue():D instanceof O.TemplateInstance?f.YamlArtifactType.TEMPLATE_INSTANCE.getValue():void 0}}t.YamlAbstractArtifactWriter=E},5386(n,t,e){t.YamlAbstractContainerArtifactWriter=void 0;let i=e(8198),a=e(8878),r=e(9517),o=e(9129),s=e(211),l=e(2099),c=e(3812),d=e(9519),m=e(5692),b=e(699),u=e(513);class f extends s.YamlAbstractArtifactWriter{getChildListAsJSON(x,w){let C=r.JsonNode.getEmptyList();return x.getChildrenInfo().getChildrenNames().forEach(I=>{let O=x.getChild(I);if(O!=null){let E=r.JsonNode.getEmpty(),R=x.getChildrenInfo().get(I);if(R!==null){E[l.YamlKeys.key]=I,E=O instanceof o.TemplateField?Y(Y({},E),this.writers.getFieldWriterForType(O.cedarFieldType).getYamlAsJsonNode(O,R,w,false)):Y(Y({},E),this.writers.getTemplateElementWriter().getYamlAsJsonNode(O,w,false));let D=this.getDeploymentInfo(O,R,w);r.JsonNode.hasEntries(D)&&(E[l.YamlKeys.configuration]=D),C.push(E)}}}),C}getDeploymentInfo(x,w,C){let I=r.JsonNode.getEmpty();if(w instanceof c.AbstractDynamicChildDeploymentInfo){let z=!(x instanceof o.TemplateField)||x.cedarFieldType.recordsRequirement;w.requiredValue&&z&&(I[l.YamlKeys.required]=true),w.hidden&&(I[l.YamlKeys.hidden]=true),w.recommendedValue&&z&&(I[l.YamlKeys.recommended]=true),w.iri!==null&&(C||(I[l.YamlKeys.propertyIri]=w.iri))}w instanceof c.AbstractDynamicChildDeploymentInfo||!w.hidden||(I[l.YamlKeys.hidden]=true),w.label!==null&&w.label!==x?.schema_name&&(I[l.YamlKeys.overrideLabel]=w.label),w.description!==null&&w.description!==x?.schema_description&&(I[l.YamlKeys.overrideDescription]=w.description),w instanceof d.AbstractFieldChildDeploymentInfo&&(w.continuePreviousLine&&(I[l.YamlKeys.continuePreviousLine]=true),w.valueRecommendationEnabled&&x instanceof o.TemplateField&&x.supportsValueRecommendation()&&(I[l.YamlKeys.valueRecommendation]=true));let{isMultiInstance:O,minItems:E,maxItems:R}=m.WriterUtil.getMultiMinMax(x,w),D=E,F=R;return O&&(D===null&&(D=u.AbstractChildDeploymentInfo.defaultMinItems),x?.isMultiInstanceByDefinition()||x?.isSingleInstanceByDefinition()?w instanceof a.ChildDeploymentInfoAlwaysMultiple&&(I[l.YamlKeys.minItems]=D,w.declaredMaxItems!==null&&F!==i.UNBOUNDED_MAX_ITEMS&&(I[l.YamlKeys.maxItems]=F)):(I[l.YamlKeys.multiple]=true,I[l.YamlKeys.minItems]=D,F!==null&&F!==i.UNBOUNDED_MAX_ITEMS&&(I[l.YamlKeys.maxItems]=F))),(0,b.isSizedStaticField)(x)&&(x.width!==null&&(I[l.YamlKeys.width]=x.width),x.height!==null&&(I[l.YamlKeys.height]=x.height)),I}}t.YamlAbstractContainerArtifactWriter=f},2287(n,t,e){t.YamlAnnotationsWriter=void 0;let i=e(9517),a=e(2787),r=e(3549),o=e(2099);t.YamlAnnotationsWriter=class{behavior;constructor(s){this.behavior=s}write(s){let l=i.JsonNode.getEmpty(),c=i.JsonNode.getEmpty();return s!==null&&s.getSize()>0&&(s.getAnnotationNames().forEach(d=>{let m=s.get(d);if(m instanceof a.AnnotationAtId){let b={[o.YamlKeys.id]:m.getAtId()};c[d]=b}else if(m instanceof r.AnnotationAtValue){let b={[o.YamlKeys.value]:m.getAtValue()};c[d]=b}}),l[o.YamlKeys.annotations]=c),l}}},2342(n,t,e){t.YamlAtomicWriter=void 0;let i=e(2022),a=e(4872),r=e(4531),o=e(3910);class s extends a.JsonAtomicWriter{constructor(c){super(i.JsonWriterBehavior.STRICT)}writeCedarArtifactType(c){return c.getYamlValue()}write(c){return c==null?null:c instanceof o.BiboStatus?this.writeBiboStatusYaml(c):c instanceof r.BioportalTermType?this.writeBioportalTermTypeYaml(c):super.write(c)}writeBiboStatusYaml(c){return c.getYamlValue()}writeBioportalTermTypeYaml(c){return c.getYamlValue()}}t.YamlAtomicWriter=s},1100(n,t,e){t.mayWriteYamlValuePlain=function(x,w){return(g.get(x)?.has(w)??((x==="version"||x==="modelVersion")&&f.test(w)))&&(C=w,!(m.some(I=>I.test(C))||(function(I){for(let O of I){let E=O.codePointAt(0)??0;if(E===9||E===13||E<=31&&E!==10||E>=127&&E<=160||E===5760||E>=8192&&E<=8202||E===8232||E===8233||E===8239||E===8287||E===12288||E===65279||E>=55296&&E<=57343||E===65534||E===65535)return true}return I.startsWith(" ")||I.endsWith(" ")||I.includes(`
|
|
13
|
+
`)||I.length===0})(C)));var C},t.yamlKeyNeedsQuoting=function(x){return!/^[A-Za-z_](?:[A-Za-z0-9_ -]*[A-Za-z0-9_-])?$(?![\s\S])/.test(x)||/^(y|yes|n|no|true|false|on|off|null)$/i.test(x)};let i=e(8349),a=e(4531),r=e(3910),o=e(3447),s=e(7974),l=e(8588),c=e(3764),d=e(9499),m=[/^\d{4}-\d{1,2}-\d{1,2}(?:$|[Tt ])/,/^(y|Y|n|N|yes|Yes|YES|no|No|NO|on|On|ON|off|Off|OFF|true|True|TRUE|false|False|FALSE)$/,/^(null|Null|NULL|~|<<|=)$/,/^[-+]?[0-9][0-9_]*$/,/^[-+]?0[xX][0-9a-fA-F_]+$/,/^[-+]?0[bB][01_]+$/,/^[-+]?0[oO]?[0-7_]+$/,/^[-+]?[0-9_]*\.?[0-9_]+([eE][-+]?[0-9]+)?$/,/^[-+]?\.(inf|Inf|INF|nan|NaN|NAN)$/,/^[-+]?[0-9][0-9_]*(:[0-5]?[0-9])+(\.[0-9_]*)?$/],b=new Set([...Object.values(d.YamlArtifactTypeValues),"element-instance",i.YamlValues.Controlled.class,a.BioportalTermTypeYamlValues.VALUE,i.YamlValues.Controlled.ontology,i.YamlValues.Controlled.branch,i.YamlValues.Controlled.valueSet]),u=new Set(["xsd:string","xsd:anyUri",...Object.values(l.TemporalTypeValues),...Object.values(o.NumberTypeValues),i.YamlValues.iri]),f=/^\d+\.\d+\.\d+$/,g=new Map([["type",b],["status",new Set(Object.values(r.BiboStatusYamlValues))],["datatype",u],["action",new Set(["move","delete"])],["granularity",new Set(Object.values(s.TemporalGranularityValues))],["termType",new Set(Object.values(a.BioportalTermTypeYamlValues))],["inputTimeFormat",new Set(Object.values(c.TimeFormatValues))]]);[...g.keys()]},5251(n,t,e){t.YamlTemplateElementWriter=void 0;let i=e(9517),a=e(6574),r=e(2099),o=e(5386);class s extends o.YamlAbstractContainerArtifactWriter{constructor(c,d){super(c,d)}static getFor(c,d){return new s(c,d)}getYamlAsJsonNode(c,d=false,m=true){let b=i.JsonNode.getEmpty();c.header!==null&&(b[r.YamlKeys.header]=c.header),c.footer!==null&&(b[r.YamlKeys.footer]=c.footer);let u=Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(c)),this.macroNameAndDescription(c)),this.macroSchemaIdentifier(c)),this.macroId(c,d,m)),this.macroStatusAndVersion(c,d)),this.macroInstanceType(c)),b),this.macroPreviousVersion(c,d)),this.macroDerivedFrom(c,d)),this.macroProvenance(c,d)),this.macroSkos(c)),this.macroAnnotations(c)),f=this.getChildListAsJSON(c,d);return f.length>0&&(u[r.YamlKeys.children]=f),c.extensions.applyYaml(u)}getAsYamlString(c,d=false){return a.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(c,d))}}t.YamlTemplateElementWriter=s},5430(n,t,e){t.YamlTemplateFieldWriterInternal=void 0;let i=e(9517),a=e(936),r=e(455),o=e(2099),s=e(211),l=e(6574);class c extends s.YamlAbstractArtifactWriter{constructor(m,b){super(m,b)}getAsYamlString(m,b=false){return l.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(m,r.ChildDeploymentInfo.empty(),b))}getYamlAsJsonNode(m,b=r.ChildDeploymentInfo.empty(),u=false,f=true){let g=this.buildUIObject(m,b),x=this.buildValueConstraintsObject(m,b);return m.extensions.applyYaml(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(m)),this.macroNameAndDescription(m)),this.macroSchemaIdentifier(m)),this.macroId(m,u,f)),this.macroStatusAndVersion(m,u)),this.macroSkos(m)),g),x),this.macroPreviousVersion(m,u)),this.macroDerivedFrom(m,u)),this.macroProvenance(m,u)),this.macroAnnotations(m)),f?this.macroStandaloneFieldFlags(m):{}),this.macroValueRecommendation(m)),f?this.macroStandaloneFieldConfiguration(m):{}))}expandUINodeForYAML(m){return i.JsonNode.getEmpty()}expandValueConstraintsNodeForYAML(m,b,u){}buildValueConstraintsObject(m,b){let u=i.JsonNode.getEmpty();return this.expandValueConstraintsNodeForYAML(u,m,b),u}expandLiterals(m,b){let u=i.JsonNode.getEmptyList();m.valueConstraints.literals.forEach(f=>{let g=i.JsonNode.getEmpty();g[a.CedarModel.label]=f.label,(f.statesSelectedByDefault||f.selectedByDefault)&&(g[o.YamlKeys.selected]=f.selectedByDefault),u.push(g)}),u.length>0&&(b[o.YamlKeys.values]=u)}buildUIObject(m,b){return this.expandUINodeForYAML(m)}}t.YamlTemplateFieldWriterInternal=c},9326(n,t,e){t.YamlTemplateInstanceWriter=void 0;let i=e(5588),a=e(1625),r=e(9167),o=e(9517),s=e(6574),l=e(211),c=e(7723),d=e(9327),m=e(5222),b=e(7571),u=e(4877),f=e(8193),g=e(2099),x=e(4033),w=e(3644),C="element-instance";class I extends l.YamlAbstractArtifactWriter{constructor(E,R){super(E,R)}static getFor(E,R){return new I(E,R)}getYamlAsJsonNode(E,R=false){return x.AttributeValueNamePolicy.assertValid(E.dataContainer),Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(E)),this.macroNameAndDescription(E)),this.macroId(E,R,true)),this.macroIsBasedOn(E)),this.macroDerivedFrom(E,R)),this.macroProvenance(E,R)),this.getDataTree(E,R)),this.macroAnnotations(E))}getAsYamlString(E,R=false){return s.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(E,R))}getDataTree(E,R){let D=o.JsonNode.getEmpty();return this.serializeDataLevelInto(E.dataContainer,D,R,true),D}serializeDataLevelInto(E,R,D,F=false){let z=o.JsonNode.getEmpty(),ie=this.getUnpackedAttributeValueGroups(E),$=new Set(Array.from(ie.values()).flat());Object.keys(E.values).forEach(me=>{if(ie.has(me)||$.has(me))return;let J=E.values[me];if(Array.isArray(J)){let q=o.JsonNode.getEmptyList();J.forEach((ae,de)=>{let pe=this.serializeCommonType(ae,D);if(pe!==null&&o.JsonNode.hasEntries(pe))q.push(pe);else if(ae instanceof c.InstanceDataContainer){let Fe={[g.YamlKeys.type]:C};!D&&this.hasId(ae.id)&&(Fe[g.YamlKeys.id]=ae.id),q.push(Fe)}}),q.length>0&&(z[me]=q)}else{let q=this.serializeCommonType(J,D);q!==null&&o.JsonNode.hasEntries(q)&&(z[me]=q)}}),o.JsonNode.hasEntries(z)&&(!this.hasId(E.id)||D&&!F||(R[g.YamlKeys.id]=E.id),R[g.YamlKeys.children]=z);let H=o.JsonNode.getEmpty();this.serializeAttributeValueFields(E,H,ie,F),F||!o.JsonNode.hasEntries(R)&&!o.JsonNode.hasEntries(H)||(Object.hasOwn(R,g.YamlKeys.children)||(R[g.YamlKeys.type]=C),!D&&this.hasId(E.id)&&(R[g.YamlKeys.id]=E.id)),Object.assign(R,H)}serializeAttributeValueFields(E,R,D,F){Object.keys(E.values).forEach(z=>{let ie=E.values[z];if((ie instanceof d.InstanceDataAttributeValueField||D.has(z))&&i.ReservedNames.yamlKeys(F?"template":"element").has(z))throw new Error(`Attribute-value field key "${z}" is reserved for CEDAR YAML metadata.`);if(ie instanceof d.InstanceDataAttributeValueField){let $=o.JsonNode.getEmpty(),H=false;Object.keys(ie.values).forEach(me=>{let J=ie.values[me];if(J instanceof m.InstanceDataStringAtom){let q=this.serializeAtomString(J);q!==null&&($[me]=q,H=true)}}),H&&(R[z]=$)}});for(let[z,ie]of D){let $=o.JsonNode.getEmpty();for(let H of ie){let me=E.values[H];if(me instanceof m.InstanceDataStringAtom){let J=this.serializeAtomString(me);J!==null&&($[H]=J)}}o.JsonNode.hasEntries($)&&(R[z]=$)}}getUnpackedAttributeValueGroups(E){let R=new Map;for(let[D,F]of Object.entries(E.values)){if(!Array.isArray(F))continue;let z=F.filter(ie=>ie instanceof w.InstanceDataAttributeValueFieldName).map(ie=>ie.name).filter(ie=>ie.trim().length>0);z.length>0&&R.set(D,z)}return R}serializeCommonType(E,R){let D=this.serializeCommonTypeWithoutNotation(E,R);if("notation"in E&&E.notation!==null){let F=D??o.JsonNode.getEmpty();F[g.YamlKeys.notation]=E.notation,D=F}if("preferredLabel"in E&&E.preferredLabel!==null){let F=D??o.JsonNode.getEmpty();F[g.YamlKeys.prefLabel]=E.preferredLabel,D=F}return D!==null&&"language"in E&&E.language!==null&&(D[g.YamlKeys.language]=E.language),D}serializeCommonTypeWithoutNotation(E,R){if(E instanceof a.InstanceDataNotationAtom)return E.type===null?o.JsonNode.getEmpty():{[g.YamlKeys.datatype]:E.type};if(E instanceof m.InstanceDataStringAtom)return this.serializeAtomString(E);if(E instanceof u.InstanceDataTypedAtom)return E.value===null&&E.label===null&&E.notation===null&&E.preferredLabel===null?null:Y({[g.YamlKeys.datatype]:E.type,[g.YamlKeys.value]:E.value},E.label===null?{}:{[g.YamlKeys.label]:E.label});if(E instanceof r.InstanceDataLabelAtom)return Je(Y({},E.type===null?{}:{[g.YamlKeys.datatype]:E.type}),{[g.YamlKeys.label]:E.label});if(E instanceof f.InstanceDataControlledAtom){let D=o.JsonNode.getEmpty();return E.type===null||!this.hasId(E.id)&&E.label===null&&E.notation===null||(D[g.YamlKeys.datatype]=E.type),this.hasId(E.id)&&(D[g.YamlKeys.id]=E.id),E.label!==null&&(D[g.YamlKeys.label]=E.label),o.JsonNode.hasEntries(D)?D:null}if(E instanceof b.InstanceDataLinkAtom)return this.serializeAtomLink(E);if(E instanceof c.InstanceDataContainer){let D=o.JsonNode.getEmpty();return this.serializeDataLevelInto(E,D,R),D}return null}serializeAtomString(E){return E.value===null&&E.label===null&&E.notation===null&&E.preferredLabel===null?null:Y({[g.YamlKeys.value]:E.value},E.label===null?{}:{[g.YamlKeys.label]:E.label})}serializeAtomLink(E){return this.hasId(E.id)?Je(Y({},E.type===null?{}:{[g.YamlKeys.datatype]:E.type}),{[g.YamlKeys.id]:E.id}):E.notation!==null&&E.type!==null?{[g.YamlKeys.datatype]:E.type}:null}hasId(E){return E!==null&&E!==""}}t.YamlTemplateInstanceWriter=I},1933(n,t,e){t.YamlTemplateWriter=void 0;let i=e(9517),a=e(6574),r=e(2099),o=e(5386);class s extends o.YamlAbstractContainerArtifactWriter{constructor(c,d){super(c,d)}static getFor(c,d){return new s(c,d)}getYamlAsJsonNode(c,d=false){let m=i.JsonNode.getEmpty();c.header!==null&&(m[r.YamlKeys.header]=c.header),c.footer!==null&&(m[r.YamlKeys.footer]=c.footer);let b=Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(c)),this.macroNameAndDescription(c)),this.macroSchemaIdentifier(c)),this.macroId(c,d,true)),this.macroStatusAndVersion(c,d)),this.macroInstanceType(c)),m),this.macroPreviousVersion(c,d)),this.macroDerivedFrom(c,d)),this.macroProvenance(c,d)),this.macroAnnotations(c)),u=this.getChildListAsJSON(c,d);return u.length>0&&(b[r.YamlKeys.children]=u),c.extensions.applyYaml(b)}getAsYamlString(c,d=false){return a.SimpleYamlSerializer.serialize(this.getYamlAsJsonNode(c,d))}}t.YamlTemplateWriter=s},1641(n,t,e){t.AbstractArtifactBuilder=void 0;let i=e(4443),a=e(8333),r=e(2763),o=e(9857),s=e(2234),l=e(1027),c=e(3910),d=e(8534),m=e(8557);class b{at_id=d.CedarArtifactId.NULL;title=null;description=null;schema_schemaVersion=m.SchemaVersion.CURRENT;pav_createdOn=o.IsoDate.NULL;pav_createdBy=s.CedarUser.NULL;pav_lastUpdatedOn=o.IsoDate.NULL;oslc_modifiedBy=s.CedarUser.NULL;extensions=new i.SchemaExtensions;withExtensions(f){return this.extensions=f,this}pav_version=l.PavVersion.DEFAULT;bibo_status=c.BiboStatus.DRAFT;schema_name=null;schema_description="";schema_identifier=null;pav_derivedFrom=d.CedarArtifactId.NULL;withAtId(f){return f instanceof d.CedarArtifactId?this.at_id=f:this.at_id=d.CedarArtifactId.forValue(f),this}withTitle(f){return this.title=f,this}withDescription(f){return this.description=f,this}withSchemaVersion(f){return this.schema_schemaVersion=f,this}withCreatedOn(f){return f instanceof o.IsoDate?this.pav_createdOn=f:this.pav_createdOn=o.IsoDate.forValue(f),this}withCreatedBy(f){return f instanceof s.CedarUser?this.pav_createdBy=f:this.pav_createdBy=s.CedarUser.forValue(f),this}withLastUpdatedOn(f){return f instanceof o.IsoDate?this.pav_lastUpdatedOn=f:this.pav_lastUpdatedOn=o.IsoDate.forValue(f),this}withModifiedBy(f){return f instanceof s.CedarUser?this.oslc_modifiedBy=f:this.oslc_modifiedBy=s.CedarUser.forValue(f),this}withVersion(f){return f instanceof l.PavVersion?this.pav_version=f:this.pav_version=l.PavVersion.forValue(f),this}withStatus(f){return f instanceof c.BiboStatus?this.bibo_status=f:this.bibo_status=c.BiboStatus.forJsonValue(f),this}withSchemaName(f){return this.schema_name=f,this}withSchemaDescription(f){return this.schema_description=f??"",this}withDerivedFrom(f){return this.pav_derivedFrom=f,this}withSchemaIdentifier(f){return this.schema_identifier=f,this}buildInternal(f){if(f.at_id=this.at_id,f.title=this.title,f.description=this.description,f.schema_schemaVersion=this.schema_schemaVersion,f.pav_createdOn=this.pav_createdOn,f.pav_createdBy=this.pav_createdBy,f.pav_lastUpdatedOn=this.pav_lastUpdatedOn,f.oslc_modifiedBy=this.oslc_modifiedBy,f.extensions=this.extensions,f.pav_version=this.pav_version,f.bibo_status=this.bibo_status,f.schema_name=this.schema_name,f.schema_description=this.schema_description,f.schema_identifier=this.schema_identifier,f.pav_derivedFrom=this.pav_derivedFrom,f.title===null&&f.schema_name!==null){let g=b.kindOf(f.cedarArtifactType);g!==null&&(f.title=(0,a.internalNameFor)(f.schema_name,g))}}static kindOf(f){return f===r.CedarArtifactType.TEMPLATE?"template":f===r.CedarArtifactType.TEMPLATE_ELEMENT?"element":f===r.CedarArtifactType.TEMPLATE_FIELD||f===r.CedarArtifactType.STATIC_TEMPLATE_FIELD?"field":null}}t.AbstractArtifactBuilder=b},2674(n,t,e){t.AbstractArtifact=void 0;let i=e(9857),a=e(2234),r=e(8534),o=e(2763);t.AbstractArtifact=class{at_id=r.CedarArtifactId.NULL;pav_createdOn=i.IsoDate.NULL;pav_createdBy=a.CedarUser.NULL;pav_lastUpdatedOn=i.IsoDate.NULL;oslc_modifiedBy=a.CedarUser.NULL;pav_derivedFrom=r.CedarArtifactId.NULL;schema_name=null;schema_description="";cedarArtifactType=o.CedarArtifactType.NULL;annotations=null}},5451(n,t,e){t.AbstractContainerArtifact=void 0;let i=e(8333),a=e(1492),r=e(3746),o=e(2763),s=e(4869),l=e(5588);class c extends i.AbstractSchemaArtifact{childrenInfo=new a.ContainerArtifactChildrenInfo;childMap=new Map;instanceTypes=[];get instanceTypeSpecifications(){return[...this.instanceTypes]}set instanceTypeSpecifications(m){if(!Array.isArray(m)||m.some(b=>typeof b!="string"||!/^[a-z][a-z0-9+.-]*:\S+$/i.test(b))||new Set(m).size!==m.length)throw new Error("Instance types must be unique absolute IRIs");this.instanceTypes=[...m]}get instanceTypeSpecification(){return this.instanceTypeSpecifications[0]??null}set instanceTypeSpecification(m){this.instanceTypeSpecifications=m===null?[]:[m]}addChild(m,b){c.refuseReservedChildName(this,m,b.name),this.childrenInfo.add(b),this.childMap.set(b.name,m)}static refuseReservedChildName(m,b,u){if(Array.from(u).every(c.isJavaWhitespace))throw new Error("A child key must not be blank.");let f=b.cedarArtifactType===o.CedarArtifactType.TEMPLATE_FIELD&&b.cedarFieldType===s.CedarFieldType.ATTRIBUTE_VALUE,g=m.cedarArtifactType===o.CedarArtifactType.TEMPLATE?"template":"element";if(f?l.ReservedNames.isReservedAttributeValueFieldName(u,g):l.ReservedNames.isReservedName(u))throw new Error(`Child name "${u}" is reserved for CEDAR instance metadata.`)}static isJavaWhitespace(m){let b=m.codePointAt(0);return b>=9&&b<=13||b>=28&&b<=31||new RegExp("\\p{Z}","u").test(m)&&b!==160&&b!==8199&&b!==8239}getChildrenInfo(){return this.childrenInfo}getAdditionalProperties(){return this.childrenInfo.hasAttributeValue()?r.AdditionalProperties.ALLOW_ATTRIBUTE_VALUE:r.AdditionalProperties.FALSE}getChild(m){return this.childMap.get(m)??null}getElement(m){let b=this.getChild(m);return b!==null&&b.cedarArtifactType===o.CedarArtifactType.TEMPLATE_ELEMENT?b:null}getField(m){let b=this.getChild(m);return b!==null&&b.cedarArtifactType===o.CedarArtifactType.TEMPLATE_FIELD?b:null}getChildInfo(m){return this.childrenInfo.get(m)}}t.AbstractContainerArtifact=c},5697(n,t,e){t.AbstractInstanceArtifact=void 0;let i=e(8534),a=e(2674);class r extends a.AbstractArtifact{schema_isBasedOn=i.CedarArtifactId.NULL}t.AbstractInstanceArtifact=r},8333(n,t,e){t.AbstractSchemaArtifact=void 0,t.internalNameFor=function(m,b){return`${m} ${b} schema`};let i=e(4443),a=e(1027),r=e(3910),o=e(8534),s=e(8557),l=e(2674),c=e(7752);class d extends l.AbstractArtifact{extensions=new i.SchemaExtensions;title=null;description=null;schema_schemaVersion=s.SchemaVersion.NULL;pav_version=a.PavVersion.NULL;bibo_status=r.BiboStatus.NULL;schema_identifier=null;pav_previousVersion=o.CedarArtifactId.NULL;language=c.Language.NULL}t.AbstractSchemaArtifact=d},5588(n,t,e){t.ReservedNames=void 0;let i=e(2099);class a{static INSTANCE_PROPERTIES=new Set(["schema:name","schema:description","schema:identifier","schema:isBasedOn","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","pav:derivedFrom","oslc:modifiedBy","_annotations","rdfs:label","skos:notation","skos:prefLabel","skos:altLabel"]);static OBJECT_INTERNALS=new Set(["__proto__","constructor","prototype"]);static TEMPLATE_INSTANCE_YAML_KEYS=new Set([i.YamlKeys.type,i.YamlKeys.name,i.YamlKeys.description,i.YamlKeys.id,i.YamlKeys.isBasedOn,i.YamlKeys.derivedFrom,i.YamlKeys.children,i.YamlKeys.annotations,i.YamlKeys.createdOn,i.YamlKeys.createdBy,i.YamlKeys.modifiedOn,i.YamlKeys.modifiedBy]);static NESTED_ELEMENT_INSTANCE_YAML_KEYS=new Set([i.YamlKeys.type,i.YamlKeys.id,i.YamlKeys.children]);static STANDALONE_ELEMENT_INSTANCE_YAML_KEYS=new Set([i.YamlKeys.type,i.YamlKeys.name,i.YamlKeys.description,i.YamlKeys.id,i.YamlKeys.children,i.YamlKeys.createdOn,i.YamlKeys.createdBy,i.YamlKeys.modifiedOn,i.YamlKeys.modifiedBy]);static requireChildName(o){if(a.isReservedName(o))throw new Error(`Child name "${o}" is reserved for CEDAR instance metadata.`)}constructor(){}static isReservedName(o){return o.startsWith("@")||a.INSTANCE_PROPERTIES.has(o)||a.OBJECT_INTERNALS.has(o)}static isReservedAttributeValueFieldName(o,s){return a.isReservedName(o)||(s==="template"?a.TEMPLATE_INSTANCE_YAML_KEYS:a.STANDALONE_ELEMENT_INSTANCE_YAML_KEYS).has(o)}static yamlKeys(o){return o==="template"?a.TEMPLATE_INSTANCE_YAML_KEYS:a.NESTED_ELEMENT_INSTANCE_YAML_KEYS}}t.ReservedNames=a},4443(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.SchemaExtensions=void 0;let e=new Set(["xsd","pav","bibo","oslc","schema","skos","rdfs","_annotations"]);function i(s){return/^[A-Za-z_][A-Za-z0-9_-]*$/.test(s)&&!e.has(s)}function a(s){return s!==null&&typeof s=="object"&&!Array.isArray(s)}function r(s){return Array.isArray(s)?s.map(r):a(s)?Object.fromEntries(Object.keys(s).sort().map(l=>[l,r(s[l])])):s}class o{namespaces;values;constructor(l={},c={}){for(let[d,m]of Object.entries(l))if(!i(d)||typeof m!="string"||!/^[A-Za-z][A-Za-z0-9+.-]*:[^\s]*$/.test(m))throw new Error(`Invalid schema extension prefix: ${d}`);for(let d of Object.keys(c)){let m=d.indexOf(":");if(m<1||m===d.length-1||!Object.hasOwn(l,d.slice(0,m)))throw new Error(`Unbound schema extension property: ${d}`)}this.namespaces=r(l),this.values=r(c)}get prefixes(){return Y({},this.namespaces)}get properties(){return r(this.values)}get isEmpty(){return Object.keys(this.namespaces).length===0&&Object.keys(this.values).length===0}static fromJson(l){let c=a(l["@context"])?l["@context"]:{},d=Object.fromEntries(Object.entries(c).filter(([b,u])=>i(b)&&typeof u=="string")),m=Object.fromEntries(Object.entries(l).filter(([b])=>{let u=b.indexOf(":");return u>0&&Object.hasOwn(d,b.slice(0,u))}));return new o(d,m)}static fromYaml(l){if(!Object.hasOwn(l,"extensions"))return new o;let c=l.extensions;if(!a(c)||Object.keys(c).length!==2||!a(c.prefixes)||!a(c.properties))throw new Error("extensions requires prefixes and properties objects");return new o(c.prefixes,c.properties)}applyJson(l){return l["@context"]=Y(Y({},l["@context"]),this.prefixes),Object.assign(l,this.properties),l}applyYaml(l){return this.isEmpty||(l.extensions={prefixes:this.prefixes,properties:this.properties}),l}}t.SchemaExtensions=o},2787(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.AnnotationAtId=void 0,t.AnnotationAtId=class{name;id;constructor(e,i){this.name=e,this.id=i}getName(){return this.name}getAtId(){return this.id}}},3549(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.AnnotationAtValue=void 0,t.AnnotationAtValue=class{name;value;constructor(e,i){this.name=e,this.value=i}getName(){return this.name}getAtValue(){return this.value}}},5226(n,t){Object.defineProperty(t,"__esModule",{value:true}),t.Annotations=void 0,t.Annotations=class{annotations=new Map;add(e){this.annotations.set(e.getName(),e)}getSize(){return this.annotations.size}getAnnotationNames(){return Array.from(this.annotations.keys())}get(e){return this.annotations.has(e)?this.annotations.get(e):null}}},936(n,t){t.CedarModel=void 0,t.CedarModel=class{static ui="_ui";static schema="$schema";static order="order";static inputType="inputType";static type="type";static items="items";static valueConstraints="_valueConstraints";static requiredValue="requiredValue";static defaultValue="defaultValue";static minItems="minItems";static maxItems="maxItems";static minLength="minLength";static maxLength="maxLength";static numberType="numberType";static temporalType="temporalType";static temporalGranularity="temporalGranularity";static timezoneEnabled="timezoneEnabled";static inputTimeFormat="inputTimeFormat";static unitOfMeasure="unitOfMeasure";static minValue="minValue";static maxValue="maxValue";static decimalPlace="decimalPlace";static content="_content";static size="_size";static width="width";static height="height";static regex="regex";static pages="pages";static header="header";static footer="footer";static ontologies="ontologies";static valueSets="valueSets";static classes="classes";static branches="branches";static actions="actions";static multipleChoice="multipleChoice";static literals="literals";static label="label";static selectedByDefault="selectedByDefault";static propertyDescriptions="propertyDescriptions";static propertyLabels="propertyLabels";static skosPrefLabel="skos:prefLabel";static skosAltLabel="skos:altLabel";static skosNotation="skos:notation";static format="format";static enum="enum";static annotations="_annotations";static propertyIriPrefix="https://schema.metadatacenter.org/properties/";static ValueConstraints=class{static acronym="acronym";static name="name";static uri="uri";static numTerms="numTerms";static label="label";static source="source";static type="type";static termType="termType";static prefLabel="prefLabel";static maxDepth="maxDepth";static vsCollection="vsCollection";static termUri="termUri";static sourceUri="sourceUri";static iri="iri";static sourceSystem="sourceSystem";static version="version";static versionId="id";static versionEffectiveDate="effectiveDate";static versionDeclaredVersion="declaredVersion";static action="action";static to="to";static recommendedValue="recommendedValue"};static Ui=class{static hidden="hidden";static continuePreviousLine="continuePreviousLine";static valueRecommendationEnabled="valueRecommendationEnabled"}}},2733(n,t){t.JsonSchema=void 0,t.JsonSchema=class{static skosNotation="skos:notation";static properties="properties";static required="required";static atContext="@context";static atId="@id";static atType="@type";static atValue="@value";static atLanguage="@language";static schemaIsBasedOn="schema:isBasedOn";static schemaName="schema:name";static schemaDescription="schema:description";static schemaVersion="schema:schemaVersion";static schemaIdentifier="schema:identifier";static pavDerivedFrom="pav:derivedFrom";static pavPreviousVersion="pav:previousVersion";static pavCreatedOn="pav:createdOn";static pavCreatedBy="pav:createdBy";static pavLastUpdatedOn="pav:lastUpdatedOn";static oslcModifiedBy="oslc:modifiedBy";static pavVersion="pav:version";static biboStatus="bibo:status";static rdfsLabel="rdfs:label";static termUri="termUri";static enum="enum";static oneOf="oneOf";static type="type";static items="items"}},4216(n,t){t.NonStandardDatatype=void 0,t.NonStandardDatatype=class{static IRI="iri"}},5747(n,t){t.TemplateProperty=void 0,t.TemplateProperty=class{static title="title";static description="description";static additionalProperties="additionalProperties"}},2099(n,t){t.YamlKeys=void 0,t.YamlKeys=class{static notation="notation";static id="id";static type="type";static name="name";static description="description";static modelVersion="modelVersion";static status="status";static version="version";static language="language";static label="label";static prefLabel="prefLabel";static altLabels="altLabels";static datatype="datatype";static valueRecommendation="valueRecommendation";static required="required";static recommended="recommended";static hidden="hidden";static continuePreviousLine="continuePreviousLine";static propertyIri="propertyIri";static overrideLabel="overrideLabel";static overrideDescription="overrideDescription";static default="default";static minLength="minLength";static maxLength="maxLength";static regex="regex";static identifier="identifier";static derivedFrom="derivedFrom";static previousVersion="previousVersion";static createdOn="createdOn";static createdBy="createdBy";static modifiedOn="modifiedOn";static modifiedBy="modifiedBy";static isBasedOn="isBasedOn";static instanceType="instanceType";static annotations="annotations";static value="value";static granularity="granularity";static inputTimeZone="inputTimeZone";static inputTimeFormat="inputTimeFormat";static header="header";static footer="footer";static children="children";static multiple="multiple";static minItems="minItems";static maxItems="maxItems";static content="content";static height="height";static width="width";static key="key";static minValue="minValue";static maxValue="maxValue";static decimalPlaces="decimalPlaces";static unit="unit";static multipleChoice="multipleChoice";static values="values";static selected="selected";static actions="actions";static action="action";static configuration="configuration";static Controlled=class{static sourceSystem="sourceSystem";static sourceAcronym="sourceAcronym";static sourceName="sourceName";static sourceIri="sourceIri";static sourceUri="sourceUri";static termIri="termIri";static termType="termType";static termLabel="termLabel";static termDisplayLabel="termDisplayLabel";static termBaseIri="termBaseIri";static termBaseLabel="termBaseLabel";static termMaxDepth="termMaxDepth";static termCount="termCount";static versionId="id";static versionEffectiveDate="effectiveDate";static versionDeclaredVersion="declaredVersion";static to="to"}}},8349(n,t){t.YamlValues=void 0,t.YamlValues=class{static id="id";static value="value";static iri="iri";static string="string";static Controlled=class{static class="class";static ontology="ontology";static valueSet="valueSet";static branch="branch"}}},513(n,t,e){t.AbstractChildDeploymentInfo=void 0;let i=e(2763),a=e(9034);t.AbstractChildDeploymentInfo=class{static defaultMinItems=0;_name;_atType=i.CedarArtifactType.NULL;_uiInputType=a.UiInputType.NULL;_label=null;_description=null;constructor(r){this._name=r}get name(){return this._name}hasParent(){return this._name!==""}get atType(){return this._atType}set atType(r){this._atType=r}get uiInputType(){return this._uiInputType}set uiInputType(r){this._uiInputType=r}get label(){return this._label}set label(r){this._label=r}get description(){return this._description}set description(r){this._description=r}get hidden(){return false}}},6910(n,t,e){t.AbstractChildDeploymentInfoBuilder=void 0;let i=e(2763),a=e(9034),r=e(9129);t.AbstractChildDeploymentInfoBuilder=class{child=null;name="";atType=i.CedarArtifactType.NULL;uiInputType=a.UiInputType.NULL;label=null;description=null;constructor(o,s){this.child=o,this.name=s}withLabel(o){return this.label=o,this}withDescription(o){return this.description=o,this}setCommonData(o){o.label=this.label,o.description=this.description,o.atType=this.atType,o.uiInputType=this.uiInputType,this.child!=null&&(o.atType=this.child.cedarArtifactType,this.child instanceof r.TemplateField&&(o.uiInputType=this.child.cedarFieldType.getUiInputType()))}}},3812(n,t,e){t.AbstractDynamicChildDeploymentInfo=void 0;let i=e(513);class a extends i.AbstractChildDeploymentInfo{_iri=null;constructor(o){super(o)}get iri(){return this._iri}set iri(o){this._iri=o}get requiredValue(){return false}get recommendedValue(){return false}get minItems(){return null}get maxItems(){return null}}t.AbstractDynamicChildDeploymentInfo=a},4809(n,t,e){t.AbstractDynamicChildDeploymentInfoBuilder=void 0;let i=e(455),a=e(6910);class r extends a.AbstractChildDeploymentInfoBuilder{iri=null;constructor(s,l){super(s,l)}withIri(s){return this.iri=s,this}build(){let s=new i.ChildDeploymentInfo(this.name);return this.setCommonData(s),s}setCommonData(s){super.setCommonData(s),s.iri=this.iri}}t.AbstractDynamicChildDeploymentInfoBuilder=r},9519(n,t,e){t.AbstractFieldChildDeploymentInfo=void 0;let i=e(3812);class a extends i.AbstractDynamicChildDeploymentInfo{_hidden=false;_requiredValue=false;_recommendedValue=false;_continuePreviousLine=false;_valueRecommendationEnabled=false;constructor(o){super(o)}get hidden(){return this._hidden}set hidden(o){this._hidden=o}get requiredValue(){return this._requiredValue}set requiredValue(o){this._requiredValue=o}get recommendedValue(){return this._recommendedValue}set recommendedValue(o){this._recommendedValue=o}get continuePreviousLine(){return this._continuePreviousLine}set continuePreviousLine(o){this._continuePreviousLine=o}get valueRecommendationEnabled(){return this._valueRecommendationEnabled}set valueRecommendationEnabled(o){this._valueRecommendationEnabled=o}}t.AbstractFieldChildDeploymentInfo=a},6096(n,t,e){t.AbstractFieldChildDeploymentInfoBuilder=void 0;let i=e(9129),a=e(4809),r=e(9519);class o extends a.AbstractDynamicChildDeploymentInfoBuilder{hidden=false;requiredValue=false;recommendedValue=false;continuePreviousLine=false;valueRecommendationEnabled=false;constructor(l,c){super(l,c)}withHidden(l){return this.hidden=l,this}get recordsRequirement(){return!(this.child instanceof i.TemplateField)||this.child.cedarFieldType.recordsRequirement}withRequiredValue(l){return this.recordsRequirement&&(this.requiredValue=l),this}withRecommendedValue(l){return this.recordsRequirement&&(this.recommendedValue=l),this}withContinuePreviousLine(l){return this.continuePreviousLine=l,this}withValueRecommendationEnabled(l){return this.valueRecommendationEnabled=l,this}setCommonData(l){super.setCommonData(l),l instanceof r.AbstractFieldChildDeploymentInfo&&(l.hidden=this.hidden,l.requiredValue=this.requiredValue,l.recommendedValue=this.recommendedValue,l.continuePreviousLine=this.continuePreviousLine,l.valueRecommendationEnabled=this.valueRecommendationEnabled)}}t.AbstractFieldChildDeploymentInfoBuilder=o},455(n,t,e){t.ChildDeploymentInfo=void 0;let i=e(9519);class a extends i.AbstractFieldChildDeploymentInfo{_multiInstance=false;_minItems=null;_maxItems=null;_standalone=false;static empty(){return new a("")}static standalone(){let o=new a("");return o._standalone=true,o}constructor(o){super(o)}get multiInstance(){return this._multiInstance}set multiInstance(o){this._multiInstance=o}get minItems(){return this._minItems}set minItems(o){this._minItems=o}get maxItems(){return this._maxItems}set maxItems(o){this._maxItems=o}isMultiInAnyWay(){return this._multiInstance}isStandalone(){return this._standalone}}t.ChildDeploymentInfo=a},8878(n,t,e){t.ChildDeploymentInfoAlwaysMultiple=void 0;let i=e(513),a=e(9519);class r extends a.AbstractFieldChildDeploymentInfo{_declaredMinItems=null;_declaredMaxItems=null;static empty(){return new r("")}constructor(s){super(s)}isMultiInAnyWay(){return true}get declaredMinItems(){return this._declaredMinItems}get declaredMaxItems(){return this._declaredMaxItems}set declaredMinItems(s){this._declaredMinItems=s}set declaredMaxItems(s){this._declaredMaxItems=s}get minItems(){return this._declaredMinItems!==null?this._declaredMinItems:this.defaultMinItems}get defaultMinItems(){return i.AbstractChildDeploymentInfo.defaultMinItems}get maxItems(){return this._declaredMaxItems}}t.ChildDeploymentInfoAlwaysMultiple=r},3239(n,t,e){t.ChildDeploymentInfoAlwaysMultipleBuilder=void 0;let i=e(8198),a=e(8878),r=e(6096),o=e(9129),s=e(4869);class l extends r.AbstractFieldChildDeploymentInfoBuilder{declaredMinItems=null;declaredMaxItems=null;constructor(d,m){super(d,m)}withMinItems(d){return this.declaredMinItems=d,this}withMaxItems(d){return this.declaredMaxItems=d,this}build(){if((0,i.assertItemBounds)(this.name,this.declaredMinItems,this.declaredMaxItems),this.child instanceof o.TemplateField&&this.child.cedarFieldType===s.CedarFieldType.ATTRIBUTE_VALUE&&this.declaredMinItems!==null&&this.declaredMinItems>0)throw new Error(`minItems must be zero in attribute-value field ${this.name}`);let d=new a.ChildDeploymentInfoAlwaysMultiple(this.name);return this.setCommonData(d),d.declaredMinItems=this.declaredMinItems,d.declaredMaxItems=this.declaredMaxItems,d}}t.ChildDeploymentInfoAlwaysMultipleBuilder=l},2266(n,t,e){t.ChildDeploymentInfoAlwaysSingle=void 0;let i=e(9519);class a extends i.AbstractFieldChildDeploymentInfo{static empty(){return new a("")}constructor(o){super(o)}isMultiInAnyWay(){return false}}t.ChildDeploymentInfoAlwaysSingle=a},587(n,t,e){t.ChildDeploymentInfoAlwaysSingleBuilder=void 0;let i=e(2266),a=e(6096);class r extends a.AbstractFieldChildDeploymentInfoBuilder{constructor(s,l){super(s,l)}build(){let s=new i.ChildDeploymentInfoAlwaysSingle(this.name);return this.setCommonData(s),s}}t.ChildDeploymentInfoAlwaysSingleBuilder=r},3608(n,t,e){t.ChildDeploymentInfoBuilder=void 0;let i=e(8198),a=e(455),r=e(6096);class o extends r.AbstractFieldChildDeploymentInfoBuilder{multiInstance=false;minItems=null;maxItems=null;constructor(l,c){super(l,c)}withMultiInstance(l){return this.multiInstance=l,this}withMinItems(l){return this.minItems=l,this}withMaxItems(l){return this.maxItems=l,this}build(){(0,i.assertItemBounds)(this.name,this.minItems,this.maxItems);let l=new a.ChildDeploymentInfo(this.name);return this.setCommonData(l),l.multiInstance=this.multiInstance,l.minItems=this.minItems,l.maxItems=this.maxItems,l}}t.ChildDeploymentInfoBuilder=o},4831(n,t,e){t.ChildDeploymentInfoElement=void 0;let i=e(3812);class a extends i.AbstractDynamicChildDeploymentInfo{_multiInstance=false;_minItems=null;_maxItems=null;static empty(){return new a("")}constructor(o){super(o)}get multiInstance(){return this._multiInstance}set multiInstance(o){this._multiInstance=o}get minItems(){return this._minItems}set minItems(o){this._minItems=o}get maxItems(){return this._maxItems}set maxItems(o){this._maxItems=o}isMultiInAnyWay(){return this._multiInstance}}t.ChildDeploymentInfoElement=a},6976(n,t,e){t.ChildDeploymentInfoElementBuilder=void 0;let i=e(8198),a=e(4809),r=e(4831);class o extends a.AbstractDynamicChildDeploymentInfoBuilder{multiInstance=false;minItems=null;maxItems=null;constructor(l,c){super(l,c)}withMultiInstance(l){return this.multiInstance=l,this}withMinItems(l){return this.minItems=l,this}withMaxItems(l){return this.maxItems=l,this}build(){(0,i.assertItemBounds)(this.name,this.minItems,this.maxItems);let l=new r.ChildDeploymentInfoElement(this.name);return this.setCommonData(l),l.multiInstance=this.multiInstance,l.minItems=this.minItems,l.maxItems=this.maxItems,l}}t.ChildDeploymentInfoElementBuilder=o},3581(n,t,e){t.ChildDeploymentInfoStatic=void 0;let i=e(513);class a extends i.AbstractChildDeploymentInfo{_hidden=false;static empty(){return new a("")}constructor(o){super(o)}get hidden(){return this._hidden}set hidden(o){this._hidden=o}isMultiInAnyWay(){return false}}t.ChildDeploymentInfoStatic=a},8290(n,t,e){t.ChildDeploymentInfoStaticBuilder=void 0;let i=e(6910),a=e(3581);class r extends i.AbstractChildDeploymentInfoBuilder{hidden=false;constructor(s,l){super(s,l)}withHidden(s){return this.hidden=s,this}build(){let s=new a.ChildDeploymentInfoStatic(this.name);return super.setCommonData(s),s.hidden=this.hidden,s}}t.ChildDeploymentInfoStaticBuilder=r},1492(n,t,e){t.ContainerArtifactChildrenInfo=void 0;let i=e(2763),a=e(2733),r=e(9034),o=e(3812);t.ContainerArtifactChildrenInfo=class{childNameList=[];childMap=new Map;add(s){this.childNameList.push(s.name),this.childMap.set(s.name,s)}get children(){return this.childNameList.map(s=>this.childMap.get(s))}has(s){return this.childMap.has(s)}get(s){return this.childMap.get(s)??null}getChildrenNames(){return Array.from(this.childMap.keys())}getChildrenNamesForRequiredInProperties(){let s=[];for(let[l,c]of this.childMap.entries())c.atType!==i.CedarArtifactType.STATIC_TEMPLATE_FIELD&&c.uiInputType!==r.UiInputType.ATTRIBUTE_VALUE&&s.push(l);return s}getChildrenNamesForRequired(){let s=[];for(let[l,c]of this.childMap.entries())c.atType!==i.CedarArtifactType.STATIC_TEMPLATE_FIELD&&c.uiInputType!==r.UiInputType.ATTRIBUTE_VALUE&&s.push(l);return s}getOnlyElementNamesForPropertiesContextRequired(){let s=[];for(let[l,c]of this.childMap.entries())c.atType===i.CedarArtifactType.TEMPLATE_ELEMENT&&s.push(l);return s}getPropertyLabelMap(s){let l={};return this.childNameList.forEach(c=>{let d=this.getChildInfo(c);d.label!==null&&(l[d.name]=d.label)}),l}getPropertyDescriptionMap(s){let l={};return this.childNameList.forEach(c=>{let d=this.getChildInfo(c);d.description!==null&&(l[d.name]=d.description)}),l}getChildIriMap(){return this.collectChildIris(false)}collectChildIris(s){let l={};return this.childNameList.forEach(c=>{let d=this.getChildInfo(c);d.atType===i.CedarArtifactType.STATIC_TEMPLATE_FIELD||!s&&d.uiInputType===r.UiInputType.ATTRIBUTE_VALUE||d instanceof o.AbstractDynamicChildDeploymentInfo&&d.iri!==null&&(l[d.name]=d.iri)}),l}getChildNamesWithIri(){let s=this.getChildIriMap();return this.getChildrenNames().filter(l=>Object.prototype.hasOwnProperty.call(s,l))}getIRIMap(){let s={},l=this.collectChildIris(true);return Object.keys(l).forEach(c=>{s[c]={[a.JsonSchema.enum]:[l[c]]}}),s}hasAttributeValue(){for(let s of this.childMap.values())if(s.uiInputType===r.UiInputType.ATTRIBUTE_VALUE)return true;return false}getChildInfo(s){return this.childMap.get(s)}}},8198(n,t){t.UNBOUNDED_MAX_ITEMS=void 0,t.assertItemBounds=function(e,i,a){if(i!==null&&i<0)throw new Error(`minItems must be zero or greater in ${e}`);if(a!==null&&a<0)throw new Error(`maxItems must be zero or greater in ${e}`);if(i!==null&&a!==null&&a!==t.UNBOUNDED_MAX_ITEMS&&i>a)throw new Error(`minItems must be less than or equal to maxItems in ${e}`)},t.UNBOUNDED_MAX_ITEMS=0},7661(n,t,e){t.TemplateElement=void 0;let i=e(3910),a=e(8557),r=e(1027),o=e(5451),s=e(2763),l=e(6976);class c extends o.AbstractContainerArtifact{skos_altLabel=null;skos_prefLabel=null;header=null;footer=null;constructor(){super(),this.cedarArtifactType=s.CedarArtifactType.TEMPLATE_ELEMENT}static buildEmptyWithNullValues(){return new c}static buildEmptyWithDefaultValues(){let m=new c;return m.schema_schemaVersion=a.SchemaVersion.CURRENT,m.bibo_status=i.BiboStatus.DRAFT,m.pav_version=r.PavVersion.DEFAULT,m}isMultiInstanceByDefinition(){return false}isSingleInstanceByDefinition(){return false}createDeploymentBuilder(m){return new l.ChildDeploymentInfoElementBuilder(this,m)}}t.TemplateElement=c},1762(n,t,e){t.TemplateElementBuilder=void 0;let i=e(1641),a=e(7661);class r extends i.AbstractArtifactBuilder{children=[];instanceTypeSpecification=null;withInstanceTypeSpecification(s){return this.instanceTypeSpecification=s,this}addChild(s,l){return this.children.push([s,l]),this}build(){let s=a.TemplateElement.buildEmptyWithNullValues();return super.buildInternal(s),s.instanceTypeSpecification=this.instanceTypeSpecification,this.children.forEach(([l,c])=>{s.addChild(l,c)}),s}}t.TemplateElementBuilder=r},7282(n,t){t.ChoiceOptionEntity=void 0,t.ChoiceOptionEntity=class{label;selectedByDefault;statesSelectedByDefault;constructor(e,i,a=true){if(e==null||e==="")throw new Error("A permitted value requires a label. A choice that names nothing cannot be chosen.");this.label=e,this.selectedByDefault=i,this.statesSelectedByDefault=a}}},6145(n,t,e){t.DefaultValueSerialization=void 0;let i=e(8802),a=e(8748);t.DefaultValueSerialization=class{static literalFromNode(r,o){return a.ReaderUtil.getString(r,o)}static writeLiteral(r,o,s){s!==null&&s!==""&&(r[o]=s)}static iriFromNode(r,o){if(a.ReaderUtil.getString(r,o)==="")return null;let s=a.ReaderUtil.getIdentifier(r,o);return s===null?null:new i.Iri(s)}static writeIri(r,o,s){s===null||s.isEmpty()||(r[o]=s.getValue())}}},3557(n,t,e){t.JsonValueConstraintsWriter=void 0;let i=e(3161);class a extends i.JsonAbstractArtifactWriter{}t.JsonValueConstraintsWriter=a},9129(n,t,e){t.TemplateField=void 0;let i=e(4328),a=e(4869),r=e(8333);class o extends r.AbstractSchemaArtifact{skos_altLabel=null;skos_prefLabel=null;hidden=false;requiredValue=false;recommendedValue=false;continuePreviousLine=false;valueConstraints=new i.ValueConstraints;cedarFieldType=a.CedarFieldType.NULL;isMultiInstanceByDefinition(){return false}isSingleInstanceByDefinition(){return false}supportsValueRecommendation(){return false}}t.TemplateField=o},3350(n,t,e){t.TemplateFieldBuilder=void 0;let i=e(1641);class a extends i.AbstractArtifactBuilder{skos_altLabel=null;skos_prefLabel=null;withAlternateLabels(o){return this.skos_altLabel=o,this}addAlternateLabel(o){return this.skos_altLabel===null&&(this.skos_altLabel=[]),this.skos_altLabel.push(o),this}withPreferredLabel(o){return this.skos_prefLabel=o,this}buildInternal(o){super.buildInternal(o),o.skos_altLabel=this.skos_altLabel,o.skos_prefLabel=this.skos_prefLabel}}t.TemplateFieldBuilder=a},855(n,t,e){t.UnknownTemplateField=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(3608);class s extends i.TemplateField{constructor(){super(),this.cedarFieldType=a.CedarFieldType.NULL,this.cedarArtifactType=r.CedarArtifactType.NULL}static build(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoBuilder(this,c)}}t.UnknownTemplateField=s},4328(n,t){t.ValueConstraints=void 0,t.ValueConstraints=class{constructor(){}}},1902(n,t,e){t.ValueConstraintsIriField=void 0;let i=e(4328);class a extends i.ValueConstraints{defaultValue=null;constructor(){super()}}t.ValueConstraintsIriField=a},7765(n,t,e){t.ValueConstraintsLiteralField=void 0;let i=e(4328);class a extends i.ValueConstraints{defaultValue=null;constructor(){super()}}t.ValueConstraintsLiteralField=a},2500(n,t,e){t.YamlValueConstraintsWriter=void 0;let i=e(211);class a extends i.YamlAbstractArtifactWriter{}t.YamlValueConstraintsWriter=a},2052(n,t,e){t.AttributeValueFieldBuilderImpl=void 0;let i=e(3350),a=e(9571);class r extends i.TemplateFieldBuilder{constructor(){super()}static create(){return new r}build(){let s=a.AttributeValueFieldImpl.buildEmpty();return super.buildInternal(s),s}}t.AttributeValueFieldBuilderImpl=r},9571(n,t,e){t.AttributeValueFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(4328),s=e(3239);class l extends i.TemplateField{constructor(){super(),this.cedarFieldType=a.CedarFieldType.ATTRIBUTE_VALUE,this.valueConstraints=new o.ValueConstraints,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}isMultiInstanceByDefinition(){return true}createDeploymentBuilder(d){return new s.ChildDeploymentInfoAlwaysMultipleBuilder(this,d)}}t.AttributeValueFieldImpl=l},9366(n,t,e){t.JsonFieldReaderAttributeValue=void 0;let i=e(4385),a=e(9571);class r extends i.JsonTemplateFieldTypeSpecificReader{read(s,l,c,d){let m=a.AttributeValueFieldImpl.buildEmpty();return this.readRequiredAndHidden(s,l),m}}t.JsonFieldReaderAttributeValue=r},1442(n,t,e){t.JsonFieldWriterAttributeValue=void 0;let i=e(455),a=e(2748),r=e(9517),o=e(936),s=e(5793);class l extends a.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}getAsJsonNode(d,m=i.ChildDeploymentInfo.standalone()){let b=super.getAsJsonNode(d,m);return m instanceof i.ChildDeploymentInfo&&m.isStandalone()?{type:"array",minItems:0,items:b}:b}expandPropertiesNode(d){}expandRequiredNode(d){}expandTypeNode(d,m){d[o.CedarModel.type]=this.atomicWriter.write(s.JavascriptType.STRING)}buildValueConstraintsObject(d){return r.JsonNode.getEmpty()}}t.JsonFieldWriterAttributeValue=l},529(n,t,e){t.YamlFieldReaderAttributeValue=void 0;let i=e(5675),a=e(9571);class r extends i.YamlTemplateFieldTypeSpecificReader{read(s,l,c,d){return a.AttributeValueFieldImpl.buildEmpty()}}t.YamlFieldReaderAttributeValue=r},1521(n,t,e){t.YamlFieldWriterAttributeValue=void 0;let i=e(5430);class a extends i.YamlTemplateFieldWriterInternal{constructor(o,s){super(o,s)}}t.YamlFieldWriterAttributeValue=a},4675(n,t,e){t.CheckboxFieldBuilderImpl=void 0;let i=e(3350),a=e(9915),r=e(9282);class o extends i.TemplateFieldBuilder{defaultValue=null;literals=[];constructor(){super()}static create(){return new o}addCheckboxOption(l,c){return this.literals.push(new a.CheckboxOption(l,c??false,c!==void 0)),this}withDefaultValue(l){return this.defaultValue=l,this}build(){let l=r.CheckboxFieldImpl.buildEmpty();return super.buildInternal(l),l.valueConstraints.defaultValue=this.defaultValue,l.valueConstraints.literals=this.literals,l}}t.CheckboxFieldBuilderImpl=o},9282(n,t,e){t.CheckboxFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1489),s=e(3239);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.CHECKBOX,this.valueConstraints=new o.ValueConstraintsCheckboxField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}isMultiInstanceByDefinition(){return true}createDeploymentBuilder(d){return new s.ChildDeploymentInfoAlwaysMultipleBuilder(this,d)}}t.CheckboxFieldImpl=l},9915(n,t,e){t.CheckboxOption=void 0;let i=e(7282);class a extends i.ChoiceOptionEntity{constructor(o,s,l=true){super(o,s,l)}}t.CheckboxOption=a},19(n,t,e){t.JsonFieldReaderCheckbox=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(9915),s=e(9282),l=e(6145);class c extends r.JsonTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.CheckboxFieldImpl.buildEmpty();this.readRequiredAndHidden(m,b);let x=i.ReaderUtil.getNode(m,a.CedarModel.valueConstraints);if(x!=null){g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(x,a.CedarModel.defaultValue);let w=i.ReaderUtil.getNodeList(x,a.CedarModel.literals);w!==null&&w.forEach(C=>{let I=i.ReaderUtil.getString(C,a.CedarModel.label),O=i.ReaderUtil.getBoolean(C,a.CedarModel.selectedByDefault),E=Object.hasOwn(C,a.CedarModel.selectedByDefault);if(I!=null){let R=new o.CheckboxOption(I,O,E);g.valueConstraints.literals.push(R)}})}return g}}t.JsonFieldReaderCheckbox=c},8663(n,t,e){t.JsonFieldWriterCheckbox=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),this.expandLiterals(c,l),super.expandValueConstraintsNode(l,c,d),l[i.CedarModel.multipleChoice]=true}}t.JsonFieldWriterCheckbox=o},1489(n,t,e){t.ValueConstraintsCheckboxField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{literals=[];constructor(){super()}}t.ValueConstraintsCheckboxField=a},7268(n,t,e){t.YamlFieldReaderCheckbox=void 0;let i=e(8748),a=e(9915),r=e(5675),o=e(2099),s=e(9282),l=e(6145);class c extends r.YamlTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.CheckboxFieldImpl.buildEmpty();g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(m,o.YamlKeys.default);let x=i.ReaderUtil.getNodeList(m,o.YamlKeys.values);return x!==null&&x.forEach(w=>{let C=i.ReaderUtil.getString(w,o.YamlKeys.label),I=i.ReaderUtil.getBoolean(w,o.YamlKeys.selected),O=Object.hasOwn(w,o.YamlKeys.selected);if(C!=null){let E=new a.CheckboxOption(C,I,O);g.valueConstraints.literals.push(E)}}),g}}t.YamlFieldReaderCheckbox=c},4500(n,t,e){t.YamlFieldWriterCheckbox=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),this.expandLiterals(c,l)}}t.YamlFieldWriterCheckbox=o},9916(n,t,e){t.ControlledTermFieldBuilderImpl=void 0;let i=e(5376),a=e(3350),r=e(6731);class o extends a.TemplateFieldBuilder{valueConstraints=new i.ValueConstraintsControlledTermField;constructor(){super()}static create(){return new o}withDefaultValue(l){return this.valueConstraints.defaultValue=l,this}addOntology(l){return this.valueConstraints.ontologies.push(l),this}addValueSet(l){return this.valueConstraints.valueSets.push(l),this}addClass(l){return this.valueConstraints.classes.push(l),this}addBranch(l){return this.valueConstraints.branches.push(l),this}addAction(l){return this.valueConstraints.actions.push(l),this}build(){let l=r.ControlledTermFieldImpl.buildEmpty();return super.buildInternal(l),l.valueConstraints=this.valueConstraints,l}}t.ControlledTermFieldBuilderImpl=o},6731(n,t,e){t.ControlledTermFieldImpl=void 0;let i=e(9129),a=e(5376),r=e(4869),o=e(2763),s=e(3608);class l extends i.TemplateField{valueConstraints;valueRecommendationEnabled=false;constructor(){super(),this.cedarFieldType=r.CedarFieldType.CONTROLLED_TERM,this.valueConstraints=new a.ValueConstraintsControlledTermField,this.cedarArtifactType=o.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}supportsValueRecommendation(){return true}}t.ControlledTermFieldImpl=l},8728(n,t,e){t.JsonFieldReaderControlledTerm=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(8354),s=e(2418),l=e(9184),c=e(2395),d=e(7295),m=e(2733),b=e(7432),u=e(4531),f=e(6731),g=e(5753);class x extends r.JsonTemplateFieldTypeSpecificReader{read(C,I,O,E){let R=f.ControlledTermFieldImpl.buildEmpty();this.readRequiredAndHidden(C,I);let D=i.ReaderUtil.getNode(C,a.CedarModel.valueConstraints);return D!=null&&(R.valueConstraints.ontologies=this.getOntologies(i.ReaderUtil.getNodeList(D,a.CedarModel.ontologies)),R.valueConstraints.classes=this.getClasses(i.ReaderUtil.getNodeList(D,a.CedarModel.classes)),R.valueConstraints.branches=this.getBranches(i.ReaderUtil.getNodeList(D,a.CedarModel.branches)),R.valueConstraints.valueSets=this.getValueSets(i.ReaderUtil.getNodeList(D,a.CedarModel.valueSets)),R.valueConstraints.defaultValue=this.getDefaultValue(i.ReaderUtil.getNodeOrNull(D,a.CedarModel.defaultValue)),R.valueConstraints.actions=this.getActions(i.ReaderUtil.getNodeList(D,a.CedarModel.actions))),R}getOntologies(C){let I=[];return C.forEach(O=>{let E=new o.ControlledTermOntology(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.acronym),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.name),i.ReaderUtil.getNumberOrNull(O,a.CedarModel.ValueConstraints.numTerms),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getClasses(C){let I=[];return C.forEach(O=>{let E=new s.ControlledTermClass(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.label),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.source),u.BioportalTermType.forJsonValue(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.type)),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.prefLabel),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getBranches(C){let I=[];return C.forEach(O=>{let E=new l.ControlledTermBranch(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.source),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.acronym),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.name),i.ReaderUtil.getNumberOrZero(O,a.CedarModel.ValueConstraints.maxDepth),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getValueSets(C){let I=[];return C.forEach(O=>{let E=new c.ControlledTermValueSet(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.vsCollection),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.name),i.ReaderUtil.getNumberOrNull(O,a.CedarModel.ValueConstraints.numTerms),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.uri),...x.readSourceAndVersion(O));I.push(E)}),I}getActions(C){let I=[];return C.forEach(O=>{let E=new b.ControlledTermAction(i.ReaderUtil.getNumber(O,a.CedarModel.ValueConstraints.to),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.action),i.ReaderUtil.getIdentifierURI(O,a.CedarModel.ValueConstraints.termUri),i.ReaderUtil.getURI(O,a.CedarModel.ValueConstraints.sourceUri),i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.source),u.BioportalTermType.forJsonValue(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.type)));I.push(E)}),I}static readSourceAndVersion(C){let I=i.ReaderUtil.getURI(C,a.CedarModel.ValueConstraints.iri),O=i.ReaderUtil.getNodeOrNull(C,a.CedarModel.ValueConstraints.version),E=O===null?null:new g.ControlledTermVersion(i.ReaderUtil.getStringOrEmpty(O,a.CedarModel.ValueConstraints.versionId),i.ReaderUtil.getString(O,a.CedarModel.ValueConstraints.versionEffectiveDate),i.ReaderUtil.getString(O,a.CedarModel.ValueConstraints.versionDeclaredVersion));return[I.isEmpty()?null:I,i.ReaderUtil.getString(C,a.CedarModel.ValueConstraints.sourceSystem),E]}getDefaultValue(C){if(C==null)return null;let I=i.ReaderUtil.getString(C,m.JsonSchema.rdfsLabel);return Object.hasOwn(C,m.JsonSchema.termUri)||I!==null?new d.ControlledTermDefaultValue(i.ReaderUtil.getIdentifierURI(C,m.JsonSchema.termUri),I??""):null}}t.JsonFieldReaderControlledTerm=x},8280(n,t,e){t.JsonFieldWriterControlledTerm=void 0;let i=e(9517),a=e(936),r=e(2748),o=e(2733),s=e(9932);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[o.JsonSchema.properties]=s.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[o.JsonSchema.properties]=s.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}expandValueConstraintsNode(d,m,b){let u=i.JsonNode.getEmptyList();m.valueConstraints.ontologies.forEach(C=>{u.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.ontologies]=u;let f=i.JsonNode.getEmptyList();m.valueConstraints.valueSets.forEach(C=>{f.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.valueSets]=f;let g=i.JsonNode.getEmptyList();m.valueConstraints.classes.forEach(C=>{g.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.classes]=g;let x=i.JsonNode.getEmptyList();m.valueConstraints.branches.forEach(C=>{x.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),d[a.CedarModel.branches]=x;let w=i.JsonNode.getEmptyList();if(m.valueConstraints.actions.forEach(C=>{w.push(this.writers.getWriterForValueConstraint(C).getAsJsonNode(C))}),w.length>0&&(d[a.CedarModel.actions]=w),m.valueConstraints.defaultValue!=null){let C=i.JsonNode.getEmpty();C[o.JsonSchema.termUri]=this.atomicWriter.write(m.valueConstraints.defaultValue.termUri),C[o.JsonSchema.rdfsLabel]=m.valueConstraints.defaultValue.rdfsLabel,d[a.CedarModel.defaultValue]=C}super.expandValueConstraintsNode(d,m,b)}}t.JsonFieldWriterControlledTerm=l},5376(n,t,e){t.ValueConstraintsControlledTermField=void 0;let i=e(4328);class a extends i.ValueConstraints{defaultValue=null;ontologies=[];valueSets=[];classes=[];branches=[];actions=[];constructor(){super()}}t.ValueConstraintsControlledTermField=a},9299(n,t,e){t.YamlFieldReaderControlledTerm=void 0;let i=e(8748),a=e(7295),r=e(4531),o=e(5675),s=e(2099),l=e(8349),c=e(5491),d=e(3091),m=e(2957),b=e(1556),u=e(7733),f=e(6731),g=e(8802),x=e(5753);class w extends o.YamlTemplateFieldTypeSpecificReader{read(I,O,E,R){let D=f.ControlledTermFieldImpl.buildEmpty();i.ReaderUtil.getNodeList(I,s.YamlKeys.values).forEach(z=>{let ie=i.ReaderUtil.getString(z,s.YamlKeys.type);if(ie===l.YamlValues.Controlled.ontology){let $=new c.ControlledTermOntologyBuilder().withAcronym(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withName(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceName)).withUri(this.ontologyUri(z)).withNumTerms(i.ReaderUtil.getNumberOrNull(z,s.YamlKeys.Controlled.termCount));this.readSourceAndVersion(z,$),D.valueConstraints.ontologies.push($.build())}else if(ie===l.YamlValues.Controlled.class){let $=i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termLabel),H=i.ReaderUtil.getString(z,s.YamlKeys.Controlled.termDisplayLabel),me=new d.ControlledTermClassBuilder().withUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termIri)).withSource(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withLabel(H??$).withPrefLabel($).withType(r.BioportalTermType.forYamlValue(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termType)));this.readSourceAndVersion(z,me),D.valueConstraints.classes.push(me.build())}else if(ie===l.YamlValues.Controlled.branch){let $=new m.ControlledTermBranchBuilder().withUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termBaseIri)).withSource(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceName)).withName(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termBaseLabel)).withAcronym(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withMaxDepth(i.ReaderUtil.getNumberOrZero(z,s.YamlKeys.Controlled.termMaxDepth));this.readSourceAndVersion(z,$),D.valueConstraints.branches.push($.build())}else if(ie===l.YamlValues.Controlled.valueSet){let $=new b.ControlledTermValueSetBuilder().withUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termBaseIri)).withNumTerms(i.ReaderUtil.getNumberOrNull(z,s.YamlKeys.Controlled.termCount)).withVsCollection(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withName(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.termBaseLabel));this.readSourceAndVersion(z,$),D.valueConstraints.valueSets.push($.build())}});let F=i.ReaderUtil.getNodeOrNull(I,s.YamlKeys.default);if(F!==null){let z=i.ReaderUtil.getIdentifierURI(F,s.YamlKeys.value),ie=i.ReaderUtil.getStringOrEmpty(F,s.YamlKeys.label);D.valueConstraints.defaultValue=new a.ControlledTermDefaultValue(z,ie)}return i.ReaderUtil.getNodeList(I,s.YamlKeys.actions).forEach(z=>{let ie=new u.ControlledTermActionBuilder().withAction(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.action)).withSource(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.Controlled.sourceAcronym)).withType(r.BioportalTermType.forYamlValue(i.ReaderUtil.getStringOrEmpty(z,s.YamlKeys.type))).withTermUri(i.ReaderUtil.getIdentifierURI(z,s.YamlKeys.Controlled.termIri)).withTo(i.ReaderUtil.getNumber(z,s.YamlKeys.Controlled.to)).withSourceUri(i.ReaderUtil.getURI(z,s.YamlKeys.Controlled.sourceIri));D.valueConstraints.actions.push(ie.build())}),D}ontologyUri(I){return new g.Iri(`https://data.bioontology.org/ontologies/${i.ReaderUtil.getStringOrEmpty(I,s.YamlKeys.Controlled.sourceAcronym)}`)}readSourceAndVersion(I,O){let E=i.ReaderUtil.getURI(I,s.YamlKeys.Controlled.sourceIri);E.isEmpty()||O.withIri(E),O.withSourceSystem(i.ReaderUtil.getString(I,s.YamlKeys.Controlled.sourceSystem));let R=i.ReaderUtil.getNodeOrNull(I,s.YamlKeys.version);R!==null&&O.withVersion(new x.ControlledTermVersion(i.ReaderUtil.getStringOrEmpty(R,s.YamlKeys.Controlled.versionId),i.ReaderUtil.getString(R,s.YamlKeys.Controlled.versionEffectiveDate),i.ReaderUtil.getString(R,s.YamlKeys.Controlled.versionDeclaredVersion)))}}t.YamlFieldReaderControlledTerm=w},9535(n,t,e){t.YamlFieldWriterControlledTerm=void 0;let i=e(9517),a=e(5430),r=e(2099),o=e(4216);class s extends a.YamlTemplateFieldWriterInternal{constructor(c,d){super(c,d)}expandUINodeForYAML(c){return{[r.YamlKeys.datatype]:o.NonStandardDatatype.IRI}}expandValueConstraintsNodeForYAML(c,d,m){if(d.valueConstraints.defaultValue!=null){let f={[r.YamlKeys.value]:this.atomicWriter.write(d.valueConstraints.defaultValue.termUri),[r.YamlKeys.label]:d.valueConstraints.defaultValue.rdfsLabel};c[r.YamlKeys.default]=f}let b=i.JsonNode.getEmptyList();d.valueConstraints.ontologies.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),d.valueConstraints.classes.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),d.valueConstraints.branches.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),d.valueConstraints.valueSets.forEach(f=>{b.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),b.length>0&&(c[r.YamlKeys.values]=b);let u=i.JsonNode.getEmptyList();d.valueConstraints.actions.forEach(f=>{u.push(this.writers.getWriterForValueConstraint(f).getAsJsonNode(f))}),u.length>0&&(c[r.YamlKeys.actions]=u)}}t.YamlFieldWriterControlledTerm=s},1524(n,t,e){t.AbstractJsonControlledTermValueConstraintWriter=void 0;let i=e(9517),a=e(3557),r=e(936);class o extends a.JsonValueConstraintsWriter{writeSourceAndVersion(l,c){c.iri===null||c.iri.isEmpty()||(l[r.CedarModel.ValueConstraints.iri]=this.atomicWriter.write(c.iri)),c.sourceSystem!==null&&(l[r.CedarModel.ValueConstraints.sourceSystem]=c.sourceSystem);let d=c.version;if(d!==null){let m=i.JsonNode.getEmpty();m[r.CedarModel.ValueConstraints.versionId]=d.id,d.effectiveDate!==null&&(m[r.CedarModel.ValueConstraints.versionEffectiveDate]=d.effectiveDate),d.declaredVersion!==null&&(m[r.CedarModel.ValueConstraints.versionDeclaredVersion]=d.declaredVersion),l[r.CedarModel.ValueConstraints.version]=m}}}t.AbstractJsonControlledTermValueConstraintWriter=o},4339(n,t,e){t.AbstractYamlControlledTermValueConstraintWriter=void 0;let i=e(9517),a=e(2500),r=e(2099);class o extends a.YamlValueConstraintsWriter{writeSourceSystem(l,c){c.sourceSystem!==null&&(l[r.YamlKeys.Controlled.sourceSystem]=c.sourceSystem)}writeSourceIri(l,c){c.iri===null||c.iri.isEmpty()||(l[r.YamlKeys.Controlled.sourceIri]=this.atomicWriter.write(c.iri))}writeVersion(l,c){let d=c.version;if(d===null)return;let m=i.JsonNode.getEmpty();m[r.YamlKeys.Controlled.versionId]=d.id,d.effectiveDate!==null&&(m[r.YamlKeys.Controlled.versionEffectiveDate]=d.effectiveDate),d.declaredVersion!==null&&(m[r.YamlKeys.Controlled.versionDeclaredVersion]=d.declaredVersion),l[r.YamlKeys.version]=m}}t.AbstractYamlControlledTermValueConstraintWriter=o},2369(n,t,e){t.ControlledTermAbstractValueConstraint=void 0;let i=e(4328);class a extends i.ValueConstraints{className="ControlledTermAbstractValueConstraint";_iri;_sourceSystem;_version;constructor(o=null,s=null,l=null){super(),this._iri=o,this._sourceSystem=s,this._version=l}get iri(){return this._iri}get sourceSystem(){return this._sourceSystem}get version(){return this._version}}t.ControlledTermAbstractValueConstraint=a},7295(n,t){t.ControlledTermDefaultValue=void 0,t.ControlledTermDefaultValue=class{_termUri;_rdfsLabel;constructor(e,i){this._termUri=e,this._rdfsLabel=i}get termUri(){return this._termUri}get rdfsLabel(){return this._rdfsLabel}isControlledDefaultValue(){return false}}},2480(n,t,e){t.ControlledTermDefaultValueBuilder=void 0;let i=e(8802),a=e(7295),r=e(3539);t.ControlledTermDefaultValueBuilder=class{termUri=i.Iri.empty();rdfsLabel="";withTermUri(o){return this.termUri=o,this}withRdfsLabel(o){return this.rdfsLabel=o,this}build(){return r.ValueConstraintRequirements.requireIri(this.termUri,"a term URI","A controlled-term default value"),r.ValueConstraintRequirements.requireText(this.rdfsLabel,"a label","A controlled-term default value"),new a.ControlledTermDefaultValue(this.termUri,this.rdfsLabel)}}},5753(n,t){t.ControlledTermVersion=void 0,t.ControlledTermVersion=class{_id;_effectiveDate;_declaredVersion;constructor(e,i=null,a=null){this._id=e,this._effectiveDate=i,this._declaredVersion=a}get id(){return this._id}get effectiveDate(){return this._effectiveDate}get declaredVersion(){return this._declaredVersion}}},3539(n,t){t.ValueConstraintRequirements=void 0,t.ValueConstraintRequirements=class{static requireText(e,i,a){if(e==null||e==="")throw new Error(`${a} requires ${i}.`)}static requireIri(e,i,a){if(e==null||e.isEmpty())throw new Error(`${a} requires ${i}. A constraint that points at nothing cannot be resolved.`)}static requireTermType(e,i){if(e==null||e.getJsonValue()===null)throw new Error(`${i} requires a term type.`)}}},7432(n,t,e){t.ControlledTermAction=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermAction";className="ControlledTermAction";_to=null;_action;_termUri;_sourceUri;_source;_type;constructor(o,s,l,c,d,m){super(),this._to=o,this._action=s,this._termUri=l,this._sourceUri=c,this._source=d,this._type=m}get to(){return this._to}get action(){return this._action}get termUri(){return this._termUri}get sourceUri(){return this._sourceUri}get source(){return this._source}get type(){return this._type}}t.ControlledTermAction=a},7733(n,t,e){t.ControlledTermActionBuilder=void 0;let i=e(8802),a=e(7432),r=e(3539),o=e(4531);t.ControlledTermActionBuilder=class{_to=null;_action="";_termUri=i.Iri.empty();_sourceUri=i.Iri.empty();_source="";_type=o.BioportalTermType.NULL;withTo(s){return this._to=s,this}withAction(s){return this._action=s,this}withTermUri(s){return this._termUri=s,this}withSourceUri(s){return this._sourceUri=s,this}withSource(s){return this._source=s,this}withType(s){return this._type=s,this}build(){return r.ValueConstraintRequirements.requireText(this._action,"an action","A controlled-term action"),r.ValueConstraintRequirements.requireIri(this._termUri,"a term URI","A controlled-term action"),r.ValueConstraintRequirements.requireIri(this._sourceUri,"a source URI","A controlled-term action"),r.ValueConstraintRequirements.requireText(this._source,"a source","A controlled-term action"),r.ValueConstraintRequirements.requireTermType(this._type,"A controlled-term action"),new a.ControlledTermAction(this._to,this._action,this._termUri,this._sourceUri,this._source,this._type)}}},8014(n,t,e){t.JsonValueConstraintsActionWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.termUri]=this.atomicWriter.write(l.termUri),c[a.CedarModel.ValueConstraints.source]=l.source,c[a.CedarModel.ValueConstraints.type]=this.atomicWriter.write(l.type),c[a.CedarModel.ValueConstraints.action]=l.action,c[a.CedarModel.ValueConstraints.sourceUri]=this.atomicWriter.write(l.sourceUri),l.to!==null&&(c[a.CedarModel.ValueConstraints.to]=l.to),c}}t.JsonValueConstraintsActionWriter=o},4647(n,t,e){t.YamlValueConstraintsActionWriter=void 0;let i=e(9517),a=e(4339),r=e(2099);class o extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[r.YamlKeys.action]=l.action,l.to!==null&&(c[r.YamlKeys.Controlled.to]=l.to),c[r.YamlKeys.Controlled.termIri]=this.atomicWriter.write(l.termUri),c[r.YamlKeys.Controlled.sourceIri]=this.atomicWriter.write(l.sourceUri),c[r.YamlKeys.Controlled.sourceAcronym]=l.source,c[r.YamlKeys.type]=this.atomicWriter.write(l.type),c}}t.YamlValueConstraintsActionWriter=o},9184(n,t,e){t.ControlledTermBranch=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermBranch";className="ControlledTermBranch";_source;_acronym;_name;_uri;_maxDepth=0;constructor(o,s,l,c,d,m=null,b=null,u=null){super(m,b,u),this._source=o,this._acronym=s,this._uri=d,this._name=l,this._maxDepth=c}get source(){return this._source}get acronym(){return this._acronym}get name(){return this._name}get uri(){return this._uri}get maxDepth(){return this._maxDepth}}t.ControlledTermBranch=a},2957(n,t,e){t.ControlledTermBranchBuilder=void 0;let i=e(8802),a=e(9184),r=e(3539);t.ControlledTermBranchBuilder=class{_source="";_acronym="";_name="";_uri=i.Iri.empty();_maxDepth=0;_iri=null;_sourceSystem=null;_version=null;withSource(o){return this._source=o,this}withAcronym(o){return this._acronym=o,this}withName(o){return this._name=o,this}withUri(o){return this._uri=o,this}withMaxDepth(o){return this._maxDepth=o,this}withIri(o){return this._iri=o,this}withSourceSystem(o){return this._sourceSystem=o,this}withVersion(o){return this._version=o,this}build(){return r.ValueConstraintRequirements.requireIri(this._uri,"a URI","A branch constraint"),r.ValueConstraintRequirements.requireText(this._source,"a source","A branch constraint"),r.ValueConstraintRequirements.requireText(this._acronym,"an acronym","A branch constraint"),r.ValueConstraintRequirements.requireText(this._name,"a name","A branch constraint"),new a.ControlledTermBranch(this._source,this._acronym,this._name,this._maxDepth,this._uri,this._iri,this._sourceSystem,this._version)}}},7054(n,t,e){t.JsonValueConstraintsBranchWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.source]=l.source,c[a.CedarModel.ValueConstraints.acronym]=l.acronym,c[a.CedarModel.ValueConstraints.name]=l.name,c[a.CedarModel.ValueConstraints.maxDepth]=l.maxDepth,this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsBranchWriter=o},3671(n,t,e){t.YamlValueConstraintsBranchWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.branch,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.acronym,d[r.YamlKeys.Controlled.sourceName]=c.source,this.writeSourceIri(d,c),d[r.YamlKeys.Controlled.termBaseIri]=this.atomicWriter.write(c.uri),d[r.YamlKeys.Controlled.termBaseLabel]=c.name,d[r.YamlKeys.Controlled.termMaxDepth]=c.maxDepth,this.writeVersion(d,c),d}}t.YamlValueConstraintsBranchWriter=s},2418(n,t,e){t.ControlledTermClass=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermClass";className="ControlledTermClass";_label;_source;_type;_prefLabel;_uri;constructor(o,s,l,c,d,m=null,b=null,u=null){super(m,b,u),this._label=o,this._source=s,this._type=l,this._prefLabel=c,this._uri=d}get label(){return this._label}get source(){return this._source}get type(){return this._type}get prefLabel(){return this._prefLabel}get uri(){return this._uri}}t.ControlledTermClass=a},3091(n,t,e){t.ControlledTermClassBuilder=void 0;let i=e(8802),a=e(2418),r=e(3539),o=e(4531);t.ControlledTermClassBuilder=class{_label="";_source="";_type=o.BioportalTermType.NULL;_prefLabel="";_uri=i.Iri.empty();_iri=null;_sourceSystem=null;_version=null;withLabel(s){return this._label=s,this}withSource(s){return this._source=s,this}withType(s){return this._type=s,this}withPrefLabel(s){return this._prefLabel=s,this}withUri(s){return this._uri=s,this}withIri(s){return this._iri=s,this}withSourceSystem(s){return this._sourceSystem=s,this}withVersion(s){return this._version=s,this}build(){return r.ValueConstraintRequirements.requireIri(this._uri,"a URI","A class constraint"),r.ValueConstraintRequirements.requireText(this._label,"a label","A class constraint"),r.ValueConstraintRequirements.requireText(this._prefLabel,"a preferred label","A class constraint"),r.ValueConstraintRequirements.requireText(this._source,"a source","A class constraint"),r.ValueConstraintRequirements.requireTermType(this._type,"A class constraint"),new a.ControlledTermClass(this._label,this._source,this._type,this._prefLabel,this._uri,this._iri,this._sourceSystem,this._version)}}},9222(n,t,e){t.JsonValueConstraintsClassWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.source]=l.source,c[a.CedarModel.ValueConstraints.label]=l.label,c[a.CedarModel.ValueConstraints.prefLabel]=l.prefLabel,c[a.CedarModel.ValueConstraints.type]=this.atomicWriter.write(l.type),this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsClassWriter=o},765(n,t,e){t.YamlValueConstraintsClassWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.class,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.source,this.writeSourceIri(d,c),d[r.YamlKeys.Controlled.termIri]=this.atomicWriter.write(c.uri),d[r.YamlKeys.Controlled.termType]=this.atomicWriter.write(c.type),d[r.YamlKeys.Controlled.termLabel]=c.prefLabel,c.label!==c.prefLabel&&(d[r.YamlKeys.Controlled.termDisplayLabel]=c.label),this.writeVersion(d,c),d}}t.YamlValueConstraintsClassWriter=s},8354(n,t,e){t.ControlledTermOntology=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermOntology";className="ControlledTermOntology";_acronym;_name;_uri;_numTerms=0;constructor(o,s,l,c,d=null,m=null,b=null){super(d,m,b),this._acronym=o,this._name=s,this._uri=c,this._numTerms=l}get acronym(){return this._acronym}get name(){return this._name}get uri(){return this._uri}get numTerms(){return this._numTerms}}t.ControlledTermOntology=a},5491(n,t,e){t.ControlledTermOntologyBuilder=void 0;let i=e(8802),a=e(8354),r=e(3539);t.ControlledTermOntologyBuilder=class{acronym="";name="";numTerms=null;uri=i.Iri.empty();iri=null;sourceSystem=null;version=null;withAcronym(o){return this.acronym=o,this}withName(o){return this.name=o,this}withNumTerms(o){return this.numTerms=o,this}withUri(o){return this.uri=o,this}withIri(o){return this.iri=o,this}withSourceSystem(o){return this.sourceSystem=o,this}withVersion(o){return this.version=o,this}build(){return r.ValueConstraintRequirements.requireIri(this.uri,"a URI","An ontology constraint"),r.ValueConstraintRequirements.requireText(this.acronym,"an acronym","An ontology constraint"),r.ValueConstraintRequirements.requireText(this.name,"a name","An ontology constraint"),new a.ControlledTermOntology(this.acronym,this.name,this.numTerms,this.uri,this.iri,this.sourceSystem,this.version)}}},5996(n,t,e){t.JsonValueConstraintsOntologyWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.acronym]=l.acronym,c[a.CedarModel.ValueConstraints.name]=l.name,l.numTerms!==null&&(c[a.CedarModel.ValueConstraints.numTerms]=l.numTerms),this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsOntologyWriter=o},1181(n,t,e){t.YamlValueConstraintsOntologyWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.ontology,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.acronym,d[r.YamlKeys.Controlled.sourceName]=c.name,this.writeSourceIri(d,c),c.numTerms!==null&&(d[r.YamlKeys.Controlled.termCount]=c.numTerms),this.writeVersion(d,c),d}}t.YamlValueConstraintsOntologyWriter=s},2395(n,t,e){t.ControlledTermValueSet=void 0;let i=e(2369);class a extends i.ControlledTermAbstractValueConstraint{static className="ControlledTermValueSet";className="ControlledTermValueSet";_vsCollection;_name;_uri;_numTerms=0;constructor(o,s,l,c,d=null,m=null,b=null){super(d,m,b),this._vsCollection=o,this._name=s,this._uri=c,this._numTerms=l}get vsCollection(){return this._vsCollection}get name(){return this._name}get uri(){return this._uri}get numTerms(){return this._numTerms}}t.ControlledTermValueSet=a},1556(n,t,e){t.ControlledTermValueSetBuilder=void 0;let i=e(8802),a=e(2395),r=e(3539);t.ControlledTermValueSetBuilder=class{_vsCollection="";_name="";_uri=i.Iri.empty();_numTerms=null;_iri=null;_sourceSystem=null;_version=null;withVsCollection(o){return this._vsCollection=o,this}withName(o){return this._name=o,this}withUri(o){return this._uri=o,this}withNumTerms(o){return this._numTerms=o,this}withIri(o){return this._iri=o,this}withSourceSystem(o){return this._sourceSystem=o,this}withVersion(o){return this._version=o,this}build(){return r.ValueConstraintRequirements.requireIri(this._uri,"a URI","A value-set constraint"),r.ValueConstraintRequirements.requireText(this._vsCollection,"a value-set collection","A value-set constraint"),r.ValueConstraintRequirements.requireText(this._name,"a name","A value-set constraint"),new a.ControlledTermValueSet(this._vsCollection,this._name,this._numTerms,this._uri,this._iri,this._sourceSystem,this._version)}}},2813(n,t,e){t.JsonValueConstraintsValueSetWriter=void 0;let i=e(9517),a=e(936),r=e(1524);class o extends r.AbstractJsonControlledTermValueConstraintWriter{constructor(l,c){super(l,c)}getAsJsonString(l,c=2){return JSON.stringify(this.getAsJsonNode(l),null,c)}getAsJsonNode(l){let c=i.JsonNode.getEmpty();return c[a.CedarModel.ValueConstraints.uri]=this.atomicWriter.write(l.uri),c[a.CedarModel.ValueConstraints.vsCollection]=l.vsCollection,c[a.CedarModel.ValueConstraints.name]=l.name,l.numTerms!==null&&(c[a.CedarModel.ValueConstraints.numTerms]=l.numTerms),this.writeSourceAndVersion(c,l),c}}t.JsonValueConstraintsValueSetWriter=o},9532(n,t,e){t.YamlValueConstraintsValueSetWriter=void 0;let i=e(9517),a=e(4339),r=e(2099),o=e(8349);class s extends a.AbstractYamlControlledTermValueConstraintWriter{constructor(c,d){super(c,d)}getAsJsonNode(c){let d=i.JsonNode.getEmpty();return d[r.YamlKeys.type]=o.YamlValues.Controlled.valueSet,this.writeSourceSystem(d,c),d[r.YamlKeys.Controlled.sourceAcronym]=c.vsCollection,this.writeSourceIri(d,c),d[r.YamlKeys.Controlled.termBaseIri]=this.atomicWriter.write(c.uri),d[r.YamlKeys.Controlled.termBaseLabel]=c.name,c.numTerms!==null&&(d[r.YamlKeys.Controlled.termCount]=c.numTerms),this.writeVersion(d,c),d}}t.YamlValueConstraintsValueSetWriter=s},1667(n,t,e){t.EmailFieldBuilderImpl=void 0;let i=e(3350),a=e(4450);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.EmailFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.EmailFieldBuilderImpl=r},4450(n,t,e){t.EmailFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(7765),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EMAIL,this.valueConstraints=new o.ValueConstraintsLiteralField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.EmailFieldImpl=l},2691(n,t,e){t.JsonFieldReaderEmail=void 0;let i=e(4385),a=e(4450),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.EmailFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderEmail=l},9031(n,t,e){t.JsonFieldWriterEmail=void 0;let i=e(2748),a=e(936),r=e(6145);class o extends i.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.CedarModel.defaultValue,c.valueConstraints.defaultValue),super.expandValueConstraintsNode(l,c,d)}}t.JsonFieldWriterEmail=o},3054(n,t,e){t.YamlFieldReaderEmail=void 0;let i=e(5675),a=e(4450),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.EmailFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.literalFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderEmail=s},1038(n,t,e){t.YamlFieldWriterEmail=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterEmail=o},6610(n,t,e){t.ExtDoiFieldBuilderImpl=void 0;let i=e(3350),a=e(997);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtDoiFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtDoiFieldBuilderImpl=r},997(n,t,e){t.ExtDoiFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_DOI,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtDoiFieldImpl=l},8583(n,t,e){t.JsonFieldReaderExtDoi=void 0;let i=e(4385),a=e(997),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtDoiFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtDoi=l},7412(n,t,e){t.JsonFieldWriterExtDoi=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtDoi=l},5907(n,t,e){t.YamlFieldReaderExtDoi=void 0;let i=e(5675),a=e(997),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtDoiFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtDoi=s},6967(n,t,e){t.YamlFieldWriterExtDoi=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtDoi=o},9062(n,t,e){t.ExtNihGrantIdFieldBuilderImpl=void 0;let i=e(3350),a=e(7313);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtNihGrantIdFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtNihGrantIdFieldBuilderImpl=r},7313(n,t,e){t.ExtNihGrantIdFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_NIH_GRANT_ID,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtNihGrantIdFieldImpl=l},1886(n,t,e){t.JsonFieldReaderExtNihGrantId=void 0;let i=e(4385),a=e(7313),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtNihGrantIdFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtNihGrantId=l},5250(n,t,e){t.JsonFieldWriterExtNihGrantId=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtNihGrantId=l},8543(n,t,e){t.YamlFieldReaderExtNihGrantId=void 0;let i=e(5675),a=e(7313),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtNihGrantIdFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtNihGrantId=s},3711(n,t,e){t.YamlFieldWriterExtNihGrantId=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtNihGrantId=o},2376(n,t,e){t.ExtOrcidFieldBuilderImpl=void 0;let i=e(3350),a=e(5967);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtOrcidFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtOrcidFieldBuilderImpl=r},5967(n,t,e){t.ExtOrcidFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_ORCID,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtOrcidFieldImpl=l},4956(n,t,e){t.JsonFieldReaderExtOrcid=void 0;let i=e(4385),a=e(5967),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtOrcidFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtOrcid=l},8096(n,t,e){t.JsonFieldWriterExtOrcid=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtOrcid=l},7123(n,t,e){t.YamlFieldReaderExtOrcid=void 0;let i=e(5675),a=e(5967),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtOrcidFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtOrcid=s},4355(n,t,e){t.YamlFieldWriterExtOrcid=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtOrcid=o},3914(n,t,e){t.ExtPfasFieldBuilderImpl=void 0;let i=e(3350),a=e(6637);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtPfasFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtPfasFieldBuilderImpl=r},6637(n,t,e){t.ExtPfasFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_PFAS,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtPfasFieldImpl=l},6854(n,t,e){t.JsonFieldReaderExtPfas=void 0;let i=e(4385),a=e(6637),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtPfasFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtPfas=l},6122(n,t,e){t.JsonFieldWriterExtPfas=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtPfas=l},5075(n,t,e){t.YamlFieldReaderExtPfas=void 0;let i=e(5675),a=e(6637),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtPfasFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtPfas=s},5587(n,t,e){t.YamlFieldWriterExtPfas=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtPfas=o},7162(n,t,e){t.ExtPubmedFieldBuilderImpl=void 0;let i=e(3350),a=e(2685);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtPubmedFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtPubmedFieldBuilderImpl=r},2685(n,t,e){t.ExtPubmedFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_PUBMED,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtPubmedFieldImpl=l},3028(n,t,e){t.JsonFieldReaderExtPubmed=void 0;let i=e(4385),a=e(2685),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtPubmedFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtPubmed=l},3312(n,t,e){t.JsonFieldWriterExtPubmed=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtPubmed=l},7709(n,t,e){t.YamlFieldReaderExtPubmed=void 0;let i=e(5675),a=e(2685),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtPubmedFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtPubmed=s},6557(n,t,e){t.YamlFieldWriterExtPubmed=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtPubmed=o},7328(n,t,e){t.ExtRorFieldBuilderImpl=void 0;let i=e(3350),a=e(4007);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtRorFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtRorFieldBuilderImpl=r},4007(n,t,e){t.ExtRorFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_ROR,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtRorFieldImpl=l},8244(n,t,e){t.JsonFieldReaderExtRor=void 0;let i=e(4385),a=e(4007),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtRorFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtRor=l},7584(n,t,e){t.JsonFieldWriterExtRor=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtRor=l},6651(n,t,e){t.YamlFieldReaderExtRor=void 0;let i=e(5675),a=e(4007),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtRorFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtRor=s},491(n,t,e){t.YamlFieldWriterExtRor=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtRor=o},3474(n,t,e){t.ExtRridFieldBuilderImpl=void 0;let i=e(3350),a=e(789);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.ExtRridFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.ExtRridFieldBuilderImpl=r},789(n,t,e){t.ExtRridFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.EXT_RRID,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.ExtRridFieldImpl=l},7004(n,t,e){t.JsonFieldReaderExtRrid=void 0;let i=e(4385),a=e(789),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.ExtRridFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderExtRrid=l},4780(n,t,e){t.JsonFieldWriterExtRrid=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterExtRrid=l},6089(n,t,e){t.YamlFieldReaderExtRrid=void 0;let i=e(5675),a=e(789),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.ExtRridFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderExtRrid=s},4077(n,t,e){t.YamlFieldWriterExtRrid=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterExtRrid=o},7095(n,t,e){t.JsonFieldReaderLink=void 0;let i=e(4385),a=e(4084),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.LinkFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.iriFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderLink=l},3691(n,t,e){t.JsonFieldWriterLink=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6145);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNode(d,m,b){s.DefaultValueSerialization.writeIri(d,o.CedarModel.defaultValue,m.valueConstraints.defaultValue),super.expandValueConstraintsNode(d,m,b)}expandPropertiesNode(d){this.behavior.includeSkosNotationForLinksAndControlled()?d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI:d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION}expandRequiredNode(d){}}t.JsonFieldWriterLink=l},9497(n,t,e){t.LinkFieldBuilderImpl=void 0;let i=e(3350),a=e(4084);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.LinkFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.LinkFieldBuilderImpl=r},4084(n,t,e){t.LinkFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1902),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.LINK,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.valueConstraints=new o.ValueConstraintsIriField}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.LinkFieldImpl=l},8568(n,t,e){t.YamlFieldReaderLink=void 0;let i=e(5675),a=e(4084),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.LinkFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.iriFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderLink=s},1784(n,t,e){t.YamlFieldWriterLink=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeIri(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterLink=o},1513(n,t,e){t.MultipleChoiceListFieldBuilderImpl=void 0;let i=e(9513);class a extends i.ListFieldBuilderImpl{constructor(){super(),this.multipleChoice=true}static create(){return new a}build(){return super.build()}}t.MultipleChoiceListFieldBuilderImpl=a},4932(n,t,e){t.MultipleChoiceListFieldImpl=void 0;let i=e(5316),a=e(4869),r=e(3239);class o extends i.ListFieldImpl{constructor(){super(),this.multipleChoice=true,this.cedarFieldType=a.CedarFieldType.MULTIPLE_SELECT_LIST}static buildEmpty(){return new o}isMultiInstanceByDefinition(){return true}createDeploymentBuilder(l){return new r.ChildDeploymentInfoAlwaysMultipleBuilder(this,l)}}t.MultipleChoiceListFieldImpl=o},7124(n,t,e){t.YamlFieldReaderMultiSelectList=void 0;let i=e(5675),a=e(4932);class r extends i.YamlTemplateFieldTypeSpecificReader{read(s,l,c,d){let m=a.MultipleChoiceListFieldImpl.buildEmpty();return i.YamlTemplateFieldTypeSpecificReader.readAndStoreListValueConstraints(s,m),m}}t.YamlFieldReaderMultiSelectList=r},9105(n,t,e){t.SingleChoiceListFieldBuilderImpl=void 0;let i=e(9513);class a extends i.ListFieldBuilderImpl{constructor(){super(),this.multipleChoice=false}static create(){return new a}build(){return super.build()}}t.SingleChoiceListFieldBuilderImpl=a},1676(n,t,e){t.SingleChoiceListFieldImpl=void 0;let i=e(5316),a=e(3608),r=e(4869);class o extends i.ListFieldImpl{constructor(){super(),this.multipleChoice=false,this.cedarFieldType=r.CedarFieldType.SINGLE_SELECT_LIST}static buildEmpty(){return new o}createDeploymentBuilder(l){return new a.ChildDeploymentInfoBuilder(this,l)}}t.SingleChoiceListFieldImpl=o},2709(n,t,e){t.YamlFieldReaderSingleSelectList=void 0;let i=e(5675),a=e(1676);class r extends i.YamlTemplateFieldTypeSpecificReader{read(s,l,c,d){let m=a.SingleChoiceListFieldImpl.buildEmpty();return i.YamlTemplateFieldTypeSpecificReader.readAndStoreListValueConstraints(s,m),m}}t.YamlFieldReaderSingleSelectList=r},2419(n,t,e){t.JsonFieldReaderList=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(4081),s=e(4932),l=e(1676),c=e(6145);class d extends r.JsonTemplateFieldTypeSpecificReader{read(b,u,f,g){let x=l.SingleChoiceListFieldImpl.buildEmpty();this.readRequiredAndHidden(b,u);let w=i.ReaderUtil.getNode(b,a.CedarModel.valueConstraints);if(w!=null){i.ReaderUtil.getBoolean(w,a.CedarModel.multipleChoice)&&(x=s.MultipleChoiceListFieldImpl.buildEmpty()),x.valueConstraints.defaultValue=c.DefaultValueSerialization.literalFromNode(w,a.CedarModel.defaultValue);let C=i.ReaderUtil.getNodeList(w,a.CedarModel.literals);C!==null&&C.forEach(I=>{let O=i.ReaderUtil.getString(I,a.CedarModel.label),E=i.ReaderUtil.getBoolean(I,a.CedarModel.selectedByDefault),R=Object.hasOwn(I,a.CedarModel.selectedByDefault);if(O!=null){let D=new o.ListOption(O,E,R);x.valueConstraints.literals.push(D)}})}return x}}t.JsonFieldReaderList=d},7335(n,t,e){t.JsonFieldWriterList=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),this.expandLiterals(c,l),super.expandValueConstraintsNode(l,c,d),l[i.CedarModel.multipleChoice]=c.multipleChoice}}t.JsonFieldWriterList=o},9513(n,t,e){t.ListFieldBuilderImpl=void 0;let i=e(4081),a=e(3350),r=e(4932),o=e(1676);class s extends a.TemplateFieldBuilder{multipleChoice=false;defaultValue=null;literals=[];constructor(){super()}withDefaultValue(c){return this.defaultValue=c,this}addListOption(c,d){return this.literals.push(new i.ListOption(c,d??false,d!==void 0)),this}build(){let c;if(c=this.multipleChoice?r.MultipleChoiceListFieldImpl.buildEmpty():o.SingleChoiceListFieldImpl.buildEmpty(),super.buildInternal(c),!this.multipleChoice){let d=-1;for(let m=this.literals.length-1;m>=0;m--)if(this.literals[m].selectedByDefault){d=m;break}d!==-1&&this.literals.forEach((m,b)=>{m.selectedByDefault=b===d,m.statesSelectedByDefault=m.selectedByDefault})}return c.valueConstraints.defaultValue=this.defaultValue,c.valueConstraints.literals=this.literals,c}}t.ListFieldBuilderImpl=s},5316(n,t,e){t.ListFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1623);class s extends i.TemplateField{valueConstraints;multipleChoice;constructor(){super(),this.cedarFieldType=a.CedarFieldType.NULL,this.valueConstraints=new o.ValueConstraintsListField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD,this.multipleChoice=false}}t.ListFieldImpl=s},4081(n,t,e){t.ListOption=void 0;let i=e(7282);class a extends i.ChoiceOptionEntity{constructor(o,s,l=true){super(o,s,l)}}t.ListOption=a},1623(n,t,e){t.ValueConstraintsListField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{literals=[];constructor(){super()}}t.ValueConstraintsListField=a},3080(n,t,e){t.YamlFieldWriterList=void 0;let i=e(5430),a=e(9499),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldWriterInternal{constructor(c,d){super(c,d)}expandValueConstraintsNodeForYAML(c,d,m){o.DefaultValueSerialization.writeLiteral(c,r.YamlKeys.default,d.valueConstraints.defaultValue),this.expandLiterals(d,c)}getYamlType(c){return c.multipleChoice?a.YamlArtifactType.MULTI_SELECT_LIST.getValue():a.YamlArtifactType.SINGLE_SELECT_LIST.getValue()}}t.YamlFieldWriterList=s},1769(n,t,e){t.JsonFieldReaderNumeric=void 0;let i=e(8748),a=e(936),r=e(3447),o=e(4385),s=e(4074),l=e(6444);class c extends o.JsonTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.NumericFieldImpl.buildEmpty();this.readRequiredAndHidden(m,b);let x=i.ReaderUtil.getNode(m,a.CedarModel.valueConstraints);if(x!=null){let w=i.ReaderUtil.getString(x,a.CedarModel.numberType);w!==null&&(g.valueConstraints.numberType=r.NumberType.forValue(w)),g.valueConstraints.minValue=i.ReaderUtil.getNumber(x,a.CedarModel.minValue),g.valueConstraints.maxValue=i.ReaderUtil.getNumber(x,a.CedarModel.maxValue),g.valueConstraints.decimalPlaces=i.ReaderUtil.getNumber(x,a.CedarModel.decimalPlace),g.valueConstraints.unitOfMeasure=i.ReaderUtil.getString(x,a.CedarModel.unitOfMeasure),g.valueConstraints.defaultValue=i.ReaderUtil.getNumericDefault(x,a.CedarModel.defaultValue),l.NumericDefaultValueValidator.assertValid(g.valueConstraints.numberType,g.valueConstraints.defaultValue,g.valueConstraints.minValue,g.valueConstraints.maxValue)}return g}}t.JsonFieldReaderNumeric=c},4841(n,t,e){t.JsonFieldWriterNumeric=void 0;let i=e(9932),a=e(2733),r=e(2748),o=e(936),s=e(6444);class l extends r.JsonTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandPropertiesNode(d){d[a.JsonSchema.properties]=i.JsonTemplateFieldContentDynamic.PROPERTIES_VERBATIM_LITERAL}expandRequiredNode(d){d[a.JsonSchema.required]=[a.JsonSchema.atValue,a.JsonSchema.atType]}expandValueConstraintsNode(d,m,b){s.NumericDefaultValueValidator.assertValid(m.valueConstraints.numberType,m.valueConstraints.defaultValue,m.valueConstraints.minValue,m.valueConstraints.maxValue),d[o.CedarModel.numberType]=this.atomicWriter.write(m.valueConstraints.numberType),m.valueConstraints.minValue!=null&&(d[o.CedarModel.minValue]=m.valueConstraints.minValue),m.valueConstraints.maxValue!=null&&(d[o.CedarModel.maxValue]=m.valueConstraints.maxValue),m.valueConstraints.decimalPlaces!=null&&(d[o.CedarModel.decimalPlace]=m.valueConstraints.decimalPlaces),m.valueConstraints.unitOfMeasure!=null&&(d[o.CedarModel.unitOfMeasure]=m.valueConstraints.unitOfMeasure),m.valueConstraints.defaultValue!=null&&(d[o.CedarModel.defaultValue]=String(m.valueConstraints.defaultValue)),super.expandValueConstraintsNode(d,m,b)}}t.JsonFieldWriterNumeric=l},6444(n,t,e){t.NumericDefaultValueValidator=void 0;let i=e(3447);t.NumericDefaultValueValidator=class{static assertValid(a,r,o=null,s=null){if(r===null)return;if(!Number.isFinite(r))throw new Error("Numeric default must be finite.");let l=a.getValue();if(l===null)throw new Error("Numeric default requires a numeric datatype.");let c={[i.NumberTypeValues.BYTE]:[-128,127],[i.NumberTypeValues.SHORT]:[-32768,32767],[i.NumberTypeValues.INT]:[-2147483648,2147483647],[i.NumberTypeValues.LONG]:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER]}[l];if(c!==void 0){if(!Number.isSafeInteger(r))throw new Error(`Numeric default ${r} must be a safely representable integer for ${l}.`);if(r<c[0]||r>c[1])throw new Error(`Numeric default ${r} is outside the ${l} range.`)}if(l===i.NumberTypeValues.FLOAT){let d=Math.abs(r);if(d>34028234663852886e22||d!==0&&d<1401298464324817e-60)throw new Error(`Numeric default ${r} is outside the ${l} range.`)}if(o!==null&&r<o)throw new Error(`Numeric default ${r} is below minValue ${o}.`);if(s!==null&&r>s)throw new Error(`Numeric default ${r} is above maxValue ${s}.`)}}},3675(n,t,e){t.NumericFieldBuilderImpl=void 0;let i=e(3350),a=e(3447),r=e(4074),o=e(6444);class s extends i.TemplateFieldBuilder{numberType=a.NumberType.DECIMAL;minValue=null;maxValue=null;decimalPlaces=null;unitOfMeasure=null;defaultValue=null;constructor(){super()}static create(){return new s}withNumberType(c){return this.numberType=c,this}withMinValue(c){return this.minValue=c,this}withMaxValue(c){return this.maxValue=c,this}withDecimalPlaces(c){return this.decimalPlaces=c,this}withUnitOfMeasure(c){return this.unitOfMeasure=c,this}withDefaultValue(c){return this.defaultValue=c,this}build(){o.NumericDefaultValueValidator.assertValid(this.numberType,this.defaultValue,this.minValue,this.maxValue);let c=r.NumericFieldImpl.buildEmpty();return super.buildInternal(c),c.valueConstraints.numberType=this.numberType,c.valueConstraints.minValue=this.minValue,c.valueConstraints.maxValue=this.maxValue,c.valueConstraints.decimalPlaces=this.decimalPlaces,c.valueConstraints.unitOfMeasure=this.unitOfMeasure,c.valueConstraints.defaultValue=this.defaultValue,c}}t.NumericFieldBuilderImpl=s},4074(n,t,e){t.NumericFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(1211),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.NUMERIC,this.valueConstraints=new o.ValueConstraintsNumericField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.NumericFieldImpl=l},1211(n,t,e){t.ValueConstraintsNumericField=void 0;let i=e(4328),a=e(3447);class r extends i.ValueConstraints{numberType=a.NumberType.DECIMAL;minValue=null;maxValue=null;decimalPlaces=null;unitOfMeasure=null;defaultValue=null;constructor(){super()}}t.ValueConstraintsNumericField=r},1872(n,t,e){t.YamlFieldReaderNumeric=void 0;let i=e(8748),a=e(3447),r=e(5675),o=e(2099),s=e(4074),l=e(6444);class c extends r.YamlTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.NumericFieldImpl.buildEmpty(),x=i.ReaderUtil.getString(m,o.YamlKeys.datatype);return x!==null&&(g.valueConstraints.numberType=a.NumberType.forValue(x)),g.valueConstraints.minValue=i.ReaderUtil.getNumber(m,o.YamlKeys.minValue),g.valueConstraints.maxValue=i.ReaderUtil.getNumber(m,o.YamlKeys.maxValue),g.valueConstraints.decimalPlaces=i.ReaderUtil.getNumber(m,o.YamlKeys.decimalPlaces),g.valueConstraints.unitOfMeasure=i.ReaderUtil.getString(m,o.YamlKeys.unit),g.valueConstraints.defaultValue=i.ReaderUtil.getNumericDefault(m,o.YamlKeys.default),l.NumericDefaultValueValidator.assertValid(g.valueConstraints.numberType,g.valueConstraints.defaultValue,g.valueConstraints.minValue,g.valueConstraints.maxValue),g}}t.YamlFieldReaderNumeric=c},3292(n,t,e){t.YamlFieldWriterNumeric=void 0;let i=e(5430),a=e(2099),r=e(6444);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.NumericDefaultValueValidator.assertValid(c.valueConstraints.numberType,c.valueConstraints.defaultValue,c.valueConstraints.minValue,c.valueConstraints.maxValue),l[a.YamlKeys.datatype]=this.atomicWriter.write(c.valueConstraints.numberType),c.valueConstraints.minValue!=null&&(l[a.YamlKeys.minValue]=c.valueConstraints.minValue),c.valueConstraints.maxValue!=null&&(l[a.YamlKeys.maxValue]=c.valueConstraints.maxValue),c.valueConstraints.decimalPlaces!=null&&(l[a.YamlKeys.decimalPlaces]=c.valueConstraints.decimalPlaces),c.valueConstraints.unitOfMeasure!=null&&(l[a.YamlKeys.unit]=c.valueConstraints.unitOfMeasure),c.valueConstraints.defaultValue!=null&&(l[a.YamlKeys.default]=c.valueConstraints.defaultValue)}}t.YamlFieldWriterNumeric=o},1468(n,t,e){t.JsonFieldReaderPhoneNumber=void 0;let i=e(4385),a=e(7459),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.PhoneNumberFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,o.CedarModel.defaultValue)),f}}t.JsonFieldReaderPhoneNumber=l},6876(n,t,e){t.JsonFieldWriterPhoneNumber=void 0;let i=e(2748),a=e(936),r=e(6145);class o extends i.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.CedarModel.defaultValue,c.valueConstraints.defaultValue),super.expandValueConstraintsNode(l,c,d)}}t.JsonFieldWriterPhoneNumber=o},8084(n,t,e){t.PhoneNumberFieldBuilderImpl=void 0;let i=e(3350),a=e(7459);class r extends i.TemplateFieldBuilder{defaultValue=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}build(){let s=a.PhoneNumberFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s}}t.PhoneNumberFieldBuilderImpl=r},7459(n,t,e){t.PhoneNumberFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(7765),s=e(3608);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.PHONE_NUMBER,this.valueConstraints=new o.ValueConstraintsLiteralField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}}t.PhoneNumberFieldImpl=l},4329(n,t,e){t.YamlFieldReaderPhoneNumber=void 0;let i=e(5675),a=e(7459),r=e(2099),o=e(6145);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.PhoneNumberFieldImpl.buildEmpty();return u.valueConstraints.defaultValue=o.DefaultValueSerialization.literalFromNode(c,r.YamlKeys.default),u}}t.YamlFieldReaderPhoneNumber=s},9821(n,t,e){t.YamlFieldWriterPhoneNumber=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue)}}t.YamlFieldWriterPhoneNumber=o},9053(n,t,e){t.JsonFieldReaderRadio=void 0;let i=e(8748),a=e(936),r=e(3315),o=e(4385),s=e(8618),l=e(6145);class c extends o.JsonTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.RadioFieldImpl.buildEmpty();this.readRequiredAndHidden(m,b);let x=i.ReaderUtil.getNode(m,a.CedarModel.valueConstraints);if(x!=null){g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(x,a.CedarModel.defaultValue);let w=i.ReaderUtil.getNodeList(x,a.CedarModel.literals);w!==null&&w.forEach(C=>{let I=i.ReaderUtil.getString(C,a.CedarModel.label),O=i.ReaderUtil.getBoolean(C,a.CedarModel.selectedByDefault),E=Object.hasOwn(C,a.CedarModel.selectedByDefault);if(I!=null){let R=new r.RadioOption(I,O,E);g.valueConstraints.literals.push(R)}})}return g}}t.JsonFieldReaderRadio=c},9309(n,t,e){t.JsonFieldWriterRadio=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),this.expandLiterals(c,l),super.expandValueConstraintsNode(l,c,d),l[i.CedarModel.multipleChoice]=false}}t.JsonFieldWriterRadio=o},2875(n,t,e){t.RadioFieldBuilderImpl=void 0;let i=e(3350),a=e(3315),r=e(8618);class o extends i.TemplateFieldBuilder{defaultValue=null;literals=[];constructor(){super()}static create(){return new o}addRadioOption(l,c){return this.literals.push(new a.RadioOption(l,c??false,c!==void 0)),this}withDefaultValue(l){return this.defaultValue=l,this}build(){let l=r.RadioFieldImpl.buildEmpty();super.buildInternal(l),l.valueConstraints.defaultValue=this.defaultValue;let c=-1;for(let d=this.literals.length-1;d>=0;d--)if(this.literals[d].selectedByDefault){c=d;break}return c!==-1&&this.literals.forEach((d,m)=>{d.selectedByDefault=m===c,d.statesSelectedByDefault=d.selectedByDefault}),l.valueConstraints.literals=this.literals,l}}t.RadioFieldBuilderImpl=o},8618(n,t,e){t.RadioFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(9931),s=e(587);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.RADIO,this.valueConstraints=new o.ValueConstraintsRadioField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}isSingleInstanceByDefinition(){return true}createDeploymentBuilder(d){return new s.ChildDeploymentInfoAlwaysSingleBuilder(this,d)}}t.RadioFieldImpl=l},3315(n,t,e){t.RadioOption=void 0;let i=e(7282);class a extends i.ChoiceOptionEntity{constructor(o,s,l=true){super(o,s,l)}}t.RadioOption=a},9931(n,t,e){t.ValueConstraintsRadioField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{literals=[];constructor(){super()}}t.ValueConstraintsRadioField=a},4284(n,t,e){t.YamlFieldReaderRadio=void 0;let i=e(8748),a=e(3315),r=e(5675),o=e(2099),s=e(8618),l=e(6145);class c extends r.YamlTemplateFieldTypeSpecificReader{read(m,b,u,f){let g=s.RadioFieldImpl.buildEmpty();g.valueConstraints.defaultValue=l.DefaultValueSerialization.literalFromNode(m,o.YamlKeys.default);let x=i.ReaderUtil.getNodeList(m,o.YamlKeys.values);return x!==null&&x.forEach(w=>{let C=i.ReaderUtil.getString(w,o.YamlKeys.label),I=i.ReaderUtil.getBoolean(w,o.YamlKeys.selected),O=Object.hasOwn(w,o.YamlKeys.selected);if(C!=null){let E=new a.RadioOption(C,I,O);g.valueConstraints.literals.push(E)}}),g}}t.YamlFieldReaderRadio=c},8136(n,t,e){t.YamlFieldWriterRadio=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),this.expandLiterals(c,l)}}t.YamlFieldWriterRadio=o},9315(n,t,e){t.JsonFieldReaderTemporal=void 0;let i=e(8748),a=e(936),r=e(8588),o=e(3764),s=e(7974),l=e(4385),c=e(964),d=e(6342);class m extends l.JsonTemplateFieldTypeSpecificReader{read(u,f,g,x){let w=c.TemporalFieldImpl.buildEmpty();this.readRequiredAndHidden(u,f);let C=i.ReaderUtil.getNode(u,a.CedarModel.ui);C!=null&&(w.temporalGranularity=s.TemporalGranularity.forValue(i.ReaderUtil.getString(C,a.CedarModel.temporalGranularity)),w.inputTimeFormat=o.TimeFormat.forValue(i.ReaderUtil.getString(C,a.CedarModel.inputTimeFormat)),w.timezoneEnabled=i.ReaderUtil.getBoolean(C,a.CedarModel.timezoneEnabled));let I=i.ReaderUtil.getNode(u,a.CedarModel.valueConstraints);if(I!=null){let O=i.ReaderUtil.getString(I,a.CedarModel.temporalType);O!==null&&(w.valueConstraints.temporalType=r.TemporalType.forValue(O)),w.valueConstraints.defaultValue=i.ReaderUtil.getString(I,a.CedarModel.defaultValue),d.TemporalDefaultValueValidator.assertValid(w.valueConstraints.temporalType,w.temporalGranularity,w.valueConstraints.defaultValue)}return w}}t.JsonFieldReaderTemporal=m},5459(n,t,e){t.JsonFieldWriterTemporal=void 0;let i=e(936),a=e(3764),r=e(7974),o=e(2748),s=e(2733),l=e(6342);class c extends o.JsonTemplateFieldWriterInternal{constructor(m,b){super(m,b)}expandUINode(m,b,u){super.expandUINode(m,b,u),b.temporalGranularity!==r.TemporalGranularity.NULL&&(m[i.CedarModel.temporalGranularity]=this.atomicWriter.write(b.temporalGranularity)),r.TemporalGranularity.hasTime(b.temporalGranularity)&&(b.inputTimeFormat!==a.TimeFormat.NULL&&(m[i.CedarModel.inputTimeFormat]=this.atomicWriter.write(b.inputTimeFormat)),m[i.CedarModel.timezoneEnabled]=b.timezoneEnabled)}expandValueConstraintsNode(m,b,u){l.TemporalDefaultValueValidator.assertValid(b.valueConstraints.temporalType,b.temporalGranularity,b.valueConstraints.defaultValue),m[i.CedarModel.temporalType]=this.atomicWriter.write(b.valueConstraints.temporalType),b.valueConstraints.defaultValue!=null&&b.valueConstraints.defaultValue!==""&&(m[i.CedarModel.defaultValue]=b.valueConstraints.defaultValue),super.expandValueConstraintsNode(m,b,u)}expandRequiredNode(m){m[s.JsonSchema.required]=[s.JsonSchema.atValue,s.JsonSchema.atType]}}t.JsonFieldWriterTemporal=c},6342(n,t,e){t.TemporalDefaultValueValidator=void 0;let i=e(7974),a=e(8588);t.TemporalDefaultValueValidator=class{static zone="(?:Z|[+-](?:(?:0\\d|1[0-3]):[0-5]\\d|14:00))?";static hour="(?:[01]\\d|2[0-3])";static minute="[0-5]\\d";static second="[0-5]\\d";static assertValid(r,o,s){if(s===null||s==="")return;let l=r.getValue();if(l===null)throw new Error("Temporal default requires a temporal datatype.");if(!this.isCompatibleGranularity(r,o))throw new Error(`Temporal datatype ${l} is not compatible with ${o.getValue()} granularity.`);let c=this.datePattern(o,l===a.TemporalType.DATE.getValue()),d=this.timePattern(o),m;if(m=l===a.TemporalType.DATE.getValue()?c:l===a.TemporalType.TIME.getValue()?d:this.dateTimePattern(o),!m.test(s)||!this.hasValidCalendarDate(s))throw new Error(`Temporal default "${s}" is not valid for ${l}`+(o.getValue()===null?".":` at ${o.getValue()} granularity.`))}static isCompatibleGranularity(r,o){return o===i.TemporalGranularity.NULL||(r===a.TemporalType.DATE?[i.TemporalGranularity.YEAR,i.TemporalGranularity.MONTH,i.TemporalGranularity.DAY].includes(o):r===a.TemporalType.TIME?i.TemporalGranularity.valuesWithTimes().includes(o):[i.TemporalGranularity.DAY,...i.TemporalGranularity.valuesWithTimes()].includes(o))}static datePattern(r,o){return r===i.TemporalGranularity.YEAR?/^\d{4}$/:r===i.TemporalGranularity.MONTH?/^\d{4}-(?:0[1-9]|1[0-2])$/:r!==i.TemporalGranularity.DAY&&o?/^\d{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12]\d|3[01]))?)?$/:/^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])$/}static timePattern(r){let o=this.zone,s=this.hour,l=this.minute,c=this.second;return r===i.TemporalGranularity.HOUR?new RegExp(`^${s}${o}$`):r===i.TemporalGranularity.MINUTE?new RegExp(`^${s}:${l}${o}$`):r===i.TemporalGranularity.SECOND?new RegExp(`^${s}:${l}:${c}${o}$`):r===i.TemporalGranularity.DECIMAL_SECOND?new RegExp(`^${s}:${l}:${c}\\.\\d+${o}$`):new RegExp(`^${s}(?::${l}(?::${c}(?:\\.\\d+)?)?)?${o}$`)}static dateTimePattern(r){let o="\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\\d|3[01])";return r===i.TemporalGranularity.HOUR||r===i.TemporalGranularity.MINUTE||r===i.TemporalGranularity.SECOND||r===i.TemporalGranularity.DECIMAL_SECOND?new RegExp(`^${o}T${this.timePatternSource(r)}$`):r===i.TemporalGranularity.YEAR||r===i.TemporalGranularity.MONTH?/a^/:r===i.TemporalGranularity.DAY?new RegExp(`^${o}$`):new RegExp(`^${o}(?:T${this.timePatternSource(i.TemporalGranularity.NULL)})?$`)}static timePatternSource(r){return this.timePattern(r).source.replace(/^\^|\$$/g,"")}static hasValidCalendarDate(r){let o=/^(\d{4})-(\d{2})-(\d{2})/.exec(r);if(o===null)return true;let s=Number(o[1]),l=Number(o[2]);return Number(o[3])<=[31,s%4!=0||s%100==0&&s%400!=0?28:29,31,30,31,30,31,31,30,31,30,31][l-1]}}},345(n,t,e){t.TemporalFieldBuilderImpl=void 0;let i=e(3350),a=e(3764),r=e(7974),o=e(8588),s=e(964),l=e(6342);class c extends i.TemplateFieldBuilder{timezoneEnabled=false;inputTimeFormat=a.TimeFormat.NULL;temporalGranularity=r.TemporalGranularity.NULL;temporalType=o.TemporalType.DATETIME;defaultValue=null;constructor(){super()}static create(){return new c}withTimezoneEnabled(m){return this.timezoneEnabled=m,this}withInputTimeFormat(m){return this.inputTimeFormat=m,this}withTemporalGranularity(m){return this.temporalGranularity=m,this}withTemporalType(m){return this.temporalType=m,this}withDefaultValue(m){return this.defaultValue=m,this}build(){l.TemporalDefaultValueValidator.assertValid(this.temporalType,this.temporalGranularity,this.defaultValue);let m=s.TemporalFieldImpl.buildEmpty();return super.buildInternal(m),m.timezoneEnabled=this.timezoneEnabled,m.inputTimeFormat=this.inputTimeFormat,m.temporalGranularity=this.temporalGranularity,m.valueConstraints.temporalType=this.temporalType,m.valueConstraints.defaultValue=this.defaultValue,m}}t.TemporalFieldBuilderImpl=c},964(n,t,e){t.TemporalFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(3567),s=e(3764),l=e(7974),c=e(3608);class d extends i.TemplateField{valueConstraints;timezoneEnabled=false;inputTimeFormat=s.TimeFormat.NULL;temporalGranularity=l.TemporalGranularity.NULL;constructor(){super(),this.cedarFieldType=a.CedarFieldType.TEMPORAL,this.valueConstraints=new o.ValueConstraintsTemporalField,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new d}createDeploymentBuilder(b){return new c.ChildDeploymentInfoBuilder(this,b)}}t.TemporalFieldImpl=d},3567(n,t,e){t.ValueConstraintsTemporalField=void 0;let i=e(4328),a=e(8588);class r extends i.ValueConstraints{temporalType=a.TemporalType.DATETIME;defaultValue=null;constructor(){super()}}t.ValueConstraintsTemporalField=r},384(n,t,e){t.YamlFieldReaderTemporal=void 0;let i=e(8748),a=e(8588),r=e(3764),o=e(7974),s=e(5675),l=e(2099),c=e(964),d=e(6342);class m extends s.YamlTemplateFieldTypeSpecificReader{read(u,f,g,x){let w=c.TemporalFieldImpl.buildEmpty();w.temporalGranularity=o.TemporalGranularity.forValue(i.ReaderUtil.getString(u,l.YamlKeys.granularity)),w.inputTimeFormat=r.TimeFormat.forValue(i.ReaderUtil.getString(u,l.YamlKeys.inputTimeFormat)),w.timezoneEnabled=i.ReaderUtil.getBoolean(u,l.YamlKeys.inputTimeZone);let C=i.ReaderUtil.getString(u,l.YamlKeys.datatype);return C!==null&&(w.valueConstraints.temporalType=a.TemporalType.forValue(C)),w.valueConstraints.defaultValue=i.ReaderUtil.getString(u,l.YamlKeys.default),d.TemporalDefaultValueValidator.assertValid(w.valueConstraints.temporalType,w.temporalGranularity,w.valueConstraints.defaultValue),w}}t.YamlFieldReaderTemporal=m},7436(n,t,e){t.YamlFieldWriterTemporal=void 0;let i=e(3764),a=e(7974),r=e(5430),o=e(2099),s=e(6342);class l extends r.YamlTemplateFieldWriterInternal{constructor(d,m){super(d,m)}expandValueConstraintsNodeForYAML(d,m,b){s.TemporalDefaultValueValidator.assertValid(m.valueConstraints.temporalType,m.temporalGranularity,m.valueConstraints.defaultValue),d[o.YamlKeys.datatype]=this.atomicWriter.write(m.valueConstraints.temporalType),m.temporalGranularity!==a.TemporalGranularity.NULL?(d[o.YamlKeys.granularity]=this.atomicWriter.write(m.temporalGranularity),m.valueConstraints.defaultValue!=null&&m.valueConstraints.defaultValue!==""&&(d[o.YamlKeys.default]=m.valueConstraints.defaultValue),m.temporalGranularity!==a.TemporalGranularity.YEAR&&m.temporalGranularity!==a.TemporalGranularity.MONTH&&m.temporalGranularity!==a.TemporalGranularity.DAY&&(m.inputTimeFormat!==i.TimeFormat.NULL&&(d[o.YamlKeys.inputTimeFormat]=this.atomicWriter.write(m.inputTimeFormat)),m.timezoneEnabled&&(d[o.YamlKeys.inputTimeZone]=m.timezoneEnabled))):m.valueConstraints.defaultValue!=null&&m.valueConstraints.defaultValue!==""&&(d[o.YamlKeys.default]=m.valueConstraints.defaultValue)}}t.YamlFieldWriterTemporal=l},9683(n,t,e){t.JsonFieldReaderTextArea=void 0;let i=e(4385),a=e(5450),r=e(8748),o=e(936),s=e(6145);class l extends i.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=a.TextAreaImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=r.ReaderUtil.getNode(d,o.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,o.CedarModel.defaultValue),f.valueConstraints.minLength=r.ReaderUtil.getNumber(g,o.CedarModel.minLength),f.valueConstraints.maxLength=r.ReaderUtil.getNumber(g,o.CedarModel.maxLength)),f}}t.JsonFieldReaderTextArea=l},275(n,t,e){t.JsonFieldWriterTextArea=void 0;let i=e(2748),a=e(936),r=e(6145);class o extends i.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.CedarModel.defaultValue,c.valueConstraints.defaultValue),c.valueConstraints.minLength!==null&&(l[a.CedarModel.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!==null&&(l[a.CedarModel.maxLength]=c.valueConstraints.maxLength),super.expandValueConstraintsNode(l,c,d)}}t.JsonFieldWriterTextArea=o},1259(n,t,e){t.TextAreaBuilderImpl=void 0;let i=e(3350),a=e(5450);class r extends i.TemplateFieldBuilder{defaultValue=null;minLength=null;maxLength=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}withMinLength(s){return this.minLength=s,this}withMaxLength(s){return this.maxLength=s,this}build(){let s=a.TextAreaImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s.valueConstraints.minLength=this.minLength,s.valueConstraints.maxLength=this.maxLength,s}}t.TextAreaBuilderImpl=r},5450(n,t,e){t.TextAreaImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(3608),s=e(5923);class l extends i.TemplateField{valueConstraints;constructor(){super(),this.cedarFieldType=a.CedarFieldType.TEXTAREA,this.valueConstraints=new s.ValueConstraintsTextArea,this.cedarArtifactType=r.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new o.ChildDeploymentInfoBuilder(this,d)}}t.TextAreaImpl=l},5923(n,t,e){t.ValueConstraintsTextArea=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{minLength=null;maxLength=null;constructor(){super()}}t.ValueConstraintsTextArea=a},3168(n,t,e){t.YamlFieldReaderTextArea=void 0;let i=e(8748),a=e(5675),r=e(5450),o=e(2099),s=e(6145);class l extends a.YamlTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=r.TextAreaImpl.buildEmpty();return f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(d,o.YamlKeys.default),f.valueConstraints.minLength=i.ReaderUtil.getNumber(d,o.YamlKeys.minLength),f.valueConstraints.maxLength=i.ReaderUtil.getNumber(d,o.YamlKeys.maxLength),f}}t.YamlFieldReaderTextArea=l},836(n,t,e){t.YamlFieldWriterTextArea=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),c.valueConstraints.minLength!==null&&(l[a.YamlKeys.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!==null&&(l[a.YamlKeys.maxLength]=c.valueConstraints.maxLength)}}t.YamlFieldWriterTextArea=o},9241(n,t,e){t.JsonFieldReaderTextField=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(6591),s=e(6145);class l extends r.JsonTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=o.TextFieldImpl.buildEmpty();this.readRequiredAndHidden(d,m);let g=i.ReaderUtil.getNode(d,a.CedarModel.valueConstraints);return g!=null&&(f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(g,a.CedarModel.defaultValue),f.valueConstraints.minLength=i.ReaderUtil.getNumber(g,a.CedarModel.minLength),f.valueConstraints.maxLength=i.ReaderUtil.getNumber(g,a.CedarModel.maxLength),f.valueConstraints.regex=i.ReaderUtil.getString(g,a.CedarModel.regex)),f}}t.JsonFieldReaderTextField=l},7501(n,t,e){t.JsonFieldWriterTextField=void 0;let i=e(936),a=e(2748),r=e(6145);class o extends a.JsonTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNode(l,c,d){c.valueConstraints.minLength!==null&&(l[i.CedarModel.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!==null&&(l[i.CedarModel.maxLength]=c.valueConstraints.maxLength),r.DefaultValueSerialization.writeLiteral(l,i.CedarModel.defaultValue,c.valueConstraints.defaultValue),super.expandValueConstraintsNode(l,c,d),c.valueConstraints.regex!==null&&(l[i.CedarModel.regex]=c.valueConstraints.regex)}}t.JsonFieldWriterTextField=o},7889(n,t,e){t.TextFieldBuilderImpl=void 0;let i=e(3350),a=e(6591);class r extends i.TemplateFieldBuilder{defaultValue=null;minLength=null;maxLength=null;regex=null;constructor(){super()}static create(){return new r}withDefaultValue(s){return this.defaultValue=s,this}withMinLength(s){return this.minLength=s,this}withMaxLength(s){return this.maxLength=s,this}withRegex(s){return this.regex=s,this}build(){let s=a.TextFieldImpl.buildEmpty();return super.buildInternal(s),s.valueConstraints.defaultValue=this.defaultValue,s.valueConstraints.minLength=this.minLength,s.valueConstraints.maxLength=this.maxLength,s.valueConstraints.regex=this.regex,s}}t.TextFieldBuilderImpl=r},6591(n,t,e){t.TextFieldImpl=void 0;let i=e(9129),a=e(9711),r=e(4869),o=e(2763),s=e(3608);class l extends i.TemplateField{valueConstraints;valueRecommendationEnabled=false;constructor(){super(),this.cedarFieldType=r.CedarFieldType.TEXT,this.valueConstraints=new a.ValueConstraintsTextField,this.cedarArtifactType=o.CedarArtifactType.TEMPLATE_FIELD}static buildEmpty(){return new l}createDeploymentBuilder(d){return new s.ChildDeploymentInfoBuilder(this,d)}supportsValueRecommendation(){return true}}t.TextFieldImpl=l},9711(n,t,e){t.ValueConstraintsTextField=void 0;let i=e(7765);class a extends i.ValueConstraintsLiteralField{minLength=null;maxLength=null;regex=null;constructor(){super()}}t.ValueConstraintsTextField=a},1268(n,t,e){t.YamlFieldReaderTextField=void 0;let i=e(8748),a=e(5675),r=e(2099),o=e(6591),s=e(6145);class l extends a.YamlTemplateFieldTypeSpecificReader{read(d,m,b,u){let f=o.TextFieldImpl.buildEmpty();return f.valueConstraints.defaultValue=s.DefaultValueSerialization.literalFromNode(d,r.YamlKeys.default),f.valueConstraints.minLength=i.ReaderUtil.getNumber(d,r.YamlKeys.minLength),f.valueConstraints.maxLength=i.ReaderUtil.getNumber(d,r.YamlKeys.maxLength),f.valueConstraints.regex=i.ReaderUtil.getString(d,r.YamlKeys.regex),f}}t.YamlFieldReaderTextField=l},6116(n,t,e){t.YamlFieldWriterTextField=void 0;let i=e(5430),a=e(2099),r=e(6145);class o extends i.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandValueConstraintsNodeForYAML(l,c,d){r.DefaultValueSerialization.writeLiteral(l,a.YamlKeys.default,c.valueConstraints.defaultValue),c.valueConstraints.minLength!=null&&(l[a.YamlKeys.minLength]=c.valueConstraints.minLength),c.valueConstraints.maxLength!=null&&(l[a.YamlKeys.maxLength]=c.valueConstraints.maxLength),c.valueConstraints.regex!=null&&(l[a.YamlKeys.regex]=c.valueConstraints.regex)}}t.YamlFieldWriterTextField=o},8053(n,t,e){t.JsonStaticFieldWriter=void 0;let i=e(7752),a=e(455),r=e(2748),o=e(2733),s=e(9251),l=e(936),c=e(5793),d=e(5747),m=e(3746),b=e(2475);class u extends r.JsonTemplateFieldWriterInternal{constructor(g,x){super(g,x)}expandUiNode(g,x){}buildUIObject(g){let x={[l.CedarModel.inputType]:this.atomicWriter.write(g.cedarFieldType.getUiInputType())};return this.expandUiNode(x,g),l.CedarModel.content in x||(x[l.CedarModel.content]=null),{[l.CedarModel.ui]:x}}getAsJsonNode(g,x=a.ChildDeploymentInfo.empty()){let w=this.buildUIObject(g);return x.hidden&&(w[l.CedarModel.ui][l.CedarModel.Ui.hidden]=true),g.extensions.applyJson(Je(Y(Y(Y(Y(Y(Y(Y(Y(Y({[o.JsonSchema.atId]:this.atomicWriter.write(g.at_id),[o.JsonSchema.atType]:this.atomicWriter.write(g.cedarArtifactType),[o.JsonSchema.atContext]:this.macroContext(g),[l.CedarModel.type]:this.atomicWriter.write(c.JavascriptType.OBJECT),[d.TemplateProperty.title]:g.title,[d.TemplateProperty.description]:g.description},w),this.macroSchemaNameAndDescription(g)),this.macroProvenance(g,this.atomicWriter)),this.macroSkos(g)),this.macroStatusAndVersion(g,this.atomicWriter)),this.macroSchemaIdentifier(g)),this.macroAnnotations(g)),this.macroPreviousVersion(g)),this.macroDerivedFrom(g)),{[o.JsonSchema.schemaVersion]:this.atomicWriter.write(g.schema_schemaVersion),[d.TemplateProperty.additionalProperties]:this.atomicWriter.write(m.AdditionalProperties.FALSE),[l.CedarModel.schema]:this.atomicWriter.write(b.ArtifactSchema.CURRENT)}))}macroContext(g){let x=Y({},s.JsonTemplateFieldContentStatic.CONTEXT_VERBATIM);return g.language!==i.Language.NULL&&(x[o.JsonSchema.atLanguage]=this.atomicWriter.write(g.language)),x}}t.JsonStaticFieldWriter=u},699(n,t){t.isSizedStaticField=function(e){return e!==null&&"width"in e&&"height"in e}},934(n,t,e){t.YamlStaticFieldWriter=void 0;let i=e(9517),a=e(5430),r=e(455);class o extends a.YamlTemplateFieldWriterInternal{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return super.expandUINodeForYAML(l)}expandSizeForYAML(l){return i.JsonNode.getEmpty()}buildUIObject(l){return this.expandUINodeForYAML(l)}getYamlAsJsonNode(l,c=r.ChildDeploymentInfo.empty(),d=false,m=true){return l.extensions.applyYaml(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},this.macroType(l)),this.macroNameAndDescription(l)),this.macroSchemaIdentifier(l)),this.macroId(l,d,m)),this.macroStatusAndVersion(l,d)),this.macroSkos(l)),this.expandUINodeForYAML(l)),c.hasParent()?i.JsonNode.getEmpty():this.expandSizeForYAML(l)),this.macroProvenance(l,d)),this.macroDerivedFrom(l,d)),this.macroPreviousVersion(l,d)),this.macroAnnotations(l)))}}t.YamlStaticFieldWriter=o},9148(n,t,e){t.JsonFieldReaderImage=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(5573);class s extends r.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticImageFieldImpl.buildEmpty(),f=i.ReaderUtil.getNode(c,a.CedarModel.ui);u.content=i.ReaderUtil.getString(f,a.CedarModel.content);let g=i.ReaderUtil.getNode(f,a.CedarModel.size);return u.width=i.ReaderUtil.getNumber(g,a.CedarModel.width),u.height=i.ReaderUtil.getNumber(g,a.CedarModel.height),u}}t.JsonFieldReaderImage=s},8970(n,t,e){t.JsonFieldWriterStaticImage=void 0;let i=e(9517),a=e(936),r=e(8053);class o extends r.JsonStaticFieldWriter{constructor(l,c){super(l,c)}expandUiNode(l,c){if(c.content!==null&&(l[a.CedarModel.content]=c.content),c.width!==null||c.height!==null){let d=i.JsonNode.getEmpty();c.width!==null&&(d[a.CedarModel.width]=c.width),c.height!==null&&(d[a.CedarModel.height]=c.height),l[a.CedarModel.size]=d}}}t.JsonFieldWriterStaticImage=o},3138(n,t,e){t.StaticImageFieldBuilderImpl=void 0;let i=e(3350),a=e(5573);class r extends i.TemplateFieldBuilder{content=null;width=null;height=null;constructor(){super()}static create(){return new r}withContent(s){return this.content=s,this}withWidth(s){return this.width=s,this}withHeight(s){return this.height=s,this}build(){let s=a.StaticImageFieldImpl.buildEmpty();return super.buildInternal(s),s.content=this.content,s.width=this.width,s.height=this.height,s}}t.StaticImageFieldBuilderImpl=r},5573(n,t,e){t.StaticImageFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;width=null;height=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_IMAGE,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticImageFieldImpl=s},7941(n,t,e){t.YamlFieldReaderImage=void 0;let i=e(8748),a=e(2099),r=e(5675),o=e(5573);class s extends r.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticImageFieldImpl.buildEmpty();return u.content=i.ReaderUtil.getString(c,a.YamlKeys.content),u.width=i.ReaderUtil.getNumber(c,a.YamlKeys.width),u.height=i.ReaderUtil.getNumber(c,a.YamlKeys.height),u}}t.YamlFieldReaderImage=s},4935(n,t,e){t.YamlFieldWriterStaticImage=void 0;let i=e(9517),a=e(934),r=e(2099);class o extends a.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){let c=i.JsonNode.getEmpty();return l.content!==null&&(c[r.YamlKeys.content]=l.content),c}expandSizeForYAML(l){let c=i.JsonNode.getEmpty();return l.width!==null&&(c[r.YamlKeys.width]=l.width),l.height!==null&&(c[r.YamlKeys.height]=l.height),c}}t.YamlFieldWriterStaticImage=o},5933(n,t,e){t.JsonFieldReaderPageBreak=void 0;let i=e(4385),a=e(9046),r=e(936),o=e(8748);class s extends i.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticPageBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(o.ReaderUtil.getNode(c,r.CedarModel.ui),r.CedarModel.content),u}}t.JsonFieldReaderPageBreak=s},2347(n,t,e){t.JsonFieldWriterStaticPageBreak=void 0;let i=e(8053),a=e(936);class r extends i.JsonStaticFieldWriter{constructor(s,l){super(s,l)}expandUiNode(s,l){l.content!==null&&(s[a.CedarModel.content]=l.content)}}t.JsonFieldWriterStaticPageBreak=r},2703(n,t,e){t.StaticPageBreakFieldBuilderImpl=void 0;let i=e(3350),a=e(9046);class r extends i.TemplateFieldBuilder{constructor(){super()}static create(){return new r}build(){let s=a.StaticPageBreakFieldImpl.buildEmpty();return super.buildInternal(s),s}}t.StaticPageBreakFieldBuilderImpl=r},9046(n,t,e){t.StaticPageBreakFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_PAGE_BREAK,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticPageBreakFieldImpl=s},4568(n,t,e){t.YamlFieldReaderPageBreak=void 0;let i=e(5675),a=e(9046),r=e(2099),o=e(8748);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticPageBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(c,r.YamlKeys.content),u}}t.YamlFieldReaderPageBreak=s},7594(n,t,e){t.YamlFieldWriterStaticPageBreak=void 0;let i=e(934),a=e(2099),r=e(9517);class o extends i.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return l.content!==null?{[a.YamlKeys.content]:l.content}:r.JsonNode.getEmpty()}}t.YamlFieldWriterStaticPageBreak=o},6291(n,t,e){t.JsonFieldReaderRichText=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(5548);class s extends r.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticRichTextFieldImpl.buildEmpty(),f=i.ReaderUtil.getNode(c,a.CedarModel.ui);return u.content=i.ReaderUtil.getString(f,a.CedarModel.content),u}}t.JsonFieldReaderRichText=s},6029(n,t,e){t.JsonFieldWriterStaticRichText=void 0;let i=e(936),a=e(8053);class r extends a.JsonStaticFieldWriter{constructor(s,l){super(s,l)}expandUiNode(s,l){l.content!==null&&(s[i.CedarModel.content]=l.content)}}t.JsonFieldWriterStaticRichText=r},9521(n,t,e){t.StaticRichTextFieldBuilderImpl=void 0;let i=e(3350),a=e(5548);class r extends i.TemplateFieldBuilder{content=null;constructor(){super()}static create(){return new r}withContent(s){return this.content=s,this}build(){let s=a.StaticRichTextFieldImpl.buildEmpty();return super.buildInternal(s),s.content=this.content,s}}t.StaticRichTextFieldBuilderImpl=r},5548(n,t,e){t.StaticRichTextFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_RICH_TEXT,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticRichTextFieldImpl=s},1404(n,t,e){t.YamlFieldReaderRichText=void 0;let i=e(8748),a=e(5675),r=e(2099),o=e(5548);class s extends a.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticRichTextFieldImpl.buildEmpty();return u.content=i.ReaderUtil.getString(c,r.YamlKeys.content),u}}t.YamlFieldReaderRichText=s},6314(n,t,e){t.YamlFieldWriterStaticRichText=void 0;let i=e(9517),a=e(934),r=e(2099);class o extends a.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return l.content!==null?{[r.YamlKeys.content]:l.content}:i.JsonNode.getEmpty()}}t.YamlFieldWriterStaticRichText=o},6511(n,t,e){t.JsonFieldReaderSectionBreak=void 0;let i=e(4385),a=e(2546),r=e(936),o=e(8748);class s extends i.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticSectionBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(o.ReaderUtil.getNode(c,r.CedarModel.ui),r.CedarModel.content),u}}t.JsonFieldReaderSectionBreak=s},41(n,t,e){t.JsonFieldWriterStaticSectionsBreak=void 0;let i=e(8053),a=e(936);class r extends i.JsonStaticFieldWriter{constructor(s,l){super(s,l)}expandUiNode(s,l){l.content!==null&&(s[a.CedarModel.content]=l.content)}}t.JsonFieldWriterStaticSectionsBreak=r},5795(n,t,e){t.StaticSectionBreakFieldBuilderImpl=void 0;let i=e(3350),a=e(2546);class r extends i.TemplateFieldBuilder{constructor(){super()}static create(){return new r}build(){let s=a.StaticSectionBreakFieldImpl.buildEmpty();return super.buildInternal(s),s}}t.StaticSectionBreakFieldBuilderImpl=r},2546(n,t,e){t.StaticSectionBreakFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{content=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_SECTION_BREAK,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticSectionBreakFieldImpl=s},3980(n,t,e){t.YamlFieldReaderSectionBreak=void 0;let i=e(5675),a=e(2546),r=e(2099),o=e(8748);class s extends i.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=a.StaticSectionBreakFieldImpl.buildEmpty();return u.content=o.ReaderUtil.getString(c,r.YamlKeys.content),u}}t.YamlFieldReaderSectionBreak=s},6082(n,t,e){t.YAMLFieldWriterStaticSectionsBreak=void 0;let i=e(934),a=e(2099),r=e(9517);class o extends i.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){return l.content!==null?{[a.YamlKeys.content]:l.content}:r.JsonNode.getEmpty()}}t.YAMLFieldWriterStaticSectionsBreak=o},8596(n,t,e){t.JsonFieldReaderYoutube=void 0;let i=e(8748),a=e(936),r=e(4385),o=e(477);class s extends r.JsonTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticYoutubeFieldImpl.buildEmpty(),f=i.ReaderUtil.getNode(c,a.CedarModel.ui);u.videoId=i.ReaderUtil.getString(f,a.CedarModel.content);let g=i.ReaderUtil.getNode(f,a.CedarModel.size);return u.width=i.ReaderUtil.getNumber(g,a.CedarModel.width),u.height=i.ReaderUtil.getNumber(g,a.CedarModel.height),u}}t.JsonFieldReaderYoutube=s},6766(n,t,e){t.JsonFieldWriterStaticYoutube=void 0;let i=e(9517),a=e(936),r=e(8053);class o extends r.JsonStaticFieldWriter{constructor(l,c){super(l,c)}expandUiNode(l,c){if(c.videoId!==null&&(l[a.CedarModel.content]=c.videoId),c.width!==null||c.height!==null){let d=i.JsonNode.getEmpty();c.width!==null&&(d[a.CedarModel.width]=c.width),c.height!==null&&(d[a.CedarModel.height]=c.height),l[a.CedarModel.size]=d}}}t.JsonFieldWriterStaticYoutube=o},7674(n,t,e){t.StaticYoutubeFieldBuilderImpl=void 0;let i=e(3350),a=e(477);class r extends i.TemplateFieldBuilder{videoId=null;width=null;height=null;constructor(){super()}static create(){return new r}withVideoId(s){return this.videoId=s,this}withWidth(s){return this.width=s,this}withHeight(s){return this.height=s,this}build(){let s=a.StaticYoutubeFieldImpl.buildEmpty();return super.buildInternal(s),s.videoId=this.videoId,s.width=this.width,s.height=this.height,s}}t.StaticYoutubeFieldBuilderImpl=r},477(n,t,e){t.StaticYoutubeFieldImpl=void 0;let i=e(9129),a=e(4869),r=e(2763),o=e(8290);class s extends i.TemplateField{videoId=null;width=null;height=null;constructor(){super(),this.cedarFieldType=a.CedarFieldType.STATIC_YOUTUBE,this.cedarArtifactType=r.CedarArtifactType.STATIC_TEMPLATE_FIELD}static buildEmpty(){return new s}createDeploymentBuilder(c){return new o.ChildDeploymentInfoStaticBuilder(this,c)}}t.StaticYoutubeFieldImpl=s},7089(n,t,e){t.YamlFieldReaderYoutube=void 0;let i=e(8748),a=e(5675),r=e(2099),o=e(477);class s extends a.YamlTemplateFieldTypeSpecificReader{read(c,d,m,b){let u=o.StaticYoutubeFieldImpl.buildEmpty();return u.videoId=i.ReaderUtil.getString(c,r.YamlKeys.content),u.width=i.ReaderUtil.getNumber(c,r.YamlKeys.width),u.height=i.ReaderUtil.getNumber(c,r.YamlKeys.height),u}}t.YamlFieldReaderYoutube=s},1903(n,t,e){t.YamlFieldWriterStaticYoutube=void 0;let i=e(9517),a=e(934),r=e(2099);class o extends a.YamlStaticFieldWriter{constructor(l,c){super(l,c)}expandUINodeForYAML(l){let c=i.JsonNode.getEmpty();return l.videoId!==null&&(c[r.YamlKeys.content]=l.videoId),c}expandSizeForYAML(l){let c=i.JsonNode.getEmpty();return l.width!==null&&(c[r.YamlKeys.width]=l.width),l.height!==null&&(c[r.YamlKeys.height]=l.height),c}}t.YamlFieldWriterStaticYoutube=o},4033(n,t,e){t.AttributeValueNamePolicy=void 0;let i=e(5588),a=e(9327),r=e(3644),o=e(7723);class s{constructor(){}static isReserved(c){return i.ReservedNames.isReservedName(c)}static findConflicts(c,d="template",m=false){let b=[];return s.scanContainer(c,[],b,d,m),b}static locationOf(c){return c.kind==="reservedField"?[...c.path,c.groupName]:[...c.path,c.groupName,c.name]}static assertValid(c){let d=s.findConflicts(c)[0];if(d===void 0)return;let m=s.locationOf(d).join("/");if(d.kind==="reservedField")throw new Error(`Attribute-value field name "${d.name}" at /${m} is reserved for CEDAR instance metadata`);let b=d.kind==="reserved"?"is reserved for instance metadata":d.kind==="blank"?"must not be blank":d.kind==="sibling"?"collides with another child in the same object":`is also used by attribute-value field "${d.conflictingGroupName}"`;throw new Error(`Attribute-value name "${d.name}" at /${m} ${b}`)}static scanContainer(c,d,m,b,u){for(let I of Object.keys(c.values))i.ReservedNames.requireChildName(I);let f=s.attributeValueGroups(c),g=new Set(f.map(I=>I.name)),x=new Set(f.filter(I=>I.unpacked).flatMap(I=>I.attributeNames)),w=new Set(Object.keys(c.values).filter(I=>!g.has(I)&&!x.has(I))),C=new Map;for(let I of f){i.ReservedNames.isReservedAttributeValueFieldName(I.name,b)&&m.push({kind:"reservedField",name:I.name,groupName:I.name,path:d});let O=new Set;for(let E of I.attributeNames){if(E.trim()===""){u&&m.push({kind:"blank",name:E,groupName:I.name,path:d});continue}s.isReserved(E)&&m.push({kind:"reserved",name:E,groupName:I.name,path:d}),(w.has(E)||g.has(E))&&m.push({kind:"sibling",name:E,groupName:I.name,path:d}),O.has(E)?m.push({kind:"duplicate",name:E,groupName:I.name,path:d,conflictingGroupName:I.name}):O.add(E);let R=C.get(E);R!==void 0&&R!==I.name?m.push({kind:"duplicate",name:E,groupName:I.name,path:d,conflictingGroupName:R}):C.set(E,I.name)}}for(let[I,O]of Object.entries(c.values))g.has(I)||x.has(I)||s.scanValue(O,[...d,I],m,u)}static scanValue(c,d,m,b){c instanceof o.InstanceDataContainer?s.scanContainer(c,d,m,"element",b):Array.isArray(c)&&c.forEach((u,f)=>s.scanValue(u,[...d,f],m,b))}static attributeValueGroups(c){let d=[];for(let[m,b]of Object.entries(c.values))if(b instanceof a.InstanceDataAttributeValueField)d.push({name:m,attributeNames:Object.keys(b.values),unpacked:false});else if(Array.isArray(b)){let u=b.filter(f=>f instanceof r.InstanceDataAttributeValueFieldName).map(f=>f.name);u.length>0&&d.push({name:m,attributeNames:u,unpacked:true})}return d}}t.AttributeValueNamePolicy=s},9327(n,t,e){t.InstanceDataAttributeValueField=void 0;let i=e(5588);t.InstanceDataAttributeValueField=class{_name;_values=Object.create(null);_iris;constructor(a){this._name=a,this._values=Object.create(null),this._iris=Object.create(null)}addValue(a,r){i.ReservedNames.requireChildName(a),this._values[a]=r}get name(){return this._name}get values(){return this._values}setIri(a,r){this._iris[a]=r}get iris(){return this._iris}}},3644(n,t){t.InstanceDataAttributeValueFieldName=void 0,t.InstanceDataAttributeValueFieldName=class{_name;constructor(e){this._name=e}get name(){return this._name}}},7723(n,t,e){t.InstanceDataContainer=void 0;let i=e(5588);t.InstanceDataContainer=class{_id=null;_values;_iris;constructor(){this._values=Object.create(null),this._iris=Object.create(null)}setValue(a,r){i.ReservedNames.requireChildName(a),this._values[a]=r}hasValue(a){return Object.hasOwn(this._values,a)}removeValue(a){delete this._values[a],delete this._iris[a]}get values(){return this._values}set values(a){for(let r of Object.keys(a))i.ReservedNames.requireChildName(r);this._values=Object.assign(Object.create(null),a)}setIri(a,r){this._iris[a]=r}hasIri(a){return Object.hasOwn(this._iris,a)}removeIri(a){delete this._iris[a]}get iris(){return this._iris}set id(a){this._id=a}get id(){return this._id}}},8193(n,t,e){t.InstanceDataControlledAtom=void 0;let i=e(7571);class a{language=null;preferredLabel=null;notation=null;_id;_type;_label;constructor(o,s,l,c=null){if(l!==i.PARSED_NODE&&((0,i.assertIri)(o,"InstanceDataControlledAtom"),s==null||s===""))throw new Error("InstanceDataControlledAtom requires a label. An IRI on its own is a link, not a controlled term.");this._id=o,this._type=l===i.PARSED_NODE?c:l??null,this._label=s}static fromParsedNode(o,s,l=null){return new a(o,s,i.PARSED_NODE,l)}get type(){return this._type}get id(){return this._id}get label(){return this._label}}t.InstanceDataControlledAtom=a},7548(n,t){t.InstanceDataEmptyAtom=void 0,t.InstanceDataEmptyAtom=class{_discarded;constructor(e=null){this._discarded=e}get discarded(){return this._discarded}hasDiscardedContent(){return this._discarded!==null&&Object.keys(this._discarded).length>0}}},4465(n,t){t.InstanceDataEmptyNode=void 0,t.InstanceDataEmptyNode=class{}},9167(n,t){t.InstanceDataLabelAtom=void 0,t.InstanceDataLabelAtom=class{label;type;language=null;preferredLabel=null;notation=null;constructor(e,i=null){this.label=e,this.type=i}}},7571(n,t){function e(a,r){if(a==null||a==="")throw new Error(`${r} requires an IRI. An IRI-valued field with nothing in it is an empty node, not a null IRI.`)}t.InstanceDataLinkAtom=t.PARSED_NODE=void 0,t.assertIri=e,t.PARSED_NODE=Symbol("parsed node");class i{language=null;preferredLabel=null;notation=null;_id;_type;constructor(r,o,s=null){o!==t.PARSED_NODE&&e(r,"InstanceDataLinkAtom"),this._id=r,this._type=o===t.PARSED_NODE?s:o??null}static fromParsedNode(r,o=null){return new i(r,t.PARSED_NODE,o)}get type(){return this._type}get id(){return this._id}}t.InstanceDataLinkAtom=i},1625(n,t){t.InstanceDataNotationAtom=void 0,t.InstanceDataNotationAtom=class{notation;type;language=null;preferredLabel=null;constructor(e,i=null){this.notation=e,this.type=i}}},5222(n,t){t.InstanceDataStringAtom=void 0,t.InstanceDataStringAtom=class{label;language=null;preferredLabel=null;notation=null;_value;constructor(e,i=null){this.label=i,this._value=e}get value(){return this._value}}},4877(n,t){t.InstanceDataTypedAtom=void 0,t.InstanceDataTypedAtom=class{label;language=null;preferredLabel=null;notation=null;_value;_type;constructor(e,i,a=null){if(this.label=a,i==null||i==="")throw new Error("InstanceDataTypedAtom requires a type. A literal with no declared type is an InstanceDataStringAtom.");this._value=e,this._type=i}get value(){return this._value}get type(){return this._type}}},9961(n,t,e){t.InstanceInflater=void 0;let i=e(9129),a=e(4869),r=e(1211),o=e(3567),s=e(5222),l=e(4877),c=e(7723),d=e(4465),m=e(2763),b=e(7661),u=e(513),f=e(3812);class g{constructor(){}static inflate(w,C,I="lowerBound"){return g.inflateContainer(w.dataContainer,C,I),w}static emptyField(w){return w.valueConstraints instanceof r.ValueConstraintsNumericField?new l.InstanceDataTypedAtom(null,w.valueConstraints.numberType.getValue()??"xsd:decimal"):w.valueConstraints instanceof o.ValueConstraintsTemporalField?new l.InstanceDataTypedAtom(null,w.valueConstraints.temporalType.getValue()??"xsd:dateTime"):[a.CedarFieldType.CONTROLLED_TERM,a.CedarFieldType.LINK,a.CedarFieldType.EXT_ROR,a.CedarFieldType.EXT_ORCID,a.CedarFieldType.EXT_PFAS,a.CedarFieldType.EXT_PUBMED,a.CedarFieldType.EXT_RRID,a.CedarFieldType.EXT_NIH_GRANT_ID,a.CedarFieldType.EXT_DOI].includes(w.cedarFieldType)?new d.InstanceDataEmptyNode:new s.InstanceDataStringAtom(null)}static startingOccurrences(w,C){if(w instanceof i.TemplateField&&w.cedarFieldType===a.CedarFieldType.ATTRIBUTE_VALUE)return[];let I=(C instanceof f.AbstractDynamicChildDeploymentInfo?C.minItems:null)??u.AbstractChildDeploymentInfo.defaultMinItems;return Array.from({length:I},()=>w instanceof b.TemplateElement?new c.InstanceDataContainer:w instanceof i.TemplateField?g.emptyField(w):new d.InstanceDataEmptyNode)}static inflateContainer(w,C,I){let O=C.getChildrenInfo(),E=O.getChildIriMap();Object.keys(E).forEach(D=>w.setIri(D,E[D]));let R={};O.getChildrenNames().forEach(D=>{let F=C.getChild(D),z=w.values[D];if(z===void 0){if(C.getChildInfo(D)?.atType===m.CedarArtifactType.STATIC_TEMPLATE_FIELD)return;let ie=C.getChildInfo(D);z=ie?.isMultiInAnyWay()?I==="empty"?[]:g.startingOccurrences(F,ie):F instanceof b.TemplateElement?new c.InstanceDataContainer:F instanceof i.TemplateField?g.emptyField(F):new d.InstanceDataEmptyNode}F instanceof b.TemplateElement&&(z instanceof c.InstanceDataContainer?g.inflateContainer(z,F,I):Array.isArray(z)&&z.forEach(ie=>{ie instanceof c.InstanceDataContainer&&g.inflateContainer(ie,F,I)})),R[D]=z}),Object.keys(w.values).forEach(D=>{Object.hasOwn(R,D)||(R[D]=w.values[D])}),w.values=R}}t.InstanceInflater=g},8410(n,t,e){t.InstanceValidator=void 0;let i=e(7723),a=e(7548),r=e(4465),o=e(5222),s=e(4877),l=e(7571),c=e(8193),d=e(3812),m=e(7661),b=e(964),u=e(4074),f=e(4036),g=e(2888),x=e(9760),w=e(3188),C=e(2733),I=e(9034),O=e(9327),E=e(3644),R=e(4033),D=e(2763),F="InstanceValidator";class z{constructor(){}static validate($,H){let me=new f.JsonArtifactParsingResult;return z.validateContainer($.dataContainer,H,new w.JsonPath,me),me}static validateContainer($,H,me,J){let q=H.getChildrenInfo(),ae=H.cedarArtifactType===D.CedarArtifactType.TEMPLATE?"template":"element";for(let de of R.AttributeValueNamePolicy.findConflicts($,ae).filter(pe=>pe.path.length===0))J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me.add(...R.AttributeValueNamePolicy.locationOf(de)),"a unique, non-reserved attribute-value name",de.name));for(let[de,pe]of z.attributeValueGroups($))for(let Fe of pe){let Me=q.get(Fe);Me!==null&&Me.atType!==D.CedarArtifactType.STATIC_TEMPLATE_FIELD&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me.add(de,Fe),"a name different from every serializable template child",Fe))}for(let de of q.getChildrenNamesForRequiredInProperties())Object.hasOwn($.values,de)||J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,me.add(de),de));for(let de of q.getChildrenNames()){let pe=q.get(de);if(pe?.uiInputType===I.UiInputType.ATTRIBUTE_VALUE)continue;let Fe=$.values[de];Fe!==void 0&&z.validateChild(de,Fe,pe,H.getChild(de),me.add(de),J)}}static attributeValueGroups($){let H=[];for(let[me,J]of Object.entries($.values))if(J instanceof O.InstanceDataAttributeValueField)H.push([me,Object.keys(J.values)]);else if(Array.isArray(J)){let q=J.filter(ae=>ae instanceof E.InstanceDataAttributeValueFieldName).map(ae=>ae.name??"").filter(ae=>ae.length>0);q.length>0&&H.push([me,q])}return H}static validateChild($,H,me,J,q,ae){let de=me?.isMultiInAnyWay()??false,pe=Array.isArray(H)?H:null,Fe=pe!==null;if(de===Fe)return pe!==null?(z.validateCardinality(pe,me,q,ae),void pe.forEach((Me,ut)=>z.validateItem(Me,J,q.add(ut),ae))):void z.validateItem(H,J,q,ae);ae.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,q,de?"a list of values":"a single value",Fe?"a list of values":"a single value"))}static validateCardinality($,H,me,J){if(!(H instanceof d.AbstractDynamicChildDeploymentInfo))return;let{minItems:q,maxItems:ae}=H;q!==null&&$.length<q&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_INDEX_IN_REAL_OBJECT,me,q,$.length)),ae!==null&&$.length>ae&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.UNEXPECTED_INDEX_IN_REAL_OBJECT,me,ae,$.length))}static validateItem($,H,me,J){if(H instanceof m.TemplateElement)return void($ instanceof i.InstanceDataContainer?z.validateContainer($,H,me,J):z.isEmpty($)?z.validateContainer(new i.InstanceDataContainer,H,me,J):J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me,"an element","a field value")));z.validateIri($,me,J);let q=z.declaredValueType(H);q!==null&&z.validateTypedValue($,q,me,J)}static validateIri($,H,me){($ instanceof l.InstanceDataLinkAtom||$ instanceof c.InstanceDataControlledAtom)&&$.id===null&&me.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,H.add(C.JsonSchema.atId),"an IRI",null))}static declaredValueType($){return $ instanceof b.TemporalFieldImpl?$.valueConstraints.temporalType.getValue():$ instanceof u.NumericFieldImpl?$.valueConstraints.numberType.getValue():null}static validateTypedValue($,H,me,J){z.isEmpty($)||($ instanceof s.InstanceDataTypedAtom?$.value!==null&&$.type!==H&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.VALUE_MISMATCH,me.add(C.JsonSchema.atType),H,$.type??void 0)):$ instanceof o.InstanceDataStringAtom&&$.value!==null&&J.addBlueprintComparisonError(new g.ComparisonError(F,x.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,me.add(C.JsonSchema.atType),H)))}static isEmpty($){return $ instanceof a.InstanceDataEmptyAtom||$ instanceof r.InstanceDataEmptyNode||($ instanceof o.InstanceDataStringAtom||$ instanceof s.InstanceDataTypedAtom)&&$.value===null}}t.InstanceValidator=z},2272(n,t,e){t.TemplateInstance=void 0;let i=e(2763),a=e(5697),r=e(7723);class o extends a.AbstractInstanceArtifact{dataContainer;descriptionWasAbsent=false;constructor(){super(),this.cedarArtifactType=i.CedarArtifactType.TEMPLATE_INSTANCE,this.dataContainer=new r.InstanceDataContainer}static buildEmptyWithNullValues(){return new o}}t.TemplateInstance=o},4925(n,t,e){t.TemplateInstanceBuilder=void 0;let i=e(1641),a=e(2272),r=e(7723),o=e(8534);class s extends i.AbstractArtifactBuilder{schema_isBasedOn=o.CedarArtifactId.NULL;dataContainer=new r.InstanceDataContainer;withSchemaIsBasedOn(c){return c instanceof o.CedarArtifactId?this.schema_isBasedOn=c:this.schema_isBasedOn=o.CedarArtifactId.forValue(c),this}withDataValue(c,d){return this.dataContainer.setValue(c,d),this}withDataIri(c,d){return this.dataContainer.setIri(c,d),this}withDataId(c){return this.dataContainer.id=c,this}withDataContainer(c){return this.dataContainer=c,this}build(){let c=a.TemplateInstance.buildEmptyWithNullValues();return c.at_id=this.at_id,c.pav_createdOn=this.pav_createdOn,c.pav_createdBy=this.pav_createdBy,c.pav_lastUpdatedOn=this.pav_lastUpdatedOn,c.oslc_modifiedBy=this.oslc_modifiedBy,c.pav_derivedFrom=this.pav_derivedFrom,c.schema_name=this.schema_name,c.schema_description=this.schema_description,c.schema_isBasedOn=this.schema_isBasedOn,c.dataContainer=this.dataContainer,c}}t.TemplateInstanceBuilder=s},3281(n,t,e){t.Template=void 0;let i=e(3910),a=e(8557),r=e(1027),o=e(5451),s=e(2763);class l extends o.AbstractContainerArtifact{header=null;footer=null;constructor(){super(),this.cedarArtifactType=s.CedarArtifactType.TEMPLATE}static buildEmptyWithNullValues(){return new l}static buildEmptyWithDefaultValues(){let d=new l;return d.schema_schemaVersion=a.SchemaVersion.CURRENT,d.bibo_status=i.BiboStatus.DRAFT,d.pav_version=r.PavVersion.DEFAULT,d}isMultiInstanceByDefinition(){return false}isSingleInstanceByDefinition(){return false}createDeploymentBuilder(d){throw new Error("Method not supported.")}}t.Template=l},766(n,t,e){t.TemplateBuilder=void 0;let i=e(3281),a=e(1641);class r extends a.AbstractArtifactBuilder{header=null;footer=null;instanceTypeSpecification=null;children=[];withHeader(s){return this.header=s,this}withFooter(s){return this.footer=s,this}withInstanceTypeSpecification(s){return this.instanceTypeSpecification=s,this}addChild(s,l){return this.children.push([s,l]),this}build(){let s=i.Template.buildEmptyWithNullValues();return super.buildInternal(s),s.header=this.header,s.footer=this.footer,s.instanceTypeSpecification=this.instanceTypeSpecification,this.children.forEach(([l,c])=>{s.addChild(l,c)}),s}}t.TemplateBuilder=r},9517(n,t){t.JsonNode=void 0,t.JsonNode=class{static getEmpty(){return{}}static getEmptyList(){return[]}static hasEntries(e){return Object.keys(e).length>0}}},4531(n,t){t.BioportalTermType=t.BioportalTermTypeYamlValues=t.P=void 0,t.P={ONTOLOGY_CLASS:"OntologyClass",VALUE:"Value"},t.BioportalTermTypeYamlValues={ONTOLOGY_CLASS:"class",VALUE:"value"};class e{jsonValue;yamlValue;constructor(a,r){this.jsonValue=a,this.yamlValue=r}getJsonValue(){return this.jsonValue}getYamlValue(){return this.yamlValue}static ONTOLOGY_CLASS=new e(t.P.ONTOLOGY_CLASS,t.BioportalTermTypeYamlValues.ONTOLOGY_CLASS);static VALUE=new e(t.P.VALUE,t.BioportalTermTypeYamlValues.VALUE);static NULL=new e(null,null);static values(){return[e.ONTOLOGY_CLASS,e.VALUE]}static forJsonValue(a){for(let r of e.values())if(r.getJsonValue()===a)return r;return this.NULL}static forYamlValue(a){for(let r of e.values())if(r.getYamlValue()===a)return r;return this.NULL}}t.BioportalTermType=e},8534(n,t){t.CedarArtifactId=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static NULL=new e(null);static forValue(a){return a===null||a===""?e.NULL:new e(a)}}t.CedarArtifactId=e},2763(n,t){t.CedarArtifactType=t.df=t.KW=void 0,t.KW={TEMPLATE:"https://schema.metadatacenter.org/core/Template",TEMPLATE_ELEMENT:"https://schema.metadatacenter.org/core/TemplateElement",TEMPLATE_FIELD:"https://schema.metadatacenter.org/core/TemplateField",STATIC_TEMPLATE_FIELD:"https://schema.metadatacenter.org/core/StaticTemplateField",TEMPLATE_INSTANCE:"TemplateInstance"},t.df={TEMPLATE:"template",TEMPLATE_ELEMENT:"templateElement",TEMPLATE_FIELD:"templateField",STATIC_TEMPLATE_FIELD:"staticTemplateField",TEMPLATE_INSTANCE:"instance"};class e{value;yamlValue;constructor(a,r){this.value=a,this.yamlValue=r}getValue(){return this.value}getYamlValue(){return this.yamlValue}static TEMPLATE=new e(t.KW.TEMPLATE,t.df.TEMPLATE);static TEMPLATE_ELEMENT=new e(t.KW.TEMPLATE_ELEMENT,t.df.TEMPLATE_ELEMENT);static TEMPLATE_FIELD=new e(t.KW.TEMPLATE_FIELD,t.df.TEMPLATE_FIELD);static STATIC_TEMPLATE_FIELD=new e(t.KW.STATIC_TEMPLATE_FIELD,t.df.STATIC_TEMPLATE_FIELD);static TEMPLATE_INSTANCE=new e(t.KW.TEMPLATE_INSTANCE,t.df.TEMPLATE_INSTANCE);static NULL=new e(null,null);static values(){return[e.TEMPLATE,e.TEMPLATE_ELEMENT,e.TEMPLATE_FIELD,e.STATIC_TEMPLATE_FIELD,e.TEMPLATE_INSTANCE]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}static forYamlArtifactType(a){return a.isTemplate()?e.TEMPLATE:a.isElement()?e.TEMPLATE_ELEMENT:a.isDynamicField()?e.TEMPLATE_FIELD:a.isStaticField()?e.STATIC_TEMPLATE_FIELD:a.isTemplateInstance()?e.TEMPLATE_INSTANCE:e.NULL}}t.CedarArtifactType=e},8421(n,t){t.CedarFieldCategory=t.I=void 0,t.I={STATIC:"STATIC-field",DYNAMIC:"DYNAMIC-field",NONE:"NONE"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static values(){return[e.STATIC,e.DYNAMIC,e.NONE]}static STATIC=new e(t.I.STATIC);static DYNAMIC=new e(t.I.DYNAMIC);static NONE=new e(t.I.NONE);static NULL=new e(null)}t.CedarFieldCategory=e},4869(n,t,e){t.CedarFieldType=t.K=void 0;let i=e(9034),a=e(9499);t.K={TEXTFIELD:"DYNAMIC-textfield",TEXTAREA:"DYNAMIC-textarea",CONTROLLED_TERM:"DYNAMIC-controlled-term",LINK:"DYNAMIC-link",EXT_ROR:"DYNAMIC-ext-ror",EXT_ORCID:"DYNAMIC-ext-orcid",EXT_PFAS:"DYNAMIC-ext-pfas",EXT_PUBMED:"DYNAMIC-ext-pubmed",EXT_RRID:"DYNAMIC-ext-rrid",EXT_NIH_GRANT_ID:"DYNAMIC-ext-nih-grant-id",EXT_DOI:"DYNAMIC-ext-doi",TEMPORAL:"DYNAMIC-temporal",EMAIL:"DYNAMIC-email",NUMERIC:"DYNAMIC-numeric",PHONE_NUMBER:"DYNAMIC-phone-number",RADIO:"DYNAMIC-radio",CHECKBOX:"DYNAMIC-checkbox",SINGLE_SELECT_LIST:"DYNAMIC-single-select-list",MULTIPLE_SELECT_LIST:"DYNAMIC-multiple-select-list",ATTRIBUTE_VALUE:"DYNAMIC-attribute-value",STATIC_PAGE_BREAK:"STATIC-page-break",STATIC_SECTION_BREAK:"STATIC-section-break",STATIC_IMAGE:"STATIC-image",STATIC_RICH_TEXT:"STATIC-rich_text",STATIC_YOUTUBE:"STATIC-youtube"};class r{value;_uiInputType;_yamlType;staticField;constructor(s,l,c,d){this.value=s,this._uiInputType=l,this._yamlType=c,this.staticField=d}getValue(){return this.value}getUiInputType(){return this._uiInputType}getYamlType(){return this._yamlType}get isStaticField(){return this.staticField}get recordsRequirement(){return!this.staticField&&this.value!==t.K.ATTRIBUTE_VALUE}static values(){return[r.TEXT,r.TEXTAREA,r.CONTROLLED_TERM,r.LINK,r.EXT_ROR,r.EXT_ORCID,r.EXT_PFAS,r.EXT_PUBMED,r.EXT_RRID,r.EXT_NIH_GRANT_ID,r.EXT_DOI,r.TEMPORAL,r.EMAIL,r.NUMERIC,r.PHONE_NUMBER,r.RADIO,r.CHECKBOX,r.SINGLE_SELECT_LIST,r.MULTIPLE_SELECT_LIST,r.ATTRIBUTE_VALUE,r.STATIC_PAGE_BREAK,r.STATIC_SECTION_BREAK,r.STATIC_IMAGE,r.STATIC_RICH_TEXT,r.STATIC_YOUTUBE]}static TEXT=new r(t.K.TEXTFIELD,i.UiInputType.TEXTFIELD,a.YamlArtifactType.TEXTFIELD,false);static TEXTAREA=new r(t.K.TEXTAREA,i.UiInputType.TEXTAREA,a.YamlArtifactType.TEXTAREA,false);static CONTROLLED_TERM=new r(t.K.CONTROLLED_TERM,i.UiInputType.TEXTFIELD,a.YamlArtifactType.CONTROLLED_TERM,false);static LINK=new r(t.K.LINK,i.UiInputType.LINK,a.YamlArtifactType.LINK,false);static EXT_ROR=new r(t.K.EXT_ROR,i.UiInputType.EXT_ROR,a.YamlArtifactType.EXT_ROR,false);static EXT_ORCID=new r(t.K.EXT_ORCID,i.UiInputType.EXT_ORCID,a.YamlArtifactType.EXT_ORCID,false);static EXT_PFAS=new r(t.K.EXT_PFAS,i.UiInputType.EXT_PFAS,a.YamlArtifactType.EXT_PFAS,false);static EXT_PUBMED=new r(t.K.EXT_PUBMED,i.UiInputType.EXT_PUBMED,a.YamlArtifactType.EXT_PUBMED,false);static EXT_RRID=new r(t.K.EXT_RRID,i.UiInputType.EXT_RRID,a.YamlArtifactType.EXT_RRID,false);static EXT_NIH_GRANT_ID=new r(t.K.EXT_NIH_GRANT_ID,i.UiInputType.EXT_NIH_GRANT_ID,a.YamlArtifactType.EXT_NIH_GRANT_ID,false);static EXT_DOI=new r(t.K.EXT_DOI,i.UiInputType.EXT_DOI,a.YamlArtifactType.EXT_DOI,false);static TEMPORAL=new r(t.K.TEMPORAL,i.UiInputType.TEMPORAL,a.YamlArtifactType.TEMPORAL,false);static EMAIL=new r(t.K.EMAIL,i.UiInputType.EMAIL,a.YamlArtifactType.EMAIL,false);static NUMERIC=new r(t.K.NUMERIC,i.UiInputType.NUMERIC,a.YamlArtifactType.NUMERIC,false);static PHONE_NUMBER=new r(t.K.PHONE_NUMBER,i.UiInputType.PHONE_NUMBER,a.YamlArtifactType.PHONE_NUMBER,false);static RADIO=new r(t.K.RADIO,i.UiInputType.RADIO,a.YamlArtifactType.RADIO,false);static CHECKBOX=new r(t.K.CHECKBOX,i.UiInputType.CHECKBOX,a.YamlArtifactType.CHECKBOX,false);static SINGLE_SELECT_LIST=new r(t.K.SINGLE_SELECT_LIST,i.UiInputType.LIST,a.YamlArtifactType.SINGLE_SELECT_LIST,false);static MULTIPLE_SELECT_LIST=new r(t.K.MULTIPLE_SELECT_LIST,i.UiInputType.LIST,a.YamlArtifactType.MULTI_SELECT_LIST,false);static ATTRIBUTE_VALUE=new r(t.K.ATTRIBUTE_VALUE,i.UiInputType.ATTRIBUTE_VALUE,a.YamlArtifactType.ATTRIBUTE_VALUE,false);static STATIC_PAGE_BREAK=new r(t.K.STATIC_PAGE_BREAK,i.UiInputType.PAGE_BREAK,a.YamlArtifactType.PAGE_BREAK,true);static STATIC_SECTION_BREAK=new r(t.K.STATIC_SECTION_BREAK,i.UiInputType.SECTION_BREAK,a.YamlArtifactType.SECTION_BREAK,true);static STATIC_IMAGE=new r(t.K.STATIC_IMAGE,i.UiInputType.IMAGE,a.YamlArtifactType.IMAGE,true);static STATIC_RICH_TEXT=new r(t.K.STATIC_RICH_TEXT,i.UiInputType.RICH_TEXT,a.YamlArtifactType.RICH_TEXT,true);static STATIC_YOUTUBE=new r(t.K.STATIC_YOUTUBE,i.UiInputType.YOUTUBE,a.YamlArtifactType.YOUTUBE,true);static NULL=new r(null,i.UiInputType.NULL,a.YamlArtifactType.NULL,true);static forUiInputType(s){for(let l of r.values())if(l.getUiInputType()===s)return l;return this.NULL}static forYamlArtifactType(s){for(let l of r.values())if(l.getYamlType()===s)return l;return this.NULL}}t.CedarFieldType=r},2234(n,t){t.CedarUser=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static NULL=new e(null);static forValue(a){return a===null?e.NULL:new e(a)}}t.CedarUser=e},3746(n,t){t.AdditionalProperties=t.P=void 0,t.P={FALSE:"false",ALLOW_ATTRIBUTE_VALUE:"allow-attribute-value"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static FALSE=new e(t.P.FALSE);static ALLOW_ATTRIBUTE_VALUE=new e(t.P.ALLOW_ATTRIBUTE_VALUE);static NULL=new e(null);static values(){return[e.FALSE,e.ALLOW_ATTRIBUTE_VALUE]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.AdditionalProperties=e},2475(n,t){t.ArtifactSchema=t.T=void 0,t.T={CURRENT:"http://json-schema.org/draft-04/schema#"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static CURRENT=new e(t.T.CURRENT);static NULL=new e(null);static forValue(a){return new e(a===null?t.T.CURRENT:a)}}t.ArtifactSchema=e},3910(n,t){t.BiboStatus=t.BiboStatusYamlValues=t.l=void 0,t.l={DRAFT:"bibo:draft",PUBLISHED:"bibo:published"},t.BiboStatusYamlValues={DRAFT:"draft",PUBLISHED:"published"};class e{jsonValue;yamlValue;constructor(a,r){this.jsonValue=a,this.yamlValue=r}getJsonValue(){return this.jsonValue}getYamlValue(){return this.yamlValue}static DRAFT=new e(t.l.DRAFT,t.BiboStatusYamlValues.DRAFT);static PUBLISHED=new e(t.l.PUBLISHED,t.BiboStatusYamlValues.PUBLISHED);static NULL=new e(null,null);static values(){return[e.DRAFT,e.PUBLISHED]}static forJsonValue(a){for(let r of e.values())if(r.getJsonValue()===a)return r;return this.NULL}static forYamlValue(a){for(let r of e.values())if(r.getYamlValue()===a)return r;return this.NULL}}t.BiboStatus=e},8802(n,t){t.Iri=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static empty(){return new e("")}isEmpty(){return this.value===""}}t.Iri=e},9857(n,t){t.IsoDate=void 0;class e{date;timezoneOffset;constructor(a,r){this.date=a,this.timezoneOffset=r}static NULL=new e(null,null);getValue(){if(this.date!=null){if(this.timezoneOffset==="Z")return this.date.toISOString().replace(/\.\d{3}Z$/,"Z");let a=this.timezoneOffset.match(/([+-])(\d{2}):(\d{2})/);if(a){let r=a[1]==="+"?1:-1,o=parseInt(a[2],10)*r,s=parseInt(a[3],10)*r,l=this.date.getTime(),c=new Date(l+60*(60*o+s)*1e3),d=c.getUTCFullYear(),m=c.getUTCMonth()+1,b=c.getUTCDate(),u=c.getUTCHours(),f=c.getUTCMinutes(),g=c.getUTCSeconds();return`${d}-${m.toString().padStart(2,"0")}-${b.toString().padStart(2,"0")}T${u.toString().padStart(2,"0")}:${f.toString().padStart(2,"0")}:${g.toString().padStart(2,"0")}${this.timezoneOffset}`}return null}return null}static forValue(a){if(!a)return e.NULL;a=a.replace(/([+-]\d{2})(\d{2})$/,"$1:$2");let r=a.match(/Z|([+-])([01]\d):?([0-5]\d)$/)?.[0]??"Z",o=new Date(r!=="Z"||a.endsWith("Z")?a:`${a}Z`);return new e(o,r)}static now(){let a=new Date,r=this.getCurrentGMTOffset();return new e(a,r)}static getCurrentGMTOffset(){let a=new Date().getTimezoneOffset(),r=Math.abs(a),o=r%60;return`${a>0?"-":"+"}${Math.floor(r/60).toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}`}}t.IsoDate=e},5793(n,t){t.JavascriptType=t.W=void 0,t.W={ARRAY:"array",OBJECT:"object",STRING:"string"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static ARRAY=new e(t.W.ARRAY);static OBJECT=new e(t.W.OBJECT);static STRING=new e(t.W.STRING);static NULL=new e(null);static values(){return[e.ARRAY,e.OBJECT,e.STRING]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.JavascriptType=e},7752(n,t){t.Language=void 0;class e{value;constructor(a){this.value=a}getValue(){return this.value}static NULL=new e(null);static forValue(a){return a===null||a===""?e.NULL:new e(a)}}t.Language=e},3447(n,t){t.NumberType=t.NumberTypeValues=void 0,t.NumberTypeValues={DECIMAL:"xsd:decimal",INT:"xsd:int",LONG:"xsd:long",BYTE:"xsd:byte",SHORT:"xsd:short",FLOAT:"xsd:float",DOUBLE:"xsd:double"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static DECIMAL=new e(t.NumberTypeValues.DECIMAL);static INT=new e(t.NumberTypeValues.INT);static LONG=new e(t.NumberTypeValues.LONG);static BYTE=new e(t.NumberTypeValues.BYTE);static SHORT=new e(t.NumberTypeValues.SHORT);static FLOAT=new e(t.NumberTypeValues.FLOAT);static DOUBLE=new e(t.NumberTypeValues.DOUBLE);static NULL=new e(null);static values(){return[e.DECIMAL,e.INT,e.LONG,e.BYTE,e.SHORT,e.FLOAT,e.DOUBLE]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.NumberType=e},1027(n,t,e){t.PavVersion=t.o=void 0;let i=e(4506);t.o={DEFAULT:"0.0.1"};class a extends i.SemVer{static DEFAULT=new a(t.o.DEFAULT);static NULL=new a(null);static values(){return[a.DEFAULT,a.NULL]}static forValue(o){for(let s of a.values())if(s.getValue()===o)return s;return new a(o)}}t.PavVersion=a},6389(n,t,e){t.PropertyIri=void 0;let i=e(936);t.PropertyIri=class{static get namespace(){return i.CedarModel.propertyIriPrefix}}},8557(n,t,e){t.SchemaVersion=t.y=void 0;let i=e(4506);t.y={CURRENT:"1.6.0"};class a extends i.SemVer{static CURRENT=new a(t.y.CURRENT);static NULL=new a(null);static values(){return[a.CURRENT]}static forValue(o){for(let s of a.values())if(s.getValue()===o)return s;return new a(o)}}t.SchemaVersion=a},4506(n,t){t.SemVer=void 0,t.SemVer=class{value;constructor(e){this.value=this.validateVersion(e)}getValue(){return this.value}validateVersion(e){if(e===null)return e;let i=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/.exec(e);if(i===null||i.slice(1).some(a=>a.length>10||Number(a)>2147483647))throw new Error(`Invalid version "${e}": expected three numbers without leading zeros, separated by periods.`);if(e==="0.0.0")throw new Error('Invalid version "0.0.0": a version is not all zeros.');return e}}},7974(n,t){t.TemporalGranularity=t.TemporalGranularityValues=void 0,t.TemporalGranularityValues={YEAR:"year",MONTH:"month",DAY:"day",HOUR:"hour",MINUTE:"minute",SECOND:"second",DECIMAL_SECOND:"decimalSecond"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static YEAR=new e(t.TemporalGranularityValues.YEAR);static MONTH=new e(t.TemporalGranularityValues.MONTH);static DAY=new e(t.TemporalGranularityValues.DAY);static HOUR=new e(t.TemporalGranularityValues.HOUR);static MINUTE=new e(t.TemporalGranularityValues.MINUTE);static SECOND=new e(t.TemporalGranularityValues.SECOND);static DECIMAL_SECOND=new e(t.TemporalGranularityValues.DECIMAL_SECOND);static NULL=new e(null);static values(){return[e.YEAR,e.MONTH,e.DAY,e.HOUR,e.MINUTE,e.SECOND,e.DECIMAL_SECOND]}static valuesWithTimes(){return[e.HOUR,e.MINUTE,e.SECOND,e.DECIMAL_SECOND]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}static hasTime(a){return this.valuesWithTimes().includes(a)}}t.TemporalGranularity=e},8588(n,t){t.TemporalType=t.TemporalTypeValues=void 0,t.TemporalTypeValues={DATE:"xsd:date",TIME:"xsd:time",DATETIME:"xsd:dateTime"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static DATE=new e(t.TemporalTypeValues.DATE);static TIME=new e(t.TemporalTypeValues.TIME);static DATETIME=new e(t.TemporalTypeValues.DATETIME);static NULL=new e(null);static values(){return[e.DATE,e.TIME,e.DATETIME]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.TemporalType=e},3764(n,t){t.TimeFormat=t.TimeFormatValues=void 0,t.TimeFormatValues={H24:"24h",H12:"12h"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static H24=new e(t.TimeFormatValues.H24);static H12=new e(t.TimeFormatValues.H12);static NULL=new e(null);static values(){return[e.H24,e.H12]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.TimeFormat=e},9034(n,t){t.UiInputType=t.F=void 0,t.F={TEXTFIELD:"textfield",TEXTAREA:"textarea",LINK:"link",EXT_ROR:"ext-ror",EXT_ORCID:"ext-orcid",EXT_PFAS:"ext-pfas",EXT_PUBMED:"ext-pubmed",EXT_RRID:"ext-rrid",EXT_NIH_GRANT_ID:"ext-nih-grant-id",EXT_DOI:"ext-doi",TEMPORAL:"temporal",EMAIL:"email",NUMERIC:"numeric",PHONE_NUMBER:"phone-number",LIST:"list",CHECKBOX:"checkbox",RADIO:"radio",ATTRIBUTE_VALUE:"attribute-value",PAGE_BREAK:"page-break",SECTION_BREAK:"section-break",IMAGE:"image",RICH_TEXT:"richtext",YOUTUBE:"youtube"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static TEXTFIELD=new e(t.F.TEXTFIELD);static TEXTAREA=new e(t.F.TEXTAREA);static LINK=new e(t.F.LINK);static EXT_ROR=new e(t.F.EXT_ROR);static EXT_ORCID=new e(t.F.EXT_ORCID);static EXT_PFAS=new e(t.F.EXT_PFAS);static EXT_PUBMED=new e(t.F.EXT_PUBMED);static EXT_RRID=new e(t.F.EXT_RRID);static EXT_NIH_GRANT_ID=new e(t.F.EXT_NIH_GRANT_ID);static EXT_DOI=new e(t.F.EXT_DOI);static TEMPORAL=new e(t.F.TEMPORAL);static EMAIL=new e(t.F.EMAIL);static NUMERIC=new e(t.F.NUMERIC);static PHONE_NUMBER=new e(t.F.PHONE_NUMBER);static LIST=new e(t.F.LIST);static CHECKBOX=new e(t.F.CHECKBOX);static RADIO=new e(t.F.RADIO);static ATTRIBUTE_VALUE=new e(t.F.ATTRIBUTE_VALUE);static PAGE_BREAK=new e(t.F.PAGE_BREAK);static SECTION_BREAK=new e(t.F.SECTION_BREAK);static IMAGE=new e(t.F.IMAGE);static RICH_TEXT=new e(t.F.RICH_TEXT);static YOUTUBE=new e(t.F.YOUTUBE);static NULL=new e(null);static values(){return[e.TEXTFIELD,e.TEXTAREA,e.LINK,e.EXT_ROR,e.EXT_ORCID,e.EXT_PFAS,e.EXT_PUBMED,e.EXT_RRID,e.EXT_NIH_GRANT_ID,e.EXT_DOI,e.TEMPORAL,e.EMAIL,e.NUMERIC,e.PHONE_NUMBER,e.LIST,e.CHECKBOX,e.RADIO,e.ATTRIBUTE_VALUE,e.PAGE_BREAK,e.SECTION_BREAK,e.IMAGE,e.RICH_TEXT,e.YOUTUBE,e.NULL]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}}t.UiInputType=e},9499(n,t,e){t.YamlArtifactType=t.YamlArtifactTypeValues=void 0;let i=e(8421);t.YamlArtifactTypeValues={TEMPLATE:"template",ELEMENT:"element",TEXTFIELD:"text-field",CONTROLLED_TERM:"controlled-term-field",TEXTAREA:"text-area-field",LINK:"link-field",EXT_ROR:"ext-ror-field",EXT_ORCID:"ext-orcid-field",EXT_PFAS:"ext-pfas-field",EXT_PUBMED:"ext-pubmed-field",EXT_RRID:"ext-rrid-field",EXT_NIH_GRANT_ID:"ext-nih-grant-id-field",EXT_DOI:"ext-doi-field",TEMPORAL:"temporal-field",EMAIL:"email-field",NUMERIC:"numeric-field",PHONE_NUMBER:"phone-number-field",SINGLE_SELECT_LIST:"single-select-list-field",MULTI_SELECT_LIST:"multi-select-list-field",CHECKBOX:"checkbox-field",RADIO:"radio-field",ATTRIBUTE_VALUE:"attribute-value-field",PAGE_BREAK:"static-page-break",SECTION_BREAK:"static-section-break",IMAGE:"static-image",RICH_TEXT:"static-rich-text",YOUTUBE:"static-youtube-video",TEMPLATE_INSTANCE:"instance"};class a{value;category;constructor(o,s){this.value=o,this.category=s}getValue(){return this.value}static TEMPLATE=new a(t.YamlArtifactTypeValues.TEMPLATE,i.CedarFieldCategory.NONE);static ELEMENT=new a(t.YamlArtifactTypeValues.ELEMENT,i.CedarFieldCategory.NONE);static TEXTFIELD=new a(t.YamlArtifactTypeValues.TEXTFIELD,i.CedarFieldCategory.DYNAMIC);static CONTROLLED_TERM=new a(t.YamlArtifactTypeValues.CONTROLLED_TERM,i.CedarFieldCategory.DYNAMIC);static TEXTAREA=new a(t.YamlArtifactTypeValues.TEXTAREA,i.CedarFieldCategory.DYNAMIC);static LINK=new a(t.YamlArtifactTypeValues.LINK,i.CedarFieldCategory.DYNAMIC);static EXT_ROR=new a(t.YamlArtifactTypeValues.EXT_ROR,i.CedarFieldCategory.DYNAMIC);static EXT_ORCID=new a(t.YamlArtifactTypeValues.EXT_ORCID,i.CedarFieldCategory.DYNAMIC);static EXT_PFAS=new a(t.YamlArtifactTypeValues.EXT_PFAS,i.CedarFieldCategory.DYNAMIC);static EXT_PUBMED=new a(t.YamlArtifactTypeValues.EXT_PUBMED,i.CedarFieldCategory.DYNAMIC);static EXT_RRID=new a(t.YamlArtifactTypeValues.EXT_RRID,i.CedarFieldCategory.DYNAMIC);static EXT_NIH_GRANT_ID=new a(t.YamlArtifactTypeValues.EXT_NIH_GRANT_ID,i.CedarFieldCategory.DYNAMIC);static EXT_DOI=new a(t.YamlArtifactTypeValues.EXT_DOI,i.CedarFieldCategory.DYNAMIC);static TEMPORAL=new a(t.YamlArtifactTypeValues.TEMPORAL,i.CedarFieldCategory.DYNAMIC);static EMAIL=new a(t.YamlArtifactTypeValues.EMAIL,i.CedarFieldCategory.DYNAMIC);static NUMERIC=new a(t.YamlArtifactTypeValues.NUMERIC,i.CedarFieldCategory.DYNAMIC);static PHONE_NUMBER=new a(t.YamlArtifactTypeValues.PHONE_NUMBER,i.CedarFieldCategory.DYNAMIC);static SINGLE_SELECT_LIST=new a(t.YamlArtifactTypeValues.SINGLE_SELECT_LIST,i.CedarFieldCategory.DYNAMIC);static MULTI_SELECT_LIST=new a(t.YamlArtifactTypeValues.MULTI_SELECT_LIST,i.CedarFieldCategory.DYNAMIC);static CHECKBOX=new a(t.YamlArtifactTypeValues.CHECKBOX,i.CedarFieldCategory.DYNAMIC);static RADIO=new a(t.YamlArtifactTypeValues.RADIO,i.CedarFieldCategory.DYNAMIC);static ATTRIBUTE_VALUE=new a(t.YamlArtifactTypeValues.ATTRIBUTE_VALUE,i.CedarFieldCategory.DYNAMIC);static PAGE_BREAK=new a(t.YamlArtifactTypeValues.PAGE_BREAK,i.CedarFieldCategory.STATIC);static SECTION_BREAK=new a(t.YamlArtifactTypeValues.SECTION_BREAK,i.CedarFieldCategory.STATIC);static IMAGE=new a(t.YamlArtifactTypeValues.IMAGE,i.CedarFieldCategory.STATIC);static RICH_TEXT=new a(t.YamlArtifactTypeValues.RICH_TEXT,i.CedarFieldCategory.STATIC);static YOUTUBE=new a(t.YamlArtifactTypeValues.YOUTUBE,i.CedarFieldCategory.STATIC);static TEMPLATE_INSTANCE=new a(t.YamlArtifactTypeValues.TEMPLATE_INSTANCE,i.CedarFieldCategory.NONE);static NULL=new a(null,i.CedarFieldCategory.NULL);static values(){return[a.TEMPLATE,a.ELEMENT,a.TEXTFIELD,a.CONTROLLED_TERM,a.TEXTAREA,a.LINK,a.EXT_ROR,a.EXT_ORCID,a.EXT_PFAS,a.EXT_PUBMED,a.EXT_RRID,a.EXT_NIH_GRANT_ID,a.EXT_DOI,a.TEMPORAL,a.EMAIL,a.NUMERIC,a.PHONE_NUMBER,a.SINGLE_SELECT_LIST,a.MULTI_SELECT_LIST,a.CHECKBOX,a.RADIO,a.ATTRIBUTE_VALUE,a.PAGE_BREAK,a.SECTION_BREAK,a.IMAGE,a.RICH_TEXT,a.YOUTUBE,a.TEMPLATE_INSTANCE,a.NULL]}static forValue(o){for(let s of a.values())if(s.getValue()===o)return s;return this.NULL}isTemplate(){return this.value===t.YamlArtifactTypeValues.TEMPLATE}isElement(){return this.value===t.YamlArtifactTypeValues.ELEMENT}isField(){return this.isDynamicField()||this.isStaticField()}isStaticField(){return this.category===i.CedarFieldCategory.STATIC}isDynamicField(){return this.category===i.CedarFieldCategory.DYNAMIC}isTemplateInstance(){return this.value===t.YamlArtifactTypeValues.TEMPLATE_INSTANCE}}t.YamlArtifactType=a},2888(n,t){t.ComparisonError=void 0,t.ComparisonError=class{errorLocation;errorType;errorPath;expectedValue;encounteredValue;stackTopLines;constructor(e,i,a,r,o){this.errorLocation=e,this.errorType=i,this.errorPath=a,this.expectedValue=r,this.encounteredValue=o}}},9760(n,t){t.ComparisonErrorType=t.e=void 0,t.e={MISSING_KEY_IN_REAL_OBJECT:"missingKeyInRealObject",UNEXPECTED_KEY_IN_REAL_OBJECT:"unexpectedKeyInRealObject",VALUE_MISMATCH:"valueMismatch",MISSING_INDEX_IN_REAL_OBJECT:"missingIndexInRealObject",UNEXPECTED_INDEX_IN_REAL_OBJECT:"unexpectedIndexInRealObject",MISSING_VALUE_IN_REAL_OBJECT:"missingValueInRealObject",UNEXPECTED_VALUE_IN_REAL_OBJECT:"unexpectedValueInRealObject"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static MISSING_KEY_IN_REAL_OBJECT=new e(t.e.MISSING_KEY_IN_REAL_OBJECT);static UNEXPECTED_KEY_IN_REAL_OBJECT=new e(t.e.UNEXPECTED_KEY_IN_REAL_OBJECT);static VALUE_MISMATCH=new e(t.e.VALUE_MISMATCH);static MISSING_INDEX_IN_REAL_OBJECT=new e(t.e.MISSING_INDEX_IN_REAL_OBJECT);static UNEXPECTED_INDEX_IN_REAL_OBJECT=new e(t.e.UNEXPECTED_INDEX_IN_REAL_OBJECT);static MISSING_VALUE_IN_REAL_OBJECT=new e(t.e.MISSING_VALUE_IN_REAL_OBJECT);static UNEXPECTED_VALUE_IN_REAL_OBJECT=new e(t.e.UNEXPECTED_VALUE_IN_REAL_OBJECT);static NULL=new e(null);static values(){return[e.MISSING_KEY_IN_REAL_OBJECT,e.UNEXPECTED_KEY_IN_REAL_OBJECT,e.VALUE_MISMATCH,e.MISSING_INDEX_IN_REAL_OBJECT,e.UNEXPECTED_INDEX_IN_REAL_OBJECT,e.MISSING_VALUE_IN_REAL_OBJECT,e.UNEXPECTED_VALUE_IN_REAL_OBJECT]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}toJSON(){return this.value}}t.ComparisonErrorType=e},4325(n,t){t.ComparisonResult=void 0,t.ComparisonResult=class{comparisonErrors=[];comparisonWarnings=[];addComparisonError(e){this.comparisonErrors.push(e)}getComparisonErrors(){return this.comparisonErrors}getComparisonErrorCount(){return this.comparisonErrors.length}addComparisonWarning(e){this.comparisonWarnings.push(e)}getComparisonWarnings(){return this.comparisonWarnings}getComparisonWarningCount(){return this.comparisonWarnings.length}areEqual(){return this.comparisonErrors.length===0&&this.comparisonWarnings.length===0}merge(e){this.comparisonErrors.push(...e.comparisonErrors),this.comparisonWarnings.push(...e.comparisonWarnings)}}},4036(n,t){t.JsonArtifactParsingResult=void 0,t.JsonArtifactParsingResult=class{blueprintComparisonErrors=[];blueprintComparisonWarnings=[];addBlueprintComparisonError(e){this.blueprintComparisonErrors.push(e)}getBlueprintComparisonErrors(){return this.blueprintComparisonErrors}getBlueprintComparisonErrorCount(){return this.blueprintComparisonErrors.length}addBlueprintComparisonWarning(e){this.blueprintComparisonWarnings.push(e)}getBlueprintComparisonWarnings(){return this.blueprintComparisonWarnings}getBlueprintComparisonWarningCount(){return this.blueprintComparisonWarnings.length}wasSuccessful(){return this.blueprintComparisonErrors.length===0}adheresToBlueprint(){return this.blueprintComparisonErrors.length===0&&this.blueprintComparisonWarnings.length===0}merge(e){this.blueprintComparisonErrors.push(...e.blueprintComparisonErrors),this.blueprintComparisonWarnings.push(...e.blueprintComparisonWarnings)}}},3056(n,t,e){t.JsonObjectComparator=void 0;let i=e(2888),a=e(3188),r=e(9760),o=e(5747),s=e(2733),l=e(936);class c{static compareBothWays(m,b,u,f,g,x=[]){(function w(C,I,O){let E=C.getLastComponent()==s.JsonSchema.required;if(Array.isArray(I)&&Array.isArray(O))if(E){let R=new Set(I),D=new Set(O);I.forEach((F,z)=>{let ie=C.add(z);D.has(F)||m.addBlueprintComparisonError(new i.ComparisonError("oca01",r.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,ie,F))}),O.forEach((F,z)=>{let ie=C.add(z);R.has(F)||m.addBlueprintComparisonError(new i.ComparisonError("oca02",r.ComparisonErrorType.UNEXPECTED_VALUE_IN_REAL_OBJECT,ie,void 0,F))})}else{let R=Math.max(I.length,O.length);for(let D=0;D<R;D++){let F=C.add(D);D in I?D in O?typeof I[D]=="object"&&I[D]!==null&&typeof O[D]=="object"&&O[D]!==null?w(F,I[D],O[D]):I[D]!==O[D]&&m.addBlueprintComparisonError(new i.ComparisonError("ocl03",r.ComparisonErrorType.VALUE_MISMATCH,F,I[D],O[D])):m.addBlueprintComparisonError(new i.ComparisonError("ocl02",r.ComparisonErrorType.MISSING_INDEX_IN_REAL_OBJECT,F,I[D])):m.addBlueprintComparisonError(new i.ComparisonError("ocl01",r.ComparisonErrorType.UNEXPECTED_INDEX_IN_REAL_OBJECT,F,void 0,O[D]))}}else new Set([...Object.keys(I),...Object.keys(O)]).forEach(R=>{let D=C.add(R);if(R in I)if(R in O){if(typeof I[R]=="object"&&I[R]!==null&&typeof O[R]=="object"&&O[R]!==null)w(D,I[R],O[R]);else if(I[R]!==O[R]){let F=new i.ComparisonError("oco03",r.ComparisonErrorType.VALUE_MISMATCH,D,I[R],O[R]);g.useWarningForKnownIssues()&&c.isKnownProductionVariation(D)?m.addBlueprintComparisonWarning(F):m.addBlueprintComparisonError(F)}}else g.useWarningForKnownIssues()&&(D.endsIn(l.CedarModel.literals,a.JsonPath.ANY,l.CedarModel.selectedByDefault)||D.endsIn(l.CedarModel.ui,l.CedarModel.pages)||c.isKnownProductionVariation(D))?m.addBlueprintComparisonWarning(new i.ComparisonError("wco02",r.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,D)):m.addBlueprintComparisonError(new i.ComparisonError("oco02",r.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,D));else g.useWarningForKnownIssues()&&(D.endsIn(s.JsonSchema.properties,s.JsonSchema.atLanguage)||c.isKnownProductionVariation(D))?m.addBlueprintComparisonWarning(new i.ComparisonError("wco01",r.ComparisonErrorType.UNEXPECTED_KEY_IN_REAL_OBJECT,D)):x.includes(R)||m.addBlueprintComparisonError(new i.ComparisonError("oco01",r.ComparisonErrorType.UNEXPECTED_KEY_IN_REAL_OBJECT,D))})})(f,b,u)}static isKnownProductionVariation(m){return m.endsIn(s.JsonSchema.atContext,o.TemplateProperty.additionalProperties)||m.endsIn(s.JsonSchema.atContext,s.JsonSchema.properties,a.JsonPath.ANY,l.CedarModel.enum,a.JsonPath.ANY)||m.endsIn(s.JsonSchema.atContext,s.JsonSchema.required,a.JsonPath.ANY)||m.endsIn(s.JsonSchema.atContext,a.JsonPath.ANY)||m.endsIn(l.CedarModel.ui,l.CedarModel.propertyDescriptions,a.JsonPath.ANY)||m.endsIn(l.CedarModel.ui,l.CedarModel.propertyDescriptions)||m.endsIn(l.CedarModel.ui,l.CedarModel.propertyLabels)||m.endsIn(s.JsonSchema.properties,a.JsonPath.ANY,l.CedarModel.enum,a.JsonPath.ANY)||m.endsIn(s.JsonSchema.required)}static reportToLeft(m,b,u){b.useWarningForKnownIssues()&&c.isKnownProductionVariation(u.errorPath)?m.addBlueprintComparisonWarning(u):m.addBlueprintComparisonError(u)}static compareToLeft(m,b,u,f,g){(function x(w,C,I){let O=w.getLastComponent()==s.JsonSchema.required;if(Array.isArray(C)&&Array.isArray(I))if(O){let E=new Set(I);C.forEach((R,D)=>{let F=w.add(D);E.has(R)||c.reportToLeft(m,g,new i.ComparisonError("ola01",r.ComparisonErrorType.MISSING_VALUE_IN_REAL_OBJECT,F,R))})}else C.forEach((E,R)=>{let D=w.add(R);R in I?typeof E=="object"&&E!==null&&typeof I[R]=="object"&&I[R]!==null?x(D,E,I[R]):E!==I[R]&&c.reportToLeft(m,g,new i.ComparisonError("oll02",r.ComparisonErrorType.VALUE_MISMATCH,D,E,I[R])):c.reportToLeft(m,g,new i.ComparisonError("oll01",r.ComparisonErrorType.MISSING_INDEX_IN_REAL_OBJECT,D,C[R]))});else Object.keys(C).forEach(E=>{let R=w.add(E);E in I?typeof C[E]=="object"&&C[E]!==null&&typeof I[E]=="object"&&I[E]!==null?x(R,C[E],I[E]):C[E]!==I[E]&&c.reportToLeft(m,g,new i.ComparisonError("olo02",r.ComparisonErrorType.VALUE_MISMATCH,R,C[E],I[E])):c.reportToLeft(m,g,new i.ComparisonError("olo01",r.ComparisonErrorType.MISSING_KEY_IN_REAL_OBJECT,R))})})(f,b,u)}static comparePrimitive(m,b,u,f){return b!==u&&m.addBlueprintComparisonError(new i.ComparisonError("opp1",r.ComparisonErrorType.VALUE_MISMATCH,f,b,u)),m}}t.JsonObjectComparator=c},1591(n,t){t.YamlArtifactParsingResult=void 0,t.YamlArtifactParsingResult=class{blueprintComparisonErrors=[];blueprintComparisonWarnings=[];addBlueprintComparisonError(e){this.blueprintComparisonErrors.push(e)}getBlueprintComparisonErrors(){return this.blueprintComparisonErrors}getBlueprintComparisonErrorCount(){return this.blueprintComparisonErrors.length}addBlueprintComparisonWarning(e){this.blueprintComparisonWarnings.push(e)}getBlueprintComparisonWarnings(){return this.blueprintComparisonWarnings}getBlueprintComparisonWarningCount(){return this.blueprintComparisonWarnings.length}wasSuccessful(){return this.blueprintComparisonErrors.length===0}adheresToBlueprint(){return this.blueprintComparisonErrors.length===0&&this.blueprintComparisonWarnings.length===0}merge(e){this.blueprintComparisonErrors.push(...e.blueprintComparisonErrors),this.blueprintComparisonWarnings.push(...e.blueprintComparisonWarnings)}}},6109(n,t){t.YamlComparisonErrorType=t.H=void 0,t.H={MISSING_KEY_IN_RIGHT_OBJECT:"missingKeyInRightObject",UNEXPECTED_KEY_IN_RIGHT_OBJECT:"unexpectedKeyInRightObject",VALUE_MISMATCH:"valueMismatch",MISSING_INDEX_IN_RIGHT_OBJECT:"missingIndexInRightObject",UNEXPECTED_INDEX_IN_RIGHT_OBJECT:"unexpectedIndexInRightObject",MISSING_VALUE_IN_RIGHT_OBJECT:"missingValueInRightObject",UNEXPECTED_VALUE_IN_RIGHT_OBJECT:"unexpectedValueInRightObject"};class e{value;constructor(a){this.value=a}getValue(){return this.value}static MISSING_KEY_IN_RIGHT_OBJECT=new e(t.H.MISSING_KEY_IN_RIGHT_OBJECT);static UNEXPECTED_KEY_IN_RIGHT_OBJECT=new e(t.H.UNEXPECTED_KEY_IN_RIGHT_OBJECT);static VALUE_MISMATCH=new e(t.H.VALUE_MISMATCH);static MISSING_INDEX_IN_RIGHT_OBJECT=new e(t.H.MISSING_INDEX_IN_RIGHT_OBJECT);static UNEXPECTED_INDEX_IN_RIGHT_OBJECT=new e(t.H.UNEXPECTED_INDEX_IN_RIGHT_OBJECT);static MISSING_VALUE_IN_RIGHT_OBJECT=new e(t.H.MISSING_VALUE_IN_RIGHT_OBJECT);static UNEXPECTED_VALUE_IN_RIGHT_OBJECT=new e(t.H.UNEXPECTED_VALUE_IN_RIGHT_OBJECT);static NULL=new e(null);static values(){return[e.MISSING_KEY_IN_RIGHT_OBJECT,e.UNEXPECTED_KEY_IN_RIGHT_OBJECT,e.VALUE_MISMATCH,e.MISSING_INDEX_IN_RIGHT_OBJECT,e.UNEXPECTED_INDEX_IN_RIGHT_OBJECT,e.MISSING_VALUE_IN_RIGHT_OBJECT,e.UNEXPECTED_VALUE_IN_RIGHT_OBJECT]}static forValue(a){for(let r of e.values())if(r.getValue()===a)return r;return this.NULL}toJSON(){return this.value}}t.YamlComparisonErrorType=e},1885(n,t,e){t.YamlObjectComparator=void 0;let i=e(2888),a=e(3188),r=e(6109),o=e(4325);t.YamlObjectComparator=class{static compare(s,l){let c=new o.ComparisonResult;return this.compareBothWays(c,s,l,new a.JsonPath),c}static compareBothWays(s,l,c,d){(function m(b,u,f){if(Array.isArray(u)&&Array.isArray(f)){let g=Math.max(u.length,f.length);for(let x=0;x<g;x++){let w=b.add(x);x in u?x in f?typeof u[x]=="object"&&u[x]!==null&&typeof f[x]=="object"&&f[x]!==null?m(w,u[x],f[x]):u[x]!==f[x]&&s.addComparisonError(new i.ComparisonError("ocl03",r.YamlComparisonErrorType.VALUE_MISMATCH,w,u[x],f[x])):s.addComparisonError(new i.ComparisonError("ocl02",r.YamlComparisonErrorType.MISSING_INDEX_IN_RIGHT_OBJECT,w,u[x])):s.addComparisonError(new i.ComparisonError("ocl01",r.YamlComparisonErrorType.UNEXPECTED_INDEX_IN_RIGHT_OBJECT,w,void 0,f[x]))}}else new Set([...Object.keys(u),...Object.keys(f)]).forEach(g=>{let x=b.add(g);g in u?g in f?typeof u[g]=="object"&&u[g]!==null&&typeof f[g]=="object"&&f[g]!==null?m(x,u[g],f[g]):u[g]!==f[g]&&s.addComparisonError(new i.ComparisonError("oco03",r.YamlComparisonErrorType.VALUE_MISMATCH,x,u[g],f[g])):s.addComparisonError(new i.ComparisonError("oco02",r.YamlComparisonErrorType.MISSING_KEY_IN_RIGHT_OBJECT,x)):s.addComparisonError(new i.ComparisonError("oco01",r.YamlComparisonErrorType.UNEXPECTED_KEY_IN_RIGHT_OBJECT,x))})})(d,l,c)}}},3188(n,t){t.JsonPath=void 0;class e{path;static ANY="*";constructor(...a){this.path=a}equal(a){return this.path.length===a.path.length&&this.path.every((r,o)=>r===a.path[o])}add(...a){return new e(...this.path,...a)}join(a){return new e(...this.path,...a.path)}toString(){let a="";return this.path.forEach(r=>{a+=typeof r=="number"?`/[${r}]`:`/${r}`}),a+"/"}toJSON(){return this.toString()}getLastComponent(){return this.path.length===0?null:this.path[this.path.length-1]}endsIn(...a){for(let r=1;r<=a.length;r++){if(r>this.path.length)return false;let o=a[a.length-r];if(this.path[this.path.length-r]!==o&&o!=e.ANY)return false}return true}getLastNComponents(a){if(a<=0||this.path.length===0)return new e;let r=Math.max(this.path.length-a,0),o=this.path.slice(r);return new e(...o)}}t.JsonPath=e},6968(n,t,e){t.JsonContainerArtifactContent=void 0;let i=e(8748);class a{static CONTEXT_VERBATIM={xsd:"http://www.w3.org/2001/XMLSchema#",pav:"http://purl.org/pav/",bibo:"http://purl.org/ontology/bibo/",oslc:"http://open-services.net/ns/core#",schema:"http://schema.org/","schema:name":{"@type":"xsd:string"},"schema:description":{"@type":"xsd:string"},"pav:createdOn":{"@type":"xsd:dateTime"},"pav:createdBy":{"@type":"@id"},"pav:lastUpdatedOn":{"@type":"xsd:dateTime"},"oslc:modifiedBy":{"@type":"@id"}};static CONTEXT_VERBATIM_NO_BIBO;static{this.CONTEXT_VERBATIM_NO_BIBO=i.ReaderUtil.deepClone(this.CONTEXT_VERBATIM),i.ReaderUtil.deleteNodeKey(this.CONTEXT_VERBATIM_NO_BIBO,"bibo"),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM_NO_BIBO),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM)}}t.JsonContainerArtifactContent=a},6551(n,t,e){t.JsonTemplateContent=void 0;let i=e(8748);class a{static ANNOTATIONS={type:"object",patternProperties:{"^.+$":{oneOf:[{type:"object",properties:{"@id":{type:"string",format:"uri"}},additionalProperties:false},{type:"object",properties:{"@value":{type:["string","number","boolean","null"]}},additionalProperties:false}]}},additionalProperties:false};static REQUIRED_PARTIAL=["@context","@id","schema:isBasedOn","schema:name","schema:description","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"];static PROPERTIES_PARTIAL={"@context":{type:"object",properties:{_annotations:{type:"string",enum:["@nest"]},rdfs:{type:"string",format:"uri",enum:["http://www.w3.org/2000/01/rdf-schema#"]},xsd:{type:"string",format:"uri",enum:["http://www.w3.org/2001/XMLSchema#"]},pav:{type:"string",format:"uri",enum:["http://purl.org/pav/"]},schema:{type:"string",format:"uri",enum:["http://schema.org/"]},oslc:{type:"string",format:"uri",enum:["http://open-services.net/ns/core#"]},skos:{type:"string",format:"uri",enum:["http://www.w3.org/2004/02/skos/core#"]},"rdfs:label":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}},"schema:isBasedOn":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"schema:name":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}},"schema:description":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}},"pav:derivedFrom":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"pav:createdOn":{type:"object",properties:{"@type":{type:"string",enum:["xsd:dateTime"]}}},"pav:createdBy":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"pav:lastUpdatedOn":{type:"object",properties:{"@type":{type:"string",enum:["xsd:dateTime"]}}},"oslc:modifiedBy":{type:"object",properties:{"@type":{type:"string",enum:["@id"]}}},"skos:notation":{type:"object",properties:{"@type":{type:"string",enum:["xsd:string"]}}}},required:["xsd","pav","schema","oslc","schema:isBasedOn","schema:name","schema:description","pav:createdOn","pav:createdBy","pav:lastUpdatedOn","oslc:modifiedBy"],additionalProperties:false},"@id":{type:["string","null"],format:"uri"},"@type":{oneOf:[{type:"string",format:"uri"},{type:"array",minItems:1,items:{type:"string",format:"uri"},uniqueItems:true}]},"schema:isBasedOn":{type:"string",format:"uri"},"schema:name":{type:"string",minLength:1},"schema:description":{type:"string"},"pav:derivedFrom":{type:"string",format:"uri"},"pav:createdOn":{type:["string","null"],format:"date-time"},"pav:createdBy":{type:["string","null"],format:"uri"},"pav:lastUpdatedOn":{type:["string","null"],format:"date-time"},"oslc:modifiedBy":{type:["string","null"],format:"uri"},_annotations:a.ANNOTATIONS};static REQUIRED_PARTIAL_KEY_MAP;static PROPERTIES_PARTIAL_KEY_LIST=[];static PROPERTIES_PARTIAL_KEY_MAP=new Map;static CONTEXT_VERBATIM_NO_BIBO;static{Object.keys(a.PROPERTIES_PARTIAL).forEach(o=>{this.PROPERTIES_PARTIAL_KEY_LIST.push(o),this.PROPERTIES_PARTIAL_KEY_MAP.set(o,true)}),this.REQUIRED_PARTIAL_KEY_MAP=this.REQUIRED_PARTIAL.reduce((o,s)=>(o.set(s,true),o),new Map),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL_KEY_MAP),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL_KEY_LIST),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL_KEY_MAP)}}t.JsonTemplateContent=a},1501(n,t,e){t.JsonTemplateElementContent=void 0;let i=e(8748);class a{static REQUIRED_PARTIAL=["@context","@id"];static PROPERTIES_PARTIAL={"@context":{type:"object",properties:{},required:[],additionalProperties:false},"@id":{type:["string","null"],format:"uri"},"@type":{oneOf:[{type:"string",format:"uri"},{type:"array",minItems:1,items:{type:"string",format:"uri"},uniqueItems:true}]}};static LEGACY_ID_TYPING={type:"string",format:"uri"};static acceptEitherIdTyping(o,s){let l=i.ReaderUtil.getNode(s,"@id");l!==null&&JSON.stringify(l)===JSON.stringify(a.LEGACY_ID_TYPING)&&(o["@id"]=i.ReaderUtil.deepClone(a.LEGACY_ID_TYPING))}static REQUIRED_PARTIAL_KEY_MAP;static PROPERTIES_PARTIAL_KEY_MAP=new Map;static CONTEXT_VERBATIM_NO_BIBO;static{Object.keys(a.PROPERTIES_PARTIAL).forEach(o=>{this.PROPERTIES_PARTIAL_KEY_MAP.set(o,true)}),this.REQUIRED_PARTIAL_KEY_MAP=this.REQUIRED_PARTIAL.reduce((o,s)=>(o.set(s,true),o),new Map),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL),i.ReaderUtil.deepFreeze(this.REQUIRED_PARTIAL_KEY_MAP),i.ReaderUtil.deepFreeze(this.PROPERTIES_PARTIAL_KEY_MAP)}}t.JsonTemplateElementContent=a},9932(n,t,e){t.JsonTemplateFieldContentDynamic=void 0;let i=e(8748),a=e(2733),r=e(936);class o{static CONTEXT_VERBATIM={xsd:"http://www.w3.org/2001/XMLSchema#",pav:"http://purl.org/pav/",bibo:"http://purl.org/ontology/bibo/",oslc:"http://open-services.net/ns/core#",schema:"http://schema.org/",skos:"http://www.w3.org/2004/02/skos/core#","schema:name":{"@type":"xsd:string"},"schema:description":{"@type":"xsd:string"},"skos:prefLabel":{"@type":"xsd:string"},"skos:altLabel":{"@type":"xsd:string"},"pav:createdOn":{"@type":"xsd:dateTime"},"pav:createdBy":{"@type":"@id"},"pav:lastUpdatedOn":{"@type":"xsd:dateTime"},"oslc:modifiedBy":{"@type":"@id"}};static PROPERTIES_VERBATIM_LITERAL={"@type":{type:"string",format:"uri"},"rdfs:label":{type:["string","null"]},"@value":{type:["string","null"]},"@language":{type:["string","null"],minLength:1}};static PROPERTIES_VERBATIM_IRI={"@type":{type:"string",format:"uri"},"@id":{type:"string",format:"uri"},"rdfs:label":{type:["string","null"]},"skos:notation":{type:["string","null"]}};static ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_OUTSIDE={type:"object",properties:{"@value":{type:["string","null"]},"@type":{type:"string",format:"uri"}},required:["@value"],additionalProperties:false};static ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE={type:"string",format:"uri"};static PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE;static PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION;static CONTEXT_VERBATIM_NO_BIBO;static{i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_LITERAL),this.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE=i.ReaderUtil.deepClone(this.PROPERTIES_VERBATIM_LITERAL),i.ReaderUtil.deleteNodeKey(this.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE,a.JsonSchema.atLanguage),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_LITERAL_NO_AT_LANGUAGE),this.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION=i.ReaderUtil.deepClone(this.PROPERTIES_VERBATIM_IRI),i.ReaderUtil.deleteNodeKey(this.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION,r.CedarModel.skosNotation),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_IRI_NO_SKOS_NOTATION),this.CONTEXT_VERBATIM_NO_BIBO=i.ReaderUtil.deepClone(this.CONTEXT_VERBATIM),i.ReaderUtil.deleteNodeKey(this.CONTEXT_VERBATIM_NO_BIBO,"bibo"),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM_NO_BIBO),i.ReaderUtil.deepFreeze(this.PROPERTIES_VERBATIM_IRI),i.ReaderUtil.deepFreeze(this.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_OUTSIDE),i.ReaderUtil.deepFreeze(this.ADDITIONAL_PROPERTIES_VERBATIM_ATTRIBUTE_VALUE_INSIDE)}}t.JsonTemplateFieldContentDynamic=o},9251(n,t,e){t.JsonTemplateFieldContentStatic=void 0;let i=e(8748);class a{static CONTEXT_VERBATIM={schema:"http://schema.org/",pav:"http://purl.org/pav/",bibo:"http://purl.org/ontology/bibo/",oslc:"http://open-services.net/ns/core#"};static CONTEXT_VERBATIM_NO_BIBO;static{i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM),this.CONTEXT_VERBATIM_NO_BIBO=i.ReaderUtil.deepClone(this.CONTEXT_VERBATIM),i.ReaderUtil.deleteNodeKey(this.CONTEXT_VERBATIM_NO_BIBO,"bibo"),i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM_NO_BIBO)}}t.JsonTemplateFieldContentStatic=a},350(n,t,e){t.JsonTemplateInstanceContent=void 0;let i=e(8748);class a{static CONTEXT_VERBATIM={rdfs:"http://www.w3.org/2000/01/rdf-schema#",xsd:"http://www.w3.org/2001/XMLSchema#",pav:"http://purl.org/pav/",schema:"http://schema.org/",oslc:"http://open-services.net/ns/core#",skos:"http://www.w3.org/2004/02/skos/core#","rdfs:label":{"@type":"xsd:string"},"schema:isBasedOn":{"@type":"@id"},"schema:name":{"@type":"xsd:string"},"schema:description":{"@type":"xsd:string"},"pav:derivedFrom":{"@type":"@id"},"pav:createdOn":{"@type":"xsd:dateTime"},"pav:createdBy":{"@type":"@id"},"pav:lastUpdatedOn":{"@type":"xsd:dateTime"},"oslc:modifiedBy":{"@type":"@id"},"skos:notation":{"@type":"xsd:string"}};static{i.ReaderUtil.deepFreeze(this.CONTEXT_VERBATIM)}}t.JsonTemplateInstanceContent=a},3198(n,t,e){e.r(t),e.d(t,{Alias:()=>ht,CST:()=>i,Composer:()=>ry,Document:()=>Ls,Lexer:()=>vS,LineCounter:()=>_S,Pair:()=>Ki,Parser:()=>hy,Scalar:()=>ct,Schema:()=>sm,YAMLError:()=>Gu,YAMLMap:()=>Ca,YAMLParseError:()=>os,YAMLSeq:()=>Rr,YAMLWarning:()=>Hc,default:()=>a,isAlias:()=>b,isCollection:()=>C,isDocument:()=>u,isMap:()=>f,isNode:()=>I,isPair:()=>g,isScalar:()=>x,isSeq:()=>w,parse:()=>zk,parseAllDocuments:()=>jk,parseDocument:()=>xS,stringify:()=>Uk,visit:()=>F,visitAsync:()=>ie});var i={};e.r(i),e.d(i,{BOM:()=>ly,DOCUMENT:()=>cy,FLOW_END:()=>dy,SCALAR:()=>hf,createScalarToken:()=>uj,isCollection:()=>gj,isScalar:()=>bj,prettyToken:()=>yj,resolveAsScalar:()=>mj,setScalarValue:()=>pj,stringify:()=>hj,tokenType:()=>Ok,visit:()=>lm});var a={};e.r(a),e.d(a,{Alias:()=>ht,CST:()=>i,Composer:()=>ry,Document:()=>Ls,Lexer:()=>vS,LineCounter:()=>_S,Pair:()=>Ki,Parser:()=>hy,Scalar:()=>ct,Schema:()=>sm,YAMLError:()=>Gu,YAMLMap:()=>Ca,YAMLParseError:()=>os,YAMLSeq:()=>Rr,YAMLWarning:()=>Hc,isAlias:()=>b,isCollection:()=>C,isDocument:()=>u,isMap:()=>f,isNode:()=>I,isPair:()=>g,isScalar:()=>x,isSeq:()=>w,parse:()=>zk,parseAllDocuments:()=>jk,parseDocument:()=>xS,stringify:()=>Uk,visit:()=>F,visitAsync:()=>ie});let r=Symbol.for("yaml.alias"),o=Symbol.for("yaml.document"),s=Symbol.for("yaml.map"),l=Symbol.for("yaml.pair"),c=Symbol.for("yaml.scalar"),d=Symbol.for("yaml.seq"),m=Symbol.for("yaml.node.type"),b=y=>!!y&&typeof y=="object"&&y[m]===r,u=y=>!!y&&typeof y=="object"&&y[m]===o,f=y=>!!y&&typeof y=="object"&&y[m]===s,g=y=>!!y&&typeof y=="object"&&y[m]===l,x=y=>!!y&&typeof y=="object"&&y[m]===c,w=y=>!!y&&typeof y=="object"&&y[m]===d;function C(y){if(y&&typeof y=="object")switch(y[m]){case s:case d:return true}return false}function I(y){if(y&&typeof y=="object")switch(y[m]){case r:case s:case c:case d:return true}return false}let O=y=>(x(y)||C(y))&&!!y.anchor,E=Symbol("break visit"),R=Symbol("skip children"),D=Symbol("remove node");function F(y,p){let h=H(p);u(y)?z(null,y.contents,h,Object.freeze([y]))===D&&(y.contents=null):z(null,y,h,Object.freeze([]))}function z(y,p,h,v){let S=me(y,p,h,v);if(I(S)||g(S))return J(y,v,S),z(y,S,h,v);if(typeof S!="symbol"){if(C(p)){v=Object.freeze(v.concat(p));for(let M=0;M<p.items.length;++M){let P=z(M,p.items[M],h,v);if(typeof P=="number")M=P-1;else{if(P===E)return E;P===D&&(p.items.splice(M,1),M-=1)}}}else if(g(p)){v=Object.freeze(v.concat(p));let M=z("key",p.key,h,v);if(M===E)return E;M===D&&(p.key=null);let P=z("value",p.value,h,v);if(P===E)return E;P===D&&(p.value=null)}}return S}function ie(y,p){return nt(this,null,function*(){let h=H(p);u(y)?(yield $(null,y.contents,h,Object.freeze([y])))===D&&(y.contents=null):yield $(null,y,h,Object.freeze([]))})}function $(y,p,h,v){return nt(this,null,function*(){let S=yield me(y,p,h,v);if(I(S)||g(S))return J(y,v,S),$(y,S,h,v);if(typeof S!="symbol"){if(C(p)){v=Object.freeze(v.concat(p));for(let M=0;M<p.items.length;++M){let P=yield $(M,p.items[M],h,v);if(typeof P=="number")M=P-1;else{if(P===E)return E;P===D&&(p.items.splice(M,1),M-=1)}}}else if(g(p)){v=Object.freeze(v.concat(p));let M=yield $("key",p.key,h,v);if(M===E)return E;M===D&&(p.key=null);let P=yield $("value",p.value,h,v);if(P===E)return E;P===D&&(p.value=null)}}return S})}function H(y){return typeof y=="object"&&(y.Collection||y.Node||y.Value)?Object.assign({Alias:y.Node,Map:y.Node,Scalar:y.Node,Seq:y.Node},y.Value&&{Map:y.Value,Scalar:y.Value,Seq:y.Value},y.Collection&&{Map:y.Collection,Seq:y.Collection},y):y}function me(y,p,h,v){return typeof h=="function"?h(y,p,v):f(p)?h.Map?.(y,p,v):w(p)?h.Seq?.(y,p,v):g(p)?h.Pair?.(y,p,v):x(p)?h.Scalar?.(y,p,v):b(p)?h.Alias?.(y,p,v):void 0}function J(y,p,h){let v=p[p.length-1];if(C(v))v.items[y]=h;else if(g(v))y==="key"?v.key=h:v.value=h;else{if(!u(v)){let S=b(v)?"alias":"scalar";throw new Error(`Cannot replace node with ${S} parent`)}v.contents=h}}F.BREAK=E,F.SKIP=R,F.REMOVE=D,ie.BREAK=E,ie.SKIP=R,ie.REMOVE=D;let q={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ae=y=>y.replace(/[!,[\]{}]/g,p=>q[p]);class de{constructor(p,h){this.docStart=null,this.docEnd=false,this.yaml=Object.assign({},de.defaultYaml,p),this.tags=Object.assign({},de.defaultTags,h)}clone(){let p=new de(this.yaml,this.tags);return p.docStart=this.docStart,p}atDocument(){let p=new de(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=true;break;case"1.2":this.atNextDocument=false,this.yaml={explicit:de.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},de.defaultTags)}return p}add(p,h){this.atNextDocument&&(this.yaml={explicit:de.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},de.defaultTags),this.atNextDocument=false);let v=p.trim().split(/[ \t]+/),S=v.shift();switch(S){case"%TAG":{if(v.length!==2&&(h(0,"%TAG directive should contain exactly two parts"),v.length<2))return false;let[M,P]=v;return this.tags[M]=P,true}case"%YAML":{if(this.yaml.explicit=true,v.length!==1)return h(0,"%YAML directive should contain exactly one part"),false;let[M]=v;return M==="1.1"||M==="1.2"?(this.yaml.version=M,true):(h(6,`Unsupported YAML version ${M}`,/^\d+\.\d+$/.test(M)),false)}default:return h(0,`Unknown directive ${S}`,true),false}}tagName(p,h){if(p==="!")return"!";if(p[0]!=="!")return h(`Not a valid tag: ${p}`),null;if(p[1]==="<"){let P=p.slice(2,-1);return P==="!"||P==="!!"?(h(`Verbatim tags aren't resolved, so ${p} is invalid.`),null):(p[p.length-1]!==">"&&h("Verbatim tags must end with a >"),P)}let[,v,S]=p.match(/^(.*!)([^!]*)$/s);S||h(`The ${p} tag has no suffix`);let M=this.tags[v];if(M)try{return M+decodeURIComponent(S)}catch(P){return h(String(P)),null}return v==="!"?p:(h(`Could not resolve tag: ${p}`),null)}tagString(p){for(let[h,v]of Object.entries(this.tags))if(p.startsWith(v))return h+ae(p.substring(v.length));return p[0]==="!"?p:`!<${p}>`}toString(p){let h=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],v=Object.entries(this.tags),S;if(p&&v.length>0&&I(p.contents)){let M={};F(p.contents,(P,K)=>{I(K)&&K.tag&&(M[K.tag]=true)}),S=Object.keys(M)}else S=[];for(let[M,P]of v)M==="!!"&&P==="tag:yaml.org,2002:"||p&&!S.some(K=>K.startsWith(P))||h.push(`%TAG ${M} ${P}`);return h.join(`
|
|
14
14
|
`)}}function pe(y){if(/[\x00-\x19\s,[\]{}]/.test(y)){let p=JSON.stringify(y);throw new Error(`Anchor must not contain whitespace or control characters: ${p}`)}return true}function Fe(y){let p=new Set;return F(y,{Value(h,v){v.anchor&&p.add(v.anchor)}}),p}function Me(y,p){for(let h=1;;++h){let v=`${y}${h}`;if(!p.has(v))return v}}function ut(y,p,h,v){if(v&&typeof v=="object")if(Array.isArray(v))for(let S=0,M=v.length;S<M;++S){let P=v[S],K=ut(y,v,String(S),P);K===void 0?delete v[S]:K!==P&&(v[S]=K)}else if(v instanceof Map)for(let S of Array.from(v.keys())){let M=v.get(S),P=ut(y,v,S,M);P===void 0?v.delete(S):P!==M&&v.set(S,P)}else if(v instanceof Set)for(let S of Array.from(v)){let M=ut(y,v,S,S);M===void 0?v.delete(S):M!==S&&(v.delete(S),v.add(M))}else for(let[S,M]of Object.entries(v)){let P=ut(y,v,S,M);P===void 0?delete v[S]:P!==M&&(v[S]=P)}return y.call(p,h,v)}function zt(y,p,h){if(Array.isArray(y))return y.map((v,S)=>zt(v,String(S),h));if(y&&typeof y.toJSON=="function"){if(!h||!O(y))return y.toJSON(p,h);let v={aliasCount:0,count:1,res:void 0};h.anchors.set(y,v),h.onCreate=M=>{v.res=M,delete h.onCreate};let S=y.toJSON(p,h);return h.onCreate&&h.onCreate(S),S}return typeof y!="bigint"||h?.keep?y:Number(y)}de.defaultYaml={explicit:false,version:"1.2"},de.defaultTags={"!!":"tag:yaml.org,2002:"};class li{constructor(p){Object.defineProperty(this,m,{value:p})}clone(){let p=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(p.range=this.range.slice()),p}toJS(p,{mapAsMap:h,maxAliasCount:v,onAnchor:S,reviver:M}={}){if(!u(p))throw new TypeError("A document argument is required");let P={anchors:new Map,doc:p,keep:true,mapAsMap:h===true,mapKeyWarned:false,maxAliasCount:typeof v=="number"?v:100},K=zt(this,"",P);if(typeof S=="function")for(let{count:te,res:Z}of P.anchors.values())S(Z,te);return typeof M=="function"?ut(M,{"":K},"",K):K}}class ht extends li{constructor(p){super(r),this.source=p,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(p,h){if(h?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let v,S;h?.aliasResolveCache?v=h.aliasResolveCache:(v=[],F(p,{Node:(M,P)=>{(b(P)||O(P))&&v.push(P)}}),h&&(h.aliasResolveCache=v));for(let M of v){if(M===this)break;M.anchor===this.source&&(S=M)}if(S&&h){let{anchors:M,doc:P,maxAliasCount:K}=h,te=M.get(S);if(te||(zt(S,null,h),te=M.get(S)),te?.res===void 0)throw new ReferenceError("This should not happen: Alias anchor was not resolved?");if(K>=0&&(te.count+=1,te.aliasCount===0&&(te.aliasCount=qi(P,S,M)),te.count*te.aliasCount>K))throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return S}toJSON(p,h){if(!h)return{source:this.source};let v=this.resolve(h.doc,h);if(!v){let S=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(S)}return h.anchors.get(v).res}toString(p,h,v){let S=`*${this.source}`;if(p){if(pe(this.source),p.options.verifyAliasOrder&&!p.anchors.has(this.source)){let M=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(M)}if(p.implicitKey)return`${S} `}return S}}function qi(y,p,h){if(b(p)){let v=p.resolve(y),S=h&&v&&h.get(v);return S?S.count*S.aliasCount:0}if(C(p)){let v=0;for(let S of p.items){let M=qi(y,S,h);M>v&&(v=M)}return v}if(g(p)){let v=qi(y,p.key,h),S=qi(y,p.value,h);return Math.max(v,S)}return 1}let Ar=y=>!y||typeof y!="function"&&typeof y!="object";class ct extends li{constructor(p){super(c),this.value=p}toJSON(p,h){return h?.keep?this.value:zt(this.value,p,h)}toString(){return String(this.value)}}function Yi(y,p,h){if(u(y)&&(y=y.contents),I(y))return y;if(g(y)){let oe=h.schema[s].createNode?.(h.schema,null,h);return oe.items.push(y),oe}(y instanceof String||y instanceof Number||y instanceof Boolean||typeof BigInt<"u"&&y instanceof BigInt)&&(y=y.valueOf());let{aliasDuplicateObjects:v,onAnchor:S,onTagObj:M,schema:P,sourceObjects:K}=h,te;if(v&&y&&typeof y=="object"){if(te=K.get(y),te)return te.anchor??(te.anchor=S(y)),new ht(te.anchor);te={anchor:null,node:null},K.set(y,te)}p?.startsWith("!!")&&(p="tag:yaml.org,2002:"+p.slice(2));let Z=(function(oe,W,Ie){if(W){let Ee=Ie.filter(he=>he.tag===W),ee=Ee.find(he=>!he.format)??Ee[0];if(!ee)throw new Error(`Tag ${W} not found`);return ee}return Ie.find(Ee=>Ee.identify?.(oe)&&!Ee.format)})(y,p,P.tags);if(!Z){if(y&&typeof y.toJSON=="function"&&(y=y.toJSON()),!y||typeof y!="object"){let oe=new ct(y);return te&&(te.node=oe),oe}Z=y instanceof Map?P[s]:Symbol.iterator in Object(y)?P[d]:P[s]}M&&(M(Z),delete h.onTagObj);let ue=Z?.createNode?Z.createNode(h.schema,y,h):typeof Z?.nodeClass?.from=="function"?Z.nodeClass.from(h.schema,y,h):new ct(y);return p?ue.tag=p:Z.default||(ue.tag=Z.tag),te&&(te.node=ue),ue}function en(y,p,h){let v=h;for(let S=p.length-1;S>=0;--S){let M=p[S];if(typeof M=="number"&&Number.isInteger(M)&&M>=0){let P=[];P[M]=v,v=P}else v=new Map([[M,v]])}return Yi(v,void 0,{aliasDuplicateObjects:false,keepUndefined:false,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:y,sourceObjects:new Map})}ct.BLOCK_FOLDED="BLOCK_FOLDED",ct.BLOCK_LITERAL="BLOCK_LITERAL",ct.PLAIN="PLAIN",ct.QUOTE_DOUBLE="QUOTE_DOUBLE",ct.QUOTE_SINGLE="QUOTE_SINGLE";let Ge=y=>y==null||typeof y=="object"&&!!y[Symbol.iterator]().next().done;class yn extends li{constructor(p,h){super(p),Object.defineProperty(this,"schema",{value:h,configurable:true,enumerable:false,writable:true})}clone(p){let h=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return p&&(h.schema=p),h.items=h.items.map(v=>I(v)||g(v)?v.clone(p):v),this.range&&(h.range=this.range.slice()),h}addIn(p,h){if(Ge(p))this.add(h);else{let[v,...S]=p,M=this.get(v,true);if(C(M))M.addIn(S,h);else{if(M!==void 0||!this.schema)throw new Error(`Expected YAML collection at ${v}. Remaining path: ${S}`);this.set(v,en(this.schema,S,h))}}}deleteIn(p){let[h,...v]=p;if(v.length===0)return this.delete(h);let S=this.get(h,true);if(C(S))return S.deleteIn(v);throw new Error(`Expected YAML collection at ${h}. Remaining path: ${v}`)}getIn(p,h){let[v,...S]=p,M=this.get(v,true);return S.length===0?!h&&x(M)?M.value:M:C(M)?M.getIn(S,h):void 0}hasAllNullValues(p){return this.items.every(h=>{if(!g(h))return false;let v=h.value;return v==null||p&&x(v)&&v.value==null&&!v.commentBefore&&!v.comment&&!v.tag})}hasIn(p){let[h,...v]=p;if(v.length===0)return this.has(h);let S=this.get(h,true);return!!C(S)&&S.hasIn(v)}setIn(p,h){let[v,...S]=p;if(S.length===0)this.set(v,h);else{let M=this.get(v,true);if(C(M))M.setIn(S,h);else{if(M!==void 0||!this.schema)throw new Error(`Expected YAML collection at ${v}. Remaining path: ${S}`);this.set(v,en(this.schema,S,h))}}}}let za=y=>y.replace(/^(?!$)(?: $)?/gm,"#");function Ze(y,p){return/^\n+$/.test(y)?y.substring(1):p?y.replace(/^(?! *$)/gm,p):y}let $t=(y,p,h)=>y.endsWith(`
|
|
15
15
|
`)?Ze(h,p):h.includes(`
|
|
16
16
|
`)?`
|
|
@@ -304,7 +304,7 @@ ${h.comment}`:h.comment}this.doc.range[2]=h.offset;break}default:this.errors.pus
|
|
|
304
304
|
left: auto;
|
|
305
305
|
right: 0;
|
|
306
306
|
}
|
|
307
|
-
`],encapsulation:2})}return n})();var b0;function RG(){if(b0===void 0&&(b0=null,typeof window<"u")){let n=window;if(n.trustedTypes!==void 0)try{b0=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t})}catch(t){console.error(t)}}return b0}function tu(n){return RG()?.createHTML(n)||n}function hP(n,t,e){let i=e.sanitize(Un.HTML,t);n.innerHTML=tu(i||"")}var fP=new Set;var nu;var Wp=(()=>{class n{_platform=N(An);_nonce=N(dd,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):PG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&OG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function OG(n,t){if(!fP.has(n))try{nu||(nu=document.createElement("style"),t&&nu.setAttribute("nonce",t),nu.setAttribute("type","text/css"),document.head.appendChild(nu)),nu.sheet&&(nu.sheet.insertRule(`@media ${n.replace(/[{}]/g,"")} {body{ }}`,0),fP.add(n))}catch(e){console.error(e)}}function PG(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var jg=(()=>{class n{_mediaMatcher=N(Wp);_zone=N($e);_queries=new Map;_destroySubject=new Le;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return gP(ac(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){let a=gP(ac(e)).map(o=>this._registerQuery(o).observable),r=zS(a);return r=ms(r.pipe(aa(1)),r.pipe(Sf(1),xf(0))),r.pipe(Ut(o=>{let s={matches:false,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),r={observable:new kt(o=>{let s=l=>this._zone.run(()=>o.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(ii(i),Ut(({matches:o})=>({query:e,matches:o})),Tn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function gP(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var FG=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var Jp=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({providers:[FG]})}return n})();var LG=(()=>{class n{_platform=N(An);isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return BG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return false;let i=VG(WG(e));if(i&&(bP(i)===-1||!this.isVisible(i)))return false;let a=e.nodeName.toLowerCase(),r=bP(e);return e.hasAttribute("contenteditable")?r!==-1:a==="iframe"||a==="object"||this._platform.WEBKIT&&this._platform.IOS&&!GG(e)?false:a==="audio"?e.hasAttribute("controls")?r!==-1:false:a==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return $G(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function VG(n){try{return n.frameElement}catch(t){return null}}function BG(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function jG(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function zG(n){return HG(n)&&n.type=="hidden"}function UG(n){return YG(n)&&n.hasAttribute("href")}function HG(n){return n.nodeName.toLowerCase()=="input"}function YG(n){return n.nodeName.toLowerCase()=="a"}function _P(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return false;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function bP(n){if(!_P(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function GG(n){let t=n.nodeName.toLowerCase(),e=t==="input"&&n.type;return e==="text"||e==="password"||t==="select"||t==="textarea"}function $G(n){return zG(n)?false:jG(n)||UG(n)||n.hasAttribute("contenteditable")||_P(n)}function WG(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var M1=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>{!this.focusLastTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};endAnchorListener=()=>{!this.focusFirstTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_enabled=true;constructor(t,e,i,a,r=false,o){this._element=t,this._checker=e,this._ngZone=i,this._document=a,this._injector=o,r||this.attachAnchors()}destroy(){let t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),true}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){let e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let i=0;i<e.length;i++){let a=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(a)return a}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let i=e.length-1;i>=0;i--){let a=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(a)return a}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){Wi(t,{injector:this._injector})}};var xP=(()=>{class n{_checker=N(LG);_ngZone=N($e);_document=N(gt);_injector=N(st);constructor(){N(qn).load(Bo)}create(e,i=false){return new M1(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var D1=(()=>{class n{_elementRef=N(Ue);_focusTrapFactory=N(xP);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||false}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=false;constructor(){N(An).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,true))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=wd(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Be({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Oe],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Oe]},exportAs:["cdkTrapFocus"],features:[hn]})}return n})();var CP=new be("liveAnnouncerElement",{providedIn:"root",factory:()=>null});var SP=new be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var JG=0;var A1=(()=>{class n{_ngZone=N($e);_defaultOptions=N(SP,{optional:true});_liveElement;_document=N(gt);_sanitizer=N(uo);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=N(CP,{optional:true});this._liveElement=e||this._createLiveElement()}announce(e,...i){let a=this._defaultOptions,r,o;return i.length===1&&typeof i[0]=="number"?o=i[0]:[r,o]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=a&&a.politeness?a.politeness:"polite"),o==null&&a&&(o=a.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:hP(this._liveElement,e,this._sanitizer),typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),a=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return a.classList.add(e),a.classList.add("cdk-visually-hidden"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-live","polite"),a.id=`cdk-live-announcer-${JG++}`,this._document.body.appendChild(a),a}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let a=0;a<i.length;a++){let r=i[a],o=r.getAttribute("aria-owns");o?o.indexOf(e)===-1&&r.setAttribute("aria-owns",o+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var Ed=(function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n})(Ed||{});var yP="cdk-high-contrast-black-on-white";var vP="cdk-high-contrast-white-on-black";var k1="cdk-high-contrast-active";var wP=(()=>{class n{_platform=N(An);_hasCheckedHighContrastMode=false;_document=N(gt);_breakpointSubscription;constructor(){this._breakpointSubscription=N(jg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ed.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ed.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ed.BLACK_ON_WHITE}return Ed.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(k1,yP,vP),this._hasCheckedHighContrastMode=true;let i=this.getHighContrastMode();i===Ed.BLACK_ON_WHITE?e.add(k1,yP):i===Ed.WHITE_ON_BLACK&&e.add(k1,vP)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var zg=(()=>{class n{constructor(){N(wP)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Jp]})}return n})();var qG=200;var y0=class{_letterKeyStream=new Le;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Le;selectedItem=this._selectedItem;constructor(t,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:qG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(t),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let e=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(Fr(e=>this._pressedLetters.push(e)),xf(t),$n(()=>this._pressedLetters.length>0),Ut(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let a=(this._selectedItemIndex+i)%this._items.length,r=this._items[a];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var qp=class{_items;_activeItemIndex=xt(-1);_activeItem=xt(null);_wrap=false;_typeaheadSubscription=wt.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=t=>t.disabled;constructor(t,e){this._items=t,t instanceof lo?this._itemChangesSubscription=t.changes.subscribe(i=>this._itemsChanged(i.toArray())):$a(t)&&(this._effectRef=so(()=>this._itemsChanged(t()),{injector:e}))}tabOut=new Le;change=new Le;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=true){return this._wrap=t,this}withVerticalOrientation(t=true){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new y0(e,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=true){return this._homeAndEnd=t,this}withPageUpDown(t=true,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){let e=this._activeItem();this.updateActiveItem(t),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(t){let e=t.keyCode,a=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!t[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&a){this.setNextItemActive();break}else return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&a){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&a){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&a){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&a){let r=this._activeItemIndex()+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(a||Ci(t,"shiftKey"))&&this._typeahead?.handleKey(t);return}this._typeahead?.reset(),t.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){let e=this._getItemsArray(),i=typeof t=="number"?t:e.indexOf(t),a=e[i];this._activeItem.set(a??null),this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let a=(this._activeItemIndex()+t*i+e.length)%e.length,r=e[a];if(!this._skipPredicateFn(r)){this.setActiveItem(a);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex()+t,t)}_setActiveItemByIndex(t,e){let i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(t+=e,!i[t])return;this.setActiveItem(t)}}_getItemsArray(){return $a(this._items)?this._items():this._items instanceof lo?this._items.toArray():this._items}_itemsChanged(t){this._typeahead?.setItems(t);let e=this._activeItem();if(e){let i=t.indexOf(e);i>-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var iu=class extends qp{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}};var oc=class extends qp{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var EP=" ";function KG(n,t,e){let i=C0(n,t);e=e.trim(),!i.some(a=>a.trim()===e)&&(i.push(e),n.setAttribute(t,i.join(EP)))}function XG(n,t,e){let i=C0(n,t);e=e.trim();let a=i.filter(r=>r!==e);a.length?n.setAttribute(t,a.join(EP)):n.removeAttribute(t)}function C0(n,t){return n.getAttribute(t)?.match(/\S+/g)??[]}var TP="cdk-describedby-message";var x0="cdk-describedby-host";var P1=0;var Kp=(()=>{class n{_platform=N(An);_document=N(gt);_messageRegistry=new Map;_messagesContainer=null;_id=`${P1++}`;constructor(){N(qn).load(Bo),this._id=N(Wl)+"-"+P1++}describe(e,i,a){if(!this._canBeDescribed(e,i))return;let r=O1(i,a);typeof i!="string"?(IP(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,a),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,a){if(!i||!this._isElementNode(e))return;let r=O1(i,a);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof i=="string"){let o=this._messageRegistry.get(r);o&&o.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${x0}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(x0);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let a=this._document.createElement("div");IP(a,this._id),a.textContent=e,i&&a.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(a),this._messageRegistry.set(O1(e,i),{messageElement:a,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();let a=this._document.createElement("div");a.style.visibility="hidden",a.classList.add(e),a.classList.add("cdk-visually-hidden"),this._platform.isBrowser||a.setAttribute("platform","server"),this._document.body.appendChild(a),this._messagesContainer=a}_removeCdkDescribedByReferenceIds(e){let i=C0(e,"aria-describedby").filter(a=>a.indexOf(TP)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let a=this._messageRegistry.get(i);KG(e,"aria-describedby",a.messageElement.id),e.setAttribute(x0,this._id),a.referenceCount++}_removeMessageReference(e,i){let a=this._messageRegistry.get(i);a.referenceCount--,XG(e,"aria-describedby",a.messageElement.id),e.removeAttribute(x0)}_isElementDescribedByMessage(e,i){let a=C0(e,"aria-describedby"),r=this._messageRegistry.get(i),o=r&&r.messageElement.id;return!!o&&a.indexOf(o)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return false;if(i&&typeof i=="object")return true;let a=i==null?"":`${i}`.trim(),r=e.getAttribute("aria-label");return a?!r||r.trim()!==a:false}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function O1(n,t){return typeof n=="string"?`${t||""}/${n}`:n}function IP(n,t){n.id||(n.id=`${TP}-${t}-${P1++}`)}var S0=(()=>{class n{static{this.nextInstanceId=0}constructor(e){this.wrapper=e,this.instanceId=n.nextInstanceId++,this.descriptions=new Map,this.hostReferences=new Map,this.container=null,this.nextMessageId=0}describe(e,i,a){if(!e||!i)return;let r=typeof i=="string"?`${a??""}\0${i}`:i,o=this.descriptions.get(r);if(!o){let c=typeof i=="string"?e.ownerDocument.createElement("div"):i;c.id||(c.id=`cdk-describedby-message-cee-${this.instanceId}-${this.nextMessageId++}`),typeof i=="string"&&(c.textContent=i,a&&c.setAttribute("role",a),this.getContainer().appendChild(c)),o={element:c,references:0,owned:typeof i=="string"},this.descriptions.set(r,o)}let s=this.referenceIds(e);if(s.includes(o.element.id))return;e.setAttribute("aria-describedby",[...s,o.element.id].join(" ")),o.references++;let l=this.hostReferences.get(e)??new Set;l.add(o.element.id),this.hostReferences.set(e,l)}removeDescription(e,i,a){if(!e||!i)return;let r=typeof i=="string"?`${a??""}\0${i}`:i,o=this.descriptions.get(r);if(!o)return;let s=this.referenceIds(e);if(!s.includes(o.element.id))return;this.writeReferenceIds(e,s.filter(c=>c!==o.element.id));let l=this.hostReferences.get(e);l?.delete(o.element.id),l?.size===0&&this.hostReferences.delete(e),o.references--,o.references===0&&(o.owned&&o.element.remove(),this.descriptions.delete(r)),this.removeEmptyContainer()}ngOnDestroy(){for(let[e,i]of this.hostReferences)this.writeReferenceIds(e,this.referenceIds(e).filter(a=>!i.has(a)));this.hostReferences.clear(),this.descriptions.clear(),this.container?.remove(),this.container=null}getContainer(){if(this.container)return this.container;let e=this.wrapper.nativeElement.shadowRoot;if(!e)throw new Error("CEE aria descriptions require the editor shadow root");return this.container=this.wrapper.nativeElement.ownerDocument.createElement("div"),this.container.classList.add("cdk-describedby-message-container","cdk-visually-hidden"),this.container.style.visibility="hidden",e.appendChild(this.container),this.container}removeEmptyContainer(){this.container&&this.container.childNodes.length===0&&(this.container.remove(),this.container=null)}referenceIds(e){return(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean)}writeReferenceIds(e,i){i.length>0?e.setAttribute("aria-describedby",i.join(" ")):e.removeAttribute("aria-describedby")}static{this.\u0275fac=function(i){return new(i||n)(qe(Ue))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac})}}return n})();var St=class{static{this.year="year"}static{this.month="month"}static{this.day="day"}static{this.hour="hour"}static{this.minute="minute"}static{this.second="second"}static{this.decimalSecond="decimalSecond"}static{this.inputType12h="12h"}static{this.inputType24h="24h"}};var mt=class{static{this.int="xsd:int"}static{this.long="xsd:long"}static{this.float="xsd:float"}static{this.double="xsd:double"}static{this.decimal="xsd:decimal"}static{this.byte="xsd:byte"}static{this.short="xsd:short"}static{this.date="xsd:date"}static{this.dateTime="xsd:dateTime"}static{this.time="xsd:time"}};var jo=class{static{this.DATE=/^(\d{4})-(\d{2})-(\d{2})(Z|[+-]\d{2}:\d{2})?$/}static{this.TIME=/^(\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d+))?(Z|[+-]\d{2}:\d{2})?$/}static{this.DATE_TIME=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d+))?(Z|[+-]\d{2}:\d{2})?$/}static{this.XSD_OFFSET=/^(?:Z|[+-](?:(?:0\d|1[0-3]):[0-5]\d|14:00))$/}static isValidOffset(t){return this.XSD_OFFSET.test(t)}static empty(){return{year:null,month:null,day:null,hour:null,minute:null,second:null,fraction:null,offset:null}}static parse(t,e){if(typeof t!="string"||t.length===0)return null;let i=this.empty();if(e.temporalType===mt.date){let a=t.match(this.DATE);if(a===null)return null;[,i.year,i.month,i.day,i.offset]=a}else if(e.temporalType===mt.time){let a=t.match(this.TIME);if(a===null)return null;[,i.hour,i.minute,i.second,i.fraction,i.offset]=a}else if(e.temporalType===mt.dateTime){let a=t.match(this.DATE_TIME);if(a===null)return null;[,i.year,i.month,i.day,i.hour,i.minute,i.second,i.fraction,i.offset]=a}else return null;return this.normalize(i,e)}static normalizeDeclaredDefault(t,e){let i=this.parse(t,e);if(i!==null)return this.serialize(i,e);let a=this.empty(),r=e.granularity,o;if(e.temporalType===mt.date)if(r===St.year&&(o=t.match(/^(\d{4})$/))!==null)[,a.year]=o;else if(r===St.month&&(o=t.match(/^(\d{4})-(\d{2})$/))!==null)[,a.year,a.month]=o;else return null;else if(e.temporalType===mt.time)if(r===St.hour&&(o=t.match(/^(\d{2})(Z|[+-]\d{2}:\d{2})?$/))!==null)[,a.hour,a.offset]=o;else return null;else if(e.temporalType===mt.dateTime)if(r===St.day&&(o=t.match(/^(\d{4})-(\d{2})-(\d{2})$/))!==null)[,a.year,a.month,a.day]=o;else if(r===St.hour&&(o=t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})(Z|[+-]\d{2}:\d{2})?$/))!==null)[,a.year,a.month,a.day,a.hour,a.offset]=o;else return null;else return null;return this.serialize(a,e)}static normalize(t,e){let i=Y({},t),a=e.granularity;return e.temporalType===mt.date?(this.removeTime(i),a===St.year?(i.month="01",i.day="01"):a===St.month&&(i.day="01")):e.temporalType===mt.time?(this.removeDate(i),this.normalizeTime(i,a)):e.temporalType===mt.dateTime&&(a===St.year?(i.month="01",i.day="01",this.zeroTime(i)):a===St.month?(i.day="01",this.zeroTime(i)):a===St.day?this.zeroTime(i):this.normalizeTime(i,a)),e.timezoneEnabled||(i.offset=null),i.fraction!==null&&!/^\d+$/.test(i.fraction)&&(i.fraction=null),i}static serialize(t,e){let i=this.normalize(t,e);if(!this.isComplete(i,e))return null;let a=`${this.year(i.year)}-${this.two(i.month)}-${this.two(i.day)}`,r=e.granularity===St.decimalSecond?`.${i.fraction}`:"",o=`${this.two(i.hour)}:${this.two(i.minute)}:${this.two(i.second)}${r}`,s=i.offset??"";return e.temporalType===mt.date?a+s:e.temporalType===mt.time?o+s:e.temporalType===mt.dateTime?`${a}T${o}${s}`:null}static isComplete(t,e){let i=e.granularity,a=(...o)=>o.every(s=>s!=null&&s!=="");if(e.temporalType===mt.date)return i===St.year?a(t.year):i===St.month?a(t.year,t.month):i===St.day?a(t.year,t.month,t.day):false;let r=()=>i===St.hour?a(t.hour):i===St.minute?a(t.hour,t.minute):i===St.second?a(t.hour,t.minute,t.second):i===St.decimalSecond?a(t.hour,t.minute,t.second,t.fraction):false;return e.temporalType===mt.time?r():e.temporalType===mt.dateTime?i===St.year?a(t.year):i===St.month?a(t.year,t.month):i===St.day?a(t.year,t.month,t.day):a(t.year,t.month,t.day)&&r():false}static normalizeTime(t,e){e===St.hour?(t.minute="00",t.second="00",t.fraction=null):e===St.minute?(t.second="00",t.fraction=null):e===St.second&&(t.fraction=null)}static zeroTime(t){t.hour="00",t.minute="00",t.second="00",t.fraction=null}static removeDate(t){t.year=null,t.month=null,t.day=null}static removeTime(t){t.hour=null,t.minute=null,t.second=null,t.fraction=null}static year(t){return(t??"").padStart(4,"0")}static two(t){return(t??"").padStart(2,"0")}};var Es=class n{static getEmptyValueWrapper(t){return t.basicInfo.inputType===le.attributeValue?new fa(""):Nt.emptySlot(n.isIriValued(t),n.xsdTypeForFullCopy(t))}static getDefaultValueWrappers(t){let e=t.choiceInfo.choices.filter(a=>a.selectedByDefault);if(e.length>0)return e.map(a=>Nt.literalValue(a.label));let i=t.valueInfo.defaultValue;if(dl(i))return[Nt.iriValue(i.iri,i.label)];if(i==="")return[];if(t.basicInfo.inputType===le.controlled)return[];if(typeof i=="string"&&n.isIriValued(t))return[Nt.iriValue(i)];if(typeof i=="string"&&t.basicInfo.inputType===le.temporal){let a=jo.normalizeDeclaredDefault(i,{temporalType:t.valueInfo.temporalType,granularity:t.basicInfo.temporalGranularity,timezoneEnabled:t.basicInfo.timezoneEnabled===true});return[Nt.literalValue(a??i,n.xsdTypeForFullCopy(t))]}return typeof i=="string"||typeof i=="number"||typeof i=="boolean"?[Nt.literalValue(String(i),n.xsdTypeForFullCopy(t))]:[]}static isIriValued(t){let e=t?.basicInfo?.inputType;return e===le.link||e===le.controlled||e!==null&&xs.has(e)}static xsdTypeForFullCopy(t){return t?.numberInfo?.numberType??t?.valueInfo?.temporalType??null}static arraysEqual(t,e){if(!e||t.length!==e.length)return false;for(let i=0,a=t.length;i<a;i++)if(t[i]instanceof Array&&e[i]instanceof Array){if(!n.arraysEqual(t[i],e[i]))return false}else if(t[i]!==e[i])return false;return true}};var Bn=class extends cl{constructor(){super(...arguments),this.className="CedarTemplate",this.pageBreakChildren=[],this.isBasedOn=null,this.parsed=null}hasPageBreaks(){return this.pageBreakChildren.length>1&&!Es.arraysEqual(this.children,this.pageBreakChildren[0])}isMulti(){return false}isMultiPage(){return false}};var zo=(()=>{class n{constructor(e){this.injector=e,this.generation=0,this.pending=null,this.destroyed=false}schedule(e){if(this.destroyed)return Promise.resolve(false);this.cancelPending();let i=++this.generation;return new Promise((a,r)=>{let o={generation:i,ref:Wi(()=>{if(this.destroyed||this.pending!==o||i!==this.generation){a(false);return}this.pending=null;try{e(),a(true)}catch(s){r(s)}},{injector:this.injector}),resolve:a};this.pending=o})}cancel(){++this.generation,this.cancelPending()}ngOnDestroy(){this.destroyed=true,this.cancel()}cancelPending(){let e=this.pending;e!==null&&(this.pending=null,e.ref.destroy(),e.resolve(false))}static{this.\u0275fac=function(i){return new(i||n)(qe(st))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac})}}return n})();var gl=class extends cl{constructor(){super(...arguments),this.className="NullTemplate",this.pageBreakChildren=[]}hasPageBreaks(){return false}isMulti(){return false}isMultiPage(){return false}};var Yg=class extends gl{};var N0=class{constructor(){this.content="",this.width=null,this.height=null}};var Ra=class{constructor(){this.className="StaticFieldComponent",this.name="",this.path=[],this.propertyIri=null,this.labelInfo=new ll,this.basicInfo=new Bp,this.contentInfo=new N0,this.hidden=false,this.hiddenInTemplate=false}isMulti(){return false}isMultiPage(){return false}};var I0=class{constructor(t,e){this.label=t,this.selectedByDefault=e}};function kP(n){let t=n._ui?.inputType,e=n._valueConstraints?.defaultValue;if((t==="temporal"||t==="link"||typeof t=="string"&&t.startsWith("ext-"))&&typeof e=="string")return e;let i=e&&typeof e=="object"&&!Array.isArray(e)?e:null;if(i&&typeof i.termUri=="string"&&i.termUri!==""&&typeof i["rdfs:label"]=="string"&&i["rdfs:label"].trim()!=="")return{termUri:i.termUri,label:i["rdfs:label"]};if(t==="numeric"&&(typeof e=="number"||typeof e=="string"&&/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e))&&Number.isFinite(Number(e)))return Number(e)}function MP(n){let t=structuredClone(n),e=i=>{kP(i)!==void 0&&delete i._valueConstraints.defaultValue;let a=i.properties;for(let r of Object.values(a??{}))r&&typeof r=="object"&&!Array.isArray(r)&&e(r);i.items&&typeof i.items=="object"&&e(i.items)};return e(t),t}function F1(n,t){let e=t.items??t;if(n instanceof M2||n instanceof D2){let i=e.properties;for(let a of n.getChildrenInfo().children){let r=n.getChild(a.name),o=i?.[a.name];r&&o&&F1(r,o)}}else{let i=kP(e),a=e._ui?.inputType;(a==="link"||typeof a=="string"&&a.startsWith("ext-"))&&typeof i=="string"&&(n.valueConstraints.defaultValue=new m1(i)),i!==void 0&&typeof i=="object"&&(n.valueConstraints.defaultValue=new I2().withTermUri(new m1(i.termUri)).withRdfsLabel(i.label).build()),n.cedarFieldType===_i.NUMERIC&&typeof i=="number"&&(n.valueConstraints.defaultValue=i),n.cedarFieldType===_i.TEMPORAL&&typeof i=="string"&&(n.valueConstraints.defaultValue=i)}}var QG="jtr07";var L1=n=>n.cedarFieldType===_i.TEXT;var DP=n=>n.cedarFieldType===_i.TEXTAREA;var ZG=n=>n.cedarFieldType===_i.EMAIL||n.cedarFieldType===_i.PHONE_NUMBER;var e$=n=>[_i.LINK,_i.EXT_ORCID,_i.EXT_ROR,_i.EXT_PFAS,_i.EXT_RRID,_i.EXT_PUBMED,_i.EXT_NIH_GRANT_ID,_i.EXT_DOI].includes(n.cedarFieldType);var t$=n=>n.cedarFieldType===_i.NUMERIC;var n$=n=>n.cedarFieldType===_i.TEMPORAL;var i$=n=>n.cedarFieldType===_i.CONTROLLED_TERM;var AP=n=>n.cedarFieldType===_i.CHECKBOX;var RP=n=>n.cedarFieldType===_i.RADIO;var V1=n=>n.cedarFieldType===_i.SINGLE_SELECT_LIST||n.cedarFieldType===_i.MULTIPLE_SELECT_LIST;var a$=n=>n.cedarFieldType===_i.STATIC_YOUTUBE;var r$=n=>n.cedarFieldType===_i.STATIC_IMAGE;var o$=n=>n.cedarFieldType===_i.STATIC_RICH_TEXT;var s$=n=>n instanceof gn||n instanceof qt;var au=class n{static{this.BLANK_DESCRIPTION="Help Text"}parse(t,e,i){let a=gd.json().getFebruary2024().getTemplateReader().readFromObject(MP(t));F1(a.template,t),n.report(a.parsingResult.getBlueprintComparisonErrors(),i),n.mapParsedTemplate(a.template,e),e.isBasedOn||i.messageHandlerService.error("Template has no @id, so instances of it cannot say which template they came from. This is a template that has never been saved.")}static mapParsedTemplate(t,e){e.parsed=t,n.wrap(t,e,[]),n.generatePropertyIris(t,e),e.labelInfo.label=t.schema_name,e.labelInfo.description=t.schema_description,e.isBasedOn=t.at_id.getValue()}static report(t,e){for(let i of t)i.errorLocation===QG?e.messageHandlerService.error(`Template lists "${i.encounteredValue}" in _ui.order but has no such property. Skipping it.`):e.messageHandlerService.trace(`Template departs from the CEDAR blueprint at ${JSON.stringify(i.errorPath)} (${i.errorLocation}).`)}static wrap(t,e,i){for(let a of t.getChildrenInfo().children){let r=a.name,o=t.getChild(r);if(o===null)continue;let s=a.isMultiInAnyWay(),l=i.slice();l.push(r);let c=null;if(a.atType===$_.TEMPLATE_FIELD){let d=o;c=s?new gn:new Zi,n.extractValueConstraints(d,a,c),n.extractLabels(d,a,r,c)}else if(a.atType===$_.TEMPLATE_ELEMENT){let d=o;c=s?new qt:new Hn,n.extractLabels(d,a,r,c),n.wrap(d,c,l),n.generatePropertyIris(d,c)}else if(a.atType===$_.STATIC_TEMPLATE_FIELD){let d=o,m=new Ra;m.basicInfo.inputType=a.uiInputType.getValue(),a$(d)?(m.contentInfo.content=d.videoId??"",m.contentInfo.width=d.width??null,m.contentInfo.height=d.height??null):r$(d)?(m.contentInfo.content=d.content??"",m.contentInfo.width=d.width??null,m.contentInfo.height=d.height??null):o$(d)&&(m.contentInfo.content=d.content??""),n.extractLabels(d,a,r,m),c=m}if(c!==null){if(s&&s$(c)){let d=a;c.multiInfo.minItems=d.minItems??null,c.multiInfo.maxItems=d.maxItems??null}c.hiddenInTemplate=a.hidden===true,c.hidden=c.hiddenInTemplate,e.children.push(c),c.name=r,c.path=l}}}static generatePropertyIris(t,e){let i={},a=t.getChildrenInfo().getChildIriMap();for(let r of Object.keys(a)){i[r]=String(a[r]);let o=e.getChildByName(r);o!==null&&(o.propertyIri=i[r])}e.contextEntries=i}static extractValueConstraints(t,e,i){let a=t.cedarFieldType;if(i.basicInfo.inputType=a===_i.CONTROLLED_TERM?le.controlled:a.getUiInputType().getValue(),i.valueInfo.requiredValue=e.requiredValue,n$(t)&&(i.basicInfo.timezoneEnabled=t.timezoneEnabled===true,i.basicInfo.inputTimeFormat=t.inputTimeFormat.getValue(),i.basicInfo.temporalGranularity=t.temporalGranularity.getValue(),i.valueInfo.temporalType=t.valueConstraints.temporalType.getValue(),i.valueInfo.defaultValue=t.valueConstraints.defaultValue??null),(L1(t)||DP(t)||V1(t)||ZG(t)||RP(t)||AP(t))&&(i.valueInfo.defaultValue=t.valueConstraints.defaultValue??null),e$(t)&&(i.valueInfo.defaultValue=t.valueConstraints.defaultValue?.getValue()??null),(L1(t)||DP(t))&&(i.valueInfo.minLength=t.valueConstraints.minLength??null,i.valueInfo.maxLength=t.valueConstraints.maxLength??null),L1(t)&&(i.valueInfo.regex=t.valueConstraints.regex??null),t$(t)&&(i.numberInfo.numberType=t.valueConstraints.numberType.getValue(),i.valueInfo.defaultValue=t.valueConstraints.defaultValue??null,i.numberInfo.unitOfMeasure=t.valueConstraints.unitOfMeasure??null,i.numberInfo.minValue=t.valueConstraints.minValue??null,i.numberInfo.maxValue=t.valueConstraints.maxValue??null,i.numberInfo.decimalPlace=t.valueConstraints.decimalPlaces??null),AP(t)||RP(t)||V1(t))for(let r of t.valueConstraints.literals)i.choiceInfo.choices.push(new I0(r.label??"",r.selectedByDefault===true));i.choiceInfo.multipleChoice=V1(t)&&t.multipleChoice===true,i$(t)&&n.extractControlledInfo(t.valueConstraints,i)}static extractControlledInfo(t,e){let i=Fo.json().getStrict(),a=r=>r.map(o=>i.getWriterForValueConstraint(o).getAsJsonNode(o));e.controlledInfo.ontologies=a(t.ontologies),e.controlledInfo.valueSets=a(t.valueSets),e.controlledInfo.classes=a(t.classes),e.controlledInfo.branches=a(t.branches),e.controlledInfo.actions=a(t.actions.filter(n.isServableAction)),t.defaultValue!=null?e.valueInfo.defaultValue={iri:t.defaultValue.termUri.getValue(),label:t.defaultValue.rdfsLabel}:e.valueInfo.defaultValue=null}static isServableAction(t){return t.termUri.isEmpty()||t.source.length===0||t.type.getJsonValue()===null?false:t.action==="delete"?true:t.action==="move"&&t.to!==null}static extractLabels(t,e,i,a){a.labelInfo.preferredLabel=t.skos_prefLabel??null,a.labelInfo.deploymentLabel=n.declared(e.label,i,t.schema_name),a.labelInfo.label=t.schema_name??null,a.labelInfo.description=n.authored(n.declared(e.description,i,t.schema_description))??n.authored(t.schema_description)}static declared(t,e,i){return t==null||t===e||t===i?null:t}static authored(t){return t==null||t===n.BLANK_DESCRIPTION?null:t}};var E0=class{parse(t,e,i){let a=gd.yaml().getStrict().getTemplateReader().readFromObject(t);au.mapParsedTemplate(a.template,e)}};var OP=n=>"@context"in n||"@type"in n||"properties"in n?new au:"modelVersion"in n||"children"in n?new E0:new au;var T0=class n{static create(t,e,i){if(t===null)return new gl;{let a=new Bn;return(i??OP(t)).parse(t,a,e),n.extractPageBreakPages(a),a}}static extractPageBreakPages(t){let e=[],i=[];for(let a of t.children)a instanceof Ra&&a.basicInfo.inputType===le.pageBreak?(e.push(i.length>0?i:[new Yg]),i=[]):i.push(a);i.length>0?e.push(i):t.children.length>0&&e.push([new Yg]),t.pageBreakChildren=e}};var ru=class{constructor(){this.templateInput=null,this.templateRepresentation=null,this.instanceFullData=null,this.dataQualityReport=null,this.savedTemplateID=null,this.derivedExtract=null}get instanceExtractData(){return this.derivedExtract===null&&this.instanceFullData!==null&&(this.derivedExtract=this.instanceFullData.dataContainer),this.derivedExtract}mutate(t){t(this.instanceFullData?.dataContainer??null),this.invalidateDerivedViews()}invalidateDerivedViews(){this.derivedExtract=null}setInputTemplate(t,e,i,a,r){this.templateInput=t,this.templateRepresentation=T0.create(this.templateInput,e,a),i?.reset(this.templateRepresentation.pageBreakChildren);let o=e.multiInstanceObjectService;if(this.instanceFullData===null){let s=e.dataObjectBuilderService;this.instanceFullData=s.buildNewFullDataObject(this.templateRepresentation),this.invalidateDerivedViews(),o.buildNewOrFromMetadata(this.templateRepresentation,this.instanceFullData.dataContainer,r)}else{let s=this.templateRepresentation instanceof Bn?this.templateRepresentation.isBasedOn:null,l=this.instanceFullData.schema_isBasedOn.getValue();s!==null&&l===null?this.instanceFullData.schema_isBasedOn=w2.forValue(s):s!==null&&l!==null&&l!==s&&e.messageHandlerService.error(`Instance schema:isBasedOn is ${l}, but the loaded template is ${s}.`),o.buildNewOrFromMetadata(this.templateRepresentation,this.instanceFullData.dataContainer,r)}this.invalidateDerivedViews(),this.savedTemplateID=null,e.buildQualityReport()}};var bl=class n{constructor(){this.childrenByName=new Map}addState(t){this.childrenByName.set(t.componentName,t)}getState(t){return this.childrenByName.get(t)??null}clone(){let t=new n;for(let e of this.childrenByName.values())t.addState(e.clone());return t}};var k0=class n{get currentIndex(){let t=this.currentCount;return t===0?-1:Math.min(this.storedIndex,t-1)}set currentIndex(t){this.storedIndex=t}constructor(t,e=null){this.storedIndex=-1,this.storedCount=0,this.componentName=t,this.countSupplier=e,this.occurrences=new Array}get currentCount(){return this.countSupplier?this.countSupplier():this.storedCount}set currentCount(t){this.countSupplier||(this.storedCount=t)}addOccurrence(t){this.occurrences.push(t)}clone(){let t=new n(this.componentName,this.countSupplier);t.storedIndex=this.storedIndex,t.storedCount=this.storedCount;for(let e of this.occurrences)t.addOccurrence(e.clone());return t}};var B1=n=>`@#index[${n}]#@`;var M0=class n{read(t,e){n.walk(t,[],e)}static walk(t,e,i){for(let a of Object.keys(t.values)){let r=t.values[a],o=e.slice();if(o.push(a),Array.isArray(r))i(o.slice(),r.length),r.forEach((s,l)=>{s instanceof xi&&n.walk(s,[...o,B1(l)],i)});else if(r instanceof Vp)n.emitAttributeValue(r,o,e,i);else if(r instanceof xi){let s=o.slice();s.push(B1(0)),n.walk(r,s,i)}else r instanceof yd?i(o,0):i(o,1)}}static emitAttributeValue(t,e,i,a){let r=Object.keys(t.values);a(e,r.length);for(let o of r){let s=i.slice();s.push(o),a(s,1)}}};var D0=class n{constructor(){this.stateRoot=new bl,this.templateRepresentation=null,this.sourceInstance=null,this.initialized=false,this.resolveInstanceNode=null}static{this.defaultInstanceReader=new M0}static{this.indexRegEx=/^@#index\[(\d+)]#@$/}setInstanceResolver(t){this.resolveInstanceNode=t}countInInstance(t){if(!this.resolveInstanceNode)return 0;let e=this.resolveInstanceNode(t);return Array.isArray(e)?e.length:e instanceof Vp?Object.keys(e.values).length:0}buildNewOrFromMetadata(t,e=null,i=n.defaultInstanceReader){this.initialized=false,this.sourceInstance=null,this.templateRepresentation=t,this.stateRoot=new bl,this.buildRecursively(t,this.stateRoot),e&&i.read(e,(a,r)=>this.setSingleMultiInstance(a,r,this.stateRoot)),this.sourceInstance=e,this.initialized=true}isInitialized(){return this.initialized}isBuiltFor(t,e){return this.initialized&&this.templateRepresentation===t&&this.sourceInstance===e}setSingleMultiInstance(t,e,i){let a=i,r=this.templateRepresentation,o=null;for(let s of t){let l=s.match(n.indexRegEx);if(l!==null){if(o===null||!(r instanceof qt||r instanceof Hn))return;let c=Number(l[1]);for(;o.occurrences.length<=c;){let d=new bl;this.buildRecursively(r,d),o.addOccurrence(d)}a=o.occurrences[c];continue}if(!(r instanceof qt||r instanceof Hn||r instanceof Bn)||(r=r.getChildByName(s),o=a.getState(s),r===null||o===null))return}if(o!==null){if(r instanceof qt)for(;o.occurrences.length<e;){let s=new bl;this.buildRecursively(r,s),o.addOccurrence(s)}o.currentCount=e,o.currentIndex=e>0?0:-1}}buildRecursively(t,e){if(!(t instanceof qt||t instanceof Hn||t instanceof Bn))return;let i=t;for(let a of i.children){let r=a.name,o=a instanceof gn||a instanceof qt?()=>this.countInInstance(a.path):null,s=new k0(r,o);e.addState(s);let l=0,c=-1;if(a instanceof gn)l=a.multiInfo.getSafeMinItems(),c=l>0?0:-1;else if(a instanceof Zi)l=1,c=-1;else if(a instanceof qt){l=a.multiInfo.getSafeMinItems(),c=l>0?0:-1;for(let d=0;d<l;d++){let m=new bl;this.buildRecursively(a,m),s.addOccurrence(m)}}else if(a instanceof Hn){l=1,c=-1;let d=new bl;this.buildRecursively(a,d),s.addOccurrence(d)}s.currentCount=l,s.currentIndex=c}}setCurrentIndex(t,e){let i=this.getDataPathNode(t.path);i!==null&&(i.currentIndex=e)}multiInstanceItemAdd(t){let e=this.getDataPathNode(t.path);if(e!==null){if(t instanceof qt){let i=new bl;this.buildRecursively(t,i),e.occurrences.splice(e.currentIndex+1,0,i)}e.currentIndex++}}multiInstanceItemCopy(t){let e=this.getDataPathNode(t.path);if(e!==null){if(t instanceof qt){let i=e.currentIndex,a=e.occurrences[i];if(a===void 0)return;e.occurrences.splice(i+1,0,a.clone())}e.currentIndex++}}multiInstanceItemDelete(t){let e=this.getDataPathNode(t.path);if(e!==null&&t instanceof qt){let i=e.currentIndex;e.occurrences.splice(i,1)}}getMultiInstanceInfoForComponent(t){return this.getDataPathNode(t.path)}getDataPathNode(t){return this.getDataPathNodeRecursively(this.stateRoot,this.templateRepresentation,t)}getDataPathNodeRecursively(t,e,i){let a=i[0],r=i.slice(1),o=null,s=null;if((e instanceof Hn||e instanceof Bn||e instanceof qt)&&(o=e.getChildByName(a),s=t.getState(a)),r.length===0)return s;if(s===null||o===null)return null;let l=s.currentIndex>0?s.currentIndex:0,c=s.occurrences[l];return c===void 0?null:this.getDataPathNodeRecursively(c,o,r)}hasMultiInstances(t){return(this.getMultiInstanceInfoForComponent(t)?.currentCount??0)>0}};var Ts=class{static fromCursor(t){return e=>{let i=t.getMultiInstanceInfoForComponent(e);return i?i.currentIndex:null}}static at(t){let e=0;return()=>{let i=t[e];return e+=1,i===void 0?null:i}}};var l$=typeof global=="object"&&global&&global.Object===Object&&global;var A0=l$;var c$=typeof self=="object"&&self&&self.Object===Object&&self;var d$=A0||c$||Function("return this")();var ga=d$;var m$=ga.Symbol;var sc=m$;var PP=Object.prototype;var u$=PP.hasOwnProperty;var p$=PP.toString;var Gg=sc?sc.toStringTag:void 0;function h$(n){var t=u$.call(n,Gg),e=n[Gg];try{n[Gg]=void 0;var i=true}catch(r){}var a=p$.call(n);return i&&(t?n[Gg]=e:delete n[Gg]),a}var FP=h$;var f$=Object.prototype;var g$=f$.toString;function b$(n){return g$.call(n)}var LP=b$;var y$="[object Null]";var v$="[object Undefined]";var VP=sc?sc.toStringTag:void 0;function _$(n){return n==null?n===void 0?v$:y$:VP&&VP in Object(n)?FP(n):LP(n)}var lc=_$;function x$(n){return n!=null&&typeof n=="object"}var yl=x$;var C$=Array.isArray;var Xp=C$;function S$(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var vl=S$;var w$="[object AsyncFunction]";var N$="[object Function]";var I$="[object GeneratorFunction]";var E$="[object Proxy]";function T$(n){if(!vl(n))return false;var t=lc(n);return t==N$||t==I$||t==w$||t==E$}var R0=T$;var k$=ga["__core-js_shared__"];var O0=k$;var BP=(function(){var n=/[^.]+$/.exec(O0&&O0.keys&&O0.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function M$(n){return!!BP&&BP in n}var jP=M$;var D$=Function.prototype;var A$=D$.toString;function R$(n){if(n!=null){try{return A$.call(n)}catch(t){}try{return n+""}catch(t){}}return""}var cc=R$;var O$=/[\\^$.*+?()[\]{}|]/g;var P$=/^\[object .+?Constructor\]$/;var F$=Function.prototype;var L$=Object.prototype;var V$=F$.toString;var B$=L$.hasOwnProperty;var j$=RegExp("^"+V$.call(B$).replace(O$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z$(n){if(!vl(n)||jP(n))return false;var t=R0(n)?j$:P$;return t.test(cc(n))}var zP=z$;function U$(n,t){return n?.[t]}var UP=U$;function H$(n,t){var e=UP(n,t);return zP(e)?e:void 0}var Hr=H$;var Y$=Hr(ga,"WeakMap");var P0=Y$;var HP=Object.create;var G$=(function(){function n(){}return function(t){if(!vl(t))return{};if(HP)return HP(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}})();var YP=G$;function $$(n,t){var e=-1,i=n.length;for(t||(t=Array(i));++e<i;)t[e]=n[e];return t}var GP=$$;var W$=(function(){try{var n=Hr(Object,"defineProperty");return n({},"",{}),n}catch(t){}})();var j1=W$;function J$(n,t){for(var e=-1,i=n==null?0:n.length;++e<i&&t(n[e],e,n)!==false;);return n}var $P=J$;var q$=9007199254740991;var K$=/^(?:0|[1-9]\d*)$/;function X$(n,t){var e=typeof n;return t=t??q$,!!t&&(e=="number"||e!="symbol"&&K$.test(n))&&n>-1&&n%1==0&&n<t}var WP=X$;function Q$(n,t,e){t=="__proto__"&&j1?j1(n,t,{configurable:true,enumerable:true,value:e,writable:true}):n[t]=e}var F0=Q$;function Z$(n,t){return n===t||n!==n&&t!==t}var L0=Z$;var eW=Object.prototype;var tW=eW.hasOwnProperty;function nW(n,t,e){var i=n[t];(!(tW.call(n,t)&&L0(i,e))||e===void 0&&!(t in n))&&F0(n,t,e)}var V0=nW;function iW(n,t,e,i){var a=!e;e||(e={});for(var r=-1,o=t.length;++r<o;){var s=t[r],l=i?i(e[s],n[s],s,e,n):void 0;l===void 0&&(l=n[s]),a?F0(e,s,l):V0(e,s,l)}return e}var Td=iW;var aW=9007199254740991;function rW(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=aW}var B0=rW;function oW(n){return n!=null&&B0(n.length)&&!R0(n)}var j0=oW;var sW=Object.prototype;function lW(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||sW;return n===e}var Qp=lW;function cW(n,t){for(var e=-1,i=Array(n);++e<n;)i[e]=t(e);return i}var JP=cW;var dW="[object Arguments]";function mW(n){return yl(n)&&lc(n)==dW}var z1=mW;var qP=Object.prototype;var uW=qP.hasOwnProperty;var pW=qP.propertyIsEnumerable;var hW=z1((function(){return arguments})())?z1:function(n){return yl(n)&&uW.call(n,"callee")&&!pW.call(n,"callee")};var KP=hW;function fW(){return false}var XP=fW;var eF=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var QP=eF&&typeof module=="object"&&module&&!module.nodeType&&module;var gW=QP&&QP.exports===eF;var ZP=gW?ga.Buffer:void 0;var bW=ZP?ZP.isBuffer:void 0;var yW=bW||XP;var z0=yW;var vW="[object Arguments]";var _W="[object Array]";var xW="[object Boolean]";var CW="[object Date]";var SW="[object Error]";var wW="[object Function]";var NW="[object Map]";var IW="[object Number]";var EW="[object Object]";var TW="[object RegExp]";var kW="[object Set]";var MW="[object String]";var DW="[object WeakMap]";var AW="[object ArrayBuffer]";var RW="[object DataView]";var OW="[object Float32Array]";var PW="[object Float64Array]";var FW="[object Int8Array]";var LW="[object Int16Array]";var VW="[object Int32Array]";var BW="[object Uint8Array]";var jW="[object Uint8ClampedArray]";var zW="[object Uint16Array]";var UW="[object Uint32Array]";var Ri={};Ri[OW]=Ri[PW]=Ri[FW]=Ri[LW]=Ri[VW]=Ri[BW]=Ri[jW]=Ri[zW]=Ri[UW]=true;Ri[vW]=Ri[_W]=Ri[AW]=Ri[xW]=Ri[RW]=Ri[CW]=Ri[SW]=Ri[wW]=Ri[NW]=Ri[IW]=Ri[EW]=Ri[TW]=Ri[kW]=Ri[MW]=Ri[DW]=false;function HW(n){return yl(n)&&B0(n.length)&&!!Ri[lc(n)]}var tF=HW;function YW(n){return function(t){return n(t)}}var Zp=YW;var nF=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var $g=nF&&typeof module=="object"&&module&&!module.nodeType&&module;var GW=$g&&$g.exports===nF;var U1=GW&&A0.process;var $W=(function(){try{var n=$g&&$g.require&&$g.require("util").types;return n||U1&&U1.binding&&U1.binding("util")}catch(t){}})();var dc=$W;var iF=dc&&dc.isTypedArray;var WW=iF?Zp(iF):tF;var aF=WW;var JW=Object.prototype;var qW=JW.hasOwnProperty;function KW(n,t){var e=Xp(n),i=!e&&KP(n),a=!e&&!i&&z0(n),r=!e&&!i&&!a&&aF(n),o=e||i||a||r,s=o?JP(n.length,String):[],l=s.length;for(var c in n)(t||qW.call(n,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||r&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||WP(c,l)))&&s.push(c);return s}var U0=KW;function XW(n,t){return function(e){return n(t(e))}}var H0=XW;var QW=H0(Object.keys,Object);var rF=QW;var ZW=Object.prototype;var eJ=ZW.hasOwnProperty;function tJ(n){if(!Qp(n))return rF(n);var t=[];for(var e in Object(n))eJ.call(n,e)&&e!="constructor"&&t.push(e);return t}var oF=tJ;function nJ(n){return j0(n)?U0(n):oF(n)}var eh=nJ;function iJ(n){var t=[];if(n!=null)for(var e in Object(n))t.push(e);return t}var sF=iJ;var aJ=Object.prototype;var rJ=aJ.hasOwnProperty;function oJ(n){if(!vl(n))return sF(n);var t=Qp(n),e=[];for(var i in n)i=="constructor"&&(t||!rJ.call(n,i))||e.push(i);return e}var lF=oJ;function sJ(n){return j0(n)?U0(n,true):lF(n)}var th=sJ;var lJ=Hr(Object,"create");var mc=lJ;function cJ(){this.__data__=mc?mc(null):{},this.size=0}var cF=cJ;function dJ(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}var dF=dJ;var mJ="__lodash_hash_undefined__";var uJ=Object.prototype;var pJ=uJ.hasOwnProperty;function hJ(n){var t=this.__data__;if(mc){var e=t[n];return e===mJ?void 0:e}return pJ.call(t,n)?t[n]:void 0}var mF=hJ;var fJ=Object.prototype;var gJ=fJ.hasOwnProperty;function bJ(n){var t=this.__data__;return mc?t[n]!==void 0:gJ.call(t,n)}var uF=bJ;var yJ="__lodash_hash_undefined__";function vJ(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=mc&&t===void 0?yJ:t,this}var pF=vJ;function nh(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var i=n[t];this.set(i[0],i[1])}}nh.prototype.clear=cF;nh.prototype.delete=dF;nh.prototype.get=mF;nh.prototype.has=uF;nh.prototype.set=pF;var H1=nh;function _J(){this.__data__=[],this.size=0}var hF=_J;function xJ(n,t){for(var e=n.length;e--;)if(L0(n[e][0],t))return e;return-1}var kd=xJ;var CJ=Array.prototype;var SJ=CJ.splice;function wJ(n){var t=this.__data__,e=kd(t,n);if(e<0)return false;var i=t.length-1;return e==i?t.pop():SJ.call(t,e,1),--this.size,true}var fF=wJ;function NJ(n){var t=this.__data__,e=kd(t,n);return e<0?void 0:t[e][1]}var gF=NJ;function IJ(n){return kd(this.__data__,n)>-1}var bF=IJ;function EJ(n,t){var e=this.__data__,i=kd(e,n);return i<0?(++this.size,e.push([n,t])):e[i][1]=t,this}var yF=EJ;function ih(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var i=n[t];this.set(i[0],i[1])}}ih.prototype.clear=hF;ih.prototype.delete=fF;ih.prototype.get=gF;ih.prototype.has=bF;ih.prototype.set=yF;var Md=ih;var TJ=Hr(ga,"Map");var Dd=TJ;function kJ(){this.size=0,this.__data__={hash:new H1,map:new(Dd||Md),string:new H1}}var vF=kJ;function MJ(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}var _F=MJ;function DJ(n,t){var e=n.__data__;return _F(t)?e[typeof t=="string"?"string":"hash"]:e.map}var Ad=DJ;function AJ(n){var t=Ad(this,n).delete(n);return this.size-=t?1:0,t}var xF=AJ;function RJ(n){return Ad(this,n).get(n)}var CF=RJ;function OJ(n){return Ad(this,n).has(n)}var SF=OJ;function PJ(n,t){var e=Ad(this,n),i=e.size;return e.set(n,t),this.size+=e.size==i?0:1,this}var wF=PJ;function ah(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var i=n[t];this.set(i[0],i[1])}}ah.prototype.clear=vF;ah.prototype.delete=xF;ah.prototype.get=CF;ah.prototype.has=SF;ah.prototype.set=wF;var NF=ah;function FJ(n,t){for(var e=-1,i=t.length,a=n.length;++e<i;)n[a+e]=t[e];return n}var Y0=FJ;var LJ=H0(Object.getPrototypeOf,Object);var G0=LJ;function VJ(){this.__data__=new Md,this.size=0}var IF=VJ;function BJ(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}var EF=BJ;function jJ(n){return this.__data__.get(n)}var TF=jJ;function zJ(n){return this.__data__.has(n)}var kF=zJ;var UJ=200;function HJ(n,t){var e=this.__data__;if(e instanceof Md){var i=e.__data__;if(!Dd||i.length<UJ-1)return i.push([n,t]),this.size=++e.size,this;e=this.__data__=new NF(i)}return e.set(n,t),this.size=e.size,this}var MF=HJ;function rh(n){var t=this.__data__=new Md(n);this.size=t.size}rh.prototype.clear=IF;rh.prototype.delete=EF;rh.prototype.get=TF;rh.prototype.has=kF;rh.prototype.set=MF;var DF=rh;function YJ(n,t){return n&&Td(t,eh(t),n)}var AF=YJ;function GJ(n,t){return n&&Td(t,th(t),n)}var RF=GJ;var LF=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var OF=LF&&typeof module=="object"&&module&&!module.nodeType&&module;var $J=OF&&OF.exports===LF;var PF=$J?ga.Buffer:void 0;var FF=PF?PF.allocUnsafe:void 0;function WJ(n,t){if(t)return n.slice();var e=n.length,i=FF?FF(e):new n.constructor(e);return n.copy(i),i}var VF=WJ;function JJ(n,t){for(var e=-1,i=n==null?0:n.length,a=0,r=[];++e<i;){var o=n[e];t(o,e,n)&&(r[a++]=o)}return r}var BF=JJ;function qJ(){return[]}var $0=qJ;var KJ=Object.prototype;var XJ=KJ.propertyIsEnumerable;var jF=Object.getOwnPropertySymbols;var QJ=jF?function(n){return n==null?[]:(n=Object(n),BF(jF(n),function(t){return XJ.call(n,t)}))}:$0;var oh=QJ;function ZJ(n,t){return Td(n,oh(n),t)}var zF=ZJ;var eq=Object.getOwnPropertySymbols;var tq=eq?function(n){for(var t=[];n;)Y0(t,oh(n)),n=G0(n);return t}:$0;var W0=tq;function nq(n,t){return Td(n,W0(n),t)}var UF=nq;function iq(n,t,e){var i=t(n);return Xp(n)?i:Y0(i,e(n))}var J0=iq;function aq(n){return J0(n,eh,oh)}var HF=aq;function rq(n){return J0(n,th,W0)}var YF=rq;var oq=Hr(ga,"DataView");var q0=oq;var sq=Hr(ga,"Promise");var K0=sq;var lq=Hr(ga,"Set");var X0=lq;var GF="[object Map]";var cq="[object Object]";var $F="[object Promise]";var WF="[object Set]";var JF="[object WeakMap]";var qF="[object DataView]";var dq=cc(q0);var mq=cc(Dd);var uq=cc(K0);var pq=cc(X0);var hq=cc(P0);var ou=lc;(q0&&ou(new q0(new ArrayBuffer(1)))!=qF||Dd&&ou(new Dd)!=GF||K0&&ou(K0.resolve())!=$F||X0&&ou(new X0)!=WF||P0&&ou(new P0)!=JF)&&(ou=function(n){var t=lc(n),e=t==cq?n.constructor:void 0,i=e?cc(e):"";if(i)switch(i){case dq:return qF;case mq:return GF;case uq:return $F;case pq:return WF;case hq:return JF}return t});var sh=ou;var fq=Object.prototype;var gq=fq.hasOwnProperty;function bq(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&gq.call(n,"index")&&(e.index=n.index,e.input=n.input),e}var KF=bq;var yq=ga.Uint8Array;var Y1=yq;function vq(n){var t=new n.constructor(n.byteLength);return new Y1(t).set(new Y1(n)),t}var lh=vq;function _q(n,t){var e=t?lh(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var XF=_q;var xq=/\w*$/;function Cq(n){var t=new n.constructor(n.source,xq.exec(n));return t.lastIndex=n.lastIndex,t}var QF=Cq;var ZF=sc?sc.prototype:void 0;var eL=ZF?ZF.valueOf:void 0;function Sq(n){return eL?Object(eL.call(n)):{}}var tL=Sq;function wq(n,t){var e=t?lh(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}var nL=wq;var Nq="[object Boolean]";var Iq="[object Date]";var Eq="[object Map]";var Tq="[object Number]";var kq="[object RegExp]";var Mq="[object Set]";var Dq="[object String]";var Aq="[object Symbol]";var Rq="[object ArrayBuffer]";var Oq="[object DataView]";var Pq="[object Float32Array]";var Fq="[object Float64Array]";var Lq="[object Int8Array]";var Vq="[object Int16Array]";var Bq="[object Int32Array]";var jq="[object Uint8Array]";var zq="[object Uint8ClampedArray]";var Uq="[object Uint16Array]";var Hq="[object Uint32Array]";function Yq(n,t,e){var i=n.constructor;switch(t){case Rq:return lh(n);case Nq:case Iq:return new i(+n);case Oq:return XF(n,e);case Pq:case Fq:case Lq:case Vq:case Bq:case jq:case zq:case Uq:case Hq:return nL(n,e);case Eq:return new i;case Tq:case Dq:return new i(n);case kq:return QF(n);case Mq:return new i;case Aq:return tL(n)}}var iL=Yq;function Gq(n){return typeof n.constructor=="function"&&!Qp(n)?YP(G0(n)):{}}var aL=Gq;var $q="[object Map]";function Wq(n){return yl(n)&&sh(n)==$q}var rL=Wq;var oL=dc&&dc.isMap;var Jq=oL?Zp(oL):rL;var sL=Jq;var qq="[object Set]";function Kq(n){return yl(n)&&sh(n)==qq}var lL=Kq;var cL=dc&&dc.isSet;var Xq=cL?Zp(cL):lL;var dL=Xq;var Qq=1;var Zq=2;var eK=4;var mL="[object Arguments]";var tK="[object Array]";var nK="[object Boolean]";var iK="[object Date]";var aK="[object Error]";var uL="[object Function]";var rK="[object GeneratorFunction]";var oK="[object Map]";var sK="[object Number]";var pL="[object Object]";var lK="[object RegExp]";var cK="[object Set]";var dK="[object String]";var mK="[object Symbol]";var uK="[object WeakMap]";var pK="[object ArrayBuffer]";var hK="[object DataView]";var fK="[object Float32Array]";var gK="[object Float64Array]";var bK="[object Int8Array]";var yK="[object Int16Array]";var vK="[object Int32Array]";var _K="[object Uint8Array]";var xK="[object Uint8ClampedArray]";var CK="[object Uint16Array]";var SK="[object Uint32Array]";var Ai={};Ai[mL]=Ai[tK]=Ai[pK]=Ai[hK]=Ai[nK]=Ai[iK]=Ai[fK]=Ai[gK]=Ai[bK]=Ai[yK]=Ai[vK]=Ai[oK]=Ai[sK]=Ai[pL]=Ai[lK]=Ai[cK]=Ai[dK]=Ai[mK]=Ai[_K]=Ai[xK]=Ai[CK]=Ai[SK]=true;Ai[aK]=Ai[uL]=Ai[uK]=false;function Q0(n,t,e,i,a,r){var o,s=t&Qq,l=t&Zq,c=t&eK;if(e&&(o=a?e(n,i,a,r):e(n)),o!==void 0)return o;if(!vl(n))return n;var d=Xp(n);if(d){if(o=KF(n),!s)return GP(n,o)}else{var m=sh(n),b=m==uL||m==rK;if(z0(n))return VF(n,s);if(m==pL||m==mL||b&&!a){if(o=l||b?{}:aL(n),!s)return l?UF(n,RF(o,n)):zF(n,AF(o,n))}else{if(!Ai[m])return a?n:{};o=iL(n,m,s)}}r||(r=new DF);var u=r.get(n);if(u)return u;r.set(n,o),dL(n)?n.forEach(function(x){o.add(Q0(x,t,e,x,n,r))}):sL(n)&&n.forEach(function(x,w){o.set(w,Q0(x,t,e,w,n,r))});var f=c?l?YF:HF:l?th:eh,g=d?void 0:f(n);return $P(g||n,function(x,w){g&&(w=x,x=n[w]),V0(o,w,Q0(x,t,e,w,n,r))}),o}var hL=Q0;var wK=1;var NK=4;function IK(n){return hL(n,wK|NK)}var ch=IK;var su=class n{buildRecursively(t,e){if(t instanceof Hn||t instanceof qt||t instanceof Bn){let i=t,a=i.name;if(t instanceof qt){let r=t,o=[];if(e.setValue(a,o),r.multiInfo.getSafeMinItems()>0){let s=new xi;n.addPropertyIris(t,s);for(let l of i.children)this.buildRecursively(l,s);for(let l=0;l<r.multiInfo.getSafeMinItems();l++)o.push(ch(s))}}else{let r=new xi;e.setValue(a,r),n.addPropertyIris(t,r);for(let o of i.children)this.buildRecursively(o,r)}}if(t instanceof Zi||t instanceof gn){let i=t,a=i.name;if(t instanceof gn){let r=t,o=Es.getDefaultValueWrappers(i);e.setValue(a,o);for(let s=o.length;s<r.multiInfo.getSafeMinItems();s++)o.push(Es.getEmptyValueWrapper(i))}else{let o=Es.getDefaultValueWrappers(i).at(-1)??Es.getEmptyValueWrapper(i);e.setValue(a,o)}}}static setCurrentCountToMinRecursively(t,e){if(e.length===0)return;let i=e.slice(1);if(t instanceof Hn){let a=t;for(let r of a.children)n.setCurrentCountToMinRecursively(r,i)}else if(t instanceof qt){let a=t;a.multiInfo.getSafeMinItems()===0&&(a.multiInfo.minItems=1);for(let o of a.children)n.setCurrentCountToMinRecursively(o,i)}else if(t instanceof gn){let a=t;a.multiInfo.getSafeMinItems()===0&&(a.multiInfo.minItems=1)}}static addPropertyIris(t,e){Object.entries(t.contextEntries).forEach(([i,a])=>{typeof a=="string"&&e.setIri(i,a)})}buildNewFullDataObject(t){let e=t,i=new A2;e?.isBasedOn&&i.withSchemaIsBasedOn(e.isBasedOn);let a=e?.labelInfo?.label;i.withSchemaName(a?`${a} metadata`:"metadata"),i.withSchemaDescription("");let r=i.build();return this.buildNewByIterating(e,r.dataContainer),r}buildNewByIterating(t,e){if(!(t==null||t.children==null)){n.addPropertyIris(t,e);for(let i of t.children)this.buildRecursively(i,e)}}};var EK=(n,t)=>n.findIndex(e=>e instanceof fa&&e.name===t);var G1=n=>typeof n=="object"&&n!==null&&!Array.isArray(n)&&"name"in n&&"value"in n;var Z0=class{constructor(t){this.messageHandlerService=t}placeValue(t,e,i,a){if(typeof e=="number"&&Number.isInteger(e)&&e>=0&&Jn(t)&&e<t.length){t[e]=i;return}if(typeof e=="string"&&e.length>0&&gi(t)){t.setValue(e,i);return}this.messageHandlerService.error("No place to put a value at: "+a.join(" > "))}injectArrayValue(t,e,i){if(!Jn(t)){this.messageHandlerService.error(`Expected a list of occurrences to replace at ${i.join(" > ")}`);return}t.length=0,t.push(...e)}injectAttributeValue(t,e,i,a,r,o){let s=t[e],l=s instanceof fa?s.name:"",c=r.name??"";if(!c){let u=this.isAttributeNameUsedElsewhere(t,l,e);return t[e]=new fa(""),l&&!u&&i.removeValue(l),null}if(!c.trim()||[...c].some(u=>u.charCodeAt(0)<32||u.charCodeAt(0)===127))return{key:"Validation.Attribute.NameInvalid"};if(T2.isReservedName(c))return{key:"Validation.Attribute.NameReserved",params:{name:c}};if(o.has(c)||this.isDuplicateAttributeName(c,t,i,e))return{key:"Validation.Attribute.NameInUse",params:{name:c}};let d=this.isAttributeNameUsedElsewhere(t,l,e);t[e]=new fa(c);let m=l&&c!==l&&!d,b=m?i.iris[l]??"":"";return m&&i.removeValue(l),i.setValue(c,r.value),i.removeIri(a.name),!i.hasIri(c)&&b.length>0&&i.setIri(c,b),null}setDataPathValueRecursively(t,e,i,a,r,o,s,l="",c=new Set){if(i instanceof Hn&&!gi(t)&&!Jn(t)&&gi(e)&&(t=new xi,e.setValue(l,t)),i instanceof qt&&Jn(t)){let d=a.getMultiInstanceInfoForComponent(i)?.currentIndex??-1;Number.isInteger(d)&&d>=0&&d<t.length&&!gi(t[d])&&!Jn(t[d])&&(t[d]=new xi)}if(r.length===0)if(i instanceof Zi)G1(o)||this.placeValue(e,l,o,s);else{let d=i,b=a.getMultiInstanceInfoForComponent(d)?.currentIndex??0;if(!G1(o)&&Jn(o))this.injectArrayValue(t,o,s);else if(G1(o)){if(Jn(t)&&gi(e))return this.injectAttributeValue(t,b,e,i,o,c)}else Jn(t)&&this.placeValue(t,b,o,s)}else{let d=this.getDownstreamObjects(t,i,a,r);return d.childComponent===null?null:this.setDataPathValueRecursively(d.dataSubObject,d.parentDataSubObject,d.childComponent,a,d.remainingPath,o,s,d.key,c)}return null}deleteAttributeValueRecursively(t,e,i,a,r,o){if(r.length===0){if(!gi(e)){this.messageHandlerService.error("Expected a container to delete an attribute from, found something else");return}if(o.name===null)return;e.removeValue(o.name)}else{let s=this.getDownstreamObjects(t,i,a,r);if(s.childComponent===null)return;this.deleteAttributeValueRecursively(s.dataSubObject,s.parentDataSubObject,s.childComponent,a,s.remainingPath,o)}}getDownstreamObjects(t,e,i,a){let r=a[0],o=a.slice(1),s=null,l=null,c=null;if(e instanceof Hn||e instanceof Bn)s=e.getChildByName(r),gi(t)&&(l=t.values[r]??null),c=t;else if(e instanceof qt){let m=i.getMultiInstanceInfoForComponent(e)?.currentIndex??0;s=e.getChildByName(r);let b=Jn(t)?t[m]:null;gi(b)&&(l=b.values[r]??null),c=b}return{dataSubObject:l,parentDataSubObject:c,key:r,childComponent:s,remainingPath:o}}isDuplicateAttributeName(t,e,i,a){let r=EK(e,t);return r<0?i.hasValue(t):r!==a}isAttributeNameUsedElsewhere(t,e,i){return t.some((a,r)=>r!==i&&a instanceof fa&&a.name===e)}getDeclaredSiblingNames(t,e){let i=e;for(let a of t.path.slice(0,-1)){if(!(i instanceof Bn)&&!(i instanceof Hn)&&!(i instanceof qt))return new Set;let r=i.getChildByName(a);if(r===null)return new Set;i=r}return!(i instanceof Bn)&&!(i instanceof Hn)&&!(i instanceof qt)?new Set:new Set(i.children.filter(a=>!(a instanceof Ra)).map(a=>a.name))}changeValue(t,e,i,a){let r=e.path,o=e.basicInfo.inputType,l=o!==null&&jp(o)?a===null?Nt.emptySlot(true):Nt.iriValue(a):Nt.literalValue(a,Es.xsdTypeForFullCopy(e)),c=t.templateRepresentation;c!==null&&t.mutate(d=>this.setDataPathValueRecursively(d,null,c,i,r,l,r))}changeListValue(t,e,i,a){let r=e.path,o=[],s=!a||a.length===0?[null]:a;for(let c of s)o.push(Nt.literalValue(c));let l=t.templateRepresentation;l!==null&&t.mutate(c=>this.setDataPathValueRecursively(c,null,l,i,r,o,r))}changeAttributeValue(t,e,i,a,r){let o=e.path,s={name:a,value:Nt.literalValue(r===""?null:r)},l=t.templateRepresentation;if(l===null)return null;let c=this.getDeclaredSiblingNames(e,l),d=null;return t.mutate(m=>{d=this.setDataPathValueRecursively(m,null,l,i,o,s,o,"",c)}),d}deleteAttributeValue(t,e,i,a){if(!a)return;let r=e.path,o={name:a,value:Nt.emptySlot(false)},s=t.templateRepresentation;s!==null&&t.mutate(l=>this.deleteAttributeValueRecursively(l,null,s,i,r,o))}changeControlledValue(t,e,i,a,r){let o=e.path,s=a?Nt.iriValue(a,r):Nt.emptySlot(true),l=t.templateRepresentation;l!==null&&t.mutate(c=>this.setDataPathValueRecursively(c,null,l,i,o,s,o))}};var ex=class{constructor(t=new su,e=new Di){this.dataObjectBuilderService=t,this.messageHandlerService=e}occurrencesFor(t,e,i,a,r){let o=this.getDataPathNodeRecursively(t,e,i.path,Ts.fromCursor(a));return Jn(o)?o:(this.messageHandlerService.error(`Cannot ${r} an occurrence of ${i.path.join(" > ")}: the instance holds no list there.`),null)}getDataPathNodeRecursively(t,e,i,a,r=0){if(i.length===0)return t;{let o=i[0],s=i.slice(1),l=null,c=null;if(e instanceof Hn||e instanceof Bn)l=e.getChildByName(o),gi(t)&&(c=t.values[o]??null);else if(e instanceof qt){let d=a(e);if(d===null)return null;if(l=e.getChildByName(o),Jn(t)){let m=t[d];gi(m)&&(c=m.values[o]??null)}}return this.getDataPathNodeRecursively(c,l,s,a,r+1)}}getParentDataPathNodeRecursively(t,e,i,a,r){if(a.length===0)return e;{let o=a[0],s=a.slice(1),l=null,c=null,d=null;if(i instanceof Hn||i instanceof Bn)l=i.getChildByName(o),gi(t)&&(c=t.values[o]??null),d=t;else if(i instanceof qt){let m=r(i);if(m===null||m<0)return null;l=i.getChildByName(o);let b=Jn(t)?t[m]:null;gi(b)&&(c=b.values[o]??null),d=b}return this.getParentDataPathNodeRecursively(c,d,l,s,r)}}multiInstanceItemAdd(t,e,i){let a=i.getMultiInstanceInfoForComponent(e),r=t.templateRepresentation;r===null||a===null||t.mutate(o=>this.performItemAdd(o,r,e,i,a))}performItemAdd(t,e,i,a,r){let o=new xi,s=ch(i);su.setCurrentCountToMinRecursively(s,i.path),this.dataObjectBuilderService.buildRecursively(s,o);let l=o.values[i.name]??null,c=Jn(l)?l[0]:null,d=this.getDataPathNodeRecursively(t,e,i.path,Ts.fromCursor(a)),m=Jn(d)?d:this.openListFor(t,e,i,a,d);m!==null&&c!==null?m.splice(r.currentIndex+1,0,c):this.messageHandlerService.error("missing data in instance:"+i.path)}openListFor(t,e,i,a,r){if(r!=null&&!(r instanceof yd))return null;let o=this.getParentDataPathNodeRecursively(t,null,e,i.path,Ts.fromCursor(a));if(!gi(o))return null;let s=[];return o.setValue(i.name,s),s}multiInstanceItemCopy(t,e,i){let a=i.getMultiInstanceInfoForComponent(e),r=t.templateRepresentation;r===null||a===null||t.mutate(o=>this.performItemCopy(o,r,e,i,a))}performItemCopy(t,e,i,a,r){let o=this.occurrencesFor(t,e,i,a,"copy");if(o===null)return;let s=ch(o[r.currentIndex]);this.clearElementInstanceIds(s,i),o.splice(r.currentIndex+1,0,s)}multiInstanceItemDelete(t,e,i){let a=i.getMultiInstanceInfoForComponent(e),r=t.templateRepresentation;r===null||a===null||t.mutate(o=>this.performItemDelete(o,r,e,i,a))}performItemDelete(t,e,i,a,r){this.occurrencesFor(t,e,i,a,"delete")?.splice(r.currentIndex,1)}clearElementInstanceIds(t,e){if(!(e instanceof Hn||e instanceof qt)||!gi(t))return;let i=t;i.id=null;for(let a of e.children){let r=i.values[a.name]??null;if(a instanceof Hn)this.clearElementInstanceIds(r,a);else if(a instanceof qt&&Array.isArray(r))for(let o of r)this.clearElementInstanceIds(o,a)}}};var tx=class extends Object{constructor(){super(),this.requiredFieldValueCount=0,this.nonNullRequiredFieldValueCount=0,this.problems=[],this.isValid=false}computeValidity(){let t=this.requiredFieldValueCount<=this.nonNullRequiredFieldValueCount;this.isValid=t&&this.problems.length===0}};function dh(n){if(!/^[a-z][a-z0-9+.-]*:.+$/i.test(n)||/[\s<>"{}|\\^`\p{Cc}\p{Cs}]/u.test(n)||/%(?![\da-f]{2})/i.test(n))return false;try{let t=new URL(n);return!/^https?:/i.test(n)||/^https?:\/\//i.test(n)&&!!t.hostname}catch(t){return false}}var Ji=class{static{this.PATTERN_XSD_INT_AND_LONG="[+-]?(0|[1-9][0-9]*)"}static{this.PATTERN_XSD_FLOAT_AND_DOUBLE="([+-]?((0|[1-9][0-9]*)(\\.[0-9]{0,maxDig})?|\\.[0-9]{0,maxDig}))"}static{this.NUMBER_INT_MAX=2147483647n}static{this.NUMBER_INT_MIN=-2147483648n}static{this.NUMBER_LONG_MAX=9223372036854775807n}static{this.NUMBER_LONG_MIN=-9223372036854775808n}static{this.NUMBER_BYTE_MAX=127n}static{this.NUMBER_BYTE_MIN=-128n}static{this.NUMBER_SHORT_MAX=32767n}static{this.NUMBER_SHORT_MIN=-32768n}};var Yr=class n{constructor(t,e,i,a,r,o=null,s=[],l=a==="required"||a==="minItems"?"warning":"error"){this.path=t,this.field=e,this.inputType=i,this.code=a,this.message=r,this.value=o,this.occurrences=s,this.severity=l}at(t){return new n(this.path,this.field,this.inputType,this.code,this.message,this.value,t,this.severity)}};var et=class{static{this.required="required"}static{this.valueShape="valueShape"}static{this.attributeName="attributeName"}static{this.incompleteValue="incompleteValue"}static{this.templateConstraint="templateConstraint"}static{this.templateMismatch="templateMismatch"}static{this.minLength="minLength"}static{this.maxLength="maxLength"}static{this.regex="regex"}static{this.email="email"}static{this.link="link"}static{this.phoneNumber="phoneNumber"}static{this.numberType="numberType"}static{this.minValue="minValue"}static{this.maxValue="maxValue"}static{this.decimalPlace="decimalPlace"}static{this.temporalType="temporalType"}static{this.temporalGranularity="temporalGranularity"}static{this.temporalCalendar="temporalCalendar"}static{this.timezone="timezone"}static{this.timezoneOffset="timezoneOffset"}static{this.choiceMembership="choiceMembership"}static{this.controlledStructure="controlledStructure"}static{this.iriMalformed="iriMalformed"}static{this.minItems="minItems"}static{this.maxItems="maxItems"}};var Rd=class{static isEmpty(t){return t==null||t===""}static validate(t,e,i){if(Array.isArray(e))return e.flatMap(s=>this.validate(t,s,i));if(this.isEmpty(e))return[];let a=[],r=t.basicInfo.inputType,o=String(e);return this.checkTextConstraints(t,o,i,a),this.checkFormat(t,o,i,a),r===le.numeric&&this.checkNumeric(t,o,i,a),r===le.temporal&&this.checkTemporal(t,o,i,a),t.choiceInfo?.choices?.length>0&&this.checkChoiceMembership(t,o,i,a),a}static problem(t,e,i,a,r){return new Yr(e,e.length>0?e[e.length-1]:t.name,t.basicInfo.inputType,i,a,r)}static validateConfiguration(t){let e=[],i=c=>e.push(this.problem(t,t.path,et.templateConstraint,c,null)),{minLength:a,maxLength:r,regex:o}=t.valueInfo;if(a!=null&&r!=null&&a>r&&i("Minimum length exceeds maximum length."),o)try{new RegExp(`^(?:${o})$`)}catch(c){i("The template contains an invalid regular expression.")}let{minValue:s,maxValue:l}=t.numberInfo??{};return s!=null&&l!=null&&s>l&&i("Minimum value exceeds maximum value."),e}static checkTextConstraints(t,e,i,a){let r=t.valueInfo;if(r.minLength!=null&&e.length<r.minLength&&a.push(this.problem(t,i,et.minLength,`Shorter than the minimum ${r.minLength}.`,e)),r.maxLength!=null&&e.length>r.maxLength&&a.push(this.problem(t,i,et.maxLength,`Longer than the maximum ${r.maxLength}.`,e)),r.regex!=null&&r.regex!==""){let o;try{o=new RegExp(`^(?:${r.regex})$`).test(e)}catch(s){return}o||a.push(this.problem(t,i,et.regex,`Does not match ${r.regex}.`,e))}}static{this.EMAIL=/^[^\s@]+@[^\s@]+\.[^\s@]+$/}static{this.LINK=/^https?:\/\/[\da-z.-]+\.[a-z.]{2,63}(?:[/?#][^\s]*)?$/i}static{this.PHONE=/^[+0-9 \t\-()]+$/}static validateNode(t,e,i){if(e instanceof yd)return[];if(e instanceof bd)return e.hasDiscardedContent()?[this.problem(t,i,et.valueShape,"The supplied value has no usable literal or IRI.",e.discarded)]:[];if(t.basicInfo.inputType===le.attributeValue&&e instanceof fa)return e.name.trim()===""?[new Yr(i,t.name,t.basicInfo.inputType,et.attributeName,"An attribute needs a name.",e.name,[],"warning")]:[];let a=t.basicInfo.inputType===le.controlled||jp(t.basicInfo.inputType);return e instanceof xi||(a?!Nt.isIriBearing(e):!Nt.isLiteral(e))?Nt.isLiteral(e)&&Nt.literal(e)==null?[]:[this.problem(t,i,et.valueShape,a?"This field requires an IRI value.":"This field requires a literal value.",e instanceof xi?null:p1.writeValueNode(e))]:Nt.isIriBearing(e)&&!Nt.iri(e)&&t.basicInfo.inputType!==le.controlled?[this.problem(t,i,et.iriMalformed,"The stored IRI is empty.",null)]:this.validateControlledNode(t,e,i)}static checkFormat(t,e,i,a){let r=t.basicInfo.inputType;r===le.email&&!this.EMAIL.test(e)&&a.push(this.problem(t,i,et.email,"Not a valid email address.",e)),r===le.link&&(!this.LINK.test(e)||!dh(e))&&a.push(this.problem(t,i,et.link,"Not a valid URI.",e)),r===le.phoneNumber&&!this.PHONE.test(e)&&a.push(this.problem(t,i,et.phoneNumber,"Not a valid phone number.",e)),r!==null&&xs.has(r)&&(!dh(e)||!/^(?:[a-z][a-z0-9+.-]*:\/\/|urn:|doi:)/i.test(e))&&a.push(this.problem(t,i,et.iriMalformed,"Not a supported identifier IRI.",e))}static{this.INTEGRAL_BOUNDS={[mt.int]:[Ji.NUMBER_INT_MIN,Ji.NUMBER_INT_MAX],[mt.long]:[Ji.NUMBER_LONG_MIN,Ji.NUMBER_LONG_MAX],[mt.byte]:[Ji.NUMBER_BYTE_MIN,Ji.NUMBER_BYTE_MAX],[mt.short]:[Ji.NUMBER_SHORT_MIN,Ji.NUMBER_SHORT_MAX]}}static checkNumeric(t,e,i,a){let r=t.numberInfo,o=r.numberType,s=o!=null&&Object.prototype.hasOwnProperty.call(this.INTEGRAL_BOUNDS,o),l=o===mt.float||o===mt.double||o===mt.decimal;if(s&&!new RegExp(`^${Ji.PATTERN_XSD_INT_AND_LONG}$`).test(e)){a.push(this.problem(t,i,et.numberType,`Not a valid ${o}.`,e));return}if(l){let m=r.decimalPlace!=null?String(r.decimalPlace):"",b=Ji.PATTERN_XSD_FLOAT_AND_DOUBLE.replace(/maxDig/g,m);if(!new RegExp(`^${b}$`).test(e)){let u=new RegExp(`^${Ji.PATTERN_XSD_FLOAT_AND_DOUBLE.replace(/maxDig/g,"")}$`);r.decimalPlace!=null&&u.test(e)?a.push(this.problem(t,i,et.decimalPlace,`More than ${r.decimalPlace} decimal places.`,e)):a.push(this.problem(t,i,et.numberType,`Not a valid ${o}.`,e));return}}let c=Number(e);if(!Number.isFinite(c)){a.push(this.problem(t,i,et.numberType,"Not a finite number.",e));return}let d=o==null?void 0:this.INTEGRAL_BOUNDS[o];if(d){let m=BigInt(e);(m<d[0]||m>d[1])&&a.push(this.problem(t,i,et.numberType,`Outside the range of ${o}.`,e))}r.minValue!=null&&c<r.minValue&&a.push(this.problem(t,i,et.minValue,`Below the minimum ${r.minValue}.`,e)),r.maxValue!=null&&c>r.maxValue&&a.push(this.problem(t,i,et.maxValue,`Above the maximum ${r.maxValue}.`,e))}static{this.DATE_PART=/^(\d{4})-(\d{2})-(\d{2})$/}static{this.TIME_PART=/^(\d{2}):(\d{2})(?::(\d{2}))?(\.\d+)?$/}static{this.OFFSET_PART=/(Z|[+-]\d{2}:\d{2})$/}static checkTemporal(t,e,i,a){let r=t.valueInfo.temporalType,o=t.basicInfo.temporalGranularity,s=e,l=s.match(this.OFFSET_PART),c=l!==null;if(c&&(s=s.slice(0,s.length-l[0].length)),c&&t.basicInfo.timezoneEnabled!==true?a.push(this.problem(t,i,et.timezone,"Carries a timezone offset but none is enabled.",e)):c&&!jo.isValidOffset(l[0])&&a.push(this.problem(t,i,et.timezoneOffset,"Not a valid xsd timezone offset.",e)),s.split("T").length>2){a.push(this.problem(t,i,et.temporalType,"Not a valid temporal value.",e));return}let[d,m]=s.includes("T")?s.split("T"):[s,null],b=this.TIME_PART.test(s);if(r===mt.date){if(m!==null||b||!this.DATE_PART.test(s)){a.push(this.problem(t,i,et.temporalType,"Not a valid xsd:date.",e));return}}else if(r===mt.time){if(!b){a.push(this.problem(t,i,et.temporalType,"Not a valid xsd:time.",e));return}}else if(r===mt.dateTime&&(m===null||!this.DATE_PART.test(d)||!this.TIME_PART.test(m))){a.push(this.problem(t,i,et.temporalType,"Not a valid xsd:dateTime.",e));return}let u=r===mt.time?null:m!==null?d:s,f=r===mt.time?s:m;if(u!==null&&this.DATE_PART.test(u)){let[,g,x,w]=u.match(this.DATE_PART)??[],C=Number(x),I=Number(w),O=new Date(0);O.setUTCFullYear(Number(g),C,0);let E=O.getUTCDate();(C<1||C>12||I<1||E&&I>E)&&a.push(this.problem(t,i,et.temporalCalendar,"Not a real calendar date.",e))}if(f!==null&&this.TIME_PART.test(f)){let[,g,x,w]=f.match(this.TIME_PART)??[];(Number(g)>23||Number(x)>59||w!==void 0&&Number(w)>59)&&a.push(this.problem(t,i,et.temporalCalendar,"Not a real time of day.",e))}this.checkGranularity(t,e,o,u,f,i,a)}static checkGranularity(t,e,i,a,r,o,s){if(i==null)return;let l=[St.year,St.month,St.day],c=a?.match(this.DATE_PART)??null;if(c!==null){let[,,I,O]=c;i===St.year&&(I!=="01"||O!=="01")?s.push(this.problem(t,o,et.temporalGranularity,"Granularity is year, but the padded month or day is not 01.",e)):i===St.month&&O!=="01"&&s.push(this.problem(t,o,et.temporalGranularity,"Granularity is month, but the padded day is not 01.",e))}let d=r?.match(this.TIME_PART)??null,m=d!==null&&d[1]==="00"&&d[2]==="00"&&(d[3]===void 0||d[3]==="00")&&d[4]===void 0,b=t.valueInfo.temporalType===mt.dateTime&&m;if(l.includes(i)&&r!==null&&!b){s.push(this.problem(t,o,et.temporalGranularity,`Granularity is ${i}, but the padded time is not midnight.`,e));return}if(r===null)return;let u=r.match(this.TIME_PART),f=u!==null&&u[3]!==void 0,g=u!==null&&u[4]!==void 0;(i===St.second||i===St.decimalSecond)&&!f&&s.push(this.problem(t,o,et.temporalGranularity,`Granularity is ${i}, but the value has no seconds.`,e)),i===St.decimalSecond&&f&&!g&&s.push(this.problem(t,o,et.temporalGranularity,"Granularity is decimalSecond, but the value has no fractional seconds.",e));let x=i===St.hour&&u!==null&&(u[2]!=="00"||f&&u[3]!=="00"||g),w=i===St.minute&&u!==null&&(f&&u[3]!=="00"||g),C=i===St.second&&g;(x||w||C)&&s.push(this.problem(t,o,et.temporalGranularity,`Granularity is ${i}, but the value contains finer information.`,e))}static checkChoiceMembership(t,e,i,a){let r=t.choiceInfo.choices.map(o=>o.label);r.includes(e)||a.push(this.problem(t,i,et.choiceMembership,`Not one of the declared options: ${r.join(", ")}.`,e))}static validateControlledNode(t,e,i){if(t.basicInfo.inputType!==le.controlled)return[];let a=Nt.iri(e),r=Nt.label(e),o=typeof a=="string"&&a!=="",s=typeof r=="string"&&r!=="";if(!o&&!s)return[];let l=[];return o!==s&&l.push(this.problem(t,i,et.controlledStructure,o?"Has @id but no rdfs:label.":"Has rdfs:label but no @id.",p1.writeValueNode(e))),o&&!dh(a)&&l.push(this.problem(t,i,et.iriMalformed,"@id is not a valid IRI.",a)),l}};var nx=class n{buildReport(t,e){let i=new tx;if(t.templateRepresentation!=null&&t.templateInput!=null){let a={node:t.instanceFullData?.dataContainer??null,occurrences:[]};for(let r of t.templateRepresentation.children)n.buildRecursively(r,[a],i,e)}return i.computeValidity(),i}static buildRecursively(t,e,i,a){if(t instanceof qt){let r=[];for(let o of e){let s=n.entriesOf(o.node,t.name);n.collectCardinalityProblems(t,s.length,o.occurrences,i),s.forEach((l,c)=>{let d=[...o.occurrences,c];n.collectElementShapeProblem(t,l,d,i),r.push({node:l,occurrences:d})})}if(r.length>0)for(let o of t.children)n.buildRecursively(o,r,i,a)}else if(t instanceof Hn||t instanceof Bn){let r=e.map(o=>({node:Tg(o.node,t.name),occurrences:o.occurrences}));for(let o of r)n.collectElementShapeProblem(t,o.node,o.occurrences,i);for(let o of t.children)n.buildRecursively(o,r,i,a)}if(t instanceof Zi||t instanceof gn){let r=t,o=Rd.validateConfiguration(r);for(let s of e)i.problems.push(...o.map(l=>l.at(s.occurrences)));if(n.collectFieldProblems(r,e,a,i),t instanceof gn)for(let s of e)n.collectCardinalityProblems(r,n.entriesOf(s.node,t.name).length,s.occurrences,i);n.countRequirement(t,e,i)}}static collectElementShapeProblem(t,e,i,a){e===null||e instanceof xi||e instanceof yd||e instanceof bd&&!e.hasDiscardedContent()||a.problems.push(new Yr(t.path,t.name,"element",et.valueShape,"This element must contain fields, not a field value or a list in place of one element.",null,i))}static countRequirement(t,e,i){if(!t.valueInfo.requiredValue)return;i.requiredFieldValueCount++;let a=true;for(let r of e){let o=Tg(r.node,t.name);(Jn(o)?o:[o]).some(l=>n.extractPlainValue(l,t)!==null)||(a=false,i.problems.push(new Yr(t.path,t.name,t.basicInfo.inputType,et.required,"A required value is missing.",null,r.occurrences)))}a&&i.nonNullRequiredFieldValueCount++}static collectFieldProblems(t,e,i,a){let r=[],o=t instanceof gn&&t.isMultiPage();for(let l of e){let c=Tg(l.node,t.name);Jn(c)?(t instanceof Zi&&a.problems.push(new Yr(t.path,t.name,t.basicInfo.inputType,et.valueShape,"This field accepts one value, not a list.",null,l.occurrences)),c.forEach((d,m)=>{d!=null&&r.push({node:d,occurrences:o?[...l.occurrences,m]:l.occurrences})})):c!==null&&r.push({node:c,occurrences:l.occurrences})}let s=new Set;for(let l of r){let c=i.validation.problemsFor(t,l.node),d=Rd.validateNode(t,l.node,t.path).filter(b=>!c.some(u=>u.code===b.code));for(let b of[...d,...c])n.addProblem(a,b.at(l.occurrences),s);let m=n.extractPlainValue(l.node,t);for(let b of Rd.validate(t,m,t.path))n.addProblem(a,b.at(l.occurrences),s)}}static collectCardinalityProblems(t,e,i,a){let r=t?.multiInfo;if(r==null)return;let o=t.path??[],s=o.length>0?o[o.length-1]:t.name,l=t.basicInfo?.inputType??"element";r.minItems!=null&&e<r.minItems&&a.problems.push(new Yr(o,s,l,et.minItems,`Has ${e} of a minimum ${r.minItems}.`,e,i)),r.maxItems!=null&&e>r.maxItems&&a.problems.push(new Yr(o,s,l,et.maxItems,`Has ${e} of a maximum ${r.maxItems}.`,e,i))}static addProblem(t,e,i){let a=JSON.stringify([e.path,e.occurrences,e.code,e.value]);i.has(a)||(i.add(a),t.problems.push(e))}static entriesOf(t,e){let i=Tg(t,e);return i===null?[]:Jn(i)?i:[i]}static extractPlainValue(t,e){return Nt.plainValue(t,this.isIriValued(e))}static isIriValued(t){return t.basicInfo.inputType!==null&&jp(t.basicInfo.inputType)}};var ix=class{constructor(t){this.context=t,this.builder=new nx,this.drafts=new WeakMap}currentNode(t){let e=this.context.getDataObjectNodeByPath(t.path);if(t instanceof gn&&t.isMultiPage()&&Array.isArray(e)){let i=this.context.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentIndex??-1;return e[i]??null}return e}setDraft(t,e){let i=this.currentNode(t);i===null||typeof i!="object"||(e===null?this.drafts.delete(i):this.drafts.set(i,e))}draftFor(t){let e=this.currentNode(t);return e!==null&&typeof e=="object"?this.drafts.get(e)??null:null}copyDrafts(t,e){if(t===null||e===null||typeof t!="object"||typeof e!="object")return;let i=this.drafts.get(t);if(i&&this.drafts.set(e,structuredClone(i)),Array.isArray(t)&&Array.isArray(e))t.forEach((a,r)=>this.copyDrafts(a,e[r]??null));else if(gi(t)&&gi(e))for(let a of Object.keys(t.values))this.copyDrafts(t.values[a],e.values[a]??null)}problemsFor(t,e){let i=typeof e=="object"&&e!==null?this.drafts.get(e):void 0;return i?[new Yr(t.path,t.name,t.basicInfo.inputType,i.code,i.message,i.value)]:[]}validate(){let t=this.context.dataContext,e=this.builder.buildReport(t,this.context),i=t.templateRepresentation,a=i instanceof Bn?i.isBasedOn:null,r=t.instanceFullData?.schema_isBasedOn?.getValue();a&&r&&a!==r&&e.problems.push(new Yr([],"",null,et.templateMismatch,"The instance belongs to a different template. Load it with its original template.",r)),e.computeValidity(),(i===null||t.instanceFullData===null)&&(e.isValid=false),t.dataQualityReport=e}};var lu=class{get statesSpecification(){return this.readOnlyMode&&!this.instanceSupplied}constructor(t,e){this.mutationListener=null,this.readOnlyMode=false,this.instanceSupplied=false,this.dataObjectBuilderService=new su,this.multiInstanceObjectService=new D0,this.dataObjectManipulationService=new ex(this.dataObjectBuilderService,e),this.dataObjectDataValueHandler=new Z0(e),this.validation=new ix(this),this.dataContext=t,this.messageHandlerService=e,this.multiInstanceObjectService.setInstanceResolver(i=>this.getDataObjectNodeByPath(i))}setMutationListener(t){this.mutationListener=t}reportMutation(t,e,i){this.mutationListener?.({operation:t,path:[...e.path],value:i})}withinAddBound(t){let e=t.multiInfo?.maxItems;return e==null||(this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0)<e?true:(this.messageHandlerService.trace(`refused to add past maxItems (${e}) for ${t.path?.join("/")??t.name}`),false)}withinDeleteBound(t){let e=t.multiInfo?.minItems,i=this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0;return i===0?false:e==null||i>e?true:(this.messageHandlerService.trace(`refused to delete below minItems (${e}) for ${t.path?.join("/")??t.name}`),false)}addMultiInstance(t){return this.readOnlyMode||!this.withinAddBound(t)?false:(this.dataObjectManipulationService.multiInstanceItemAdd(this.dataContext,t,this.multiInstanceObjectService),this.multiInstanceObjectService.multiInstanceItemAdd(t),this.buildQualityReport(),this.reportMutation("multiInstanceAdded",t,{count:this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0}),true)}copyMultiInstance(t){let e=this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t);if(e===null||e.currentIndex<0)return this.addMultiInstance(t);if(this.readOnlyMode||!this.withinAddBound(t))return false;let i=this.getDataObjectNodeByPath(t.path),a=Jn(i)?i[e.currentIndex]:null,r=null,o=null;if(t instanceof gn&&t.basicInfo.inputType===le.attributeValue){let l=this.getDataObjectNodeByPath(t.path),c=this.getParentDataObjectNodeByPath(t.path),d=Jn(l)?l[e.currentIndex]:null;d instanceof fa&&d.name!==""&&gi(c)&&(o=t,r={name:d.name,value:Nt.literal(c.values[d.name])??null})}if(this.dataObjectManipulationService.multiInstanceItemCopy(this.dataContext,t,this.multiInstanceObjectService),this.multiInstanceObjectService.multiInstanceItemCopy(t),r!==null&&o!==null){let l=1,c;do{let d=l===1?" copy":` copy ${l}`;c=this.dataObjectDataValueHandler.changeAttributeValue(this.dataContext,o,this.multiInstanceObjectService,`${r.name}${d}`,r.value),l++}while(c!==null&&l<=1e3);c!==null&&(this.dataObjectDataValueHandler.changeAttributeValue(this.dataContext,o,this.multiInstanceObjectService,null,r.value),this.messageHandlerService.error(`Unable to find a unique name for a copy of "${r.name}".`))}let s=this.getDataObjectNodeByPath(t.path);return this.validation.copyDrafts(a,Jn(s)?s[e.currentIndex]:null),this.buildQualityReport(),this.reportMutation("multiInstanceCopied",t,{count:this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0}),true}deleteMultiInstance(t){if(this.readOnlyMode||!this.withinDeleteBound(t))return false;let e=this.getDataObjectNodeByPath(t.path),i=this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentIndex??-1,a=Jn(e)?e[i]:null,r=this.getParentDataObjectNodeByPath(t.path),o=t instanceof gn&&t.basicInfo.inputType===le.attributeValue&&a instanceof fa?a.name:null;return this.dataObjectManipulationService.multiInstanceItemDelete(this.dataContext,t,this.multiInstanceObjectService),this.multiInstanceObjectService.multiInstanceItemDelete(t),o&&gi(r)&&(Object.values(r.values).some(l=>Jn(l)&&l.some(c=>c instanceof fa&&c.name===o))||r.removeValue(o),this.dataContext.invalidateDerivedViews()),this.buildQualityReport(),this.reportMutation("multiInstanceDeleted",t,{count:this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0}),true}getDataObjectNodeByPath(t){let e=this.dataContext.templateRepresentation;return e===null?null:this.dataObjectManipulationService.getDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,e,t,Ts.fromCursor(this.multiInstanceObjectService))}getDataObjectNodeAt(t,e){let i=this.dataContext.templateRepresentation;return i===null?null:this.dataObjectManipulationService.getDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,i,t,Ts.at(e))}getParentDataObjectNodeByPath(t){let e=this.dataContext.templateRepresentation;return e===null?null:this.dataObjectManipulationService.getParentDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,null,e,t,Ts.fromCursor(this.multiInstanceObjectService))}getParentDataObjectNodeAt(t,e){let i=this.dataContext.templateRepresentation;return i===null?null:this.dataObjectManipulationService.getParentDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,null,i,t,Ts.at(e))}setCurrentIndex(t,e){this.multiInstanceObjectService.setCurrentIndex(t,e)}changeValue(t,e,i=null,a="user"){this.readOnlyMode&&a==="user"||(this.dataObjectDataValueHandler.changeValue(this.dataContext,t,this.multiInstanceObjectService,e),this.validation.setDraft(t,i),this.buildQualityReport(),this.reportMutation("valueChanged",t,e))}changeListValue(t,e,i="user"){this.readOnlyMode&&i==="user"||(this.dataObjectDataValueHandler.changeListValue(this.dataContext,t,this.multiInstanceObjectService,e),this.buildQualityReport(),this.reportMutation("valueChanged",t,e))}changeAttributeValue(t,e,i){if(this.readOnlyMode)return null;let a=this.dataObjectDataValueHandler.changeAttributeValue(this.dataContext,t,this.multiInstanceObjectService,e,i);return this.validation.setDraft(t,a!==null||!e&&i!==null&&i!==""?{code:et.attributeName,message:"An attribute needs a valid, unique name before its value can be saved.",value:{key:e,value:i},state:{key:e,value:i,error:a}}:null),this.buildQualityReport(),this.reportMutation("valueChanged",t,{key:e,value:i}),a}deleteAttributeValue(t,e){this.readOnlyMode||(this.dataObjectDataValueHandler.deleteAttributeValue(this.dataContext,t,this.multiInstanceObjectService,e),this.buildQualityReport(),this.reportMutation("valueChanged",t,{key:e,value:null}))}changeControlledValue(t,e,i,a="user"){this.readOnlyMode&&a==="user"||(this.dataObjectDataValueHandler.changeControlledValue(this.dataContext,t,this.multiInstanceObjectService,e,i),this.buildQualityReport(),this.reportMutation("valueChanged",t,{iri:e,label:i}))}buildQualityReport(){this.validation.validate()}enableReadOnlyMode(){this.readOnlyMode=true}};var ax=class n{static read(t,e){let i=[],a=n.canonicalizeLegacyOccurrenceIds(t,i),r=gd.json().getFebruary2024().getTemplateInstanceReader().readFromObject(a).instance;n.makeAttributeValuesEditable(r.dataContainer);for(let o of i){let s=r.dataContainer;for(let d of o.path.slice(0,-1))if(s=Array.isArray(s)?s[Number(d)]:s instanceof xi?s.values[String(d)]:null,s==null)break;let l=o.path.at(-1),c=Array.isArray(s)?s[Number(l)]:s instanceof xi?s.values[String(l)]:null;if(c instanceof vd||c instanceof sl){let d=c instanceof sl?sl.fromParsedNode(o.iri,c.label,c.type):vd.fromParsedNode(o.iri,c.type);d.language=c.language,d.notation=c.notation,Array.isArray(s)?s[Number(l)]=d:s instanceof xi&&s.setValue(String(l),d)}}return e&&n.reportDiscarded(r.dataContainer,[],e),{full:r,extract:r.dataContainer}}static canonicalizeLegacyOccurrenceIds(t,e){let i=(a,r,o)=>{if(Array.isArray(a))return a.map((c,d)=>i(c,false,[...o,d]));if(a===null||typeof a!="object")return a;let s=a,l={};for(let[c,d]of Object.entries(s))l[c]=i(d,false,[...o,c]);return!r&&!u1.isValueNode(s)&&typeof s["@id"]=="string"&&s["@id"].trim()===""&&(l["@id"]=null),!r&&u1.isValueNode(s)&&typeof s["@id"]=="string"&&!dh(s["@id"])&&(e.push({path:o,iri:s["@id"]}),l["@id"]="urn:cedar:unreadable-field-iri"),l};return i(t,true,[])}static makeAttributeValuesEditable(t){for(let e of Object.keys(t.values)){let i=t.values[e];if(i instanceof Vp){let a=Object.keys(i.values);t.setValue(e,a.map(r=>new fa(r)));for(let r of a)t.setValue(r,i.values[r]);continue}Array.isArray(i)?i.forEach(a=>{a instanceof xi&&n.makeAttributeValuesEditable(a)}):i instanceof xi&&n.makeAttributeValuesEditable(i)}}static reportDiscarded(t,e,i){for(let a of Object.keys(t.values)){let r=[...e,a];n.reportNode(t.values[a],r,i)}}static reportNode(t,e,i){if(Array.isArray(t)){t.forEach((a,r)=>n.reportNode(a,[...e.slice(0,-1),`${e[e.length-1]}[${r}]`],i));return}if(t instanceof xi){n.reportDiscarded(t,e,i);return}t instanceof bd&&t.hasDiscardedContent()&&i(`The instance has no usable value for "${e.join(" > ")}": ${JSON.stringify(t.discarded)} is neither a literal nor an IRI, so the field is empty. A label with no @id names no term.`)}};var rx=class n{constructor(t){this.messages=t,this.claimed=new Set,this.acceptedTemplate=null,this.acceptedInstanceJson=null,this.nextRevision=0,this._instanceInputRejected=false,this._state=this.contextOnly(null,false)}get state(){return this._state}get instanceInputRejected(){return this._instanceInputRejected}acceptTemplate(t){if(!this.mayAcceptTemplate())return false;let e=this.snapshot("templateObject",t);if(e===null)return false;t=e;let i=this.acceptedInstanceJson===null?null:this.readInstance("instanceObject",this.acceptedInstanceJson);if(this.acceptedInstanceJson!==null&&i===null)return this._instanceInputRejected=true,false;let a=this.buildCandidate("templateObject",t,i,i!==null);return a===null?false:(this.commit(["template"]),this.acceptedTemplate=t,this._state=this.publish(a,t,this._state.instanceJson,null),true)}acceptInstance(t){if(!this.claimAvailable("instanceObject",["instance"]))return false;let e=this.snapshot("instanceObject",t);if(e===null)return this._instanceInputRejected=true,false;t=e;let i=this.readInstance("instanceObject",t);if(i===null)return this._instanceInputRejected=true,false;let a=this.acceptedTemplate===null?this.contextOnly(i,true):this.buildCandidate("instanceObject",this.acceptedTemplate,i,true);return a===null?(this._instanceInputRejected=true,false):(this._instanceInputRejected=false,this.commit(["instance"]),this.acceptedInstanceJson=t,this._state=this.publish(a,this._state.templateJson,t,null),true)}acceptCombined(t){if(!this.claimAvailable("templateAndInstanceObject",["template","instance"]))return false;let e=this.snapshot("templateAndInstanceObject",t);if(e===null)return false;t=e;let{templateObject:i,instanceObject:a}=t;if(!n.isJsonObject(i))return this.messages.error("Template Object is missing."),false;if(!n.isJsonObject(a))return this.messages.error("Instance Object is missing."),false;let r=this.readInstance("templateAndInstanceObject.instanceObject",a);if(r===null)return this._instanceInputRejected=true,false;let o=this.buildCandidate("templateAndInstanceObject.templateObject",i,r,true);return o===null?false:(this._instanceInputRejected=false,this.commit(["template","instance"]),this.acceptedTemplate=i,this._state=this.publish(o,null,null,t),true)}snapshot(t,e){try{return structuredClone(e)}catch(i){return this.messages.error(`CEDAR Embeddable Editor: "${t}" rejected because it cannot be copied as JSON data.`),null}}buildCandidate(t,e,i,a){let r=this.contextOnly(i,a);try{return r.dataContext.setInputTemplate(e,r.handlerContext,null),r}catch(o){let s=o instanceof Error?o.message:String(o);return this.messages.error(`CEDAR Embeddable Editor: "${t}" rejected because it is not a readable CEDAR template: ${s}`),null}}contextOnly(t,e){let i=new ru;i.instanceFullData=t,i.invalidateDerivedViews();let a=new lu(i,this.messages);return a.instanceSupplied=e,{dataContext:i,handlerContext:a,templateJson:null,instanceJson:null,templateAndInstanceJson:null,revision:this.nextRevision}}publish(t,e,i,a){return this.nextRevision+=1,Je(Y({},t),{templateJson:e,instanceJson:i,templateAndInstanceJson:a,revision:this.nextRevision})}readInstance(t,e){try{return ax.read(e,i=>this.messages.error(i)).full}catch(i){let a=i instanceof Error?i.message:String(i);return this.messages.error(`CEDAR Embeddable Editor: "${t}" rejected because it is not a readable CEDAR instance: ${a}`),null}}mayAcceptTemplate(){return!this.claimed.has("template")||!this.claimed.has("instance")?true:(this.messages.error('CEDAR Embeddable Editor: "templateObject" ignored, because an instance is loaded against the template it would replace. Create a new editor element to load a different artifact.'),false)}claimAvailable(t,e){let i=e.filter(r=>this.claimed.has(r));if(i.length===0)return true;let a=i.length>1?"template and instance are":`${i[0]} is`;return this.messages.error(`CEDAR Embeddable Editor: "${t}" ignored, because the ${a} already set. Each input takes one assignment; create a new editor element to load a different artifact.`),false}commit(t){t.forEach(e=>this.claimed.add(e))}static isJsonObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}};var Rn={showTemplateDescription:"showTemplateDescription",previewMode:"previewMode",showFieldType:"showFieldType",suppressEmptyFieldErrors:"suppressEmptyFieldErrors",readOnlyMode:"readOnlyMode",trustTemplateRichText:"trustTemplateRichText",showDownloadMenu:"showDownloadMenu",showExpandCollapseAll:"showExpandCollapseAll",terminologyBaseUrl:"terminologyBaseUrl",bridgeBaseUrl:"bridgeBaseUrl",defaultLanguage:"defaultLanguage",fallbackLanguage:"fallbackLanguage",languageMapPathPrefix:"languageMapPathPrefix"};function Gr(n,t,e){return n!=null&&Object.hasOwn(n,t)?!!n[t]:e}function Wg(n,t,e){return n!=null&&Object.hasOwn(n,t)?String(n[t]):e}function ox(n,t){let e=Wg(n,t,"");return e===""?null:e}var bL={[Rn.showTemplateDescription]:"boolean",[Rn.previewMode]:"boolean",[Rn.showFieldType]:"boolean",[Rn.suppressEmptyFieldErrors]:"boolean",[Rn.readOnlyMode]:"boolean",[Rn.trustTemplateRichText]:"boolean",[Rn.showDownloadMenu]:"boolean",[Rn.showExpandCollapseAll]:"boolean",[Rn.terminologyBaseUrl]:"string",[Rn.bridgeBaseUrl]:"string",[Rn.defaultLanguage]:"string",[Rn.fallbackLanguage]:"string",[Rn.languageMapPathPrefix]:"string"};var TK=(n,t)=>{let e=Array.from({length:t.length+1},(i,a)=>a);for(let i=1;i<=n.length;i++){let a=e[0];e[0]=i;for(let r=1;r<=t.length;r++){let o=Math.min(e[r]+1,e[r-1]+1,a+(n[i-1]===t[r-1]?0:1));a=e[r],e[r]=o}}return e[t.length]};var kK=n=>{let t=Object.keys(bL),e=null,i=Number.POSITIVE_INFINITY;for(let a of t){let r=TK(n.toLowerCase(),a.toLowerCase());r<i&&(i=r,e=a)}return e!==null&&i<=Math.max(2,Math.floor(n.length/3))?e:null};var gL=n=>n===null?"null":typeof n;var yL="Ignored, and the key reads as unset.";var vL=n=>{if(n===null||typeof n!="object"||Array.isArray(n))return{problems:[`Configuration must be an object, but was ${gL(n)}. Ignored.`],usable:null};let t=[],e={};for(let[i,a]of Object.entries(n)){let r=bL[i];if(r===void 0){let o=kK(i);t.push(`Unknown configuration key "${i}". It has no effect.`+(o?` Did you mean "${o}"?`:""));continue}if(typeof a!==r){t.push(`Configuration key "${i}" expects a ${r}, but was ${gL(a)}. ${yL}`);continue}e[i]=a}return t.push(...MK(e)),{problems:t,usable:e}};var MK=n=>{let t=[];for(let e of["bridgeBaseUrl","terminologyBaseUrl"]){let i=n[e];typeof i=="string"&&i!==""&&!i.endsWith("/")&&(t.push(`Configuration key "${e}" must end in a slash, but was "${i}". ${yL}`),delete n[e])}return t};var mh=class{constructor(t,e,i,a){this.controlledFields=t,this.messages=e,this.translate=i,this.globals=a,this.configured=false,this.defaultLanguage=Na.DEFAULT_LANGUAGE,this.fallbackLanguage=Na.DEFAULT_LANGUAGE,this._config=null}get config(){return this._config}get hasConfiguration(){return this.configured}accept(t){if(this.configured)return this.messages.error('CEDAR Embeddable Editor: "config" ignored, because the editor is already configured. Configuration takes one assignment; create a new editor element to configure it differently.'),false;this.messages.trace("CEDAR Embeddable Editor config set to:"+JSON.stringify(t));let{problems:e,usable:i}=vL(t);return e.forEach(a=>this.messages.error(a)),i===null?false:(this._config=i,this.configured=true,true)}apply(t){let e=this.globals.languageMapPathPrefix,i=[...this.translate.getLangs()],a=this._config??{},r=ox(a,Rn.terminologyBaseUrl);r!==null&&this.controlledFields.setIntegratedSearchUrl(r+x2),Object.hasOwn(a,Rn.languageMapPathPrefix)&&(this.globals.languageMapPathPrefix=Wg(a,Rn.languageMapPathPrefix,"")),Object.hasOwn(a,Rn.fallbackLanguage)?this.fallbackLanguage=Wg(a,Rn.fallbackLanguage,this.fallbackLanguage):this.messages.traceGroup("language",'"fallbackLanguage" not set, using default: "'+this.fallbackLanguage+'"'),Object.hasOwn(a,Rn.defaultLanguage)?this.defaultLanguage=Wg(a,Rn.defaultLanguage,this.defaultLanguage):this.messages.traceGroup("language",'"defaultLanguage" not set, using default: "'+this.defaultLanguage+'"'),Gr(a,Rn.readOnlyMode,false)&&t.enableReadOnlyMode(),this.translate.setFallbackLang(this.fallbackLanguage),this.translate.use(this.defaultLanguage),this.reloadLanguageMapsIfSourceMoved(e,i)}reloadLanguageMapsIfSourceMoved(t,e){this.globals.languageMapPathPrefix!==t&&e.forEach(i=>this.translate.reloadLang(i).subscribe())}};function $1(n){return n instanceof qt||n instanceof gn&&n.isMultiPage()}function sx(n,t){let e=[],i=n;for(let a of t){if(!(i instanceof Bn)&&!(i instanceof Hn)&&!(i instanceof qt))return null;let r=i.getChildByName(a);if(r===null)return null;e.push(r),i=r}return e}function Jg(n,t){return n.filter($1).map(e=>t.getMultiInstanceInfoForComponent(e)?.currentIndex??-1)}var _l=(()=>{class n{constructor(e,i,a){this.registry=e,this.renderScheduler=i,this.zone=a,this.paginator=null,this.targets=new Map,this.revealed=new Set}usePaginator(e){this.paginator=e}registerTarget(e,i){this.targets.set(e,i)}unregisterTarget(e,i){this.targets.get(e)===i&&this.targets.delete(e)}wasRevealed(e,i){return this.revealed.has(lx.of(e,i))}reveal(e,i,a={}){return this.zone.run(()=>this.revealInZone(e,i,a))}revealInZone(e,i,a){return nt(this,null,function*(){let r=e.dataContext.templateRepresentation,o=sx(r,i.path);if(r===null||o===null||o.length===0||o.some(f=>f.hidden))return false;let s=this.paginator,l=s?.currentPageBreakIndex??0;if(s!==null&&s.numPages()>0){let f=s.pageBreakChildren.findIndex(g=>g.includes(o[0]));if(f<0)return false;s.showPage(f)}let c=[],d=this.moveCursors(e,o,i.occurrences??[],c);if(d===null){for(let f of c.reverse())f();return s?.showPage(l),false}if(!(yield this.renderScheduler.schedule(()=>{let f=s!==null&&s.numPages()>0?s.getCurrentPage():r.children;for(let g of f)this.registry.updateViewToModel(g,e);for(let g of o.slice(0,o.indexOf(d)+1))this.targets.get(g)?.open()})))return false;let b=false;return(yield this.renderScheduler.schedule(()=>{b=this.bringIntoView(e,o,d,a)}))&&b})}moveCursors(e,i,a,r){let o=0;for(let[s,l]of i.entries()){if(!$1(l))continue;let c=e.multiInstanceObjectService.getMultiInstanceInfoForComponent(l),d=c?.currentCount??0;if(o<a.length){let m=a[o++];if(c===null||!Number.isInteger(m)||m<0||m>=d)return null;let b=c.currentIndex;r.push(()=>c.currentIndex=b),c.currentIndex=m}else if(d===0&&s<i.length-1)return l}return o<a.length?null:i[i.length-1]}bringIntoView(e,i,a,r){let o=this.targets.get(a)?.host??null;if(o===null)return false;let s=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??false;o.scrollIntoView({block:"center",behavior:s?"auto":"smooth"}),r.focus!==false&&DK.firstControlIn(o)?.focus({preventScroll:true}),this.registry.markRevealed(a);let l=i.slice(0,i.indexOf(a));return this.revealed.add(lx.of(a.path,Jg(l,e.multiInstanceObjectService))),true}static{this.\u0275fac=function(i){return new(i||n)(qe(bt),qe(zo),qe($e))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac})}}return n})();var lx=class{static of(t,e){return`${t.join("/")}|${e.join("/")}`}};var DK=(()=>{class n{static{this.CONTROLS=['input:not([type="hidden"]):not([disabled])',"textarea:not([disabled])",'[role="combobox"]','[role="radio"]','[role="checkbox"]',"select:not([disabled])"]}static firstControlIn(e){for(let i of n.CONTROLS){let a=e.querySelector(i);if(a!==null)return a}return null}}return n})();var cx=class{constructor(t,e,i){this.activeComponentRegistry=t,this.handlerContext=e,this.renderScheduler=i,this.currentPageBreakIndex=0,this.pageBreakChildren=[]}reset(t){this.pageBreakChildren=t,this.currentPageBreakIndex=0}numPages(){return this.pageBreakChildren.length}allPageIndices(){return this.pageBreakChildren.map((t,e)=>e)}getCurrentPage(){return this.pageBreakChildren[this.currentPageBreakIndex]??[]}showPage(t){return t<0||t>=this.pageBreakChildren.length?false:(this.currentPageBreakIndex=t,true)}setPageNumberAndGet(t){return t>=0&&t<this.pageBreakChildren.length?(this.currentPageBreakIndex=t,this.renderScheduler.schedule(()=>{for(let e of this.getCurrentPage())this.activeComponentRegistry.updateViewToModel(e,this.handlerContext)}).catch(e=>this.handlerContext.messageHandlerService.error(`Page render failed: ${e instanceof Error?e.message:String(e)}`)),this.getCurrentPage()):null}};var qg={name:"cedar-embeddable-editor",description:"A reusable Web Component for creating and editing CEDAR metadata instances.",license:"BSD-2-Clause",version:"2.0.22",engines:{node:"^24.15.0"},scripts:{ng:"ng",start:"ng serve",build:"ng build","build:production":"ng build --configuration=production && ng build --configuration=production,host-fonts",test:"vitest run","test:watch":"vitest","test:unit:ci":"vitest run","test:unit:coverage":"vitest run --coverage.enabled","test:coordinator":"ng run cedar-embeddable-editor:coordinator-test --watch=false","test:domain":"npm --prefix harness test","test:domain:coverage":"npm --prefix harness run test:coverage","test:bundle-size":"npm run build:production && npm --prefix visual run bundle && npm --prefix visual run check:size","test:package":"npm run test:visual && npm run package:npm:prebuilt","test:visual:prebuilt":"bash visual/run-in-container.sh","update:visual":"bash visual/run-in-container.sh --update-snapshots","test:visual":"npm run build:production && bash visual/run-in-container.sh","test:ci:nonvisual:prebuilt":"node scripts/test-gate.mjs nonvisual","test:ci:prebuilt":"node scripts/test-gate.mjs prebuilt",typecheck:"tsc -p tsconfig.eslint.json --noEmit && tsc -p harness/tsconfig.json --noEmit && tsc -p visual/tsconfig.json --noEmit","audit:prod":"npm audit --omit=dev --audit-level=high","test:ci":"node scripts/test-gate.mjs full","types:public":"tsc -p tsconfig.public-api.json","package:npm:prebuilt":"npm --prefix visual run check:fresh && npm --prefix visual run check:size && npm run types:public && node scripts/stage-npm-package.mjs && npm run check:npm-package && npm run check:readme-examples","check:npm-package":"node --test scripts/npm-package.test.mjs scripts/test-gate.test.mjs && node scripts/check-npm-package.mjs",lint:"ng lint","check:readme-examples":"node scripts/check-readme-examples.mjs"},allowScripts:{"@parcel/watcher@2.6.0":true,"esbuild@0.28.2":true,"fsevents@2.3.3":true,"lmdb@3.5.6":true,"msgpackr-extract@3.0.4":true},dependencies:{"@angular/cdk":"^22.2.0","@angular/common":"~22.2.0","@angular/compiler":"~22.2.0","@angular/core":"~22.2.0","@angular/elements":"^22.2.0","@angular/forms":"~22.2.0","@angular/material":"^22.2.0","@angular/platform-browser":"~22.2.0","@ngx-translate/core":"^18.0.0","cedar-model-typescript-library":"1.0.18",dompurify:"^3.4.16",jsonld:"^9.0.0","lodash-es":"^4.18.1",n3:"^2.7.12",rxjs:"^7.8.2",tslib:"^2.6.2","zone.js":"~0.16.3"},devDependencies:{"@angular/build":"^22.2.0","@angular/cli":"~22.2.0","@angular/compiler-cli":"~22.2.0","@eslint/js":"^10.0.1","@org.metadatacenter/cedar-design-tokens":"0.1.0-dev.20261008.8a8401b2","@types/jsonld":"^1.5.15","@types/lodash-es":"^4.17.11","@types/n3":"^1.26.4","@types/node":"^24.9.2","@vitest/coverage-v8":"^4.1.11","angular-eslint":"^22.1.0",eslint:"^10.10.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6",globals:"^17.12.0",jsdom:"^30.0.1",prettier:"^3.1.0",typescript:"~6.0.3","typescript-eslint":"^8.66.0",vitest:"^4.1.11"}};var J1="application/json";var dx="application/yaml";var RK="text/turtle";var OK="application/n-quads";var Kg=[{id:"instance",labelKey:"Extra.JsonLD.Instance",icon:"property",suffix:"instance",extension:"json",mediaType:J1},{id:"instanceYaml",labelKey:"Extra.Yaml.Instance",icon:"document",suffix:"instance",extension:"yaml",mediaType:dx},{id:"instanceYamlCompact",labelKey:"Extra.Yaml.InstanceCompact",icon:"document",suffix:"instance-compact",extension:"yaml",mediaType:dx},{id:"instanceTurtle",labelKey:"Extra.Rdf.InstanceTurtle",icon:"property",suffix:"instance",extension:"ttl",mediaType:RK},{id:"instanceNQuads",labelKey:"Extra.Rdf.InstanceNQuads",icon:"property",suffix:"instance",extension:"nq",mediaType:OK},{id:"templateSource",labelKey:"Extra.JsonSchemaTemplate",icon:"artifact-template",suffix:"template",extension:"json",mediaType:J1},{id:"templateYaml",labelKey:"Extra.Yaml.Template",icon:"document",suffix:"template",extension:"yaml",mediaType:dx},{id:"templateYamlCompact",labelKey:"Extra.Yaml.TemplateCompact",icon:"document",suffix:"template-compact",extension:"yaml",mediaType:dx},{id:"dataQuality",labelKey:"Extra.DataQualityReport",icon:"list",suffix:"data-quality",extension:"json",mediaType:J1}];var PK=["templateYaml","templateYamlCompact","templateSource","instanceYaml","instanceYamlCompact","instance","instanceTurtle","instanceNQuads","dataQuality"];var q1=PK.map(n=>{let t=Kg.find(e=>e.id===n);if(t===void 0)throw new Error(`Unknown download menu item: ${n}`);return t});var FK=new Set(["instanceYaml","instanceYamlCompact","instance","instanceTurtle","instanceNQuads","dataQuality"]);var _L=q1.filter(n=>!FK.has(n.id));var Yx=Jk(A3());var i4=Jk(Z3());var vu="http://www.w3.org/1999/02/22-rdf-syntax-ns#";var Nh="http://www.w3.org/2001/XMLSchema#";var Fx="http://www.w3.org/2000/10/swap/";var ya={xsd:{decimal:`${Nh}decimal`,boolean:`${Nh}boolean`,dateTime:`${Nh}dateTime`,double:`${Nh}double`,integer:`${Nh}integer`,string:`${Nh}string`},rdf:{type:`${vu}type`,nil:`${vu}nil`,first:`${vu}first`,rest:`${vu}rest`,langString:`${vu}langString`,dirLangString:`${vu}dirLangString`,reifies:`${vu}reifies`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Fx}reify#forSome`,forAll:`${Fx}reify#forAll`},log:{implies:`${Fx}log#implies`,isImpliedBy:`${Fx}log#isImpliedBy`}};var{xsd:Lx}=ya;var Vx=32;var Bx=9;var e4=10;var jx=13;var uZ=35;var pZ=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g;var t4={"\\":"\\","'":"'",'"':'"',n:`
|
|
307
|
+
`],encapsulation:2})}return n})();var b0;function RG(){if(b0===void 0&&(b0=null,typeof window<"u")){let n=window;if(n.trustedTypes!==void 0)try{b0=n.trustedTypes.createPolicy("angular#components",{createHTML:t=>t})}catch(t){console.error(t)}}return b0}function tu(n){return RG()?.createHTML(n)||n}function hP(n,t,e){let i=e.sanitize(Un.HTML,t);n.innerHTML=tu(i||"")}var fP=new Set;var nu;var Wp=(()=>{class n{_platform=N(An);_nonce=N(dd,{optional:true});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):PG}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&OG(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function OG(n,t){if(!fP.has(n))try{nu||(nu=document.createElement("style"),t&&nu.setAttribute("nonce",t),nu.setAttribute("type","text/css"),document.head.appendChild(nu)),nu.sheet&&(nu.sheet.insertRule(`@media ${n.replace(/[{}]/g,"")} {body{ }}`,0),fP.add(n))}catch(e){console.error(e)}}function PG(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var jg=(()=>{class n{_mediaMatcher=N(Wp);_zone=N($e);_queries=new Map;_destroySubject=new Le;ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return gP(ac(e)).some(a=>this._registerQuery(a).mql.matches)}observe(e){let a=gP(ac(e)).map(o=>this._registerQuery(o).observable),r=zS(a);return r=ms(r.pipe(aa(1)),r.pipe(Sf(1),xf(0))),r.pipe(Ut(o=>{let s={matches:false,breakpoints:{}};return o.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),r={observable:new kt(o=>{let s=l=>this._zone.run(()=>o.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(ii(i),Ut(({matches:o})=>({query:e,matches:o})),Tn(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function gP(n){return n.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var FG=(()=>{class n{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var Jp=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({providers:[FG]})}return n})();var LG=(()=>{class n{_platform=N(An);isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return BG(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return false;let i=VG(WG(e));if(i&&(bP(i)===-1||!this.isVisible(i)))return false;let a=e.nodeName.toLowerCase(),r=bP(e);return e.hasAttribute("contenteditable")?r!==-1:a==="iframe"||a==="object"||this._platform.WEBKIT&&this._platform.IOS&&!GG(e)?false:a==="audio"?e.hasAttribute("controls")?r!==-1:false:a==="video"?r===-1?false:r!==null?true:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return $G(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function VG(n){try{return n.frameElement}catch(t){return null}}function BG(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function jG(n){let t=n.nodeName.toLowerCase();return t==="input"||t==="select"||t==="button"||t==="textarea"}function zG(n){return HG(n)&&n.type=="hidden"}function UG(n){return YG(n)&&n.hasAttribute("href")}function HG(n){return n.nodeName.toLowerCase()=="input"}function YG(n){return n.nodeName.toLowerCase()=="a"}function _P(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return false;let t=n.getAttribute("tabindex");return!!(t&&!isNaN(parseInt(t,10)))}function bP(n){if(!_P(n))return null;let t=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}function GG(n){let t=n.nodeName.toLowerCase(),e=t==="input"&&n.type;return e==="text"||e==="password"||t==="select"||t==="textarea"}function $G(n){return zG(n)?false:jG(n)||UG(n)||n.hasAttribute("contenteditable")||_P(n)}function WG(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var M1=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=false;startAnchorListener=()=>{!this.focusLastTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};endAnchorListener=()=>{!this.focusFirstTabbableElement()&&this._checker.isFocusable(this._element)&&this._element.focus()};get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_enabled=true;constructor(t,e,i,a,r=false,o){this._element=t,this._checker=e,this._ngZone=i,this._document=a,this._injector=o,r||this.attachAnchors()}destroy(){let t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=false}attachAnchors(){return this._hasAttached?true:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=true),this._hasAttached)}focusInitialElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(t)))})}focusFirstTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(t)))})}focusLastTabbableElementWhenReady(t){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(t)))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);return t=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(t){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(t),!!i}return e.focus(t),true}return this.focusFirstTabbableElement(t)}focusFirstTabbableElement(t){let e=this._getRegionBoundary("start");return e&&e.focus(t),!!e}focusLastTabbableElement(t){let e=this._getRegionBoundary("end");return e&&e.focus(t),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let i=0;i<e.length;i++){let a=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(a)return a}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children;for(let i=e.length-1;i>=0;i--){let a=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(a)return a}return null}_createAnchor(){let t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){Wi(t,{injector:this._injector})}};var xP=(()=>{class n{_checker=N(LG);_ngZone=N($e);_document=N(gt);_injector=N(st);constructor(){N(qn).load(Bo)}create(e,i=false){return new M1(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var D1=(()=>{class n{_elementRef=N(Ue);_focusTrapFactory=N(xP);focusTrap=void 0;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||false}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture=false;constructor(){N(An).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,true))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=wd(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Be({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Oe],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Oe]},exportAs:["cdkTrapFocus"],features:[hn]})}return n})();var CP=new be("liveAnnouncerElement",{providedIn:"root",factory:()=>null});var SP=new be("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var JG=0;var A1=(()=>{class n{_ngZone=N($e);_defaultOptions=N(SP,{optional:true});_liveElement;_document=N(gt);_sanitizer=N(uo);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=N(CP,{optional:true});this._liveElement=e||this._createLiveElement()}announce(e,...i){let a=this._defaultOptions,r,o;return i.length===1&&typeof i[0]=="number"?o=i[0]:[r,o]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=a&&a.politeness?a.politeness:"polite"),o==null&&a&&(o=a.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:hP(this._liveElement,e,this._sanitizer),typeof o=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),o)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),a=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return a.classList.add(e),a.classList.add("cdk-visually-hidden"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-live","polite"),a.id=`cdk-live-announcer-${JG++}`,this._document.body.appendChild(a),a}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let a=0;a<i.length;a++){let r=i[a],o=r.getAttribute("aria-owns");o?o.indexOf(e)===-1&&r.setAttribute("aria-owns",o+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var Ed=(function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n})(Ed||{});var yP="cdk-high-contrast-black-on-white";var vP="cdk-high-contrast-white-on-black";var k1="cdk-high-contrast-active";var wP=(()=>{class n{_platform=N(An);_hasCheckedHighContrastMode=false;_document=N(gt);_breakpointSubscription;constructor(){this._breakpointSubscription=N(jg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=false,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Ed.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,a=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(a&&a.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Ed.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Ed.BLACK_ON_WHITE}return Ed.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(k1,yP,vP),this._hasCheckedHighContrastMode=true;let i=this.getHighContrastMode();i===Ed.BLACK_ON_WHITE?e.add(k1,yP):i===Ed.WHITE_ON_BLACK&&e.add(k1,vP)}}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();var zg=(()=>{class n{constructor(){N(wP)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Jp]})}return n})();var qG=200;var y0=class{_letterKeyStream=new Le;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Le;selectedItem=this._selectedItem;constructor(t,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:qG;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(t),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(t){this._selectedItemIndex=t}setItems(t){this._items=t}handleKey(t){let e=t.keyCode;t.key&&t.key.length===1?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(t){this._letterKeyStream.pipe(Fr(e=>this._pressedLetters.push(e)),xf(t),$n(()=>this._pressedLetters.length>0),Ut(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let a=(this._selectedItemIndex+i)%this._items.length,r=this._items[a];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var qp=class{_items;_activeItemIndex=xt(-1);_activeItem=xt(null);_wrap=false;_typeaheadSubscription=wt.EMPTY;_itemChangesSubscription;_vertical=true;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=false;_pageUpAndDown={enabled:false,delta:10};_effectRef;_typeahead;_skipPredicateFn=t=>t.disabled;constructor(t,e){this._items=t,t instanceof lo?this._itemChangesSubscription=t.changes.subscribe(i=>this._itemsChanged(i.toArray())):$a(t)&&(this._effectRef=so(()=>this._itemsChanged(t()),{injector:e}))}tabOut=new Le;change=new Le;skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=true){return this._wrap=t,this}withVerticalOrientation(t=true){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new y0(e,{debounceInterval:typeof t=="number"?t:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(t=true){return this._homeAndEnd=t,this}withPageUpDown(t=true,e=10){return this._pageUpAndDown={enabled:t,delta:e},this}setActiveItem(t){let e=this._activeItem();this.updateActiveItem(t),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(t){let e=t.keyCode,a=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!t[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&a){this.setNextItemActive();break}else return;case 38:if(this._vertical&&a){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&a){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&a){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&a){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&a){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&a){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&a){let r=this._activeItemIndex()+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(a||Ci(t,"shiftKey"))&&this._typeahead?.handleKey(t);return}this._typeahead?.reset(),t.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){let e=this._getItemsArray(),i=typeof t=="number"?t:e.indexOf(t),a=e[i];this._activeItem.set(a??null),this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let a=(this._activeItemIndex()+t*i+e.length)%e.length,r=e[a];if(!this._skipPredicateFn(r)){this.setActiveItem(a);return}}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex()+t,t)}_setActiveItemByIndex(t,e){let i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(t+=e,!i[t])return;this.setActiveItem(t)}}_getItemsArray(){return $a(this._items)?this._items():this._items instanceof lo?this._items.toArray():this._items}_itemsChanged(t){this._typeahead?.setItems(t);let e=this._activeItem();if(e){let i=t.indexOf(e);i>-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var iu=class extends qp{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}};var oc=class extends qp{_origin="program";setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}};var EP=" ";function KG(n,t,e){let i=C0(n,t);e=e.trim(),!i.some(a=>a.trim()===e)&&(i.push(e),n.setAttribute(t,i.join(EP)))}function XG(n,t,e){let i=C0(n,t);e=e.trim();let a=i.filter(r=>r!==e);a.length?n.setAttribute(t,a.join(EP)):n.removeAttribute(t)}function C0(n,t){return n.getAttribute(t)?.match(/\S+/g)??[]}var TP="cdk-describedby-message";var x0="cdk-describedby-host";var P1=0;var Kp=(()=>{class n{_platform=N(An);_document=N(gt);_messageRegistry=new Map;_messagesContainer=null;_id=`${P1++}`;constructor(){N(qn).load(Bo),this._id=N(Wl)+"-"+P1++}describe(e,i,a){if(!this._canBeDescribed(e,i))return;let r=O1(i,a);typeof i!="string"?(IP(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,a),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,a){if(!i||!this._isElementNode(e))return;let r=O1(i,a);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof i=="string"){let o=this._messageRegistry.get(r);o&&o.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${x0}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(x0);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let a=this._document.createElement("div");IP(a,this._id),a.textContent=e,i&&a.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(a),this._messageRegistry.set(O1(e,i),{messageElement:a,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();let a=this._document.createElement("div");a.style.visibility="hidden",a.classList.add(e),a.classList.add("cdk-visually-hidden"),this._platform.isBrowser||a.setAttribute("platform","server"),this._document.body.appendChild(a),this._messagesContainer=a}_removeCdkDescribedByReferenceIds(e){let i=C0(e,"aria-describedby").filter(a=>a.indexOf(TP)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let a=this._messageRegistry.get(i);KG(e,"aria-describedby",a.messageElement.id),e.setAttribute(x0,this._id),a.referenceCount++}_removeMessageReference(e,i){let a=this._messageRegistry.get(i);a.referenceCount--,XG(e,"aria-describedby",a.messageElement.id),e.removeAttribute(x0)}_isElementDescribedByMessage(e,i){let a=C0(e,"aria-describedby"),r=this._messageRegistry.get(i),o=r&&r.messageElement.id;return!!o&&a.indexOf(o)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return false;if(i&&typeof i=="object")return true;let a=i==null?"":`${i}`.trim(),r=e.getAttribute("aria-label");return a?!r||r.trim()!==a:false}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||n)};static \u0275prov=lt({token:n,factory:n.\u0275fac})}return n})();function O1(n,t){return typeof n=="string"?`${t||""}/${n}`:n}function IP(n,t){n.id||(n.id=`${TP}-${t}-${P1++}`)}var S0=(()=>{class n{static{this.nextInstanceId=0}constructor(e){this.wrapper=e,this.instanceId=n.nextInstanceId++,this.descriptions=new Map,this.hostReferences=new Map,this.container=null,this.nextMessageId=0}describe(e,i,a){if(!e||!i)return;let r=typeof i=="string"?`${a??""}\0${i}`:i,o=this.descriptions.get(r);if(!o){let c=typeof i=="string"?e.ownerDocument.createElement("div"):i;c.id||(c.id=`cdk-describedby-message-cee-${this.instanceId}-${this.nextMessageId++}`),typeof i=="string"&&(c.textContent=i,a&&c.setAttribute("role",a),this.getContainer().appendChild(c)),o={element:c,references:0,owned:typeof i=="string"},this.descriptions.set(r,o)}let s=this.referenceIds(e);if(s.includes(o.element.id))return;e.setAttribute("aria-describedby",[...s,o.element.id].join(" ")),o.references++;let l=this.hostReferences.get(e)??new Set;l.add(o.element.id),this.hostReferences.set(e,l)}removeDescription(e,i,a){if(!e||!i)return;let r=typeof i=="string"?`${a??""}\0${i}`:i,o=this.descriptions.get(r);if(!o)return;let s=this.referenceIds(e);if(!s.includes(o.element.id))return;this.writeReferenceIds(e,s.filter(c=>c!==o.element.id));let l=this.hostReferences.get(e);l?.delete(o.element.id),l?.size===0&&this.hostReferences.delete(e),o.references--,o.references===0&&(o.owned&&o.element.remove(),this.descriptions.delete(r)),this.removeEmptyContainer()}ngOnDestroy(){for(let[e,i]of this.hostReferences)this.writeReferenceIds(e,this.referenceIds(e).filter(a=>!i.has(a)));this.hostReferences.clear(),this.descriptions.clear(),this.container?.remove(),this.container=null}getContainer(){if(this.container)return this.container;let e=this.wrapper.nativeElement.shadowRoot;if(!e)throw new Error("CEE aria descriptions require the editor shadow root");return this.container=this.wrapper.nativeElement.ownerDocument.createElement("div"),this.container.classList.add("cdk-describedby-message-container","cdk-visually-hidden"),this.container.style.visibility="hidden",e.appendChild(this.container),this.container}removeEmptyContainer(){this.container&&this.container.childNodes.length===0&&(this.container.remove(),this.container=null)}referenceIds(e){return(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean)}writeReferenceIds(e,i){i.length>0?e.setAttribute("aria-describedby",i.join(" ")):e.removeAttribute("aria-describedby")}static{this.\u0275fac=function(i){return new(i||n)(qe(Ue))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac})}}return n})();var St=class{static{this.year="year"}static{this.month="month"}static{this.day="day"}static{this.hour="hour"}static{this.minute="minute"}static{this.second="second"}static{this.decimalSecond="decimalSecond"}static{this.inputType12h="12h"}static{this.inputType24h="24h"}};var mt=class{static{this.int="xsd:int"}static{this.long="xsd:long"}static{this.float="xsd:float"}static{this.double="xsd:double"}static{this.decimal="xsd:decimal"}static{this.byte="xsd:byte"}static{this.short="xsd:short"}static{this.date="xsd:date"}static{this.dateTime="xsd:dateTime"}static{this.time="xsd:time"}};var jo=class{static{this.DATE=/^(\d{4})-(\d{2})-(\d{2})(Z|[+-]\d{2}:\d{2})?$/}static{this.TIME=/^(\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d+))?(Z|[+-]\d{2}:\d{2})?$/}static{this.DATE_TIME=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?(?:\.(\d+))?(Z|[+-]\d{2}:\d{2})?$/}static{this.XSD_OFFSET=/^(?:Z|[+-](?:(?:0\d|1[0-3]):[0-5]\d|14:00))$/}static isValidOffset(t){return this.XSD_OFFSET.test(t)}static empty(){return{year:null,month:null,day:null,hour:null,minute:null,second:null,fraction:null,offset:null}}static parse(t,e){if(typeof t!="string"||t.length===0)return null;let i=this.empty();if(e.temporalType===mt.date){let a=t.match(this.DATE);if(a===null)return null;[,i.year,i.month,i.day,i.offset]=a}else if(e.temporalType===mt.time){let a=t.match(this.TIME);if(a===null)return null;[,i.hour,i.minute,i.second,i.fraction,i.offset]=a}else if(e.temporalType===mt.dateTime){let a=t.match(this.DATE_TIME);if(a===null)return null;[,i.year,i.month,i.day,i.hour,i.minute,i.second,i.fraction,i.offset]=a}else return null;return this.normalize(i,e)}static normalizeDeclaredDefault(t,e){let i=this.parse(t,e);if(i!==null)return this.serialize(i,e);let a=this.empty(),r=e.granularity,o;if(e.temporalType===mt.date)if(r===St.year&&(o=t.match(/^(\d{4})$/))!==null)[,a.year]=o;else if(r===St.month&&(o=t.match(/^(\d{4})-(\d{2})$/))!==null)[,a.year,a.month]=o;else return null;else if(e.temporalType===mt.time)if(r===St.hour&&(o=t.match(/^(\d{2})(Z|[+-]\d{2}:\d{2})?$/))!==null)[,a.hour,a.offset]=o;else return null;else if(e.temporalType===mt.dateTime)if(r===St.day&&(o=t.match(/^(\d{4})-(\d{2})-(\d{2})$/))!==null)[,a.year,a.month,a.day]=o;else if(r===St.hour&&(o=t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})(Z|[+-]\d{2}:\d{2})?$/))!==null)[,a.year,a.month,a.day,a.hour,a.offset]=o;else return null;else return null;return this.serialize(a,e)}static normalize(t,e){let i=Y({},t),a=e.granularity;return e.temporalType===mt.date?(this.removeTime(i),a===St.year?(i.month="01",i.day="01"):a===St.month&&(i.day="01")):e.temporalType===mt.time?(this.removeDate(i),this.normalizeTime(i,a)):e.temporalType===mt.dateTime&&(a===St.year?(i.month="01",i.day="01",this.zeroTime(i)):a===St.month?(i.day="01",this.zeroTime(i)):a===St.day?this.zeroTime(i):this.normalizeTime(i,a)),e.timezoneEnabled||(i.offset=null),i.fraction!==null&&!/^\d+$/.test(i.fraction)&&(i.fraction=null),i}static serialize(t,e){let i=this.normalize(t,e);if(!this.isComplete(i,e))return null;let a=`${this.year(i.year)}-${this.two(i.month)}-${this.two(i.day)}`,r=e.granularity===St.decimalSecond?`.${i.fraction}`:"",o=`${this.two(i.hour)}:${this.two(i.minute)}:${this.two(i.second)}${r}`,s=i.offset??"";return e.temporalType===mt.date?a+s:e.temporalType===mt.time?o+s:e.temporalType===mt.dateTime?`${a}T${o}${s}`:null}static isComplete(t,e){let i=e.granularity,a=(...o)=>o.every(s=>s!=null&&s!=="");if(e.temporalType===mt.date)return i===St.year?a(t.year):i===St.month?a(t.year,t.month):i===St.day?a(t.year,t.month,t.day):false;let r=()=>i===St.hour?a(t.hour):i===St.minute?a(t.hour,t.minute):i===St.second?a(t.hour,t.minute,t.second):i===St.decimalSecond?a(t.hour,t.minute,t.second,t.fraction):false;return e.temporalType===mt.time?r():e.temporalType===mt.dateTime?i===St.year?a(t.year):i===St.month?a(t.year,t.month):i===St.day?a(t.year,t.month,t.day):a(t.year,t.month,t.day)&&r():false}static normalizeTime(t,e){e===St.hour?(t.minute="00",t.second="00",t.fraction=null):e===St.minute?(t.second="00",t.fraction=null):e===St.second&&(t.fraction=null)}static zeroTime(t){t.hour="00",t.minute="00",t.second="00",t.fraction=null}static removeDate(t){t.year=null,t.month=null,t.day=null}static removeTime(t){t.hour=null,t.minute=null,t.second=null,t.fraction=null}static year(t){return(t??"").padStart(4,"0")}static two(t){return(t??"").padStart(2,"0")}};var Es=class n{static getEmptyValueWrapper(t){return t.basicInfo.inputType===le.attributeValue?new fa(""):Nt.emptySlot(n.isIriValued(t),n.xsdTypeForFullCopy(t))}static getDefaultValueWrappers(t){let e=t.choiceInfo.choices.filter(a=>a.selectedByDefault);if(e.length>0)return e.map(a=>Nt.literalValue(a.label));let i=t.valueInfo.defaultValue;if(dl(i))return[Nt.iriValue(i.iri,i.label)];if(i==="")return[];if(t.basicInfo.inputType===le.controlled)return[];if(typeof i=="string"&&n.isIriValued(t))return[Nt.iriValue(i)];if(typeof i=="string"&&t.basicInfo.inputType===le.temporal){let a=jo.normalizeDeclaredDefault(i,{temporalType:t.valueInfo.temporalType,granularity:t.basicInfo.temporalGranularity,timezoneEnabled:t.basicInfo.timezoneEnabled===true});return[Nt.literalValue(a??i,n.xsdTypeForFullCopy(t))]}return typeof i=="string"||typeof i=="number"||typeof i=="boolean"?[Nt.literalValue(String(i),n.xsdTypeForFullCopy(t))]:[]}static isIriValued(t){let e=t?.basicInfo?.inputType;return e===le.link||e===le.controlled||e!==null&&xs.has(e)}static xsdTypeForFullCopy(t){return t?.numberInfo?.numberType??t?.valueInfo?.temporalType??null}static arraysEqual(t,e){if(!e||t.length!==e.length)return false;for(let i=0,a=t.length;i<a;i++)if(t[i]instanceof Array&&e[i]instanceof Array){if(!n.arraysEqual(t[i],e[i]))return false}else if(t[i]!==e[i])return false;return true}};var Bn=class extends cl{constructor(){super(...arguments),this.className="CedarTemplate",this.pageBreakChildren=[],this.isBasedOn=null,this.parsed=null}hasPageBreaks(){return this.pageBreakChildren.length>1&&!Es.arraysEqual(this.children,this.pageBreakChildren[0])}isMulti(){return false}isMultiPage(){return false}};var zo=(()=>{class n{constructor(e){this.injector=e,this.generation=0,this.pending=null,this.destroyed=false}schedule(e){if(this.destroyed)return Promise.resolve(false);this.cancelPending();let i=++this.generation;return new Promise((a,r)=>{let o={generation:i,ref:Wi(()=>{if(this.destroyed||this.pending!==o||i!==this.generation){a(false);return}this.pending=null;try{e(),a(true)}catch(s){r(s)}},{injector:this.injector}),resolve:a};this.pending=o})}cancel(){++this.generation,this.cancelPending()}ngOnDestroy(){this.destroyed=true,this.cancel()}cancelPending(){let e=this.pending;e!==null&&(this.pending=null,e.ref.destroy(),e.resolve(false))}static{this.\u0275fac=function(i){return new(i||n)(qe(st))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac})}}return n})();var gl=class extends cl{constructor(){super(...arguments),this.className="NullTemplate",this.pageBreakChildren=[]}hasPageBreaks(){return false}isMulti(){return false}isMultiPage(){return false}};var Yg=class extends gl{};var N0=class{constructor(){this.content="",this.width=null,this.height=null}};var Ra=class{constructor(){this.className="StaticFieldComponent",this.name="",this.path=[],this.propertyIri=null,this.labelInfo=new ll,this.basicInfo=new Bp,this.contentInfo=new N0,this.hidden=false,this.hiddenInTemplate=false}isMulti(){return false}isMultiPage(){return false}};var I0=class{constructor(t,e){this.label=t,this.selectedByDefault=e}};function kP(n){let t=n._ui?.inputType,e=n._valueConstraints?.defaultValue;if((t==="temporal"||t==="link"||typeof t=="string"&&t.startsWith("ext-"))&&typeof e=="string")return e;let i=e&&typeof e=="object"&&!Array.isArray(e)?e:null;if(i&&typeof i.termUri=="string"&&i.termUri!==""&&typeof i["rdfs:label"]=="string"&&i["rdfs:label"].trim()!=="")return{termUri:i.termUri,label:i["rdfs:label"]};if(t==="numeric"&&(typeof e=="number"||typeof e=="string"&&/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?$/.test(e))&&Number.isFinite(Number(e)))return Number(e)}function MP(n){let t=structuredClone(n),e=i=>{kP(i)!==void 0&&delete i._valueConstraints.defaultValue;let a=i.properties;for(let r of Object.values(a??{}))r&&typeof r=="object"&&!Array.isArray(r)&&e(r);i.items&&typeof i.items=="object"&&e(i.items)};return e(t),t}function F1(n,t){let e=t.items??t;if(n instanceof M2||n instanceof D2){let i=e.properties;for(let a of n.getChildrenInfo().children){let r=n.getChild(a.name),o=i?.[a.name];r&&o&&F1(r,o)}}else{let i=kP(e),a=e._ui?.inputType;(a==="link"||typeof a=="string"&&a.startsWith("ext-"))&&typeof i=="string"&&(n.valueConstraints.defaultValue=new m1(i)),i!==void 0&&typeof i=="object"&&(n.valueConstraints.defaultValue=new I2().withTermUri(new m1(i.termUri)).withRdfsLabel(i.label).build()),n.cedarFieldType===_i.NUMERIC&&typeof i=="number"&&(n.valueConstraints.defaultValue=i),n.cedarFieldType===_i.TEMPORAL&&typeof i=="string"&&(n.valueConstraints.defaultValue=i)}}var QG="jtr07";var L1=n=>n.cedarFieldType===_i.TEXT;var DP=n=>n.cedarFieldType===_i.TEXTAREA;var ZG=n=>n.cedarFieldType===_i.EMAIL||n.cedarFieldType===_i.PHONE_NUMBER;var e$=n=>[_i.LINK,_i.EXT_ORCID,_i.EXT_ROR,_i.EXT_PFAS,_i.EXT_RRID,_i.EXT_PUBMED,_i.EXT_NIH_GRANT_ID,_i.EXT_DOI].includes(n.cedarFieldType);var t$=n=>n.cedarFieldType===_i.NUMERIC;var n$=n=>n.cedarFieldType===_i.TEMPORAL;var i$=n=>n.cedarFieldType===_i.CONTROLLED_TERM;var AP=n=>n.cedarFieldType===_i.CHECKBOX;var RP=n=>n.cedarFieldType===_i.RADIO;var V1=n=>n.cedarFieldType===_i.SINGLE_SELECT_LIST||n.cedarFieldType===_i.MULTIPLE_SELECT_LIST;var a$=n=>n.cedarFieldType===_i.STATIC_YOUTUBE;var r$=n=>n.cedarFieldType===_i.STATIC_IMAGE;var o$=n=>n.cedarFieldType===_i.STATIC_RICH_TEXT;var s$=n=>n instanceof gn||n instanceof qt;var au=class n{static{this.BLANK_DESCRIPTION="Help Text"}parse(t,e,i){let a=gd.json().getFebruary2024().getTemplateReader().readFromObject(MP(t));F1(a.template,t),n.report(a.parsingResult.getBlueprintComparisonErrors(),i),n.mapParsedTemplate(a.template,e),e.isBasedOn||i.messageHandlerService.error("Template has no @id, so instances of it cannot say which template they came from. This is a template that has never been saved.")}static mapParsedTemplate(t,e){e.parsed=t,n.wrap(t,e,[]),n.generatePropertyIris(t,e),e.labelInfo.label=t.schema_name,e.labelInfo.description=t.schema_description,e.isBasedOn=t.at_id.getValue()}static report(t,e){for(let i of t)i.errorLocation===QG?e.messageHandlerService.error(`Template lists "${i.encounteredValue}" in _ui.order but has no such property. Skipping it.`):e.messageHandlerService.trace(`Template departs from the CEDAR blueprint at ${JSON.stringify(i.errorPath)} (${i.errorLocation}).`)}static wrap(t,e,i){for(let a of t.getChildrenInfo().children){let r=a.name,o=t.getChild(r);if(o===null)continue;let s=a.isMultiInAnyWay(),l=i.slice();l.push(r);let c=null;if(a.atType===$_.TEMPLATE_FIELD){let d=o;c=s?new gn:new Zi,n.extractValueConstraints(d,a,c),n.extractLabels(d,a,r,c)}else if(a.atType===$_.TEMPLATE_ELEMENT){let d=o;c=s?new qt:new Hn,n.extractLabels(d,a,r,c),n.wrap(d,c,l),n.generatePropertyIris(d,c)}else if(a.atType===$_.STATIC_TEMPLATE_FIELD){let d=o,m=new Ra;m.basicInfo.inputType=a.uiInputType.getValue(),a$(d)?(m.contentInfo.content=d.videoId??"",m.contentInfo.width=d.width??null,m.contentInfo.height=d.height??null):r$(d)?(m.contentInfo.content=d.content??"",m.contentInfo.width=d.width??null,m.contentInfo.height=d.height??null):o$(d)&&(m.contentInfo.content=d.content??""),n.extractLabels(d,a,r,m),c=m}if(c!==null){if(s&&s$(c)){let d=a;c.multiInfo.minItems=d.minItems??null,c.multiInfo.maxItems=d.maxItems??null}c.hiddenInTemplate=a.hidden===true,c.hidden=c.hiddenInTemplate,e.children.push(c),c.name=r,c.path=l}}}static generatePropertyIris(t,e){let i={},a=t.getChildrenInfo().getChildIriMap();for(let r of Object.keys(a)){i[r]=String(a[r]);let o=e.getChildByName(r);o!==null&&(o.propertyIri=i[r])}e.contextEntries=i}static extractValueConstraints(t,e,i){let a=t.cedarFieldType;if(i.basicInfo.inputType=a===_i.CONTROLLED_TERM?le.controlled:a.getUiInputType().getValue(),i.valueInfo.requiredValue=e.requiredValue,n$(t)&&(i.basicInfo.timezoneEnabled=t.timezoneEnabled===true,i.basicInfo.inputTimeFormat=t.inputTimeFormat.getValue(),i.basicInfo.temporalGranularity=t.temporalGranularity.getValue(),i.valueInfo.temporalType=t.valueConstraints.temporalType.getValue(),i.valueInfo.defaultValue=t.valueConstraints.defaultValue??null),(L1(t)||DP(t)||V1(t)||ZG(t)||RP(t)||AP(t))&&(i.valueInfo.defaultValue=t.valueConstraints.defaultValue??null),e$(t)&&(i.valueInfo.defaultValue=t.valueConstraints.defaultValue?.getValue()??null),(L1(t)||DP(t))&&(i.valueInfo.minLength=t.valueConstraints.minLength??null,i.valueInfo.maxLength=t.valueConstraints.maxLength??null),L1(t)&&(i.valueInfo.regex=t.valueConstraints.regex??null),t$(t)&&(i.numberInfo.numberType=t.valueConstraints.numberType.getValue(),i.valueInfo.defaultValue=t.valueConstraints.defaultValue??null,i.numberInfo.unitOfMeasure=t.valueConstraints.unitOfMeasure??null,i.numberInfo.minValue=t.valueConstraints.minValue??null,i.numberInfo.maxValue=t.valueConstraints.maxValue??null,i.numberInfo.decimalPlace=t.valueConstraints.decimalPlaces??null),AP(t)||RP(t)||V1(t))for(let r of t.valueConstraints.literals)i.choiceInfo.choices.push(new I0(r.label??"",r.selectedByDefault===true));i.choiceInfo.multipleChoice=V1(t)&&t.multipleChoice===true,i$(t)&&n.extractControlledInfo(t.valueConstraints,i)}static extractControlledInfo(t,e){let i=Fo.json().getStrict(),a=r=>r.map(o=>i.getWriterForValueConstraint(o).getAsJsonNode(o));e.controlledInfo.ontologies=a(t.ontologies),e.controlledInfo.valueSets=a(t.valueSets),e.controlledInfo.classes=a(t.classes),e.controlledInfo.branches=a(t.branches),e.controlledInfo.actions=a(t.actions.filter(n.isServableAction)),t.defaultValue!=null?e.valueInfo.defaultValue={iri:t.defaultValue.termUri.getValue(),label:t.defaultValue.rdfsLabel}:e.valueInfo.defaultValue=null}static isServableAction(t){return t.termUri.isEmpty()||t.source.length===0||t.type.getJsonValue()===null?false:t.action==="delete"?true:t.action==="move"&&t.to!==null}static extractLabels(t,e,i,a){a.labelInfo.preferredLabel=t.skos_prefLabel??null,a.labelInfo.deploymentLabel=n.declared(e.label,i,t.schema_name),a.labelInfo.label=t.schema_name??null,a.labelInfo.description=n.authored(n.declared(e.description,i,t.schema_description))??n.authored(t.schema_description)}static declared(t,e,i){return t==null||t===e||t===i?null:t}static authored(t){return t==null||t===n.BLANK_DESCRIPTION?null:t}};var E0=class{parse(t,e,i){let a=gd.yaml().getStrict().getTemplateReader().readFromObject(t);au.mapParsedTemplate(a.template,e)}};var OP=n=>"@context"in n||"@type"in n||"properties"in n?new au:"modelVersion"in n||"children"in n?new E0:new au;var T0=class n{static create(t,e,i){if(t===null)return new gl;{let a=new Bn;return(i??OP(t)).parse(t,a,e),n.extractPageBreakPages(a),a}}static extractPageBreakPages(t){let e=[],i=[];for(let a of t.children)a instanceof Ra&&a.basicInfo.inputType===le.pageBreak?(e.push(i.length>0?i:[new Yg]),i=[]):i.push(a);i.length>0?e.push(i):t.children.length>0&&e.push([new Yg]),t.pageBreakChildren=e}};var ru=class{constructor(){this.templateInput=null,this.templateRepresentation=null,this.instanceFullData=null,this.dataQualityReport=null,this.savedTemplateID=null,this.derivedExtract=null}get instanceExtractData(){return this.derivedExtract===null&&this.instanceFullData!==null&&(this.derivedExtract=this.instanceFullData.dataContainer),this.derivedExtract}mutate(t){t(this.instanceFullData?.dataContainer??null),this.invalidateDerivedViews()}invalidateDerivedViews(){this.derivedExtract=null}setInputTemplate(t,e,i,a,r){this.templateInput=t,this.templateRepresentation=T0.create(this.templateInput,e,a),i?.reset(this.templateRepresentation.pageBreakChildren);let o=e.multiInstanceObjectService;if(this.instanceFullData===null){let s=e.dataObjectBuilderService;this.instanceFullData=s.buildNewFullDataObject(this.templateRepresentation),this.invalidateDerivedViews(),o.buildNewOrFromMetadata(this.templateRepresentation,this.instanceFullData.dataContainer,r)}else{let s=this.templateRepresentation instanceof Bn?this.templateRepresentation.isBasedOn:null,l=this.instanceFullData.schema_isBasedOn.getValue();s!==null&&l===null?this.instanceFullData.schema_isBasedOn=w2.forValue(s):s!==null&&l!==null&&l!==s&&e.messageHandlerService.error(`Instance schema:isBasedOn is ${l}, but the loaded template is ${s}.`),o.buildNewOrFromMetadata(this.templateRepresentation,this.instanceFullData.dataContainer,r)}this.invalidateDerivedViews(),this.savedTemplateID=null,e.buildQualityReport()}};var bl=class n{constructor(){this.childrenByName=new Map}addState(t){this.childrenByName.set(t.componentName,t)}getState(t){return this.childrenByName.get(t)??null}clone(){let t=new n;for(let e of this.childrenByName.values())t.addState(e.clone());return t}};var k0=class n{get currentIndex(){let t=this.currentCount;return t===0?-1:Math.min(this.storedIndex,t-1)}set currentIndex(t){this.storedIndex=t}constructor(t,e=null){this.storedIndex=-1,this.storedCount=0,this.componentName=t,this.countSupplier=e,this.occurrences=new Array}get currentCount(){return this.countSupplier?this.countSupplier():this.storedCount}set currentCount(t){this.countSupplier||(this.storedCount=t)}addOccurrence(t){this.occurrences.push(t)}clone(){let t=new n(this.componentName,this.countSupplier);t.storedIndex=this.storedIndex,t.storedCount=this.storedCount;for(let e of this.occurrences)t.addOccurrence(e.clone());return t}};var B1=n=>`@#index[${n}]#@`;var M0=class n{read(t,e){n.walk(t,[],e)}static walk(t,e,i){for(let a of Object.keys(t.values)){let r=t.values[a],o=e.slice();if(o.push(a),Array.isArray(r))i(o.slice(),r.length),r.forEach((s,l)=>{s instanceof xi&&n.walk(s,[...o,B1(l)],i)});else if(r instanceof Vp)n.emitAttributeValue(r,o,e,i);else if(r instanceof xi){let s=o.slice();s.push(B1(0)),n.walk(r,s,i)}else r instanceof yd?i(o,0):i(o,1)}}static emitAttributeValue(t,e,i,a){let r=Object.keys(t.values);a(e,r.length);for(let o of r){let s=i.slice();s.push(o),a(s,1)}}};var D0=class n{constructor(){this.stateRoot=new bl,this.templateRepresentation=null,this.sourceInstance=null,this.initialized=false,this.resolveInstanceNode=null}static{this.defaultInstanceReader=new M0}static{this.indexRegEx=/^@#index\[(\d+)]#@$/}setInstanceResolver(t){this.resolveInstanceNode=t}countInInstance(t){if(!this.resolveInstanceNode)return 0;let e=this.resolveInstanceNode(t);return Array.isArray(e)?e.length:e instanceof Vp?Object.keys(e.values).length:0}buildNewOrFromMetadata(t,e=null,i=n.defaultInstanceReader){this.initialized=false,this.sourceInstance=null,this.templateRepresentation=t,this.stateRoot=new bl,this.buildRecursively(t,this.stateRoot),e&&i.read(e,(a,r)=>this.setSingleMultiInstance(a,r,this.stateRoot)),this.sourceInstance=e,this.initialized=true}isInitialized(){return this.initialized}isBuiltFor(t,e){return this.initialized&&this.templateRepresentation===t&&this.sourceInstance===e}setSingleMultiInstance(t,e,i){let a=i,r=this.templateRepresentation,o=null;for(let s of t){let l=s.match(n.indexRegEx);if(l!==null){if(o===null||!(r instanceof qt||r instanceof Hn))return;let c=Number(l[1]);for(;o.occurrences.length<=c;){let d=new bl;this.buildRecursively(r,d),o.addOccurrence(d)}a=o.occurrences[c];continue}if(!(r instanceof qt||r instanceof Hn||r instanceof Bn)||(r=r.getChildByName(s),o=a.getState(s),r===null||o===null))return}if(o!==null){if(r instanceof qt)for(;o.occurrences.length<e;){let s=new bl;this.buildRecursively(r,s),o.addOccurrence(s)}o.currentCount=e,o.currentIndex=e>0?0:-1}}buildRecursively(t,e){if(!(t instanceof qt||t instanceof Hn||t instanceof Bn))return;let i=t;for(let a of i.children){let r=a.name,o=a instanceof gn||a instanceof qt?()=>this.countInInstance(a.path):null,s=new k0(r,o);e.addState(s);let l=0,c=-1;if(a instanceof gn)l=a.multiInfo.getSafeMinItems(),c=l>0?0:-1;else if(a instanceof Zi)l=1,c=-1;else if(a instanceof qt){l=a.multiInfo.getSafeMinItems(),c=l>0?0:-1;for(let d=0;d<l;d++){let m=new bl;this.buildRecursively(a,m),s.addOccurrence(m)}}else if(a instanceof Hn){l=1,c=-1;let d=new bl;this.buildRecursively(a,d),s.addOccurrence(d)}s.currentCount=l,s.currentIndex=c}}setCurrentIndex(t,e){let i=this.getDataPathNode(t.path);i!==null&&(i.currentIndex=e)}multiInstanceItemAdd(t){let e=this.getDataPathNode(t.path);if(e!==null){if(t instanceof qt){let i=new bl;this.buildRecursively(t,i),e.occurrences.splice(e.currentIndex+1,0,i)}e.currentIndex++}}multiInstanceItemCopy(t){let e=this.getDataPathNode(t.path);if(e!==null){if(t instanceof qt){let i=e.currentIndex,a=e.occurrences[i];if(a===void 0)return;e.occurrences.splice(i+1,0,a.clone())}e.currentIndex++}}multiInstanceItemDelete(t){let e=this.getDataPathNode(t.path);if(e!==null&&t instanceof qt){let i=e.currentIndex;e.occurrences.splice(i,1)}}getMultiInstanceInfoForComponent(t){return this.getDataPathNode(t.path)}getDataPathNode(t){return this.getDataPathNodeRecursively(this.stateRoot,this.templateRepresentation,t)}getDataPathNodeRecursively(t,e,i){let a=i[0],r=i.slice(1),o=null,s=null;if((e instanceof Hn||e instanceof Bn||e instanceof qt)&&(o=e.getChildByName(a),s=t.getState(a)),r.length===0)return s;if(s===null||o===null)return null;let l=s.currentIndex>0?s.currentIndex:0,c=s.occurrences[l];return c===void 0?null:this.getDataPathNodeRecursively(c,o,r)}hasMultiInstances(t){return(this.getMultiInstanceInfoForComponent(t)?.currentCount??0)>0}};var Ts=class{static fromCursor(t){return e=>{let i=t.getMultiInstanceInfoForComponent(e);return i?i.currentIndex:null}}static at(t){let e=0;return()=>{let i=t[e];return e+=1,i===void 0?null:i}}};var l$=typeof global=="object"&&global&&global.Object===Object&&global;var A0=l$;var c$=typeof self=="object"&&self&&self.Object===Object&&self;var d$=A0||c$||Function("return this")();var ga=d$;var m$=ga.Symbol;var sc=m$;var PP=Object.prototype;var u$=PP.hasOwnProperty;var p$=PP.toString;var Gg=sc?sc.toStringTag:void 0;function h$(n){var t=u$.call(n,Gg),e=n[Gg];try{n[Gg]=void 0;var i=true}catch(r){}var a=p$.call(n);return i&&(t?n[Gg]=e:delete n[Gg]),a}var FP=h$;var f$=Object.prototype;var g$=f$.toString;function b$(n){return g$.call(n)}var LP=b$;var y$="[object Null]";var v$="[object Undefined]";var VP=sc?sc.toStringTag:void 0;function _$(n){return n==null?n===void 0?v$:y$:VP&&VP in Object(n)?FP(n):LP(n)}var lc=_$;function x$(n){return n!=null&&typeof n=="object"}var yl=x$;var C$=Array.isArray;var Xp=C$;function S$(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}var vl=S$;var w$="[object AsyncFunction]";var N$="[object Function]";var I$="[object GeneratorFunction]";var E$="[object Proxy]";function T$(n){if(!vl(n))return false;var t=lc(n);return t==N$||t==I$||t==w$||t==E$}var R0=T$;var k$=ga["__core-js_shared__"];var O0=k$;var BP=(function(){var n=/[^.]+$/.exec(O0&&O0.keys&&O0.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function M$(n){return!!BP&&BP in n}var jP=M$;var D$=Function.prototype;var A$=D$.toString;function R$(n){if(n!=null){try{return A$.call(n)}catch(t){}try{return n+""}catch(t){}}return""}var cc=R$;var O$=/[\\^$.*+?()[\]{}|]/g;var P$=/^\[object .+?Constructor\]$/;var F$=Function.prototype;var L$=Object.prototype;var V$=F$.toString;var B$=L$.hasOwnProperty;var j$=RegExp("^"+V$.call(B$).replace(O$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z$(n){if(!vl(n)||jP(n))return false;var t=R0(n)?j$:P$;return t.test(cc(n))}var zP=z$;function U$(n,t){return n?.[t]}var UP=U$;function H$(n,t){var e=UP(n,t);return zP(e)?e:void 0}var Hr=H$;var Y$=Hr(ga,"WeakMap");var P0=Y$;var HP=Object.create;var G$=(function(){function n(){}return function(t){if(!vl(t))return{};if(HP)return HP(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}})();var YP=G$;function $$(n,t){var e=-1,i=n.length;for(t||(t=Array(i));++e<i;)t[e]=n[e];return t}var GP=$$;var W$=(function(){try{var n=Hr(Object,"defineProperty");return n({},"",{}),n}catch(t){}})();var j1=W$;function J$(n,t){for(var e=-1,i=n==null?0:n.length;++e<i&&t(n[e],e,n)!==false;);return n}var $P=J$;var q$=9007199254740991;var K$=/^(?:0|[1-9]\d*)$/;function X$(n,t){var e=typeof n;return t=t??q$,!!t&&(e=="number"||e!="symbol"&&K$.test(n))&&n>-1&&n%1==0&&n<t}var WP=X$;function Q$(n,t,e){t=="__proto__"&&j1?j1(n,t,{configurable:true,enumerable:true,value:e,writable:true}):n[t]=e}var F0=Q$;function Z$(n,t){return n===t||n!==n&&t!==t}var L0=Z$;var eW=Object.prototype;var tW=eW.hasOwnProperty;function nW(n,t,e){var i=n[t];(!(tW.call(n,t)&&L0(i,e))||e===void 0&&!(t in n))&&F0(n,t,e)}var V0=nW;function iW(n,t,e,i){var a=!e;e||(e={});for(var r=-1,o=t.length;++r<o;){var s=t[r],l=i?i(e[s],n[s],s,e,n):void 0;l===void 0&&(l=n[s]),a?F0(e,s,l):V0(e,s,l)}return e}var Td=iW;var aW=9007199254740991;function rW(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=aW}var B0=rW;function oW(n){return n!=null&&B0(n.length)&&!R0(n)}var j0=oW;var sW=Object.prototype;function lW(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||sW;return n===e}var Qp=lW;function cW(n,t){for(var e=-1,i=Array(n);++e<n;)i[e]=t(e);return i}var JP=cW;var dW="[object Arguments]";function mW(n){return yl(n)&&lc(n)==dW}var z1=mW;var qP=Object.prototype;var uW=qP.hasOwnProperty;var pW=qP.propertyIsEnumerable;var hW=z1((function(){return arguments})())?z1:function(n){return yl(n)&&uW.call(n,"callee")&&!pW.call(n,"callee")};var KP=hW;function fW(){return false}var XP=fW;var eF=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var QP=eF&&typeof module=="object"&&module&&!module.nodeType&&module;var gW=QP&&QP.exports===eF;var ZP=gW?ga.Buffer:void 0;var bW=ZP?ZP.isBuffer:void 0;var yW=bW||XP;var z0=yW;var vW="[object Arguments]";var _W="[object Array]";var xW="[object Boolean]";var CW="[object Date]";var SW="[object Error]";var wW="[object Function]";var NW="[object Map]";var IW="[object Number]";var EW="[object Object]";var TW="[object RegExp]";var kW="[object Set]";var MW="[object String]";var DW="[object WeakMap]";var AW="[object ArrayBuffer]";var RW="[object DataView]";var OW="[object Float32Array]";var PW="[object Float64Array]";var FW="[object Int8Array]";var LW="[object Int16Array]";var VW="[object Int32Array]";var BW="[object Uint8Array]";var jW="[object Uint8ClampedArray]";var zW="[object Uint16Array]";var UW="[object Uint32Array]";var Ri={};Ri[OW]=Ri[PW]=Ri[FW]=Ri[LW]=Ri[VW]=Ri[BW]=Ri[jW]=Ri[zW]=Ri[UW]=true;Ri[vW]=Ri[_W]=Ri[AW]=Ri[xW]=Ri[RW]=Ri[CW]=Ri[SW]=Ri[wW]=Ri[NW]=Ri[IW]=Ri[EW]=Ri[TW]=Ri[kW]=Ri[MW]=Ri[DW]=false;function HW(n){return yl(n)&&B0(n.length)&&!!Ri[lc(n)]}var tF=HW;function YW(n){return function(t){return n(t)}}var Zp=YW;var nF=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var $g=nF&&typeof module=="object"&&module&&!module.nodeType&&module;var GW=$g&&$g.exports===nF;var U1=GW&&A0.process;var $W=(function(){try{var n=$g&&$g.require&&$g.require("util").types;return n||U1&&U1.binding&&U1.binding("util")}catch(t){}})();var dc=$W;var iF=dc&&dc.isTypedArray;var WW=iF?Zp(iF):tF;var aF=WW;var JW=Object.prototype;var qW=JW.hasOwnProperty;function KW(n,t){var e=Xp(n),i=!e&&KP(n),a=!e&&!i&&z0(n),r=!e&&!i&&!a&&aF(n),o=e||i||a||r,s=o?JP(n.length,String):[],l=s.length;for(var c in n)(t||qW.call(n,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||r&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||WP(c,l)))&&s.push(c);return s}var U0=KW;function XW(n,t){return function(e){return n(t(e))}}var H0=XW;var QW=H0(Object.keys,Object);var rF=QW;var ZW=Object.prototype;var eJ=ZW.hasOwnProperty;function tJ(n){if(!Qp(n))return rF(n);var t=[];for(var e in Object(n))eJ.call(n,e)&&e!="constructor"&&t.push(e);return t}var oF=tJ;function nJ(n){return j0(n)?U0(n):oF(n)}var eh=nJ;function iJ(n){var t=[];if(n!=null)for(var e in Object(n))t.push(e);return t}var sF=iJ;var aJ=Object.prototype;var rJ=aJ.hasOwnProperty;function oJ(n){if(!vl(n))return sF(n);var t=Qp(n),e=[];for(var i in n)i=="constructor"&&(t||!rJ.call(n,i))||e.push(i);return e}var lF=oJ;function sJ(n){return j0(n)?U0(n,true):lF(n)}var th=sJ;var lJ=Hr(Object,"create");var mc=lJ;function cJ(){this.__data__=mc?mc(null):{},this.size=0}var cF=cJ;function dJ(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}var dF=dJ;var mJ="__lodash_hash_undefined__";var uJ=Object.prototype;var pJ=uJ.hasOwnProperty;function hJ(n){var t=this.__data__;if(mc){var e=t[n];return e===mJ?void 0:e}return pJ.call(t,n)?t[n]:void 0}var mF=hJ;var fJ=Object.prototype;var gJ=fJ.hasOwnProperty;function bJ(n){var t=this.__data__;return mc?t[n]!==void 0:gJ.call(t,n)}var uF=bJ;var yJ="__lodash_hash_undefined__";function vJ(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=mc&&t===void 0?yJ:t,this}var pF=vJ;function nh(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var i=n[t];this.set(i[0],i[1])}}nh.prototype.clear=cF;nh.prototype.delete=dF;nh.prototype.get=mF;nh.prototype.has=uF;nh.prototype.set=pF;var H1=nh;function _J(){this.__data__=[],this.size=0}var hF=_J;function xJ(n,t){for(var e=n.length;e--;)if(L0(n[e][0],t))return e;return-1}var kd=xJ;var CJ=Array.prototype;var SJ=CJ.splice;function wJ(n){var t=this.__data__,e=kd(t,n);if(e<0)return false;var i=t.length-1;return e==i?t.pop():SJ.call(t,e,1),--this.size,true}var fF=wJ;function NJ(n){var t=this.__data__,e=kd(t,n);return e<0?void 0:t[e][1]}var gF=NJ;function IJ(n){return kd(this.__data__,n)>-1}var bF=IJ;function EJ(n,t){var e=this.__data__,i=kd(e,n);return i<0?(++this.size,e.push([n,t])):e[i][1]=t,this}var yF=EJ;function ih(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var i=n[t];this.set(i[0],i[1])}}ih.prototype.clear=hF;ih.prototype.delete=fF;ih.prototype.get=gF;ih.prototype.has=bF;ih.prototype.set=yF;var Md=ih;var TJ=Hr(ga,"Map");var Dd=TJ;function kJ(){this.size=0,this.__data__={hash:new H1,map:new(Dd||Md),string:new H1}}var vF=kJ;function MJ(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}var _F=MJ;function DJ(n,t){var e=n.__data__;return _F(t)?e[typeof t=="string"?"string":"hash"]:e.map}var Ad=DJ;function AJ(n){var t=Ad(this,n).delete(n);return this.size-=t?1:0,t}var xF=AJ;function RJ(n){return Ad(this,n).get(n)}var CF=RJ;function OJ(n){return Ad(this,n).has(n)}var SF=OJ;function PJ(n,t){var e=Ad(this,n),i=e.size;return e.set(n,t),this.size+=e.size==i?0:1,this}var wF=PJ;function ah(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var i=n[t];this.set(i[0],i[1])}}ah.prototype.clear=vF;ah.prototype.delete=xF;ah.prototype.get=CF;ah.prototype.has=SF;ah.prototype.set=wF;var NF=ah;function FJ(n,t){for(var e=-1,i=t.length,a=n.length;++e<i;)n[a+e]=t[e];return n}var Y0=FJ;var LJ=H0(Object.getPrototypeOf,Object);var G0=LJ;function VJ(){this.__data__=new Md,this.size=0}var IF=VJ;function BJ(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}var EF=BJ;function jJ(n){return this.__data__.get(n)}var TF=jJ;function zJ(n){return this.__data__.has(n)}var kF=zJ;var UJ=200;function HJ(n,t){var e=this.__data__;if(e instanceof Md){var i=e.__data__;if(!Dd||i.length<UJ-1)return i.push([n,t]),this.size=++e.size,this;e=this.__data__=new NF(i)}return e.set(n,t),this.size=e.size,this}var MF=HJ;function rh(n){var t=this.__data__=new Md(n);this.size=t.size}rh.prototype.clear=IF;rh.prototype.delete=EF;rh.prototype.get=TF;rh.prototype.has=kF;rh.prototype.set=MF;var DF=rh;function YJ(n,t){return n&&Td(t,eh(t),n)}var AF=YJ;function GJ(n,t){return n&&Td(t,th(t),n)}var RF=GJ;var LF=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var OF=LF&&typeof module=="object"&&module&&!module.nodeType&&module;var $J=OF&&OF.exports===LF;var PF=$J?ga.Buffer:void 0;var FF=PF?PF.allocUnsafe:void 0;function WJ(n,t){if(t)return n.slice();var e=n.length,i=FF?FF(e):new n.constructor(e);return n.copy(i),i}var VF=WJ;function JJ(n,t){for(var e=-1,i=n==null?0:n.length,a=0,r=[];++e<i;){var o=n[e];t(o,e,n)&&(r[a++]=o)}return r}var BF=JJ;function qJ(){return[]}var $0=qJ;var KJ=Object.prototype;var XJ=KJ.propertyIsEnumerable;var jF=Object.getOwnPropertySymbols;var QJ=jF?function(n){return n==null?[]:(n=Object(n),BF(jF(n),function(t){return XJ.call(n,t)}))}:$0;var oh=QJ;function ZJ(n,t){return Td(n,oh(n),t)}var zF=ZJ;var eq=Object.getOwnPropertySymbols;var tq=eq?function(n){for(var t=[];n;)Y0(t,oh(n)),n=G0(n);return t}:$0;var W0=tq;function nq(n,t){return Td(n,W0(n),t)}var UF=nq;function iq(n,t,e){var i=t(n);return Xp(n)?i:Y0(i,e(n))}var J0=iq;function aq(n){return J0(n,eh,oh)}var HF=aq;function rq(n){return J0(n,th,W0)}var YF=rq;var oq=Hr(ga,"DataView");var q0=oq;var sq=Hr(ga,"Promise");var K0=sq;var lq=Hr(ga,"Set");var X0=lq;var GF="[object Map]";var cq="[object Object]";var $F="[object Promise]";var WF="[object Set]";var JF="[object WeakMap]";var qF="[object DataView]";var dq=cc(q0);var mq=cc(Dd);var uq=cc(K0);var pq=cc(X0);var hq=cc(P0);var ou=lc;(q0&&ou(new q0(new ArrayBuffer(1)))!=qF||Dd&&ou(new Dd)!=GF||K0&&ou(K0.resolve())!=$F||X0&&ou(new X0)!=WF||P0&&ou(new P0)!=JF)&&(ou=function(n){var t=lc(n),e=t==cq?n.constructor:void 0,i=e?cc(e):"";if(i)switch(i){case dq:return qF;case mq:return GF;case uq:return $F;case pq:return WF;case hq:return JF}return t});var sh=ou;var fq=Object.prototype;var gq=fq.hasOwnProperty;function bq(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&gq.call(n,"index")&&(e.index=n.index,e.input=n.input),e}var KF=bq;var yq=ga.Uint8Array;var Y1=yq;function vq(n){var t=new n.constructor(n.byteLength);return new Y1(t).set(new Y1(n)),t}var lh=vq;function _q(n,t){var e=t?lh(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var XF=_q;var xq=/\w*$/;function Cq(n){var t=new n.constructor(n.source,xq.exec(n));return t.lastIndex=n.lastIndex,t}var QF=Cq;var ZF=sc?sc.prototype:void 0;var eL=ZF?ZF.valueOf:void 0;function Sq(n){return eL?Object(eL.call(n)):{}}var tL=Sq;function wq(n,t){var e=t?lh(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}var nL=wq;var Nq="[object Boolean]";var Iq="[object Date]";var Eq="[object Map]";var Tq="[object Number]";var kq="[object RegExp]";var Mq="[object Set]";var Dq="[object String]";var Aq="[object Symbol]";var Rq="[object ArrayBuffer]";var Oq="[object DataView]";var Pq="[object Float32Array]";var Fq="[object Float64Array]";var Lq="[object Int8Array]";var Vq="[object Int16Array]";var Bq="[object Int32Array]";var jq="[object Uint8Array]";var zq="[object Uint8ClampedArray]";var Uq="[object Uint16Array]";var Hq="[object Uint32Array]";function Yq(n,t,e){var i=n.constructor;switch(t){case Rq:return lh(n);case Nq:case Iq:return new i(+n);case Oq:return XF(n,e);case Pq:case Fq:case Lq:case Vq:case Bq:case jq:case zq:case Uq:case Hq:return nL(n,e);case Eq:return new i;case Tq:case Dq:return new i(n);case kq:return QF(n);case Mq:return new i;case Aq:return tL(n)}}var iL=Yq;function Gq(n){return typeof n.constructor=="function"&&!Qp(n)?YP(G0(n)):{}}var aL=Gq;var $q="[object Map]";function Wq(n){return yl(n)&&sh(n)==$q}var rL=Wq;var oL=dc&&dc.isMap;var Jq=oL?Zp(oL):rL;var sL=Jq;var qq="[object Set]";function Kq(n){return yl(n)&&sh(n)==qq}var lL=Kq;var cL=dc&&dc.isSet;var Xq=cL?Zp(cL):lL;var dL=Xq;var Qq=1;var Zq=2;var eK=4;var mL="[object Arguments]";var tK="[object Array]";var nK="[object Boolean]";var iK="[object Date]";var aK="[object Error]";var uL="[object Function]";var rK="[object GeneratorFunction]";var oK="[object Map]";var sK="[object Number]";var pL="[object Object]";var lK="[object RegExp]";var cK="[object Set]";var dK="[object String]";var mK="[object Symbol]";var uK="[object WeakMap]";var pK="[object ArrayBuffer]";var hK="[object DataView]";var fK="[object Float32Array]";var gK="[object Float64Array]";var bK="[object Int8Array]";var yK="[object Int16Array]";var vK="[object Int32Array]";var _K="[object Uint8Array]";var xK="[object Uint8ClampedArray]";var CK="[object Uint16Array]";var SK="[object Uint32Array]";var Ai={};Ai[mL]=Ai[tK]=Ai[pK]=Ai[hK]=Ai[nK]=Ai[iK]=Ai[fK]=Ai[gK]=Ai[bK]=Ai[yK]=Ai[vK]=Ai[oK]=Ai[sK]=Ai[pL]=Ai[lK]=Ai[cK]=Ai[dK]=Ai[mK]=Ai[_K]=Ai[xK]=Ai[CK]=Ai[SK]=true;Ai[aK]=Ai[uL]=Ai[uK]=false;function Q0(n,t,e,i,a,r){var o,s=t&Qq,l=t&Zq,c=t&eK;if(e&&(o=a?e(n,i,a,r):e(n)),o!==void 0)return o;if(!vl(n))return n;var d=Xp(n);if(d){if(o=KF(n),!s)return GP(n,o)}else{var m=sh(n),b=m==uL||m==rK;if(z0(n))return VF(n,s);if(m==pL||m==mL||b&&!a){if(o=l||b?{}:aL(n),!s)return l?UF(n,RF(o,n)):zF(n,AF(o,n))}else{if(!Ai[m])return a?n:{};o=iL(n,m,s)}}r||(r=new DF);var u=r.get(n);if(u)return u;r.set(n,o),dL(n)?n.forEach(function(x){o.add(Q0(x,t,e,x,n,r))}):sL(n)&&n.forEach(function(x,w){o.set(w,Q0(x,t,e,w,n,r))});var f=c?l?YF:HF:l?th:eh,g=d?void 0:f(n);return $P(g||n,function(x,w){g&&(w=x,x=n[w]),V0(o,w,Q0(x,t,e,w,n,r))}),o}var hL=Q0;var wK=1;var NK=4;function IK(n){return hL(n,wK|NK)}var ch=IK;var su=class n{buildRecursively(t,e){if(t instanceof Hn||t instanceof qt||t instanceof Bn){let i=t,a=i.name;if(t instanceof qt){let r=t,o=[];if(e.setValue(a,o),r.multiInfo.getSafeMinItems()>0){let s=new xi;n.addPropertyIris(t,s);for(let l of i.children)this.buildRecursively(l,s);for(let l=0;l<r.multiInfo.getSafeMinItems();l++)o.push(ch(s))}}else{let r=new xi;e.setValue(a,r),n.addPropertyIris(t,r);for(let o of i.children)this.buildRecursively(o,r)}}if(t instanceof Zi||t instanceof gn){let i=t,a=i.name;if(t instanceof gn){let r=t,o=Es.getDefaultValueWrappers(i);e.setValue(a,o);for(let s=o.length;s<r.multiInfo.getSafeMinItems();s++)o.push(Es.getEmptyValueWrapper(i))}else{let o=Es.getDefaultValueWrappers(i).at(-1)??Es.getEmptyValueWrapper(i);e.setValue(a,o)}}}static setCurrentCountToMinRecursively(t,e){if(e.length===0)return;let i=e.slice(1);if(t instanceof Hn){let a=t;for(let r of a.children)n.setCurrentCountToMinRecursively(r,i)}else if(t instanceof qt){let a=t;a.multiInfo.getSafeMinItems()===0&&(a.multiInfo.minItems=1);for(let o of a.children)n.setCurrentCountToMinRecursively(o,i)}else if(t instanceof gn){let a=t;a.multiInfo.getSafeMinItems()===0&&(a.multiInfo.minItems=1)}}static addPropertyIris(t,e){Object.entries(t.contextEntries).forEach(([i,a])=>{typeof a=="string"&&e.setIri(i,a)})}buildNewFullDataObject(t){let e=t,i=new A2;e?.isBasedOn&&i.withSchemaIsBasedOn(e.isBasedOn);let a=e?.labelInfo?.label;i.withSchemaName(a?`${a} metadata`:"metadata"),i.withSchemaDescription("");let r=i.build();return this.buildNewByIterating(e,r.dataContainer),r}buildNewByIterating(t,e){if(!(t==null||t.children==null)){n.addPropertyIris(t,e);for(let i of t.children)this.buildRecursively(i,e)}}};var EK=(n,t)=>n.findIndex(e=>e instanceof fa&&e.name===t);var G1=n=>typeof n=="object"&&n!==null&&!Array.isArray(n)&&"name"in n&&"value"in n;var Z0=class{constructor(t){this.messageHandlerService=t}placeValue(t,e,i,a){if(typeof e=="number"&&Number.isInteger(e)&&e>=0&&Jn(t)&&e<t.length){t[e]=i;return}if(typeof e=="string"&&e.length>0&&gi(t)){t.setValue(e,i);return}this.messageHandlerService.error("No place to put a value at: "+a.join(" > "))}injectArrayValue(t,e,i){if(!Jn(t)){this.messageHandlerService.error(`Expected a list of occurrences to replace at ${i.join(" > ")}`);return}t.length=0,t.push(...e)}injectAttributeValue(t,e,i,a,r,o){let s=t[e],l=s instanceof fa?s.name:"",c=r.name??"";if(!c){let u=this.isAttributeNameUsedElsewhere(t,l,e);return t[e]=new fa(""),l&&!u&&i.removeValue(l),null}if(!c.trim()||[...c].some(u=>u.charCodeAt(0)<32||u.charCodeAt(0)===127))return{key:"Validation.Attribute.NameInvalid"};if(T2.isReservedName(c))return{key:"Validation.Attribute.NameReserved",params:{name:c}};if(o.has(c)||this.isDuplicateAttributeName(c,t,i,e))return{key:"Validation.Attribute.NameInUse",params:{name:c}};let d=this.isAttributeNameUsedElsewhere(t,l,e);t[e]=new fa(c);let m=l&&c!==l&&!d,b=m?i.iris[l]??"":"";return m&&i.removeValue(l),i.setValue(c,r.value),i.removeIri(a.name),!i.hasIri(c)&&b.length>0&&i.setIri(c,b),null}setDataPathValueRecursively(t,e,i,a,r,o,s,l="",c=new Set){if(i instanceof Hn&&!gi(t)&&!Jn(t)&&gi(e)&&(t=new xi,e.setValue(l,t)),i instanceof qt&&Jn(t)){let d=a.getMultiInstanceInfoForComponent(i)?.currentIndex??-1;Number.isInteger(d)&&d>=0&&d<t.length&&!gi(t[d])&&!Jn(t[d])&&(t[d]=new xi)}if(r.length===0)if(i instanceof Zi)G1(o)||this.placeValue(e,l,o,s);else{let d=i,b=a.getMultiInstanceInfoForComponent(d)?.currentIndex??0;if(!G1(o)&&Jn(o))this.injectArrayValue(t,o,s);else if(G1(o)){if(Jn(t)&&gi(e))return this.injectAttributeValue(t,b,e,i,o,c)}else Jn(t)&&this.placeValue(t,b,o,s)}else{let d=this.getDownstreamObjects(t,i,a,r);return d.childComponent===null?null:this.setDataPathValueRecursively(d.dataSubObject,d.parentDataSubObject,d.childComponent,a,d.remainingPath,o,s,d.key,c)}return null}deleteAttributeValueRecursively(t,e,i,a,r,o){if(r.length===0){if(!gi(e)){this.messageHandlerService.error("Expected a container to delete an attribute from, found something else");return}if(o.name===null)return;e.removeValue(o.name)}else{let s=this.getDownstreamObjects(t,i,a,r);if(s.childComponent===null)return;this.deleteAttributeValueRecursively(s.dataSubObject,s.parentDataSubObject,s.childComponent,a,s.remainingPath,o)}}getDownstreamObjects(t,e,i,a){let r=a[0],o=a.slice(1),s=null,l=null,c=null;if(e instanceof Hn||e instanceof Bn)s=e.getChildByName(r),gi(t)&&(l=t.values[r]??null),c=t;else if(e instanceof qt){let m=i.getMultiInstanceInfoForComponent(e)?.currentIndex??0;s=e.getChildByName(r);let b=Jn(t)?t[m]:null;gi(b)&&(l=b.values[r]??null),c=b}return{dataSubObject:l,parentDataSubObject:c,key:r,childComponent:s,remainingPath:o}}isDuplicateAttributeName(t,e,i,a){let r=EK(e,t);return r<0?i.hasValue(t):r!==a}isAttributeNameUsedElsewhere(t,e,i){return t.some((a,r)=>r!==i&&a instanceof fa&&a.name===e)}getDeclaredSiblingNames(t,e){let i=e;for(let a of t.path.slice(0,-1)){if(!(i instanceof Bn)&&!(i instanceof Hn)&&!(i instanceof qt))return new Set;let r=i.getChildByName(a);if(r===null)return new Set;i=r}return!(i instanceof Bn)&&!(i instanceof Hn)&&!(i instanceof qt)?new Set:new Set(i.children.filter(a=>!(a instanceof Ra)).map(a=>a.name))}changeValue(t,e,i,a){let r=e.path,o=e.basicInfo.inputType,l=o!==null&&jp(o)?a===null?Nt.emptySlot(true):Nt.iriValue(a):Nt.literalValue(a,Es.xsdTypeForFullCopy(e)),c=t.templateRepresentation;c!==null&&t.mutate(d=>this.setDataPathValueRecursively(d,null,c,i,r,l,r))}changeListValue(t,e,i,a){let r=e.path,o=[],s=!a||a.length===0?[null]:a;for(let c of s)o.push(Nt.literalValue(c));let l=t.templateRepresentation;l!==null&&t.mutate(c=>this.setDataPathValueRecursively(c,null,l,i,r,o,r))}changeAttributeValue(t,e,i,a,r){let o=e.path,s={name:a,value:Nt.literalValue(r===""?null:r)},l=t.templateRepresentation;if(l===null)return null;let c=this.getDeclaredSiblingNames(e,l),d=null;return t.mutate(m=>{d=this.setDataPathValueRecursively(m,null,l,i,o,s,o,"",c)}),d}deleteAttributeValue(t,e,i,a){if(!a)return;let r=e.path,o={name:a,value:Nt.emptySlot(false)},s=t.templateRepresentation;s!==null&&t.mutate(l=>this.deleteAttributeValueRecursively(l,null,s,i,r,o))}changeControlledValue(t,e,i,a,r){let o=e.path,s=a?Nt.iriValue(a,r):Nt.emptySlot(true),l=t.templateRepresentation;l!==null&&t.mutate(c=>this.setDataPathValueRecursively(c,null,l,i,o,s,o))}};var ex=class{constructor(t=new su,e=new Di){this.dataObjectBuilderService=t,this.messageHandlerService=e}occurrencesFor(t,e,i,a,r){let o=this.getDataPathNodeRecursively(t,e,i.path,Ts.fromCursor(a));return Jn(o)?o:(this.messageHandlerService.error(`Cannot ${r} an occurrence of ${i.path.join(" > ")}: the instance holds no list there.`),null)}getDataPathNodeRecursively(t,e,i,a,r=0){if(i.length===0)return t;{let o=i[0],s=i.slice(1),l=null,c=null;if(e instanceof Hn||e instanceof Bn)l=e.getChildByName(o),gi(t)&&(c=t.values[o]??null);else if(e instanceof qt){let d=a(e);if(d===null)return null;if(l=e.getChildByName(o),Jn(t)){let m=t[d];gi(m)&&(c=m.values[o]??null)}}return this.getDataPathNodeRecursively(c,l,s,a,r+1)}}getParentDataPathNodeRecursively(t,e,i,a,r){if(a.length===0)return e;{let o=a[0],s=a.slice(1),l=null,c=null,d=null;if(i instanceof Hn||i instanceof Bn)l=i.getChildByName(o),gi(t)&&(c=t.values[o]??null),d=t;else if(i instanceof qt){let m=r(i);if(m===null||m<0)return null;l=i.getChildByName(o);let b=Jn(t)?t[m]:null;gi(b)&&(c=b.values[o]??null),d=b}return this.getParentDataPathNodeRecursively(c,d,l,s,r)}}multiInstanceItemAdd(t,e,i){let a=i.getMultiInstanceInfoForComponent(e),r=t.templateRepresentation;r===null||a===null||t.mutate(o=>this.performItemAdd(o,r,e,i,a))}performItemAdd(t,e,i,a,r){let o=new xi,s=ch(i);su.setCurrentCountToMinRecursively(s,i.path),this.dataObjectBuilderService.buildRecursively(s,o);let l=o.values[i.name]??null,c=Jn(l)?l[0]:null,d=this.getDataPathNodeRecursively(t,e,i.path,Ts.fromCursor(a)),m=Jn(d)?d:this.openListFor(t,e,i,a,d);m!==null&&c!==null?m.splice(r.currentIndex+1,0,c):this.messageHandlerService.error("missing data in instance:"+i.path)}openListFor(t,e,i,a,r){if(r!=null&&!(r instanceof yd))return null;let o=this.getParentDataPathNodeRecursively(t,null,e,i.path,Ts.fromCursor(a));if(!gi(o))return null;let s=[];return o.setValue(i.name,s),s}multiInstanceItemCopy(t,e,i){let a=i.getMultiInstanceInfoForComponent(e),r=t.templateRepresentation;r===null||a===null||t.mutate(o=>this.performItemCopy(o,r,e,i,a))}performItemCopy(t,e,i,a,r){let o=this.occurrencesFor(t,e,i,a,"copy");if(o===null)return;let s=ch(o[r.currentIndex]);this.clearElementInstanceIds(s,i),o.splice(r.currentIndex+1,0,s)}multiInstanceItemDelete(t,e,i){let a=i.getMultiInstanceInfoForComponent(e),r=t.templateRepresentation;r===null||a===null||t.mutate(o=>this.performItemDelete(o,r,e,i,a))}performItemDelete(t,e,i,a,r){this.occurrencesFor(t,e,i,a,"delete")?.splice(r.currentIndex,1)}clearElementInstanceIds(t,e){if(!(e instanceof Hn||e instanceof qt)||!gi(t))return;let i=t;i.id=null;for(let a of e.children){let r=i.values[a.name]??null;if(a instanceof Hn)this.clearElementInstanceIds(r,a);else if(a instanceof qt&&Array.isArray(r))for(let o of r)this.clearElementInstanceIds(o,a)}}};var tx=class extends Object{constructor(){super(),this.requiredFieldValueCount=0,this.nonNullRequiredFieldValueCount=0,this.problems=[],this.isValid=false}computeValidity(){let t=this.requiredFieldValueCount<=this.nonNullRequiredFieldValueCount;this.isValid=t&&this.problems.length===0}};function dh(n){if(!/^[a-z][a-z0-9+.-]*:.+$/i.test(n)||/[\s<>"{}|\\^`\p{Cc}\p{Cs}]/u.test(n)||/%(?![\da-f]{2})/i.test(n))return false;try{let t=new URL(n);return!/^https?:/i.test(n)||/^https?:\/\//i.test(n)&&!!t.hostname}catch(t){return false}}var Ji=class{static{this.PATTERN_XSD_INT_AND_LONG="[+-]?(0|[1-9][0-9]*)"}static{this.PATTERN_XSD_FLOAT_AND_DOUBLE="([+-]?((0|[1-9][0-9]*)(\\.[0-9]{0,maxDig})?|\\.[0-9]{0,maxDig}))"}static{this.NUMBER_INT_MAX=2147483647n}static{this.NUMBER_INT_MIN=-2147483648n}static{this.NUMBER_LONG_MAX=9223372036854775807n}static{this.NUMBER_LONG_MIN=-9223372036854775808n}static{this.NUMBER_BYTE_MAX=127n}static{this.NUMBER_BYTE_MIN=-128n}static{this.NUMBER_SHORT_MAX=32767n}static{this.NUMBER_SHORT_MIN=-32768n}};var Yr=class n{constructor(t,e,i,a,r,o=null,s=[],l=a==="required"||a==="minItems"?"warning":"error"){this.path=t,this.field=e,this.inputType=i,this.code=a,this.message=r,this.value=o,this.occurrences=s,this.severity=l}at(t){return new n(this.path,this.field,this.inputType,this.code,this.message,this.value,t,this.severity)}};var et=class{static{this.required="required"}static{this.valueShape="valueShape"}static{this.attributeName="attributeName"}static{this.incompleteValue="incompleteValue"}static{this.templateConstraint="templateConstraint"}static{this.templateMismatch="templateMismatch"}static{this.minLength="minLength"}static{this.maxLength="maxLength"}static{this.regex="regex"}static{this.email="email"}static{this.link="link"}static{this.phoneNumber="phoneNumber"}static{this.numberType="numberType"}static{this.minValue="minValue"}static{this.maxValue="maxValue"}static{this.decimalPlace="decimalPlace"}static{this.temporalType="temporalType"}static{this.temporalGranularity="temporalGranularity"}static{this.temporalCalendar="temporalCalendar"}static{this.timezone="timezone"}static{this.timezoneOffset="timezoneOffset"}static{this.choiceMembership="choiceMembership"}static{this.controlledStructure="controlledStructure"}static{this.iriMalformed="iriMalformed"}static{this.minItems="minItems"}static{this.maxItems="maxItems"}};var Rd=class{static isEmpty(t){return t==null||t===""}static validate(t,e,i){if(Array.isArray(e))return e.flatMap(s=>this.validate(t,s,i));if(this.isEmpty(e))return[];let a=[],r=t.basicInfo.inputType,o=String(e);return this.checkTextConstraints(t,o,i,a),this.checkFormat(t,o,i,a),r===le.numeric&&this.checkNumeric(t,o,i,a),r===le.temporal&&this.checkTemporal(t,o,i,a),t.choiceInfo?.choices?.length>0&&this.checkChoiceMembership(t,o,i,a),a}static problem(t,e,i,a,r){return new Yr(e,e.length>0?e[e.length-1]:t.name,t.basicInfo.inputType,i,a,r)}static validateConfiguration(t){let e=[],i=c=>e.push(this.problem(t,t.path,et.templateConstraint,c,null)),{minLength:a,maxLength:r,regex:o}=t.valueInfo;if(a!=null&&r!=null&&a>r&&i("Minimum length exceeds maximum length."),o)try{new RegExp(`^(?:${o})$`)}catch(c){i("The template contains an invalid regular expression.")}let{minValue:s,maxValue:l}=t.numberInfo??{};return s!=null&&l!=null&&s>l&&i("Minimum value exceeds maximum value."),e}static checkTextConstraints(t,e,i,a){let r=t.valueInfo;if(r.minLength!=null&&e.length<r.minLength&&a.push(this.problem(t,i,et.minLength,`Shorter than the minimum ${r.minLength}.`,e)),r.maxLength!=null&&e.length>r.maxLength&&a.push(this.problem(t,i,et.maxLength,`Longer than the maximum ${r.maxLength}.`,e)),r.regex!=null&&r.regex!==""){let o;try{o=new RegExp(`^(?:${r.regex})$`).test(e)}catch(s){return}o||a.push(this.problem(t,i,et.regex,`Does not match ${r.regex}.`,e))}}static{this.EMAIL=/^[^\s@]+@[^\s@]+\.[^\s@]+$/}static{this.LINK=/^https?:\/\/[\da-z.-]+\.[a-z.]{2,63}(?:[/?#][^\s]*)?$/i}static{this.PHONE=/^[+0-9 \t\-()]+$/}static validateNode(t,e,i){if(e instanceof yd)return[];if(e instanceof bd)return e.hasDiscardedContent()?[this.problem(t,i,et.valueShape,"The supplied value has no usable literal or IRI.",e.discarded)]:[];if(t.basicInfo.inputType===le.attributeValue&&e instanceof fa)return e.name.trim()===""?[new Yr(i,t.name,t.basicInfo.inputType,et.attributeName,"An attribute needs a name.",e.name,[],"warning")]:[];let a=t.basicInfo.inputType===le.controlled||jp(t.basicInfo.inputType);return e instanceof xi||(a?!Nt.isIriBearing(e):!Nt.isLiteral(e))?Nt.isLiteral(e)&&Nt.literal(e)==null?[]:[this.problem(t,i,et.valueShape,a?"This field requires an IRI value.":"This field requires a literal value.",e instanceof xi?null:p1.writeValueNode(e))]:Nt.isIriBearing(e)&&!Nt.iri(e)&&t.basicInfo.inputType!==le.controlled?[this.problem(t,i,et.iriMalformed,"The stored IRI is empty.",null)]:this.validateControlledNode(t,e,i)}static checkFormat(t,e,i,a){let r=t.basicInfo.inputType;r===le.email&&!this.EMAIL.test(e)&&a.push(this.problem(t,i,et.email,"Not a valid email address.",e)),r===le.link&&(!this.LINK.test(e)||!dh(e))&&a.push(this.problem(t,i,et.link,"Not a valid URI.",e)),r===le.phoneNumber&&!this.PHONE.test(e)&&a.push(this.problem(t,i,et.phoneNumber,"Not a valid phone number.",e)),r!==null&&xs.has(r)&&(!dh(e)||!/^(?:[a-z][a-z0-9+.-]*:\/\/|urn:|doi:)/i.test(e))&&a.push(this.problem(t,i,et.iriMalformed,"Not a supported identifier IRI.",e))}static{this.INTEGRAL_BOUNDS={[mt.int]:[Ji.NUMBER_INT_MIN,Ji.NUMBER_INT_MAX],[mt.long]:[Ji.NUMBER_LONG_MIN,Ji.NUMBER_LONG_MAX],[mt.byte]:[Ji.NUMBER_BYTE_MIN,Ji.NUMBER_BYTE_MAX],[mt.short]:[Ji.NUMBER_SHORT_MIN,Ji.NUMBER_SHORT_MAX]}}static checkNumeric(t,e,i,a){let r=t.numberInfo,o=r.numberType,s=o!=null&&Object.prototype.hasOwnProperty.call(this.INTEGRAL_BOUNDS,o),l=o===mt.float||o===mt.double||o===mt.decimal;if(s&&!new RegExp(`^${Ji.PATTERN_XSD_INT_AND_LONG}$`).test(e)){a.push(this.problem(t,i,et.numberType,`Not a valid ${o}.`,e));return}if(l){let m=r.decimalPlace!=null?String(r.decimalPlace):"",b=Ji.PATTERN_XSD_FLOAT_AND_DOUBLE.replace(/maxDig/g,m);if(!new RegExp(`^${b}$`).test(e)){let u=new RegExp(`^${Ji.PATTERN_XSD_FLOAT_AND_DOUBLE.replace(/maxDig/g,"")}$`);r.decimalPlace!=null&&u.test(e)?a.push(this.problem(t,i,et.decimalPlace,`More than ${r.decimalPlace} decimal places.`,e)):a.push(this.problem(t,i,et.numberType,`Not a valid ${o}.`,e));return}}let c=Number(e);if(!Number.isFinite(c)){a.push(this.problem(t,i,et.numberType,"Not a finite number.",e));return}let d=o==null?void 0:this.INTEGRAL_BOUNDS[o];if(d){let m=BigInt(e);(m<d[0]||m>d[1])&&a.push(this.problem(t,i,et.numberType,`Outside the range of ${o}.`,e))}r.minValue!=null&&c<r.minValue&&a.push(this.problem(t,i,et.minValue,`Below the minimum ${r.minValue}.`,e)),r.maxValue!=null&&c>r.maxValue&&a.push(this.problem(t,i,et.maxValue,`Above the maximum ${r.maxValue}.`,e))}static{this.DATE_PART=/^(\d{4})-(\d{2})-(\d{2})$/}static{this.TIME_PART=/^(\d{2}):(\d{2})(?::(\d{2}))?(\.\d+)?$/}static{this.OFFSET_PART=/(Z|[+-]\d{2}:\d{2})$/}static checkTemporal(t,e,i,a){let r=t.valueInfo.temporalType,o=t.basicInfo.temporalGranularity,s=e,l=s.match(this.OFFSET_PART),c=l!==null;if(c&&(s=s.slice(0,s.length-l[0].length)),c&&t.basicInfo.timezoneEnabled!==true?a.push(this.problem(t,i,et.timezone,"Carries a timezone offset but none is enabled.",e)):c&&!jo.isValidOffset(l[0])&&a.push(this.problem(t,i,et.timezoneOffset,"Not a valid xsd timezone offset.",e)),s.split("T").length>2){a.push(this.problem(t,i,et.temporalType,"Not a valid temporal value.",e));return}let[d,m]=s.includes("T")?s.split("T"):[s,null],b=this.TIME_PART.test(s);if(r===mt.date){if(m!==null||b||!this.DATE_PART.test(s)){a.push(this.problem(t,i,et.temporalType,"Not a valid xsd:date.",e));return}}else if(r===mt.time){if(!b){a.push(this.problem(t,i,et.temporalType,"Not a valid xsd:time.",e));return}}else if(r===mt.dateTime&&(m===null||!this.DATE_PART.test(d)||!this.TIME_PART.test(m))){a.push(this.problem(t,i,et.temporalType,"Not a valid xsd:dateTime.",e));return}let u=r===mt.time?null:m!==null?d:s,f=r===mt.time?s:m;if(u!==null&&this.DATE_PART.test(u)){let[,g,x,w]=u.match(this.DATE_PART)??[],C=Number(x),I=Number(w),O=new Date(0);O.setUTCFullYear(Number(g),C,0);let E=O.getUTCDate();(C<1||C>12||I<1||E&&I>E)&&a.push(this.problem(t,i,et.temporalCalendar,"Not a real calendar date.",e))}if(f!==null&&this.TIME_PART.test(f)){let[,g,x,w]=f.match(this.TIME_PART)??[];(Number(g)>23||Number(x)>59||w!==void 0&&Number(w)>59)&&a.push(this.problem(t,i,et.temporalCalendar,"Not a real time of day.",e))}this.checkGranularity(t,e,o,u,f,i,a)}static checkGranularity(t,e,i,a,r,o,s){if(i==null)return;let l=[St.year,St.month,St.day],c=a?.match(this.DATE_PART)??null;if(c!==null){let[,,I,O]=c;i===St.year&&(I!=="01"||O!=="01")?s.push(this.problem(t,o,et.temporalGranularity,"Granularity is year, but the padded month or day is not 01.",e)):i===St.month&&O!=="01"&&s.push(this.problem(t,o,et.temporalGranularity,"Granularity is month, but the padded day is not 01.",e))}let d=r?.match(this.TIME_PART)??null,m=d!==null&&d[1]==="00"&&d[2]==="00"&&(d[3]===void 0||d[3]==="00")&&d[4]===void 0,b=t.valueInfo.temporalType===mt.dateTime&&m;if(l.includes(i)&&r!==null&&!b){s.push(this.problem(t,o,et.temporalGranularity,`Granularity is ${i}, but the padded time is not midnight.`,e));return}if(r===null)return;let u=r.match(this.TIME_PART),f=u!==null&&u[3]!==void 0,g=u!==null&&u[4]!==void 0;(i===St.second||i===St.decimalSecond)&&!f&&s.push(this.problem(t,o,et.temporalGranularity,`Granularity is ${i}, but the value has no seconds.`,e)),i===St.decimalSecond&&f&&!g&&s.push(this.problem(t,o,et.temporalGranularity,"Granularity is decimalSecond, but the value has no fractional seconds.",e));let x=i===St.hour&&u!==null&&(u[2]!=="00"||f&&u[3]!=="00"||g),w=i===St.minute&&u!==null&&(f&&u[3]!=="00"||g),C=i===St.second&&g;(x||w||C)&&s.push(this.problem(t,o,et.temporalGranularity,`Granularity is ${i}, but the value contains finer information.`,e))}static checkChoiceMembership(t,e,i,a){let r=t.choiceInfo.choices.map(o=>o.label);r.includes(e)||a.push(this.problem(t,i,et.choiceMembership,`Not one of the declared options: ${r.join(", ")}.`,e))}static validateControlledNode(t,e,i){if(t.basicInfo.inputType!==le.controlled)return[];let a=Nt.iri(e),r=Nt.label(e),o=typeof a=="string"&&a!=="",s=typeof r=="string"&&r!=="";if(!o&&!s)return[];let l=[];return o!==s&&l.push(this.problem(t,i,et.controlledStructure,o?"Has @id but no rdfs:label.":"Has rdfs:label but no @id.",p1.writeValueNode(e))),o&&!dh(a)&&l.push(this.problem(t,i,et.iriMalformed,"@id is not a valid IRI.",a)),l}};var nx=class n{buildReport(t,e){let i=new tx;if(t.templateRepresentation!=null&&t.templateInput!=null){let a={node:t.instanceFullData?.dataContainer??null,occurrences:[]};for(let r of t.templateRepresentation.children)n.buildRecursively(r,[a],i,e)}return i.computeValidity(),i}static buildRecursively(t,e,i,a){if(t instanceof qt){let r=[];for(let o of e){let s=n.entriesOf(o.node,t.name);n.collectCardinalityProblems(t,s.length,o.occurrences,i),s.forEach((l,c)=>{let d=[...o.occurrences,c];n.collectElementShapeProblem(t,l,d,i),r.push({node:l,occurrences:d})})}if(r.length>0)for(let o of t.children)n.buildRecursively(o,r,i,a)}else if(t instanceof Hn||t instanceof Bn){let r=e.map(o=>({node:Tg(o.node,t.name),occurrences:o.occurrences}));for(let o of r)n.collectElementShapeProblem(t,o.node,o.occurrences,i);for(let o of t.children)n.buildRecursively(o,r,i,a)}if(t instanceof Zi||t instanceof gn){let r=t,o=Rd.validateConfiguration(r);for(let s of e)i.problems.push(...o.map(l=>l.at(s.occurrences)));if(n.collectFieldProblems(r,e,a,i),t instanceof gn)for(let s of e)n.collectCardinalityProblems(r,n.entriesOf(s.node,t.name).length,s.occurrences,i);n.countRequirement(t,e,i)}}static collectElementShapeProblem(t,e,i,a){e===null||e instanceof xi||e instanceof yd||e instanceof bd&&!e.hasDiscardedContent()||a.problems.push(new Yr(t.path,t.name,"element",et.valueShape,"This element must contain fields, not a field value or a list in place of one element.",null,i))}static countRequirement(t,e,i){if(!t.valueInfo.requiredValue)return;i.requiredFieldValueCount++;let a=true;for(let r of e){let o=Tg(r.node,t.name);(Jn(o)?o:[o]).some(l=>n.extractPlainValue(l,t)!==null)||(a=false,i.problems.push(new Yr(t.path,t.name,t.basicInfo.inputType,et.required,"A required value is missing.",null,r.occurrences)))}a&&i.nonNullRequiredFieldValueCount++}static collectFieldProblems(t,e,i,a){let r=[],o=t instanceof gn&&t.isMultiPage();for(let l of e){let c=Tg(l.node,t.name);Jn(c)?(t instanceof Zi&&a.problems.push(new Yr(t.path,t.name,t.basicInfo.inputType,et.valueShape,"This field accepts one value, not a list.",null,l.occurrences)),c.forEach((d,m)=>{d!=null&&r.push({node:d,occurrences:o?[...l.occurrences,m]:l.occurrences})})):c!==null&&r.push({node:c,occurrences:l.occurrences})}let s=new Set;for(let l of r){let c=i.validation.problemsFor(t,l.node),d=Rd.validateNode(t,l.node,t.path).filter(b=>!c.some(u=>u.code===b.code));for(let b of[...d,...c])n.addProblem(a,b.at(l.occurrences),s);let m=n.extractPlainValue(l.node,t);for(let b of Rd.validate(t,m,t.path))n.addProblem(a,b.at(l.occurrences),s)}}static collectCardinalityProblems(t,e,i,a){let r=t?.multiInfo;if(r==null)return;let o=t.path??[],s=o.length>0?o[o.length-1]:t.name,l=t.basicInfo?.inputType??"element";r.minItems!=null&&e<r.minItems&&a.problems.push(new Yr(o,s,l,et.minItems,`Has ${e} of a minimum ${r.minItems}.`,e,i)),r.maxItems!=null&&e>r.maxItems&&a.problems.push(new Yr(o,s,l,et.maxItems,`Has ${e} of a maximum ${r.maxItems}.`,e,i))}static addProblem(t,e,i){let a=JSON.stringify([e.path,e.occurrences,e.code,e.value]);i.has(a)||(i.add(a),t.problems.push(e))}static entriesOf(t,e){let i=Tg(t,e);return i===null?[]:Jn(i)?i:[i]}static extractPlainValue(t,e){return Nt.plainValue(t,this.isIriValued(e))}static isIriValued(t){return t.basicInfo.inputType!==null&&jp(t.basicInfo.inputType)}};var ix=class{constructor(t){this.context=t,this.builder=new nx,this.drafts=new WeakMap}currentNode(t){let e=this.context.getDataObjectNodeByPath(t.path);if(t instanceof gn&&t.isMultiPage()&&Array.isArray(e)){let i=this.context.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentIndex??-1;return e[i]??null}return e}setDraft(t,e){let i=this.currentNode(t);i===null||typeof i!="object"||(e===null?this.drafts.delete(i):this.drafts.set(i,e))}draftFor(t){let e=this.currentNode(t);return e!==null&&typeof e=="object"?this.drafts.get(e)??null:null}copyDrafts(t,e){if(t===null||e===null||typeof t!="object"||typeof e!="object")return;let i=this.drafts.get(t);if(i&&this.drafts.set(e,structuredClone(i)),Array.isArray(t)&&Array.isArray(e))t.forEach((a,r)=>this.copyDrafts(a,e[r]??null));else if(gi(t)&&gi(e))for(let a of Object.keys(t.values))this.copyDrafts(t.values[a],e.values[a]??null)}problemsFor(t,e){let i=typeof e=="object"&&e!==null?this.drafts.get(e):void 0;return i?[new Yr(t.path,t.name,t.basicInfo.inputType,i.code,i.message,i.value)]:[]}validate(){let t=this.context.dataContext,e=this.builder.buildReport(t,this.context),i=t.templateRepresentation,a=i instanceof Bn?i.isBasedOn:null,r=t.instanceFullData?.schema_isBasedOn?.getValue();a&&r&&a!==r&&e.problems.push(new Yr([],"",null,et.templateMismatch,"The instance belongs to a different template. Load it with its original template.",r)),e.computeValidity(),(i===null||t.instanceFullData===null)&&(e.isValid=false),t.dataQualityReport=e}};var lu=class{get statesSpecification(){return this.readOnlyMode&&!this.instanceSupplied}constructor(t,e){this.mutationListener=null,this.readOnlyMode=false,this.instanceSupplied=false,this.dataObjectBuilderService=new su,this.multiInstanceObjectService=new D0,this.dataObjectManipulationService=new ex(this.dataObjectBuilderService,e),this.dataObjectDataValueHandler=new Z0(e),this.validation=new ix(this),this.dataContext=t,this.messageHandlerService=e,this.multiInstanceObjectService.setInstanceResolver(i=>this.getDataObjectNodeByPath(i))}setMutationListener(t){this.mutationListener=t}reportMutation(t,e,i){this.mutationListener?.({operation:t,path:[...e.path],value:i})}withinAddBound(t){let e=t.multiInfo?.maxItems;return e==null||(this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0)<e?true:(this.messageHandlerService.trace(`refused to add past maxItems (${e}) for ${t.path?.join("/")??t.name}`),false)}withinDeleteBound(t){let e=t.multiInfo?.minItems,i=this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0;return i===0?false:e==null||i>e?true:(this.messageHandlerService.trace(`refused to delete below minItems (${e}) for ${t.path?.join("/")??t.name}`),false)}addMultiInstance(t){return this.readOnlyMode||!this.withinAddBound(t)?false:(this.dataObjectManipulationService.multiInstanceItemAdd(this.dataContext,t,this.multiInstanceObjectService),this.multiInstanceObjectService.multiInstanceItemAdd(t),this.buildQualityReport(),this.reportMutation("multiInstanceAdded",t,{count:this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0}),true)}copyMultiInstance(t){let e=this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t);if(e===null||e.currentIndex<0)return this.addMultiInstance(t);if(this.readOnlyMode||!this.withinAddBound(t))return false;let i=this.getDataObjectNodeByPath(t.path),a=Jn(i)?i[e.currentIndex]:null,r=null,o=null;if(t instanceof gn&&t.basicInfo.inputType===le.attributeValue){let l=this.getDataObjectNodeByPath(t.path),c=this.getParentDataObjectNodeByPath(t.path),d=Jn(l)?l[e.currentIndex]:null;d instanceof fa&&d.name!==""&&gi(c)&&(o=t,r={name:d.name,value:Nt.literal(c.values[d.name])??null})}if(this.dataObjectManipulationService.multiInstanceItemCopy(this.dataContext,t,this.multiInstanceObjectService),this.multiInstanceObjectService.multiInstanceItemCopy(t),r!==null&&o!==null){let l=1,c;do{let d=l===1?" copy":` copy ${l}`;c=this.dataObjectDataValueHandler.changeAttributeValue(this.dataContext,o,this.multiInstanceObjectService,`${r.name}${d}`,r.value),l++}while(c!==null&&l<=1e3);c!==null&&(this.dataObjectDataValueHandler.changeAttributeValue(this.dataContext,o,this.multiInstanceObjectService,null,r.value),this.messageHandlerService.error(`Unable to find a unique name for a copy of "${r.name}".`))}let s=this.getDataObjectNodeByPath(t.path);return this.validation.copyDrafts(a,Jn(s)?s[e.currentIndex]:null),this.buildQualityReport(),this.reportMutation("multiInstanceCopied",t,{count:this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0}),true}deleteMultiInstance(t){if(this.readOnlyMode||!this.withinDeleteBound(t))return false;let e=this.getDataObjectNodeByPath(t.path),i=this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentIndex??-1,a=Jn(e)?e[i]:null,r=this.getParentDataObjectNodeByPath(t.path),o=t instanceof gn&&t.basicInfo.inputType===le.attributeValue&&a instanceof fa?a.name:null;return this.dataObjectManipulationService.multiInstanceItemDelete(this.dataContext,t,this.multiInstanceObjectService),this.multiInstanceObjectService.multiInstanceItemDelete(t),o&&gi(r)&&(Object.values(r.values).some(l=>Jn(l)&&l.some(c=>c instanceof fa&&c.name===o))||r.removeValue(o),this.dataContext.invalidateDerivedViews()),this.buildQualityReport(),this.reportMutation("multiInstanceDeleted",t,{count:this.multiInstanceObjectService.getMultiInstanceInfoForComponent(t)?.currentCount??0}),true}getDataObjectNodeByPath(t){let e=this.dataContext.templateRepresentation;return e===null?null:this.dataObjectManipulationService.getDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,e,t,Ts.fromCursor(this.multiInstanceObjectService))}getDataObjectNodeAt(t,e){let i=this.dataContext.templateRepresentation;return i===null?null:this.dataObjectManipulationService.getDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,i,t,Ts.at(e))}getParentDataObjectNodeByPath(t){let e=this.dataContext.templateRepresentation;return e===null?null:this.dataObjectManipulationService.getParentDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,null,e,t,Ts.fromCursor(this.multiInstanceObjectService))}getParentDataObjectNodeAt(t,e){let i=this.dataContext.templateRepresentation;return i===null?null:this.dataObjectManipulationService.getParentDataPathNodeRecursively(this.dataContext.instanceFullData?.dataContainer??null,null,i,t,Ts.at(e))}setCurrentIndex(t,e){this.multiInstanceObjectService.setCurrentIndex(t,e)}changeValue(t,e,i=null,a="user"){this.readOnlyMode&&a==="user"||(this.dataObjectDataValueHandler.changeValue(this.dataContext,t,this.multiInstanceObjectService,e),this.validation.setDraft(t,i),this.buildQualityReport(),this.reportMutation("valueChanged",t,e))}changeListValue(t,e,i="user"){this.readOnlyMode&&i==="user"||(this.dataObjectDataValueHandler.changeListValue(this.dataContext,t,this.multiInstanceObjectService,e),this.buildQualityReport(),this.reportMutation("valueChanged",t,e))}changeAttributeValue(t,e,i){if(this.readOnlyMode)return null;let a=this.dataObjectDataValueHandler.changeAttributeValue(this.dataContext,t,this.multiInstanceObjectService,e,i);return this.validation.setDraft(t,a!==null||!e&&i!==null&&i!==""?{code:et.attributeName,message:"An attribute needs a valid, unique name before its value can be saved.",value:{key:e,value:i},state:{key:e,value:i,error:a}}:null),this.buildQualityReport(),this.reportMutation("valueChanged",t,{key:e,value:i}),a}deleteAttributeValue(t,e){this.readOnlyMode||(this.dataObjectDataValueHandler.deleteAttributeValue(this.dataContext,t,this.multiInstanceObjectService,e),this.buildQualityReport(),this.reportMutation("valueChanged",t,{key:e,value:null}))}changeControlledValue(t,e,i,a="user"){this.readOnlyMode&&a==="user"||(this.dataObjectDataValueHandler.changeControlledValue(this.dataContext,t,this.multiInstanceObjectService,e,i),this.buildQualityReport(),this.reportMutation("valueChanged",t,{iri:e,label:i}))}buildQualityReport(){this.validation.validate()}enableReadOnlyMode(){this.readOnlyMode=true}};var ax=class n{static read(t,e){let i=[],a=n.canonicalizeLegacyOccurrenceIds(t,i),r=gd.json().getFebruary2024().getTemplateInstanceReader().readFromObject(a).instance;n.makeAttributeValuesEditable(r.dataContainer);for(let o of i){let s=r.dataContainer;for(let d of o.path.slice(0,-1))if(s=Array.isArray(s)?s[Number(d)]:s instanceof xi?s.values[String(d)]:null,s==null)break;let l=o.path.at(-1),c=Array.isArray(s)?s[Number(l)]:s instanceof xi?s.values[String(l)]:null;if(c instanceof vd||c instanceof sl){let d=c instanceof sl?sl.fromParsedNode(o.iri,c.label,c.type):vd.fromParsedNode(o.iri,c.type);d.language=c.language,d.notation=c.notation,Array.isArray(s)?s[Number(l)]=d:s instanceof xi&&s.setValue(String(l),d)}}return e&&n.reportDiscarded(r.dataContainer,[],e),{full:r,extract:r.dataContainer}}static canonicalizeLegacyOccurrenceIds(t,e){let i=(a,r,o)=>{if(Array.isArray(a))return a.map((c,d)=>i(c,false,[...o,d]));if(a===null||typeof a!="object")return a;let s=a,l={};for(let[c,d]of Object.entries(s))l[c]=i(d,false,[...o,c]);return!r&&!u1.isValueNode(s)&&typeof s["@id"]=="string"&&s["@id"].trim()===""&&(l["@id"]=null),!r&&u1.isValueNode(s)&&typeof s["@id"]=="string"&&!dh(s["@id"])&&(e.push({path:o,iri:s["@id"]}),l["@id"]="urn:cedar:unreadable-field-iri"),l};return i(t,true,[])}static makeAttributeValuesEditable(t){for(let e of Object.keys(t.values)){let i=t.values[e];if(i instanceof Vp){let a=Object.keys(i.values);t.setValue(e,a.map(r=>new fa(r)));for(let r of a)t.setValue(r,i.values[r]);continue}Array.isArray(i)?i.forEach(a=>{a instanceof xi&&n.makeAttributeValuesEditable(a)}):i instanceof xi&&n.makeAttributeValuesEditable(i)}}static reportDiscarded(t,e,i){for(let a of Object.keys(t.values)){let r=[...e,a];n.reportNode(t.values[a],r,i)}}static reportNode(t,e,i){if(Array.isArray(t)){t.forEach((a,r)=>n.reportNode(a,[...e.slice(0,-1),`${e[e.length-1]}[${r}]`],i));return}if(t instanceof xi){n.reportDiscarded(t,e,i);return}t instanceof bd&&t.hasDiscardedContent()&&i(`The instance has no usable value for "${e.join(" > ")}": ${JSON.stringify(t.discarded)} is neither a literal nor an IRI, so the field is empty. A label with no @id names no term.`)}};var rx=class n{constructor(t){this.messages=t,this.claimed=new Set,this.acceptedTemplate=null,this.acceptedInstanceJson=null,this.nextRevision=0,this._instanceInputRejected=false,this._state=this.contextOnly(null,false)}get state(){return this._state}get instanceInputRejected(){return this._instanceInputRejected}acceptTemplate(t){if(!this.mayAcceptTemplate())return false;let e=this.snapshot("templateObject",t);if(e===null)return false;t=e;let i=this.acceptedInstanceJson===null?null:this.readInstance("instanceObject",this.acceptedInstanceJson);if(this.acceptedInstanceJson!==null&&i===null)return this._instanceInputRejected=true,false;let a=this.buildCandidate("templateObject",t,i,i!==null);return a===null?false:(this.commit(["template"]),this.acceptedTemplate=t,this._state=this.publish(a,t,this._state.instanceJson,null),true)}acceptInstance(t){if(!this.claimAvailable("instanceObject",["instance"]))return false;let e=this.snapshot("instanceObject",t);if(e===null)return this._instanceInputRejected=true,false;t=e;let i=this.readInstance("instanceObject",t);if(i===null)return this._instanceInputRejected=true,false;let a=this.acceptedTemplate===null?this.contextOnly(i,true):this.buildCandidate("instanceObject",this.acceptedTemplate,i,true);return a===null?(this._instanceInputRejected=true,false):(this._instanceInputRejected=false,this.commit(["instance"]),this.acceptedInstanceJson=t,this._state=this.publish(a,this._state.templateJson,t,null),true)}acceptCombined(t){if(!this.claimAvailable("templateAndInstanceObject",["template","instance"]))return false;let e=this.snapshot("templateAndInstanceObject",t);if(e===null)return false;t=e;let{templateObject:i,instanceObject:a}=t;if(!n.isJsonObject(i))return this.messages.error("Template Object is missing."),false;if(!n.isJsonObject(a))return this.messages.error("Instance Object is missing."),false;let r=this.readInstance("templateAndInstanceObject.instanceObject",a);if(r===null)return this._instanceInputRejected=true,false;let o=this.buildCandidate("templateAndInstanceObject.templateObject",i,r,true);return o===null?false:(this._instanceInputRejected=false,this.commit(["template","instance"]),this.acceptedTemplate=i,this._state=this.publish(o,null,null,t),true)}snapshot(t,e){try{return structuredClone(e)}catch(i){return this.messages.error(`CEDAR Embeddable Editor: "${t}" rejected because it cannot be copied as JSON data.`),null}}buildCandidate(t,e,i,a){let r=this.contextOnly(i,a);try{return r.dataContext.setInputTemplate(e,r.handlerContext,null),r}catch(o){let s=o instanceof Error?o.message:String(o);return this.messages.error(`CEDAR Embeddable Editor: "${t}" rejected because it is not a readable CEDAR template: ${s}`),null}}contextOnly(t,e){let i=new ru;i.instanceFullData=t,i.invalidateDerivedViews();let a=new lu(i,this.messages);return a.instanceSupplied=e,{dataContext:i,handlerContext:a,templateJson:null,instanceJson:null,templateAndInstanceJson:null,revision:this.nextRevision}}publish(t,e,i,a){return this.nextRevision+=1,Je(Y({},t),{templateJson:e,instanceJson:i,templateAndInstanceJson:a,revision:this.nextRevision})}readInstance(t,e){try{return ax.read(e,i=>this.messages.error(i)).full}catch(i){let a=i instanceof Error?i.message:String(i);return this.messages.error(`CEDAR Embeddable Editor: "${t}" rejected because it is not a readable CEDAR instance: ${a}`),null}}mayAcceptTemplate(){return!this.claimed.has("template")||!this.claimed.has("instance")?true:(this.messages.error('CEDAR Embeddable Editor: "templateObject" ignored, because an instance is loaded against the template it would replace. Create a new editor element to load a different artifact.'),false)}claimAvailable(t,e){let i=e.filter(r=>this.claimed.has(r));if(i.length===0)return true;let a=i.length>1?"template and instance are":`${i[0]} is`;return this.messages.error(`CEDAR Embeddable Editor: "${t}" ignored, because the ${a} already set. Each input takes one assignment; create a new editor element to load a different artifact.`),false}commit(t){t.forEach(e=>this.claimed.add(e))}static isJsonObject(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}};var Rn={showTemplateDescription:"showTemplateDescription",previewMode:"previewMode",showFieldType:"showFieldType",suppressEmptyFieldErrors:"suppressEmptyFieldErrors",readOnlyMode:"readOnlyMode",trustTemplateRichText:"trustTemplateRichText",showDownloadMenu:"showDownloadMenu",showExpandCollapseAll:"showExpandCollapseAll",terminologyBaseUrl:"terminologyBaseUrl",bridgeBaseUrl:"bridgeBaseUrl",defaultLanguage:"defaultLanguage",fallbackLanguage:"fallbackLanguage",languageMapPathPrefix:"languageMapPathPrefix"};function Gr(n,t,e){return n!=null&&Object.hasOwn(n,t)?!!n[t]:e}function Wg(n,t,e){return n!=null&&Object.hasOwn(n,t)?String(n[t]):e}function ox(n,t){let e=Wg(n,t,"");return e===""?null:e}var bL={[Rn.showTemplateDescription]:"boolean",[Rn.previewMode]:"boolean",[Rn.showFieldType]:"boolean",[Rn.suppressEmptyFieldErrors]:"boolean",[Rn.readOnlyMode]:"boolean",[Rn.trustTemplateRichText]:"boolean",[Rn.showDownloadMenu]:"boolean",[Rn.showExpandCollapseAll]:"boolean",[Rn.terminologyBaseUrl]:"string",[Rn.bridgeBaseUrl]:"string",[Rn.defaultLanguage]:"string",[Rn.fallbackLanguage]:"string",[Rn.languageMapPathPrefix]:"string"};var TK=(n,t)=>{let e=Array.from({length:t.length+1},(i,a)=>a);for(let i=1;i<=n.length;i++){let a=e[0];e[0]=i;for(let r=1;r<=t.length;r++){let o=Math.min(e[r]+1,e[r-1]+1,a+(n[i-1]===t[r-1]?0:1));a=e[r],e[r]=o}}return e[t.length]};var kK=n=>{let t=Object.keys(bL),e=null,i=Number.POSITIVE_INFINITY;for(let a of t){let r=TK(n.toLowerCase(),a.toLowerCase());r<i&&(i=r,e=a)}return e!==null&&i<=Math.max(2,Math.floor(n.length/3))?e:null};var gL=n=>n===null?"null":typeof n;var yL="Ignored, and the key reads as unset.";var vL=n=>{if(n===null||typeof n!="object"||Array.isArray(n))return{problems:[`Configuration must be an object, but was ${gL(n)}. Ignored.`],usable:null};let t=[],e={};for(let[i,a]of Object.entries(n)){let r=bL[i];if(r===void 0){let o=kK(i);t.push(`Unknown configuration key "${i}". It has no effect.`+(o?` Did you mean "${o}"?`:""));continue}if(typeof a!==r){t.push(`Configuration key "${i}" expects a ${r}, but was ${gL(a)}. ${yL}`);continue}e[i]=a}return t.push(...MK(e)),{problems:t,usable:e}};var MK=n=>{let t=[];for(let e of["bridgeBaseUrl","terminologyBaseUrl"]){let i=n[e];typeof i=="string"&&i!==""&&!i.endsWith("/")&&(t.push(`Configuration key "${e}" must end in a slash, but was "${i}". ${yL}`),delete n[e])}return t};var mh=class{constructor(t,e,i,a){this.controlledFields=t,this.messages=e,this.translate=i,this.globals=a,this.configured=false,this.defaultLanguage=Na.DEFAULT_LANGUAGE,this.fallbackLanguage=Na.DEFAULT_LANGUAGE,this._config=null}get config(){return this._config}get hasConfiguration(){return this.configured}accept(t){if(this.configured)return this.messages.error('CEDAR Embeddable Editor: "config" ignored, because the editor is already configured. Configuration takes one assignment; create a new editor element to configure it differently.'),false;this.messages.trace("CEDAR Embeddable Editor config set to:"+JSON.stringify(t));let{problems:e,usable:i}=vL(t);return e.forEach(a=>this.messages.error(a)),i===null?false:(this._config=i,this.configured=true,true)}apply(t){let e=this.globals.languageMapPathPrefix,i=[...this.translate.getLangs()],a=this._config??{},r=ox(a,Rn.terminologyBaseUrl);r!==null&&this.controlledFields.setIntegratedSearchUrl(r+x2),Object.hasOwn(a,Rn.languageMapPathPrefix)&&(this.globals.languageMapPathPrefix=Wg(a,Rn.languageMapPathPrefix,"")),Object.hasOwn(a,Rn.fallbackLanguage)?this.fallbackLanguage=Wg(a,Rn.fallbackLanguage,this.fallbackLanguage):this.messages.traceGroup("language",'"fallbackLanguage" not set, using default: "'+this.fallbackLanguage+'"'),Object.hasOwn(a,Rn.defaultLanguage)?this.defaultLanguage=Wg(a,Rn.defaultLanguage,this.defaultLanguage):this.messages.traceGroup("language",'"defaultLanguage" not set, using default: "'+this.defaultLanguage+'"'),Gr(a,Rn.readOnlyMode,false)&&t.enableReadOnlyMode(),this.translate.setFallbackLang(this.fallbackLanguage),this.translate.use(this.defaultLanguage),this.reloadLanguageMapsIfSourceMoved(e,i)}reloadLanguageMapsIfSourceMoved(t,e){this.globals.languageMapPathPrefix!==t&&e.forEach(i=>this.translate.reloadLang(i).subscribe())}};function $1(n){return n instanceof qt||n instanceof gn&&n.isMultiPage()}function sx(n,t){let e=[],i=n;for(let a of t){if(!(i instanceof Bn)&&!(i instanceof Hn)&&!(i instanceof qt))return null;let r=i.getChildByName(a);if(r===null)return null;e.push(r),i=r}return e}function Jg(n,t){return n.filter($1).map(e=>t.getMultiInstanceInfoForComponent(e)?.currentIndex??-1)}var _l=(()=>{class n{constructor(e,i,a){this.registry=e,this.renderScheduler=i,this.zone=a,this.paginator=null,this.targets=new Map,this.revealed=new Set}usePaginator(e){this.paginator=e}registerTarget(e,i){this.targets.set(e,i)}unregisterTarget(e,i){this.targets.get(e)===i&&this.targets.delete(e)}wasRevealed(e,i){return this.revealed.has(lx.of(e,i))}reveal(e,i,a={}){return this.zone.run(()=>this.revealInZone(e,i,a))}revealInZone(e,i,a){return nt(this,null,function*(){let r=e.dataContext.templateRepresentation,o=sx(r,i.path);if(r===null||o===null||o.length===0||o.some(f=>f.hidden))return false;let s=this.paginator,l=s?.currentPageBreakIndex??0;if(s!==null&&s.numPages()>0){let f=s.pageBreakChildren.findIndex(g=>g.includes(o[0]));if(f<0)return false;s.showPage(f)}let c=[],d=this.moveCursors(e,o,i.occurrences??[],c);if(d===null){for(let f of c.reverse())f();return s?.showPage(l),false}if(!(yield this.renderScheduler.schedule(()=>{let f=s!==null&&s.numPages()>0?s.getCurrentPage():r.children;for(let g of f)this.registry.updateViewToModel(g,e);for(let g of o.slice(0,o.indexOf(d)+1))this.targets.get(g)?.open()})))return false;let b=false;return(yield this.renderScheduler.schedule(()=>{b=this.bringIntoView(e,o,d,a)}))&&b})}moveCursors(e,i,a,r){let o=0;for(let[s,l]of i.entries()){if(!$1(l))continue;let c=e.multiInstanceObjectService.getMultiInstanceInfoForComponent(l),d=c?.currentCount??0;if(o<a.length){let m=a[o++];if(c===null||!Number.isInteger(m)||m<0||m>=d)return null;let b=c.currentIndex;r.push(()=>c.currentIndex=b),c.currentIndex=m}else if(d===0&&s<i.length-1)return l}return o<a.length?null:i[i.length-1]}bringIntoView(e,i,a,r){let o=this.targets.get(a)?.host??null;if(o===null)return false;let s=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches??false;o.scrollIntoView({block:"center",behavior:s?"auto":"smooth"}),r.focus!==false&&DK.firstControlIn(o)?.focus({preventScroll:true}),this.registry.markRevealed(a);let l=i.slice(0,i.indexOf(a));return this.revealed.add(lx.of(a.path,Jg(l,e.multiInstanceObjectService))),true}static{this.\u0275fac=function(i){return new(i||n)(qe(bt),qe(zo),qe($e))}}static{this.\u0275prov=We({token:n,factory:n.\u0275fac})}}return n})();var lx=class{static of(t,e){return`${t.join("/")}|${e.join("/")}`}};var DK=(()=>{class n{static{this.CONTROLS=['input:not([type="hidden"]):not([disabled])',"textarea:not([disabled])",'[role="combobox"]','[role="radio"]','[role="checkbox"]',"select:not([disabled])"]}static firstControlIn(e){for(let i of n.CONTROLS){let a=e.querySelector(i);if(a!==null)return a}return null}}return n})();var cx=class{constructor(t,e,i){this.activeComponentRegistry=t,this.handlerContext=e,this.renderScheduler=i,this.currentPageBreakIndex=0,this.pageBreakChildren=[]}reset(t){this.pageBreakChildren=t,this.currentPageBreakIndex=0}numPages(){return this.pageBreakChildren.length}allPageIndices(){return this.pageBreakChildren.map((t,e)=>e)}getCurrentPage(){return this.pageBreakChildren[this.currentPageBreakIndex]??[]}showPage(t){return t<0||t>=this.pageBreakChildren.length?false:(this.currentPageBreakIndex=t,true)}setPageNumberAndGet(t){return t>=0&&t<this.pageBreakChildren.length?(this.currentPageBreakIndex=t,this.renderScheduler.schedule(()=>{for(let e of this.getCurrentPage())this.activeComponentRegistry.updateViewToModel(e,this.handlerContext)}).catch(e=>this.handlerContext.messageHandlerService.error(`Page render failed: ${e instanceof Error?e.message:String(e)}`)),this.getCurrentPage()):null}};var qg={name:"cedar-embeddable-editor",description:"A reusable Web Component for creating and editing CEDAR metadata instances.",license:"BSD-2-Clause",version:"2.0.23",engines:{node:"^24.15.0"},scripts:{ng:"ng",start:"ng serve",build:"ng build","build:production":"ng build --configuration=production && ng build --configuration=production,host-fonts",test:"vitest run","test:watch":"vitest","test:unit:ci":"vitest run","test:unit:coverage":"vitest run --coverage.enabled","test:coordinator":"ng run cedar-embeddable-editor:coordinator-test --watch=false","test:domain":"npm --prefix harness test","test:domain:coverage":"npm --prefix harness run test:coverage","test:bundle-size":"npm run build:production && npm --prefix visual run bundle && npm --prefix visual run check:size","test:package":"npm run test:visual && npm run package:npm:prebuilt","test:visual:prebuilt":"bash visual/run-in-container.sh","update:visual":"bash visual/run-in-container.sh --update-snapshots","test:visual":"npm run build:production && bash visual/run-in-container.sh","test:ci:nonvisual:prebuilt":"node scripts/test-gate.mjs nonvisual","test:ci:prebuilt":"node scripts/test-gate.mjs prebuilt",typecheck:"tsc -p tsconfig.eslint.json --noEmit && tsc -p harness/tsconfig.json --noEmit && tsc -p visual/tsconfig.json --noEmit","audit:prod":"npm audit --omit=dev --audit-level=high","test:ci":"node scripts/test-gate.mjs full","types:public":"tsc -p tsconfig.public-api.json","package:npm:prebuilt":"npm --prefix visual run check:fresh && npm --prefix visual run check:size && npm run types:public && node scripts/stage-npm-package.mjs && npm run check:npm-package && npm run check:readme-examples","check:npm-package":"node --test scripts/npm-package.test.mjs scripts/test-gate.test.mjs && node scripts/check-npm-package.mjs",lint:"ng lint","check:readme-examples":"node scripts/check-readme-examples.mjs"},allowScripts:{"@parcel/watcher@2.6.0":true,"esbuild@0.28.2":true,"fsevents@2.3.3":true,"lmdb@3.5.6":true,"msgpackr-extract@3.0.4":true},dependencies:{"@angular/cdk":"^22.2.0","@angular/common":"~22.2.0","@angular/compiler":"~22.2.0","@angular/core":"~22.2.0","@angular/elements":"^22.2.0","@angular/forms":"~22.2.0","@angular/material":"^22.2.0","@angular/platform-browser":"~22.2.0","@ngx-translate/core":"^18.0.0","cedar-model-typescript-library":"1.0.19",dompurify:"^3.4.16",jsonld:"^9.0.0","lodash-es":"^4.18.1",n3:"^2.7.12",rxjs:"^7.8.2",tslib:"^2.6.2","zone.js":"~0.16.3"},devDependencies:{"@angular/build":"^22.2.0","@angular/cli":"~22.2.0","@angular/compiler-cli":"~22.2.0","@eslint/js":"^10.0.1","@org.metadatacenter/cedar-design-tokens":"0.1.0-dev.20261008.8a8401b2","@types/jsonld":"^1.5.15","@types/lodash-es":"^4.17.11","@types/n3":"^1.26.4","@types/node":"^24.9.2","@vitest/coverage-v8":"^4.1.11","angular-eslint":"^22.1.0",eslint:"^10.10.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6",globals:"^17.12.0",jsdom:"^30.0.1",prettier:"^3.1.0",typescript:"~6.0.3","typescript-eslint":"^8.66.0",vitest:"^4.1.11"}};var J1="application/json";var dx="application/yaml";var RK="text/turtle";var OK="application/n-quads";var Kg=[{id:"instance",labelKey:"Extra.JsonLD.Instance",icon:"property",suffix:"instance",extension:"json",mediaType:J1},{id:"instanceYaml",labelKey:"Extra.Yaml.Instance",icon:"document",suffix:"instance",extension:"yaml",mediaType:dx},{id:"instanceYamlCompact",labelKey:"Extra.Yaml.InstanceCompact",icon:"document",suffix:"instance-compact",extension:"yaml",mediaType:dx},{id:"instanceTurtle",labelKey:"Extra.Rdf.InstanceTurtle",icon:"property",suffix:"instance",extension:"ttl",mediaType:RK},{id:"instanceNQuads",labelKey:"Extra.Rdf.InstanceNQuads",icon:"property",suffix:"instance",extension:"nq",mediaType:OK},{id:"templateSource",labelKey:"Extra.JsonSchemaTemplate",icon:"artifact-template",suffix:"template",extension:"json",mediaType:J1},{id:"templateYaml",labelKey:"Extra.Yaml.Template",icon:"document",suffix:"template",extension:"yaml",mediaType:dx},{id:"templateYamlCompact",labelKey:"Extra.Yaml.TemplateCompact",icon:"document",suffix:"template-compact",extension:"yaml",mediaType:dx},{id:"dataQuality",labelKey:"Extra.DataQualityReport",icon:"list",suffix:"data-quality",extension:"json",mediaType:J1}];var PK=["templateYaml","templateYamlCompact","templateSource","instanceYaml","instanceYamlCompact","instance","instanceTurtle","instanceNQuads","dataQuality"];var q1=PK.map(n=>{let t=Kg.find(e=>e.id===n);if(t===void 0)throw new Error(`Unknown download menu item: ${n}`);return t});var FK=new Set(["instanceYaml","instanceYamlCompact","instance","instanceTurtle","instanceNQuads","dataQuality"]);var _L=q1.filter(n=>!FK.has(n.id));var Yx=Jk(A3());var i4=Jk(Z3());var vu="http://www.w3.org/1999/02/22-rdf-syntax-ns#";var Nh="http://www.w3.org/2001/XMLSchema#";var Fx="http://www.w3.org/2000/10/swap/";var ya={xsd:{decimal:`${Nh}decimal`,boolean:`${Nh}boolean`,dateTime:`${Nh}dateTime`,double:`${Nh}double`,integer:`${Nh}integer`,string:`${Nh}string`},rdf:{type:`${vu}type`,nil:`${vu}nil`,first:`${vu}first`,rest:`${vu}rest`,langString:`${vu}langString`,dirLangString:`${vu}dirLangString`,reifies:`${vu}reifies`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Fx}reify#forSome`,forAll:`${Fx}reify#forAll`},log:{implies:`${Fx}log#implies`,isImpliedBy:`${Fx}log#isImpliedBy`}};var{xsd:Lx}=ya;var Vx=32;var Bx=9;var e4=10;var jx=13;var uZ=35;var pZ=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g;var t4={"\\":"\\","'":"'",'"':'"',n:`
|
|
308
308
|
`,r:"\r",t:" ",f:"\f",b:"\b"};var hZ={_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","'":"'","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"};var fZ=/[\x00-\x20<>\\"\{\}\|\^\`]/;function n4(n){return n<=1114111&&(n<55296||n>57343)}var gZ={_iri:true,_unescapedIri:true,_simpleQuotedString:true,_langcode:true,_blank:true,_commentLine:true,_whitespace:true};var bZ=/$0^/;var pb=class{constructor(t){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:!\^\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:!\^\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._atKeyword=/^@[a-z]+(?=[\s#<:])/i,this._keyword=/^(?:PREFIX|BASE|VERSION|GRAPH)(?=[\s#<])/i,this._n3Verb=/^(?:has|is|of)(?=[\s#()\[\]\{\}"'<>?_+\-0-9])/,this._n3Id=/^id(?=[\s#<])/,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._commentLine=/^[ \t]*#([^\n\r]*)(?:\r\n|\n|\r)([ \t]*)/,this._whitespace=/^[ \t]+/,t=t||{},this._isImpliedBy=t.isImpliedBy,this._lineMode=!!t.lineMode){this._n3Mode=false;for(let e in this)!(e in gZ)&&this[e]instanceof RegExp&&(this[e]=bZ)}else this._n3Mode=t.n3!==false;this.comments=!!t.comments,this._literalClosingPos=0}_tokenizeToEnd(t,e){let i=this._input,a=this._linePosition+i.length;for(;;){for(;;){let O=i.charCodeAt(0),E=0;if(O===Vx||O===Bx){let R=i.charCodeAt(1);E=R===Vx||R===Bx?this._whitespace.exec(i)[0].length:1,O=i.charCodeAt(E)}if(O===uZ){let R=this._commentLine.exec(i);if(R){let D=R[0].length;if(!e&&D===i.length&&i.charCodeAt(D-1)===jx)return this._linePosition=a-i.length,this._input=i;this.comments&&r(R[1],this._line,E),i=i.slice(D),a=i.length+R[2].length,this._line++}else{if(i=i.slice(E),!e)return this._linePosition=a-i.length,this._input=i;this.comments&&r(i.slice(1),this._line,0),i="";break}}else if(O===e4||O===jx){if(!e&&O===jx&&E+1===i.length)return this._linePosition=a-i.length,this._input=i;E+=O===jx&&i.charCodeAt(E+1)===e4?2:1;let R=0,D=i.charCodeAt(E);if(D===Vx||D===Bx){let F=i.charCodeAt(E+1);R=F===Vx||F===Bx?this._whitespace.exec(i.slice(E))[0].length:1}i=i.slice(E+R),a=i.length+R,this._line++}else{E!==0&&(i=i.slice(E));break}}if(i.length===0)return e&&(i=null,o("eof","","",this._line,0)),this._linePosition=a,this._input=i;let l=this._line,c=i[0],d="",m="",b="",u=null,f=0,g=0,x=0,w=false;switch(c){case"^":if(i.length<3)break;if(i[1]==="^"){if(this._previousMarker="^^",i=i.slice(2),i[0]!=="<"){w=true;break}}else{this._n3Mode&&(f=1,d="^");break}case"<":if(u=this._unescapedIri.exec(i))d="IRI",m=u[1],g=u[1].length+2;else if(u=this._iri.exec(i)){if(m=this._unescape(u[1],t4),m===null||fZ.test(m))return s(this);d="IRI",g=u[1].length+2}else i.length>2&&i[1]==="<"&&i[2]==="("?(d="<<(",f=3):!this._lineMode&&i.length>(e?1:2)&&i[1]==="<"?(d="<<",f=2):this._n3Mode&&i.length>1&&i[1]==="="?(f=2,this._isImpliedBy?(d="abbreviation",m="<"):(d="inverse",m=">")):this._n3Mode&&i.length>1&&i[1]==="-"&&(d="inversePredicate",f=2);break;case">":i.length>1&&i[1]===">"&&(d=">>",f=2);break;case"_":((u=this._blank.exec(i))||e&&(u=this._blank.exec(`${i} `)))&&(d="blank",b="_",m=u[1],g=u[1].length+2);break;case'"':if(u=this._simpleQuotedString.exec(i))m=u[1];else if({value:m,matchLength:f,finalLineLength:x}=this._parseLiteral(i),m===null)return s(this);(u!==null||f!==0)&&(d="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(u=this._simpleApostropheString.exec(i))m=u[1];else if({value:m,matchLength:f,finalLineLength:x}=this._parseLiteral(i),m===null)return s(this);(u!==null||f!==0)&&(d="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(u=this._variable.exec(i))&&(d="var",m=u[0]);break;case"@":this._previousMarker==="literal"&&(u=this._langcode.exec(i))&&u[1]!=="version"?!e&&i[u[0].length]==="-"&&i[u[0].length+1]!=="-"?u=null:(d="langcode",m=u[1]):(u=this._atKeyword.exec(i))&&(d=u[0]);break;case".":if(i.length===1?e:i[1]<"0"||i[1]>"9"){d=".",f=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":if(i[1]==="-"){this._previousMarker==="langcode"&&(i.startsWith("--ltr")?(d="dircode",m="ltr",f=5):i.startsWith("--rtl")&&(d="dircode",m="rtl",f=5));break}(u=this._number.exec(i)||e&&(u=this._number.exec(`${i} `)))&&(d="literal",m=u[0],b=typeof u[1]=="string"?Lx.double:typeof u[2]=="string"?Lx.decimal:Lx.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":case"V":case"v":(u=this._keyword.exec(i))?d=u[0].toUpperCase():w=true;break;case"f":case"t":this._boolean.test(i)?(d="literal",m=c==="t"?"true":"false",b=Lx.boolean,f=m.length):w=true;break;case"a":this._shortPredicates.test(i)?(d="abbreviation",m="a",f=1):w=true;break;case"h":case"o":this._n3Mode&&(u=this._matchN3Verb(i,e))?d=u[0]:w=true;break;case"i":this._n3Mode&&this._n3Id.test(i)?(d="id",f=2):this._n3Mode&&(u=this._matchN3Verb(i,e))?d=u[0]:w=true;break;case"=":this._n3Mode&&i.length>1&&(d="abbreviation",i[1]!==">"?(f=1,m="="):(f=2,m=">"));break;case"!":if(!this._n3Mode)break;case")":if(!e&&(i.length===1||i.length===2&&i[1]===">"))break;if(i.length>2&&i[1]===">"&&i[2]===">"){d=")>>",f=3;break}case",":case";":case"[":case"]":case"(":case"}":case"~":this._lineMode||(f=1,d=c);break;case"{":!this._lineMode&&i.length>=2&&(i[1]==="|"?(d="{|",f=2):(d=c,f=1));break;case"|":i.length>=2&&i[1]==="}"&&(d="|}",f=2);break;default:w=true}if(w&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(u=this._prefix.exec(i))?(d="prefix",m=u[1]||""):((u=this._prefixed.exec(i))||e&&(u=this._prefixed.exec(`${i} `)))&&(d="prefixed",b=u[1]||"",m=this._unescape(u[2],hZ),g=b.length+u[2].length+1)),this._previousMarker==="^^")switch(d){case"prefixed":d="type";break;case"IRI":d="typeIRI";break;default:d=""}if(!d)return e||!/^'''|^"""/.test(i)&&/\n|\r/.test(i)?s(this):(this._linePosition=a-i.length,this._input=i);let C=f||u[0].length,I;x?(I={type:d,value:m,prefix:b,line:l,start:a-i.length,end:x,endLine:this._line},t(null,I)):I=o(d,m,b,l,g||C),this.previousToken=I,this._previousMarker=d,i=i.slice(C),x&&(a=i.length+x)}function r(l,c,d){let m=a-i.length+d;t(null,{type:"comment",value:l,prefix:"",line:c,start:m,end:m+l.length+1})}function o(l,c,d,m,b){let u=i?a-i.length:a,f=u+b,g={type:l,value:c,prefix:d,line:m,start:u,end:f};return t(null,g),g}function s(l){t(l._syntaxError(/^\S*/.exec(i)[0]))}}_matchN3Verb(t,e){let i=this._n3Verb.exec(t);if(!i)return null;let a=t[i[0].length];return a!=="-"&&a!=="_"&&(a<"0"||a>"9")?i:this._prefixed.exec(t)||this._prefixed.exec(`${t} `)||!e&&this._prefix.exec(`${t}: `)?null:i}_unescape(t,e){if(t.indexOf("\\")<0)return t;let i=false,a=t.replace(pZ,(r,o,s,l)=>{if(typeof o=="string"){let c=Number.parseInt(o,16);return n4(c)?String.fromCharCode(c):(i=true,"")}if(typeof s=="string"){let c=Number.parseInt(s,16);return n4(c)?c<=65535?String.fromCharCode(Number.parseInt(s,16)):String.fromCharCode(55296+((c-=65536)>>10),56320+(c&1023)):(i=true,"")}return l in e?e[l]:(i=true,"")});return i?null:a}_parseLiteral(t){if(t.length>=3){let e=t[0],i=t[1]===e&&t[2]===e?3:1,a=e;i===3&&(a=e==='"'?'"""':"'''");let r=Math.max(this._literalClosingPos,i);for(;(r=t.indexOf(a,r))>0;){let o=0;for(;t[r-o-1]==="\\";)o++;if(o%2===0){let s=t.substring(i,r),l=s.split(/\r\n|\r|\n/),c=l.length-1,d=r+i;if(i===1&&c!==0||i===3&&this._lineMode)break;this._line+=c;let m=c===0?0:l[l.length-1].length+i;return{value:this._unescape(s,t4),matchLength:d,finalLineLength:m}}r++}this._literalClosingPos=t.length-i+1}return{value:"",matchLength:0,finalLineLength:0}}_syntaxError(t){this._input=null;let e=new Error(`Unexpected "${t}" on line ${this._line}.`);return e.context={token:void 0,line:this._line,previousToken:this.previousToken},e}_readStartingBom(t){return t.startsWith("\uFEFF")?(this._linePosition=1,t.slice(1)):t}tokenize(t,e){let i=this._tokenization={};if(this._line=1,this._linePosition=0,this._previousMarker=void 0,this.previousToken=void 0,this._literalClosingPos=0,this._input=void 0,typeof t=="string")if(this._input=this._readStartingBom(t),typeof e=="function")queueMicrotask(()=>{this._tokenization===i&&this._tokenizeToEnd(e,true)});else{let a=[],r;if(this._tokenizeToEnd((o,s)=>o?r=o:a.push(s),true),r)throw r;return a}else this._pendingBuffer=null,typeof t.setEncoding=="function"&&t.setEncoding("utf8"),t.on("data",a=>{this._tokenization===i&&this._input!==null&&a.length!==0&&(this._pendingBuffer&&(a=i4.Buffer.concat([this._pendingBuffer,a]),this._pendingBuffer=null),a[a.length-1]&128?this._pendingBuffer=a:(typeof this._input>"u"?this._input=this._readStartingBom(typeof a=="string"?a:a.toString()):this._input+=a,this._tokenizeToEnd(e,false)))}),t.on("end",()=>{this._tokenization===i&&typeof this._input=="string"&&this._tokenizeToEnd(e,true)}),t.on("error",a=>{this._tokenization===i&&e(a)})}};var{rdf:a4,xsd:_u}=ya;var gb;var yZ=0;var vZ={namedNode:r4,blankNode:o4,variable:l4,literal:s4,defaultGraph:_Z,quad:WE,triple:WE,fromTerm:hb,fromQuad:c4};var El=vZ;var qo=class n{constructor(t){this.id=t}get value(){return this.id}equals(t){return t instanceof n?this.id===t.id:!!t&&this.termType===t.termType&&this.value===t.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}};var fb=class extends qo{constructor(t){super(t)}get termType(){return"NamedNode"}};var xu=class n extends qo{constructor(t){super(t)}get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){let t=this.id,e=t.lastIndexOf('"')+1,i=t.lastIndexOf("--");return e<t.length&&t[e++]==="@"?(i>e?t.substr(0,i):t).substr(e).toLowerCase():""}get direction(){let t=this.id,e=t.lastIndexOf('"'),i=t.lastIndexOf("--");return i>e&&i+2<t.length?t.substr(i+2).toLowerCase():""}get datatype(){return new fb(this.datatypeString)}get datatypeString(){let t=this.id,e=t.lastIndexOf('"')+1,i=e<t.length?t[e]:"";return i==="^"?t.substr(e+2):i!=="@"?_u.string:t.indexOf("--",e)>0?a4.dirLangString:a4.langString}equals(t){return t instanceof n?this.id===t.id:!!t&&!!t.datatype&&this.termType===t.termType&&this.value===t.value&&this.language===t.language&&(this.direction===t.direction||this.direction===""&&!t.direction)&&this.datatype.value===t.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,direction:this.direction,datatype:{termType:"NamedNode",value:this.datatypeString}}}};var zx=class extends qo{constructor(t){super(`_:${t}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}};var Ux=class extends qo{constructor(t){super(`?${t}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}};var Hx=class extends qo{constructor(){return super(""),gb||this}get termType(){return"DefaultGraph"}equals(t){return this===t||!!t&&this.termType===t.termType}};gb=new Hx;var Ih=class extends qo{constructor(t,e,i,a){super(""),this._subject=t,this._predicate=e,this._object=i,this._graph=a||gb}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(t){return!!t&&this._subject.equals(t.subject)&&this._predicate.equals(t.predicate)&&this._object.equals(t.object)&&this._graph.equals(t.graph)}};function r4(n){return new fb(n)}function o4(n){return new zx(n||`n3-${yZ++}`)}function s4(n,t){if(typeof t=="string")return new xu(`"${n}"@${t.toLowerCase()}`);if(t!==void 0&&!("termType"in t))return new xu(`"${n}"@${t.language.toLowerCase()}${t.direction?`--${t.direction.toLowerCase()}`:""}`);let e=t?t.value:"";return e===""&&(typeof n=="boolean"?e=_u.boolean:typeof n=="number"?Number.isFinite(n)?e=Number.isInteger(n)?_u.integer:_u.double:(e=_u.double,Number.isNaN(n)||(n=n>0?"INF":"-INF")):n instanceof Date&&!Number.isNaN(n.getTime())&&(e=_u.dateTime,n=n.toISOString())),e===""||e===_u.string?new xu(`"${n}"`):new xu(`"${n}"^^${e}`)}function l4(n){return new Ux(n)}function _Z(){return gb}function WE(n,t,e,i){return new Ih(n,t,e,i)}function hb(n){if(n instanceof qo)return n;switch(n.termType){case"NamedNode":return r4(n.value);case"BlankNode":return o4(n.value);case"Variable":return l4(n.value);case"DefaultGraph":return gb;case"Literal":return s4(n.value,n.language||n.datatype);case"Quad":return c4(n);default:throw new Error(`Unexpected termType: ${n.termType}`)}}function c4(n){if(n instanceof Ih)return n;if(n.termType!=="Quad")throw new Error(`Unexpected termType: ${n.termType}`);return WE(hb(n.subject),hb(n.predicate),hb(n.object),hb(n.graph))}var d4=0;var xc=class n{constructor(t){this._contextStack=[],this._graph=null,t=t||{},this._setBase(t.baseIRI),t.factory&&m4(this,t.factory);let e=typeof t.format=="string"?t.format.match(/\w*$/)[0].toLowerCase():"",i=/turtle/.test(e),a=/trig/.test(e),r=/triple/.test(e),o=/quad/.test(e),s=this._n3Mode=/n3/.test(e),l=r||o;this._emitCurrent=this._emit,s&&(this._createQuad=this._createQuadInDirection,this._emit=this._emitInDirection,this._emitCurrent=this._emitCurrentInDirection),(this._supportsNamedGraphs=!(i||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(i||a||r||s),this._isImpliedBy=t.isImpliedBy,this._implicitEmptyPrefix=!!t.implicitEmptyPrefix,this._emptyFormulaAsTrue=!!t.emptyFormulaAsTrue,l&&(this._resolveRelativeIRI=c=>null),this._blankNodePrefix=typeof t.blankNodePrefix!="string"?"":t.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=t.lexer||new pb({lineMode:l,n3:s,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!t.explicitQuantifiers,this._parseUnsupportedVersions=!!t.parseUnsupportedVersions,this._version=t.version}static _resetBlankNodePrefix(){d4=0}_setBase(t){if(!t)this._base="",this._basePath="";else{let e=t.indexOf("#");e>=0&&(t=t.substr(0,e)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=t[0],this._baseScheme=t[1]}}_saveContext(t,e,i,a,r){if(!this._n3Mode){this._contextStack.push({type:t,subject:i,predicate:a,object:r,graph:e});return}let o={type:t,subject:i,predicate:a,object:r,graph:e,inverse:this._inversePredicate,expectOf:this._expectOf,blankPrefix:this._prefixes._,quantified:this._quantified,emptyFormula:this._emptyFormula};t==="formula"&&(o.prefixes=this._prefixes,o.base=[this._base,this._basePath,this._baseRoot,this._baseScheme],this._prefixes=Object.create(this._prefixes)),this._contextStack.push(o),this._inversePredicate=false,this._expectOf=false,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified),t==="formula"&&(this._subject=null,this._emptyFormula=true)}_restoreContext(t,e){let i=this._contextStack.pop();if(!i||i.type!==t)return this._error(`Unexpected ${e.type}`,e);this._subject=i.subject,this._predicate=i.predicate,this._object=i.object,this._graph=i.graph,this._n3Mode&&(this._inversePredicate=i.inverse,this._expectOf=i.expectOf,t==="formula"?(this._prefixes=i.prefixes,[this._base,this._basePath,this._baseRoot,this._baseScheme]=i.base):this._prefixes._=i.blankPrefix,this._quantified=i.quantified,this._emptyFormula=i.emptyFormula)}_readBeforeTopContext(t){return this._version&&!this._isValidVersion(this._version)?this._error(`Detected unsupported version as media type parameter: "${this._version}"`,t):this._readInTopContext(t)}_readInTopContext(t){switch(t.type){case"eof":return this._graph!==null?this._error("Unclosed graph",t):(delete this._prefixes._,this._callback(null,null,this._prefixes));case"PREFIX":this._sparqlStyle=true;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=true;case"@base":return this._readBaseIRI;case"VERSION":this._sparqlStyle=true;case"@version":return this._readVersion;case"{":if(this._supportsNamedGraphs)return this._graph="",this._subject=null,this._readSubject;case"GRAPH":if(this._supportsNamedGraphs)return this._readNamedGraphLabel;default:return this._readSubject(t)}}_readInFormulaContext(t){switch(t.type){case"PREFIX":this._sparqlStyle=true;case"@prefix":return this._readPrefix;case"BASE":this._sparqlStyle=true;case"@base":return this._readBaseIRI;default:return this._readSubject(t)}}_getStatementReader(){let t=this._contextStack[this._contextStack.length-1];return t&&t.type==="formula"?this._readInFormulaContext:this._readInTopContext}_readEntity(t,e){let i;switch(t.type){case"IRI":case"typeIRI":let a=this._resolveIRI(t.value);if(a===null)return this._error("Invalid IRI",t);i=this._factory.namedNode(a);break;case"type":case"prefixed":let r=this._prefixes[t.prefix];if(r===void 0)return this._error(`Undefined prefix "${t.prefix}:"`,t);i=this._factory.namedNode(r+t.value);break;case"blank":i=this._factory.blankNode(this._prefixes[t.prefix]+t.value);break;case"var":i=this._factory.variable(t.value.substr(1));break;default:return this._error(`Expected entity but got ${t.type}`,t)}return!e&&this._n3Mode&&i.id in this._quantified&&(i=this._quantified[i.id]),i}_readList(t,e,i,a){let r=this._contextStack;return(r.length&&r[r.length-1]).type==="<<"?this._error("Unexpected list in reified triple",t):(this._saveContext("list",this._graph,e,i,a),this._subject=null,this._readListItem)}_readSubject(t){switch(this._predicate=null,t.type!=="}"&&(this._emptyFormula=false),t.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.blankNode(),null,null),this._readBlankNodeHead;case"(":return this._readList(t,this.RDF_NIL,null,null);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._factory.blankNode(),null,null),this._readInFormulaContext):this._error("Unexpected graph",t);case"}":return this._readPunctuation(t);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',t);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="variable",this._readQuantifierList):this._error('Unexpected "@forAll"',t);case"literal":return this._n3Mode?t.prefix.length===0?(this._literalValue=t.value,this._completeSubjectLiteral):(this._subject=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),this._getPathReader(this._readPredicateOrNamedGraph)):this._error("Unexpected literal",t);case"<<(":return this._n3Mode?(this._saveContext("<<(",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Disallowed triple term as subject",t);case"<<":return this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject;default:if((this._subject=this._readEntity(t))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(t){let e=t.type,i=false;switch(e){case"inverse":this._inversePredicate=true;case"abbreviation":this._predicate=this.ABBREVIATIONS[t.value];break;case"has":return this._readPredicateAfterVerb;case"is":return this._inversePredicate=true,this._expectOf=true,this._readPredicateAfterVerb;case"inversePredicate":return this._inversePredicate=true,this._readPredicateAfterVerb;case".":case"]":case"}":case"|}":return this._predicate===null&&!this._n3Mode?this._error(`Unexpected ${e}`,t):(this._subject=null,e==="]"?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",t);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",t);if(t.prefix.length===0)return this._literalValue=t.value,this._completePredicateLiteral;this._predicate=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),i=true;break;case"(":return this._n3Mode?this._readList(t,this._subject,this.RDF_NIL,null):this._error(`Expected entity but got ${e}`,t);case"[":return this._n3Mode?(this._saveContext("blank",this._graph,this._subject,this._subject=this._factory.blankNode(),null),this._readBlankNodeHead):this._error("Disallowed blank node as predicate",t);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._graph=this._factory.blankNode(),null),this._readSubject):this._readEntity(t);case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",t);default:if((this._predicate=this._readEntity(t))===void 0)return;i=this._n3Mode}return this._validAnnotation=true,i?this._getPathReader(this._readObject,"predicate"):this._readObject}_readPredicateAfterVerb(t){return t.type==="has"||t.type==="is"||t.type==="of"||t.type==="inversePredicate"?this._error(`Expected expression but got ${t.type}`,t):this._readPredicate(t)}_readObject(t){if(this._expectOf)return t.type!=="of"?this._error(`Expected of but got ${t.type}`,t):(this._expectOf=false,this._readObject);switch(t.type){case"literal":if(t.prefix.length===0)return this._literalValue=t.value,this._readDataTypeOrLang;if(this._object=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),this._n3Mode)return this._getPathReader(this._getContextEndReader());break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.blankNode()),this._readBlankNodeHead;case"(":return this._readList(t,this._subject,this._predicate,this.RDF_NIL);case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readInFormulaContext):this._error("Unexpected graph",t);case"<<(":return this._saveContext("<<(",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject;case"<<":return this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject;default:if((this._object=this._readEntity(t))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(t){return t.type==="{"?this._readGraph(t):this._readPredicate(t)}_readGraph(t){return t.type!=="{"?this._error(`Expected graph but got ${t.type}`,t):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(t){if(t.type==="]")return this._subject=null,this._readBlankNodeTail(t);{let e=this._contextStack;return(e.length>1&&e[e.length-2]).type==="<<"?this._error("Unexpected compound blank node expression in reified triple",t):t.type==="id"?this._readIriPropertyListId:(this._predicate=null,this._readPredicate(t))}}_readIriPropertyListId(t){let e=this._readEntity(t);if(e===void 0)return;if(e.termType!=="NamedNode")return this._error(`Expected IRI after id but got ${t.type}`,t);let i=this._subject;this._subject=e;let a=this._contextStack[this._contextStack.length-1];return a.subject===i&&(a.subject=e),a.predicate===i&&(a.predicate=e),a.object===i&&(a.object=e),this._predicate=null,this._readIriPropertyListPredicate}_readIriPropertyListPredicate(t){return t.type===";"||t.type==="]"||t.type==="."||t.type==="}"?this._error(`Expected predicate but got ${t.type}`,t):this._readPredicate(t)}_readBlankNodeTail(t){if(t.type!=="]")return this._readBlankNodePunctuation(t);this._subject!==null&&this._emitCurrent(this._subject,this._predicate,this._object,this._graph);let e=this._predicate===null;return this._restoreContext("blank",t),this._object!==null?this._getContextEndReader():this._predicate!==null?this._getPathReader(this._readObject,"predicate"):e?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(t){switch(t.type){case".":case"}":return this._subject=null,this._readPunctuation(t);default:return this._readPredicate(t)}}_readListItem(t){let e=null,i=null,a=this._readListItem,r=this._subject,o=this._contextStack,s=o[o.length-1];switch(t.type){case"[":this._saveContext("blank",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this._subject=e=this._factory.blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,i=this._factory.blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",t),o.length!==0&&o[o.length-1].type==="list"){if(this._n3Mode)return r!==null&&this._emit(r,this.RDF_REST,this.RDF_NIL,this._graph),this._saveContext("item",this._graph,this._subject,this._predicate,this._object),this._subject=this._object,this._predicate=null,this._getPathReader(this._readListItem);this._emit(this._subject,this._predicate,this._object,this._graph)}if(this._predicate===null){if(a=this._n3Mode?this._getPathReader(this._readPredicate):this._readPredicate,this._subject===this.RDF_NIL)return a}else if(this._object===null){if(a=this._getPathReader(this._readObject,"predicate"),this._predicate===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._n3Mode&&(a=this._getPathReader(a)),this._object===this.RDF_NIL)return a;i=this.RDF_NIL;break;case"literal":t.prefix.length===0?(this._literalValue=t.value,a=this._readListItemDataTypeOrLang):(e=this._factory.literal(t.value,this._factory.namedNode(t.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(i=this._factory.blankNode(),e=this._factory.blankNode(),r===null?s.predicate===null?s.subject=i:s.object=i:this._emit(r,this.RDF_REST,i,this._graph),this._emit(i,this.RDF_FIRST,e,this._graph),this._saveContext("formula",this._graph,i,this.RDF_FIRST,this._graph=e),this._subject=null,this._readInFormulaContext):this._error("Unexpected graph",t);case"<<(":this._saveContext("<<(",this._graph,null,null,null),this._graph=null,a=this._readSubject;break;case"<<":this._saveContext("<<",this._graph,null,null,null),this._graph=null,a=this._readSubject;break;default:if((e=this._readEntity(t))===void 0)return}if(i===null&&(this._subject=i=this._factory.blankNode()),(t.type==="<<"||t.type==="<<(")&&(o[o.length-1].subject=this._subject),r===null?s.predicate===null?s.subject=i:s.object===null?s.predicate=i:s.object=i:this._emit(r,this.RDF_REST,i,this._graph),e!==null){if(this._n3Mode&&(t.type==="IRI"||t.type==="prefixed"||t.type==="var"||t.type==="blank"||t.type==="literal"))return this._saveContext("item",this._graph,i,this.RDF_FIRST,e),this._subject=e,this._predicate=null,this._getPathReader(this._readListItem);this._emit(i,this.RDF_FIRST,e,this._graph)}return a}_readDataTypeOrLang(t){return this._completeObjectLiteral(t,false)}_readListItemDataTypeOrLang(t){return this._completeObjectLiteral(t,true)}_completeLiteral(t,e){let i,a=false;switch(t.type){case"type":case"typeIRI":let r=this._readEntity(t);if(r===void 0)return;if(r.value===ya.rdf.langString||r.value===ya.rdf.dirLangString)return this._error("Detected illegal (directional) languaged-tagged string with explicit datatype",t);i=this._factory.literal(this._literalValue,r),t=null;break;case"langcode":if(t.value.split("-").some(o=>o.length>8))return this._error("Detected language tag with subtag longer than 8 characters",t);i=this._factory.literal(this._literalValue,t.value),this._literalLanguage=t.value,t=null,this._literalComponent=e,a=true;break;default:i=this._factory.literal(this._literalValue)}return{token:t,literal:i,readCb:a}}_readDirCode(t){let e=this._literalComponent,i=this._literalListItem;if(t.type==="dircode"){let a=this._factory.literal(this._literalValue,{language:this._literalLanguage,direction:t.value});e==="subject"?this._subject=a:e==="predicate"?this._predicate=a:this._object=a,this._literalLanguage=void 0,t=null}if(e==="subject"||e==="predicate"){let a=e==="subject"?this._readPredicateOrNamedGraph:this._readObject;return this._getPathEndReader(t,a,e)||a.call(this,t)}return this._completeObjectLiteralPost(t,i)}_completeTermLiteral(t,e){let i=this._completeLiteral(t,e);if(!i)return;let a;if(e==="subject"?(this._subject=i.literal,a=this._readPredicateOrNamedGraph):(this._predicate=i.literal,this._validAnnotation=true,a=this._readObject),i.readCb)return this._literalListItem=false,this._readDirCode;let r=this._getPathEndReader(i.token,a,e);return r||a.call(this,i.token)}_completeSubjectLiteral(t){return this._completeTermLiteral(t,"subject")}_completePredicateLiteral(t){return this._completeTermLiteral(t,"predicate")}_completeObjectLiteral(t,e){let i=this._completeLiteral(t,"object");if(i)return this._object=i.literal,i.readCb?(this._literalListItem=e,this._readDirCode):this._completeObjectLiteralPost(i.token,e)}_completeObjectLiteralPost(t,e){return this._n3Mode&&(t===null||t.type==="!"||t.type==="^")?e?(this._saveContext("item",this._graph,this._subject,this.RDF_FIRST,this._object),this._subject=this._object,this._predicate=null,this._getPathEndReader(t,this._readListItem)):this._getPathEndReader(t,this._getContextEndReader()):(e&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),t===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(t)))}_readFormulaTail(t){if(t.type!=="}")return this._readPunctuation(t);this._subject!==null&&this._emitCurrent(this._subject,this._predicate,this._object,this._graph);let e=this._graph,i=this._emptyFormula;return this._restoreContext("formula",t),i&&this._emptyFormulaAsTrue&&(this._subject===e?this._subject=this.N3_TRUE:this._predicate===e?this._predicate=this.N3_TRUE:this._object=this.N3_TRUE),this._object!==null?this._getPathReader(this._getContextEndReader(),"object"):this._predicate!==null?this._getPathReader(this._readObject,"predicate"):this._getPathReader(this._readPredicate,"subject")}_readPunctuation(t){let e,i=this._graph,a=false,r=this._subject,o=this._inversePredicate;switch(t.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",t);if(this._n3Mode)return this._readFormulaTail(t);this._graph=null;case".":this._subject=null,this._tripleTerm=null,e=this._getStatementReader(),o&&(this._inversePredicate=false);break;case";":o&&(this._inversePredicate=false),e=this._readPredicate;break;case",":e=this._readObject;break;case"~":r!==null&&(this._tripleTerm=null),e=this._readReifierInAnnotation,a=true;break;case"{|":r!==null&&(this._tripleTerm=null),this._subject=this._readTripleTerm(),this._inversePredicate=false,this._validAnnotation=false,a=true,e=this._readPredicate;break;case"|}":if(!this._annotation)return this._error("Unexpected annotation syntax closing",t);if(!this._validAnnotation)return this._error("Annotation block can not be empty",t);this._subject=null,this._annotation=false,this._inversePredicate=false,e=this._getContextEndReader();break;default:if(this._supportsQuads&&this._graph===null&&(i=this._readEntity(t))!==void 0){e=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,t)}if(r!==null&&(!a||a&&!this._annotation)){let s=this._predicate,l=this._object;this._emit(r,s,l,i,o)}return a&&(this._annotation=true),e}_readBlankNodePunctuation(t){let e,i=false;switch(t.type){case";":i=this._inversePredicate,e=this._readPredicate;break;case",":e=this._readObject;break;case"~":case"{|":case"|}":return this._readPunctuation(t);default:return this._error(`Expected punctuation to follow "${this._object.id}"`,t)}return this._subject===null?this._error("Expected ] to follow annotation",t):(this._emitCurrent(this._subject,this._predicate,this._object,this._graph),i&&(this._inversePredicate=false),e)}_readQuadPunctuation(t){return t.type!=="."?this._error("Expected dot to follow quad",t):this._readInTopContext}_readPrefix(t){return t.type!=="prefix"?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)}_readPrefixIRI(t){if(t.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,t);let e=this._readEntity(t);return this._prefixes[this._prefix]=e.value,this._prefixCallback(this._prefix,e),this._readDeclarationPunctuation}_readBaseIRI(t){let e=t.type==="IRI"&&this._resolveIRI(t.value);return e?(this._setBase(e),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",t)}_isValidVersion(t){return this._parseUnsupportedVersions||n.SUPPORTED_VERSIONS.includes(t)}_readVersion(t){return t.type!=="literal"?this._error("Expected literal to follow version declaration",t):t.end-t.start!==t.value.length+2?this._error("Version declarations must use single quotes",t):(this._versionCallback(t.value),this._isValidVersion(t.value)?this._readDeclarationPunctuation:this._error(`Detected unsupported version: "${t.value}"`,t))}_readNamedGraphLabel(t){switch(t.type){case"IRI":case"blank":case"prefixed":return this._readSubject(t),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",t)}}_readNamedGraphBlankLabel(t){return t.type!=="]"?this._error("Invalid graph label",t):(this._subject=this._factory.blankNode(),this._readGraph)}_readDeclarationPunctuation(t){return this._sparqlStyle?(this._sparqlStyle=false,this._getStatementReader().call(this,t)):t.type!=="."?this._error("Expected declaration to end with a dot",t):this._getStatementReader()}_readQuantifierList(t){let e;switch(t.type){case"IRI":case"prefixed":if((e=this._readEntity(t,true))!==void 0)break;default:return this._error(`Unexpected ${t.type}`,t)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,e,this.QUANTIFIERS_GRAPH)):this._quantified[e.id]=this._factory[this._quantifier](this._factory.blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(t){return t.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(t))}_getPathReader(t,e){return this._afterPath=t,this._pathPosition=e||(this._predicate===null?"subject":"object"),this._readPath}_getPathEndReader(t,e,i){if(t!==null&&t.type!=="!"&&t.type!=="^")return null;let a=this._getPathReader(e,i);return t===null?a:a.call(this,t)}_readPath(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:let e=this._afterPath,i=this._contextStack,a=i.length&&i[i.length-1];if(a&&a.type==="item"){let r=this._subject;this._restoreContext("item",t),this._emit(this._subject,this.RDF_FIRST,r,this._graph)}return this._afterPath=null,this._pathPosition=null,e.call(this,t)}}_readForwardPath(t){let e,i,a=this._factory.blankNode();if((i=this._readEntity(t))!==void 0)return this._pathPosition==="subject"?(e=this._subject,this._subject=a):this._pathPosition==="predicate"?(e=this._predicate,this._predicate=a):(e=this._object,this._object=a),this._emit(e,i,a,this._graph),this._readPath}_readBackwardPath(t){let e=this._factory.blankNode(),i,a;if((i=this._readEntity(t))!==void 0)return this._pathPosition==="subject"?(a=this._subject,this._subject=e):this._pathPosition==="predicate"?(a=this._predicate,this._predicate=e):(a=this._object,this._object=e),this._emit(e,i,a,this._graph),this._readPath}_readTripleTermTail(t){if(t.type!==")>>")return this._error(`Expected )>> but got ${t.type}`,t);let e=this._createQuad(this._subject,this._predicate,this._object,this._graph,this._inversePredicate);this._restoreContext("<<(",t);let i=this._contextStack,a=i.length&&i[i.length-1];return a&&a.type==="list"?(this._emit(this._subject,this.RDF_FIRST,e,this._graph),this._getContextEndReader()):this._subject===null?(this._subject=e,this._readPredicate):(this._object=e,this._getContextEndReader())}_readReifiedTripleTailOrReifier(t){return t.type==="~"?this._readReifier:this._readReifiedTripleTail(t)}_readReifiedTripleTail(t){if(t.type!==">>")return this._error(`Expected >> but got ${t.type}`,t);this._tripleTerm=null;let e=this._readTripleTerm();this._restoreContext("<<",t);let i=this._contextStack,a=i.length&&i[i.length-1];return a&&a.type==="list"?(this._emit(this._subject,this.RDF_FIRST,e,this._graph),this._getContextEndReader()):this._subject===null?(this._subject=e,this._readPredicateOrReifierTripleEnd):(this._object=e,this._getContextEndReader())}_readPredicateOrReifierTripleEnd(t){return t.type==="."?(this._subject=null,this._readPunctuation(t)):this._readPredicate(t)}_readReifier(t){return this._reifier=this._readEntity(t),this._readReifiedTripleTail}_readReifierInAnnotation(t){return t.type==="IRI"||t.type==="typeIRI"||t.type==="type"||t.type==="prefixed"||t.type==="blank"||t.type==="var"?(this._reifier=this._readEntity(t),this._readAnnotationBlockOrPunctuation):(this._readTripleTerm(),this._subject=null,this._getContextEndReader().call(this,t))}_readAnnotationBlockOrPunctuation(t){if(t.type==="{|")return this._readPunctuation(t);switch(this._readTripleTerm(),this._annotation=false,this._tripleTerm=null,t.type){case";":return this._inversePredicate=false,this._readPredicate;case",":return this._readObject;default:return this._subject=null,this._getContextEndReader().call(this,t)}}_readTripleTerm(){let t=this._contextStack,e=t.length&&t[t.length-1],i=e?e.graph:void 0,a=this._reifier||this._factory.blankNode();return this._reifier=null,this._tripleTerm=this._tripleTerm||this._createQuad(this._subject,this._predicate,this._object,null,this._inversePredicate),this._emit(a,this.RDF_REIFIES,this._tripleTerm,i||this._graph||this.DEFAULTGRAPH),a}_getContextEndReader(){let t=this._contextStack;if(!t.length)return this._readPunctuation;switch(t[t.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<(":return this._readTripleTermTail;case"<<":return this._readReifiedTripleTailOrReifier}}_createQuad(t,e,i,a){return this._factory.quad(t,e,i,a||this.DEFAULTGRAPH)}_createQuadInDirection(t,e,i,a,r){return r?this._factory.quad(i,e,t,a||this.DEFAULTGRAPH):this._factory.quad(t,e,i,a||this.DEFAULTGRAPH)}_emitInDirection(t,e,i,a,r){this._callback(null,this._createQuad(t,e,i,a,r))}_emitCurrentInDirection(t,e,i,a){this._callback(null,this._createQuad(t,e,i,a,this._inversePredicate))}_emit(t,e,i,a){this._callback(null,this._factory.quad(t,e,i,a||this.DEFAULTGRAPH))}_error(t,e){let i=` on line ${e.line}.`;t.length+i.length>200&&(t=`${t.slice(0,199-i.length)}\u2026`);let a=new Error(`${t}${i}`);a.context={token:e,line:e.line,previousToken:this._lexer.previousToken},this._callback(a),this._callback=bb}_resolveIRI(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)?t:this._resolveRelativeIRI(t)}_resolveRelativeIRI(t){if(!t.length)return this._base;switch(t[0]){case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return(t[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return/^[^/:]*:/.test(t)?null:this._removeDotSegments(this._basePath+t)}}_removeDotSegments(t){if(!/(^|\/)\.\.?($|[/#?])/.test(t))return t;let e=t.length,i="",a=-1,r=-1,o=0,s="/";for(;a<e;){switch(s){case":":if(r<0&&t[++a]==="/"&&t[++a]==="/")for(;(r=a+1)<e&&t[r]!=="/";)a=r;break;case"?":case"#":a=e;break;case"/":if(t[a+1]===".")switch(s=t[++a+1],s){case"/":i+=t.substring(o,a-1),o=a+1;break;case void 0:case"?":case"#":return i+t.substring(o,a)+t.substr(a+1);case".":if(s=t[++a+1],s===void 0||s==="/"||s==="?"||s==="#"){if(i+=t.substring(o,a-2),(o=i.lastIndexOf("/"))>=r&&(i=i.substr(0,o)),s!=="/")return`${i}/${t.substr(a+1)}`;o=a+1}}}s=t[++a]}return i+t.substring(o)}parse(t,e,i,a){let r,o,s,l;if(e&&(e.onQuad||e.onPrefix||e.onComment||e.onVersion)?(r=e.onQuad,o=e.onPrefix,s=e.onComment,l=e.onVersion):(r=e,o=i,l=a),this._readCallback=this._readBeforeTopContext,this._sparqlStyle=false,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${d4++}_`,this._n3Mode&&this._implicitEmptyPrefix&&this._base&&(this._prefixes[""]=this._resolveIRI("#")),this._prefixCallback=o||bb,this._versionCallback=l||bb,this._inversePredicate=false,this._expectOf=false,this._quantified=Object.create(null),this._emptyFormula=false,!r){let d=[],m;if(this._callback=(b,u)=>{b?m=b:u&&d.push(u)},this._lexer.tokenize(t).every(b=>this._readCallback=this._readCallback(b)),m)throw m;return d}let c=(d,m)=>{d!==null?(this._callback(d),this._callback=bb):this._readCallback&&(this._readCallback=this._readCallback(m))};s&&(this._lexer.comments=true,c=(d,m)=>{d!==null?(this._callback(d),this._callback=bb):this._readCallback&&(m.type==="comment"?s(m.value):this._readCallback=this._readCallback(m))}),this._callback=r,this._lexer.tokenize(t,c)}};function bb(){}function m4(n,t){n._factory=t,n.DEFAULTGRAPH=t.defaultGraph(),n.RDF_FIRST=t.namedNode(ya.rdf.first),n.RDF_REST=t.namedNode(ya.rdf.rest),n.RDF_NIL=t.namedNode(ya.rdf.nil),n.RDF_REIFIES=t.namedNode(ya.rdf.reifies),n.N3_FORALL=t.namedNode(ya.r.forAll),n.N3_FORSOME=t.namedNode(ya.r.forSome),n.N3_TRUE=t.literal("true",t.namedNode(ya.xsd.boolean)),n.ABBREVIATIONS={a:t.namedNode(ya.rdf.type),"=":t.namedNode(ya.owl.sameAs),">":t.namedNode(ya.log.implies),"<":t.namedNode(ya.log.isImpliedBy)},n.QUANTIFIERS_GRAPH=t.namedNode("urn:n3:quantifiers")}xc.SUPPORTED_VERSIONS=["1.2","1.2-basic","1.1"];m4(xc.prototype,El);function JE(n){return!!n&&n.termType==="DefaultGraph"}function Eh(n){return n.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}var xZ=/^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i;var CZ=/^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/;var u4="./";var SZ="../";var qE="?";var p4="#";var yb=class n{constructor(t){this.base=t,this._baseLength=0,this._baseMatcher=null,this._pathReplacements=new Array(t.length+1)}static supports(t){return!xZ.test(t)}_getBaseMatcher(){if(this._baseMatcher)return this._baseMatcher;if(!n.supports(this.base))return this._baseMatcher=/.^/;let t=/^[^:]*:\/*/.exec(this.base)[0],e=["^",Eh(t)],i=[],a=[],r=/[^/?#]*([/?#])/y,o,s=0,l=0,c=r.lastIndex=t.length;for(;!s&&!l&&(o=r.exec(this.base));)o[1]===p4?l=r.lastIndex-1:(e.push(Eh(o[0]),"(?:"),i.push(")?"),o[1]!==qE?a.push(c=r.lastIndex):(s=c=r.lastIndex,l=this.base.indexOf(p4,s),this._pathReplacements[s]=qE));for(let d=0;d<a.length;d++)this._pathReplacements[a[d]]=SZ.repeat(a.length-d-1);return this._pathReplacements[a[a.length-1]]=u4,this._baseLength=l>0?l:this.base.length,e.push(Eh(this.base.substring(c,this._baseLength)),s?"(?:#|$)":"(?:[?#]|$)"),this._baseMatcher=new RegExp([...e,...i].join(""))}toRelative(t){let e=this._getBaseMatcher().exec(t);if(!e)return t;let i=e[0].length;if(i===this._baseLength&&i===t.length)return"";let a=this._pathReplacements[i];if(a){let r=t.substring(i);return a!==qE&&!CZ.test(r)?t:a===u4&&/^[^?#]/.test(r)?r:a+r}return t.substring(i-1)}};var vb=El.defaultGraph();var{rdf:wZ,xsd:Th}=ya;var h4=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/;var f4=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g;var NZ={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};var Cu=class extends qo{equals(t){return t===this}};var Su=class{constructor(t,e){if(this._prefixRegex=/$0^/,this._hasPrefixes=false,t&&typeof t.write!="function"&&(e=t,t=null),e=e||{},this._lists=e.lists,t)this._outputStream=t,this._endStream=e.end===void 0?true:!!e.end;else{let i="";this._outputStream={write(a,r,o){i+=a,o&&o()},end:a=>{a&&a(null,i)}},this._endStream=true}this._subject=null,/triple|quad/i.test(e.format)?(this._lineMode=true,this._writeQuad=this._writeQuadLine):(this._lineMode=false,this._graph=vb,this._prefixIRIs=Object.create(null),e.baseIRI&&(this._baseIri=new yb(e.baseIRI),e.writeBase&&this._write(`@base <${e.baseIRI}>.
|
|
309
309
|
`)),e.prefixes&&this.addPrefixes(e.prefixes))}get _inDefaultGraph(){return vb.equals(this._graph)}_write(t,e){this._outputStream.write(t,"utf8",e)}_writeQuad(t,e,i,a,r){try{a!==this._graph&&(!a.equals(this._graph)||a.termType!==this._graph.termType)&&(this._write((this._subject===null?"":this._inDefaultGraph?`.
|
|
310
310
|
`:`
|
|
@@ -6305,6 +6305,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6305
6305
|
position: absolute;
|
|
6306
6306
|
pointer-events: none;
|
|
6307
6307
|
}
|
|
6308
|
-
`],encapsulation:2})})()}return n})();var Yle=new be("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=N(st);return()=>go(n)}});var af=new WeakMap;var Gle=(()=>{class n{_canHaveBackdrop;_element=N(Ue);_viewContainerRef=N(Qi);_menuItemInstance=N(ey,{optional:true,self:true});_dir=N(ta,{optional:true});_focusMonitor=N(Tr);_ngZone=N($e);_injector=N(st);_scrollStrategy=N(Yle);_changeDetectorRef=N(Vt);_animationsDisabled=ei();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=wt.EMPTY;_menuCloseSubscription=wt.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let i=N(wk,{optional:true});this._parentMaterialMenu=i instanceof rf?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&af.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let a=af.get(i);af.set(i,this),a&&a!==this&&a._closeMenu();let r=this._createOverlay(i),o=r.getConfig(),s=o.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?o.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:o.hasBackdrop=i.hasBackdrop??false,r.hasAttached()||(r.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),i instanceof rf&&(i._setIsOpen(true),i._directDescendantItems.changes.pipe(Tn(i.close)).subscribe(()=>{s.withLockedPosition(false).reapplyLastPosition(),s.withLockedPosition(true)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,a=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),a instanceof rf&&this._ownsMenu(a)?(this._pendingRemoval=a._animationDone.pipe(aa(1)).subscribe(()=>{i.detach(),af.has(a)||a.lazyContent?.detach()}),a._setIsOpen(false)):(i.detach(),a?.lazyContent?.detach()),a&&this._ownsMenu(a)&&af.delete(a),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Ns(this._injector,i),this._overlayRef.keydownEvents().subscribe(a=>{this._menu instanceof rf&&this._menu._handleKeydown(a)})}return this._overlayRef}_getOverlayConfig(e){return new Ss({positionStrategy:ws(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(a=>{this._ngZone.run(()=>{let r=a.connectionPair.overlayX==="start"?"after":"before",o=a.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,o)})})}_setPosition(e,i){let[a,r]=e.xPosition==="before"?["end","start"]:["start","end"],[o,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[o,s],[d,m]=[a,r],b=0;if(this._triggersSubmenu()){if(m=a=e.xPosition==="before"?"start":"end",r=d=a==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let u=this._parentMaterialMenu.items.first;this._parentInnerPadding=u?u._getHostElement().offsetTop:0}b=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=o==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:a,originY:l,overlayX:d,overlayY:o,offsetY:b},{originX:r,originY:l,overlayX:m,overlayY:o,offsetY:b},{originX:a,originY:c,overlayX:d,overlayY:s,offsetY:-b},{originX:r,originY:c,overlayX:m,overlayY:s,offsetY:-b}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:Kt(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe($n(o=>this._menuOpen&&o!==this._menuItemInstance)):Kt();return ni(e,a,r,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Lo(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return af.get(e)===this}_triggerIsAriaDisabled(){return Oe(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(i){ig()};static \u0275dir=Be({type:n})}return n})();var W5=(()=>{class n extends Gle{_cleanupTouchstart;_hoverSubscription=wt.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=true;menuOpened=new Ae;onMenuOpen=this.menuOpened;menuClosed=new Ae;onMenuClose=this.menuClosed;constructor(){super(true);let e=N(pn);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{eu(i)||(this._openedBy="touch")},{passive:true})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Zm(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false))}))}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Be({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,a){i&1&&ce("click",function(o){return a._handleClick(o)})("mousedown",function(o){return a._handleMousedown(o)})("keydown",function(o){return a._handleKeydown(o)}),i&2&&re("aria-haspopup",a.menu?"menu":null)("aria-expanded",a.menuOpen)("aria-controls",a.menuOpen?a.menu?.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Ke]})}return n})();var J5=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Xa,Is,Ot,fo]})}return n})();var Wle=(n,t)=>t.id;function Jle(n,t){if(n&1){let e=je();T(0,"button",5),ce("click",function(){let a=ve(e).$implicit,r=A();return _e(r.request(a.id))}),ne(1,"mat-icon",6),G(2),U(3,"translate"),k()}if(n&2){let e=t.$implicit;re("data-download",e.id),_(),B("cedarIcon",e.icon),_(),Ve(" ",Q(3,3,e.labelKey)," ")}}var q5=(()=>{class n{constructor(){this.downloadRequested=new Ae,this.showInstanceDownloads=true}get items(){return this.showInstanceDownloads?q1:_L}request(e){this.downloadRequested.emit(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=fe({type:n,selectors:[["app-download-menu"]],inputs:{showInstanceDownloads:"showInstanceDownloads"},outputs:{downloadRequested:"downloadRequested"},standalone:false,decls:8,vars:8,consts:[["menu","matMenu"],["mat-icon-button","",1,"download-trigger",3,"matMenuTriggerFor","matTooltip"],["cedarIcon","download"],[1,"cee-download-menu"],["mat-menu-item","","type","button"],["mat-menu-item","","type","button",3,"click"],[3,"cedarIcon"]],template:function(i,a){if(i&1&&(T(0,"button",1),U(1,"translate"),U(2,"translate"),ne(3,"mat-icon",2),k(),T(4,"mat-menu",3,0),Mt(6,Jle,4,5,"button",4,Wle),k()),i&2){let r=Qt(5);B("matTooltip",Ct(Q(1,4,"Generic.Download")))("matMenuTriggerFor",r),re("aria-label",Q(2,6,"Generic.Download")),_(6),Dt(a.items)}},dependencies:[Gt,rf,ey,W5,jt,Jt,wn,pt],styles:['@charset "UTF-8";'],changeDetection:1})}}return n})();var Kle=n=>({version:n});function Xle(n,t){if(n&1&&(T(0,"p",5),G(1),k()),n&2){let e=A(3);_(),ge(e.dataContext.templateRepresentation?.labelInfo?.description)}}function Qle(n,t){if(n&1&&(T(0,"span"),G(1),U(2,"translate"),k()),n&2){let e=A(4);_(),ge(it(2,1,"Generic.TemplateVersion",It(4,Kle,e.templateVersion)))}}function Zle(n,t){if(n&1&&(T(0,"span"),G(1),U(2,"translate"),k()),n&2){let e=A(4);_(),ge(Q(2,1,e.templateStatus==="published"?"Generic.StatusPublished":"Generic.StatusDraft"))}}function ece(n,t){if(n&1&&(T(0,"div",12),L(1,Qle,3,6,"span"),L(2,Zle,3,3,"span"),k()),n&2){let e=A(3);_(),V(e.templateVersion?1:-1),_(),V(e.templateStatus?2:-1)}}function tce(n,t){if(n&1&&(T(0,"a",6),U(1,"translate"),ne(2,"div",7),T(3,"span",8),G(4,"CEE"),k(),T(5,"span",9),G(6),k()(),T(7,"div",10)(8,"h1",11),G(9),k(),L(10,Xle,2,1,"p",5),k(),L(11,ece,3,2,"div",12)),n&2){let e=A(2);re("aria-label",Q(1,6,"Generic.CeeOnNpm")),_(5),B("title",e.ceeVersion),_(),ge(e.ceeVersion),_(3),ge(e.dataContext.templateRepresentation?.labelInfo?.label),_(),V(e.dataContext.templateRepresentation?.labelInfo?.description&&e.showTemplateDescription?10:-1),_(),V(e.templateVersion||e.templateStatus?11:-1)}}function nce(n,t){if(n&1&&(T(0,"div",13),ne(1,"app-cedar-static-page-break",16),k()),n&2){let e=A(3);_(),B("dataContext",e.dataContext)("pageBreakPaginatorService",e.pageBreakPaginatorService)}}function ice(n,t){if(n&1){let e=je();T(0,"button",17),U(1,"translate"),U(2,"translate"),ce("click",function(){ve(e);let a=A(3);return _e(a.openAll())}),ne(3,"mat-icon",18),k(),T(4,"button",17),U(5,"translate"),U(6,"translate"),ce("click",function(){ve(e);let a=A(3);return _e(a.closeAll())}),ne(7,"mat-icon",19),k()}n&2&&(B("matTooltip",Ct(Q(1,6,"Generic.ExpandAll"))),re("aria-label",Q(2,8,"Generic.ExpandAll")),_(4),B("matTooltip",Ct(Q(5,10,"Generic.CollapseAll"))),re("aria-label",Q(6,12,"Generic.CollapseAll")))}function ace(n,t){if(n&1){let e=je();T(0,"app-download-menu",20),ce("downloadRequested",function(a){ve(e);let r=A(3);return _e(r.download(a))}),k()}if(n&2){let e=A(3);B("showInstanceDownloads",!e.declaredValuesOnly)}}function rce(n,t){if(n&1&&(T(0,"div",3),L(1,nce,2,2,"div",13),T(2,"div",14),L(3,ice,8,14),L(4,ace,1,1,"app-download-menu",15),k()()),n&2){let e=A(2);_(),V(e.dataContext.templateRepresentation?.hasPageBreaks()?1:-1),_(2),V(e.showExpandCollapseAll?3:-1),_(),V(e.showDownloadMenu?4:-1)}}function oce(n,t){if(n&1&&(T(0,"p",5),G(1),k()),n&2){let e=A(2);_(),ge(e.dataContext.templateRepresentation?.labelInfo?.description)}}function sce(n,t){if(n&1&&ne(0,"app-cedar-component-renderer",21),n&2){let e=A().$implicit,i=A(2);B("componentToRender",e)("handlerContext",i.handlerContext)("allExpanded",i.allExpanded)("pageBreakPaginatorService",i.pageBreakPaginatorService)}}function lce(n,t){if(n&1&&L(0,sce,1,4,"app-cedar-component-renderer",21),n&2){let e=t.$implicit;V(e.hidden?-1:0)}}function cce(n,t){if(n&1&&(T(0,"mat-card",1)(1,"div",2),L(2,tce,12,8),L(3,rce,5,3,"div",3),k(),T(4,"mat-card-content",4),L(5,oce,2,1,"p",5),Mt(6,lce,1,1,null,null,Vn),k()()),n&2){let e=A();we("cee-read-only",e.readOnlyMode)("cee-preview",e.previewMode)("cee-declared-values",e.declaredValuesOnly),_(),we("has-actions",e.dataContext.templateRepresentation?.hasPageBreaks()||e.showExpandCollapseAll||e.showDownloadMenu)("template-header-paged",e.dataContext.templateRepresentation?.hasPageBreaks()),_(),V(e.previewMode?-1:2),_(),V(e.dataContext.templateRepresentation?.hasPageBreaks()||e.showExpandCollapseAll||e.showDownloadMenu?3:-1),_(2),V(e.previewMode&&e.showTemplateDescription&&e.dataContext.templateRepresentation?.labelInfo?.description?5:-1),_(),Dt(e.pageBreakPaginatorService.getCurrentPage())}}var K5=(()=>{class n{static{this.INNER_VERSION="2026-10-08 13:28"}get declaredValuesOnly(){return this.readOnlyMode&&this.handlerContext!==null&&!this.handlerContext.instanceSupplied}get templateVersion(){return this.parsedTemplate()?.pav_version?.getValue()??null}get templateStatus(){return this.parsedTemplate()?.bibo_status?.getYamlValue()??null}parsedTemplate(){let e=this.dataContext?.templateRepresentation;return e instanceof Bn?e.parsed:null}constructor(e,i,a,r,o,s,l=null){this.activeComponentRegistry=e,this.externalAuthorityLookupService=i,this.messageHandlerService=a,this.templateTrustService=r,this.userPreferencesService=o,this.renderScheduler=s,this.fieldReveal=l,this.dataContext=null,this.handlerContext=null,this.pageBreakPaginatorService=null,this.showDownloadMenu=false,this.previewMode=false,this.showExpandCollapseAll=true,this.showTemplateDescription=false,this.readOnlyMode=false,this.bridgeBaseUrl=null,this.allExpanded=true,this.widgetConfig=new Mh(this.externalAuthorityLookupService,this.templateTrustService,this.userPreferencesService),this.ceeVersion=qg.version,this.messageHandlerService.trace("CEDAR Embeddable Editor "+n.INNER_VERSION)}download(e){return nt(this,null,function*(){let{dataContext:i}=this;if(i===null)return;let a=C4(e,i),r=Kg.find(s=>s.id===e);if(r===void 0)return;this.messageHandlerService.trace("CEDAR Embeddable Editor: downloading "+a);let o;try{o=yield x4(e,i)}catch(s){this.messageHandlerService.error("CEDAR Embeddable Editor: could not produce "+a+": "+(s instanceof Error?s.message:String(s)));return}S4(a,r.mediaType,o)})}ngOnDestroy(){this.activeComponentRegistry.clear()}set dataContextObject(e){this.dataContext=e}set handlerContextObject(e){this.handlerContext=e,this.pageBreakPaginatorService=e===null?null:new cx(this.activeComponentRegistry,e,this.renderScheduler);let i=e?.dataContext.templateRepresentation;i!=null&&this.pageBreakPaginatorService?.reset(i.pageBreakChildren),this.fieldReveal?.usePaginator(this.pageBreakPaginatorService)}set config(e){if(e!=null){this.previewMode=Gr(e,Rn.previewMode,this.previewMode),this.showDownloadMenu=Gr(e,Rn.showDownloadMenu,this.showDownloadMenu),this.showExpandCollapseAll=Gr(e,Rn.showExpandCollapseAll,this.showExpandCollapseAll),this.showTemplateDescription=Gr(e,Rn.showTemplateDescription,this.showTemplateDescription);let i=this.widgetConfig.apply(e,this.readOnlyMode);this.bridgeBaseUrl=i.bridgeBaseUrl,this.readOnlyMode=i.readOnlyMode}}set artifactRevision(e){e<=0||this.handlerContext===null||this.dataContext===null||this.scheduleRender(`artifact revision ${e}`)}scheduleRender(e){this.renderScheduler.schedule(()=>this.syncRenderedInstance()).then(i=>{i&&this.messageHandlerService.ready()}).catch(i=>this.reportArtifactError(e,i))}reportArtifactError(e,i){let a=i instanceof Error?i.message:String(i);this.messageHandlerService.error(`CEDAR Embeddable Editor: "${e}" could not be loaded: ${a}`)}syncRenderedInstance(){let e=this.dataContext?.templateRepresentation,i=this.handlerContext;if(!(e==null||e.children==null||i==null))for(let a of e.children)this.activeComponentRegistry.updateViewToModel(a,i)}dataAvailableForRender(){return this.dataContext!=null&&this.dataContext.templateRepresentation!=null&&!(this.dataContext.templateRepresentation instanceof gl)&&this.handlerContext!=null&&this.handlerContext.multiInstanceObjectService.isInitialized()}openAll(){this.allExpanded=true}closeAll(){this.allExpanded=false}static{this.\u0275fac=function(i){return new(i||n)(X(bt),X(Bi),X(Di),X(Ud),X(ea),X(zo),X(_l,8))}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-embeddable-metadata-editor"]],inputs:{dataContextObject:"dataContextObject",handlerContextObject:"handlerContextObject",config:"config",artifactRevision:"artifactRevision"},standalone:false,decls:1,vars:1,consts:[["appearance","outlined",1,"template-card",3,"cee-read-only","cee-preview","cee-declared-values"],["appearance","outlined",1,"template-card"],[1,"template-header"],[1,"template-actions"],[1,"template-content"],[1,"template-description"],["href","https://www.npmjs.com/package/cedar-embeddable-editor","target","_blank","rel","noreferrer",1,"logo-block"],["mat-card-avatar","",1,"header-image"],[1,"cee-name"],[1,"cee-version",3,"title"],[1,"template-title-block"],[1,"template-label"],[1,"template-provenance"],[1,"page-break-control"],[1,"expand-buttons"],[3,"showInstanceDownloads"],[3,"dataContext","pageBreakPaginatorService"],["mat-icon-button","",1,"expand-trigger",3,"click","matTooltip"],["cedarIcon","expand-all"],["cedarIcon","collapse-all"],[3,"downloadRequested","showInstanceDownloads"],[3,"componentToRender","handlerContext","allExpanded","pageBreakPaginatorService"]],template:function(i,a){i&1&&L(0,cce,8,13,"mat-card",0),i&2&&V(a.dataAvailableForRender()&&a.dataContext&&a.handlerContext&&a.pageBreakPaginatorService?0:-1)},dependencies:[Gt,Dh,A4,Hd,jt,Jt,wn,G8,$5,q5,pt],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;min-width:0;color:#000000de}.header-image[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF62lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowNzgwMTE3NDA3MjA2ODExODIyQUM0RjczN0MxMjg5MiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowOEI1MjE2ODdCN0ExMUU1ODQ1MURCMzZENjcwOTVBMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowZWY3NDYzMS1hNDQxLTRmNGYtYjMwNy0wMmFhMDg3ZWYwYWUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDctMjFUMTQ6MTU6MjgtMDc6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTA3LTIxVDE0OjE4OjI1LTA3OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTA3LTIxVDE0OjE4OjI1LTA3OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjQ4OTMzNDgwRDIwNjgxMTgyMkFDNEY3MzdDMTI4OTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDc4MDExNzQwNzIwNjgxMTgyMkFDNEY3MzdDMTI4OTIiLz4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MGVmNzQ2MzEtYTQ0MS00ZjRmLWIzMDctMDJhYTA4N2VmMGFlIiBzdEV2dDp3aGVuPSIyMDIwLTA3LTIxVDE0OjE4OjI1LTA3OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fOOitAAAJ8UlEQVR4nO2ceXBdZRnGf9mTNi1Jm6aphWlTGtrakqIg1LEttlApiMy41HVUlBEFxek4Mg6MywzgoKK4DTNMccFloCoIo1KqlJZYcIGKnVbtZjVJS5c0pQtpStObvP7xfLcnCffmLud856bOfWbO3O0s333u+73L837nlpgZReSP0kIP4GxHkcCQKBIYEkUCQ6JIYEgUCQyJIoEhMZoIvBWY6Z6XFHIguWC0ELgM+AbwAHAlcNZk94UmcAwwA/ipe/1WYEXBRpMHCk3g64GHgCb3+jRQCXwZkTvqUQgCk9ecBOwBqoFX3HsGXA2cB/QCE2IfXY4oBIFlwFeBduBHKGDUus8qgcnu9UqgP/7h5YbyAlyzCegE9gHXpNnn/UArstBHYxpXXiiEBR4CmoG/oWmaCt3AeoJ0pinNfgVH3ASOA64F5gLvQ/4vFbqBVYjgPWhaj0qUxCiolqHg8CtgDlBFehfSA3Qha/0ZcJ/b/5T/YeaGOC2wCvgoUOO2kfxvLRrbw8AA8DWCQDMc01BELwjitECA8Sjve3uG/YzA/x0FDgC3AE/z2irlKeQalhGkQ7Ehbh84H/m3TBhcC49F6c24YftUAV8CFqMaegVQF36IuSFOAkuA1wF9wGrgv1ke9yrKFzcSWF89qmLegfzkMeBDqHqpjG7ImRFnHmgo99uKgkhFlsftR0FlGQoiLwOXAh9AxJ1C1jgVuB74sTsmFsTlA9+I/Ng+4G0osjZmeexxVJGUAzvRtJ0G3IVq524U4RuALcAnUKI+QAyqTlxTeCHwJHA3sAh9uWwxHk3ZQ8AlwBHgvSjNeQWRV4GscQ0KNlcTkyQWZxT+NfDOPI7bg5Lqu5AV/hOJDIeRZSYDTpXbdzvyl2vdPl4RZxD5HvAEsqBcfrVS4CXgXcBVwINo2pYTkGdua0CR+DPIbXiHbwKTye8daJrdAyTITbKfiqLwo8DtwDrgz2haJ1GConU1CjZj3Wvv8E3gpUhtfgi4ERERpmroRGQ9g8Y++IcoRVP6hPv8JDAbOCfE9TLCtw+sQJbwAvBd5JO+BczL41y/RZH8GPKB16FAMpzEBKpeqlDg+j4KQF4QRxBZDLS55y8hHzU2j/PsBw6iIHIRir7DB29oGtcA30GNKq/wNYXHuHMny6wSlJ9NJT/yAHYA9wI/AP6AauApw/ZJqtt/QnXzBDy3SH1VIgkUceuQlncUVR/54jSahv3AF9DUhdSBohu4ENiE0p+VyB96gS8CZ6FffoF7HVaWN5RQrwL2AruATwHbSF0SVgEvorr4fOAfIa+fFr4InI9ytqhQiQLPvYi8ixEprYjQZEUC+uEqUTTehEfywJ8P/Dnyf3+J6HyG6uCDwFuA3cCnUUTvYmiqUoKschfwOPBBPMpcPqLwZCQ1bQJaUFS8AfgY0Tr0x4DnEam3IqvrQ0YxgISFucAvURnoJd3wMYUnokE3oKnV5t4brDKHQQL4HfJ/45BvrCXo8A2496ejXsr9EVwzLXxM4e1Iq1uGEt9rgTdHeK0EIqkFBYqTiMTBCk8/ksFmAI8AN5Nf8p4RPixwPCrXFuKnHq1GQWqnu86FKID0EwSS48AFaKXXFkTuETwEFB8EliPybvR0fpDVrUXpyt9Rsl5PkO+Voym91219wL98DMTHFO5GwqfPdkEN8GHgcuRXS0kdJMpQhH4GWWDk8PEly4A/EgSNThSZF5B9HyQTGpCktQHphNNJ3Qc5iSyzBdXhnRFd/wx8WGAlWnnVhaLhLNT/iDKFOYL830eAHyK9MVXdW4qMpJ6gPRoporbASahrVgEsIf1qgrCYjhpLzwGfRZ25wwwlMIGmei0KNFsJcsXIEHUifQ1avrEapQ1zURozhmgssAsRthxN4ZPIChcQiK1JNAI/QbOhHOmCiQjGMARRT+E1qGP2IIrE81HaEdX03Y/0wM1oeUgFEmtrkfU3ocjcj8htRPXyVXha4RWVBS5BpVozKvRrojhpBhxG0tbFaDp3IEJno1VgxxCBTagmvgcJsfOQqrM5ikFEZYF70cAfR0JCHOhEBA2giqQGWWc7Eg/GIH98EM2Etai0q0btz0gQpQ+cg3zeSqSYZINe4PdojUuuAe0UkqySC9EPI7X6k0i9PhdN6zbkQppRg+uOHK8zMswsqu18M3vKzLrMbL0JCRuK42b2qpm9aGYnzOw2d+zzFg5PmtlNZtbuXq83s5vN7G4zW2xmtWZWE+F3PbP5kLNq0WKgx5CFtANXIOd+G0qwN6JqZSuS+5cgS0yVaPe7/S4a9N4TKKAsQrXuDuTjPoem71q3eYfPrlwlIvNl5GvPYeRy6mlgqdunfthnD6PlcDORULAB9ZprgcuQ3x3eYIoFPuvVPkQeBGrISEgqKe9GEX058mE70bqaR1A1MZ6gbOtBaw4HCBSZWFGI+0TSIZn6/Bslx61uW0PwQ5xwGwSuYqY7tiA35YwmAk+7x+Q9clvcNhjVKHWZjcqzBtRvrgduQj2YUtSJq0N+tcPnoHMlcBpKF3o8jCWZk45UtVSiIHQaKd+tBGrz7cB/UIm3GxG9HK1Yzab+rUOu4HhOo84hZD9gZtt8pAJu2+pSkAvyPH6Wma0ws6ZB71WZWVkO52g3sxtyuW62O15vAZojIqzRzC5zz1vNrCckgWG3hYO+47xsj8smjVmKUowkDrj3tuVk6kHDuwlVLJPQeukXgK8Q9G6/jta+lKIcchJastuBtL8Som9RLnLXTN56thl4QzYHZkPgKuSoh+ObaKVAtivia1CjpxetG7wEpSiXI6e/A8lh9ciX7UN1bDlqj1a7z24h9x8vHVpQTznV9zsXqdgjIhsCvwjcmeazXuSkfwM8S/q7L89cj8B6JiOCShE5vagN+XkkmCaQYLAaWd95qN5uQ6lOvqhHUtt7ULqUDnVI0RkR2RBYj9KBN2XY7xC6RXUdWl4Wpgs2BUXWXWgah0GZO9dC1KteymvvehqOO9HfDmREtqXcBCQV5XLfbgf68rvR9NxBMDV9rJ5vQusPZ6Dkeo573oyqlWyxDhGdFXKphRvR35Jcl8NgUuEEstaDSKLvQVMl4Z73oWneT9DZK3OP1aicq0C19XiUTE9x4wvbNPo2EiSyRj5iwseRqjIz045nEZ5Dd0BtyPXAMGrMCrT64Mp8T1Bg9AO/QIuPNuZ7kijkrFbkM65AKclo/r+XAyjQtSG9MHSjPWo9cCJKShehqD0dpR+FwCmC5cB/RaQ9SyBaRALftzmUoIS0BUXFFhQVpyKn34iU6nzRQxCQOlCU34ki/3Y83h+SRNy3/A+5NkqPJiBtbyLBH1Ekb5NIRuEE6vMm70Q6gloBR8ki2fWJQhL4f4FC//nYWY8igSFRJDAkigSGRJHAkCgSGBJFAkOiSGBI/A/JNTAwdVQ1SgAAAABJRU5ErkJggg==);background-size:cover;background-color:#173f3e;margin-bottom:0}.template-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(192px,1fr) auto;grid-template-areas:"logo title provenance"}.template-header.has-actions[_ngcontent-%COMP%]{grid-template-areas:"logo title provenance" "actions actions actions"}.template-header[_ngcontent-%COMP%]{align-items:center;gap:8px 16px;min-width:0;padding:8px clamp(12px,3cqi,32px);background:#fff;border-bottom:1px solid #d7e0df}.logo-block[_ngcontent-%COMP%]{grid-area:logo;align-self:start;display:grid;grid-template-columns:40px 72px;grid-template-rows:1fr 1fr;gap:2px;column-gap:8px;min-width:0;color:inherit;text-decoration:none}.header-image[_ngcontent-%COMP%]{grid-row:1/span 2}.cee-name[_ngcontent-%COMP%], .cee-version[_ngcontent-%COMP%]{min-width:0;font-size:12px;line-height:1}.cee-name[_ngcontent-%COMP%]{align-self:end;font-weight:var(--%NS%cedar-font-weight-medium, 500);color:#000000de}.cee-version[_ngcontent-%COMP%]{align-self:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555}.template-title-block[_ngcontent-%COMP%]{grid-area:title;min-width:0}.template-label[_ngcontent-%COMP%]{margin:0;color:#173f3e;font-size:clamp(20px,3cqi,26px);font-weight:var(--%NS%cedar-font-weight-medium, 500);line-height:1.25;overflow-wrap:anywhere}.template-description[_ngcontent-%COMP%]{max-width:70ch;margin:8px 0 0;color:#555;font-size:14px;line-height:21px}.template-provenance[_ngcontent-%COMP%]{grid-area:provenance;display:flex;align-self:start;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;min-width:0;color:#555;font-size:12px;line-height:18px;white-space:nowrap}.template-actions[_ngcontent-%COMP%]{grid-area:actions;display:flex;min-width:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 16px}.page-break-control[_ngcontent-%COMP%]{min-width:0}.expand-buttons[_ngcontent-%COMP%]{--%NS%_cedar-height: 30px;display:flex;align-items:center;justify-content:flex-end;gap:2px;margin-inline-end:-4px}.template-content[_ngcontent-%COMP%]{display:grid;gap:0;min-width:0;padding:0 clamp(12px,3cqi,32px) 24px}@container cee (max-width: 1100px){.template-header[_ngcontent-%COMP%]{grid-template-columns:auto minmax(0,1fr) auto}.template-header-paged[_ngcontent-%COMP%]{row-gap:8px;padding-block:12px}.template-actions[_ngcontent-%COMP%]{border-top:1px solid #d7e0df;padding-top:12px}.page-break-control[_ngcontent-%COMP%]{margin-right:auto}.template-header-paged[_ngcontent-%COMP%] .template-actions[_ngcontent-%COMP%]{padding-top:8px}}@container cee (max-width: 520px){.template-header[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"logo provenance" "title title"}.template-header.has-actions[_ngcontent-%COMP%]{grid-template-areas:"logo provenance" "title title" "actions actions"}.template-actions[_ngcontent-%COMP%]{width:100%;align-items:stretch;flex-direction:column}.page-break-control[_ngcontent-%COMP%]{margin-right:0}}.cee-preview[_ngcontent-%COMP%] .template-header[_ngcontent-%COMP%]:not(.has-actions){display:none}.cee-preview[_ngcontent-%COMP%] .template-header.has-actions[_ngcontent-%COMP%]{display:flex;padding:0;border:0}.cee-preview[_ngcontent-%COMP%] .template-header.has-actions[_ngcontent-%COMP%] .template-actions[_ngcontent-%COMP%]{flex:1 1 auto;padding:0;border:0}.cee-preview[_ngcontent-%COMP%] .template-content[_ngcontent-%COMP%]{padding:0}'],changeDetection:1})}}return n})();var oS=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-font-registrar"]],standalone:false,decls:0,vars:0,template:function(i,a){},encapsulation:2,changeDetection:1})}}return n})();function mce(n,t){if(n&1&&ne(0,"app-cedar-embeddable-metadata-editor",1),n&2){let e=A();B("config",e.innerConfig)("dataContextObject",e.dataContext)("handlerContextObject",e.handlerContext)("artifactRevision",e.artifactRevision)}}var Au=(()=>{class n{constructor(e,i,a,r,o,s,l){this.wrapper=e,this.controlledFieldDataService=i,this.messageHandlerService=a,this.activeComponentRegistry=r,this.translateService=o,this.globalSettingsContextService=s,this.fieldReveal=l,this.initialized=false,this.lastPublishedState="",this.artifactRevision=0,this.revealLocation=(c,d={})=>this.editorDataReady()?this.fieldReveal.reveal(this.handlerContext,c,d):Promise.resolve(false),this.artifacts=new rx(this.messageHandlerService),this.configuration=new mh(this.controlledFieldDataService,this.messageHandlerService,this.translateService,this.globalSettingsContextService),this.dataContext=this.artifacts.state.dataContext,this.handlerContext=this.artifacts.state.handlerContext}get innerConfig(){return this.configuration.config}get templateJson(){return this.artifacts.state.templateJson}get instanceJson(){return this.artifacts.state.instanceJson}get templateAndInstanceJson(){return this.artifacts.state.templateAndInstanceJson}suppressNativeChange(e){e.stopPropagation()}ngOnInit(){this.initialized=true,this.doInitialize()}get reveal(){return this.revealLocation}get currentMetadata(){return this.artifacts.instanceInputRejected?{}:_s.toJson(this.handlerContext.dataContext.instanceFullData,this.parsedTemplate())}get currentMetadataYaml(){return this.artifacts.instanceInputRejected?"":_s.toYaml(this.handlerContext.dataContext.instanceFullData,this.parsedTemplate())}parsedTemplate(){let e=this.handlerContext?.dataContext?.templateRepresentation;return e instanceof Bn?e.parsed:null}set templateObject(e){e===null||!this.artifacts.acceptTemplate(e)||this.installArtifactState()}set instanceObject(e){e===null||!this.artifacts.acceptInstance(e)||this.installArtifactState()}set templateAndInstanceObject(e){e===null||!this.artifacts.acceptCombined(e)||this.installArtifactState()}installArtifactState(){let e=this.artifacts.state;this.activeComponentRegistry.clear(),this.dataContext=e.dataContext,this.handlerContext=e.handlerContext,this.handlerContext.setMutationListener(i=>this.publishMutation(i)),this.artifactRevision=e.revision,this.lastPublishedState=this.validationStateKey(),this.doInitialize()}validationStateKey(){return JSON.stringify([this.currentMetadata,this.dataQualityReport])}publishMutation(e){let i=this.currentMetadata,a=this.dataQualityReport,r=JSON.stringify([i,a]);if(r===this.lastPublishedState)return;this.lastPublishedState=r;let o=this.handlerContext.dataContext.instanceFullData,s=e.operation==="valueChanged"?void 0:e.operation,l=Y({operation:e.operation,path:[...e.path],value:e.value,validity:a.isValid===true,dataQualityReport:a,title:o?.schema_name??null,description:o?.schema_description??null},s===void 0?{}:{message:s});e.operation==="valueChanged"&&this.messageHandlerService.valueChanged(l.path,l.value),this.wrapper.nativeElement.dispatchEvent(new CustomEvent("change",{detail:l,bubbles:true,composed:true}))}get dataQualityReport(){return this.artifacts.instanceInputRejected?{}:JSON.parse(JSON.stringify(this.handlerContext.dataContext.dataQualityReport))}ngOnDestroy(){this.activeComponentRegistry.clear()}set config(e){e===null||!this.configuration.accept(e)||this.doInitialize()}set eventHandler(e){this.messageHandlerService.injectEventHandler(e)}doInitialize(){!this.initialized||!this.configuration.hasConfiguration&&!this.editorDataReady()||this.configuration.apply(this.handlerContext)}editorDataReady(){return!this.artifacts.instanceInputRejected&&this.dataContext.templateRepresentation!==null}static{this.\u0275fac=function(i){return new(i||n)(X(Ue),X(ol),X(Di),X(bt),X(Er),X(Na),X(_l))}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-embeddable-metadata-editor-wrapper"]],inputs:{reveal:"reveal",currentMetadata:"currentMetadata",currentMetadataYaml:"currentMetadataYaml",templateObject:"templateObject",instanceObject:"instanceObject",templateAndInstanceObject:"templateAndInstanceObject",dataQualityReport:"dataQualityReport",config:"config",eventHandler:"eventHandler"},standalone:false,features:[vt([{provide:Kp,useClass:S0},{provide:rc,useClass:f0},Yp,Gp,bt,ol,Bi,_l,Na,Di,zo,ea,...n0({loader:{provide:po,useFactory:(e,i,a)=>Sd(e,i,a,{en:nc,hu:ic}),deps:[ur,Di,Na]}})])],decls:3,vars:1,consts:[[3,"change"],[3,"config","dataContextObject","handlerContextObject","artifactRevision"]],template:function(i,a){i&1&&(ne(0,"app-cedar-font-registrar"),T(1,"div",0),ce("change",function(o){return a.suppressNativeChange(o)}),L(2,mce,1,4,"app-cedar-embeddable-metadata-editor",1),k()),i&2&&(_(2),V(a.editorDataReady()?2:-1))},dependencies:[K5,oS],styles:[`@charset "UTF-8";:host([density=authoring]){--%NS%_cedar-density-height: 32px;--%NS%_cedar-density-font: 12px;--%NS%_cedar-density-line: 18px;--%NS%_cedar-density-radius: 4px;--%NS%_cedar-density-border: rgba(0, 0, 0, .38)}:host(:not([density=comfortable])){--%NS%_cedar-textarea-rows: var(--%NS%cedar-textarea-min-rows, 2);--%NS%_cedar-height: var(--%NS%cedar-control-height, var(--%NS%_cedar-density-height, 36px));--%NS%_cedar-font-size: var(--%NS%cedar-control-font-size, var(--%NS%_cedar-density-font, 14px));--%NS%_cedar-line-height: var( --%NS%cedar-control-line-height, var(--%NS%_cedar-density-line, 21px) );--%NS%_cedar-padding: calc((var(--%NS%_cedar-height) - var(--%NS%_cedar-line-height)) / 2);--%NS%_cedar-radius: var(--%NS%cedar-control-radius, var(--%NS%_cedar-density-radius, 4px));--%NS%_cedar-border: var(--%NS%cedar-control-border, var(--%NS%_cedar-density-border, rgba(0, 0, 0, .38)));--%NS%_cedar-focus: var(--%NS%cedar-control-focus, #0f7686);--%NS%_cedar-error: var(--%NS%cedar-control-error, #b42318);--%NS%mat-select-trigger-text-size: var(--%NS%_cedar-font-size);--%NS%mat-select-trigger-text-line-height: var(--%NS%_cedar-line-height);--%NS%mat-form-field-container-height: var(--%NS%_cedar-height);--%NS%mat-form-field-container-vertical-padding: var(--%NS%_cedar-padding);--%NS%mat-form-field-container-text-size: var(--%NS%_cedar-font-size);--%NS%mat-form-field-container-text-line-height: var(--%NS%_cedar-line-height);--%NS%mat-form-field-outlined-container-shape: var(--%NS%_cedar-radius);--%NS%mat-form-field-outlined-outline-color: var(--%NS%_cedar-border);--%NS%mat-form-field-outlined-focus-outline-color: var(--%NS%_cedar-focus);--%NS%mat-form-field-outlined-error-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-outlined-error-focus-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-outlined-error-hover-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-error-text-color: var(--%NS%_cedar-error);font-size:var(--%NS%_cedar-font-size)}:host(:not([density=comfortable])) .mat-mdc-select-arrow-wrapper{height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .mat-mdc-icon-button.mat-mdc-button-base{--%NS%mat-icon-button-state-layer-size: var(--%NS%_cedar-height);display:inline-flex;align-items:center;justify-content:center;width:var(--%NS%_cedar-height);height:var(--%NS%_cedar-height);padding:calc((var(--%NS%_cedar-height) - 24px) / 2)}:host(:not([density=comfortable])) .mat-mdc-icon-button.mat-mdc-button-base .mat-mdc-button-touch-target{width:100%;height:100%}:host(:not([density=comfortable])) .choice-clear-button.mat-mdc-icon-button.mat-mdc-button-base{--%NS%mat-icon-button-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);width:var(--%NS%cedar-row-height-compact, 28px);height:var(--%NS%cedar-row-height-compact, 28px);padding:2px}:host(:not([density=comfortable])) .cee-time-input-shell{min-height:var(--%NS%_cedar-height);border-color:var(--%NS%_cedar-border);border-radius:var(--%NS%_cedar-radius);font-size:var(--%NS%_cedar-font-size)}:host(:not([density=comfortable])) .cee-time-input-shell:focus-within{border-color:var(--%NS%_cedar-focus);box-shadow:inset 0 0 0 1px var(--%NS%_cedar-focus)}:host(:not([density=comfortable])) .cee-time-segment{padding-block:calc(var(--%NS%_cedar-padding) - 1px);line-height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .cee-time-meridian{height:var(--%NS%_cedar-height)}:host(:not([density=comfortable])) .cee-fraction-separator{line-height:var(--%NS%_cedar-height)}:host(:not([density=comfortable])) .cee-spec-box{min-height:var(--%NS%_cedar-height);padding-block:calc(var(--%NS%_cedar-padding) - 1px);border-color:var(--%NS%_cedar-border);border-radius:var(--%NS%_cedar-radius);font-size:var(--%NS%_cedar-font-size);line-height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .cee-read-only{--%NS%mat-form-field-container-height: var(--%NS%_cedar-height);--%NS%mat-form-field-container-vertical-padding: var(--%NS%_cedar-padding)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--%NS%mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--%NS%mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--%NS%mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--%NS%mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--%NS%mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--%NS%mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--%NS%mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--%NS%mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--%NS%mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--%NS%mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--%NS%mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--%NS%mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--%NS%mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--%NS%mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--%NS%mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--%NS%mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--%NS%mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--%NS%mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--%NS%mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--%NS%mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--%NS%mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--%NS%mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--%NS%mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--%NS%mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--%NS%mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html{--%NS%mat-sys-on-surface: initial}.mat-app-background{background-color:var(--%NS%mat-app-background-color, var(--%NS%mat-sys-background, transparent));color:var(--%NS%mat-app-text-color, var(--%NS%mat-sys-on-background, inherit))}:host{display:block;box-sizing:border-box;width:100%;min-width:0;container:cee/inline-size;font-family:CEDAR Roboto,Helvetica Neue,sans-serif;font-size:14px;line-height:normal}:host{color-scheme:light;--%NS%mat-sys-background: #ffffff;--%NS%mat-sys-error: #b42318;--%NS%mat-sys-error-container: #fef3f2;--%NS%mat-sys-inverse-on-surface: #ffffff;--%NS%mat-sys-inverse-primary: #87bbc3;--%NS%mat-sys-inverse-surface: #555;--%NS%mat-sys-on-background: rgba(0, 0, 0, .87);--%NS%mat-sys-on-error: #ffffff;--%NS%mat-sys-on-error-container: #b42318;--%NS%mat-sys-on-primary: #ffffff;--%NS%mat-sys-on-primary-container: #044656;--%NS%mat-sys-on-primary-fixed: #044656;--%NS%mat-sys-on-primary-fixed-variant: #0b6373;--%NS%mat-sys-on-secondary: #ffffff;--%NS%mat-sys-on-secondary-container: #173f3e;--%NS%mat-sys-on-secondary-fixed: #044656;--%NS%mat-sys-on-secondary-fixed-variant: #0b6373;--%NS%mat-sys-on-surface: rgba(0, 0, 0, .87);--%NS%mat-sys-on-surface-variant: #555;--%NS%mat-sys-on-tertiary: #ffffff;--%NS%mat-sys-on-tertiary-container: #173f3e;--%NS%mat-sys-on-tertiary-fixed: #044656;--%NS%mat-sys-on-tertiary-fixed-variant: #0b6373;--%NS%mat-sys-outline: rgba(0, 0, 0, .38);--%NS%mat-sys-outline-variant: #d7e0df;--%NS%mat-sys-primary: #0f7686;--%NS%mat-sys-primary-container: #e2eff0;--%NS%mat-sys-primary-fixed: #e2eff0;--%NS%mat-sys-primary-fixed-dim: #b7d6db;--%NS%mat-sys-scrim: #000000;--%NS%mat-sys-secondary: #0b6373;--%NS%mat-sys-secondary-container: #e4f1f1;--%NS%mat-sys-secondary-fixed: #e2eff0;--%NS%mat-sys-secondary-fixed-dim: #b7d6db;--%NS%mat-sys-shadow: #000000;--%NS%mat-sys-surface: #ffffff;--%NS%mat-sys-surface-bright: #ffffff;--%NS%mat-sys-surface-container: #f4f6f6;--%NS%mat-sys-surface-container-high: #f4f6f6;--%NS%mat-sys-surface-container-highest: #d7e0df;--%NS%mat-sys-surface-container-low: #ffffff;--%NS%mat-sys-surface-container-lowest: #ffffff;--%NS%mat-sys-surface-dim: #d7e0df;--%NS%mat-sys-surface-tint: #0f7686;--%NS%mat-sys-surface-variant: #f4f6f6;--%NS%mat-sys-tertiary: #0f7686;--%NS%mat-sys-tertiary-container: #e4f1f1;--%NS%mat-sys-tertiary-fixed: #e2eff0;--%NS%mat-sys-tertiary-fixed-dim: #b7d6db;--%NS%mat-sys-neutral-variant20: #555;--%NS%mat-sys-neutral10: rgba(0, 0, 0, .87);--%NS%mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-sys-body-large: 400 1rem / 1.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-line-height: 1.5rem;--%NS%mat-sys-body-large-size: 1rem;--%NS%mat-sys-body-large-tracking: .031rem;--%NS%mat-sys-body-medium: 400 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-line-height: 1.25rem;--%NS%mat-sys-body-medium-size: .875rem;--%NS%mat-sys-body-medium-tracking: .016rem;--%NS%mat-sys-body-small: 400 .75rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-line-height: 1rem;--%NS%mat-sys-body-small-size: .75rem;--%NS%mat-sys-body-small-tracking: .025rem;--%NS%mat-sys-display-large: 400 3.562rem / 4rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-line-height: 4rem;--%NS%mat-sys-display-large-size: 3.562rem;--%NS%mat-sys-display-large-tracking: -.016rem;--%NS%mat-sys-display-large-weight: 400;--%NS%mat-sys-display-medium: 400 2.812rem / 3.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-line-height: 3.25rem;--%NS%mat-sys-display-medium-size: 2.812rem;--%NS%mat-sys-display-medium-tracking: 0;--%NS%mat-sys-display-medium-weight: 400;--%NS%mat-sys-display-small: 400 2.25rem / 2.75rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-line-height: 2.75rem;--%NS%mat-sys-display-small-size: 2.25rem;--%NS%mat-sys-display-small-tracking: 0;--%NS%mat-sys-display-small-weight: 400;--%NS%mat-sys-headline-large: 400 2rem / 2.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-line-height: 2.5rem;--%NS%mat-sys-headline-large-size: 2rem;--%NS%mat-sys-headline-large-tracking: 0;--%NS%mat-sys-headline-large-weight: 400;--%NS%mat-sys-headline-medium: 400 1.75rem / 2.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-line-height: 2.25rem;--%NS%mat-sys-headline-medium-size: 1.75rem;--%NS%mat-sys-headline-medium-tracking: 0;--%NS%mat-sys-headline-medium-weight: 400;--%NS%mat-sys-headline-small: 400 1.5rem / 2rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-line-height: 2rem;--%NS%mat-sys-headline-small-size: 1.5rem;--%NS%mat-sys-headline-small-tracking: 0;--%NS%mat-sys-headline-small-weight: 400;--%NS%mat-sys-label-large: 500 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-line-height: 1.25rem;--%NS%mat-sys-label-large-size: .875rem;--%NS%mat-sys-label-large-tracking: .006rem;--%NS%mat-sys-label-large-weight-prominent: 700;--%NS%mat-sys-label-medium: 500 .75rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-line-height: 1rem;--%NS%mat-sys-label-medium-size: .75rem;--%NS%mat-sys-label-medium-tracking: .031rem;--%NS%mat-sys-label-medium-weight-prominent: 700;--%NS%mat-sys-label-small: 500 .688rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-line-height: 1rem;--%NS%mat-sys-label-small-size: .688rem;--%NS%mat-sys-label-small-tracking: .031rem;--%NS%mat-sys-title-large: 400 1.375rem / 1.75rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-line-height: 1.75rem;--%NS%mat-sys-title-large-size: 1.375rem;--%NS%mat-sys-title-large-tracking: 0;--%NS%mat-sys-title-large-weight: 400;--%NS%mat-sys-title-medium: 500 1rem / 1.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-line-height: 1.5rem;--%NS%mat-sys-title-medium-size: 1rem;--%NS%mat-sys-title-medium-tracking: .009rem;--%NS%mat-sys-title-small: 500 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-line-height: 1.25rem;--%NS%mat-sys-title-small-size: .875rem;--%NS%mat-sys-title-small-tracking: .006rem;--%NS%mat-sys-corner-extra-large: 28px;--%NS%mat-sys-corner-extra-large-top: 28px 28px 0 0;--%NS%mat-sys-corner-extra-small: 4px;--%NS%mat-sys-corner-extra-small-top: 4px 4px 0 0;--%NS%mat-sys-corner-full: 9999px;--%NS%mat-sys-corner-large: 16px;--%NS%mat-sys-corner-large-end: 0 16px 16px 0;--%NS%mat-sys-corner-large-start: 16px 0 0 16px;--%NS%mat-sys-corner-large-top: 16px 16px 0 0;--%NS%mat-sys-corner-medium: 12px;--%NS%mat-sys-corner-none: 0;--%NS%mat-sys-corner-small: 8px;--%NS%mat-sys-dragged-state-layer-opacity: .16;--%NS%mat-sys-focus-state-layer-opacity: .12;--%NS%mat-sys-hover-state-layer-opacity: .08;--%NS%mat-sys-pressed-state-layer-opacity: .12;--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-disabled-selected-checkmark-color: var(--%NS%mat-sys-surface);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-label-text-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-selected-checkmark-color: var(--%NS%mat-sys-on-primary);--%NS%mat-checkbox-selected-focus-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-focus-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-hover-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-hover-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-pressed-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-pressed-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-focus-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-focus-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-hover-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-hover-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-icon-color: var(--%NS%mat-sys-on-surface-variant);--%NS%mat-checkbox-unselected-pressed-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-checked-ripple-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-disabled-label-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-disabled-unselected-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-label-text-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-ripple-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-selected-focus-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-hover-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-pressed-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-unselected-focus-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-unselected-hover-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-unselected-icon-color: var(--%NS%mat-sys-on-surface-variant);--%NS%mat-radio-unselected-pressed-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-sys-body-large: 400 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-size: 14px;--%NS%mat-sys-body-large-line-height: 24px;--%NS%mat-sys-body-large-tracking: normal;--%NS%mat-sys-body-large-weight: 400;--%NS%mat-sys-body-medium: 400 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-size: 14px;--%NS%mat-sys-body-medium-line-height: 24px;--%NS%mat-sys-body-medium-tracking: normal;--%NS%mat-sys-body-medium-weight: 400;--%NS%mat-sys-body-small: 400 12px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-size: 12px;--%NS%mat-sys-body-small-line-height: 20px;--%NS%mat-sys-body-small-tracking: normal;--%NS%mat-sys-body-small-weight: 400;--%NS%mat-sys-label-large: 500 14px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-size: 14px;--%NS%mat-sys-label-large-line-height: 20px;--%NS%mat-sys-label-large-tracking: normal;--%NS%mat-sys-label-large-weight: 500;--%NS%mat-sys-label-medium: 500 12px/16px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-size: 12px;--%NS%mat-sys-label-medium-line-height: 16px;--%NS%mat-sys-label-medium-tracking: normal;--%NS%mat-sys-label-medium-weight: 500;--%NS%mat-sys-label-small: 500 12px/16px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-size: 12px;--%NS%mat-sys-label-small-line-height: 16px;--%NS%mat-sys-label-small-tracking: normal;--%NS%mat-sys-label-small-weight: 500;--%NS%mat-sys-title-large: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-size: 18px;--%NS%mat-sys-title-large-line-height: 28px;--%NS%mat-sys-title-large-tracking: normal;--%NS%mat-sys-title-large-weight: 500;--%NS%mat-sys-title-medium: 500 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-size: 14px;--%NS%mat-sys-title-medium-line-height: 24px;--%NS%mat-sys-title-medium-tracking: normal;--%NS%mat-sys-title-medium-weight: 500;--%NS%mat-sys-title-small: 500 14px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-size: 14px;--%NS%mat-sys-title-small-line-height: 20px;--%NS%mat-sys-title-small-tracking: normal;--%NS%mat-sys-title-small-weight: 500;--%NS%mat-sys-headline-large: 500 18px/32px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-size: 18px;--%NS%mat-sys-headline-large-line-height: 32px;--%NS%mat-sys-headline-large-tracking: normal;--%NS%mat-sys-headline-large-weight: 500;--%NS%mat-sys-headline-medium: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-size: 18px;--%NS%mat-sys-headline-medium-line-height: 28px;--%NS%mat-sys-headline-medium-tracking: normal;--%NS%mat-sys-headline-medium-weight: 500;--%NS%mat-sys-headline-small: 500 18px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-size: 18px;--%NS%mat-sys-headline-small-line-height: 24px;--%NS%mat-sys-headline-small-tracking: normal;--%NS%mat-sys-headline-small-weight: 500;--%NS%mat-sys-display-large: 500 18px/32px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-size: 18px;--%NS%mat-sys-display-large-line-height: 32px;--%NS%mat-sys-display-large-tracking: normal;--%NS%mat-sys-display-large-weight: 500;--%NS%mat-sys-display-medium: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-size: 18px;--%NS%mat-sys-display-medium-line-height: 28px;--%NS%mat-sys-display-medium-tracking: normal;--%NS%mat-sys-display-medium-weight: 500;--%NS%mat-sys-display-small: 500 18px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-size: 18px;--%NS%mat-sys-display-small-line-height: 24px;--%NS%mat-sys-display-small-tracking: normal;--%NS%mat-sys-display-small-weight: 500;--%NS%mat-card-elevated-container-shape: 4px;--%NS%mat-card-outlined-container-shape: 4px;--%NS%mat-card-filled-container-shape: 4px;--%NS%mat-expansion-container-shape: 4px;--%NS%mat-button-filled-container-shape: 4px;--%NS%mat-button-outlined-container-shape: 4px;--%NS%mat-button-protected-container-shape: 4px;--%NS%mat-button-text-container-shape: 4px;--%NS%mat-button-tonal-container-shape: 4px;--%NS%mat-chip-container-shape-radius: 9999px;--%NS%mat-datepicker-calendar-date-focus-state-background-color: var(--%NS%cedar-surface-selected, #e4f1f1);--%NS%mat-datepicker-calendar-container-shape: 4px;--%NS%mat-datepicker-calendar-container-touch-shape: 4px;--%NS%mat-datepicker-calendar-container-elevation-shadow: var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));--%NS%mat-datepicker-calendar-container-touch-elevation-shadow: var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));--%NS%mat-form-field-container-height: 48px;--%NS%mat-form-field-container-vertical-padding: 12px;--%NS%mat-form-field-filled-label-display: none;--%NS%mat-form-field-filled-with-label-container-padding-top: 12px;--%NS%mat-form-field-filled-with-label-container-padding-bottom: 12px;--%NS%mat-radio-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);--%NS%mat-radio-touch-target-display: none;--%NS%mat-checkbox-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);--%NS%mat-checkbox-touch-target-display: none;--%NS%mat-expansion-container-text-line-height: 20px;--%NS%mat-form-field-subscript-text-size: 12px;--%NS%mat-form-field-subscript-text-line-height: 18px;--%NS%mat-menu-container-color: #ffffff;--%NS%mat-menu-container-shape: 4px;--%NS%mat-menu-container-elevation-shadow: 0 4px 18px rgba(0, 0, 0, .13);--%NS%mat-menu-divider-color: #d7e0df;--%NS%mat-menu-item-leading-spacing: 12px;--%NS%mat-menu-item-trailing-spacing: 12px;--%NS%mat-menu-item-hover-state-layer-color: #e4f1f1;--%NS%mat-menu-item-focus-state-layer-color: #e4f1f1;--%NS%mat-focus-indicator-border-color: #0f7686;--%NS%mat-focus-indicator-fallback-border-style: none}:host .cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] :host .cdk-visually-hidden{left:auto;right:0}:host textarea.cdk-textarea-autosize{resize:none}:host textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}:host textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-overlay-container{font-family:CEDAR Roboto,Helvetica Neue,sans-serif;font-size:14px;line-height:normal}.form-container{min-width:50%;max-width:100%}.full-width{width:100%}.half-width{width:50%}.half-width-with-margin{width:49%;margin-right:1%}.image-component{max-width:50%;margin-left:auto;margin-right:auto}.image-component div{padding-top:16px}.image-component div:last-child{padding-bottom:16px}.image-component div img{display:block;margin-left:auto;margin-right:auto;max-width:100%}.youtube-component{margin-left:auto;margin-right:auto}.icon-help{margin-left:8px;width:16px!important;height:16px!important}.mat-mdc-card{margin-top:4px}.non-iterable-component{background-color:#f4f6f6}.template-card{box-sizing:border-box;width:100%;max-width:none;min-width:0;background-color:#fff;margin:0;border:none!important}.pager-container{display:flex;flex-wrap:wrap;justify-content:right;align-items:center;margin-right:8px;margin-top:-26px;margin-bottom:-4px}.non-iterable-component>app-cedar-multi-pager .pager-container{margin-right:48px}.pager-container-ro{display:flex;flex-wrap:wrap;justify-content:right;align-items:center;margin-right:8px;margin-top:8px}.inline-readonly-pager>app-cedar-multi-pager .pager-container-ro{margin-top:0}.pager-chips{margin-right:16px}.pager-actions{display:flex;align-items:center;gap:4px}.pager-action-tooltip{display:inline-flex}@container cee (max-width: 620px){.pager-container,.pager-container-ro,.non-iterable-component>app-cedar-multi-pager .pager-container{justify-content:flex-start;margin-top:8px;margin-right:0;margin-bottom:0}.pager-chips{margin-right:12px}.inline-readonly-pager>app-cedar-multi-pager .pager-container-ro{margin-top:8px}}app-sample-templates .mat-expansion-panel{max-width:90%;margin:8px auto 0;background-color:#f4f6f6}app-sample-templates .mat-expansion-panel-header-title .mat-icon{margin-right:16px}app-cedar-multi-pager .pager-chips .mat-mdc-chip.mat-mdc-standard-chip{--%NS%mat-chip-container-height: 26px;--%NS%mat-chip-label-text-size: 12px}app-cedar-multi-pager .pager-chips .mat-mdc-chip.mat-mdc-standard-chip .mat-mdc-chip-action{padding-inline:9px}.mat-icon:hover{color:#0f7686;scale:1.2}.mat-mdc-tooltip .mat-mdc-tooltip-surface{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-font-size, 14px);font-weight:var(--%NS%cedar-font-weight-regular, 400);line-height:var(--%NS%cedar-control-line-height-default, 21px);color:var(--%NS%cedar-color-primary, #0f7686);z-index:var(--%NS%cedar-layer-tooltip, 1200);width:max-content;max-width:min(360px,100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:var(--%NS%cedar-space-2, 8px) var(--%NS%cedar-space-3, 12px);gap:var(--%NS%cedar-space-2, 8px);background:var(--%NS%cedar-surface-raised, #ffffff);border:1px solid var(--%NS%cedar-border-rule, #d7e0df);border-radius:var(--%NS%cedar-radius, 4px);box-shadow:var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));color:var(--%NS%cedar-text-primary, rgba(0, 0, 0, .87));overflow-wrap:anywhere;white-space:normal}.align-start{text-align:start}.align-end{text-align:end}.mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding-inline:0}.mat-mdc-form-field-infix:has(>.cee-settled-term){position:relative}.cee-settled-input{position:absolute;inset:0;opacity:0}.cee-settled-term{display:block;min-width:0;overflow-wrap:anywhere;pointer-events:none}.cee-settled-term-dash{margin:0 var(--%NS%cedar-specification-padding-block, 6px);color:var(--%NS%cedar-specification-separator-color, var(--%NS%cedar-control-border-default, rgba(0, 0, 0, .38)))}.cee-settled-term-single-line{display:flex;align-items:baseline;overflow:hidden}.cee-settled-term-single-line .cee-settled-term-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cee-settled-term-single-line .cee-settled-term-dash,.cee-settled-term-single-line .cee-settled-term-iri{flex:0 0 auto;white-space:nowrap}.input-warning{display:block;--%NS%cedar-icon-color: #b45309;color:#b45309;font-size:12px;line-height:18px;text-align:start}.cdk-overlay-container{z-index:1100!important}:host([density=comfortable]){--%NS%mat-form-field-outlined-outline-color: black}.mat-expansion-panel{border:1px solid rgba(0,0,0,.38);box-shadow:none!important}.mat-mdc-card{box-shadow:none!important;margin-bottom:0}.tooltip{background-color:#000000de}.mat-mdc-option.lookup-failed{color:#b42318;font-style:italic;white-space:normal;line-height:21px}:host :where(.mat-mdc-checkbox:not(:has(input:disabled))) .mdc-label,:host :where(.mat-mdc-radio-button:not(:has(input:disabled))) .mdc-label,:host .mat-mdc-option:not([aria-disabled=true]) .mdc-list-item__primary-text{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-control-font-size, var(--%NS%cedar-font-size, 14px));line-height:var(--%NS%cedar-control-line-height, var(--%NS%cedar-control-line-height-default, 21px));font-weight:var(--%NS%cedar-font-weight-regular, 400);letter-spacing:normal;color:var(--%NS%cedar-text-primary, rgba(0, 0, 0, .87))}.cee-read-only{--%NS%mat-form-field-container-height: 36px;--%NS%mat-form-field-container-vertical-padding: 6px}.cee-read-only .mat-mdc-radio-button .mdc-radio,.cee-read-only .mat-mdc-checkbox .mdc-checkbox{padding:2px}.cee-read-only .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background,.cee-read-only .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:2px;left:2px}.cee-read-only .mat-mdc-radio-button,.cee-read-only .mat-mdc-checkbox{min-height:0}.cee-read-only .mat-mdc-radio-group{display:flex;flex-direction:column}.cee-read-only .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button.mat-mdc-button-base{width:36px;height:36px;padding:6px}.cee-declared-values{--%NS%mat-form-field-filled-input-text-color: var(--%NS%cedar-specification-text, #555);--%NS%mat-form-field-outlined-input-text-color: var(--%NS%cedar-specification-text, #555)}.cee-declared-values .mat-mdc-select-value-text,.cee-declared-values .mat-mdc-radio-button .mdc-label,.cee-declared-values .mat-mdc-checkbox .mdc-label{color:var(--%NS%cedar-specification-text, #555)}.cee-hidden,.cee-hidden.mat-mdc-form-field{display:none}.cee-term-link-action{display:inline-flex;flex:0 0 20px;align-items:center;justify-content:center;width:20px;height:20px;color:inherit;text-decoration:none}.cee-term-link-action .mat-icon{width:16px;height:16px}.required-mark b{font-weight:var(--%NS%cedar-font-weight-medium, 500)}mat-icon.cedar-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:20px;height:20px;font-family:inherit}mat-icon.cedar-icon>svg{display:block}:host .mat-mdc-menu-content{padding:4px}:host .mat-mdc-menu-item{min-height:36px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.expand-buttons .mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center}textarea,textarea.mat-mdc-input-element{resize:none}:host .mat-mdc-option{min-height:var(--%NS%cedar-row-height-compact, 28px);height:auto;padding-block:2px;padding-inline:12px;box-sizing:border-box;line-height:var(--%NS%cedar-control-line-height, var(--%NS%cedar-control-line-height-default, 21px))}:host .mat-mdc-select-panel{padding-block:4px}:host .cee-download-menu .mat-mdc-menu-item mat-icon{color:var(--%NS%cedar-color-primary, #0f7686)}:host .mat-mdc-menu-panel,:host .mat-mdc-menu-content .mat-mdc-menu-item,:host .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-font-size, 14px);font-weight:var(--%NS%cedar-font-weight-regular, 400);line-height:var(--%NS%cedar-control-line-height-default, 21px);color:var(--%NS%cedar-color-primary, #0f7686)}:is(svg[data-cedar-icon],mat-icon,.material-icons,.fa,.glyphicon){color:var(--%NS%cedar-icon-color, var(--%NS%cedar-color-primary, #0f7686))!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important}button:disabled,button[aria-disabled=true],[role=button][aria-disabled=true]{opacity:var(--%NS%cedar-control-disabled-opacity, .45)}[data-cedar-icon-tone=inverse],.btn-primary,.btn-success,.btn-danger,.mat-toolbar.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-primary{--%NS%cedar-icon-color: var(--%NS%cedar-color-on-primary, #ffffff)}[data-cedar-icon-tone=error],mat-icon.mat-warn,.text-danger,.alert-danger{--%NS%cedar-icon-color: var(--%NS%cedar-status-error-text, #b42318)}[data-cedar-icon-tone=warning],.text-warning,.alert-warning{--%NS%cedar-icon-color: var(--%NS%cedar-status-warning-text, #b45309)}[data-cedar-icon-tone=success],.text-success,.alert-success{--%NS%cedar-icon-color: var(--%NS%cedar-status-success-text, #176b3a)}[data-cedar-icon-tone=primary]{--%NS%cedar-icon-color: var(--%NS%cedar-color-primary, #0f7686)}
|
|
6308
|
+
`],encapsulation:2})})()}return n})();var Yle=new be("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=N(st);return()=>go(n)}});var af=new WeakMap;var Gle=(()=>{class n{_canHaveBackdrop;_element=N(Ue);_viewContainerRef=N(Qi);_menuItemInstance=N(ey,{optional:true,self:true});_dir=N(ta,{optional:true});_focusMonitor=N(Tr);_ngZone=N($e);_injector=N(st);_scrollStrategy=N(Yle);_changeDetectorRef=N(Vt);_animationsDisabled=ei();_portal;_overlayRef=null;_menuOpen=false;_closingActionsSubscription=wt.EMPTY;_menuCloseSubscription=wt.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e?(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(i=>{this._destroyMenu(i),(i==="click"||i==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})):this._destroyMenu(),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let i=N(wk,{optional:true});this._parentMaterialMenu=i instanceof rf?i:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&af.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let i=this._menu;if(this._menuOpen||!i)return;this._pendingRemoval?.unsubscribe();let a=af.get(i);af.set(i,this),a&&a!==this&&a._closeMenu();let r=this._createOverlay(i),o=r.getConfig(),s=o.positionStrategy;this._setPosition(i,s),this._canHaveBackdrop?o.hasBackdrop=i.hasBackdrop==null?!this._triggersSubmenu():i.hasBackdrop:o.hasBackdrop=i.hasBackdrop??false,r.hasAttached()||(r.attach(this._getPortal(i)),i.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),i.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,i.direction=this.dir,e&&i.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(true),i instanceof rf&&(i._setIsOpen(true),i._directDescendantItems.changes.pipe(Tn(i.close)).subscribe(()=>{s.withLockedPosition(false).reapplyLastPosition(),s.withLockedPosition(true)}))}focus(e,i){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,i):this._element.nativeElement.focus(i)}_destroyMenu(e){let i=this._overlayRef,a=this._menu;!i||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),a instanceof rf&&this._ownsMenu(a)?(this._pendingRemoval=a._animationDone.pipe(aa(1)).subscribe(()=>{i.detach(),af.has(a)||a.lazyContent?.detach()}),a._setIsOpen(false)):(i.detach(),a?.lazyContent?.detach()),a&&this._ownsMenu(a)&&af.delete(a),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(false))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let i=this._getOverlayConfig(e);this._subscribeToPositions(e,i.positionStrategy),this._overlayRef=Ns(this._injector,i),this._overlayRef.keydownEvents().subscribe(a=>{this._menu instanceof rf&&this._menu._handleKeydown(a)})}return this._overlayRef}_getOverlayConfig(e){return new Ss({positionStrategy:ws(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,i){e.setPositionClasses&&i.positionChanges.subscribe(a=>{this._ngZone.run(()=>{let r=a.connectionPair.overlayX==="start"?"after":"before",o=a.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,o)})})}_setPosition(e,i){let[a,r]=e.xPosition==="before"?["end","start"]:["start","end"],[o,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[l,c]=[o,s],[d,m]=[a,r],b=0;if(this._triggersSubmenu()){if(m=a=e.xPosition==="before"?"start":"end",r=d=a==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let u=this._parentMaterialMenu.items.first;this._parentInnerPadding=u?u._getHostElement().offsetTop:0}b=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(l=o==="top"?"bottom":"top",c=s==="top"?"bottom":"top");i.withPositions([{originX:a,originY:l,overlayX:d,overlayY:o,offsetY:b},{originX:r,originY:l,overlayX:m,overlayY:o,offsetY:b},{originX:a,originY:c,overlayX:d,overlayY:s,offsetY:-b},{originX:r,originY:c,overlayX:m,overlayY:s,offsetY:-b}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),i=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:Kt(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe($n(o=>this._menuOpen&&o!==this._menuItemInstance)):Kt();return ni(e,a,r,i)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Lo(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return af.get(e)===this}_triggerIsAriaDisabled(){return Oe(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(i){ig()};static \u0275dir=Be({type:n})}return n})();var W5=(()=>{class n extends Gle{_cleanupTouchstart;_hoverSubscription=wt.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=true;menuOpened=new Ae;onMenuOpen=this.menuOpened;menuClosed=new Ae;onMenuClose=this.menuClosed;constructor(){super(true);let e=N(pn);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",i=>{eu(i)||(this._openedBy="touch")},{passive:true})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(true)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Zm(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let i=e.keyCode;(i===13||i===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===39&&this.dir==="ltr"||i===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(false))}))}static \u0275fac=function(i){return new(i||n)};static \u0275dir=Be({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(i,a){i&1&&ce("click",function(o){return a._handleClick(o)})("mousedown",function(o){return a._handleMousedown(o)})("keydown",function(o){return a._handleKeydown(o)}),i&2&&re("aria-haspopup",a.menu?"menu":null)("aria-expanded",a.menuOpen)("aria-controls",a.menuOpen?a.menu?.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[Ke]})}return n})();var J5=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Xa,Is,Ot,fo]})}return n})();var Wle=(n,t)=>t.id;function Jle(n,t){if(n&1){let e=je();T(0,"button",5),ce("click",function(){let a=ve(e).$implicit,r=A();return _e(r.request(a.id))}),ne(1,"mat-icon",6),G(2),U(3,"translate"),k()}if(n&2){let e=t.$implicit;re("data-download",e.id),_(),B("cedarIcon",e.icon),_(),Ve(" ",Q(3,3,e.labelKey)," ")}}var q5=(()=>{class n{constructor(){this.downloadRequested=new Ae,this.showInstanceDownloads=true}get items(){return this.showInstanceDownloads?q1:_L}request(e){this.downloadRequested.emit(e)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=fe({type:n,selectors:[["app-download-menu"]],inputs:{showInstanceDownloads:"showInstanceDownloads"},outputs:{downloadRequested:"downloadRequested"},standalone:false,decls:8,vars:8,consts:[["menu","matMenu"],["mat-icon-button","",1,"download-trigger",3,"matMenuTriggerFor","matTooltip"],["cedarIcon","download"],[1,"cee-download-menu"],["mat-menu-item","","type","button"],["mat-menu-item","","type","button",3,"click"],[3,"cedarIcon"]],template:function(i,a){if(i&1&&(T(0,"button",1),U(1,"translate"),U(2,"translate"),ne(3,"mat-icon",2),k(),T(4,"mat-menu",3,0),Mt(6,Jle,4,5,"button",4,Wle),k()),i&2){let r=Qt(5);B("matTooltip",Ct(Q(1,4,"Generic.Download")))("matMenuTriggerFor",r),re("aria-label",Q(2,6,"Generic.Download")),_(6),Dt(a.items)}},dependencies:[Gt,rf,ey,W5,jt,Jt,wn,pt],styles:['@charset "UTF-8";'],changeDetection:1})}}return n})();var Kle=n=>({version:n});function Xle(n,t){if(n&1&&(T(0,"p",5),G(1),k()),n&2){let e=A(3);_(),ge(e.dataContext.templateRepresentation?.labelInfo?.description)}}function Qle(n,t){if(n&1&&(T(0,"span"),G(1),U(2,"translate"),k()),n&2){let e=A(4);_(),ge(it(2,1,"Generic.TemplateVersion",It(4,Kle,e.templateVersion)))}}function Zle(n,t){if(n&1&&(T(0,"span"),G(1),U(2,"translate"),k()),n&2){let e=A(4);_(),ge(Q(2,1,e.templateStatus==="published"?"Generic.StatusPublished":"Generic.StatusDraft"))}}function ece(n,t){if(n&1&&(T(0,"div",12),L(1,Qle,3,6,"span"),L(2,Zle,3,3,"span"),k()),n&2){let e=A(3);_(),V(e.templateVersion?1:-1),_(),V(e.templateStatus?2:-1)}}function tce(n,t){if(n&1&&(T(0,"a",6),U(1,"translate"),ne(2,"div",7),T(3,"span",8),G(4,"CEE"),k(),T(5,"span",9),G(6),k()(),T(7,"div",10)(8,"h1",11),G(9),k(),L(10,Xle,2,1,"p",5),k(),L(11,ece,3,2,"div",12)),n&2){let e=A(2);re("aria-label",Q(1,6,"Generic.CeeOnNpm")),_(5),B("title",e.ceeVersion),_(),ge(e.ceeVersion),_(3),ge(e.dataContext.templateRepresentation?.labelInfo?.label),_(),V(e.dataContext.templateRepresentation?.labelInfo?.description&&e.showTemplateDescription?10:-1),_(),V(e.templateVersion||e.templateStatus?11:-1)}}function nce(n,t){if(n&1&&(T(0,"div",13),ne(1,"app-cedar-static-page-break",16),k()),n&2){let e=A(3);_(),B("dataContext",e.dataContext)("pageBreakPaginatorService",e.pageBreakPaginatorService)}}function ice(n,t){if(n&1){let e=je();T(0,"button",17),U(1,"translate"),U(2,"translate"),ce("click",function(){ve(e);let a=A(3);return _e(a.openAll())}),ne(3,"mat-icon",18),k(),T(4,"button",17),U(5,"translate"),U(6,"translate"),ce("click",function(){ve(e);let a=A(3);return _e(a.closeAll())}),ne(7,"mat-icon",19),k()}n&2&&(B("matTooltip",Ct(Q(1,6,"Generic.ExpandAll"))),re("aria-label",Q(2,8,"Generic.ExpandAll")),_(4),B("matTooltip",Ct(Q(5,10,"Generic.CollapseAll"))),re("aria-label",Q(6,12,"Generic.CollapseAll")))}function ace(n,t){if(n&1){let e=je();T(0,"app-download-menu",20),ce("downloadRequested",function(a){ve(e);let r=A(3);return _e(r.download(a))}),k()}if(n&2){let e=A(3);B("showInstanceDownloads",!e.declaredValuesOnly)}}function rce(n,t){if(n&1&&(T(0,"div",3),L(1,nce,2,2,"div",13),T(2,"div",14),L(3,ice,8,14),L(4,ace,1,1,"app-download-menu",15),k()()),n&2){let e=A(2);_(),V(e.dataContext.templateRepresentation?.hasPageBreaks()?1:-1),_(2),V(e.showExpandCollapseAll?3:-1),_(),V(e.showDownloadMenu?4:-1)}}function oce(n,t){if(n&1&&(T(0,"p",5),G(1),k()),n&2){let e=A(2);_(),ge(e.dataContext.templateRepresentation?.labelInfo?.description)}}function sce(n,t){if(n&1&&ne(0,"app-cedar-component-renderer",21),n&2){let e=A().$implicit,i=A(2);B("componentToRender",e)("handlerContext",i.handlerContext)("allExpanded",i.allExpanded)("pageBreakPaginatorService",i.pageBreakPaginatorService)}}function lce(n,t){if(n&1&&L(0,sce,1,4,"app-cedar-component-renderer",21),n&2){let e=t.$implicit;V(e.hidden?-1:0)}}function cce(n,t){if(n&1&&(T(0,"mat-card",1)(1,"div",2),L(2,tce,12,8),L(3,rce,5,3,"div",3),k(),T(4,"mat-card-content",4),L(5,oce,2,1,"p",5),Mt(6,lce,1,1,null,null,Vn),k()()),n&2){let e=A();we("cee-read-only",e.readOnlyMode)("cee-preview",e.previewMode)("cee-declared-values",e.declaredValuesOnly),_(),we("has-actions",e.dataContext.templateRepresentation?.hasPageBreaks()||e.showExpandCollapseAll||e.showDownloadMenu)("template-header-paged",e.dataContext.templateRepresentation?.hasPageBreaks()),_(),V(e.previewMode?-1:2),_(),V(e.dataContext.templateRepresentation?.hasPageBreaks()||e.showExpandCollapseAll||e.showDownloadMenu?3:-1),_(2),V(e.previewMode&&e.showTemplateDescription&&e.dataContext.templateRepresentation?.labelInfo?.description?5:-1),_(),Dt(e.pageBreakPaginatorService.getCurrentPage())}}var K5=(()=>{class n{static{this.INNER_VERSION="2026-10-08 19:35"}get declaredValuesOnly(){return this.readOnlyMode&&this.handlerContext!==null&&!this.handlerContext.instanceSupplied}get templateVersion(){return this.parsedTemplate()?.pav_version?.getValue()??null}get templateStatus(){return this.parsedTemplate()?.bibo_status?.getYamlValue()??null}parsedTemplate(){let e=this.dataContext?.templateRepresentation;return e instanceof Bn?e.parsed:null}constructor(e,i,a,r,o,s,l=null){this.activeComponentRegistry=e,this.externalAuthorityLookupService=i,this.messageHandlerService=a,this.templateTrustService=r,this.userPreferencesService=o,this.renderScheduler=s,this.fieldReveal=l,this.dataContext=null,this.handlerContext=null,this.pageBreakPaginatorService=null,this.showDownloadMenu=false,this.previewMode=false,this.showExpandCollapseAll=true,this.showTemplateDescription=false,this.readOnlyMode=false,this.bridgeBaseUrl=null,this.allExpanded=true,this.widgetConfig=new Mh(this.externalAuthorityLookupService,this.templateTrustService,this.userPreferencesService),this.ceeVersion=qg.version,this.messageHandlerService.trace("CEDAR Embeddable Editor "+n.INNER_VERSION)}download(e){return nt(this,null,function*(){let{dataContext:i}=this;if(i===null)return;let a=C4(e,i),r=Kg.find(s=>s.id===e);if(r===void 0)return;this.messageHandlerService.trace("CEDAR Embeddable Editor: downloading "+a);let o;try{o=yield x4(e,i)}catch(s){this.messageHandlerService.error("CEDAR Embeddable Editor: could not produce "+a+": "+(s instanceof Error?s.message:String(s)));return}S4(a,r.mediaType,o)})}ngOnDestroy(){this.activeComponentRegistry.clear()}set dataContextObject(e){this.dataContext=e}set handlerContextObject(e){this.handlerContext=e,this.pageBreakPaginatorService=e===null?null:new cx(this.activeComponentRegistry,e,this.renderScheduler);let i=e?.dataContext.templateRepresentation;i!=null&&this.pageBreakPaginatorService?.reset(i.pageBreakChildren),this.fieldReveal?.usePaginator(this.pageBreakPaginatorService)}set config(e){if(e!=null){this.previewMode=Gr(e,Rn.previewMode,this.previewMode),this.showDownloadMenu=Gr(e,Rn.showDownloadMenu,this.showDownloadMenu),this.showExpandCollapseAll=Gr(e,Rn.showExpandCollapseAll,this.showExpandCollapseAll),this.showTemplateDescription=Gr(e,Rn.showTemplateDescription,this.showTemplateDescription);let i=this.widgetConfig.apply(e,this.readOnlyMode);this.bridgeBaseUrl=i.bridgeBaseUrl,this.readOnlyMode=i.readOnlyMode}}set artifactRevision(e){e<=0||this.handlerContext===null||this.dataContext===null||this.scheduleRender(`artifact revision ${e}`)}scheduleRender(e){this.renderScheduler.schedule(()=>this.syncRenderedInstance()).then(i=>{i&&this.messageHandlerService.ready()}).catch(i=>this.reportArtifactError(e,i))}reportArtifactError(e,i){let a=i instanceof Error?i.message:String(i);this.messageHandlerService.error(`CEDAR Embeddable Editor: "${e}" could not be loaded: ${a}`)}syncRenderedInstance(){let e=this.dataContext?.templateRepresentation,i=this.handlerContext;if(!(e==null||e.children==null||i==null))for(let a of e.children)this.activeComponentRegistry.updateViewToModel(a,i)}dataAvailableForRender(){return this.dataContext!=null&&this.dataContext.templateRepresentation!=null&&!(this.dataContext.templateRepresentation instanceof gl)&&this.handlerContext!=null&&this.handlerContext.multiInstanceObjectService.isInitialized()}openAll(){this.allExpanded=true}closeAll(){this.allExpanded=false}static{this.\u0275fac=function(i){return new(i||n)(X(bt),X(Bi),X(Di),X(Ud),X(ea),X(zo),X(_l,8))}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-embeddable-metadata-editor"]],inputs:{dataContextObject:"dataContextObject",handlerContextObject:"handlerContextObject",config:"config",artifactRevision:"artifactRevision"},standalone:false,decls:1,vars:1,consts:[["appearance","outlined",1,"template-card",3,"cee-read-only","cee-preview","cee-declared-values"],["appearance","outlined",1,"template-card"],[1,"template-header"],[1,"template-actions"],[1,"template-content"],[1,"template-description"],["href","https://www.npmjs.com/package/cedar-embeddable-editor","target","_blank","rel","noreferrer",1,"logo-block"],["mat-card-avatar","",1,"header-image"],[1,"cee-name"],[1,"cee-version",3,"title"],[1,"template-title-block"],[1,"template-label"],[1,"template-provenance"],[1,"page-break-control"],[1,"expand-buttons"],[3,"showInstanceDownloads"],[3,"dataContext","pageBreakPaginatorService"],["mat-icon-button","",1,"expand-trigger",3,"click","matTooltip"],["cedarIcon","expand-all"],["cedarIcon","collapse-all"],[3,"downloadRequested","showInstanceDownloads"],[3,"componentToRender","handlerContext","allExpanded","pageBreakPaginatorService"]],template:function(i,a){i&1&&L(0,cce,8,13,"mat-card",0),i&2&&V(a.dataAvailableForRender()&&a.dataContext&&a.handlerContext&&a.pageBreakPaginatorService?0:-1)},dependencies:[Gt,Dh,A4,Hd,jt,Jt,wn,G8,$5,q5,pt],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;min-width:0;color:#000000de}.header-image[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF62lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDYwLCAyMDIwLzA1LzEyLTE2OjA0OjE3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowNzgwMTE3NDA3MjA2ODExODIyQUM0RjczN0MxMjg5MiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowOEI1MjE2ODdCN0ExMUU1ODQ1MURCMzZENjcwOTVBMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowZWY3NDYzMS1hNDQxLTRmNGYtYjMwNy0wMmFhMDg3ZWYwYWUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDctMjFUMTQ6MTU6MjgtMDc6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTA3LTIxVDE0OjE4OjI1LTA3OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTA3LTIxVDE0OjE4OjI1LTA3OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9InNSR0IgSUVDNjE5NjYtMi4xIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjQ4OTMzNDgwRDIwNjgxMTgyMkFDNEY3MzdDMTI4OTIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MDc4MDExNzQwNzIwNjgxMTgyMkFDNEY3MzdDMTI4OTIiLz4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MGVmNzQ2MzEtYTQ0MS00ZjRmLWIzMDctMDJhYTA4N2VmMGFlIiBzdEV2dDp3aGVuPSIyMDIwLTA3LTIxVDE0OjE4OjI1LTA3OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjEuMiAoTWFjaW50b3NoKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5fOOitAAAJ8UlEQVR4nO2ceXBdZRnGf9mTNi1Jm6aphWlTGtrakqIg1LEttlApiMy41HVUlBEFxek4Mg6MywzgoKK4DTNMccFloCoIo1KqlJZYcIGKnVbtZjVJS5c0pQtpStObvP7xfLcnCffmLud856bOfWbO3O0s333u+73L837nlpgZReSP0kIP4GxHkcCQKBIYEkUCQ6JIYEgUCQyJIoEhMZoIvBWY6Z6XFHIguWC0ELgM+AbwAHAlcNZk94UmcAwwA/ipe/1WYEXBRpMHCk3g64GHgCb3+jRQCXwZkTvqUQgCk9ecBOwBqoFX3HsGXA2cB/QCE2IfXY4oBIFlwFeBduBHKGDUus8qgcnu9UqgP/7h5YbyAlyzCegE9gHXpNnn/UArstBHYxpXXiiEBR4CmoG/oWmaCt3AeoJ0pinNfgVH3ASOA64F5gLvQ/4vFbqBVYjgPWhaj0qUxCiolqHg8CtgDlBFehfSA3Qha/0ZcJ/b/5T/YeaGOC2wCvgoUOO2kfxvLRrbw8AA8DWCQDMc01BELwjitECA8Sjve3uG/YzA/x0FDgC3AE/z2irlKeQalhGkQ7Ehbh84H/m3TBhcC49F6c24YftUAV8CFqMaegVQF36IuSFOAkuA1wF9wGrgv1ke9yrKFzcSWF89qmLegfzkMeBDqHqpjG7ImRFnHmgo99uKgkhFlsftR0FlGQoiLwOXAh9AxJ1C1jgVuB74sTsmFsTlA9+I/Ng+4G0osjZmeexxVJGUAzvRtJ0G3IVq524U4RuALcAnUKI+QAyqTlxTeCHwJHA3sAh9uWwxHk3ZQ8AlwBHgvSjNeQWRV4GscQ0KNlcTkyQWZxT+NfDOPI7bg5Lqu5AV/hOJDIeRZSYDTpXbdzvyl2vdPl4RZxD5HvAEsqBcfrVS4CXgXcBVwINo2pYTkGdua0CR+DPIbXiHbwKTye8daJrdAyTITbKfiqLwo8DtwDrgz2haJ1GConU1CjZj3Wvv8E3gpUhtfgi4ERERpmroRGQ9g8Y++IcoRVP6hPv8JDAbOCfE9TLCtw+sQJbwAvBd5JO+BczL41y/RZH8GPKB16FAMpzEBKpeqlDg+j4KQF4QRxBZDLS55y8hHzU2j/PsBw6iIHIRir7DB29oGtcA30GNKq/wNYXHuHMny6wSlJ9NJT/yAHYA9wI/AP6AauApw/ZJqtt/QnXzBDy3SH1VIgkUceuQlncUVR/54jSahv3AF9DUhdSBohu4ENiE0p+VyB96gS8CZ6FffoF7HVaWN5RQrwL2AruATwHbSF0SVgEvorr4fOAfIa+fFr4InI9ytqhQiQLPvYi8ixEprYjQZEUC+uEqUTTehEfywJ8P/Dnyf3+J6HyG6uCDwFuA3cCnUUTvYmiqUoKschfwOPBBPMpcPqLwZCQ1bQJaUFS8AfgY0Tr0x4DnEam3IqvrQ0YxgISFucAvURnoJd3wMYUnokE3oKnV5t4brDKHQQL4HfJ/45BvrCXo8A2496ejXsr9EVwzLXxM4e1Iq1uGEt9rgTdHeK0EIqkFBYqTiMTBCk8/ksFmAI8AN5Nf8p4RPixwPCrXFuKnHq1GQWqnu86FKID0EwSS48AFaKXXFkTuETwEFB8EliPybvR0fpDVrUXpyt9Rsl5PkO+Voym91219wL98DMTHFO5GwqfPdkEN8GHgcuRXS0kdJMpQhH4GWWDk8PEly4A/EgSNThSZF5B9HyQTGpCktQHphNNJ3Qc5iSyzBdXhnRFd/wx8WGAlWnnVhaLhLNT/iDKFOYL830eAHyK9MVXdW4qMpJ6gPRoporbASahrVgEsIf1qgrCYjhpLzwGfRZ25wwwlMIGmei0KNFsJcsXIEHUifQ1avrEapQ1zURozhmgssAsRthxN4ZPIChcQiK1JNAI/QbOhHOmCiQjGMARRT+E1qGP2IIrE81HaEdX03Y/0wM1oeUgFEmtrkfU3ocjcj8htRPXyVXha4RWVBS5BpVozKvRrojhpBhxG0tbFaDp3IEJno1VgxxCBTagmvgcJsfOQqrM5ikFEZYF70cAfR0JCHOhEBA2giqQGWWc7Eg/GIH98EM2Etai0q0btz0gQpQ+cg3zeSqSYZINe4PdojUuuAe0UkqySC9EPI7X6k0i9PhdN6zbkQppRg+uOHK8zMswsqu18M3vKzLrMbL0JCRuK42b2qpm9aGYnzOw2d+zzFg5PmtlNZtbuXq83s5vN7G4zW2xmtWZWE+F3PbP5kLNq0WKgx5CFtANXIOd+G0qwN6JqZSuS+5cgS0yVaPe7/S4a9N4TKKAsQrXuDuTjPoem71q3eYfPrlwlIvNl5GvPYeRy6mlgqdunfthnD6PlcDORULAB9ZprgcuQ3x3eYIoFPuvVPkQeBGrISEgqKe9GEX058mE70bqaR1A1MZ6gbOtBaw4HCBSZWFGI+0TSIZn6/Bslx61uW0PwQ5xwGwSuYqY7tiA35YwmAk+7x+Q9clvcNhjVKHWZjcqzBtRvrgduQj2YUtSJq0N+tcPnoHMlcBpKF3o8jCWZk45UtVSiIHQaKd+tBGrz7cB/UIm3GxG9HK1Yzab+rUOu4HhOo84hZD9gZtt8pAJu2+pSkAvyPH6Wma0ws6ZB71WZWVkO52g3sxtyuW62O15vAZojIqzRzC5zz1vNrCckgWG3hYO+47xsj8smjVmKUowkDrj3tuVk6kHDuwlVLJPQeukXgK8Q9G6/jta+lKIcchJastuBtL8Som9RLnLXTN56thl4QzYHZkPgKuSoh+ObaKVAtivia1CjpxetG7wEpSiXI6e/A8lh9ciX7UN1bDlqj1a7z24h9x8vHVpQTznV9zsXqdgjIhsCvwjcmeazXuSkfwM8S/q7L89cj8B6JiOCShE5vagN+XkkmCaQYLAaWd95qN5uQ6lOvqhHUtt7ULqUDnVI0RkR2RBYj9KBN2XY7xC6RXUdWl4Wpgs2BUXWXWgah0GZO9dC1KteymvvehqOO9HfDmREtqXcBCQV5XLfbgf68rvR9NxBMDV9rJ5vQusPZ6Dkeo573oyqlWyxDhGdFXKphRvR35Jcl8NgUuEEstaDSKLvQVMl4Z73oWneT9DZK3OP1aicq0C19XiUTE9x4wvbNPo2EiSyRj5iwseRqjIz045nEZ5Dd0BtyPXAMGrMCrT64Mp8T1Bg9AO/QIuPNuZ7kijkrFbkM65AKclo/r+XAyjQtSG9MHSjPWo9cCJKShehqD0dpR+FwCmC5cB/RaQ9SyBaRALftzmUoIS0BUXFFhQVpyKn34iU6nzRQxCQOlCU34ki/3Y83h+SRNy3/A+5NkqPJiBtbyLBH1Ekb5NIRuEE6vMm70Q6gloBR8ki2fWJQhL4f4FC//nYWY8igSFRJDAkigSGRJHAkCgSGBJFAkOiSGBI/A/JNTAwdVQ1SgAAAABJRU5ErkJggg==);background-size:cover;background-color:#173f3e;margin-bottom:0}.template-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:auto minmax(192px,1fr) auto;grid-template-areas:"logo title provenance"}.template-header.has-actions[_ngcontent-%COMP%]{grid-template-areas:"logo title provenance" "actions actions actions"}.template-header[_ngcontent-%COMP%]{align-items:center;gap:8px 16px;min-width:0;padding:8px clamp(12px,3cqi,32px);background:#fff;border-bottom:1px solid #d7e0df}.logo-block[_ngcontent-%COMP%]{grid-area:logo;align-self:start;display:grid;grid-template-columns:40px 72px;grid-template-rows:1fr 1fr;gap:2px;column-gap:8px;min-width:0;color:inherit;text-decoration:none}.header-image[_ngcontent-%COMP%]{grid-row:1/span 2}.cee-name[_ngcontent-%COMP%], .cee-version[_ngcontent-%COMP%]{min-width:0;font-size:12px;line-height:1}.cee-name[_ngcontent-%COMP%]{align-self:end;font-weight:var(--%NS%cedar-font-weight-medium, 500);color:#000000de}.cee-version[_ngcontent-%COMP%]{align-self:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555}.template-title-block[_ngcontent-%COMP%]{grid-area:title;min-width:0}.template-label[_ngcontent-%COMP%]{margin:0;color:#173f3e;font-size:clamp(20px,3cqi,26px);font-weight:var(--%NS%cedar-font-weight-medium, 500);line-height:1.25;overflow-wrap:anywhere}.template-description[_ngcontent-%COMP%]{max-width:70ch;margin:8px 0 0;color:#555;font-size:14px;line-height:21px}.template-provenance[_ngcontent-%COMP%]{grid-area:provenance;display:flex;align-self:start;flex-direction:column;align-items:flex-end;justify-content:center;gap:4px;min-width:0;color:#555;font-size:12px;line-height:18px;white-space:nowrap}.template-actions[_ngcontent-%COMP%]{grid-area:actions;display:flex;min-width:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 16px}.page-break-control[_ngcontent-%COMP%]{min-width:0}.expand-buttons[_ngcontent-%COMP%]{--%NS%_cedar-height: 30px;display:flex;align-items:center;justify-content:flex-end;gap:2px;margin-inline-end:-4px}.template-content[_ngcontent-%COMP%]{display:grid;gap:0;min-width:0;padding:0 clamp(12px,3cqi,32px) 24px}@container cee (max-width: 1100px){.template-header[_ngcontent-%COMP%]{grid-template-columns:auto minmax(0,1fr) auto}.template-header-paged[_ngcontent-%COMP%]{row-gap:8px;padding-block:12px}.template-actions[_ngcontent-%COMP%]{border-top:1px solid #d7e0df;padding-top:12px}.page-break-control[_ngcontent-%COMP%]{margin-right:auto}.template-header-paged[_ngcontent-%COMP%] .template-actions[_ngcontent-%COMP%]{padding-top:8px}}@container cee (max-width: 520px){.template-header[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"logo provenance" "title title"}.template-header.has-actions[_ngcontent-%COMP%]{grid-template-areas:"logo provenance" "title title" "actions actions"}.template-actions[_ngcontent-%COMP%]{width:100%;align-items:stretch;flex-direction:column}.page-break-control[_ngcontent-%COMP%]{margin-right:0}}.cee-preview[_ngcontent-%COMP%] .template-header[_ngcontent-%COMP%]:not(.has-actions){display:none}.cee-preview[_ngcontent-%COMP%] .template-header.has-actions[_ngcontent-%COMP%]{display:flex;padding:0;border:0}.cee-preview[_ngcontent-%COMP%] .template-header.has-actions[_ngcontent-%COMP%] .template-actions[_ngcontent-%COMP%]{flex:1 1 auto;padding:0;border:0}.cee-preview[_ngcontent-%COMP%] .template-content[_ngcontent-%COMP%]{padding:0}'],changeDetection:1})}}return n})();var oS=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-font-registrar"]],standalone:false,decls:0,vars:0,template:function(i,a){},encapsulation:2,changeDetection:1})}}return n})();function mce(n,t){if(n&1&&ne(0,"app-cedar-embeddable-metadata-editor",1),n&2){let e=A();B("config",e.innerConfig)("dataContextObject",e.dataContext)("handlerContextObject",e.handlerContext)("artifactRevision",e.artifactRevision)}}var Au=(()=>{class n{constructor(e,i,a,r,o,s,l){this.wrapper=e,this.controlledFieldDataService=i,this.messageHandlerService=a,this.activeComponentRegistry=r,this.translateService=o,this.globalSettingsContextService=s,this.fieldReveal=l,this.initialized=false,this.lastPublishedState="",this.artifactRevision=0,this.revealLocation=(c,d={})=>this.editorDataReady()?this.fieldReveal.reveal(this.handlerContext,c,d):Promise.resolve(false),this.artifacts=new rx(this.messageHandlerService),this.configuration=new mh(this.controlledFieldDataService,this.messageHandlerService,this.translateService,this.globalSettingsContextService),this.dataContext=this.artifacts.state.dataContext,this.handlerContext=this.artifacts.state.handlerContext}get innerConfig(){return this.configuration.config}get templateJson(){return this.artifacts.state.templateJson}get instanceJson(){return this.artifacts.state.instanceJson}get templateAndInstanceJson(){return this.artifacts.state.templateAndInstanceJson}suppressNativeChange(e){e.stopPropagation()}ngOnInit(){this.initialized=true,this.doInitialize()}get reveal(){return this.revealLocation}get currentMetadata(){return this.artifacts.instanceInputRejected?{}:_s.toJson(this.handlerContext.dataContext.instanceFullData,this.parsedTemplate())}get currentMetadataYaml(){return this.artifacts.instanceInputRejected?"":_s.toYaml(this.handlerContext.dataContext.instanceFullData,this.parsedTemplate())}parsedTemplate(){let e=this.handlerContext?.dataContext?.templateRepresentation;return e instanceof Bn?e.parsed:null}set templateObject(e){e===null||!this.artifacts.acceptTemplate(e)||this.installArtifactState()}set instanceObject(e){e===null||!this.artifacts.acceptInstance(e)||this.installArtifactState()}set templateAndInstanceObject(e){e===null||!this.artifacts.acceptCombined(e)||this.installArtifactState()}installArtifactState(){let e=this.artifacts.state;this.activeComponentRegistry.clear(),this.dataContext=e.dataContext,this.handlerContext=e.handlerContext,this.handlerContext.setMutationListener(i=>this.publishMutation(i)),this.artifactRevision=e.revision,this.lastPublishedState=this.validationStateKey(),this.doInitialize()}validationStateKey(){return JSON.stringify([this.currentMetadata,this.dataQualityReport])}publishMutation(e){let i=this.currentMetadata,a=this.dataQualityReport,r=JSON.stringify([i,a]);if(r===this.lastPublishedState)return;this.lastPublishedState=r;let o=this.handlerContext.dataContext.instanceFullData,s=e.operation==="valueChanged"?void 0:e.operation,l=Y({operation:e.operation,path:[...e.path],value:e.value,validity:a.isValid===true,dataQualityReport:a,title:o?.schema_name??null,description:o?.schema_description??null},s===void 0?{}:{message:s});e.operation==="valueChanged"&&this.messageHandlerService.valueChanged(l.path,l.value),this.wrapper.nativeElement.dispatchEvent(new CustomEvent("change",{detail:l,bubbles:true,composed:true}))}get dataQualityReport(){return this.artifacts.instanceInputRejected?{}:JSON.parse(JSON.stringify(this.handlerContext.dataContext.dataQualityReport))}ngOnDestroy(){this.activeComponentRegistry.clear()}set config(e){e===null||!this.configuration.accept(e)||this.doInitialize()}set eventHandler(e){this.messageHandlerService.injectEventHandler(e)}doInitialize(){!this.initialized||!this.configuration.hasConfiguration&&!this.editorDataReady()||this.configuration.apply(this.handlerContext)}editorDataReady(){return!this.artifacts.instanceInputRejected&&this.dataContext.templateRepresentation!==null}static{this.\u0275fac=function(i){return new(i||n)(X(Ue),X(ol),X(Di),X(bt),X(Er),X(Na),X(_l))}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-embeddable-metadata-editor-wrapper"]],inputs:{reveal:"reveal",currentMetadata:"currentMetadata",currentMetadataYaml:"currentMetadataYaml",templateObject:"templateObject",instanceObject:"instanceObject",templateAndInstanceObject:"templateAndInstanceObject",dataQualityReport:"dataQualityReport",config:"config",eventHandler:"eventHandler"},standalone:false,features:[vt([{provide:Kp,useClass:S0},{provide:rc,useClass:f0},Yp,Gp,bt,ol,Bi,_l,Na,Di,zo,ea,...n0({loader:{provide:po,useFactory:(e,i,a)=>Sd(e,i,a,{en:nc,hu:ic}),deps:[ur,Di,Na]}})])],decls:3,vars:1,consts:[[3,"change"],[3,"config","dataContextObject","handlerContextObject","artifactRevision"]],template:function(i,a){i&1&&(ne(0,"app-cedar-font-registrar"),T(1,"div",0),ce("change",function(o){return a.suppressNativeChange(o)}),L(2,mce,1,4,"app-cedar-embeddable-metadata-editor",1),k()),i&2&&(_(2),V(a.editorDataReady()?2:-1))},dependencies:[K5,oS],styles:[`@charset "UTF-8";:host([density=authoring]){--%NS%_cedar-density-height: 32px;--%NS%_cedar-density-font: 12px;--%NS%_cedar-density-line: 18px;--%NS%_cedar-density-radius: 4px;--%NS%_cedar-density-border: rgba(0, 0, 0, .38)}:host(:not([density=comfortable])){--%NS%_cedar-textarea-rows: var(--%NS%cedar-textarea-min-rows, 2);--%NS%_cedar-height: var(--%NS%cedar-control-height, var(--%NS%_cedar-density-height, 36px));--%NS%_cedar-font-size: var(--%NS%cedar-control-font-size, var(--%NS%_cedar-density-font, 14px));--%NS%_cedar-line-height: var( --%NS%cedar-control-line-height, var(--%NS%_cedar-density-line, 21px) );--%NS%_cedar-padding: calc((var(--%NS%_cedar-height) - var(--%NS%_cedar-line-height)) / 2);--%NS%_cedar-radius: var(--%NS%cedar-control-radius, var(--%NS%_cedar-density-radius, 4px));--%NS%_cedar-border: var(--%NS%cedar-control-border, var(--%NS%_cedar-density-border, rgba(0, 0, 0, .38)));--%NS%_cedar-focus: var(--%NS%cedar-control-focus, #0f7686);--%NS%_cedar-error: var(--%NS%cedar-control-error, #b42318);--%NS%mat-select-trigger-text-size: var(--%NS%_cedar-font-size);--%NS%mat-select-trigger-text-line-height: var(--%NS%_cedar-line-height);--%NS%mat-form-field-container-height: var(--%NS%_cedar-height);--%NS%mat-form-field-container-vertical-padding: var(--%NS%_cedar-padding);--%NS%mat-form-field-container-text-size: var(--%NS%_cedar-font-size);--%NS%mat-form-field-container-text-line-height: var(--%NS%_cedar-line-height);--%NS%mat-form-field-outlined-container-shape: var(--%NS%_cedar-radius);--%NS%mat-form-field-outlined-outline-color: var(--%NS%_cedar-border);--%NS%mat-form-field-outlined-focus-outline-color: var(--%NS%_cedar-focus);--%NS%mat-form-field-outlined-error-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-outlined-error-focus-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-outlined-error-hover-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-error-text-color: var(--%NS%_cedar-error);font-size:var(--%NS%_cedar-font-size)}:host(:not([density=comfortable])) .mat-mdc-select-arrow-wrapper{height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .mat-mdc-icon-button.mat-mdc-button-base{--%NS%mat-icon-button-state-layer-size: var(--%NS%_cedar-height);display:inline-flex;align-items:center;justify-content:center;width:var(--%NS%_cedar-height);height:var(--%NS%_cedar-height);padding:calc((var(--%NS%_cedar-height) - 24px) / 2)}:host(:not([density=comfortable])) .mat-mdc-icon-button.mat-mdc-button-base .mat-mdc-button-touch-target{width:100%;height:100%}:host(:not([density=comfortable])) .choice-clear-button.mat-mdc-icon-button.mat-mdc-button-base{--%NS%mat-icon-button-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);width:var(--%NS%cedar-row-height-compact, 28px);height:var(--%NS%cedar-row-height-compact, 28px);padding:2px}:host(:not([density=comfortable])) .cee-time-input-shell{min-height:var(--%NS%_cedar-height);border-color:var(--%NS%_cedar-border);border-radius:var(--%NS%_cedar-radius);font-size:var(--%NS%_cedar-font-size)}:host(:not([density=comfortable])) .cee-time-input-shell:focus-within{border-color:var(--%NS%_cedar-focus);box-shadow:inset 0 0 0 1px var(--%NS%_cedar-focus)}:host(:not([density=comfortable])) .cee-time-segment{padding-block:calc(var(--%NS%_cedar-padding) - 1px);line-height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .cee-time-meridian{height:var(--%NS%_cedar-height)}:host(:not([density=comfortable])) .cee-fraction-separator{line-height:var(--%NS%_cedar-height)}:host(:not([density=comfortable])) .cee-spec-box{min-height:var(--%NS%_cedar-height);padding-block:calc(var(--%NS%_cedar-padding) - 1px);border-color:var(--%NS%_cedar-border);border-radius:var(--%NS%_cedar-radius);font-size:var(--%NS%_cedar-font-size);line-height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .cee-read-only{--%NS%mat-form-field-container-height: var(--%NS%_cedar-height);--%NS%mat-form-field-container-vertical-padding: var(--%NS%_cedar-padding)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--%NS%mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--%NS%mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--%NS%mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--%NS%mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--%NS%mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--%NS%mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--%NS%mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--%NS%mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--%NS%mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--%NS%mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--%NS%mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--%NS%mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--%NS%mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--%NS%mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--%NS%mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--%NS%mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--%NS%mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--%NS%mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--%NS%mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--%NS%mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--%NS%mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--%NS%mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--%NS%mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--%NS%mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--%NS%mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html{--%NS%mat-sys-on-surface: initial}.mat-app-background{background-color:var(--%NS%mat-app-background-color, var(--%NS%mat-sys-background, transparent));color:var(--%NS%mat-app-text-color, var(--%NS%mat-sys-on-background, inherit))}:host{display:block;box-sizing:border-box;width:100%;min-width:0;container:cee/inline-size;font-family:CEDAR Roboto,Helvetica Neue,sans-serif;font-size:14px;line-height:normal}:host{color-scheme:light;--%NS%mat-sys-background: #ffffff;--%NS%mat-sys-error: #b42318;--%NS%mat-sys-error-container: #fef3f2;--%NS%mat-sys-inverse-on-surface: #ffffff;--%NS%mat-sys-inverse-primary: #87bbc3;--%NS%mat-sys-inverse-surface: #555;--%NS%mat-sys-on-background: rgba(0, 0, 0, .87);--%NS%mat-sys-on-error: #ffffff;--%NS%mat-sys-on-error-container: #b42318;--%NS%mat-sys-on-primary: #ffffff;--%NS%mat-sys-on-primary-container: #044656;--%NS%mat-sys-on-primary-fixed: #044656;--%NS%mat-sys-on-primary-fixed-variant: #0b6373;--%NS%mat-sys-on-secondary: #ffffff;--%NS%mat-sys-on-secondary-container: #173f3e;--%NS%mat-sys-on-secondary-fixed: #044656;--%NS%mat-sys-on-secondary-fixed-variant: #0b6373;--%NS%mat-sys-on-surface: rgba(0, 0, 0, .87);--%NS%mat-sys-on-surface-variant: #555;--%NS%mat-sys-on-tertiary: #ffffff;--%NS%mat-sys-on-tertiary-container: #173f3e;--%NS%mat-sys-on-tertiary-fixed: #044656;--%NS%mat-sys-on-tertiary-fixed-variant: #0b6373;--%NS%mat-sys-outline: rgba(0, 0, 0, .38);--%NS%mat-sys-outline-variant: #d7e0df;--%NS%mat-sys-primary: #0f7686;--%NS%mat-sys-primary-container: #e2eff0;--%NS%mat-sys-primary-fixed: #e2eff0;--%NS%mat-sys-primary-fixed-dim: #b7d6db;--%NS%mat-sys-scrim: #000000;--%NS%mat-sys-secondary: #0b6373;--%NS%mat-sys-secondary-container: #e4f1f1;--%NS%mat-sys-secondary-fixed: #e2eff0;--%NS%mat-sys-secondary-fixed-dim: #b7d6db;--%NS%mat-sys-shadow: #000000;--%NS%mat-sys-surface: #ffffff;--%NS%mat-sys-surface-bright: #ffffff;--%NS%mat-sys-surface-container: #f4f6f6;--%NS%mat-sys-surface-container-high: #f4f6f6;--%NS%mat-sys-surface-container-highest: #d7e0df;--%NS%mat-sys-surface-container-low: #ffffff;--%NS%mat-sys-surface-container-lowest: #ffffff;--%NS%mat-sys-surface-dim: #d7e0df;--%NS%mat-sys-surface-tint: #0f7686;--%NS%mat-sys-surface-variant: #f4f6f6;--%NS%mat-sys-tertiary: #0f7686;--%NS%mat-sys-tertiary-container: #e4f1f1;--%NS%mat-sys-tertiary-fixed: #e2eff0;--%NS%mat-sys-tertiary-fixed-dim: #b7d6db;--%NS%mat-sys-neutral-variant20: #555;--%NS%mat-sys-neutral10: rgba(0, 0, 0, .87);--%NS%mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-sys-body-large: 400 1rem / 1.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-line-height: 1.5rem;--%NS%mat-sys-body-large-size: 1rem;--%NS%mat-sys-body-large-tracking: .031rem;--%NS%mat-sys-body-medium: 400 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-line-height: 1.25rem;--%NS%mat-sys-body-medium-size: .875rem;--%NS%mat-sys-body-medium-tracking: .016rem;--%NS%mat-sys-body-small: 400 .75rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-line-height: 1rem;--%NS%mat-sys-body-small-size: .75rem;--%NS%mat-sys-body-small-tracking: .025rem;--%NS%mat-sys-display-large: 400 3.562rem / 4rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-line-height: 4rem;--%NS%mat-sys-display-large-size: 3.562rem;--%NS%mat-sys-display-large-tracking: -.016rem;--%NS%mat-sys-display-large-weight: 400;--%NS%mat-sys-display-medium: 400 2.812rem / 3.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-line-height: 3.25rem;--%NS%mat-sys-display-medium-size: 2.812rem;--%NS%mat-sys-display-medium-tracking: 0;--%NS%mat-sys-display-medium-weight: 400;--%NS%mat-sys-display-small: 400 2.25rem / 2.75rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-line-height: 2.75rem;--%NS%mat-sys-display-small-size: 2.25rem;--%NS%mat-sys-display-small-tracking: 0;--%NS%mat-sys-display-small-weight: 400;--%NS%mat-sys-headline-large: 400 2rem / 2.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-line-height: 2.5rem;--%NS%mat-sys-headline-large-size: 2rem;--%NS%mat-sys-headline-large-tracking: 0;--%NS%mat-sys-headline-large-weight: 400;--%NS%mat-sys-headline-medium: 400 1.75rem / 2.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-line-height: 2.25rem;--%NS%mat-sys-headline-medium-size: 1.75rem;--%NS%mat-sys-headline-medium-tracking: 0;--%NS%mat-sys-headline-medium-weight: 400;--%NS%mat-sys-headline-small: 400 1.5rem / 2rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-line-height: 2rem;--%NS%mat-sys-headline-small-size: 1.5rem;--%NS%mat-sys-headline-small-tracking: 0;--%NS%mat-sys-headline-small-weight: 400;--%NS%mat-sys-label-large: 500 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-line-height: 1.25rem;--%NS%mat-sys-label-large-size: .875rem;--%NS%mat-sys-label-large-tracking: .006rem;--%NS%mat-sys-label-large-weight-prominent: 700;--%NS%mat-sys-label-medium: 500 .75rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-line-height: 1rem;--%NS%mat-sys-label-medium-size: .75rem;--%NS%mat-sys-label-medium-tracking: .031rem;--%NS%mat-sys-label-medium-weight-prominent: 700;--%NS%mat-sys-label-small: 500 .688rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-line-height: 1rem;--%NS%mat-sys-label-small-size: .688rem;--%NS%mat-sys-label-small-tracking: .031rem;--%NS%mat-sys-title-large: 400 1.375rem / 1.75rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-line-height: 1.75rem;--%NS%mat-sys-title-large-size: 1.375rem;--%NS%mat-sys-title-large-tracking: 0;--%NS%mat-sys-title-large-weight: 400;--%NS%mat-sys-title-medium: 500 1rem / 1.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-line-height: 1.5rem;--%NS%mat-sys-title-medium-size: 1rem;--%NS%mat-sys-title-medium-tracking: .009rem;--%NS%mat-sys-title-small: 500 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-line-height: 1.25rem;--%NS%mat-sys-title-small-size: .875rem;--%NS%mat-sys-title-small-tracking: .006rem;--%NS%mat-sys-corner-extra-large: 28px;--%NS%mat-sys-corner-extra-large-top: 28px 28px 0 0;--%NS%mat-sys-corner-extra-small: 4px;--%NS%mat-sys-corner-extra-small-top: 4px 4px 0 0;--%NS%mat-sys-corner-full: 9999px;--%NS%mat-sys-corner-large: 16px;--%NS%mat-sys-corner-large-end: 0 16px 16px 0;--%NS%mat-sys-corner-large-start: 16px 0 0 16px;--%NS%mat-sys-corner-large-top: 16px 16px 0 0;--%NS%mat-sys-corner-medium: 12px;--%NS%mat-sys-corner-none: 0;--%NS%mat-sys-corner-small: 8px;--%NS%mat-sys-dragged-state-layer-opacity: .16;--%NS%mat-sys-focus-state-layer-opacity: .12;--%NS%mat-sys-hover-state-layer-opacity: .08;--%NS%mat-sys-pressed-state-layer-opacity: .12;--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-disabled-selected-checkmark-color: var(--%NS%mat-sys-surface);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-label-text-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-selected-checkmark-color: var(--%NS%mat-sys-on-primary);--%NS%mat-checkbox-selected-focus-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-focus-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-hover-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-hover-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-pressed-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-pressed-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-focus-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-focus-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-hover-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-hover-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-icon-color: var(--%NS%mat-sys-on-surface-variant);--%NS%mat-checkbox-unselected-pressed-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-checked-ripple-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-disabled-label-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-disabled-unselected-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-label-text-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-ripple-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-selected-focus-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-hover-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-pressed-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-unselected-focus-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-unselected-hover-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-unselected-icon-color: var(--%NS%mat-sys-on-surface-variant);--%NS%mat-radio-unselected-pressed-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-sys-body-large: 400 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-size: 14px;--%NS%mat-sys-body-large-line-height: 24px;--%NS%mat-sys-body-large-tracking: normal;--%NS%mat-sys-body-large-weight: 400;--%NS%mat-sys-body-medium: 400 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-size: 14px;--%NS%mat-sys-body-medium-line-height: 24px;--%NS%mat-sys-body-medium-tracking: normal;--%NS%mat-sys-body-medium-weight: 400;--%NS%mat-sys-body-small: 400 12px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-size: 12px;--%NS%mat-sys-body-small-line-height: 20px;--%NS%mat-sys-body-small-tracking: normal;--%NS%mat-sys-body-small-weight: 400;--%NS%mat-sys-label-large: 500 14px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-size: 14px;--%NS%mat-sys-label-large-line-height: 20px;--%NS%mat-sys-label-large-tracking: normal;--%NS%mat-sys-label-large-weight: 500;--%NS%mat-sys-label-medium: 500 12px/16px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-size: 12px;--%NS%mat-sys-label-medium-line-height: 16px;--%NS%mat-sys-label-medium-tracking: normal;--%NS%mat-sys-label-medium-weight: 500;--%NS%mat-sys-label-small: 500 12px/16px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-size: 12px;--%NS%mat-sys-label-small-line-height: 16px;--%NS%mat-sys-label-small-tracking: normal;--%NS%mat-sys-label-small-weight: 500;--%NS%mat-sys-title-large: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-size: 18px;--%NS%mat-sys-title-large-line-height: 28px;--%NS%mat-sys-title-large-tracking: normal;--%NS%mat-sys-title-large-weight: 500;--%NS%mat-sys-title-medium: 500 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-size: 14px;--%NS%mat-sys-title-medium-line-height: 24px;--%NS%mat-sys-title-medium-tracking: normal;--%NS%mat-sys-title-medium-weight: 500;--%NS%mat-sys-title-small: 500 14px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-size: 14px;--%NS%mat-sys-title-small-line-height: 20px;--%NS%mat-sys-title-small-tracking: normal;--%NS%mat-sys-title-small-weight: 500;--%NS%mat-sys-headline-large: 500 18px/32px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-size: 18px;--%NS%mat-sys-headline-large-line-height: 32px;--%NS%mat-sys-headline-large-tracking: normal;--%NS%mat-sys-headline-large-weight: 500;--%NS%mat-sys-headline-medium: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-size: 18px;--%NS%mat-sys-headline-medium-line-height: 28px;--%NS%mat-sys-headline-medium-tracking: normal;--%NS%mat-sys-headline-medium-weight: 500;--%NS%mat-sys-headline-small: 500 18px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-size: 18px;--%NS%mat-sys-headline-small-line-height: 24px;--%NS%mat-sys-headline-small-tracking: normal;--%NS%mat-sys-headline-small-weight: 500;--%NS%mat-sys-display-large: 500 18px/32px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-size: 18px;--%NS%mat-sys-display-large-line-height: 32px;--%NS%mat-sys-display-large-tracking: normal;--%NS%mat-sys-display-large-weight: 500;--%NS%mat-sys-display-medium: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-size: 18px;--%NS%mat-sys-display-medium-line-height: 28px;--%NS%mat-sys-display-medium-tracking: normal;--%NS%mat-sys-display-medium-weight: 500;--%NS%mat-sys-display-small: 500 18px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-size: 18px;--%NS%mat-sys-display-small-line-height: 24px;--%NS%mat-sys-display-small-tracking: normal;--%NS%mat-sys-display-small-weight: 500;--%NS%mat-card-elevated-container-shape: 4px;--%NS%mat-card-outlined-container-shape: 4px;--%NS%mat-card-filled-container-shape: 4px;--%NS%mat-expansion-container-shape: 4px;--%NS%mat-button-filled-container-shape: 4px;--%NS%mat-button-outlined-container-shape: 4px;--%NS%mat-button-protected-container-shape: 4px;--%NS%mat-button-text-container-shape: 4px;--%NS%mat-button-tonal-container-shape: 4px;--%NS%mat-chip-container-shape-radius: 9999px;--%NS%mat-datepicker-calendar-date-focus-state-background-color: var(--%NS%cedar-surface-selected, #e4f1f1);--%NS%mat-datepicker-calendar-container-shape: 4px;--%NS%mat-datepicker-calendar-container-touch-shape: 4px;--%NS%mat-datepicker-calendar-container-elevation-shadow: var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));--%NS%mat-datepicker-calendar-container-touch-elevation-shadow: var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));--%NS%mat-form-field-container-height: 48px;--%NS%mat-form-field-container-vertical-padding: 12px;--%NS%mat-form-field-filled-label-display: none;--%NS%mat-form-field-filled-with-label-container-padding-top: 12px;--%NS%mat-form-field-filled-with-label-container-padding-bottom: 12px;--%NS%mat-radio-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);--%NS%mat-radio-touch-target-display: none;--%NS%mat-checkbox-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);--%NS%mat-checkbox-touch-target-display: none;--%NS%mat-expansion-container-text-line-height: 20px;--%NS%mat-form-field-subscript-text-size: 12px;--%NS%mat-form-field-subscript-text-line-height: 18px;--%NS%mat-menu-container-color: #ffffff;--%NS%mat-menu-container-shape: 4px;--%NS%mat-menu-container-elevation-shadow: 0 4px 18px rgba(0, 0, 0, .13);--%NS%mat-menu-divider-color: #d7e0df;--%NS%mat-menu-item-leading-spacing: 12px;--%NS%mat-menu-item-trailing-spacing: 12px;--%NS%mat-menu-item-hover-state-layer-color: #e4f1f1;--%NS%mat-menu-item-focus-state-layer-color: #e4f1f1;--%NS%mat-focus-indicator-border-color: #0f7686;--%NS%mat-focus-indicator-fallback-border-style: none}:host .cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] :host .cdk-visually-hidden{left:auto;right:0}:host textarea.cdk-textarea-autosize{resize:none}:host textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}:host textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-overlay-container{font-family:CEDAR Roboto,Helvetica Neue,sans-serif;font-size:14px;line-height:normal}.form-container{min-width:50%;max-width:100%}.full-width{width:100%}.half-width{width:50%}.half-width-with-margin{width:49%;margin-right:1%}.image-component{max-width:50%;margin-left:auto;margin-right:auto}.image-component div{padding-top:16px}.image-component div:last-child{padding-bottom:16px}.image-component div img{display:block;margin-left:auto;margin-right:auto;max-width:100%}.youtube-component{margin-left:auto;margin-right:auto}.icon-help{margin-left:8px;width:16px!important;height:16px!important}.mat-mdc-card{margin-top:4px}.non-iterable-component{background-color:#f4f6f6}.template-card{box-sizing:border-box;width:100%;max-width:none;min-width:0;background-color:#fff;margin:0;border:none!important}.pager-container{display:flex;flex-wrap:wrap;justify-content:right;align-items:center;margin-right:8px;margin-top:-26px;margin-bottom:-4px}.non-iterable-component>app-cedar-multi-pager .pager-container{margin-right:48px}.pager-container-ro{display:flex;flex-wrap:wrap;justify-content:right;align-items:center;margin-right:8px;margin-top:8px}.inline-readonly-pager>app-cedar-multi-pager .pager-container-ro{margin-top:0}.pager-chips{margin-right:16px}.pager-actions{display:flex;align-items:center;gap:4px}.pager-action-tooltip{display:inline-flex}@container cee (max-width: 620px){.pager-container,.pager-container-ro,.non-iterable-component>app-cedar-multi-pager .pager-container{justify-content:flex-start;margin-top:8px;margin-right:0;margin-bottom:0}.pager-chips{margin-right:12px}.inline-readonly-pager>app-cedar-multi-pager .pager-container-ro{margin-top:8px}}app-sample-templates .mat-expansion-panel{max-width:90%;margin:8px auto 0;background-color:#f4f6f6}app-sample-templates .mat-expansion-panel-header-title .mat-icon{margin-right:16px}app-cedar-multi-pager .pager-chips .mat-mdc-chip.mat-mdc-standard-chip{--%NS%mat-chip-container-height: 26px;--%NS%mat-chip-label-text-size: 12px}app-cedar-multi-pager .pager-chips .mat-mdc-chip.mat-mdc-standard-chip .mat-mdc-chip-action{padding-inline:9px}.mat-icon:hover{color:#0f7686;scale:1.2}.mat-mdc-tooltip .mat-mdc-tooltip-surface{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-font-size, 14px);font-weight:var(--%NS%cedar-font-weight-regular, 400);line-height:var(--%NS%cedar-control-line-height-default, 21px);color:var(--%NS%cedar-color-primary, #0f7686);z-index:var(--%NS%cedar-layer-tooltip, 1200);width:max-content;max-width:min(360px,100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:var(--%NS%cedar-space-2, 8px) var(--%NS%cedar-space-3, 12px);gap:var(--%NS%cedar-space-2, 8px);background:var(--%NS%cedar-surface-raised, #ffffff);border:1px solid var(--%NS%cedar-border-rule, #d7e0df);border-radius:var(--%NS%cedar-radius, 4px);box-shadow:var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));color:var(--%NS%cedar-text-primary, rgba(0, 0, 0, .87));overflow-wrap:anywhere;white-space:normal}.align-start{text-align:start}.align-end{text-align:end}.mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding-inline:0}.mat-mdc-form-field-infix:has(>.cee-settled-term){position:relative}.cee-settled-input{position:absolute;inset:0;opacity:0}.cee-settled-term{display:block;min-width:0;overflow-wrap:anywhere;pointer-events:none}.cee-settled-term-dash{margin:0 var(--%NS%cedar-specification-padding-block, 6px);color:var(--%NS%cedar-specification-separator-color, var(--%NS%cedar-control-border-default, rgba(0, 0, 0, .38)))}.cee-settled-term-single-line{display:flex;align-items:baseline;overflow:hidden}.cee-settled-term-single-line .cee-settled-term-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cee-settled-term-single-line .cee-settled-term-dash,.cee-settled-term-single-line .cee-settled-term-iri{flex:0 0 auto;white-space:nowrap}.input-warning{display:block;--%NS%cedar-icon-color: #b45309;color:#b45309;font-size:12px;line-height:18px;text-align:start}.cdk-overlay-container{z-index:1100!important}:host([density=comfortable]){--%NS%mat-form-field-outlined-outline-color: black}.mat-expansion-panel{border:1px solid rgba(0,0,0,.38);box-shadow:none!important}.mat-mdc-card{box-shadow:none!important;margin-bottom:0}.tooltip{background-color:#000000de}.mat-mdc-option.lookup-failed{color:#b42318;font-style:italic;white-space:normal;line-height:21px}:host :where(.mat-mdc-checkbox:not(:has(input:disabled))) .mdc-label,:host :where(.mat-mdc-radio-button:not(:has(input:disabled))) .mdc-label,:host .mat-mdc-option:not([aria-disabled=true]) .mdc-list-item__primary-text{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-control-font-size, var(--%NS%cedar-font-size, 14px));line-height:var(--%NS%cedar-control-line-height, var(--%NS%cedar-control-line-height-default, 21px));font-weight:var(--%NS%cedar-font-weight-regular, 400);letter-spacing:normal;color:var(--%NS%cedar-text-primary, rgba(0, 0, 0, .87))}.cee-read-only{--%NS%mat-form-field-container-height: 36px;--%NS%mat-form-field-container-vertical-padding: 6px}.cee-read-only .mat-mdc-radio-button .mdc-radio,.cee-read-only .mat-mdc-checkbox .mdc-checkbox{padding:2px}.cee-read-only .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background,.cee-read-only .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:2px;left:2px}.cee-read-only .mat-mdc-radio-button,.cee-read-only .mat-mdc-checkbox{min-height:0}.cee-read-only .mat-mdc-radio-group{display:flex;flex-direction:column}.cee-read-only .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button.mat-mdc-button-base{width:36px;height:36px;padding:6px}.cee-declared-values{--%NS%mat-form-field-filled-input-text-color: var(--%NS%cedar-specification-text, #555);--%NS%mat-form-field-outlined-input-text-color: var(--%NS%cedar-specification-text, #555)}.cee-declared-values .mat-mdc-select-value-text,.cee-declared-values .mat-mdc-radio-button .mdc-label,.cee-declared-values .mat-mdc-checkbox .mdc-label{color:var(--%NS%cedar-specification-text, #555)}.cee-hidden,.cee-hidden.mat-mdc-form-field{display:none}.cee-term-link-action{display:inline-flex;flex:0 0 20px;align-items:center;justify-content:center;width:20px;height:20px;color:inherit;text-decoration:none}.cee-term-link-action .mat-icon{width:16px;height:16px}.required-mark b{font-weight:var(--%NS%cedar-font-weight-medium, 500)}mat-icon.cedar-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:20px;height:20px;font-family:inherit}mat-icon.cedar-icon>svg{display:block}:host .mat-mdc-menu-content{padding:4px}:host .mat-mdc-menu-item{min-height:36px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.expand-buttons .mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center}textarea,textarea.mat-mdc-input-element{resize:none}:host .mat-mdc-option{min-height:var(--%NS%cedar-row-height-compact, 28px);height:auto;padding-block:2px;padding-inline:12px;box-sizing:border-box;line-height:var(--%NS%cedar-control-line-height, var(--%NS%cedar-control-line-height-default, 21px))}:host .mat-mdc-select-panel{padding-block:4px}:host .cee-download-menu .mat-mdc-menu-item mat-icon{color:var(--%NS%cedar-color-primary, #0f7686)}:host .mat-mdc-menu-panel,:host .mat-mdc-menu-content .mat-mdc-menu-item,:host .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-font-size, 14px);font-weight:var(--%NS%cedar-font-weight-regular, 400);line-height:var(--%NS%cedar-control-line-height-default, 21px);color:var(--%NS%cedar-color-primary, #0f7686)}:is(svg[data-cedar-icon],mat-icon,.material-icons,.fa,.glyphicon){color:var(--%NS%cedar-icon-color, var(--%NS%cedar-color-primary, #0f7686))!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important}button:disabled,button[aria-disabled=true],[role=button][aria-disabled=true]{opacity:var(--%NS%cedar-control-disabled-opacity, .45)}[data-cedar-icon-tone=inverse],.btn-primary,.btn-success,.btn-danger,.mat-toolbar.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-primary{--%NS%cedar-icon-color: var(--%NS%cedar-color-on-primary, #ffffff)}[data-cedar-icon-tone=error],mat-icon.mat-warn,.text-danger,.alert-danger{--%NS%cedar-icon-color: var(--%NS%cedar-status-error-text, #b42318)}[data-cedar-icon-tone=warning],.text-warning,.alert-warning{--%NS%cedar-icon-color: var(--%NS%cedar-status-warning-text, #b45309)}[data-cedar-icon-tone=success],.text-success,.alert-success{--%NS%cedar-icon-color: var(--%NS%cedar-status-success-text, #176b3a)}[data-cedar-icon-tone=primary]{--%NS%cedar-icon-color: var(--%NS%cedar-color-primary, #0f7686)}
|
|
6309
6309
|
`],encapsulation:3,changeDetection:1})}}return n})();var sS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({})}return n})();var lS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Ot]})}return n})();var cS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[QT,Ot,QT]})}return n})();var dS=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Ot]})}return n})();var Z5=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=Ye({type:n});static \u0275inj=ze({imports:[Jp,Xa,_C,Ot,dS]})}return n})();function Nk(n){let t=n.basicInfo.inputType??"";return t===le.controlled||t===le.link||xs.has(t)}function Ik(n){return n instanceof gn&&!n.isMultiPage()}function ej(n,t){let e=t.getDataObjectNodeByPath(n.path);if(n.basicInfo.inputType===le.attributeValue)return uce(n,t);if(Ik(n)){let r=(Jn(e)?e:[]).map(o=>Nt.literal(o)).filter(o=>o!=null&&o!=="");return r.length===0?{kind:"none"}:{kind:"literals",values:r}}if(Nk(n)){let a=Nt.iri(e);return a==null||a===""?{kind:"none"}:{kind:"iri",iri:a,label:Nt.label(e)??null}}let i=Nt.literal(e);if(i==null||i==="")return{kind:"none"};if(n.basicInfo.inputType===le.numeric){let a=Number(i);return mS(i)!==null?{kind:"number",value:Number.isFinite(a)&&mS(i)===mS(String(a))?a:i}:{kind:"none"}}return n.basicInfo.inputType===le.temporal?{kind:"temporal",value:i}:{kind:"literal",value:i}}function uce(n,t){let e=t.getDataObjectNodeByPath(n.path),i=t.getParentDataObjectNodeByPath(n.path);if(!Jn(e)||!gi(i))return{kind:"none"};let a={};for(let r of e)r instanceof fa&&r.name!==""&&(a[r.name]=Nt.literal(i.values[r.name])??null);return Object.keys(a).length===0?{kind:"none"}:{kind:"attributes",values:a}}function tj(n,t,e){if(!Ek(n))return'"value" ignored: malformed field value.';let i=t.basicInfo.inputType??"a field";if(i===le.attributeValue)return n.kind==="none"?null:'an attribute-value field names its own slots, so "value" cannot be assigned to one.';if(n.kind==="none")return Ik(t)?e.changeListValue(t,[],"host"):Nk(t)&&i===le.controlled?e.changeControlledValue(t,null,null,"host"):e.changeValue(t,null,null,"host"),null;if(Ik(t))return n.kind==="literals"?(e.changeListValue(t,[...n.values],"host"),null):of(n,i,'"literals"');if(Nk(t))return n.kind!=="iri"?of(n,i,'"iri"'):(i===le.link?e.changeValue(t,n.iri,null,"host"):e.changeControlledValue(t,n.iri,n.label,"host"),null);let a=i===le.numeric?'"number"':i===le.temporal?'"temporal"':'"literal"';switch(n.kind){case"literal":return a==='"literal"'?(e.changeValue(t,n.value,null,"host"),null):of(n,i,a);case"number":return i===le.numeric?(e.changeValue(t,String(n.value),null,"host"),null):of(n,i,a);case"temporal":return i===le.temporal?(e.changeValue(t,n.value,null,"host"),null):of(n,i,a);default:return of(n,i,a)}}function of(n,t,e){return`"value" of kind "${n.kind}" ignored: a ${t} field takes a value of kind ${e}.`}function nj(n,t){switch(n.kind){case"none":return t.kind==="none";case"literal":return t.kind==="literal"&&t.value===n.value;case"number":return t.kind==="number"&&t.value===n.value;case"temporal":return t.kind==="temporal"&&t.value===n.value;case"iri":return t.kind==="iri"&&t.iri===n.iri&&t.label===n.label;case"literals":return t.kind==="literals"&&pce(n.values,t.values);case"attributes":return t.kind==="attributes"&&hce(n.values,t.values)}}function pce(n,t){return n.length===t.length&&n.every((e,i)=>e===t[i])}function hce(n,t){let e=Object.keys(n);return e.length===Object.keys(t).length&&e.every(i=>Object.hasOwn(t,i)&&t[i]===n[i])}function mS(n){let t=/^([+-]?)(\d+(?:\.\d*)?|\.\d+)(?:[eE]([+-]?\d+))?$/.exec(n.trim());if(!t)return null;let[e,i=""]=t[2].split("."),a=(e+i).replace(/^0+/,"");if(!a)return"0";let r=a.replace(/0+$/,""),o=BigInt(t[3]??"0")-BigInt(i.length)+BigInt(a.length-r.length);return`${t[1]==="-"?"-":""}${r}e${o}`}function Ek(n){if(typeof n!="object"||n===null||Array.isArray(n))return false;let t=n;switch(t.kind){case"none":return true;case"literal":case"temporal":return typeof t.value=="string";case"number":return typeof t.value=="number"?Number.isFinite(t.value):typeof t.value=="string"&&mS(t.value)!==null;case"iri":return typeof t.iri=="string"&&(t.label===null||typeof t.label=="string");case"literals":return Array.isArray(t.values)&&Array.from(t.values).every(e=>typeof e=="string");case"attributes":{let e=t.values;return typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)&&Object.values(e).every(i=>i===null||typeof i=="string")}default:return false}}var fce="value";var gce="Single field";var bce="urn:cedar:cee:single-field-template";function ij(n){let t=gd.json().getStrict().getTemplateFieldReader().readFromObject(n).field,e=N2.templateBuilder().withAtId(bce).withSchemaName(gce).withSchemaVersion(k2.CURRENT).withStatus(S2.DRAFT).build();return e.addChild(t,t.createDeploymentBuilder(fce).build()),Fo.json().getStrict().getTemplateWriter().getAsJsonNode(e)}var yce=n=>[n];var vce=()=>[];function _ce(n,t){if(n&1&&ne(0,"div",1),n&2){let e=A().$implicit,i=A();B("componentToRender",e)("handlerContext",i.handlerContext)("showHeader",i.showHeader)("showFieldType",i.showFieldType)}}function xce(n,t){if(n&1&&ne(0,"app-cedar-field-widget",2),n&2){let e=A().$implicit,i=A();B("componentToRender",e)("handlerContext",i.handlerContext)}}function Cce(n,t){if(n&1&&L(0,_ce,1,4,"div",1)(1,xce,1,2,"app-cedar-field-widget",2),n&2){let e=A();V(e.handlerContext.readOnlyMode||e.isPageBreak?0:1)}}var sf=(()=>{class n{constructor(e,i,a,r,o,s,l,c,d,m,b){this.host=e,this.changeDetector=i,this.activeComponentRegistry=a,this.controlledFieldDataService=r,this.externalAuthorityLookupService=o,this.globalSettingsContextService=s,this.messageHandlerService=l,this.renderScheduler=c,this.templateTrustService=d,this.translateService=m,this.userPreferencesService=b,this.dataContext=new ru,this.renderedComponent=null,this.showHeader=true,this.showFieldType=false,this.initialized=false,this.runtime=null,this.assignedValue=null,this.lastPublished={value:{kind:"none"},valid:false},this.applyingAssignedValue=false,this.handlerContext=new lu(this.dataContext,this.messageHandlerService),this.configuration=new mh(this.controlledFieldDataService,this.messageHandlerService,this.translateService,this.globalSettingsContextService),this.widgetConfig=new Mh(this.externalAuthorityLookupService,this.templateTrustService,this.userPreferencesService)}ngOnInit(){this.initialized=true,this.applyConfiguration()}ngOnDestroy(){this.activeComponentRegistry.clear()}suppressNativeChange(e){e.stopPropagation()}set fieldObject(e){if(e===null)return;let i=this.buildRuntime(e);i!==null&&this.install(i)}set value(e){if(e===null)return;let i;try{i=structuredClone(e)}catch(a){this.messageHandlerService.error('cedar-embeddable-field: "value" ignored: expected a plain field value.');return}if(!Ek(i)){this.messageHandlerService.error('cedar-embeddable-field: "value" ignored: malformed field value.');return}(this.runtime===null||this.applyValue(i))&&(this.assignedValue=i)}set config(e){e===null||!this.configuration.accept(e)||this.applyConfiguration()}set eventHandler(e){this.messageHandlerService.injectEventHandler(e)}get currentValue(){let e=this.runtime;return e===null||e.valueComponent===null?{kind:"none"}:ej(e.valueComponent,e.handlerContext)}get currentValueValid(){return this.runtime?.dataContext.dataQualityReport?.isValid===true}buildRuntime(e){let i,a;try{let l=ij(e);i=new ru,a=new lu(i,this.messageHandlerService),i.setInputTemplate(l,a,null)}catch(l){let c=l instanceof Error?l.message:String(l);return this.messageHandlerService.error(`cedar-embeddable-field: "fieldObject" rejected because it is not a readable CEDAR field: ${c}`),null}let o=(i.templateRepresentation?.children??[])[0];if(o===void 0)return this.messageHandlerService.error('cedar-embeddable-field: "fieldObject" rejected because it yielded no field to render.'),null;let s=Uh(o);return s.kind==="field"?{dataContext:i,handlerContext:a,component:o,valueComponent:s.component}:s.kind==="static"?{dataContext:i,handlerContext:a,component:o,valueComponent:null}:(this.messageHandlerService.error(`cedar-embeddable-field: "fieldObject" rejected. ${s.kind==="unsupported"?s.reason:"It is not a field."}`),null)}get isPageBreak(){if(this.renderedComponent===null)return false;let e=Uh(this.renderedComponent);return e.kind==="static"&&e.renderer==="page-break"}install(e){this.activeComponentRegistry.clear(),this.runtime=e,this.dataContext=e.dataContext,this.handlerContext=e.handlerContext,this.renderedComponent=e.component,this.handlerContext.setMutationListener(()=>this.publishValue()),this.lastPublished={value:this.currentValue,valid:this.currentValueValid},this.redraw(),this.applyConfiguration(),this.assignedValue!==null&&!this.applyValue(this.assignedValue)&&(this.assignedValue=null),this.scheduleWidgetSync()}redraw(){this.changeDetector.markForCheck()}applyConfiguration(){if(!this.initialized||!this.configuration.hasConfiguration&&this.runtime===null)return;let e=this.configuration.config??{};this.configuration.apply(this.handlerContext),this.showHeader=!(this.handlerContext.readOnlyMode&&Gr(e,Rn.previewMode,false)),this.showFieldType=!this.showHeader&&Gr(e,Rn.showFieldType,false),this.widgetConfig.apply(e,this.handlerContext.readOnlyMode)}applyValue(e){let i=this.runtime;if(i===null)return false;if(i.valueComponent===null)return e.kind!=="none"&&this.messageHandlerService.error('cedar-embeddable-field: "value" ignored, because a static field holds none.'),e.kind==="none";this.applyingAssignedValue=true;try{let a=tj(e,i.valueComponent,i.handlerContext);if(a!==null)return this.messageHandlerService.error(`cedar-embeddable-field: ${a}`),false}finally{this.applyingAssignedValue=false}return i.handlerContext.instanceSupplied=e.kind!=="none",this.lastPublished={value:this.currentValue,valid:this.currentValueValid},this.redraw(),this.scheduleWidgetSync(),true}scheduleWidgetSync(){let e=this.runtime;e!==null&&this.renderScheduler.schedule(()=>{this.activeComponentRegistry.updateViewToModel(e.component,e.handlerContext),this.lastPublished={value:this.currentValue,valid:this.currentValueValid}}).then(i=>{i&&this.messageHandlerService.ready()}).catch(i=>{let a=i instanceof Error?i.message:String(i);this.messageHandlerService.error(`cedar-embeddable-field: the field could not be rendered: ${a}`)})}publishValue(){if(this.applyingAssignedValue)return;let e=this.currentValue,i=this.currentValueValid;if(nj(e,this.lastPublished.value)&&i===this.lastPublished.valid)return;let a={value:e,valid:i};this.lastPublished=structuredClone(a),this.host.nativeElement.dispatchEvent(new CustomEvent("valueChange",{detail:a,bubbles:true,composed:true}))}static{this.\u0275fac=function(i){return new(i||n)(X(Ue),X(Vt),X(bt),X(ol),X(Bi),X(Na),X(Di),X(zo),X(Ud),X(Er),X(ea))}}static{this.\u0275cmp=fe({type:n,selectors:[["app-cedar-embeddable-field-wrapper"]],inputs:{fieldObject:"fieldObject",value:"value",config:"config",eventHandler:"eventHandler",currentValue:"currentValue",currentValueValid:"currentValueValid"},standalone:false,features:[vt([{provide:Kp,useClass:S0},{provide:rc,useClass:f0},Yp,Gp,bt,ol,Bi,Na,Di,zo,Ud,ea,...n0({loader:{provide:po,useFactory:(e,i,a)=>Sd(e,i,a,{en:nc,hu:ic}),deps:[ur,Di,Na]}})])],decls:4,vars:5,consts:[[1,"cedar-embeddable-field-root",3,"change"],["cedarFieldPresentation","",3,"componentToRender","handlerContext","showHeader","showFieldType"],[3,"componentToRender","handlerContext"]],template:function(i,a){i&1&&(ne(0,"app-cedar-font-registrar"),T(1,"div",0),ce("change",function(o){return a.suppressNativeChange(o)}),Mt(2,Cce,2,1,null,null,Vn),k()),i&2&&(_(),we("cee-read-only",a.handlerContext.readOnlyMode),_(),Dt(a.renderedComponent?It(2,yce,a.renderedComponent):nl(4,vce)))},dependencies:[oS,nf,aS],styles:[`@charset "UTF-8";:host([density=authoring]){--%NS%_cedar-density-height: 32px;--%NS%_cedar-density-font: 12px;--%NS%_cedar-density-line: 18px;--%NS%_cedar-density-radius: 4px;--%NS%_cedar-density-border: rgba(0, 0, 0, .38)}:host(:not([density=comfortable])){--%NS%_cedar-textarea-rows: var(--%NS%cedar-textarea-min-rows, 2);--%NS%_cedar-height: var(--%NS%cedar-control-height, var(--%NS%_cedar-density-height, 36px));--%NS%_cedar-font-size: var(--%NS%cedar-control-font-size, var(--%NS%_cedar-density-font, 14px));--%NS%_cedar-line-height: var( --%NS%cedar-control-line-height, var(--%NS%_cedar-density-line, 21px) );--%NS%_cedar-padding: calc((var(--%NS%_cedar-height) - var(--%NS%_cedar-line-height)) / 2);--%NS%_cedar-radius: var(--%NS%cedar-control-radius, var(--%NS%_cedar-density-radius, 4px));--%NS%_cedar-border: var(--%NS%cedar-control-border, var(--%NS%_cedar-density-border, rgba(0, 0, 0, .38)));--%NS%_cedar-focus: var(--%NS%cedar-control-focus, #0f7686);--%NS%_cedar-error: var(--%NS%cedar-control-error, #b42318);--%NS%mat-select-trigger-text-size: var(--%NS%_cedar-font-size);--%NS%mat-select-trigger-text-line-height: var(--%NS%_cedar-line-height);--%NS%mat-form-field-container-height: var(--%NS%_cedar-height);--%NS%mat-form-field-container-vertical-padding: var(--%NS%_cedar-padding);--%NS%mat-form-field-container-text-size: var(--%NS%_cedar-font-size);--%NS%mat-form-field-container-text-line-height: var(--%NS%_cedar-line-height);--%NS%mat-form-field-outlined-container-shape: var(--%NS%_cedar-radius);--%NS%mat-form-field-outlined-outline-color: var(--%NS%_cedar-border);--%NS%mat-form-field-outlined-focus-outline-color: var(--%NS%_cedar-focus);--%NS%mat-form-field-outlined-error-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-outlined-error-focus-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-outlined-error-hover-outline-color: var(--%NS%_cedar-error);--%NS%mat-form-field-error-text-color: var(--%NS%_cedar-error);font-size:var(--%NS%_cedar-font-size)}:host(:not([density=comfortable])) .mat-mdc-select-arrow-wrapper{height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .mat-mdc-icon-button.mat-mdc-button-base{--%NS%mat-icon-button-state-layer-size: var(--%NS%_cedar-height);display:inline-flex;align-items:center;justify-content:center;width:var(--%NS%_cedar-height);height:var(--%NS%_cedar-height);padding:calc((var(--%NS%_cedar-height) - 24px) / 2)}:host(:not([density=comfortable])) .mat-mdc-icon-button.mat-mdc-button-base .mat-mdc-button-touch-target{width:100%;height:100%}:host(:not([density=comfortable])) .choice-clear-button.mat-mdc-icon-button.mat-mdc-button-base{--%NS%mat-icon-button-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);width:var(--%NS%cedar-row-height-compact, 28px);height:var(--%NS%cedar-row-height-compact, 28px);padding:2px}:host(:not([density=comfortable])) .cee-time-input-shell{min-height:var(--%NS%_cedar-height);border-color:var(--%NS%_cedar-border);border-radius:var(--%NS%_cedar-radius);font-size:var(--%NS%_cedar-font-size)}:host(:not([density=comfortable])) .cee-time-input-shell:focus-within{border-color:var(--%NS%_cedar-focus);box-shadow:inset 0 0 0 1px var(--%NS%_cedar-focus)}:host(:not([density=comfortable])) .cee-time-segment{padding-block:calc(var(--%NS%_cedar-padding) - 1px);line-height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .cee-time-meridian{height:var(--%NS%_cedar-height)}:host(:not([density=comfortable])) .cee-fraction-separator{line-height:var(--%NS%_cedar-height)}:host(:not([density=comfortable])) .cee-spec-box{min-height:var(--%NS%_cedar-height);padding-block:calc(var(--%NS%_cedar-padding) - 1px);border-color:var(--%NS%_cedar-border);border-radius:var(--%NS%_cedar-radius);font-size:var(--%NS%_cedar-font-size);line-height:var(--%NS%_cedar-line-height)}:host(:not([density=comfortable])) .cee-read-only{--%NS%mat-form-field-container-height: var(--%NS%_cedar-height);--%NS%mat-form-field-container-vertical-padding: var(--%NS%_cedar-padding)}.mat-elevation-z0,.mat-mdc-elevation-specific.mat-elevation-z0{box-shadow:var(--%NS%mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1,.mat-mdc-elevation-specific.mat-elevation-z1{box-shadow:var(--%NS%mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2,.mat-mdc-elevation-specific.mat-elevation-z2{box-shadow:var(--%NS%mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3,.mat-mdc-elevation-specific.mat-elevation-z3{box-shadow:var(--%NS%mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4,.mat-mdc-elevation-specific.mat-elevation-z4{box-shadow:var(--%NS%mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5,.mat-mdc-elevation-specific.mat-elevation-z5{box-shadow:var(--%NS%mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6,.mat-mdc-elevation-specific.mat-elevation-z6{box-shadow:var(--%NS%mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7,.mat-mdc-elevation-specific.mat-elevation-z7{box-shadow:var(--%NS%mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8,.mat-mdc-elevation-specific.mat-elevation-z8{box-shadow:var(--%NS%mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9,.mat-mdc-elevation-specific.mat-elevation-z9{box-shadow:var(--%NS%mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10,.mat-mdc-elevation-specific.mat-elevation-z10{box-shadow:var(--%NS%mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11,.mat-mdc-elevation-specific.mat-elevation-z11{box-shadow:var(--%NS%mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12,.mat-mdc-elevation-specific.mat-elevation-z12{box-shadow:var(--%NS%mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13,.mat-mdc-elevation-specific.mat-elevation-z13{box-shadow:var(--%NS%mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14,.mat-mdc-elevation-specific.mat-elevation-z14{box-shadow:var(--%NS%mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15,.mat-mdc-elevation-specific.mat-elevation-z15{box-shadow:var(--%NS%mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16,.mat-mdc-elevation-specific.mat-elevation-z16{box-shadow:var(--%NS%mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17,.mat-mdc-elevation-specific.mat-elevation-z17{box-shadow:var(--%NS%mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18,.mat-mdc-elevation-specific.mat-elevation-z18{box-shadow:var(--%NS%mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19,.mat-mdc-elevation-specific.mat-elevation-z19{box-shadow:var(--%NS%mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20,.mat-mdc-elevation-specific.mat-elevation-z20{box-shadow:var(--%NS%mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21,.mat-mdc-elevation-specific.mat-elevation-z21{box-shadow:var(--%NS%mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22,.mat-mdc-elevation-specific.mat-elevation-z22{box-shadow:var(--%NS%mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23,.mat-mdc-elevation-specific.mat-elevation-z23{box-shadow:var(--%NS%mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24,.mat-mdc-elevation-specific.mat-elevation-z24{box-shadow:var(--%NS%mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html{--%NS%mat-sys-on-surface: initial}.mat-app-background{background-color:var(--%NS%mat-app-background-color, var(--%NS%mat-sys-background, transparent));color:var(--%NS%mat-app-text-color, var(--%NS%mat-sys-on-background, inherit))}:host{display:block;box-sizing:border-box;width:100%;min-width:0;container:cee/inline-size;font-family:CEDAR Roboto,Helvetica Neue,sans-serif;font-size:14px;line-height:normal}:host{color-scheme:light;--%NS%mat-sys-background: #ffffff;--%NS%mat-sys-error: #b42318;--%NS%mat-sys-error-container: #fef3f2;--%NS%mat-sys-inverse-on-surface: #ffffff;--%NS%mat-sys-inverse-primary: #87bbc3;--%NS%mat-sys-inverse-surface: #555;--%NS%mat-sys-on-background: rgba(0, 0, 0, .87);--%NS%mat-sys-on-error: #ffffff;--%NS%mat-sys-on-error-container: #b42318;--%NS%mat-sys-on-primary: #ffffff;--%NS%mat-sys-on-primary-container: #044656;--%NS%mat-sys-on-primary-fixed: #044656;--%NS%mat-sys-on-primary-fixed-variant: #0b6373;--%NS%mat-sys-on-secondary: #ffffff;--%NS%mat-sys-on-secondary-container: #173f3e;--%NS%mat-sys-on-secondary-fixed: #044656;--%NS%mat-sys-on-secondary-fixed-variant: #0b6373;--%NS%mat-sys-on-surface: rgba(0, 0, 0, .87);--%NS%mat-sys-on-surface-variant: #555;--%NS%mat-sys-on-tertiary: #ffffff;--%NS%mat-sys-on-tertiary-container: #173f3e;--%NS%mat-sys-on-tertiary-fixed: #044656;--%NS%mat-sys-on-tertiary-fixed-variant: #0b6373;--%NS%mat-sys-outline: rgba(0, 0, 0, .38);--%NS%mat-sys-outline-variant: #d7e0df;--%NS%mat-sys-primary: #0f7686;--%NS%mat-sys-primary-container: #e2eff0;--%NS%mat-sys-primary-fixed: #e2eff0;--%NS%mat-sys-primary-fixed-dim: #b7d6db;--%NS%mat-sys-scrim: #000000;--%NS%mat-sys-secondary: #0b6373;--%NS%mat-sys-secondary-container: #e4f1f1;--%NS%mat-sys-secondary-fixed: #e2eff0;--%NS%mat-sys-secondary-fixed-dim: #b7d6db;--%NS%mat-sys-shadow: #000000;--%NS%mat-sys-surface: #ffffff;--%NS%mat-sys-surface-bright: #ffffff;--%NS%mat-sys-surface-container: #f4f6f6;--%NS%mat-sys-surface-container-high: #f4f6f6;--%NS%mat-sys-surface-container-highest: #d7e0df;--%NS%mat-sys-surface-container-low: #ffffff;--%NS%mat-sys-surface-container-lowest: #ffffff;--%NS%mat-sys-surface-dim: #d7e0df;--%NS%mat-sys-surface-tint: #0f7686;--%NS%mat-sys-surface-variant: #f4f6f6;--%NS%mat-sys-tertiary: #0f7686;--%NS%mat-sys-tertiary-container: #e4f1f1;--%NS%mat-sys-tertiary-fixed: #e2eff0;--%NS%mat-sys-tertiary-fixed-dim: #b7d6db;--%NS%mat-sys-neutral-variant20: #555;--%NS%mat-sys-neutral10: rgba(0, 0, 0, .87);--%NS%mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-sys-body-large: 400 1rem / 1.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-line-height: 1.5rem;--%NS%mat-sys-body-large-size: 1rem;--%NS%mat-sys-body-large-tracking: .031rem;--%NS%mat-sys-body-medium: 400 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-line-height: 1.25rem;--%NS%mat-sys-body-medium-size: .875rem;--%NS%mat-sys-body-medium-tracking: .016rem;--%NS%mat-sys-body-small: 400 .75rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-line-height: 1rem;--%NS%mat-sys-body-small-size: .75rem;--%NS%mat-sys-body-small-tracking: .025rem;--%NS%mat-sys-display-large: 400 3.562rem / 4rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-line-height: 4rem;--%NS%mat-sys-display-large-size: 3.562rem;--%NS%mat-sys-display-large-tracking: -.016rem;--%NS%mat-sys-display-large-weight: 400;--%NS%mat-sys-display-medium: 400 2.812rem / 3.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-line-height: 3.25rem;--%NS%mat-sys-display-medium-size: 2.812rem;--%NS%mat-sys-display-medium-tracking: 0;--%NS%mat-sys-display-medium-weight: 400;--%NS%mat-sys-display-small: 400 2.25rem / 2.75rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-line-height: 2.75rem;--%NS%mat-sys-display-small-size: 2.25rem;--%NS%mat-sys-display-small-tracking: 0;--%NS%mat-sys-display-small-weight: 400;--%NS%mat-sys-headline-large: 400 2rem / 2.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-line-height: 2.5rem;--%NS%mat-sys-headline-large-size: 2rem;--%NS%mat-sys-headline-large-tracking: 0;--%NS%mat-sys-headline-large-weight: 400;--%NS%mat-sys-headline-medium: 400 1.75rem / 2.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-line-height: 2.25rem;--%NS%mat-sys-headline-medium-size: 1.75rem;--%NS%mat-sys-headline-medium-tracking: 0;--%NS%mat-sys-headline-medium-weight: 400;--%NS%mat-sys-headline-small: 400 1.5rem / 2rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-line-height: 2rem;--%NS%mat-sys-headline-small-size: 1.5rem;--%NS%mat-sys-headline-small-tracking: 0;--%NS%mat-sys-headline-small-weight: 400;--%NS%mat-sys-label-large: 500 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-line-height: 1.25rem;--%NS%mat-sys-label-large-size: .875rem;--%NS%mat-sys-label-large-tracking: .006rem;--%NS%mat-sys-label-large-weight-prominent: 700;--%NS%mat-sys-label-medium: 500 .75rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-line-height: 1rem;--%NS%mat-sys-label-medium-size: .75rem;--%NS%mat-sys-label-medium-tracking: .031rem;--%NS%mat-sys-label-medium-weight-prominent: 700;--%NS%mat-sys-label-small: 500 .688rem / 1rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-line-height: 1rem;--%NS%mat-sys-label-small-size: .688rem;--%NS%mat-sys-label-small-tracking: .031rem;--%NS%mat-sys-title-large: 400 1.375rem / 1.75rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-line-height: 1.75rem;--%NS%mat-sys-title-large-size: 1.375rem;--%NS%mat-sys-title-large-tracking: 0;--%NS%mat-sys-title-large-weight: 400;--%NS%mat-sys-title-medium: 500 1rem / 1.5rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-line-height: 1.5rem;--%NS%mat-sys-title-medium-size: 1rem;--%NS%mat-sys-title-medium-tracking: .009rem;--%NS%mat-sys-title-small: 500 .875rem / 1.25rem CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-font: CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-line-height: 1.25rem;--%NS%mat-sys-title-small-size: .875rem;--%NS%mat-sys-title-small-tracking: .006rem;--%NS%mat-sys-corner-extra-large: 28px;--%NS%mat-sys-corner-extra-large-top: 28px 28px 0 0;--%NS%mat-sys-corner-extra-small: 4px;--%NS%mat-sys-corner-extra-small-top: 4px 4px 0 0;--%NS%mat-sys-corner-full: 9999px;--%NS%mat-sys-corner-large: 16px;--%NS%mat-sys-corner-large-end: 0 16px 16px 0;--%NS%mat-sys-corner-large-start: 16px 0 0 16px;--%NS%mat-sys-corner-large-top: 16px 16px 0 0;--%NS%mat-sys-corner-medium: 12px;--%NS%mat-sys-corner-none: 0;--%NS%mat-sys-corner-small: 8px;--%NS%mat-sys-dragged-state-layer-opacity: .16;--%NS%mat-sys-focus-state-layer-opacity: .12;--%NS%mat-sys-hover-state-layer-opacity: .08;--%NS%mat-sys-pressed-state-layer-opacity: .12;--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-disabled-selected-checkmark-color: var(--%NS%mat-sys-surface);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-checkbox-label-text-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-selected-checkmark-color: var(--%NS%mat-sys-on-primary);--%NS%mat-checkbox-selected-focus-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-focus-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-hover-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-hover-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-pressed-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-checkbox-selected-pressed-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-focus-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-focus-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-hover-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-hover-state-layer-color: var(--%NS%mat-sys-on-surface);--%NS%mat-checkbox-unselected-icon-color: var(--%NS%mat-sys-on-surface-variant);--%NS%mat-checkbox-unselected-pressed-state-layer-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-checked-ripple-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-disabled-label-color: color-mix(in srgb, var(--%NS%mat-sys-on-surface) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-disabled-unselected-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-label-text-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-ripple-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-selected-focus-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-hover-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-selected-pressed-icon-color: var(--%NS%mat-sys-primary);--%NS%mat-radio-unselected-focus-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-unselected-hover-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-radio-unselected-icon-color: var(--%NS%mat-sys-on-surface-variant);--%NS%mat-radio-unselected-pressed-icon-color: var(--%NS%mat-sys-on-surface);--%NS%mat-sys-body-large: 400 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-large-size: 14px;--%NS%mat-sys-body-large-line-height: 24px;--%NS%mat-sys-body-large-tracking: normal;--%NS%mat-sys-body-large-weight: 400;--%NS%mat-sys-body-medium: 400 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-medium-size: 14px;--%NS%mat-sys-body-medium-line-height: 24px;--%NS%mat-sys-body-medium-tracking: normal;--%NS%mat-sys-body-medium-weight: 400;--%NS%mat-sys-body-small: 400 12px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-body-small-size: 12px;--%NS%mat-sys-body-small-line-height: 20px;--%NS%mat-sys-body-small-tracking: normal;--%NS%mat-sys-body-small-weight: 400;--%NS%mat-sys-label-large: 500 14px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-large-size: 14px;--%NS%mat-sys-label-large-line-height: 20px;--%NS%mat-sys-label-large-tracking: normal;--%NS%mat-sys-label-large-weight: 500;--%NS%mat-sys-label-medium: 500 12px/16px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-medium-size: 12px;--%NS%mat-sys-label-medium-line-height: 16px;--%NS%mat-sys-label-medium-tracking: normal;--%NS%mat-sys-label-medium-weight: 500;--%NS%mat-sys-label-small: 500 12px/16px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-label-small-size: 12px;--%NS%mat-sys-label-small-line-height: 16px;--%NS%mat-sys-label-small-tracking: normal;--%NS%mat-sys-label-small-weight: 500;--%NS%mat-sys-title-large: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-large-size: 18px;--%NS%mat-sys-title-large-line-height: 28px;--%NS%mat-sys-title-large-tracking: normal;--%NS%mat-sys-title-large-weight: 500;--%NS%mat-sys-title-medium: 500 14px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-medium-size: 14px;--%NS%mat-sys-title-medium-line-height: 24px;--%NS%mat-sys-title-medium-tracking: normal;--%NS%mat-sys-title-medium-weight: 500;--%NS%mat-sys-title-small: 500 14px/20px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-title-small-size: 14px;--%NS%mat-sys-title-small-line-height: 20px;--%NS%mat-sys-title-small-tracking: normal;--%NS%mat-sys-title-small-weight: 500;--%NS%mat-sys-headline-large: 500 18px/32px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-large-size: 18px;--%NS%mat-sys-headline-large-line-height: 32px;--%NS%mat-sys-headline-large-tracking: normal;--%NS%mat-sys-headline-large-weight: 500;--%NS%mat-sys-headline-medium: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-medium-size: 18px;--%NS%mat-sys-headline-medium-line-height: 28px;--%NS%mat-sys-headline-medium-tracking: normal;--%NS%mat-sys-headline-medium-weight: 500;--%NS%mat-sys-headline-small: 500 18px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-headline-small-size: 18px;--%NS%mat-sys-headline-small-line-height: 24px;--%NS%mat-sys-headline-small-tracking: normal;--%NS%mat-sys-headline-small-weight: 500;--%NS%mat-sys-display-large: 500 18px/32px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-large-size: 18px;--%NS%mat-sys-display-large-line-height: 32px;--%NS%mat-sys-display-large-tracking: normal;--%NS%mat-sys-display-large-weight: 500;--%NS%mat-sys-display-medium: 500 18px/28px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-medium-size: 18px;--%NS%mat-sys-display-medium-line-height: 28px;--%NS%mat-sys-display-medium-tracking: normal;--%NS%mat-sys-display-medium-weight: 500;--%NS%mat-sys-display-small: 500 18px/24px CEDAR Roboto, Helvetica Neue, sans-serif;--%NS%mat-sys-display-small-size: 18px;--%NS%mat-sys-display-small-line-height: 24px;--%NS%mat-sys-display-small-tracking: normal;--%NS%mat-sys-display-small-weight: 500;--%NS%mat-card-elevated-container-shape: 4px;--%NS%mat-card-outlined-container-shape: 4px;--%NS%mat-card-filled-container-shape: 4px;--%NS%mat-expansion-container-shape: 4px;--%NS%mat-button-filled-container-shape: 4px;--%NS%mat-button-outlined-container-shape: 4px;--%NS%mat-button-protected-container-shape: 4px;--%NS%mat-button-text-container-shape: 4px;--%NS%mat-button-tonal-container-shape: 4px;--%NS%mat-chip-container-shape-radius: 9999px;--%NS%mat-datepicker-calendar-date-focus-state-background-color: var(--%NS%cedar-surface-selected, #e4f1f1);--%NS%mat-datepicker-calendar-container-shape: 4px;--%NS%mat-datepicker-calendar-container-touch-shape: 4px;--%NS%mat-datepicker-calendar-container-elevation-shadow: var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));--%NS%mat-datepicker-calendar-container-touch-elevation-shadow: var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));--%NS%mat-form-field-container-height: 48px;--%NS%mat-form-field-container-vertical-padding: 12px;--%NS%mat-form-field-filled-label-display: none;--%NS%mat-form-field-filled-with-label-container-padding-top: 12px;--%NS%mat-form-field-filled-with-label-container-padding-bottom: 12px;--%NS%mat-radio-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);--%NS%mat-radio-touch-target-display: none;--%NS%mat-checkbox-state-layer-size: var(--%NS%cedar-row-height-compact, 28px);--%NS%mat-checkbox-touch-target-display: none;--%NS%mat-expansion-container-text-line-height: 20px;--%NS%mat-form-field-subscript-text-size: 12px;--%NS%mat-form-field-subscript-text-line-height: 18px;--%NS%mat-menu-container-color: #ffffff;--%NS%mat-menu-container-shape: 4px;--%NS%mat-menu-container-elevation-shadow: 0 4px 18px rgba(0, 0, 0, .13);--%NS%mat-menu-divider-color: #d7e0df;--%NS%mat-menu-item-leading-spacing: 12px;--%NS%mat-menu-item-trailing-spacing: 12px;--%NS%mat-menu-item-hover-state-layer-color: #e4f1f1;--%NS%mat-menu-item-focus-state-layer-color: #e4f1f1;--%NS%mat-focus-indicator-border-color: #0f7686;--%NS%mat-focus-indicator-fallback-border-style: none}:host .cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] :host .cdk-visually-hidden{left:auto;right:0}:host textarea.cdk-textarea-autosize{resize:none}:host textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}:host textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}.cdk-overlay-container{font-family:CEDAR Roboto,Helvetica Neue,sans-serif;font-size:14px;line-height:normal}.form-container{min-width:50%;max-width:100%}.full-width{width:100%}.half-width{width:50%}.half-width-with-margin{width:49%;margin-right:1%}.image-component{max-width:50%;margin-left:auto;margin-right:auto}.image-component div{padding-top:16px}.image-component div:last-child{padding-bottom:16px}.image-component div img{display:block;margin-left:auto;margin-right:auto;max-width:100%}.youtube-component{margin-left:auto;margin-right:auto}.icon-help{margin-left:8px;width:16px!important;height:16px!important}.mat-mdc-card{margin-top:4px}.non-iterable-component{background-color:#f4f6f6}.template-card{box-sizing:border-box;width:100%;max-width:none;min-width:0;background-color:#fff;margin:0;border:none!important}.pager-container{display:flex;flex-wrap:wrap;justify-content:right;align-items:center;margin-right:8px;margin-top:-26px;margin-bottom:-4px}.non-iterable-component>app-cedar-multi-pager .pager-container{margin-right:48px}.pager-container-ro{display:flex;flex-wrap:wrap;justify-content:right;align-items:center;margin-right:8px;margin-top:8px}.inline-readonly-pager>app-cedar-multi-pager .pager-container-ro{margin-top:0}.pager-chips{margin-right:16px}.pager-actions{display:flex;align-items:center;gap:4px}.pager-action-tooltip{display:inline-flex}@container cee (max-width: 620px){.pager-container,.pager-container-ro,.non-iterable-component>app-cedar-multi-pager .pager-container{justify-content:flex-start;margin-top:8px;margin-right:0;margin-bottom:0}.pager-chips{margin-right:12px}.inline-readonly-pager>app-cedar-multi-pager .pager-container-ro{margin-top:8px}}app-sample-templates .mat-expansion-panel{max-width:90%;margin:8px auto 0;background-color:#f4f6f6}app-sample-templates .mat-expansion-panel-header-title .mat-icon{margin-right:16px}app-cedar-multi-pager .pager-chips .mat-mdc-chip.mat-mdc-standard-chip{--%NS%mat-chip-container-height: 26px;--%NS%mat-chip-label-text-size: 12px}app-cedar-multi-pager .pager-chips .mat-mdc-chip.mat-mdc-standard-chip .mat-mdc-chip-action{padding-inline:9px}.mat-icon:hover{color:#0f7686;scale:1.2}.mat-mdc-tooltip .mat-mdc-tooltip-surface{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-font-size, 14px);font-weight:var(--%NS%cedar-font-weight-regular, 400);line-height:var(--%NS%cedar-control-line-height-default, 21px);color:var(--%NS%cedar-color-primary, #0f7686);z-index:var(--%NS%cedar-layer-tooltip, 1200);width:max-content;max-width:min(360px,100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;padding:var(--%NS%cedar-space-2, 8px) var(--%NS%cedar-space-3, 12px);gap:var(--%NS%cedar-space-2, 8px);background:var(--%NS%cedar-surface-raised, #ffffff);border:1px solid var(--%NS%cedar-border-rule, #d7e0df);border-radius:var(--%NS%cedar-radius, 4px);box-shadow:var(--%NS%cedar-shadow-overlay, 0 4px 18px rgba(0, 0, 0, .13));color:var(--%NS%cedar-text-primary, rgba(0, 0, 0, .87));overflow-wrap:anywhere;white-space:normal}.align-start{text-align:start}.align-end{text-align:end}.mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding-inline:0}.mat-mdc-form-field-infix:has(>.cee-settled-term){position:relative}.cee-settled-input{position:absolute;inset:0;opacity:0}.cee-settled-term{display:block;min-width:0;overflow-wrap:anywhere;pointer-events:none}.cee-settled-term-dash{margin:0 var(--%NS%cedar-specification-padding-block, 6px);color:var(--%NS%cedar-specification-separator-color, var(--%NS%cedar-control-border-default, rgba(0, 0, 0, .38)))}.cee-settled-term-single-line{display:flex;align-items:baseline;overflow:hidden}.cee-settled-term-single-line .cee-settled-term-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cee-settled-term-single-line .cee-settled-term-dash,.cee-settled-term-single-line .cee-settled-term-iri{flex:0 0 auto;white-space:nowrap}.input-warning{display:block;--%NS%cedar-icon-color: #b45309;color:#b45309;font-size:12px;line-height:18px;text-align:start}.cdk-overlay-container{z-index:1100!important}:host([density=comfortable]){--%NS%mat-form-field-outlined-outline-color: black}.mat-expansion-panel{border:1px solid rgba(0,0,0,.38);box-shadow:none!important}.mat-mdc-card{box-shadow:none!important;margin-bottom:0}.tooltip{background-color:#000000de}.mat-mdc-option.lookup-failed{color:#b42318;font-style:italic;white-space:normal;line-height:21px}:host :where(.mat-mdc-checkbox:not(:has(input:disabled))) .mdc-label,:host :where(.mat-mdc-radio-button:not(:has(input:disabled))) .mdc-label,:host .mat-mdc-option:not([aria-disabled=true]) .mdc-list-item__primary-text{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-control-font-size, var(--%NS%cedar-font-size, 14px));line-height:var(--%NS%cedar-control-line-height, var(--%NS%cedar-control-line-height-default, 21px));font-weight:var(--%NS%cedar-font-weight-regular, 400);letter-spacing:normal;color:var(--%NS%cedar-text-primary, rgba(0, 0, 0, .87))}.cee-read-only{--%NS%mat-form-field-container-height: 36px;--%NS%mat-form-field-container-vertical-padding: 6px}.cee-read-only .mat-mdc-radio-button .mdc-radio,.cee-read-only .mat-mdc-checkbox .mdc-checkbox{padding:2px}.cee-read-only .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__background,.cee-read-only .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control{top:2px;left:2px}.cee-read-only .mat-mdc-radio-button,.cee-read-only .mat-mdc-checkbox{min-height:0}.cee-read-only .mat-mdc-radio-group{display:flex;flex-direction:column}.cee-read-only .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button.mat-mdc-button-base{width:36px;height:36px;padding:6px}.cee-declared-values{--%NS%mat-form-field-filled-input-text-color: var(--%NS%cedar-specification-text, #555);--%NS%mat-form-field-outlined-input-text-color: var(--%NS%cedar-specification-text, #555)}.cee-declared-values .mat-mdc-select-value-text,.cee-declared-values .mat-mdc-radio-button .mdc-label,.cee-declared-values .mat-mdc-checkbox .mdc-label{color:var(--%NS%cedar-specification-text, #555)}.cee-hidden,.cee-hidden.mat-mdc-form-field{display:none}.cee-term-link-action{display:inline-flex;flex:0 0 20px;align-items:center;justify-content:center;width:20px;height:20px;color:inherit;text-decoration:none}.cee-term-link-action .mat-icon{width:16px;height:16px}.required-mark b{font-weight:var(--%NS%cedar-font-weight-medium, 500)}mat-icon.cedar-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;width:20px;height:20px;font-family:inherit}mat-icon.cedar-icon>svg{display:block}:host .mat-mdc-menu-content{padding:4px}:host .mat-mdc-menu-item{min-height:36px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.expand-buttons .mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center}textarea,textarea.mat-mdc-input-element{resize:none}:host .mat-mdc-option{min-height:var(--%NS%cedar-row-height-compact, 28px);height:auto;padding-block:2px;padding-inline:12px;box-sizing:border-box;line-height:var(--%NS%cedar-control-line-height, var(--%NS%cedar-control-line-height-default, 21px))}:host .mat-mdc-select-panel{padding-block:4px}:host .cee-download-menu .mat-mdc-menu-item mat-icon{color:var(--%NS%cedar-color-primary, #0f7686)}:host .mat-mdc-menu-panel,:host .mat-mdc-menu-content .mat-mdc-menu-item,:host .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{font-family:var(--%NS%cedar-font-family, CEDAR Roboto, Helvetica Neue, sans-serif);font-size:var(--%NS%cedar-font-size, 14px);font-weight:var(--%NS%cedar-font-weight-regular, 400);line-height:var(--%NS%cedar-control-line-height-default, 21px);color:var(--%NS%cedar-color-primary, #0f7686)}:is(svg[data-cedar-icon],mat-icon,.material-icons,.fa,.glyphicon){color:var(--%NS%cedar-icon-color, var(--%NS%cedar-color-primary, #0f7686))!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important}button:disabled,button[aria-disabled=true],[role=button][aria-disabled=true]{opacity:var(--%NS%cedar-control-disabled-opacity, .45)}[data-cedar-icon-tone=inverse],.btn-primary,.btn-success,.btn-danger,.mat-toolbar.mat-primary,.mat-mdc-unelevated-button.mat-primary,.mat-mdc-raised-button.mat-primary{--%NS%cedar-icon-color: var(--%NS%cedar-color-on-primary, #ffffff)}[data-cedar-icon-tone=error],mat-icon.mat-warn,.text-danger,.alert-danger{--%NS%cedar-icon-color: var(--%NS%cedar-status-error-text, #b42318)}[data-cedar-icon-tone=warning],.text-warning,.alert-warning{--%NS%cedar-icon-color: var(--%NS%cedar-status-warning-text, #b45309)}[data-cedar-icon-tone=success],.text-success,.alert-success{--%NS%cedar-icon-color: var(--%NS%cedar-status-success-text, #176b3a)}[data-cedar-icon-tone=primary]{--%NS%cedar-icon-color: var(--%NS%cedar-color-primary, #0f7686)}
|
|
6310
6310
|
`],encapsulation:3,changeDetection:1})}}return n})();var ty=class{constructor(t){this.documentRef=t,this.overlayRef=null,this.listening=false,this.onScroll=e=>{let i=this.overlayRef;if(!i?.hasAttached())return;let a=e.target;a instanceof Node&&i.overlayElement.contains(a)||i.updatePosition()}}attach(t){this.overlayRef=t}enable(){this.listening||(this.listening=true,this.documentRef.addEventListener("scroll",this.onScroll,{capture:true,passive:true}))}disable(){this.listening&&(this.listening=false,this.documentRef.removeEventListener("scroll",this.onScroll,{capture:true}))}detach(){this.disable(),this.overlayRef=null}};var aj=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=Ye({type:n})}static{this.\u0275inj=ze({providers:[{provide:Nc,useClass:Yh},{provide:bC,useValue:{appearance:"outline",subscriptSizing:"dynamic"}},{provide:HT,useFactory:e=>()=>new ty(e),deps:[gt]},{provide:AT,useFactory:e=>()=>new ty(e),deps:[gt]}],imports:[Wm,pB,Kx,hC,Ic,FC,HC,EB,Wx,MC,Gd,Rh,sS,lS,Xa,CC,SC,cS,$B,kB,pC,zh,bB,dS]})}}return n})();var uS=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=Ye({type:n})}static{this.\u0275inj=ze({imports:[Wm,J5,Kx,Wx,hC,Ic,FC,MC,Gd,Rh,sS,lS,Xa,CC,SC,cS,Z5,zh,aj,pC,HC]})}}return n})();var pS="cedar-embeddable-editor";var hS="cedar-embeddable-field";function lf(n,t,e=customElements){e.get(n)||e.define(n,t())}var rj=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){lf(pS,()=>Lp(Au,{injector:this.injector})),lf(hS,()=>Lp(sf,{injector:this.injector}))}static{this.\u0275fac=function(i){return new(i||n)(qe(st))}}static{this.\u0275mod=Ye({type:n})}static{this.\u0275inj=ze({providers:[hg,Sg(Ng(),wg()),t0({loader:{provide:po,useFactory:(e,i,a)=>Sd(e,i,a,{en:nc,hu:ic}),deps:[ur,Di,Na]}})],imports:[_g,uS]})}}return n})();var wce=(n,t)=>t.label;function Nce(n,t){if(n&1&&(T(0,"option",6),G(1),k()),n&2){let e=t.$implicit,i=t.$index;B("value",i),_(),ge(e.label)}}var oj=(()=>{class n{get selectedField(){return this.demoFields[this.selectedFieldIndex]?.field??null}onFieldValue(e){if(!(e instanceof CustomEvent))return;let i=e.detail;this.fieldValue=i.value,this.fieldValueValid=i.valid}selectField(e){this.selectedFieldIndex=Number(e.target.value)}get fieldValueJson(){return JSON.stringify(this.fieldValue)}constructor(){this.artifact=null,this.ceeConfig={showTemplateDescription:true,showDownloadMenu:true,terminologyBaseUrl:"https://terminology.metadatacenter.orgx/",languageMapPathPrefix:"/assets/i18n-cee/",defaultLanguage:"en",fallbackLanguage:"en",readOnlyMode:false,bridgeBaseUrl:"https://bridge.metadatacenter.orgx/"},this.demoFields=[],this.selectedFieldIndex=0,this.fieldValue={kind:"none"},this.fieldValueValid=true,this.languages={selected:"en",options:[{value:"en",viewValue:"en"},{value:"hu",viewValue:"hu"}]}}ngOnInit(){return nt(this,null,function*(){let e=r=>nt(null,null,function*(){return(yield fetch(`/assets/cee-demo/demo/${r}`)).json()}),[i,a]=yield Promise.all([e("template.json"),e("metadata.json")]);this.artifact={templateObject:i,instanceObject:a},this.demoFields=yield(yield fetch("/assets/cee-demo/demo/fields.json")).json()})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=fe({type:n,selectors:[["app-component-dev"]],standalone:false,decls:32,vars:7,consts:[[1,"app-header"],[1,"app-logo"],[3,"config","templateAndInstanceObject"],[1,"field-demo"],[1,"field-demo-picker"],[3,"change","value"],[3,"value"],[3,"valueChange","config","fieldObject"],[1,"field-demo-value"],[1,"app-footer"],["href","https://computationalmedicine.stanford.edu","target","_blank","rel","noreferrer","aria-label","Stanford Division of Computational Medicine"],[1,"app-footer-logo"],["href","https://more.metadatacenter.org/tools-training/support/#contact","target","_blank","rel","noreferrer"]],template:function(i,a){i&1&&(T(0,"header",0),ne(1,"span",1),T(2,"span"),G(3,"CEDAR Embeddable Editor"),k()(),T(4,"main"),ne(5,"app-cedar-embeddable-metadata-editor-wrapper",2),k(),T(6,"section",3)(7,"h2"),G(8,"<cedar-embeddable-field>"),k(),T(9,"p"),G(10," One field and nothing around it, rendered by the same widget the form above uses. A host that has a field rather than a template \u2014 a designer collecting a default value, say \u2014 embeds this instead of the editor. "),k(),T(11,"label",4),G(12," Field "),T(13,"select",5),ce("change",function(o){return a.selectField(o)}),Mt(14,Nce,2,2,"option",6,wce),k()(),T(16,"app-cedar-embeddable-field-wrapper",7),ce("valueChange",function(o){return a.onFieldValue(o)}),k(),T(17,"p",8)(18,"code"),G(19,"valueChange"),k(),G(20),T(21,"span"),G(22),k()()(),T(23,"footer",9)(24,"a",10),ne(25,"span",11),k(),T(26,"div")(27,"p"),G(28,"CEDAR is maintained by the Stanford Division of Computational Medicine."),k(),T(29,"p")(30,"a",12),G(31," Contact CEDAR "),k()()()()),i&2&&(_(5),B("config",a.ceeConfig)("templateAndInstanceObject",a.artifact),_(8),B("value",a.selectedFieldIndex),_(),Dt(a.demoFields),_(2),B("config",a.ceeConfig)("fieldObject",a.selectedField),_(4),Ve(": ",a.fieldValueJson," "),_(2),Ve("valid: ",a.fieldValueValid))},dependencies:[Au,sf],styles:["html[_ngcontent-%COMP%]{--%NS%mat-sys-on-surface: initial}.mat-app-background[_ngcontent-%COMP%]{background-color:var(--%NS%mat-app-background-color, var(--%NS%mat-sys-background, transparent));color:var(--%NS%mat-app-text-color, var(--%NS%mat-sys-on-background, inherit))}.mat-elevation-z0[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z0[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow)}.mat-elevation-z1[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z1[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow)}.mat-elevation-z2[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z2[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow)}.mat-elevation-z3[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z3[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow)}.mat-elevation-z4[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z4[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow)}.mat-elevation-z5[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z5[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow)}.mat-elevation-z6[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z6[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow)}.mat-elevation-z7[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z7[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow)}.mat-elevation-z8[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow)}.mat-elevation-z9[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z9[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow)}.mat-elevation-z10[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z10[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow)}.mat-elevation-z11[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z11[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow)}.mat-elevation-z12[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z12[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow)}.mat-elevation-z13[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z13[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow)}.mat-elevation-z14[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z14[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow)}.mat-elevation-z15[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z15[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow)}.mat-elevation-z16[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z16[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow)}.mat-elevation-z17[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z17[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow)}.mat-elevation-z18[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z18[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow)}.mat-elevation-z19[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z19[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow)}.mat-elevation-z20[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z20[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow)}.mat-elevation-z21[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z21[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow)}.mat-elevation-z22[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z22[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow)}.mat-elevation-z23[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z23[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow)}.mat-elevation-z24[_ngcontent-%COMP%], .mat-mdc-elevation-specific.mat-elevation-z24[_ngcontent-%COMP%]{box-shadow:var(--%NS%mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow)}html[_ngcontent-%COMP%]{--%NS%mat-app-background-color: #fafafa;--%NS%mat-app-text-color: rgba(0, 0, 0, .87);--%NS%mat-app-elevation-shadow-level-0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-2: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-3: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-4: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-5: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 5px 8px 0px rgba(0, 0, 0, .14), 0px 1px 14px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-6: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-7: 0px 4px 5px -2px rgba(0, 0, 0, .2), 0px 7px 10px 1px rgba(0, 0, 0, .14), 0px 2px 16px 1px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-8: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-9: 0px 5px 6px -3px rgba(0, 0, 0, .2), 0px 9px 12px 1px rgba(0, 0, 0, .14), 0px 3px 16px 2px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-10: 0px 6px 6px -3px rgba(0, 0, 0, .2), 0px 10px 14px 1px rgba(0, 0, 0, .14), 0px 4px 18px 3px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-11: 0px 6px 7px -4px rgba(0, 0, 0, .2), 0px 11px 15px 1px rgba(0, 0, 0, .14), 0px 4px 20px 3px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-12: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-13: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 13px 19px 2px rgba(0, 0, 0, .14), 0px 5px 24px 4px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-14: 0px 7px 9px -4px rgba(0, 0, 0, .2), 0px 14px 21px 2px rgba(0, 0, 0, .14), 0px 5px 26px 4px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-15: 0px 8px 9px -5px rgba(0, 0, 0, .2), 0px 15px 22px 2px rgba(0, 0, 0, .14), 0px 6px 28px 5px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-16: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-17: 0px 8px 11px -5px rgba(0, 0, 0, .2), 0px 17px 26px 2px rgba(0, 0, 0, .14), 0px 6px 32px 5px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-18: 0px 9px 11px -5px rgba(0, 0, 0, .2), 0px 18px 28px 2px rgba(0, 0, 0, .14), 0px 7px 34px 6px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-19: 0px 9px 12px -6px rgba(0, 0, 0, .2), 0px 19px 29px 2px rgba(0, 0, 0, .14), 0px 7px 36px 6px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-20: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 20px 31px 3px rgba(0, 0, 0, .14), 0px 8px 38px 7px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-21: 0px 10px 13px -6px rgba(0, 0, 0, .2), 0px 21px 33px 3px rgba(0, 0, 0, .14), 0px 8px 40px 7px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-22: 0px 10px 14px -6px rgba(0, 0, 0, .2), 0px 22px 35px 3px rgba(0, 0, 0, .14), 0px 8px 42px 7px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-23: 0px 11px 14px -7px rgba(0, 0, 0, .2), 0px 23px 36px 3px rgba(0, 0, 0, .14), 0px 9px 44px 8px rgba(0, 0, 0, .12);--%NS%mat-app-elevation-shadow-level-24: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html[_ngcontent-%COMP%]{--%NS%mat-option-selected-state-label-text-color: #3f51b5;--%NS%mat-option-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}.mat-accent[_ngcontent-%COMP%]{--%NS%mat-option-selected-state-label-text-color: #ff4081;--%NS%mat-option-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}.mat-warn[_ngcontent-%COMP%]{--%NS%mat-option-selected-state-label-text-color: #f44336;--%NS%mat-option-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-option-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-option-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-option-selected-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent)}html[_ngcontent-%COMP%]{--%NS%mat-optgroup-label-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--%NS%mat-pseudo-checkbox-full-selected-icon-color: #ff4081;--%NS%mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-minimal-selected-checkmark-color: #ff4081;--%NS%mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-primary[_ngcontent-%COMP%]{--%NS%mat-pseudo-checkbox-full-selected-icon-color: #3f51b5;--%NS%mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-minimal-selected-checkmark-color: #3f51b5;--%NS%mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-accent[_ngcontent-%COMP%]{--%NS%mat-pseudo-checkbox-full-selected-icon-color: #ff4081;--%NS%mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-minimal-selected-checkmark-color: #ff4081;--%NS%mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-warn[_ngcontent-%COMP%]{--%NS%mat-pseudo-checkbox-full-selected-icon-color: #f44336;--%NS%mat-pseudo-checkbox-full-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-pseudo-checkbox-full-disabled-selected-checkmark-color: #fafafa;--%NS%mat-pseudo-checkbox-full-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-full-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-pseudo-checkbox-minimal-selected-checkmark-color: #f44336;--%NS%mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html[_ngcontent-%COMP%]{--%NS%mat-option-label-text-font: Roboto, sans-serif;--%NS%mat-option-label-text-line-height: 24px;--%NS%mat-option-label-text-size: 16px;--%NS%mat-option-label-text-tracking: .03125em;--%NS%mat-option-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-optgroup-label-text-font: Roboto, sans-serif;--%NS%mat-optgroup-label-text-line-height: 24px;--%NS%mat-optgroup-label-text-size: 16px;--%NS%mat-optgroup-label-text-tracking: .03125em;--%NS%mat-optgroup-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-card-elevated-container-shape: 4px;--%NS%mat-card-outlined-container-shape: 4px;--%NS%mat-card-filled-container-shape: 4px;--%NS%mat-card-outlined-outline-width: 1px}html[_ngcontent-%COMP%]{--%NS%mat-card-elevated-container-color: white;--%NS%mat-card-elevated-container-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-card-outlined-container-color: white;--%NS%mat-card-outlined-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-card-outlined-outline-color: rgba(0, 0, 0, .12);--%NS%mat-card-subtitle-text-color: rgba(0, 0, 0, .54);--%NS%mat-card-filled-container-color: white;--%NS%mat-card-filled-container-elevation: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-card-title-text-font: Roboto, sans-serif;--%NS%mat-card-title-text-line-height: 32px;--%NS%mat-card-title-text-size: 20px;--%NS%mat-card-title-text-tracking: .0125em;--%NS%mat-card-title-text-weight: 500;--%NS%mat-card-subtitle-text-font: Roboto, sans-serif;--%NS%mat-card-subtitle-text-line-height: 22px;--%NS%mat-card-subtitle-text-size: 14px;--%NS%mat-card-subtitle-text-tracking: .0071428571em;--%NS%mat-card-subtitle-text-weight: 500}html[_ngcontent-%COMP%]{--%NS%mat-progress-bar-active-indicator-height: 4px;--%NS%mat-progress-bar-track-height: 4px;--%NS%mat-progress-bar-track-shape: 0}.mat-mdc-progress-bar[_ngcontent-%COMP%]{--%NS%mat-progress-bar-active-indicator-color: #3f51b5;--%NS%mat-progress-bar-track-color: rgba(63, 81, 181, .25)}.mat-mdc-progress-bar.mat-accent[_ngcontent-%COMP%]{--%NS%mat-progress-bar-active-indicator-color: #ff4081;--%NS%mat-progress-bar-track-color: rgba(255, 64, 129, .25)}.mat-mdc-progress-bar.mat-warn[_ngcontent-%COMP%]{--%NS%mat-progress-bar-active-indicator-color: #f44336;--%NS%mat-progress-bar-track-color: rgba(244, 67, 54, .25)}html[_ngcontent-%COMP%]{--%NS%mat-tooltip-container-shape: 4px;--%NS%mat-tooltip-supporting-text-line-height: 16px}html[_ngcontent-%COMP%]{--%NS%mat-tooltip-container-color: #424242;--%NS%mat-tooltip-supporting-text-color: white}html[_ngcontent-%COMP%]{--%NS%mat-tooltip-supporting-text-font: Roboto, sans-serif;--%NS%mat-tooltip-supporting-text-size: 12px;--%NS%mat-tooltip-supporting-text-weight: 400;--%NS%mat-tooltip-supporting-text-tracking: .0333333333em}html[_ngcontent-%COMP%]{--%NS%mat-form-field-filled-active-indicator-height: 1px;--%NS%mat-form-field-filled-focus-active-indicator-height: 2px;--%NS%mat-form-field-filled-container-shape: 4px;--%NS%mat-form-field-outlined-outline-width: 1px;--%NS%mat-form-field-outlined-focus-outline-width: 2px;--%NS%mat-form-field-outlined-container-shape: 4px}html[_ngcontent-%COMP%]{--%NS%mat-form-field-focus-select-arrow-color: color-mix(in srgb, #3f51b5 87%, transparent);--%NS%mat-form-field-filled-caret-color: #3f51b5;--%NS%mat-form-field-filled-focus-active-indicator-color: #3f51b5;--%NS%mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #3f51b5 87%, transparent);--%NS%mat-form-field-outlined-caret-color: #3f51b5;--%NS%mat-form-field-outlined-focus-outline-color: #3f51b5;--%NS%mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #3f51b5 87%, transparent);--%NS%mat-form-field-disabled-input-text-placeholder-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-form-field-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-form-field-error-text-color: #f44336;--%NS%mat-form-field-select-option-text-color: inherit;--%NS%mat-form-field-select-disabled-option-text-color: GrayText;--%NS%mat-form-field-leading-icon-color: unset;--%NS%mat-form-field-disabled-leading-icon-color: unset;--%NS%mat-form-field-trailing-icon-color: unset;--%NS%mat-form-field-disabled-trailing-icon-color: unset;--%NS%mat-form-field-error-focus-trailing-icon-color: unset;--%NS%mat-form-field-error-hover-trailing-icon-color: unset;--%NS%mat-form-field-error-trailing-icon-color: unset;--%NS%mat-form-field-enabled-select-arrow-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-disabled-select-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-form-field-hover-state-layer-opacity: .04;--%NS%mat-form-field-focus-state-layer-opacity: .12;--%NS%mat-form-field-filled-container-color: #f6f6f6;--%NS%mat-form-field-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-form-field-filled-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-filled-hover-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-form-field-filled-input-text-color: rgba(0, 0, 0, .87);--%NS%mat-form-field-filled-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-form-field-filled-input-text-placeholder-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-filled-error-hover-label-text-color: #f44336;--%NS%mat-form-field-filled-error-focus-label-text-color: #f44336;--%NS%mat-form-field-filled-error-label-text-color: #f44336;--%NS%mat-form-field-filled-error-caret-color: #f44336;--%NS%mat-form-field-filled-active-indicator-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-filled-disabled-active-indicator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-form-field-filled-hover-active-indicator-color: rgba(0, 0, 0, .87);--%NS%mat-form-field-filled-error-active-indicator-color: #f44336;--%NS%mat-form-field-filled-error-focus-active-indicator-color: #f44336;--%NS%mat-form-field-filled-error-hover-active-indicator-color: #f44336;--%NS%mat-form-field-outlined-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-outlined-hover-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-form-field-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-form-field-outlined-input-text-color: rgba(0, 0, 0, .87);--%NS%mat-form-field-outlined-disabled-input-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-form-field-outlined-input-text-placeholder-color: rgba(0, 0, 0, .54);--%NS%mat-form-field-outlined-error-caret-color: #f44336;--%NS%mat-form-field-outlined-error-focus-label-text-color: #f44336;--%NS%mat-form-field-outlined-error-label-text-color: #f44336;--%NS%mat-form-field-outlined-error-hover-label-text-color: #f44336;--%NS%mat-form-field-outlined-outline-color: rgba(0, 0, 0, .38);--%NS%mat-form-field-outlined-disabled-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-form-field-outlined-hover-outline-color: rgba(0, 0, 0, .87);--%NS%mat-form-field-outlined-error-focus-outline-color: #f44336;--%NS%mat-form-field-outlined-error-hover-outline-color: #f44336;--%NS%mat-form-field-outlined-error-outline-color: #f44336}.mat-mdc-form-field.mat-accent[_ngcontent-%COMP%]{--%NS%mat-form-field-focus-select-arrow-color: color-mix(in srgb, #ff4081 87%, transparent);--%NS%mat-form-field-filled-caret-color: #ff4081;--%NS%mat-form-field-filled-focus-active-indicator-color: #ff4081;--%NS%mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #ff4081 87%, transparent);--%NS%mat-form-field-outlined-caret-color: #ff4081;--%NS%mat-form-field-outlined-focus-outline-color: #ff4081;--%NS%mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #ff4081 87%, transparent)}.mat-mdc-form-field.mat-warn[_ngcontent-%COMP%]{--%NS%mat-form-field-focus-select-arrow-color: color-mix(in srgb, #f44336 87%, transparent);--%NS%mat-form-field-filled-caret-color: #f44336;--%NS%mat-form-field-filled-focus-active-indicator-color: #f44336;--%NS%mat-form-field-filled-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent);--%NS%mat-form-field-outlined-caret-color: #f44336;--%NS%mat-form-field-outlined-focus-outline-color: #f44336;--%NS%mat-form-field-outlined-focus-label-text-color: color-mix(in srgb, #f44336 87%, transparent)}html[_ngcontent-%COMP%]{--%NS%mat-form-field-container-height: 56px;--%NS%mat-form-field-filled-label-display: block;--%NS%mat-form-field-container-vertical-padding: 16px;--%NS%mat-form-field-filled-with-label-container-padding-top: 24px;--%NS%mat-form-field-filled-with-label-container-padding-bottom: 8px}html[_ngcontent-%COMP%]{--%NS%mat-form-field-container-text-font: Roboto, sans-serif;--%NS%mat-form-field-container-text-line-height: 24px;--%NS%mat-form-field-container-text-size: 16px;--%NS%mat-form-field-container-text-tracking: .03125em;--%NS%mat-form-field-container-text-weight: 400;--%NS%mat-form-field-outlined-label-text-populated-size: 16px;--%NS%mat-form-field-subscript-text-font: Roboto, sans-serif;--%NS%mat-form-field-subscript-text-line-height: 20px;--%NS%mat-form-field-subscript-text-size: 12px;--%NS%mat-form-field-subscript-text-tracking: .0333333333em;--%NS%mat-form-field-subscript-text-weight: 400;--%NS%mat-form-field-filled-label-text-font: Roboto, sans-serif;--%NS%mat-form-field-filled-label-text-size: 16px;--%NS%mat-form-field-filled-label-text-tracking: .03125em;--%NS%mat-form-field-filled-label-text-weight: 400;--%NS%mat-form-field-outlined-label-text-font: Roboto, sans-serif;--%NS%mat-form-field-outlined-label-text-size: 16px;--%NS%mat-form-field-outlined-label-text-tracking: .03125em;--%NS%mat-form-field-outlined-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-select-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-select-panel-background-color: white;--%NS%mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--%NS%mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--%NS%mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--%NS%mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-select-focused-arrow-color: #3f51b5;--%NS%mat-select-invalid-arrow-color: #f44336}.mat-mdc-form-field.mat-accent[_ngcontent-%COMP%]{--%NS%mat-select-panel-background-color: white;--%NS%mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--%NS%mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--%NS%mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--%NS%mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-select-focused-arrow-color: #ff4081;--%NS%mat-select-invalid-arrow-color: #f44336}.mat-mdc-form-field.mat-warn[_ngcontent-%COMP%]{--%NS%mat-select-panel-background-color: white;--%NS%mat-select-enabled-trigger-text-color: rgba(0, 0, 0, .87);--%NS%mat-select-disabled-trigger-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-select-placeholder-text-color: rgba(0, 0, 0, .54);--%NS%mat-select-enabled-arrow-color: rgba(0, 0, 0, .54);--%NS%mat-select-disabled-arrow-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-select-focused-arrow-color: #f44336;--%NS%mat-select-invalid-arrow-color: #f44336}html[_ngcontent-%COMP%]{--%NS%mat-select-arrow-transform: translateY(-8px)}html[_ngcontent-%COMP%]{--%NS%mat-select-trigger-text-font: Roboto, sans-serif;--%NS%mat-select-trigger-text-line-height: 24px;--%NS%mat-select-trigger-text-size: 16px;--%NS%mat-select-trigger-text-tracking: .03125em;--%NS%mat-select-trigger-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-autocomplete-container-shape: 4px;--%NS%mat-autocomplete-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-autocomplete-background-color: white}html[_ngcontent-%COMP%]{--%NS%mat-dialog-container-shape: 4px;--%NS%mat-dialog-container-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12);--%NS%mat-dialog-container-max-width: 80vw;--%NS%mat-dialog-container-small-max-width: 80vw;--%NS%mat-dialog-container-min-width: 0;--%NS%mat-dialog-actions-alignment: start;--%NS%mat-dialog-actions-padding: 8px;--%NS%mat-dialog-content-padding: 20px 24px;--%NS%mat-dialog-with-actions-content-padding: 20px 24px;--%NS%mat-dialog-headline-padding: 0 24px 9px}html[_ngcontent-%COMP%]{--%NS%mat-dialog-container-color: white;--%NS%mat-dialog-subhead-color: rgba(0, 0, 0, .87);--%NS%mat-dialog-supporting-text-color: rgba(0, 0, 0, .54)}html[_ngcontent-%COMP%]{--%NS%mat-dialog-subhead-font: Roboto, sans-serif;--%NS%mat-dialog-subhead-line-height: 32px;--%NS%mat-dialog-subhead-size: 20px;--%NS%mat-dialog-subhead-weight: 500;--%NS%mat-dialog-subhead-tracking: .0125em;--%NS%mat-dialog-supporting-text-font: Roboto, sans-serif;--%NS%mat-dialog-supporting-text-line-height: 24px;--%NS%mat-dialog-supporting-text-size: 16px;--%NS%mat-dialog-supporting-text-weight: 400;--%NS%mat-dialog-supporting-text-tracking: .03125em}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--%NS%mat-chip-container-shape-radius: 16px;--%NS%mat-chip-disabled-container-opacity: .4;--%NS%mat-chip-disabled-outline-color: transparent;--%NS%mat-chip-flat-selected-outline-width: 0;--%NS%mat-chip-focus-outline-color: transparent;--%NS%mat-chip-hover-state-layer-opacity: .04;--%NS%mat-chip-outline-color: transparent;--%NS%mat-chip-outline-width: 0;--%NS%mat-chip-selected-hover-state-layer-opacity: .04;--%NS%mat-chip-selected-trailing-action-state-layer-color: transparent;--%NS%mat-chip-trailing-action-focus-opacity: 1;--%NS%mat-chip-trailing-action-focus-state-layer-opacity: 0;--%NS%mat-chip-trailing-action-hover-state-layer-opacity: 0;--%NS%mat-chip-trailing-action-opacity: .54;--%NS%mat-chip-trailing-action-state-layer-color: transparent;--%NS%mat-chip-with-avatar-avatar-shape-radius: 14px;--%NS%mat-chip-with-avatar-avatar-size: 28px;--%NS%mat-chip-with-avatar-disabled-avatar-opacity: 1;--%NS%mat-chip-with-icon-disabled-icon-opacity: 1;--%NS%mat-chip-with-icon-icon-size: 18px;--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-opacity: 1}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--%NS%mat-chip-disabled-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-chip-elevated-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-chip-elevated-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-chip-elevated-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-chip-flat-disabled-selected-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-focus-state-layer-opacity: .12;--%NS%mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-chip-selected-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--%NS%mat-chip-selected-focus-state-layer-color: .12;--%NS%mat-chip-selected-focus-state-layer-opacity: .12;--%NS%mat-chip-selected-hover-state-layer-color: .04;--%NS%mat-chip-selected-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-chip-selected-trailing-icon-color: rgba(0, 0, 0, .87);--%NS%mat-chip-with-icon-disabled-icon-color: rgba(0, 0, 0, .87);--%NS%mat-chip-with-icon-icon-color: rgba(0, 0, 0, .87);--%NS%mat-chip-with-icon-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--%NS%mat-chip-with-trailing-icon-trailing-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-primary[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-primary[_ngcontent-%COMP%]{--%NS%mat-chip-disabled-label-text-color: white;--%NS%mat-chip-elevated-container-color: #3f51b5;--%NS%mat-chip-elevated-disabled-container-color: #3f51b5;--%NS%mat-chip-elevated-selected-container-color: #3f51b5;--%NS%mat-chip-flat-disabled-selected-container-color: #3f51b5;--%NS%mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-focus-state-layer-opacity: .12;--%NS%mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-label-text-color: white;--%NS%mat-chip-selected-disabled-trailing-icon-color: white;--%NS%mat-chip-selected-focus-state-layer-color: .12;--%NS%mat-chip-selected-focus-state-layer-opacity: .12;--%NS%mat-chip-selected-hover-state-layer-color: .04;--%NS%mat-chip-selected-label-text-color: white;--%NS%mat-chip-selected-trailing-icon-color: white;--%NS%mat-chip-with-icon-disabled-icon-color: white;--%NS%mat-chip-with-icon-icon-color: white;--%NS%mat-chip-with-icon-selected-icon-color: white;--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--%NS%mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-accent[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-accent[_ngcontent-%COMP%]{--%NS%mat-chip-disabled-label-text-color: white;--%NS%mat-chip-elevated-container-color: #ff4081;--%NS%mat-chip-elevated-disabled-container-color: #ff4081;--%NS%mat-chip-elevated-selected-container-color: #ff4081;--%NS%mat-chip-flat-disabled-selected-container-color: #ff4081;--%NS%mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-focus-state-layer-opacity: .12;--%NS%mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-label-text-color: white;--%NS%mat-chip-selected-disabled-trailing-icon-color: white;--%NS%mat-chip-selected-focus-state-layer-color: .12;--%NS%mat-chip-selected-focus-state-layer-opacity: .12;--%NS%mat-chip-selected-hover-state-layer-color: .04;--%NS%mat-chip-selected-label-text-color: white;--%NS%mat-chip-selected-trailing-icon-color: white;--%NS%mat-chip-with-icon-disabled-icon-color: white;--%NS%mat-chip-with-icon-icon-color: white;--%NS%mat-chip-with-icon-selected-icon-color: white;--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--%NS%mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-standard-chip.mat-mdc-chip-selected.mat-warn[_ngcontent-%COMP%], .mat-mdc-standard-chip.mat-mdc-chip-highlighted.mat-warn[_ngcontent-%COMP%]{--%NS%mat-chip-disabled-label-text-color: white;--%NS%mat-chip-elevated-container-color: #f44336;--%NS%mat-chip-elevated-disabled-container-color: #f44336;--%NS%mat-chip-elevated-selected-container-color: #f44336;--%NS%mat-chip-flat-disabled-selected-container-color: #f44336;--%NS%mat-chip-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-focus-state-layer-opacity: .12;--%NS%mat-chip-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-chip-label-text-color: white;--%NS%mat-chip-selected-disabled-trailing-icon-color: white;--%NS%mat-chip-selected-focus-state-layer-color: .12;--%NS%mat-chip-selected-focus-state-layer-opacity: .12;--%NS%mat-chip-selected-hover-state-layer-color: .04;--%NS%mat-chip-selected-label-text-color: white;--%NS%mat-chip-selected-trailing-icon-color: white;--%NS%mat-chip-with-icon-disabled-icon-color: white;--%NS%mat-chip-with-icon-icon-color: white;--%NS%mat-chip-with-icon-selected-icon-color: white;--%NS%mat-chip-with-trailing-icon-disabled-trailing-icon-color: white;--%NS%mat-chip-with-trailing-icon-trailing-icon-color: white}.mat-mdc-chip.mat-mdc-standard-chip[_ngcontent-%COMP%]{--%NS%mat-chip-container-height: 32px}.mat-mdc-standard-chip[_ngcontent-%COMP%]{--%NS%mat-chip-label-text-font: Roboto, sans-serif;--%NS%mat-chip-label-text-line-height: 20px;--%NS%mat-chip-label-text-size: 14px;--%NS%mat-chip-label-text-tracking: .0178571429em;--%NS%mat-chip-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-slide-toggle-disabled-handle-opacity: .38;--%NS%mat-slide-toggle-disabled-selected-handle-opacity: .38;--%NS%mat-slide-toggle-disabled-selected-icon-opacity: .38;--%NS%mat-slide-toggle-disabled-track-opacity: .12;--%NS%mat-slide-toggle-disabled-unselected-handle-opacity: .38;--%NS%mat-slide-toggle-disabled-unselected-icon-opacity: .38;--%NS%mat-slide-toggle-disabled-unselected-track-outline-width: 1px;--%NS%mat-slide-toggle-handle-height: 20px;--%NS%mat-slide-toggle-handle-shape: 10px;--%NS%mat-slide-toggle-handle-width: 20px;--%NS%mat-slide-toggle-hidden-track-opacity: 1;--%NS%mat-slide-toggle-hidden-track-transition: transform 75ms 0ms cubic-bezier(.4, 0, .6, 1);--%NS%mat-slide-toggle-pressed-handle-size: 20px;--%NS%mat-slide-toggle-selected-focus-state-layer-opacity: .12;--%NS%mat-slide-toggle-selected-handle-horizontal-margin: 0;--%NS%mat-slide-toggle-selected-handle-size: 20px;--%NS%mat-slide-toggle-selected-hover-state-layer-opacity: .04;--%NS%mat-slide-toggle-selected-icon-size: 18px;--%NS%mat-slide-toggle-selected-pressed-handle-horizontal-margin: 0;--%NS%mat-slide-toggle-selected-pressed-state-layer-opacity: .12;--%NS%mat-slide-toggle-selected-track-outline-width: 1px;--%NS%mat-slide-toggle-selected-with-icon-handle-horizontal-margin: 0;--%NS%mat-slide-toggle-track-height: 14px;--%NS%mat-slide-toggle-track-outline-width: 1px;--%NS%mat-slide-toggle-track-shape: 7px;--%NS%mat-slide-toggle-track-width: 36px;--%NS%mat-slide-toggle-unselected-focus-state-layer-opacity: .12;--%NS%mat-slide-toggle-unselected-handle-horizontal-margin: 0;--%NS%mat-slide-toggle-unselected-handle-size: 20px;--%NS%mat-slide-toggle-unselected-hover-state-layer-opacity: .12;--%NS%mat-slide-toggle-unselected-icon-size: 18px;--%NS%mat-slide-toggle-unselected-pressed-handle-horizontal-margin: 0;--%NS%mat-slide-toggle-unselected-pressed-state-layer-opacity: .1;--%NS%mat-slide-toggle-unselected-with-icon-handle-horizontal-margin: 0;--%NS%mat-slide-toggle-visible-track-opacity: 1;--%NS%mat-slide-toggle-visible-track-transition: transform 75ms 0ms cubic-bezier(0, 0, .2, 1);--%NS%mat-slide-toggle-with-icon-handle-size: 20px;--%NS%mat-slide-toggle-touch-target-size: 48px}html[_ngcontent-%COMP%]{--%NS%mat-slide-toggle-selected-icon-color: white;--%NS%mat-slide-toggle-disabled-selected-icon-color: white;--%NS%mat-slide-toggle-selected-focus-state-layer-color: #3f51b5;--%NS%mat-slide-toggle-selected-handle-color: #3f51b5;--%NS%mat-slide-toggle-selected-hover-state-layer-color: #3f51b5;--%NS%mat-slide-toggle-selected-pressed-state-layer-color: #3f51b5;--%NS%mat-slide-toggle-selected-focus-handle-color: #3f51b5;--%NS%mat-slide-toggle-selected-hover-handle-color: #3f51b5;--%NS%mat-slide-toggle-selected-pressed-handle-color: #3f51b5;--%NS%mat-slide-toggle-selected-focus-track-color: #7986cb;--%NS%mat-slide-toggle-selected-hover-track-color: #7986cb;--%NS%mat-slide-toggle-selected-pressed-track-color: #7986cb;--%NS%mat-slide-toggle-selected-track-color: #7986cb;--%NS%mat-slide-toggle-disabled-unselected-track-outline-color: transparent;--%NS%mat-slide-toggle-selected-track-outline-color: transparent;--%NS%mat-slide-toggle-track-outline-color: transparent;--%NS%mat-slide-toggle-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-slide-toggle-disabled-handle-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-slide-toggle-disabled-selected-handle-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-disabled-selected-track-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-disabled-unselected-handle-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-disabled-unselected-icon-color: #f6f6f6;--%NS%mat-slide-toggle-disabled-unselected-track-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-handle-elevation-shadow: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-slide-toggle-handle-surface-color: white;--%NS%mat-slide-toggle-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-unselected-hover-handle-color: #424242;--%NS%mat-slide-toggle-unselected-focus-handle-color: #424242;--%NS%mat-slide-toggle-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-unselected-focus-track-color: rgba(0, 0, 0, .12);--%NS%mat-slide-toggle-unselected-icon-color: #f6f6f6;--%NS%mat-slide-toggle-unselected-handle-color: rgba(0, 0, 0, .54);--%NS%mat-slide-toggle-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-unselected-hover-track-color: rgba(0, 0, 0, .12);--%NS%mat-slide-toggle-unselected-pressed-handle-color: #424242;--%NS%mat-slide-toggle-unselected-pressed-track-color: rgba(0, 0, 0, .12);--%NS%mat-slide-toggle-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-slide-toggle-unselected-track-color: rgba(0, 0, 0, .12)}.mat-mdc-slide-toggle.mat-accent[_ngcontent-%COMP%]{--%NS%mat-slide-toggle-selected-icon-color: white;--%NS%mat-slide-toggle-disabled-selected-icon-color: white;--%NS%mat-slide-toggle-selected-focus-state-layer-color: #ff4081;--%NS%mat-slide-toggle-selected-handle-color: #ff4081;--%NS%mat-slide-toggle-selected-hover-state-layer-color: #ff4081;--%NS%mat-slide-toggle-selected-pressed-state-layer-color: #ff4081;--%NS%mat-slide-toggle-selected-focus-handle-color: #ff4081;--%NS%mat-slide-toggle-selected-hover-handle-color: #ff4081;--%NS%mat-slide-toggle-selected-pressed-handle-color: #ff4081;--%NS%mat-slide-toggle-selected-focus-track-color: #f06292;--%NS%mat-slide-toggle-selected-hover-track-color: #f06292;--%NS%mat-slide-toggle-selected-pressed-track-color: #f06292;--%NS%mat-slide-toggle-selected-track-color: #f06292}.mat-mdc-slide-toggle.mat-warn[_ngcontent-%COMP%]{--%NS%mat-slide-toggle-selected-icon-color: white;--%NS%mat-slide-toggle-disabled-selected-icon-color: white;--%NS%mat-slide-toggle-selected-focus-state-layer-color: #f44336;--%NS%mat-slide-toggle-selected-handle-color: #f44336;--%NS%mat-slide-toggle-selected-hover-state-layer-color: #f44336;--%NS%mat-slide-toggle-selected-pressed-state-layer-color: #f44336;--%NS%mat-slide-toggle-selected-focus-handle-color: #f44336;--%NS%mat-slide-toggle-selected-hover-handle-color: #f44336;--%NS%mat-slide-toggle-selected-pressed-handle-color: #f44336;--%NS%mat-slide-toggle-selected-focus-track-color: #e57373;--%NS%mat-slide-toggle-selected-hover-track-color: #e57373;--%NS%mat-slide-toggle-selected-pressed-track-color: #e57373;--%NS%mat-slide-toggle-selected-track-color: #e57373}html[_ngcontent-%COMP%]{--%NS%mat-slide-toggle-state-layer-size: 40px;--%NS%mat-slide-toggle-touch-target-display: block}html[_ngcontent-%COMP%], html[_ngcontent-%COMP%] .mat-mdc-slide-toggle[_ngcontent-%COMP%]{--%NS%mat-slide-toggle-label-text-font: Roboto, sans-serif;--%NS%mat-slide-toggle-label-text-line-height: 20px;--%NS%mat-slide-toggle-label-text-size: 14px;--%NS%mat-slide-toggle-label-text-tracking: .0178571429em;--%NS%mat-slide-toggle-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-radio-disabled-selected-icon-opacity: .38;--%NS%mat-radio-disabled-unselected-icon-opacity: .38;--%NS%mat-radio-state-layer-size: 40px;--%NS%mat-radio-touch-target-size: 48px}.mat-mdc-radio-button.mat-primary[_ngcontent-%COMP%]{--%NS%mat-radio-checked-ripple-color: #3f51b5;--%NS%mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-radio-ripple-color: rgba(0, 0, 0, .87);--%NS%mat-radio-selected-focus-icon-color: #3f51b5;--%NS%mat-radio-selected-hover-icon-color: #3f51b5;--%NS%mat-radio-selected-icon-color: #3f51b5;--%NS%mat-radio-selected-pressed-icon-color: #3f51b5;--%NS%mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-accent[_ngcontent-%COMP%]{--%NS%mat-radio-checked-ripple-color: #ff4081;--%NS%mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-radio-ripple-color: rgba(0, 0, 0, .87);--%NS%mat-radio-selected-focus-icon-color: #ff4081;--%NS%mat-radio-selected-hover-icon-color: #ff4081;--%NS%mat-radio-selected-icon-color: #ff4081;--%NS%mat-radio-selected-pressed-icon-color: #ff4081;--%NS%mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-radio-button.mat-warn[_ngcontent-%COMP%]{--%NS%mat-radio-checked-ripple-color: #f44336;--%NS%mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-radio-ripple-color: rgba(0, 0, 0, .87);--%NS%mat-radio-selected-focus-icon-color: #f44336;--%NS%mat-radio-selected-hover-icon-color: #f44336;--%NS%mat-radio-selected-icon-color: #f44336;--%NS%mat-radio-selected-pressed-icon-color: #f44336;--%NS%mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--%NS%mat-radio-state-layer-size: 40px;--%NS%mat-radio-touch-target-display: block}html[_ngcontent-%COMP%]{--%NS%mat-radio-label-text-font: Roboto, sans-serif;--%NS%mat-radio-label-text-line-height: 20px;--%NS%mat-radio-label-text-size: 14px;--%NS%mat-radio-label-text-tracking: .0178571429em;--%NS%mat-radio-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-slider-active-track-height: 6px;--%NS%mat-slider-active-track-shape: 9999px;--%NS%mat-slider-handle-height: 20px;--%NS%mat-slider-handle-shape: 50%;--%NS%mat-slider-handle-width: 20px;--%NS%mat-slider-inactive-track-height: 4px;--%NS%mat-slider-inactive-track-shape: 9999px;--%NS%mat-slider-value-indicator-border-radius: 4px;--%NS%mat-slider-value-indicator-caret-display: block;--%NS%mat-slider-value-indicator-container-transform: translateX(-50%);--%NS%mat-slider-value-indicator-height: 32px;--%NS%mat-slider-value-indicator-padding: 0 12px;--%NS%mat-slider-value-indicator-text-transform: none;--%NS%mat-slider-value-indicator-width: auto;--%NS%mat-slider-with-overlap-handle-outline-width: 1px;--%NS%mat-slider-with-tick-marks-active-container-opacity: .6;--%NS%mat-slider-with-tick-marks-container-shape: 50%;--%NS%mat-slider-with-tick-marks-container-size: 2px;--%NS%mat-slider-with-tick-marks-inactive-container-opacity: .6;--%NS%mat-slider-value-indicator-transform-origin: bottom}html[_ngcontent-%COMP%]{--%NS%mat-slider-active-track-color: #3f51b5;--%NS%mat-slider-focus-handle-color: #3f51b5;--%NS%mat-slider-handle-color: #3f51b5;--%NS%mat-slider-hover-handle-color: #3f51b5;--%NS%mat-slider-focus-state-layer-color: color-mix(in srgb, #3f51b5 12%, transparent);--%NS%mat-slider-hover-state-layer-color: color-mix(in srgb, #3f51b5 4%, transparent);--%NS%mat-slider-inactive-track-color: #3f51b5;--%NS%mat-slider-ripple-color: #3f51b5;--%NS%mat-slider-with-tick-marks-active-container-color: white;--%NS%mat-slider-with-tick-marks-inactive-container-color: #3f51b5;--%NS%mat-slider-handle-elevation: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--%NS%mat-slider-disabled-active-track-color: rgba(0, 0, 0, .87);--%NS%mat-slider-disabled-handle-color: rgba(0, 0, 0, .87);--%NS%mat-slider-disabled-inactive-track-color: rgba(0, 0, 0, .87);--%NS%mat-slider-label-container-color: #424242;--%NS%mat-slider-label-label-text-color: white;--%NS%mat-slider-value-indicator-opacity: 1;--%NS%mat-slider-with-overlap-handle-outline-color: rgba(0, 0, 0, .87);--%NS%mat-slider-with-tick-marks-disabled-container-color: rgba(0, 0, 0, .87)}.mat-accent[_ngcontent-%COMP%]{--%NS%mat-slider-active-track-color: #ff4081;--%NS%mat-slider-focus-handle-color: #ff4081;--%NS%mat-slider-handle-color: #ff4081;--%NS%mat-slider-hover-handle-color: #ff4081;--%NS%mat-slider-focus-state-layer-color: color-mix(in srgb, #ff4081 12%, transparent);--%NS%mat-slider-hover-state-layer-color: color-mix(in srgb, #ff4081 4%, transparent);--%NS%mat-slider-inactive-track-color: #ff4081;--%NS%mat-slider-ripple-color: #ff4081;--%NS%mat-slider-with-tick-marks-active-container-color: white;--%NS%mat-slider-with-tick-marks-inactive-container-color: #ff4081}.mat-warn[_ngcontent-%COMP%]{--%NS%mat-slider-active-track-color: #f44336;--%NS%mat-slider-focus-handle-color: #f44336;--%NS%mat-slider-handle-color: #f44336;--%NS%mat-slider-hover-handle-color: #f44336;--%NS%mat-slider-focus-state-layer-color: color-mix(in srgb, #f44336 12%, transparent);--%NS%mat-slider-hover-state-layer-color: color-mix(in srgb, #f44336 4%, transparent);--%NS%mat-slider-inactive-track-color: #f44336;--%NS%mat-slider-ripple-color: #f44336;--%NS%mat-slider-with-tick-marks-active-container-color: white;--%NS%mat-slider-with-tick-marks-inactive-container-color: #f44336}html[_ngcontent-%COMP%]{--%NS%mat-slider-label-label-text-font: Roboto, sans-serif;--%NS%mat-slider-label-label-text-size: 14px;--%NS%mat-slider-label-label-text-line-height: 22px;--%NS%mat-slider-label-label-text-tracking: .0071428571em;--%NS%mat-slider-label-label-text-weight: 500}html[_ngcontent-%COMP%]{--%NS%mat-menu-container-shape: 4px;--%NS%mat-menu-divider-bottom-spacing: 0;--%NS%mat-menu-divider-top-spacing: 0;--%NS%mat-menu-item-spacing: 16px;--%NS%mat-menu-item-icon-size: 24px;--%NS%mat-menu-item-leading-spacing: 16px;--%NS%mat-menu-item-trailing-spacing: 16px;--%NS%mat-menu-item-with-icon-leading-spacing: 16px;--%NS%mat-menu-item-with-icon-trailing-spacing: 16px;--%NS%mat-menu-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-menu-item-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-menu-item-icon-color: rgba(0, 0, 0, .87);--%NS%mat-menu-item-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-menu-item-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-menu-container-color: white;--%NS%mat-menu-divider-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-menu-item-label-text-font: Roboto, sans-serif;--%NS%mat-menu-item-label-text-size: 16px;--%NS%mat-menu-item-label-text-tracking: .03125em;--%NS%mat-menu-item-label-text-line-height: 24px;--%NS%mat-menu-item-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-list-active-indicator-shape: 4px;--%NS%mat-list-list-item-container-shape: 0;--%NS%mat-list-list-item-leading-avatar-shape: 50%;--%NS%mat-list-list-item-leading-icon-size: 24px;--%NS%mat-list-list-item-leading-avatar-size: 40px;--%NS%mat-list-list-item-trailing-icon-size: 24px;--%NS%mat-list-list-item-disabled-state-layer-opacity: 0;--%NS%mat-list-list-item-disabled-label-text-opacity: .38;--%NS%mat-list-list-item-disabled-leading-icon-opacity: .38;--%NS%mat-list-list-item-disabled-trailing-icon-opacity: .38}html[_ngcontent-%COMP%]{--%NS%mat-list-active-indicator-color: transparent;--%NS%mat-list-list-item-container-color: transparent;--%NS%mat-list-list-item-selected-container-color: transparent;--%NS%mat-list-list-item-leading-avatar-color: transparent;--%NS%mat-list-list-item-disabled-state-layer-color: transparent;--%NS%mat-list-list-item-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-supporting-text-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-leading-icon-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-trailing-supporting-text-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-trailing-icon-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-selected-trailing-icon-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-disabled-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-disabled-leading-icon-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-disabled-trailing-icon-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-hover-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-hover-leading-icon-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-hover-state-layer-opacity: .04;--%NS%mat-list-list-item-hover-trailing-icon-color: rgba(0, 0, 0, .54);--%NS%mat-list-list-item-focus-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-list-list-item-focus-state-layer-opacity: .12}.mdc-list-item__start[_ngcontent-%COMP%], .mdc-list-item__end[_ngcontent-%COMP%]{--%NS%mat-radio-checked-ripple-color: #3f51b5;--%NS%mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-radio-ripple-color: rgba(0, 0, 0, .87);--%NS%mat-radio-selected-focus-icon-color: #3f51b5;--%NS%mat-radio-selected-hover-icon-color: #3f51b5;--%NS%mat-radio-selected-icon-color: #3f51b5;--%NS%mat-radio-selected-pressed-icon-color: #3f51b5;--%NS%mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-accent[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-accent[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{--%NS%mat-radio-checked-ripple-color: #ff4081;--%NS%mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-radio-ripple-color: rgba(0, 0, 0, .87);--%NS%mat-radio-selected-focus-icon-color: #ff4081;--%NS%mat-radio-selected-hover-icon-color: #ff4081;--%NS%mat-radio-selected-icon-color: #ff4081;--%NS%mat-radio-selected-pressed-icon-color: #ff4081;--%NS%mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-warn[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-warn[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{--%NS%mat-radio-checked-ripple-color: #f44336;--%NS%mat-radio-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-radio-disabled-selected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-disabled-unselected-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-radio-ripple-color: rgba(0, 0, 0, .87);--%NS%mat-radio-selected-focus-icon-color: #f44336;--%NS%mat-radio-selected-hover-icon-color: #f44336;--%NS%mat-radio-selected-icon-color: #f44336;--%NS%mat-radio-selected-pressed-icon-color: #f44336;--%NS%mat-radio-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-radio-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-radio-unselected-pressed-icon-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-icon-color: #3f51b5;--%NS%mat-checkbox-selected-hover-icon-color: #3f51b5;--%NS%mat-checkbox-selected-icon-color: #3f51b5;--%NS%mat-checkbox-selected-pressed-icon-color: #3f51b5;--%NS%mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-checkbox-selected-focus-state-layer-color: #3f51b5;--%NS%mat-checkbox-selected-hover-state-layer-color: #3f51b5;--%NS%mat-checkbox-selected-pressed-state-layer-color: #3f51b5;--%NS%mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option.mat-accent[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-icon-color: #ff4081;--%NS%mat-checkbox-selected-hover-icon-color: #ff4081;--%NS%mat-checkbox-selected-icon-color: #ff4081;--%NS%mat-checkbox-selected-pressed-icon-color: #ff4081;--%NS%mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-checkbox-selected-focus-state-layer-color: #ff4081;--%NS%mat-checkbox-selected-hover-state-layer-color: #ff4081;--%NS%mat-checkbox-selected-pressed-state-layer-color: #ff4081;--%NS%mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-option.mat-warn[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-icon-color: #f44336;--%NS%mat-checkbox-selected-hover-icon-color: #f44336;--%NS%mat-checkbox-selected-icon-color: #f44336;--%NS%mat-checkbox-selected-pressed-icon-color: #f44336;--%NS%mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-checkbox-selected-focus-state-layer-color: #f44336;--%NS%mat-checkbox-selected-hover-state-layer-color: #f44336;--%NS%mat-checkbox-selected-pressed-state-layer-color: #f44336;--%NS%mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--selected[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%], .mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--selected[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--activated[_ngcontent-%COMP%] .mdc-list-item__primary-text[_ngcontent-%COMP%], .mat-mdc-list-base.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--activated[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%]{color:#3f51b5}.mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--disabled[_ngcontent-%COMP%] .mdc-list-item__start[_ngcontent-%COMP%], .mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--disabled[_ngcontent-%COMP%] .mdc-list-item__content[_ngcontent-%COMP%], .mat-mdc-list-base[_ngcontent-%COMP%] .mdc-list-item--disabled[_ngcontent-%COMP%] .mdc-list-item__end[_ngcontent-%COMP%]{opacity:1}html[_ngcontent-%COMP%]{--%NS%mat-list-list-item-leading-icon-start-space: 16px;--%NS%mat-list-list-item-leading-icon-end-space: 32px;--%NS%mat-list-list-item-one-line-container-height: 48px;--%NS%mat-list-list-item-two-line-container-height: 64px;--%NS%mat-list-list-item-three-line-container-height: 88px}.mdc-list-item__start[_ngcontent-%COMP%], .mdc-list-item__end[_ngcontent-%COMP%]{--%NS%mat-radio-state-layer-size: 40px;--%NS%mat-radio-touch-target-display: block}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-one-line[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-one-line[_ngcontent-%COMP%]{height:56px}.mat-mdc-list-item.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines[_ngcontent-%COMP%], .mat-mdc-list-item.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines[_ngcontent-%COMP%]{height:72px}html[_ngcontent-%COMP%]{--%NS%mat-list-list-item-label-text-font: Roboto, sans-serif;--%NS%mat-list-list-item-label-text-line-height: 24px;--%NS%mat-list-list-item-label-text-size: 16px;--%NS%mat-list-list-item-label-text-tracking: .03125em;--%NS%mat-list-list-item-label-text-weight: 400;--%NS%mat-list-list-item-supporting-text-font: Roboto, sans-serif;--%NS%mat-list-list-item-supporting-text-line-height: 20px;--%NS%mat-list-list-item-supporting-text-size: 14px;--%NS%mat-list-list-item-supporting-text-tracking: .0178571429em;--%NS%mat-list-list-item-supporting-text-weight: 400;--%NS%mat-list-list-item-trailing-supporting-text-font: Roboto, sans-serif;--%NS%mat-list-list-item-trailing-supporting-text-line-height: 20px;--%NS%mat-list-list-item-trailing-supporting-text-size: 12px;--%NS%mat-list-list-item-trailing-supporting-text-tracking: .0333333333em;--%NS%mat-list-list-item-trailing-supporting-text-weight: 400}.mdc-list-group__subheader[_ngcontent-%COMP%]{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em}html[_ngcontent-%COMP%]{--%NS%mat-paginator-page-size-select-width: 84px;--%NS%mat-paginator-page-size-select-touch-target-height: 48px}html[_ngcontent-%COMP%]{--%NS%mat-paginator-container-text-color: rgba(0, 0, 0, .87);--%NS%mat-paginator-container-background-color: white;--%NS%mat-paginator-enabled-icon-color: rgba(0, 0, 0, .54);--%NS%mat-paginator-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}html[_ngcontent-%COMP%]{--%NS%mat-paginator-container-size: 56px;--%NS%mat-paginator-form-field-container-height: 40px;--%NS%mat-paginator-form-field-container-vertical-padding: 8px;--%NS%mat-paginator-touch-target-display: block}html[_ngcontent-%COMP%]{--%NS%mat-paginator-container-text-font: Roboto, sans-serif;--%NS%mat-paginator-container-text-line-height: 20px;--%NS%mat-paginator-container-text-size: 12px;--%NS%mat-paginator-container-text-tracking: .0333333333em;--%NS%mat-paginator-container-text-weight: 400;--%NS%mat-paginator-select-trigger-text-size: 12px}html[_ngcontent-%COMP%]{--%NS%mat-tab-container-height: 48px;--%NS%mat-tab-divider-color: transparent;--%NS%mat-tab-divider-height: 0;--%NS%mat-tab-active-indicator-height: 2px;--%NS%mat-tab-active-indicator-shape: 0}.mat-mdc-tab-group[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar[_ngcontent-%COMP%]{--%NS%mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--%NS%mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--%NS%mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-active-label-text-color: #3f51b5;--%NS%mat-tab-active-ripple-color: #3f51b5;--%NS%mat-tab-inactive-ripple-color: #3f51b5;--%NS%mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-active-focus-label-text-color: #3f51b5;--%NS%mat-tab-active-hover-label-text-color: #3f51b5;--%NS%mat-tab-active-focus-indicator-color: #3f51b5;--%NS%mat-tab-active-hover-indicator-color: #3f51b5;--%NS%mat-tab-active-indicator-color: #3f51b5}.mat-mdc-tab-group.mat-accent[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-accent[_ngcontent-%COMP%]{--%NS%mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--%NS%mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--%NS%mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-active-label-text-color: #ff4081;--%NS%mat-tab-active-ripple-color: #ff4081;--%NS%mat-tab-inactive-ripple-color: #ff4081;--%NS%mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-active-focus-label-text-color: #ff4081;--%NS%mat-tab-active-hover-label-text-color: #ff4081;--%NS%mat-tab-active-focus-indicator-color: #ff4081;--%NS%mat-tab-active-hover-indicator-color: #ff4081;--%NS%mat-tab-active-indicator-color: #ff4081}.mat-mdc-tab-group.mat-warn[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-warn[_ngcontent-%COMP%]{--%NS%mat-tab-disabled-ripple-color: rgba(0, 0, 0, .54);--%NS%mat-tab-pagination-icon-color: rgba(0, 0, 0, .87);--%NS%mat-tab-inactive-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-active-label-text-color: #f44336;--%NS%mat-tab-active-ripple-color: #f44336;--%NS%mat-tab-inactive-ripple-color: #f44336;--%NS%mat-tab-inactive-focus-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-inactive-hover-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-tab-active-focus-label-text-color: #f44336;--%NS%mat-tab-active-hover-label-text-color: #f44336;--%NS%mat-tab-active-focus-indicator-color: #f44336;--%NS%mat-tab-active-hover-indicator-color: #f44336;--%NS%mat-tab-active-indicator-color: #f44336}.mat-mdc-tab-group.mat-background-primary[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-background-primary[_ngcontent-%COMP%]{--%NS%mat-tab-background-color: #3f51b5;--%NS%mat-tab-foreground-color: white}.mat-mdc-tab-group.mat-background-accent[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-background-accent[_ngcontent-%COMP%]{--%NS%mat-tab-background-color: #ff4081;--%NS%mat-tab-foreground-color: white}.mat-mdc-tab-group.mat-background-warn[_ngcontent-%COMP%], .mat-mdc-tab-nav-bar.mat-background-warn[_ngcontent-%COMP%]{--%NS%mat-tab-background-color: #f44336;--%NS%mat-tab-foreground-color: white}.mat-mdc-tab-header[_ngcontent-%COMP%]{--%NS%mat-tab-container-height: 48px}.mat-mdc-tab-header[_ngcontent-%COMP%]{--%NS%mat-tab-label-text-font: Roboto, sans-serif;--%NS%mat-tab-label-text-size: 14px;--%NS%mat-tab-label-text-tracking: .0892857143em;--%NS%mat-tab-label-text-line-height: 36px;--%NS%mat-tab-label-text-weight: 500}html[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-state-layer-opacity: .12;--%NS%mat-checkbox-selected-hover-state-layer-opacity: .04;--%NS%mat-checkbox-selected-pressed-state-layer-opacity: .12;--%NS%mat-checkbox-unselected-focus-state-layer-opacity: .12;--%NS%mat-checkbox-unselected-hover-state-layer-opacity: .04;--%NS%mat-checkbox-unselected-pressed-state-layer-opacity: .12;--%NS%mat-checkbox-touch-target-size: 48px}html[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-label-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-icon-color: #ff4081;--%NS%mat-checkbox-selected-hover-icon-color: #ff4081;--%NS%mat-checkbox-selected-icon-color: #ff4081;--%NS%mat-checkbox-selected-pressed-icon-color: #ff4081;--%NS%mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-checkbox-selected-focus-state-layer-color: #ff4081;--%NS%mat-checkbox-selected-hover-state-layer-color: #ff4081;--%NS%mat-checkbox-selected-pressed-state-layer-color: #ff4081;--%NS%mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-primary[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-icon-color: #3f51b5;--%NS%mat-checkbox-selected-hover-icon-color: #3f51b5;--%NS%mat-checkbox-selected-icon-color: #3f51b5;--%NS%mat-checkbox-selected-pressed-icon-color: #3f51b5;--%NS%mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-checkbox-selected-focus-state-layer-color: #3f51b5;--%NS%mat-checkbox-selected-hover-state-layer-color: #3f51b5;--%NS%mat-checkbox-selected-pressed-state-layer-color: #3f51b5;--%NS%mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-checkbox.mat-warn[_ngcontent-%COMP%]{--%NS%mat-checkbox-disabled-selected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-disabled-unselected-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-checkbox-selected-checkmark-color: white;--%NS%mat-checkbox-selected-focus-icon-color: #f44336;--%NS%mat-checkbox-selected-hover-icon-color: #f44336;--%NS%mat-checkbox-selected-icon-color: #f44336;--%NS%mat-checkbox-selected-pressed-icon-color: #f44336;--%NS%mat-checkbox-unselected-focus-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-icon-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-icon-color: rgba(0, 0, 0, .54);--%NS%mat-checkbox-selected-focus-state-layer-color: #f44336;--%NS%mat-checkbox-selected-hover-state-layer-color: #f44336;--%NS%mat-checkbox-selected-pressed-state-layer-color: #f44336;--%NS%mat-checkbox-unselected-focus-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-hover-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-checkbox-unselected-pressed-state-layer-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--%NS%mat-checkbox-touch-target-display: block;--%NS%mat-checkbox-state-layer-size: 40px}html[_ngcontent-%COMP%]{--%NS%mat-checkbox-label-text-font: Roboto, sans-serif;--%NS%mat-checkbox-label-text-line-height: 20px;--%NS%mat-checkbox-label-text-size: 14px;--%NS%mat-checkbox-label-text-tracking: .0178571429em;--%NS%mat-checkbox-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-button-filled-container-shape: 4px;--%NS%mat-button-filled-horizontal-padding: 16px;--%NS%mat-button-filled-icon-offset: -4px;--%NS%mat-button-filled-icon-spacing: 8px;--%NS%mat-button-filled-touch-target-size: 48px;--%NS%mat-button-outlined-container-shape: 4px;--%NS%mat-button-outlined-horizontal-padding: 15px;--%NS%mat-button-outlined-icon-offset: -4px;--%NS%mat-button-outlined-icon-spacing: 8px;--%NS%mat-button-outlined-keep-touch-target: false;--%NS%mat-button-outlined-outline-width: 1px;--%NS%mat-button-outlined-touch-target-size: 48px;--%NS%mat-button-protected-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--%NS%mat-button-protected-container-shape: 4px;--%NS%mat-button-protected-disabled-container-elevation-shadow: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--%NS%mat-button-protected-focus-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--%NS%mat-button-protected-horizontal-padding: 16px;--%NS%mat-button-protected-hover-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--%NS%mat-button-protected-icon-offset: -4px;--%NS%mat-button-protected-icon-spacing: 8px;--%NS%mat-button-protected-pressed-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-button-protected-touch-target-size: 48px;--%NS%mat-button-text-container-shape: 4px;--%NS%mat-button-text-horizontal-padding: 8px;--%NS%mat-button-text-icon-offset: 0;--%NS%mat-button-text-icon-spacing: 8px;--%NS%mat-button-text-with-icon-horizontal-padding: 8px;--%NS%mat-button-text-touch-target-size: 48px;--%NS%mat-button-tonal-container-shape: 4px;--%NS%mat-button-tonal-horizontal-padding: 16px;--%NS%mat-button-tonal-icon-offset: -4px;--%NS%mat-button-tonal-icon-spacing: 8px;--%NS%mat-button-tonal-touch-target-size: 48px}html[_ngcontent-%COMP%]{--%NS%mat-button-filled-container-color: white;--%NS%mat-button-filled-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-filled-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-filled-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-button-filled-focus-state-layer-opacity: .12;--%NS%mat-button-filled-hover-state-layer-opacity: .04;--%NS%mat-button-filled-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-filled-pressed-state-layer-opacity: .12;--%NS%mat-button-filled-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-filled-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-button-outlined-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-outlined-disabled-outline-color: rgba(0, 0, 0, .12);--%NS%mat-button-outlined-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-button-outlined-focus-state-layer-opacity: .12;--%NS%mat-button-outlined-hover-state-layer-opacity: .04;--%NS%mat-button-outlined-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--%NS%mat-button-outlined-pressed-state-layer-opacity: .12;--%NS%mat-button-outlined-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-outlined-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-button-protected-container-color: white;--%NS%mat-button-protected-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-protected-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-protected-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-button-protected-focus-state-layer-opacity: .12;--%NS%mat-button-protected-hover-state-layer-opacity: .04;--%NS%mat-button-protected-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-protected-pressed-state-layer-opacity: .12;--%NS%mat-button-protected-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-protected-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-button-text-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-text-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-button-text-focus-state-layer-opacity: .12;--%NS%mat-button-text-hover-state-layer-opacity: .04;--%NS%mat-button-text-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-text-pressed-state-layer-opacity: .12;--%NS%mat-button-text-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-text-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-button-tonal-container-color: white;--%NS%mat-button-tonal-disabled-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-tonal-disabled-label-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-tonal-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-button-tonal-focus-state-layer-opacity: .12;--%NS%mat-button-tonal-hover-state-layer-opacity: .04;--%NS%mat-button-tonal-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-tonal-pressed-state-layer-opacity: .12;--%NS%mat-button-tonal-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-tonal-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-button.mat-primary[_ngcontent-%COMP%], .mat-mdc-unelevated-button.mat-primary[_ngcontent-%COMP%], .mat-mdc-raised-button.mat-primary[_ngcontent-%COMP%], .mat-mdc-outlined-button.mat-primary[_ngcontent-%COMP%], .mat-tonal-button.mat-primary[_ngcontent-%COMP%]{--%NS%mat-button-filled-container-color: #3f51b5;--%NS%mat-button-filled-label-text-color: white;--%NS%mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-filled-state-layer-color: white;--%NS%mat-button-outlined-label-text-color: #3f51b5;--%NS%mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--%NS%mat-button-outlined-ripple-color: color-mix(in srgb, #3f51b5 12%, transparent);--%NS%mat-button-outlined-state-layer-color: #3f51b5;--%NS%mat-button-protected-container-color: #3f51b5;--%NS%mat-button-protected-label-text-color: white;--%NS%mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-protected-state-layer-color: white;--%NS%mat-button-text-label-text-color: #3f51b5;--%NS%mat-button-text-ripple-color: color-mix(in srgb, #3f51b5 12%, transparent);--%NS%mat-button-text-state-layer-color: #3f51b5;--%NS%mat-button-tonal-container-color: #3f51b5;--%NS%mat-button-tonal-label-text-color: white;--%NS%mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-tonal-state-layer-color: white}.mat-mdc-button.mat-accent[_ngcontent-%COMP%], .mat-mdc-unelevated-button.mat-accent[_ngcontent-%COMP%], .mat-mdc-raised-button.mat-accent[_ngcontent-%COMP%], .mat-mdc-outlined-button.mat-accent[_ngcontent-%COMP%], .mat-tonal-button.mat-accent[_ngcontent-%COMP%]{--%NS%mat-button-filled-container-color: #ff4081;--%NS%mat-button-filled-label-text-color: white;--%NS%mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-filled-state-layer-color: white;--%NS%mat-button-outlined-label-text-color: #ff4081;--%NS%mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--%NS%mat-button-outlined-ripple-color: color-mix(in srgb, #ff4081 12%, transparent);--%NS%mat-button-outlined-state-layer-color: #ff4081;--%NS%mat-button-protected-container-color: #ff4081;--%NS%mat-button-protected-label-text-color: white;--%NS%mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-protected-state-layer-color: white;--%NS%mat-button-text-label-text-color: #ff4081;--%NS%mat-button-text-ripple-color: color-mix(in srgb, #ff4081 12%, transparent);--%NS%mat-button-text-state-layer-color: #ff4081;--%NS%mat-button-tonal-container-color: #ff4081;--%NS%mat-button-tonal-label-text-color: white;--%NS%mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-tonal-state-layer-color: white}.mat-mdc-button.mat-warn[_ngcontent-%COMP%], .mat-mdc-unelevated-button.mat-warn[_ngcontent-%COMP%], .mat-mdc-raised-button.mat-warn[_ngcontent-%COMP%], .mat-mdc-outlined-button.mat-warn[_ngcontent-%COMP%], .mat-tonal-button.mat-warn[_ngcontent-%COMP%]{--%NS%mat-button-filled-container-color: #f44336;--%NS%mat-button-filled-label-text-color: white;--%NS%mat-button-filled-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-filled-state-layer-color: white;--%NS%mat-button-outlined-label-text-color: #f44336;--%NS%mat-button-outlined-outline-color: rgba(0, 0, 0, .12);--%NS%mat-button-outlined-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--%NS%mat-button-outlined-state-layer-color: #f44336;--%NS%mat-button-protected-container-color: #f44336;--%NS%mat-button-protected-label-text-color: white;--%NS%mat-button-protected-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-protected-state-layer-color: white;--%NS%mat-button-text-label-text-color: #f44336;--%NS%mat-button-text-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--%NS%mat-button-text-state-layer-color: #f44336;--%NS%mat-button-tonal-container-color: #f44336;--%NS%mat-button-tonal-label-text-color: white;--%NS%mat-button-tonal-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-button-tonal-state-layer-color: white}html[_ngcontent-%COMP%]{--%NS%mat-button-filled-container-height: 36px;--%NS%mat-button-filled-touch-target-display: block;--%NS%mat-button-outlined-container-height: 36px;--%NS%mat-button-outlined-touch-target-display: block;--%NS%mat-button-protected-container-height: 36px;--%NS%mat-button-protected-touch-target-display: block;--%NS%mat-button-text-container-height: 36px;--%NS%mat-button-text-touch-target-display: block;--%NS%mat-button-tonal-container-height: 36px;--%NS%mat-button-tonal-touch-target-display: block}html[_ngcontent-%COMP%]{--%NS%mat-button-filled-label-text-font: Roboto, sans-serif;--%NS%mat-button-filled-label-text-size: 14px;--%NS%mat-button-filled-label-text-tracking: .0892857143em;--%NS%mat-button-filled-label-text-transform: none;--%NS%mat-button-filled-label-text-weight: 500;--%NS%mat-button-outlined-label-text-font: Roboto, sans-serif;--%NS%mat-button-outlined-label-text-size: 14px;--%NS%mat-button-outlined-label-text-tracking: .0892857143em;--%NS%mat-button-outlined-label-text-transform: none;--%NS%mat-button-outlined-label-text-weight: 500;--%NS%mat-button-protected-label-text-font: Roboto, sans-serif;--%NS%mat-button-protected-label-text-size: 14px;--%NS%mat-button-protected-label-text-tracking: .0892857143em;--%NS%mat-button-protected-label-text-transform: none;--%NS%mat-button-protected-label-text-weight: 500;--%NS%mat-button-text-label-text-font: Roboto, sans-serif;--%NS%mat-button-text-label-text-size: 14px;--%NS%mat-button-text-label-text-tracking: .0892857143em;--%NS%mat-button-text-label-text-transform: none;--%NS%mat-button-text-label-text-weight: 500;--%NS%mat-button-tonal-label-text-font: Roboto, sans-serif;--%NS%mat-button-tonal-label-text-size: 14px;--%NS%mat-button-tonal-label-text-tracking: .0892857143em;--%NS%mat-button-tonal-label-text-transform: none;--%NS%mat-button-tonal-label-text-weight: 500}html[_ngcontent-%COMP%]{--%NS%mat-icon-button-icon-size: 24px;--%NS%mat-icon-button-container-shape: 50%;--%NS%mat-icon-button-touch-target-size: 48px}html[_ngcontent-%COMP%]{--%NS%mat-icon-button-disabled-icon-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-icon-button-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-icon-button-focus-state-layer-opacity: .12;--%NS%mat-icon-button-hover-state-layer-opacity: .04;--%NS%mat-icon-button-icon-color: inherit;--%NS%mat-icon-button-pressed-state-layer-opacity: .12;--%NS%mat-icon-button-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-icon-button-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-icon-button.mat-primary[_ngcontent-%COMP%]{--%NS%mat-icon-button-icon-color: #3f51b5;--%NS%mat-icon-button-state-layer-color: #3f51b5;--%NS%mat-icon-button-ripple-color: color-mix(in srgb, #3f51b5 12%, transparent)}.mat-mdc-icon-button.mat-accent[_ngcontent-%COMP%]{--%NS%mat-icon-button-icon-color: #ff4081;--%NS%mat-icon-button-state-layer-color: #ff4081;--%NS%mat-icon-button-ripple-color: color-mix(in srgb, #ff4081 12%, transparent)}.mat-mdc-icon-button.mat-warn[_ngcontent-%COMP%]{--%NS%mat-icon-button-icon-color: #f44336;--%NS%mat-icon-button-state-layer-color: #f44336;--%NS%mat-icon-button-ripple-color: color-mix(in srgb, #f44336 12%, transparent)}html[_ngcontent-%COMP%]{--%NS%mat-icon-button-touch-target-display: block}.mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--%NS%mdc-icon-button-state-layer-size: 48px;--%NS%mat-icon-button-state-layer-size: 48px;width:var(--%NS%mat-icon-button-state-layer-size);height:var(--%NS%mat-icon-button-state-layer-size);padding:12px}html[_ngcontent-%COMP%]{--%NS%mat-fab-container-shape: 50%;--%NS%mat-fab-touch-target-size: 48px;--%NS%mat-fab-extended-container-height: 48px;--%NS%mat-fab-extended-container-shape: 24px;--%NS%mat-fab-small-container-shape: 50%;--%NS%mat-fab-small-touch-target-size: 48px}html[_ngcontent-%COMP%]{--%NS%mat-fab-container-color: white;--%NS%mat-fab-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-fab-extended-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-fab-extended-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-fab-extended-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-fab-extended-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-fab-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-fab-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-fab-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-fab-small-container-elevation-shadow: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--%NS%mat-fab-small-focus-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-fab-small-hover-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-fab-small-pressed-container-elevation-shadow: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--%NS%mat-fab-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-fab-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-fab-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-fab-focus-state-layer-opacity: .12;--%NS%mat-fab-foreground-color: rgba(0, 0, 0, .87);--%NS%mat-fab-hover-state-layer-opacity: .04;--%NS%mat-fab-pressed-state-layer-opacity: .12;--%NS%mat-fab-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-fab-small-container-color: white;--%NS%mat-fab-small-disabled-state-container-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-fab-small-disabled-state-foreground-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-fab-small-disabled-state-layer-color: rgba(0, 0, 0, .54);--%NS%mat-fab-small-focus-state-layer-opacity: .12;--%NS%mat-fab-small-foreground-color: rgba(0, 0, 0, .87);--%NS%mat-fab-small-hover-state-layer-opacity: .04;--%NS%mat-fab-small-pressed-state-layer-opacity: .12;--%NS%mat-fab-small-ripple-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-fab-small-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-fab-state-layer-color: rgba(0, 0, 0, .87)}.mat-mdc-fab.mat-primary[_ngcontent-%COMP%], .mat-mdc-mini-fab.mat-primary[_ngcontent-%COMP%]{--%NS%mat-fab-container-color: #3f51b5;--%NS%mat-fab-foreground-color: white;--%NS%mat-fab-ripple-color: color-mix(in srgb, #3f51b5 12%, transparent);--%NS%mat-fab-small-container-color: #3f51b5;--%NS%mat-fab-small-foreground-color: white;--%NS%mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-fab-small-state-layer-color: white;--%NS%mat-fab-state-layer-color: white}.mat-mdc-fab.mat-accent[_ngcontent-%COMP%], .mat-mdc-mini-fab.mat-accent[_ngcontent-%COMP%]{--%NS%mat-fab-container-color: #ff4081;--%NS%mat-fab-foreground-color: white;--%NS%mat-fab-ripple-color: color-mix(in srgb, #ff4081 12%, transparent);--%NS%mat-fab-small-container-color: #ff4081;--%NS%mat-fab-small-foreground-color: white;--%NS%mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-fab-small-state-layer-color: white;--%NS%mat-fab-state-layer-color: white}.mat-mdc-fab.mat-warn[_ngcontent-%COMP%], .mat-mdc-mini-fab.mat-warn[_ngcontent-%COMP%]{--%NS%mat-fab-container-color: #f44336;--%NS%mat-fab-foreground-color: white;--%NS%mat-fab-ripple-color: color-mix(in srgb, #f44336 12%, transparent);--%NS%mat-fab-small-container-color: #f44336;--%NS%mat-fab-small-foreground-color: white;--%NS%mat-fab-small-ripple-color: color-mix(in srgb, white 12%, transparent);--%NS%mat-fab-small-state-layer-color: white;--%NS%mat-fab-state-layer-color: white}html[_ngcontent-%COMP%]{--%NS%mat-fab-small-touch-target-display: block;--%NS%mat-fab-touch-target-display: block}html[_ngcontent-%COMP%]{--%NS%mat-fab-extended-label-text-font: Roboto, sans-serif;--%NS%mat-fab-extended-label-text-size: 14px;--%NS%mat-fab-extended-label-text-tracking: .0892857143em;--%NS%mat-fab-extended-label-text-weight: 500}html[_ngcontent-%COMP%]{--%NS%mat-snack-bar-container-shape: 4px}html[_ngcontent-%COMP%]{--%NS%mat-snack-bar-container-color: #424242;--%NS%mat-snack-bar-supporting-text-color: white;--%NS%mat-snack-bar-button-color: #7986cb}html[_ngcontent-%COMP%]{--%NS%mat-snack-bar-supporting-text-font: Roboto, sans-serif;--%NS%mat-snack-bar-supporting-text-line-height: 20px;--%NS%mat-snack-bar-supporting-text-size: 14px;--%NS%mat-snack-bar-supporting-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-table-row-item-outline-width: 1px}html[_ngcontent-%COMP%]{--%NS%mat-table-background-color: white;--%NS%mat-table-header-headline-color: rgba(0, 0, 0, .87);--%NS%mat-table-row-item-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-table-row-item-outline-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-table-header-container-height: 56px;--%NS%mat-table-footer-container-height: 52px;--%NS%mat-table-row-item-container-height: 52px}html[_ngcontent-%COMP%]{--%NS%mat-table-header-headline-font: Roboto, sans-serif;--%NS%mat-table-header-headline-line-height: 22px;--%NS%mat-table-header-headline-size: 14px;--%NS%mat-table-header-headline-weight: 500;--%NS%mat-table-header-headline-tracking: .0071428571em;--%NS%mat-table-row-item-label-text-font: Roboto, sans-serif;--%NS%mat-table-row-item-label-text-line-height: 20px;--%NS%mat-table-row-item-label-text-size: 14px;--%NS%mat-table-row-item-label-text-weight: 400;--%NS%mat-table-row-item-label-text-tracking: .0178571429em;--%NS%mat-table-footer-supporting-text-font: Roboto, sans-serif;--%NS%mat-table-footer-supporting-text-line-height: 20px;--%NS%mat-table-footer-supporting-text-size: 14px;--%NS%mat-table-footer-supporting-text-weight: 400;--%NS%mat-table-footer-supporting-text-tracking: .0178571429em}html[_ngcontent-%COMP%]{--%NS%mat-progress-spinner-active-indicator-width: 4px;--%NS%mat-progress-spinner-size: 48px}html[_ngcontent-%COMP%]{--%NS%mat-progress-spinner-active-indicator-color: #3f51b5}.mat-accent[_ngcontent-%COMP%]{--%NS%mat-progress-spinner-active-indicator-color: #ff4081}.mat-warn[_ngcontent-%COMP%]{--%NS%mat-progress-spinner-active-indicator-color: #f44336}html[_ngcontent-%COMP%]{--%NS%mat-badge-container-shape: 50%;--%NS%mat-badge-container-size: unset;--%NS%mat-badge-small-size-container-size: unset;--%NS%mat-badge-large-size-container-size: unset;--%NS%mat-badge-legacy-container-size: 22px;--%NS%mat-badge-legacy-small-size-container-size: 16px;--%NS%mat-badge-legacy-large-size-container-size: 28px;--%NS%mat-badge-container-offset: -11px 0;--%NS%mat-badge-small-size-container-offset: -8px 0;--%NS%mat-badge-large-size-container-offset: -14px 0;--%NS%mat-badge-container-overlap-offset: -11px;--%NS%mat-badge-small-size-container-overlap-offset: -8px;--%NS%mat-badge-large-size-container-overlap-offset: -14px;--%NS%mat-badge-container-padding: 0;--%NS%mat-badge-small-size-container-padding: 0;--%NS%mat-badge-large-size-container-padding: 0}html[_ngcontent-%COMP%]{--%NS%mat-badge-background-color: #3f51b5;--%NS%mat-badge-text-color: white;--%NS%mat-badge-disabled-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-badge-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent)}.mat-badge-accent[_ngcontent-%COMP%]{--%NS%mat-badge-background-color: #ff4081;--%NS%mat-badge-text-color: white}.mat-badge-warn[_ngcontent-%COMP%]{--%NS%mat-badge-background-color: #f44336;--%NS%mat-badge-text-color: white}html[_ngcontent-%COMP%]{--%NS%mat-badge-text-font: Roboto, sans-serif;--%NS%mat-badge-line-height: 22px;--%NS%mat-badge-text-size: 12px;--%NS%mat-badge-text-weight: 600;--%NS%mat-badge-small-size-text-size: 9px;--%NS%mat-badge-small-size-line-height: 16px;--%NS%mat-badge-large-size-text-size: 24px;--%NS%mat-badge-large-size-line-height: 28px}html[_ngcontent-%COMP%]{--%NS%mat-bottom-sheet-container-shape: 4px}html[_ngcontent-%COMP%]{--%NS%mat-bottom-sheet-container-text-color: rgba(0, 0, 0, .87);--%NS%mat-bottom-sheet-container-background-color: white}html[_ngcontent-%COMP%]{--%NS%mat-bottom-sheet-container-text-font: Roboto, sans-serif;--%NS%mat-bottom-sheet-container-text-line-height: 20px;--%NS%mat-bottom-sheet-container-text-size: 14px;--%NS%mat-bottom-sheet-container-text-tracking: .0178571429em;--%NS%mat-bottom-sheet-container-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-button-toggle-focus-state-layer-opacity: .12;--%NS%mat-button-toggle-hover-state-layer-opacity: .04;--%NS%mat-button-toggle-legacy-focus-state-layer-opacity: 1;--%NS%mat-button-toggle-legacy-height: 36px;--%NS%mat-button-toggle-legacy-shape: 2px;--%NS%mat-button-toggle-shape: 4px}html[_ngcontent-%COMP%]{--%NS%mat-button-toggle-background-color: white;--%NS%mat-button-toggle-disabled-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-toggle-disabled-selected-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-toggle-disabled-state-background-color: white;--%NS%mat-button-toggle-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-toggle-divider-color: rgba(0, 0, 0, .12);--%NS%mat-button-toggle-legacy-disabled-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-toggle-legacy-disabled-state-background-color: white;--%NS%mat-button-toggle-legacy-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-button-toggle-legacy-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-toggle-legacy-selected-state-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-toggle-legacy-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-toggle-legacy-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-toggle-selected-state-background-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-button-toggle-selected-state-text-color: rgba(0, 0, 0, .87);--%NS%mat-button-toggle-state-layer-color: rgba(0, 0, 0, .87);--%NS%mat-button-toggle-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--%NS%mat-button-toggle-height: 48px}html[_ngcontent-%COMP%]{--%NS%mat-button-toggle-label-text-font: Roboto, sans-serif;--%NS%mat-button-toggle-label-text-line-height: 24px;--%NS%mat-button-toggle-label-text-size: 16px;--%NS%mat-button-toggle-label-text-tracking: .03125em;--%NS%mat-button-toggle-label-text-weight: 400;--%NS%mat-button-toggle-legacy-label-text-font: Roboto, sans-serif;--%NS%mat-button-toggle-legacy-label-text-line-height: 24px;--%NS%mat-button-toggle-legacy-label-text-size: 16px;--%NS%mat-button-toggle-legacy-label-text-tracking: .03125em;--%NS%mat-button-toggle-legacy-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-datepicker-calendar-container-shape: 4px;--%NS%mat-datepicker-calendar-container-touch-shape: 4px;--%NS%mat-datepicker-calendar-container-elevation-shadow: 0px 2px 4px -1px rgba(0, 0, 0, .2), 0px 4px 5px 0px rgba(0, 0, 0, .14), 0px 1px 10px 0px rgba(0, 0, 0, .12);--%NS%mat-datepicker-calendar-container-touch-elevation-shadow: 0px 11px 15px -7px rgba(0, 0, 0, .2), 0px 24px 38px 3px rgba(0, 0, 0, .14), 0px 9px 46px 8px rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #3f51b5 20%, transparent);--%NS%mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #ff4081 20%, transparent);--%NS%mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--%NS%mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(27.2643896268%, 64.1081593928%, 36.843769766%);--%NS%mat-datepicker-calendar-date-selected-state-text-color: white;--%NS%mat-datepicker-calendar-date-selected-state-background-color: #3f51b5;--%NS%mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #3f51b5 38%, transparent);--%NS%mat-datepicker-calendar-date-today-selected-state-outline-color: white;--%NS%mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #3f51b5 12%, transparent);--%NS%mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #3f51b5 4%, transparent);--%NS%mat-datepicker-toggle-active-state-icon-color: #3f51b5;--%NS%mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--%NS%mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-calendar-date-outline-color: transparent;--%NS%mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-container-background-color: white;--%NS%mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-accent[_ngcontent-%COMP%], .mat-datepicker-toggle-active.mat-accent[_ngcontent-%COMP%]{--%NS%mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #ff4081 20%, transparent);--%NS%mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #ff4081 20%, transparent);--%NS%mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--%NS%mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(27.2643896268%, 64.1081593928%, 36.843769766%);--%NS%mat-datepicker-calendar-date-selected-state-text-color: white;--%NS%mat-datepicker-calendar-date-selected-state-background-color: #ff4081;--%NS%mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #ff4081 38%, transparent);--%NS%mat-datepicker-calendar-date-today-selected-state-outline-color: white;--%NS%mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #ff4081 12%, transparent);--%NS%mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #ff4081 4%, transparent);--%NS%mat-datepicker-toggle-active-state-icon-color: #ff4081;--%NS%mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--%NS%mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-calendar-date-outline-color: transparent;--%NS%mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-container-background-color: white;--%NS%mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-datepicker-content.mat-warn[_ngcontent-%COMP%], .mat-datepicker-toggle-active.mat-warn[_ngcontent-%COMP%]{--%NS%mat-datepicker-calendar-date-in-range-state-background-color: color-mix(in srgb, #f44336 20%, transparent);--%NS%mat-datepicker-calendar-date-in-comparison-range-state-background-color: color-mix(in srgb, #ff4081 20%, transparent);--%NS%mat-datepicker-calendar-date-in-overlap-range-state-background-color: #a8dab5;--%NS%mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color: rgb(27.2643896268%, 64.1081593928%, 36.843769766%);--%NS%mat-datepicker-calendar-date-selected-state-text-color: white;--%NS%mat-datepicker-calendar-date-selected-state-background-color: #f44336;--%NS%mat-datepicker-calendar-date-selected-disabled-state-background-color: color-mix(in srgb, #f44336 38%, transparent);--%NS%mat-datepicker-calendar-date-today-selected-state-outline-color: white;--%NS%mat-datepicker-calendar-date-focus-state-background-color: color-mix(in srgb, #f44336 12%, transparent);--%NS%mat-datepicker-calendar-date-hover-state-background-color: color-mix(in srgb, #f44336 4%, transparent);--%NS%mat-datepicker-toggle-active-state-icon-color: #f44336;--%NS%mat-datepicker-toggle-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-body-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-period-button-text-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-calendar-period-button-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-navigation-button-icon-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-header-divider-color: rgba(0, 0, 0, .12);--%NS%mat-datepicker-calendar-header-text-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-date-today-outline-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-calendar-date-today-disabled-state-outline-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-date-text-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-calendar-date-outline-color: transparent;--%NS%mat-datepicker-calendar-date-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-date-preview-state-outline-color: rgba(0, 0, 0, .54);--%NS%mat-datepicker-range-input-separator-color: rgba(0, 0, 0, .87);--%NS%mat-datepicker-range-input-disabled-state-separator-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-range-input-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-datepicker-calendar-container-background-color: white;--%NS%mat-datepicker-calendar-container-text-color: rgba(0, 0, 0, .87)}.mat-calendar-controls[_ngcontent-%COMP%]{--%NS%mat-icon-button-touch-target-display: none}.mat-calendar-controls[_ngcontent-%COMP%] .mat-mdc-icon-button.mat-mdc-button-base[_ngcontent-%COMP%]{--%NS%mdc-icon-button-state-layer-size: 40px;--%NS%mat-icon-button-state-layer-size: 40px;width:var(--%NS%mat-icon-button-state-layer-size);height:var(--%NS%mat-icon-button-state-layer-size);padding:8px}html[_ngcontent-%COMP%]{--%NS%mat-datepicker-calendar-text-font: Roboto, sans-serif;--%NS%mat-datepicker-calendar-text-size: 13px;--%NS%mat-datepicker-calendar-body-label-text-size: 14px;--%NS%mat-datepicker-calendar-body-label-text-weight: 500;--%NS%mat-datepicker-calendar-period-button-text-size: 14px;--%NS%mat-datepicker-calendar-period-button-text-weight: 500;--%NS%mat-datepicker-calendar-header-text-size: 11px;--%NS%mat-datepicker-calendar-header-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-divider-width: 1px}html[_ngcontent-%COMP%]{--%NS%mat-divider-color: rgba(0, 0, 0, .12)}html[_ngcontent-%COMP%]{--%NS%mat-expansion-container-shape: 4px;--%NS%mat-expansion-legacy-header-indicator-display: inline-block;--%NS%mat-expansion-header-indicator-display: none}html[_ngcontent-%COMP%]{--%NS%mat-expansion-container-elevation-shadow: 0px 3px 1px -2px rgba(0, 0, 0, .2), 0px 2px 2px 0px rgba(0, 0, 0, .14), 0px 1px 5px 0px rgba(0, 0, 0, .12);--%NS%mat-expansion-container-background-color: white;--%NS%mat-expansion-container-text-color: rgba(0, 0, 0, .87);--%NS%mat-expansion-actions-divider-color: rgba(0, 0, 0, .12);--%NS%mat-expansion-header-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-expansion-header-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-expansion-header-disabled-state-text-color: color-mix(in srgb, rgba(0, 0, 0, .87) 38%, transparent);--%NS%mat-expansion-header-text-color: rgba(0, 0, 0, .87);--%NS%mat-expansion-header-description-color: rgba(0, 0, 0, .54);--%NS%mat-expansion-header-indicator-color: rgba(0, 0, 0, .54)}html[_ngcontent-%COMP%]{--%NS%mat-expansion-header-collapsed-state-height: 48px;--%NS%mat-expansion-header-expanded-state-height: 64px}html[_ngcontent-%COMP%]{--%NS%mat-expansion-header-text-font: Roboto, sans-serif;--%NS%mat-expansion-header-text-size: 14px;--%NS%mat-expansion-header-text-weight: 500;--%NS%mat-expansion-header-text-line-height: inherit;--%NS%mat-expansion-header-text-tracking: inherit;--%NS%mat-expansion-container-text-font: Roboto, sans-serif;--%NS%mat-expansion-container-text-line-height: 20px;--%NS%mat-expansion-container-text-size: 14px;--%NS%mat-expansion-container-text-tracking: .0178571429em;--%NS%mat-expansion-container-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-grid-list-tile-header-primary-text-size: 14px;--%NS%mat-grid-list-tile-header-secondary-text-size: 12px;--%NS%mat-grid-list-tile-footer-primary-text-size: 14px;--%NS%mat-grid-list-tile-footer-secondary-text-size: 12px}html[_ngcontent-%COMP%]{--%NS%mat-icon-color: inherit}.mat-icon.mat-primary[_ngcontent-%COMP%]{--%NS%mat-icon-color: #3f51b5}.mat-icon.mat-accent[_ngcontent-%COMP%]{--%NS%mat-icon-color: #ff4081}.mat-icon.mat-warn[_ngcontent-%COMP%]{--%NS%mat-icon-color: #f44336}html[_ngcontent-%COMP%]{--%NS%mat-sidenav-container-shape: 0;--%NS%mat-sidenav-container-width: auto}html[_ngcontent-%COMP%]{--%NS%mat-sidenav-container-elevation-shadow: 0px 8px 10px -5px rgba(0, 0, 0, .2), 0px 16px 24px 2px rgba(0, 0, 0, .14), 0px 6px 30px 5px rgba(0, 0, 0, .12);--%NS%mat-sidenav-container-divider-color: rgba(0, 0, 0, .12);--%NS%mat-sidenav-container-background-color: white;--%NS%mat-sidenav-container-text-color: rgba(0, 0, 0, .87);--%NS%mat-sidenav-content-background-color: #fafafa;--%NS%mat-sidenav-content-text-color: rgba(0, 0, 0, .87);--%NS%mat-sidenav-scrim-color: rgba(0, 0, 0, .6)}html[_ngcontent-%COMP%]{--%NS%mat-stepper-header-focus-state-layer-shape: 4px;--%NS%mat-stepper-header-hover-state-layer-shape: 4px}html[_ngcontent-%COMP%]{--%NS%mat-stepper-header-icon-foreground-color: white;--%NS%mat-stepper-header-selected-state-icon-background-color: #3f51b5;--%NS%mat-stepper-header-selected-state-icon-foreground-color: white;--%NS%mat-stepper-header-done-state-icon-background-color: #3f51b5;--%NS%mat-stepper-header-done-state-icon-foreground-color: white;--%NS%mat-stepper-header-edit-state-icon-background-color: #3f51b5;--%NS%mat-stepper-header-edit-state-icon-foreground-color: white;--%NS%mat-stepper-container-color: white;--%NS%mat-stepper-line-color: rgba(0, 0, 0, .12);--%NS%mat-stepper-header-hover-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 4%, transparent);--%NS%mat-stepper-header-focus-state-layer-color: color-mix(in srgb, rgba(0, 0, 0, .87) 12%, transparent);--%NS%mat-stepper-header-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-stepper-header-optional-label-text-color: rgba(0, 0, 0, .54);--%NS%mat-stepper-header-selected-state-label-text-color: rgba(0, 0, 0, .87);--%NS%mat-stepper-header-error-state-label-text-color: #f44336;--%NS%mat-stepper-header-icon-background-color: rgba(0, 0, 0, .54);--%NS%mat-stepper-header-error-state-icon-foreground-color: #f44336;--%NS%mat-stepper-header-error-state-icon-background-color: transparent}.mat-step-header.mat-accent[_ngcontent-%COMP%]{--%NS%mat-stepper-header-icon-foreground-color: white;--%NS%mat-stepper-header-selected-state-icon-background-color: #ff4081;--%NS%mat-stepper-header-selected-state-icon-foreground-color: white;--%NS%mat-stepper-header-done-state-icon-background-color: #ff4081;--%NS%mat-stepper-header-done-state-icon-foreground-color: white;--%NS%mat-stepper-header-edit-state-icon-background-color: #ff4081;--%NS%mat-stepper-header-edit-state-icon-foreground-color: white}.mat-step-header.mat-warn[_ngcontent-%COMP%]{--%NS%mat-stepper-header-icon-foreground-color: white;--%NS%mat-stepper-header-selected-state-icon-background-color: #f44336;--%NS%mat-stepper-header-selected-state-icon-foreground-color: white;--%NS%mat-stepper-header-done-state-icon-background-color: #f44336;--%NS%mat-stepper-header-done-state-icon-foreground-color: white;--%NS%mat-stepper-header-edit-state-icon-background-color: #f44336;--%NS%mat-stepper-header-edit-state-icon-foreground-color: white}html[_ngcontent-%COMP%]{--%NS%mat-stepper-header-height: 72px}html[_ngcontent-%COMP%]{--%NS%mat-stepper-container-text-font: Roboto, sans-serif;--%NS%mat-stepper-header-label-text-font: Roboto, sans-serif;--%NS%mat-stepper-header-label-text-size: 14px;--%NS%mat-stepper-header-label-text-weight: 400;--%NS%mat-stepper-header-error-state-label-text-size: 16px;--%NS%mat-stepper-header-selected-state-label-text-size: 16px;--%NS%mat-stepper-header-selected-state-label-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-sort-arrow-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--%NS%mat-toolbar-container-background-color: white;--%NS%mat-toolbar-container-text-color: rgba(0, 0, 0, .87)}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{--%NS%mat-toolbar-container-background-color: #3f51b5;--%NS%mat-toolbar-container-text-color: white}.mat-toolbar.mat-accent[_ngcontent-%COMP%]{--%NS%mat-toolbar-container-background-color: #ff4081;--%NS%mat-toolbar-container-text-color: white}.mat-toolbar.mat-warn[_ngcontent-%COMP%]{--%NS%mat-toolbar-container-background-color: #f44336;--%NS%mat-toolbar-container-text-color: white}html[_ngcontent-%COMP%]{--%NS%mat-toolbar-standard-height: 64px;--%NS%mat-toolbar-mobile-height: 56px}html[_ngcontent-%COMP%]{--%NS%mat-toolbar-title-text-font: Roboto, sans-serif;--%NS%mat-toolbar-title-text-line-height: 32px;--%NS%mat-toolbar-title-text-size: 20px;--%NS%mat-toolbar-title-text-tracking: .0125em;--%NS%mat-toolbar-title-text-weight: 500}html[_ngcontent-%COMP%]{--%NS%mat-tree-container-background-color: white;--%NS%mat-tree-node-text-color: rgba(0, 0, 0, .87)}html[_ngcontent-%COMP%]{--%NS%mat-tree-node-min-height: 48px}html[_ngcontent-%COMP%]{--%NS%mat-tree-node-text-font: Roboto, sans-serif;--%NS%mat-tree-node-text-size: 14px;--%NS%mat-tree-node-text-weight: 400}html[_ngcontent-%COMP%]{--%NS%mat-timepicker-container-shape: 4px}html[_ngcontent-%COMP%]{--%NS%mat-timepicker-container-elevation-shadow: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--%NS%mat-timepicker-container-background-color: white}.mat-h1[_ngcontent-%COMP%], .mat-headline-5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline-5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-headline-6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline-6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px/32px Roboto,sans-serif;letter-spacing:.0125em;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subtitle-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-subtitle-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px/28px Roboto,sans-serif;letter-spacing:.009375em;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 16px/24px Roboto,sans-serif;letter-spacing:.03125em;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-subtitle-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-subtitle-2[_ngcontent-%COMP%]{font:500 14px/22px Roboto,sans-serif;letter-spacing:.0071428571em}.mat-body[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px/20px Roboto,sans-serif;letter-spacing:.0178571429em}.mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_ngcontent-%COMP%]{font:400 12px/20px Roboto,sans-serif;letter-spacing:.0333333333em}.mat-headline-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline-1[_ngcontent-%COMP%]{font:300 96px/96px Roboto,sans-serif;letter-spacing:-.015625em;margin:0 0 56px}.mat-headline-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline-2[_ngcontent-%COMP%]{font:300 60px/60px Roboto,sans-serif;letter-spacing:-.0083333333em;margin:0 0 64px}.mat-headline-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline-3[_ngcontent-%COMP%]{font:400 48px/50px Roboto,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-headline-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline-4[_ngcontent-%COMP%]{font:400 34px/40px Roboto,sans-serif;letter-spacing:.0073529412em;margin:0 0 64px}.app-header[_ngcontent-%COMP%], .app-footer[_ngcontent-%COMP%]{font-family:CEDAR Roboto,Helvetica Neue,sans-serif}.app-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:60px;padding:0 16px;background:#0f7686;color:#fff;font-size:18px;font-weight:var(--%NS%cedar-font-weight-medium, 500)}.app-logo[_ngcontent-%COMP%]{width:80px;height:60px;margin-right:4px;background:url(/assets/images/cedar-logo-80x80.png) no-repeat center/contain}.app-footer[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin:24px auto 0;padding:16px;max-width:80%;background:#f4f6f6}.app-footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 4px}.app-footer-logo[_ngcontent-%COMP%]{display:block;width:112px;height:97px;background:url(/assets/images/division-logo.png) no-repeat center/contain}.field-demo[_ngcontent-%COMP%]{margin:24px auto 0;padding:16px;max-width:80%;border:1px solid #d7e0df}.field-demo[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:18px}.field-demo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px;max-width:70ch}.field-demo-picker[_ngcontent-%COMP%]{display:block;margin-bottom:12px}.field-demo-picker[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{margin-left:8px}.field-demo-value[_ngcontent-%COMP%]{margin-top:12px}.field-demo-value[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{font-family:inherit}.field-demo-value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:12px;color:#555}"],changeDetection:1})}}return n})();var sj=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){lf(pS,()=>Lp(Au,{injector:this.injector})),lf(hS,()=>Lp(sf,{injector:this.injector}))}static{this.\u0275fac=function(i){return new(i||n)(qe(st))}}static{this.\u0275mod=Ye({type:n,bootstrap:[oj]})}static{this.\u0275inj=ze({providers:[hg,Sg(Ng(),wg()),t0({loader:{provide:po,useFactory:(e,i,a)=>Sd(e,i,a,{en:nc,hu:ic}),deps:[ur,Di,Na]}})],imports:[_g,uS]})}}return n})();function lj(n,t,e){if(n.cedarEmbeddableEditorBootstrap)return;let i=t();n.cedarEmbeddableEditorBootstrap=i,i.catch(e)}r1.production&&void 0;r1.production?lj(window,()=>(window.cedarEmbeddableEditorVersion=qg.version,A_().bootstrapModule(rj,{applicationProviders:[RI()]})),n=>console.error(n)):(window.cedarEmbeddableEditorVersion=qg.version,A_().bootstrapModule(sj,{applicationProviders:[RI()]}).catch(n=>console.error(n)))}});require_main();})();
|