w.has(D.variable.name.value))})}}}}))}function YM(t){let n=new Map;return function(r=t){let i=n.get(r);return i||n.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function M7(t){let n=new Map,e=new Map;return t.forEach(r=>{r&&(r.name?n.set(r.name,r):r.test&&e.set(r.test,r))}),r=>{let i=n.get(r.name.value);return!i&&e.size&&e.forEach((o,s)=>{s(r)&&(i=o)}),i}}function ZM(t,n){return!t||t.selectionSet.selections.every(e=>e.kind===Q.FRAGMENT_SPREAD&&ZM(n[e.name.value],n))}function O7(t){return ZM(Pn(t)||cu(t),ui(pi(t)))?null:t}function w_(t){return on(t,{FragmentSpread(n){if(!n.directives?.some(({name:e})=>e.value==="unmask"))return null}})}function gr(t){return t.alias?t.alias.value:t.name.value}function Do({directives:t},n){return!t||!t.length?!0:P7(t).every(({directive:e,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=n&&n[r.value.name.value],W(i!==void 0,15,e.name.value)):i=r.value.value,e.name.value==="skip"?!i:i})}function R7({name:{value:t}}){return t==="skip"||t==="include"}function P7(t){let n=[];return t&&t.length&&t.forEach(e=>{if(!R7(e))return;let r=e.arguments,i=e.name.value;W(r&&r.length===1,16,i);let o=r[0];W(o.name&&o.name.value==="if",17,i);let s=o.value;W(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),18,i),n.push({directive:e,ifArgument:o})}),n}function C_(t,n){let e=null;t.directives&&(e={},t.directives.forEach(i=>{e[i.name.value]={},i.arguments&&i.arguments.forEach(({name:o,value:s})=>So(e[i.name.value],o,s,n))}));let r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(({name:i,value:o})=>So(r,i,o,n))),fu(t.name.value,r,e)}function fs(t){let n={data:t.data};return t.error&&(n.error=t.error),n}function ic(t,n=()=>{}){return e=>new pe(r=>{let i=n();return e.subscribe({next(o){let s;try{s=t(o,i)}catch(a){r.error(a)}s!==void 0&&r.next(s)},error(o){r.error(o)},complete(){r.complete()}})})}var{toString:JM,hasOwnProperty:A7}=Object.prototype,XM=Function.prototype.toString,x_=new Map;function dt(t,n){try{return T_(t,n)}finally{x_.clear()}}function T_(t,n){if(t===n)return!0;let e=JM.call(t),r=JM.call(n);if(e!==r)return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(tO(t,n))return!0;let i=eO(t),o=eO(n),s=i.length;if(s!==o.length)return!1;for(let a=0;a=0&&t.indexOf(n,e)===e}function tO(t,n){let e=x_.get(t);if(e){if(e.has(n))return!0}else x_.set(t,e=new Set);return e.add(n),!1}function hu(t,s,l,o){var a=s,{data:n}=a,e=Et(a,["data"]);var c=l,{data:r}=c,i=Et(c,["data"]);return dt(e,i)&&um(us(t).selectionSet,n,r,{fragmentMap:ui(pi(t)),variables:o})}function um(t,n,e,r){if(n===e)return!0;let i=new Set;return t.selections.every(o=>{if(i.has(o)||(i.add(o),!Do(o,r.variables))||nO(o))return!0;if(qi(o)){let s=gr(o),a=n&&n[s],l=e&&e[s],c=o.selectionSet;if(!c)return dt(a,l);let d=Array.isArray(a),u=Array.isArray(l);if(d!==u)return!1;if(d&&u){let p=a.length;if(l.length!==p)return!1;for(let f=0;fi(t.getCurrentResult())})}var mu=cm(function(n,e,r){return V7(n,r)},{max:1,makeCacheKey:t=>t.slice(0,2)});var gu=Symbol.for("apollo.result.extensions"),yr=Symbol.for("apollo.result.streamInfo"),E_=Symbol.for("apollo.observableQuery.variablesUnknown");var An=null,rO={},j7=1,z7=()=>class{constructor(){this.id=["slot",j7++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=An;n;n=n.parent)if(this.id in n.slots){let e=n.slots[this.id];if(e===rO)break;return n!==An&&(An.slots[this.id]=e),!0}return An&&(An.slots[this.id]=rO),!1}getValue(){if(this.hasValue())return An.slots[this.id]}withValue(n,e,r,i){let o={__proto__:null,[this.id]:n},s=An;An={parent:s,slots:o};try{return e.apply(i,r)}finally{An=s}}static bind(n){let e=An;return function(){let r=An;try{return An=e,n.apply(this,arguments)}finally{An=r}}}static noContext(n,e,r){if(An){let i=An;try{return An=null,n.apply(r,e)}finally{An=i}}else return n.apply(r,e)}};function iO(t){try{return t()}catch{}}var S_="@wry/context:Slot",H7=iO(()=>globalThis)||iO(()=>global)||Object.create(null),oO=H7,ko=oO[S_]||Array[S_]||(function(t){try{Object.defineProperty(oO,S_,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(z7());var{bind:sO,noContext:aO}=ko;var ba=new ko;var{hasOwnProperty:lO}=Object.prototype,yu=Array.from||function(t){let n=[];return t.forEach(e=>n.push(e)),n};function oc(t){let{unsubscribe:n}=t;typeof n=="function"&&(t.unsubscribe=void 0,n())}var bu=[],W7=100;function sc(t,n){if(!t)throw new Error(n||"assertion failure")}function dO(t,n){let e=t.length;return e>0&&e===n.length&&t[e-1]===n[e-1]}function uO(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function pO(t){return t.slice(0)}var fO=(()=>{class t{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}peek(){if(this.value.length===1&&!hs(this))return cO(this),this.value[0]}recompute(e){return sc(!this.recomputing,"already recomputing"),cO(this),hs(this)?G7(this,e):uO(this.value)}setDirty(){this.dirty||(this.dirty=!0,hO(this),oc(this))}dispose(){this.setDirty(),vO(this),I_(this,(e,r)=>{e.setDirty(),_O(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=bu.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(yu(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),bu.push(this.deps),this.deps=null)}}return t.count=0,t})();function cO(t){let n=ba.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),hs(t)?gO(n,t):yO(n,t),n}function G7(t,n){return vO(t),ba.withValue(t,q7,[t,n]),K7(t,n)&&Q7(t),uO(t.value)}function q7(t,n){t.recomputing=!0;let{normalizeResult:e}=t,r;e&&t.value.length===1&&(r=pO(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,n),e&&r&&!dO(r,t.value))try{t.value[0]=e(t.value[0],r[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function hs(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function Q7(t){t.dirty=!1,!hs(t)&&mO(t)}function hO(t){I_(t,gO)}function mO(t){I_(t,yO)}function I_(t,n){let e=t.parents.size;if(e){let r=yu(t.parents);for(let i=0;i0&&t.childValues.forEach((n,e)=>{_O(t,e)}),t.forgetDeps(),sc(t.dirtyChildren===null)}function _O(t,n){n.parents.delete(t),t.childValues.delete(n),bO(t,n)}function K7(t,n){if(typeof t.subscribe=="function")try{oc(t),t.unsubscribe=t.subscribe.apply(null,n)}catch{return t.setDirty(),!1}return!0}var Y7={setDirty:!0,dispose:!0,forget:!0};function vu(t){let n=new Map,e=t&&t.subscribe;function r(i){let o=ba.getValue();if(o){let s=n.get(i);s||n.set(i,s=new Set),o.dependOn(s),typeof e=="function"&&(oc(s),s.unsubscribe=e(i))}}return r.dirty=function(o,s){let a=n.get(o);if(a){let l=s&&lO.call(Y7,s)?s:"setDirty";yu(a).forEach(c=>c[l]()),n.delete(o),oc(a)}},r}var wO;function k_(...t){return(wO||(wO=new Rn(typeof WeakMap=="function"))).lookupArray(t)}var D_=new Set;function Mo(t,{max:n=Math.pow(2,16),keyArgs:e,makeCacheKey:r=k_,normalizeResult:i,subscribe:o,cache:s=cs}=Object.create(null)){let a=typeof s=="function"?new s(n,p=>p.dispose()):s,l=function(){let p=r.apply(null,e?e.apply(null,arguments):arguments);if(p===void 0)return t.apply(null,arguments);let f=a.get(p);f||(a.set(p,f=new fO(t)),f.normalizeResult=i,f.subscribe=o,f.forget=()=>a.delete(p));let y=f.recompute(Array.prototype.slice.call(arguments));return a.set(p,f),D_.add(a),ba.hasValue()||(D_.forEach(b=>b.clean()),D_.clear()),y};Object.defineProperty(l,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:n,keyArgs:e,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:a});function c(p){let f=p&&a.get(p);f&&f.setDirty()}l.dirtyKey=c,l.dirty=function(){c(r.apply(null,arguments))};function d(p){let f=p&&a.get(p);if(f)return f.peek()}l.peekKey=d,l.peek=function(){return d(r.apply(null,arguments))};function u(p){return p?a.delete(p):!1}return l.forgetKey=u,l.forget=function(){return u(r.apply(null,arguments))},l.makeCacheKey=r,l.getKey=e?function(){return r.apply(null,e.apply(null,arguments))}:r,Object.freeze(l)}function M_(...t){return k_.bind(null,...t)}function O_(){throw new Error("only supported in development mode")}var CO=O_,xO=O_,TO=O_;var _u=class{isIncrementalResult(n){return!1}prepareRequest(n){return W(!Gi(["defer","stream"],n.query),67),n}extractErrors(){}startRequest=void 0};function R_(t,{client:n}){let e={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:sn(t.query),operationType:Pn(t.query).operation},r=_({},t.context),i=s=>{typeof s=="function"?r=_(_({},r),s(o())):r=_(_({},r),s)},o=()=>Object.freeze(_({},r));return Object.defineProperty(e,"setContext",{enumerable:!1,value:i}),Object.defineProperty(e,"getContext",{enumerable:!1,value:o}),Object.defineProperty(e,"client",{enumerable:!1,value:n}),e}var jn=class t{static empty(){return new t(()=>Pt)}static from(n){if(n.length===0)return t.empty();let[e,...r]=n;return e.concat(...r)}static split(n,e,r=new t((i,o)=>o(i))){let i=new t((o,s)=>{let a=n(o);return!1,a?e.request(o,s):r.request(o,s)});return Object.assign(i,{left:e,right:r})}static execute(n,e,r){return n.request(R_(e,r),()=>(!1,Pt))}static concat(...n){return t.from(n)}constructor(n){n&&(this.request=n)}split(n,e,r){return this.concat(t.split(n,e,r))}concat(...n){return n.length===0?this:n.reduce(this.combine.bind(this),this)}combine(n,e){let r=new t((i,o)=>n.request(i,s=>e.request(s,o)));return Object.assign(r,{left:n,right:e})}request(n,e){throw Kt(65)}left;right};var pm=jn.split;var va=jn.execute;function Z7(t){return t}var Oo=class t{transform;cached;resultCache=new WeakSet;getCacheKey(n){return[n]}static identity(){return new t(Z7,{cache:!1})}static split(n,e,r=t.identity()){return Object.assign(new t(i=>(n(i)?e:r).transformDocument(i),{cache:!1}),{left:e,right:r})}constructor(n,e={}){this.transform=n,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=e.cache!==!1,this.resetCache()}resetCache(){if(this.cached){let n=new Rn;this.performWork=Mo(t.prototype.performWork.bind(this),{makeCacheKey:e=>{let r=this.getCacheKey(e);if(r)return W(Array.isArray(r),20),n.lookupArray(r)},max:gn["documentTransform.cache"],cache:Wi})}}performWork(n){return Kn(n),this.transform(n)}transformDocument(n){if(this.resultCache.has(n))return n;let e=this.performWork(n);return this.resultCache.add(e),e}concat(n){return Object.assign(new t(e=>n.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:n})}left;right};var wu,Ki=Object.assign(t=>{let n=wu.get(t);return n||(n=tc(t),wu.set(t,n)),n},{reset(){wu=new ha(gn.print||2e3)}});Ki.reset();!1;function Je(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}var EO={kind:Q.FIELD,name:{kind:Q.NAME,value:"__typename"}},_a=Object.assign(function(t){return on(t,{SelectionSet:{enter(n,e,r){if(r&&r.kind===Q.OPERATION_DEFINITION)return;let{selections:i}=n;if(!i||i.some(a=>a.kind===Q.FIELD&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)))return;let s=r;if(!(s.kind===Q.FIELD&&s.directives&&s.directives.some(a=>a.name.value==="export")))return A(_({},n),{selections:[...i,EO]})}}})},{added(t){return t===EO}});function Cu(t){return t===7||t===8}function wa(t){return!Cu(t)}var ac=class{assumeImmutableResults=!1;lookupFragment(n){return null}batch(n){let e=typeof n.optimistic=="string"?n.optimistic:n.optimistic===!1?null:void 0,r;return this.performTransaction(()=>r=n.update(this),e),r}recordOptimisticTransaction(n,e){this.performTransaction(n,e)}transformDocument(n){return n}transformForLink(n){return n}identify(n){}gc(){return[]}modify(n){return!1}readQuery(n,e=!!n.optimistic){return this.read(A(_({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))}fragmentWatches=new Rn(!0);watchFragment(n){let{fragment:e,fragmentName:r,from:i}=n,o=this.getFragmentDoc(e,r),a=(Array.isArray(i)?i:[i]).map(f=>{let y=f==null?f:this.toCacheId(f);if(!1){let b=r||cu(e).name.value;y===void 0&&!1&&W.warn(118,b)}return y});if(!Array.isArray(i)){let f=this.watchSingleFragment(a[0],o,n);return i===null?f:mu(f,Symbol.for("apollo.transform.individualResult"),y=>A(_({},y),{data:y.data??{}}))}let l;function c(f){let y=f.reduce((b,v,w)=>(b.data.push(v.data),b.complete&&=v.complete,b.dataState=b.complete?"complete":"partial",v.missing&&(b.missing||={},b.missing[w]=v.missing),b),{data:[],dataState:"complete",complete:!0});return dt(l,y)||(l=y),l}if(a.length===0)return X7;let d=!1,u=a.map(f=>this.watchSingleFragment(f,o,n)),p=m_(u).pipe(be(c),St({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),Rs({bufferSize:1,refCount:!0}));return Object.assign(p,{getCurrentResult:()=>{if(d&&l)return l;let f=u.map(y=>y.getCurrentResult());return c(f)}})}onAfterBroadcast=n=>n();watchSingleFragment(n,e,r){if(n===null)return J7;let{optimistic:i=!0,variables:o}=r,s=[e,En({id:n,optimistic:i,variables:o})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){let u=function(f){let y=f.result;return(!d||!hu(e,{data:d.data},{data:y},r.variables))&&(d={data:y,dataState:f.complete?"complete":"partial",complete:f.complete},f.missing&&(d.missing=f.missing.missing)),d};var l=u;let c=!1,d,p=new pe(f=>{c=!0;let y=this.watch({variables:o,returnPartialData:!0,id:n,query:e,optimistic:i,immediate:!0,callback:b=>{p.dirty=!0,this.onAfterBroadcast(()=>{f.next(u(b)),p.dirty=!1})}});return()=>{c=!1,y(),this.fragmentWatches.removeArray(s)}}).pipe(Fc(),xi({connector:()=>new oo(1),resetOnRefCountZero:()=>Yg(0)}));a.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>c&&d?d:u(this.diff({id:n,query:e,returnPartialData:!0,optimistic:i,variables:o}))})}return a.observable}getFragmentDoc=Mo(g_,{max:gn["cache.fragmentQueryDocuments"]||1e3,cache:Wi,makeCacheKey:M_(this)});readFragment(n,e=!!n.optimistic){let r=n.from!==void 0?this.toCacheId(n.from):n.id;return this.read(A(_({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:r,optimistic:e}))}writeQuery(i){var o=i,{id:n,data:e}=o,r=Et(o,["id","data"]);return this.write(Object.assign(r,{dataId:n||"ROOT_QUERY",result:e}))}writeFragment(o){var s=o,{data:n,fragment:e,fragmentName:r}=s,i=Et(s,["data","fragment","fragmentName"]);let a=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(e,r),dataId:a,result:n}))}updateQuery(n,e){return this.batch({update(r){let i=r.readQuery(n),o=e(i);return o==null?i:(r.writeQuery(A(_({},n),{data:o})),o)}})}updateFragment(n,e){return this.batch({update(r){let i=r.readFragment(n),o=e(i);return o==null?i:(r.writeFragment(A(_({},n),{data:o})),o)}})}toCacheId(n){return typeof n=="string"?n:this.identify(n)}};!1;var SO=Object.freeze({data:null,dataState:"complete",complete:!0}),J7=Object.assign(new pe(t=>{t.next(SO)}),{dirty:!1,getCurrentResult:()=>SO}),IO=Object.freeze({data:[],dataState:"complete",complete:!0}),X7=Object.assign(new pe(t=>{t.next(IO)}),{getCurrentResult:()=>IO});var xu=class t extends Error{message;path;query;variables;constructor(n,e,r,i){if(super(n),this.message=n,this.path=e,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=t.prototype}missing};var{hasOwnProperty:Yt}=Object.prototype;function hm({__typename:t,id:n,_id:e},r){if(typeof t=="string"&&(r&&(r.keyObject=n!=null?{id:n}:e!=null?{_id:e}:void 0),n==null&&e!=null&&(n=e),n!=null))return`${t}:${typeof n=="number"||typeof n=="string"?n:JSON.stringify(n)}`}var e9={dataIdFromObject:hm,resultCaching:!0};function DO(t){return Lr(e9,t)}function kO(t,n){return Je(n)?t.get(n.__ref,"__typename"):n&&n.__typename}var P_=/^[_a-z][_0-9a-z]*/i;function fi(t){let n=t.match(P_);return n?n[0]:t}function fm(t,n,e){return Ct(n)?Tt(n)?n.every(r=>fm(t,r,e)):t.selections.every(r=>{if(qi(r)&&Do(r,e)){let i=gr(r);return Yt.call(n,i)&&(!r.selectionSet||fm(r.selectionSet,n[i],e))}return!0}):!1}function ms(t){return Ct(t)&&!Je(t)&&!Tt(t)}function MO(){return new or}function mm(t,n){let e=ui(pi(t));return{fragmentMap:e,lookupFragment(r){let i=e[r];return!i&&n&&(i=n.lookup(r)),i||null}}}var gm={},A_=()=>gm,OO={},Ca=class{policies;group;data={};constructor(n,e){this.policies=n,this.group=e}toObject(){return _({},this.data)}has(n){return this.lookup(n,!0)!==void 0}get(n,e){if(this.group.depend(n,e),Yt.call(this.data,n)){let r=this.data[n];if(r&&Yt.call(r,e))return r[e]}if(e==="__typename"&&Yt.call(this.policies.rootTypenamesById,n))return this.policies.rootTypenamesById[n];if(this instanceof Yi)return this.parent.get(n,e)}lookup(n,e){if(e&&this.group.depend(n,"__exists"),Yt.call(this.data,n))return this.data[n];if(this instanceof Yi)return this.parent.lookup(n,e);if(this.policies.rootTypenamesById[n])return{}}merge(n,e){let r;Je(n)&&(n=n.__ref),Je(e)&&(e=e.__ref);let i=typeof n=="string"?this.lookup(r=n):n,o=typeof e=="string"?this.lookup(r=e):e;if(!o)return;W(typeof r=="string",104);let s=new or({reconciler:t9}).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let a={};i||(a.__exists=1),Object.keys(o).forEach(l=>{if(!i||i[l]!==s[l]){a[l]=1;let c=fi(l);c!==l&&!this.policies.hasKeyArgs(s.__typename,c)&&(a[c]=1),s[l]===void 0&&!(this instanceof Yi)&&delete s[l]}}),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete a.__typename,Object.keys(a).forEach(l=>this.group.dirty(r,l))}}modify(n,e,r){let i=this.lookup(n);if(i){let o={},s=!1,a=!0,l={DELETE:gm,INVALIDATE:OO,isReference:Je,toReference:this.toReference,canRead:this.canRead,readField:(c,d)=>this.policies.readField(typeof c=="string"?{fieldName:c,from:d||Qi(n)}:c,{store:this})};if(Object.keys(i).forEach(c=>{let d=fi(c),u=i[c];if(u===void 0)return;let p=typeof e=="function"?e:e[c]||(r?void 0:e[d]);if(p){let f=p===A_?gm:p(ps(u),A(_({},l),{fieldName:d,storeFieldName:c,storage:this.getStorage(n,c)}));if(f===OO)this.group.dirty(n,c);else if(f===gm&&(f=void 0),f!==u&&(o[c]=f,s=!0,u=f,!1)){let y=b=>{if(this.lookup(b.__ref)===void 0)return!1,!0};if(Je(f))y(f);else if(Array.isArray(f)){let b=!1,v;for(let w of f){if(Je(w)){if(b=!0,y(w))break}else if(typeof w=="object"&&w){let[D]=this.policies.identify(w);D&&(v=w)}if(b&&v!==void 0){!1;break}}}}}u!==void 0&&(a=!1)}),s)return this.merge(n,o),a&&(this instanceof Yi?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1}delete(n,e,r){let i=this.lookup(n);if(i){let o=this.getFieldValue(i,"__typename"),s=e&&r?this.policies.getStoreFieldName({typename:o,fieldName:e,args:r}):e;return this.modify(n,s?{[s]:A_}:A_,!!r)}return!1}evict(n,e){let r=!1;return n.id&&(Yt.call(this.data,n.id)&&(r=this.delete(n.id,n.fieldName,n.args)),this instanceof Yi&&this!==e&&(r=this.parent.evict(n,e)||r),(n.fieldName||r)&&this.group.dirty(n.id,n.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let n=this.toObject(),e=[];return this.getRootIdSet().forEach(r=>{Yt.call(this.policies.rootTypenamesById,r)||e.push(r)}),e.length&&(n.__META={extraRootIds:e.sort()}),n}replace(n){if(Object.keys(this.data).forEach(r=>{n&&Yt.call(n,r)||this.delete(r)}),n){let e=n,{__META:r}=e,i=Et(e,["__META"]);Object.keys(i).forEach(o=>{this.merge(o,i[o])}),r&&r.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(n){return this.rootIds[n]=(this.rootIds[n]||0)+1}release(n){if(this.rootIds[n]>0){let e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0}getRootIdSet(n=new Set){return Object.keys(this.rootIds).forEach(n.add,n),this instanceof Yi?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n}gc(){let n=this.getRootIdSet(),e=this.toObject();n.forEach(i=>{Yt.call(e,i)&&(Object.keys(this.findChildRefIds(i)).forEach(n.add,n),delete e[i])});let r=Object.keys(e);if(r.length){let i=this;for(;i instanceof Yi;)i=i.parent;r.forEach(o=>i.delete(o))}return r}refs={};findChildRefIds(n){if(!Yt.call(this.refs,n)){let e=this.refs[n]={},r=this.data[n];if(!r)return e;let i=new Set([r]);i.forEach(o=>{Je(o)&&(e[o.__ref]=!0),Ct(o)&&Object.keys(o).forEach(s=>{let a=o[s];Ct(a)&&i.add(a)})})}return this.refs[n]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(n,e)=>ps(Je(n)?this.get(n.__ref,e):n&&n[e]);canRead=n=>Je(n)?this.has(n.__ref):typeof n=="object";toReference=(n,e)=>{if(typeof n=="string")return Qi(n);if(Je(n))return n;let[r]=this.policies.identify(n);if(r){let i=Qi(r);return e&&this.merge(r,n),i}};get supportsResultCaching(){return this.group.caching}},ym=class{caching;parent;d=null;keyMaker;constructor(n,e=null){this.caching=n,this.parent=e,this.resetCaching()}resetCaching(){this.d=this.caching?vu():null,this.keyMaker=new Rn}depend(n,e){if(this.d){this.d(N_(n,e));let r=fi(e);r!==e&&this.d(N_(n,r)),this.parent&&this.parent.depend(n,e)}}dirty(n,e){this.d&&this.d.dirty(N_(n,e),e==="__exists"?"forget":"setDirty")}};function N_(t,n){return n+"#"+t}function B_(t,n){xa(t)&&t.group.depend(n,"__exists")}var F_=class extends Ca{constructor({policies:n,resultCaching:e=!0,seed:r}){super(n,new ym(e)),r&&this.replace(r)}stump=new L_(this);addLayer(n,e){return this.stump.addLayer(n,e)}removeLayer(){return this}storageTrie=new Rn;getStorage(){return this.storageTrie.lookupArray(arguments)}};Ca.Root=F_;var Yi=class t extends Ca{id;parent;replay;group;constructor(n,e,r,i){super(e.policies,i),this.id=n,this.parent=e,this.replay=r,this.group=i,r(this)}addLayer(n,e){return new t(n,this,e,this.group)}removeLayer(n){let e=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(r=>{let i=this.data[r],o=e.lookup(r);o?i?i!==o&&Object.keys(i).forEach(s=>{dt(i[s],o[s])||this.group.dirty(r,s)}):(this.group.dirty(r,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(r,s)})):this.delete(r)}),e):e===this.parent?this:e.addLayer(this.id,this.replay)}toObject(){return _(_({},this.parent.toObject()),this.data)}findChildRefIds(n){let e=this.parent.findChildRefIds(n);return Yt.call(this.data,n)?_(_({},e),super.findChildRefIds(n)):e}getStorage(...n){let e=this.parent;for(;e.parent;)e=e.parent;return e.getStorage(...n)}},L_=class extends Yi{constructor(n){super("EntityStore.Stump",n,()=>{},new ym(n.group.caching,n.group))}removeLayer(){return this}merge(n,e){return this.parent.merge(n,e)}};function t9(t,n,e){let r=t[e],i=n[e];return dt(r,i)?r:i}function xa(t){return!!(t&&t.supportsResultCaching)}var lc=new ko;function RO(t){let n=t.directives?.find(({name:r})=>r.value==="unmask");if(!n)return"mask";let e=n.arguments?.find(({name:r})=>r.value==="mode");return!1,e&&"value"in e.value&&e.value.value==="migrate"?"migrate":"unmask"}function bm(t,n,e){return lc.withValue(!0,()=>{let r=Tu(t,n,e,!1);return Object.isFrozen(t)&&ps(r),r})}function n9(t,n){if(n.has(t))return n.get(t);let e=Array.isArray(t)?[]:{};return n.set(t,e),e}function Tu(t,n,e,r,i){let{knownChanged:o}=e,s=n9(t,e.mutableTargets);if(Array.isArray(t)){for(let[a,l]of Array.from(t.entries())){if(l===null){s[a]=null;continue}let c=Tu(l,n,e,r,void 0);o.has(c)&&o.add(s),s[a]=c}return o.has(s)?s:t}for(let a of n.selections){let l;if(r&&o.add(s),a.kind===Q.FIELD){let c=gr(a),d=a.selectionSet;if(l=s[c]||t[c],l===void 0)continue;if(d&&l!==null){let u=Tu(t[c],d,e,r,void 0);o.has(u)&&(l=u)}s[c]=l,!1}if(a.kind===Q.INLINE_FRAGMENT&&(!a.typeCondition||e.cache.fragmentMatches(a,t.__typename))&&(l=Tu(t,a.selectionSet,e,r,i)),a.kind===Q.FRAGMENT_SPREAD){let c=a.name.value,d=e.fragmentMap[c]||(e.fragmentMap[c]=e.cache.lookupFragment(c));W(d,39,c);let u=RO(a);u!=="mask"&&(l=Tu(t,d.selectionSet,e,u==="migrate",i))}o.has(l)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}function r9(t,n,e,r,i){let o=()=>(lc.getValue()||(!1,o=()=>n),n);return{get(){return o()},set(s){o=()=>s},enumerable:!0,configurable:!0}}function V_(t,n,e,r){let i=n.definitions.filter(s=>s.kind===Q.FRAGMENT_DEFINITION);typeof r>"u"&&(W(i.length===1,41,i.length),r=i[0].name.value);let o=i.find(s=>s.name.value===r);return W(!!o,42,r),t==null||dt(t,{})?t:bm(t,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:ui(pi(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function j_(t,n,e){let r=Pn(n);return W(r,43),t==null?t:bm(t,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:ui(pi(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}var PO={};function z_(t){let n=JSON.stringify(t);return PO[n]||(PO[n]={})}function H_(t){let n=z_(t);return n.keyFieldsFn||(n.keyFieldsFn=(e,r)=>{let i=(s,a)=>r.readField(a,s),o=r.keyObject=U_(t,s=>{let a=cc(r.storeObject,s,i);return a===void 0&&e!==r.storeObject&&Yt.call(e,s[0])&&(a=cc(e,s,NO)),W(a!==void 0,107,s.join("."),e),a});return`${r.typename}:${JSON.stringify(o)}`})}function $_(t){let n=z_(t);return n.keyArgsFn||(n.keyArgsFn=(e,{field:r,variables:i,fieldName:o})=>{let s=U_(t,l=>{let c=l[0],d=c.charAt(0);if(d==="@"){if(r&&ga(r.directives)){let u=c.slice(1),p=r.directives.find(y=>y.name.value===u),f=p&&fa(p,i);return f&&cc(f,l.slice(1))}return}if(d==="$"){let u=c.slice(1);if(i&&Yt.call(i,u)){let p=l.slice(0);return p[0]=u,cc(i,p)}return}if(e)return cc(e,l)}),a=JSON.stringify(s);return(e||a!=="{}")&&(o+=":"+a),o})}function U_(t,n){let e=new or;return AO(t).reduce((r,i)=>{let o=n(i);if(o!==void 0){for(let s=i.length-1;s>=0;--s)o={[i[s]]:o};r=e.merge(r,o)}return r},{})}function AO(t){let n=z_(t);if(!n.paths){let e=n.paths=[],r=[];t.forEach((i,o)=>{Tt(i)?(AO(i).forEach(s=>e.push(r.concat(s))),r.length=0):(r.push(i),Tt(t[o+1])||(e.push(r.slice(0)),r.length=0))})}return n.paths}function NO(t,n){return t[n]}function cc(t,n,e){return e=e||NO,FO(n.reduce(function r(i,o){return Tt(i)?i.map(s=>r(s,o)):i&&e(i,o)},t))}function FO(t){return Ct(t)?Tt(t)?t.map(FO):U_(Object.keys(t).sort(),n=>cc(t,n)):t}var W_=new ko,LO=new WeakMap;function Eu(t){let n=LO.get(t);return n||LO.set(t,n={vars:new Set,dep:vu()}),n}function G_(t){Eu(t).vars.forEach(n=>n.forgetCache(t))}function BO(t){Eu(t).vars.forEach(n=>n.attachCache(t))}function q_(t){let n=new Set,e=new Set,r=function(o){if(arguments.length>0){if(t!==o){t=o,n.forEach(a=>{Eu(a).dep.dirty(r),i9(a)});let s=Array.from(e);e.clear(),s.forEach(a=>a(t))}}else{let s=W_.getValue();s&&(i(s),Eu(s).dep(r))}return t};r.onNextChange=o=>(e.add(o),()=>{e.delete(o)});let i=r.attachCache=o=>(n.add(o),Eu(o).vars.add(r),r);return r.forgetCache=o=>n.delete(o),r}function i9(t){t.broadcastWatches&&t.broadcastWatches()}function Q_(t){return t.args!==void 0?t.args:t.field?fa(t.field,t.variables):null}var o9=()=>{},VO=(t,n)=>n.fieldName,jO=(t,n,{mergeObjects:e})=>e(t,n),zO=(t,n)=>n,HO=(t,n,{streamFieldInfo:e,existingData:r})=>{if(!t&&!r)return n;let i=[],o=t??r,s=e?.isLastChunk?n.length:Math.max(o.length,n.length);for(let a=0;a{let u=_m(d,o);return r.readField(u,{store:r.cache.data,variables:u.variables})})}),a,l=i&&this.getTypePolicy(i),c=l&&l.keyFn||this.config.dataIdFromObject;return lc.withValue(!0,()=>{for(;c;){let d=c(_(_({},n),o),s);if(Tt(d))c=H_(d);else{a=d;break}}}),a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]}addTypePolicies(n){Object.keys(n).forEach(e=>{let a=n[e],{queryType:r,mutationType:i,subscriptionType:o}=a,s=Et(a,["queryType","mutationType","subscriptionType"]);r&&this.setRootTypename("Query",e),i&&this.setRootTypename("Mutation",e),o&&this.setRootTypename("Subscription",e),Yt.call(this.toBeAdded,e)?this.toBeAdded[e].push(s):this.toBeAdded[e]=[s]})}updateTypePolicy(n,e,r){let i=this.getTypePolicy(n),{keyFields:o,fields:s}=e;function a(l,c){l.merge=typeof c=="function"?c:c===!0?jO:c===!1?zO:l.merge}a(i,e.merge),i.keyFn=o===!1?o9:Tt(o)?H_(o):typeof o=="function"?o:i.keyFn,s&&Object.keys(s).forEach(l=>{let c=r[l];(!c||c?.typename!==n)&&(c=r[l]={typename:n});let d=s[l];if(typeof d=="function")c.read=d;else{let{keyArgs:u,read:p,merge:f}=d;c.keyFn=u===!1?VO:Tt(u)?$_(u):typeof u=="function"?u:c.keyFn,typeof p=="function"&&(c.read=p),a(c,f)}c.read&&c.merge&&(c.keyFn=c.keyFn||VO)})}setRootTypename(n,e=n){let r="ROOT_"+n.toUpperCase(),i=this.rootTypenamesById[r];e!==i&&(W(!i||i===n,108,n),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[e]=r,this.rootTypenamesById[r]=e)}addPossibleTypes(n){this.usingPossibleTypes=!0,Object.keys(n).forEach(e=>{this.getSupertypeSet(e,!0),n[e].forEach(r=>{this.getSupertypeSet(r,!0).add(e);let i=r.match(P_);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(n){if(!Yt.call(this.typePolicies,n)){let r=this.typePolicies[n]={};r.fields={};let i=this.supertypeMap.get(n);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach((o,s)=>{if(o.test(n)){let a=this.supertypeMap.get(s);a&&a.forEach(l=>i.add(l))}})),i&&i.size&&i.forEach(o=>{let l=this.getTypePolicy(o),{fields:s}=l,a=Et(l,["fields"]);Object.assign(r,a),Object.assign(r.fields,s)})}let e=this.toBeAdded[n];return e&&e.length&&e.splice(0).forEach(r=>{this.updateTypePolicy(n,r,this.typePolicies[n].fields)}),this.typePolicies[n]}getFieldPolicy(n,e){if(n)return this.getTypePolicy(n).fields[e]}getSupertypeSet(n,e){let r=this.supertypeMap.get(n);return!r&&e&&this.supertypeMap.set(n,r=new Set),r}fragmentMatches(n,e,r,i){if(!n.typeCondition)return!0;if(!e)return!1;let o=n.typeCondition.name.value;if(e===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){let s=this.getSupertypeSet(e,!0),a=[s],l=u=>{let p=this.getSupertypeSet(u,!1);p&&p.size&&a.indexOf(p)<0&&a.push(p)},c=!!(r&&this.fuzzySubtypes.size),d=!1;for(let u=0;u{let b=e.match(f);b&&b[0]===e&&l(y)}))}}return!1}hasKeyArgs(n,e){let r=this.getFieldPolicy(n,e);return!!(r&&r.keyFn)}getStoreFieldName(n){let{typename:e,fieldName:r}=n,i=this.getFieldPolicy(e,r),o,s=i&&i.keyFn;if(s&&e){let a={typename:e,fieldName:r,field:n.field||null,variables:n.variables},l=Q_(n);for(;s;){let c=s(l,a);if(Tt(c))s=$_(c);else{o=c||r;break}}}return o===void 0&&(o=n.field?C_(n.field,n.variables):fu(r,Q_(n))),o===!1?r:r===fi(o)?o:r+":"+o}readField(n,e){let r=n.from;if(!r||!(n.field||n.fieldName))return;if(n.typename===void 0){let d=e.store.getFieldValue(r,"__typename");d&&(n.typename=d)}let o=this.getStoreFieldName(n),s=fi(o),a=e.store.getFieldValue(r,o),l=this.getFieldPolicy(n.typename,s),c=l&&l.read;if(c){let d=$O(this,r,n,e,e.store.getStorage(Je(r)?r.__ref:r,o));return W_.withValue(this.cache,c,[a,d])}return a}getReadFunction(n,e){let r=this.getFieldPolicy(n,e);return r&&r.read}getMergeFunction(n,e,r){let i=this.getFieldPolicy(n,e),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o}runMergeFunction(n,e,{field:r,typename:i,merge:o,path:s},a,l){let c=n;if(o===jO)return UO(a.store)(n,e);if(o===zO)return e;a.overwrite&&(n=void 0);let d=a.extensions?.[yr]?.deref()?.peekArray(s);if(d){let{current:p,previous:f}=d;if(f&&dt(f.incoming,e)&&dt(f.streamFieldInfo,p))return f.result}let u=o(n,e,s9(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:a.variables,path:s},a,l||{},c));return d&&(d.previous={incoming:e,streamFieldInfo:d.current,result:u}),u}};function $O(t,n,e,r,i){let o=t.getStoreFieldName(e),s=fi(o),a=e.variables||r.variables,{toReference:l,canRead:c}=r.store;return{args:Q_(e),field:e.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:Je,toReference:l,storage:i,cache:t.cache,canRead:c,readField(...d){return t.readField(_m(d,n,a),r)},mergeObjects:UO(r.store)}}function s9(t,n,e,r,i,o){var l;let s=A(_({},$O(t,n,e,r,i)),{extensions:r.extensions,existingData:o}),a=r.extensions;if(a&&yr in a){let c=a,{[l=yr]:d}=c,u=Et(c,[Yu(l)]),p=d?.deref()?.peekArray(e.path);p&&(s.streamFieldInfo=p.current),s.extensions=Object.keys(u).length===0?void 0:u}return s}function _m(t,n,e){let{0:r,1:i,length:o}=t,s;return typeof r=="string"?s={fieldName:r,from:o>1?i:n}:(s=_({},r),Yt.call(s,"from")||(s.from=n)),!1,s.variables===void 0&&(s.variables=e),s}function UO(t){return function(e,r){if(Tt(e)||Tt(r))throw Kt(111);if(Ct(e)&&Ct(r)){let i=t.getFieldValue(e,"__typename"),o=t.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(Je(e)&&ms(r))return t.merge(e.__ref,r),e;if(ms(e)&&Je(r))return t.merge(e,r.__ref),r;if(ms(e)&&ms(r))return _(_({},e),r)}return r}}function WO(t){return[t.selectionSet,t.objectOrReference,t.context]}var wm=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(n){this.config=n,this.executeSelectionSet=Mo(e=>{let r=WO(e),i=this.executeSelectionSet.peek(...r);return i||(B_(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:gn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:WO,makeCacheKey(e,r,i){if(xa(i.store))return i.store.makeCacheKey(e,Je(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=Mo(e=>(B_(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:gn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:r,context:i}){if(xa(i.store))return i.store.makeCacheKey(e,r,i.varString)}})}diffQueryAgainstStore({store:n,query:e,rootId:r="ROOT_QUERY",variables:i,returnPartialData:o=!0}){let s=this.config.cache.policies;i=_(_({},ma(du(e))),i);let a=Qi(r),l=this.executeSelectionSet({selectionSet:us(e).selectionSet,objectOrReference:a,enclosingRef:a,context:_({store:n,query:e,policies:s,variables:i,varString:En(i)},mm(e,this.config.fragments))}),c;l.missing&&(c=new xu(a9(l.missing),l.missing,e,i));let d=!c,{result:u}=l;return{result:d?u:o?Object.keys(u).length===0?null:u:null,complete:d,missing:c}}isFresh(n,e,r,i){if(xa(i.store)&&this.knownResults.get(n)===r){let o=this.executeSelectionSet.peek(r,e,i);if(o&&n===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:n,objectOrReference:e,enclosingRef:r,context:i}){if(Je(e)&&!i.policies.rootTypenamesById[e.__ref]&&!i.store.has(e.__ref))return{result:{},missing:`Dangling reference to missing ${e.__ref} object`};let{variables:o,policies:s,store:a}=i,l=a.getFieldValue(e,"__typename"),c=[],d,u=new or;typeof l=="string"&&!s.rootIdsByTypename[l]&&c.push({__typename:l});function p(w,D){return w.missing&&(d=u.merge(d,{[D]:w.missing})),w.result}let f=new Set(n.selections);f.forEach(w=>{if(Do(w,o))if(qi(w)){let D=s.readField({fieldName:w.name.value,field:w,variables:i.variables,from:e},i),P=gr(w);D===void 0?_a.added(w)||(d=u.merge(d,{[P]:`Can't find field '${w.name.value}' on ${Je(e)?e.__ref+" object":"object "+JSON.stringify(e,null,2)}`})):Tt(D)?D.length>0&&(D=p(this.executeSubSelectedArray({field:w,array:D,enclosingRef:r,context:i}),P)):w.selectionSet&&D!=null&&(D=p(this.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:D,enclosingRef:Je(D)?D:r,context:i}),P)),D!==void 0&&c.push({[P]:D})}else{let D=ds(w,i.lookupFragment);if(!D&&w.kind===Q.FRAGMENT_SPREAD)throw Kt(112,w.name.value);D&&s.fragmentMatches(D,l)&&D.selectionSet.selections.forEach(f.add,f)}});let b={result:v_(c),missing:d},v=ps(b);return v.result&&this.knownResults.set(v.result,n),v}execSubSelectedArrayImpl({field:n,array:e,enclosingRef:r,context:i}){let o,s=new or;function a(l,c){return l.missing&&(o=s.merge(o,{[c]:l.missing})),l.result}return n.selectionSet&&(e=e.filter(l=>l===void 0||i.store.canRead(l))),e=e.map((l,c)=>l===null?null:Tt(l)?a(this.executeSubSelectedArray({field:n,array:l,enclosingRef:r,context:i}),c):n.selectionSet?a(this.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:Je(l)?l:r,context:i}),c):(!1,l)),{result:e,missing:o}}};function a9(t){try{JSON.stringify(t,(n,e)=>{if(typeof e=="string")throw e;return e})}catch(n){return n}}function l9(t,n,e){if(!n.selectionSet){let r=new Set([e]);r.forEach(i=>{Ct(i)&&(W(!Je(i),113,kO(t,i),n.name.value),Object.values(i).forEach(r.add,r))})}}function K_(t,n,e){let r=`${n}${e}`,i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===n&&t.deferred===e?t:A(_({},t),{clientOnly:n,deferred:e})),i}var Cm=class{cache;reader;fragments;constructor(n,e,r){this.cache=n,this.reader=e,this.fragments=r}writeToStore(n,{query:e,result:r,dataId:i,variables:o,overwrite:s,extensions:a}){let l=Pn(e),c=MO();o=_(_({},ma(l)),o);let d=A(_({store:n,written:{},merge(p,f){return c.merge(p,f)},variables:o,varString:En(o)},mm(e,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a}),u=this.processSelectionSet({result:r||{},dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!Je(u))throw Kt(114,r);return d.incomingById.forEach(({storeObject:p,mergeTree:f,fieldNodeSet:y},b)=>{let v=Qi(b);if(f&&f.map.size){let w=this.applyMerges(f,v,p,d);if(Je(w))return;p=w}if(!1){let w={};y.forEach(B=>{B.selectionSet&&(w[B.name.value]=!0)});let D=B=>w[fi(B)]===!0,P=B=>{let Y=f&&f.map.get(B);return!!(Y&&Y.info&&Y.info.merge)};Object.keys(p).forEach(B=>{D(B)&&!P(B)&&c9(v,p,B,d.store)})}n.merge(b,p)}),n.retain(u.__ref),u}processSelectionSet({dataId:n,result:e,selectionSet:r,context:i,mergeTree:o,path:s}){let{policies:a}=this.cache,l={},c=n&&a.rootTypenamesById[n]||Z_(e,r,i.fragmentMap)||n&&i.store.get(n,"__typename");typeof c=="string"&&(l.__typename=c);let d=(...p)=>{let f=_m(p,l,i.variables);if(Je(f.from)){let y=i.incomingById.get(f.from.__ref);if(y){let b=a.readField(A(_({},f),{from:y.storeObject}),i);if(b!==void 0)return b}}return a.readField(f,i)},u=new Set;this.flattenFields(r,e,i,c).forEach((p,f)=>{let y=gr(f),b=e[y],v=[...s,f.name.value];if(u.add(f),b!==void 0){let w=a.getStoreFieldName({typename:c,fieldName:f.name.value,field:f,variables:p.variables}),D=GO(o,w),P=this.processFieldValue(b,f,f.selectionSet?K_(p,!1,!1):p,D,v),B;f.selectionSet&&(Je(P)||ms(P))&&(B=d("__typename",P));let Y=a.getMergeFunction(c,f.name.value,B);Y?D.info={field:f,typename:c,merge:Y,path:v}:Gi(["stream"],f)&&Array.isArray(P)&&p.extensions?.[yr]?D.info={field:f,typename:c,merge:HO,path:v}:qO(o,w),l=p.merge(l,{[w]:P})}else!1});try{let[p,f]=a.identify(e,{typename:c,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:l,readField:d});n=n||p,f&&(l=i.merge(l,f))}catch(p){if(!n)throw p}if(typeof n=="string"){let p=Qi(n),f=i.written[n]||(i.written[n]=[]);if(f.indexOf(r)>=0||(f.push(r),this.reader&&this.reader.isFresh(e,p,r,i)))return p;let y=i.incomingById.get(n);return y?(y.storeObject=i.merge(y.storeObject,l),y.mergeTree=Y_(y.mergeTree,o),u.forEach(b=>y.fieldNodeSet.add(b))):i.incomingById.set(n,{storeObject:l,mergeTree:xm(o)?void 0:o,fieldNodeSet:u}),p}return l}processFieldValue(n,e,r,i,o){return!e.selectionSet||n===null?n:Tt(n)?n.map((s,a)=>{let l=this.processFieldValue(s,e,r,GO(i,a),[...o,a]);return qO(i,a),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:r,mergeTree:i,path:o})}flattenFields(n,e,r,i=Z_(e,n,r.fragmentMap)){let o=new Map,{policies:s}=this.cache,a=new Rn(!1);return(function l(c,d){let u=a.lookup(c,d.clientOnly,d.deferred);u.visited||(u.visited=!0,c.selections.forEach(p=>{if(!Do(p,r.variables))return;let{clientOnly:f,deferred:y}=d;if(!(f&&y)&&ga(p.directives)&&p.directives.forEach(b=>{let v=b.name.value;if(v==="client"&&(f=!0),v==="defer"){let w=fa(b,r.variables);(!w||w.if!==!1)&&(y=!0)}}),qi(p)){let b=o.get(p);b&&(f=f&&b.clientOnly,y=y&&b.deferred),o.set(p,K_(r,f,y))}else{let b=ds(p,r.lookupFragment);if(!b&&p.kind===Q.FRAGMENT_SPREAD)throw Kt(116,p.name.value);b&&s.fragmentMatches(b,i,e,r.variables)&&l(b.selectionSet,K_(r,f,y))}}))})(n,r),o}applyMerges(n,e,r,i,o){if(n.map.size&&!Je(r)){let s=!Tt(r)&&(Je(e)||ms(e))?e:void 0,a=r;s&&!o&&(o=[Je(s)?s.__ref:s]);let l,c=(d,u)=>Tt(d)?typeof u=="number"?d[u]:void 0:i.store.getFieldValue(d,String(u));n.map.forEach((d,u)=>{let p=c(s,u),f=c(a,u);if(f===void 0)return;o&&o.push(u);let y=this.applyMerges(d,p,f,i,o);y!==f&&(l=l||new Map,l.set(u,y)),o&&W(o.pop()===u)}),l&&(r=Tt(a)?a.slice(0):_({},a),l.forEach((d,u)=>{r[u]=d}))}return n.info?this.cache.policies.runMergeFunction(e,r,n.info,i,o&&i.store.getStorage(...o)):r}},KO=[];function GO({map:t},n){return t.has(n)||t.set(n,KO.pop()||{map:new Map}),t.get(n)}function Y_(t,n){if(t===n||!n||xm(n))return t;if(!t||xm(t))return n;let e=t.info&&n.info?_(_({},t.info),n.info):t.info||n.info,r=t.map.size&&n.map.size,i=r?new Map:t.map.size?t.map:n.map,o={info:e,map:i};if(r){let s=new Set(n.map.keys());t.map.forEach((a,l)=>{o.map.set(l,Y_(a,n.map.get(l))),s.delete(l)}),s.forEach(a=>{o.map.set(a,Y_(n.map.get(a),t.map.get(a)))})}return o}function xm(t){return!t||!(t.info||t.map.size)}function qO({map:t},n){let e=t.get(n);e&&xm(e)&&(KO.push(e),t.delete(n))}var QO=new Set;function c9(t,n,e,r){let i=u=>{let p=r.getFieldValue(u,e);return typeof p=="object"&&p},o=i(t);if(!o)return;let s=i(n);if(!s||Je(o)||dt(o,s)||Object.keys(o).every(u=>r.getFieldValue(s,u)!==void 0))return;let a=r.getFieldValue(t,"__typename")||r.getFieldValue(n,"__typename"),l=fi(e),c=`${a}.${l}`;if(QO.has(c))return;QO.add(c);let d=[];!Tt(o)&&!Tt(s)&&[o,s].forEach(u=>{let p=r.getFieldValue(u,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),!1}function Z_(t,n,e){let r;for(let i of n.selections)if(qi(i)){if(i.name.value==="__typename")return t[gr(i)]}else r?r.push(i):r=[i];if(typeof t.__typename=="string")return t.__typename;if(r)for(let i of r){let o=Z_(t,ds(i,e).selectionSet,e);if(typeof o=="string")return o}}var Ta=class extends ac{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new Oo(_a);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=q_;constructor(n={}){super(),this.config=DO(n),this.policies=new vm({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let n=this.data=new Ca.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){let{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n?.resetCaches(),this.storeWriter=new Cm(this,this.storeReader=new wm({cache:this,fragments:n}),n),this.maybeBroadcastWatch=Mo((e,r)=>this.broadcastWatch(e,r),{max:gn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let r=e.optimistic?this.optimisticData:this.data;if(xa(r)){let{optimistic:i,id:o,variables:s}=e;return r.makeCacheKey(e.query,e.callback,En({optimistic:i,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){let{returnPartialData:e=!1}=n;return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:e})).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(Yt.call(n,"id")&&!n.id)return!1;let e=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))}watch(n){return this.watches.size||BO(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&G_(this),this.maybeBroadcastWatch.forget(n)}}gc(n){En.reset(),Ki.reset();let e=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),e}retain(n,e){return(e?this.optimisticData:this.data).retain(n)}release(n,e){return(e?this.optimisticData:this.data).release(n)}identify(n){if(Je(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(e){!1}}evict(n){if(!n.id){if(Yt.call(n,"id"))return!1;n=A(_({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),En.reset(),n&&n.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),G_(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){let e=this.optimisticData.removeLayer(n);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())}txCount=0;batch(n){let{update:e,optimistic:r=!0,removeOptimistic:i,onWatchUpdated:o}=n,s,a=c=>{let{data:d,optimisticData:u}=this;++this.txCount,c&&(this.data=this.optimisticData=c);try{return s=e(this)}finally{--this.txCount,this.data=d,this.optimisticData=u}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(A(_({},n),{onWatchUpdated(c){return l.add(c),!1}})),typeof r=="string"?this.optimisticData=this.optimisticData.addLayer(r,a):r===!1?a(this.data):a(),typeof i=="string"&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&l.size?(this.broadcastWatches(A(_({},n),{onWatchUpdated(c,d){let u=o.call(this,c,d);return u!==!1&&l.delete(c),u}})),l.size&&l.forEach(c=>this.maybeBroadcastWatch.dirty(c))):this.broadcastWatches(n),s}performTransaction(n,e){return this.batch({update:n,optimistic:e||e!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,e){return this.policies.fragmentMatches(n,e)}lookupFragment(n){return this.config.fragments?.lookup(n)||null}resolvesClientField(n,e){return!!this.policies.getReadFunction(n,e)}broadcastWatches(n){if(!this.txCount){let e=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=i=>{r.add(i)};try{this.watches.forEach(i=>this.maybeBroadcastWatch(i,n)),r.forEach(i=>i())}finally{this.onAfterBroadcast=e}}}addFragmentsToDocument(n){let{fragments:e}=this.config;return e?e.transform(n):n}broadcastWatch(n,e){let{lastDiff:r}=n,i=this.diff(n);e&&(n.optimistic&&typeof e.optimistic=="string"&&(i.fromOptimisticTransaction=!0),e.onWatchUpdated&&e.onWatchUpdated.call(this,n,i,r)===!1)||(!r||!dt(r.result,i.result))&&n.callback(n.lastDiff=i,r)}};!1;function gs(t,n){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===n}function ys(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function YO(t){return t.map(n=>n.message||"Error message not found.").join(`
-`)}var ZO=(()=>{class t extends Error{static is(e){return gs(e,"CombinedProtocolErrors")}static formatMessage=YO;errors;constructor(e){super(t.formatMessage(e,{defaultFormatMessage:YO})),this.name="CombinedProtocolErrors",this.errors=e,ys(this),Object.setPrototypeOf(this,t.prototype)}}return t})();function JO(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}var Tm=class t extends Error{static is(n){return gs(n,"UnconventionalError")}constructor(n){super("An error of unexpected shape occurred.",{cause:n}),this.name="UnconventionalError",ys(this),Object.setPrototypeOf(this,t.prototype)}};function XO(t){return t.filter(n=>n).map(n=>n.message||"Error message not found.").join(`
-`)}var Ro=(()=>{class t extends Error{static is(e){return gs(e,"CombinedGraphQLErrors")}static formatMessage=XO;errors;data;extensions;constructor(e,r=e.errors||[]){super(t.formatMessage(r,{result:e,defaultFormatMessage:XO})),this.errors=r,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",ys(this),Object.setPrototypeOf(this,t.prototype)}}return t})();var d9=new WeakSet;function J_(t){d9.add(t)}var Su=class t extends Error{static is(n){return gs(n,"ServerError")}response;statusCode;bodyText;constructor(n,e){super(n),this.name="ServerError",this.response=e.response,this.statusCode=e.response.status,this.bodyText=e.bodyText,ys(this),Object.setPrototypeOf(this,t.prototype)}};var Em=Symbol();function e2(t){return"extensions"in t?ZO.is(t.extensions[Em]):!1}function t2(t){return JO(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Tm(t)}var Ae=(function(t){return t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming",t})(Ae||{});var{assign:n2,hasOwnProperty:u9}=Object,dc={loading:!0,networkStatus:Ae.loading,data:void 0,dataState:"empty",partial:!0},X_={loading:!1,networkStatus:Ae.ready,data:void 0,dataState:"empty",partial:!0},uc=class{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:n,options:e,transformedQuery:r=n.transform(e.query)}){this.queryManager=n,this.waitForNetworkResult=e.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:i="cache-first"}={}}=n.defaultOptions,{fetchPolicy:o=i,initialFetchPolicy:s=o==="standby"?i:o}=e;e[E_]&&(W(o==="standby",82),this.variablesUnknown=!0),this.lastQuery=r,this.options=A(_({},e),{initialFetchPolicy:s,fetchPolicy:o,variables:this.getVariablesWithDefaults(e.variables)}),this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=Pn(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new an({query:this.query,variables:this.variables,result:dc,meta:{}});let n=this.subject.pipe(St({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),ic(({query:e,variables:r,result:i,meta:o},s)=>{let{shouldEmit:a}=o;if(i===dc&&(s.previous=void 0,s.previousVariables=void 0),this.options.fetchPolicy==="standby"||a===2)return;if(a===1)return d();let{previous:l,previousVariables:c}=s;if(l){let u=this.queryManager.getDocumentInfo(e),p=this.queryManager.dataMasking,f=p?u.nonReactiveQuery:e;if((p||u.hasNonreactiveDirective?hu(f,l,i,r):dt(l,i))&&dt(c,r))return}if(a===3&&(!this.options.notifyOnNetworkStatusChange||dt(l,i)))return;return d();function d(){return s.previous=i,s.previousVariables=r,i}},()=>({})));this.pipe=n.pipe.bind(n),this.subscribe=n.subscribe.bind(n),this.input=new qe,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:n=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:n})}getInitialResult(n){let e=n||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(e==="network-only"||e==="cache-and-network")&&(e="cache-first");let r=()=>{let i=this.getCacheDiff(),o=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:o,dataState:i.complete?"complete":o===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?Ae.ready:Ae.loading,partial:!i.complete})};switch(e){case"cache-only":return A(_({},r()),{loading:!1,networkStatus:Ae.ready});case"cache-first":return r();case"cache-and-network":return A(_({},r()),{loading:!0,networkStatus:Ae.loading});case"standby":return X_;default:return dc}}resubscribeCache(){let{variables:n,fetchPolicy:e}=this.options,r=this.query,i=e==="standby"||e==="no-cache"||this.waitForNetworkResult,o=!Iu({query:r,variables:n},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&this.unsubscribeFromCache?.(),i||!o)return;let s={query:r,variables:n,optimistic:!0,watcher:this,callback:l=>{let c=this.queryManager.getDocumentInfo(r);if((c.hasClientExports||c.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===l)return;let{result:d}=this.subject.getValue();!l.complete&&(d.error||d===dc||d===X_)||dt(d.data,l.result)||this.scheduleNotify()}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:n})}stableLastResult;getCurrentResult(){let{result:n}=this.subject.getValue(),e=n.networkStatus===Ae.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?n:this.getInitialResult();return e===dc&&(e=this.getInitialResult()),dt(this.stableLastResult,e)||(this.stableLastResult=e),this.stableLastResult}refetch(n){let{fetchPolicy:e}=this.options,r={pollInterval:0};if(e==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1){let i=du(this.query),o=i.variableDefinitions;(!o||!o.some(s=>s.variable.name.value==="variables"))&&!1&&W.warn(83,n,i.name?.value||i)}return n&&!dt(this.variables,n)&&(r.variables=this.options.variables=this.getVariablesWithDefaults(_(_({},this.variables),n))),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:Ae.refetch})}fetchMore({query:n,variables:e,context:r,errorPolicy:i,updateQuery:o}){W(this.options.fetchPolicy!=="cache-only",84,sn(this.query,"(anonymous)"));let s=A(_({},Lr(this.options,{errorPolicy:"none"},{query:n,context:r,errorPolicy:i})),{variables:n?e:_(_({},this.variables),e),fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange});s.query=this.transformDocument(s.query),this.lastQuery=n?this.transformDocument(this.options.query):s.query;let a=!1,l=this.options.fetchPolicy!=="no-cache";l||W(o,85);let{finalize:c,pushNotification:d}=this.pushOperation(Ae.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:u,operator:p}=r2(),{observable:f}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:Ae.fetchMore,exposeExtensions:!0}),y=f.pipe(p,nn(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{a=!1;let v=b.value,w=v[gu];if(Cu(b.value.networkStatus)&&c(),l){let D=this.getCacheDiff();this.cache.batch({update:P=>{o?P.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:w},B=>o(B,{fetchMoreResult:v.data,variables:s.variables})):P.writeQuery({query:s.query,variables:s.variables,data:v.data,extensions:w})},onWatchUpdated:(P,B)=>{if(P.watcher===this&&!dt(B.result,D.result)){a=!0;let Y=this.getCurrentResult();wa(v.networkStatus)&&d({kind:"N",source:"network",value:A(_({},Y),{networkStatus:v.networkStatus===Ae.error?Ae.ready:v.networkStatus,loading:!1,data:B.result,dataState:v.dataState==="streaming"?"streaming":"complete"})})}}})}else{let D=this.getCurrentResult(),P=o(D.data,{fetchMoreResult:v.data,variables:s.variables});d({kind:"N",value:A(_({},D),{networkStatus:Ae.ready,loading:!1,data:P,dataState:D.dataState==="streaming"?"streaming":"complete"}),source:"network"})}}});return dm(u.then(b=>fs(this.maskResult(b))).finally(()=>{if(y.unsubscribe(),c(),l&&!a){let b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:A(_({},b),{dataState:"complete",networkStatus:Ae.ready})}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(n){let e=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:r=>{let{updateQuery:i,onError:o}=n,{error:s}=r;if(s){o?o(s):W.error(86,s);return}i&&this.updateQuery((a,l)=>i(a,_({subscriptionData:r},l)))}});return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)&&e.unsubscribe()}}applyOptions(n){let e=Lr(this.options,n||{});n2(this.options,e),this.updatePolling()}setVariables(n){return pt(this,null,function*(){return n=this.getVariablesWithDefaults(n),dt(this.variables,n)?fs(this.getCurrentResult()):(this.options.variables=n,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},{newNetworkStatus:Ae.setVariables}):fs(this.getCurrentResult()))})}updateQuery(n){let{queryManager:e}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),o=n(r,{variables:this.variables,complete:!!i,previousData:r});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),e.broadcastQueries())}startPolling(n){this.options.pollInterval=n,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(n,e){if(e.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=e;r==="standby"||(typeof e.nextFetchPolicy=="function"?e.fetchPolicy=e.nextFetchPolicy.call(e,r,{reason:n,options:e,observable:this,initialFetchPolicy:i}):n==="variables-changed"?e.fetchPolicy=i:e.fetchPolicy=e.nextFetchPolicy)}return e.fetchPolicy}fetch(n,e,r,i){let o=this.options.fetchPolicy;n.context??={};let s=!1,a=()=>{s=!0},l=v=>new pe(w=>{try{return v.subscribe({next(D){s=!0,w.next(D)},error:D=>w.error(D),complete:()=>w.complete()})}finally{s||(f.override=e,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:p,meta:{shouldEmit:3,fetchPolicy:o}}))}}),{observable:c,fromLink:d}=this.queryManager.fetchObservableWithInfo(n,{networkStatus:e,query:r,onCacheHit:a,fetchQueryOperator:l,observableQuery:this}),{query:u,variables:p}=this,f={abort:()=>{b.unsubscribe()},query:u,variables:p};this.activeOperations.add(f);let y=e==Ae.refetch||e==Ae.setVariables;c=c.pipe(i,xi());let b=c.pipe(St({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?f.override=e:delete f.override},finalize:()=>this.activeOperations.delete(f)})).subscribe({next:v=>{let w={};y&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(y=!1,w.shouldEmit=1),this.input.next(A(_({},v),{query:u,variables:p,meta:w}))}});return{fromLink:d,subscription:b,observable:c}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:n,options:{fetchPolicy:e,pollInterval:r}}=this,i=()=>{let{options:l}=this;return!l.pollInterval||!this.hasObservers()||l.fetchPolicy==="cache-only"||l.fetchPolicy==="standby"};if(i()){!1,this.cancelPolling();return}if(n?.interval===r)return;let o=n||(this.pollingInfo={});o.interval=r;let s=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!wa(this.networkStatus)&&!this.options.skipPollAttempt?.()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:Ae.poll}).then(a,a):a())},a=()=>{let l=this.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(n){return this._reobserve(n)}_reobserve(n,e){this.isTornDown=!1;let{newNetworkStatus:r}=e||{};this.queryManager.obsQueries.add(this);let i=r===Ae.refetch||r===Ae.poll,o=this.variables,s=this.options.fetchPolicy,a=Lr(this.options,n||{});this.variablesUnknown&&=a.fetchPolicy==="standby";let l=i?a:n2(this.options,a),c=this.transformDocument(l.query);this.lastQuery=c,n&&"variables"in n&&(l.variables=this.getVariablesWithDefaults(n.variables)),i||(this.updatePolling(),n&&n.variables&&!dt(n.variables,o)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),r===void 0&&(r=Ae.setVariables)));let d=this.networkStatus;r||(r=Ae.loading,d!==Ae.loading&&n?.variables&&!dt(n.variables,o)&&(r=Ae.setVariables),l.fetchPolicy==="standby"&&(r=Ae.ready)),l.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();let{promise:u,operator:p}=r2(l.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:f,observable:y,fromLink:b}=this.fetch(l,r,c,p);!i&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);let v=Object.assign(dm(u.then(w=>fs(this.maskResult(w))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{let w=y.subscribe({}),D=()=>w.unsubscribe();return u.then(D,D),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(n){return this.queryManager.transform(n)}maskResult(n){let e=this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,cause:this});return e===n.data?n:A(_({},n),{data:e})}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(n=!1){if(!n){let r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}let{dirty:e}=this;if(this.resetNotifications(),e&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){let r=this.getCacheDiff();dt(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:Ae.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(n){let e=!1,{query:r,variables:i}=this,o=()=>{this.activeOperations.delete(s)},s={override:n,abort:()=>{e=!0,o()},query:r,variables:i};return this.activeOperations.add(s),{finalize:o,pushNotification:(a,l)=>{e||this.input.next(A(_({},a),{query:r,variables:i,meta:_({},l)}))}}}calculateNetworkStatus(n){return n===Ae.streaming?n:Array.from(this.activeOperations.values()).reverse().find(r=>Iu(r,this)&&r.override!==void 0)?.override??n}abortActiveOperations(){this.activeOperations.forEach(n=>n.abort())}reset(){let n=this.options.fetchPolicy==="cache-only";this.setResult(n?X_:dc,{shouldEmit:n?1:2}),this.abortActiveOperations()}setResult(n,e){this.input.next({source:"setResult",kind:"N",value:n,query:this.query,variables:this.variables,meta:_({},e)})}operator=ic(n=>{let{query:e,variables:r,meta:i}=n;if(n.source==="setResult")return{query:e,variables:r,result:n.value,meta:i};if(n.kind==="C"||!Iu(n,this))return;let o,s=this.subject.getValue();if(n.source==="cache"){if(o=n.value,o.networkStatus===Ae.ready&&o.partial&&(!this.options.returnPartialData||s.result.networkStatus===Ae.error)&&this.options.fetchPolicy!=="cache-only")return}else if(n.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),o=n.kind==="E"?A(_({},Iu(s,n)?s.result:{data:void 0,dataState:"empty",partial:!0}),{error:n.error,networkStatus:Ae.error,loading:!1}):n.value,n.kind==="E"&&o.dataState==="streaming"&&(o.dataState="complete"),o.error&&(i.shouldEmit=1);else if(n.source==="newNetworkStatus"){let a=Iu(s,n)?s.result:this.getInitialResult(i.fetchPolicy),{resetError:l}=n.value,c=l?void 0:a.error,d=c?Ae.error:Ae.ready;o=A(_({},a),{error:c,networkStatus:d})}return W(o),o.error||delete o.error,o.networkStatus=this.calculateNetworkStatus(o.networkStatus),o.loading=wa(o.networkStatus),o=this.maskResult(o),s.result.data!==void 0&&o.data!==s.result.data&&dt(o.data,s.result.data)&&(o.data=s.result.data),{query:e,variables:r,result:o,meta:i}});reobserveCacheFirst(){let{fetchPolicy:n,nextFetchPolicy:e}=this.options;n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=e,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):n}}):this.reobserve()}getVariablesWithDefaults(n){return this.queryManager.getVariables(this.query,n)}};function i2(t){!1}function Iu(t,n){return!!(t&&n&&t.query===n.query&&dt(t.variables,n.variables))}function r2(t){let n=t,e,r,i=new Promise((s,a)=>{e=s,r=a}),o=St({next(s){if(s.kind==="E")return r(s.error);s.kind==="N"&&s.source!=="newNetworkStatus"&&!s.value.loading&&(n=s.value)},finalize:()=>{if(n)e(n);else{let s="The operation was aborted.",a="AbortError";r(typeof DOMException<"u"?new DOMException(s,a):Object.assign(new Error(s),{name:a}))}}});return{promise:i,operator:o}}var o2={},pc=new WeakMap;function ew(t,n){let e=t[n];typeof e=="function"&&(t[n]=function(){return pc.set(t,(pc.get(t)+1)%1e15),e.apply(this,arguments)})}var s2=new WeakMap,fc=class{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(n,e){let r=this.cache=n.cache,i=(s2.get(n)||0)+1;s2.set(n,i),this.id=i+"",this.observableQuery=e,this.queryManager=n,pc.has(r)||(pc.set(r,0),ew(r,"evict"),ew(r,"modify"),ew(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(n){(this.observableQuery||this)._lastWrite=n}resetLastWrite(){this.lastWrite=void 0}shouldWrite(n,e){let{lastWrite:r}=this;return!(r&&r.dmCount===pc.get(this.cache)&&dt(e,r.variables)&&dt(n.data,r.result.data)&&n.extensions?.[yr]===r.result.extensions?.[yr])}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(n,e,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(e)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(n,e)):e}markQueryResult(n,{document:e,variables:r,errorPolicy:i,cacheWriteBehavior:o}){let s={query:e,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=o===0,l=a?void 0:this.cache.diff(s),c=this.maybeHandleIncrementalResult(l?.result,n,e);return a||(tw(c,i)?this.cache.batch({onWatchUpdated:(d,u)=>{d.watcher===this.observableQuery&&(d.lastOwnDiff=u)},update:d=>{if(this.shouldWrite(c,r))d.writeQuery({query:e,data:c.data,variables:r,overwrite:o===1,extensions:c.extensions}),this.lastWrite={result:c,variables:r,dmCount:pc.get(this.cache)};else if(l&&l.complete){c=A(_({},c),{data:l.result});return}let u=d.diff(s);u.complete&&(c=A(_({},c),{data:u.result}))}}):this.lastWrite=void 0),c}markMutationResult(n,e,r=this.cache){let i=[],o=e.cacheWriteBehavior===0,s=this.maybeHandleIncrementalResult(o?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}).result,n,e.document);if(e.errorPolicy==="ignore"&&(s=A(_({},s),{errors:[]})),Io(s)&&e.errorPolicy==="none")return Promise.resolve(s);let a=()=>A(_({},s),{dataState:this.hasNext?"streaming":"complete"});if(!o&&tw(s,e.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables,extensions:s.extensions});let{updateQueries:c}=e;c&&this.queryManager.getObservableQueries("all").forEach(d=>{let u=d&&d.queryName;if(!u||!Object.hasOwnProperty.call(c,u))return;let p=c[u],{query:f,variables:y}=d,{result:b,complete:v}=d.getCacheDiff({optimistic:!1});if(v&&b){let w=p(b,{mutationResult:a(),queryName:f&&sn(f)||void 0,queryVariables:y});w&&i.push({result:w,dataId:"ROOT_QUERY",query:f,variables:y})}})}let l=e.refetchQueries;if(typeof l=="function"&&(l=l(a())),i.length>0||(l||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){let c=[];if(this.queryManager.refetchQueries({updateCache:d=>{o||i.forEach(p=>d.write(p));let{update:u}=e;if(u){if(!o){let p=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(s=A(_({},s),{data:p.result}))}this.hasNext||u(d,s,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(p,{fieldName:f,DELETE:y}){return f==="__typename"?p:y}})},include:l,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(d=>c.push(d)),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(n,e){let r=typeof n=="function"?n(e.variables,{IGNORE:o2}):n;return r===o2?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},e,i)}catch(o){W.error(o)}},this.id),!0)}markSubscriptionResult(n,{document:e,variables:r,errorPolicy:i,cacheWriteBehavior:o}){o!==0&&(tw(n,i)&&this.cache.write({query:e,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:n.extensions}),this.queryManager.broadcastQueries())}};function tw(t,n="none"){let e=n==="ignore"||n==="all",r=!Io(t);return!r&&e&&t.data&&(r=!0),r}var Sm=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(n){let e=new Oo(i=>this.cache.transformDocument(i),{cache:!1});this.client=n.client,this.defaultOptions=n.defaultOptions,this.queryDeduplication=n.queryDeduplication,this.clientOptions=n.clientOptions,this.ssrMode=n.ssrMode,this.assumeImmutableResults=n.assumeImmutableResults,this.dataMasking=n.dataMasking,this.localState=n.localState,this.incrementalHandler=n.incrementalHandler;let r=n.documentTransform;this.documentTransform=r?e.concat(r).concat(e):e,this.defaultContext=n.defaultContext||{},(this.onBroadcast=n.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(n=>n.stop()),this.cancelPendingFetches(Kt(89))}cancelPendingFetches(n){this.fetchCancelFns.forEach(e=>e(n)),this.fetchCancelFns.clear()}mutate(f){return pt(this,arguments,function*({mutation:n,variables:e,optimisticResponse:r,updateQueries:i,refetchQueries:o=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:l,fetchPolicy:c,errorPolicy:d,keepRootFields:u,context:p}){let y=new fc(this);n=this.cache.transformForLink(this.transform(n));let{hasClientExports:b}=this.getDocumentInfo(n);e=this.getVariables(n,e),b&&(!1,e=yield this.localState.getExportedVariables({client:this.client,document:n,variables:e,context:p}));let v=this.mutationStore&&(this.mutationStore[y.id]={mutation:n,variables:e,loading:!0,error:null}),w=r&&y.markMutationOptimistic(r,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,updateQueries:i,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((D,P)=>{let B={};return this.getObservableFromLink(n,A(_({},p),{optimisticResponse:w?r:void 0}),e,c,{},!1).observable.pipe(a2(),Nt(Y=>{let ye=_({},Y);return ft(y.markMutationResult(ye,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:o,removeOptimistic:w?y.id:void 0,onQueryUpdated:l,keepRootFields:u}))})).pipe(be(Y=>{if(Io(Y)&&d==="none")throw new Ro(nw(Y));return v&&(v.loading=!1,v.error=null),Y})).subscribe({next:Y=>{if(this.broadcastQueries(),!y.hasNext){let ye={data:this.maskOperation({document:n,data:Y.data,fetchPolicy:c,cause:B})};Io(Y)&&(ye.error=new Ro(Y)),Object.keys(Y.extensions||{}).length&&(ye.extensions=Y.extensions),D(ye)}},error:Y=>{if(v&&(v.loading=!1,v.error=Y),w&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),d==="ignore")return D({data:void 0});if(d==="all")return D({data:void 0,error:Y});P(Y)}})})})}fetchQuery(n,e){return Kn(n.query,Qn.QUERY),pt(this,null,function*(){return Cr(this.fetchObservableWithInfo(n,{networkStatus:e}).observable.pipe(ic(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return fs(r.value)}})),{defaultValue:{data:void 0}})})}transform(n){return this.documentTransform.transformDocument(n)}transformCache=new ha(gn["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(n){let{transformCache:e}=this;if(!e.has(n)){let i=Pn(n),o={hasClientExports:Gi(["client","export"],n,!0),hasForcedResolvers:y_(n),hasNonreactiveDirective:Gi(["nonreactive"],n),hasIncrementalDirective:Gi(["defer"],n),nonReactiveQuery:f9(n),clientQuery:Gi(["client"],n)?n:null,serverQuery:__([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],n),operationType:i?.operation,defaultVars:ma(i),asQuery:A(_({},n),{definitions:n.definitions.map(s=>s.kind==="OperationDefinition"&&s.operation!=="query"?A(_({},s),{operation:"query"}):s)})};e.set(n,o)}let r=e.get(n);if(r.violation)throw r.violation;return r}getVariables(n,e){let r=this.getDocumentInfo(n).defaultVars,i=Object.entries(e??{}).map(([o,s])=>[o,s===void 0?r[o]:s]);return _(_({},r),Object.fromEntries(i))}watchQuery(n){Kn(n.query,Qn.QUERY);let e=this.transform(n.query);return n=A(_({},n),{variables:this.getVariables(e,n.variables)}),typeof n.notifyOnNetworkStatusChange>"u"&&(n.notifyOnNetworkStatusChange=!0),new uc({queryManager:this,options:n,transformedQuery:e})}query(n){let e=this.transform(n.query);return this.fetchQuery(A(_({},n),{query:e})).then(r=>A(_({},r),{data:this.maskOperation({document:e,data:r?.data,fetchPolicy:n.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(n={discardWatches:!0}){return this.cancelPendingFetches(Kt(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(n)}getObservableQueries(n="active"){let e=new Set,r=new Map,i=new Map,o=new Set;return Array.isArray(n)&&n.forEach(s=>{if(typeof s=="string")r.set(s,s),i.set(s,!1);else if(b_(s)){let a=Ki(this.transform(s));r.set(a,sn(s)),i.set(a,!1)}else Ct(s)&&s.query&&o.add(s)}),this.obsQueries.forEach(s=>{let a=Ki(this.transform(s.options.query));if(n==="all"){e.add(s);return}let{queryName:l,options:{fetchPolicy:c}}=s;n==="active"&&c==="standby"||(n==="active"||l&&i.has(l)||a&&i.has(a))&&(e.add(s),l&&i.set(l,!0),a&&i.set(a,!0))}),o.size&&o.forEach(s=>{let a=new uc({queryManager:this,options:A(_({},ya(this.defaultOptions.watchQuery,s)),{fetchPolicy:"network-only"})});e.add(a)}),!1,e}refetchObservableQueries(n=!1){let e=[];return this.getObservableQueries(n?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(n||i!=="standby")&&i!=="cache-only"&&e.push(r.refetch())}),this.broadcastQueries(),Promise.all(e)}startGraphQLSubscription(n){let{query:e,variables:r}=n,{fetchPolicy:i="cache-first",errorPolicy:o="none",context:s={},extensions:a={}}=n;Kn(e,Qn.SUBSCRIPTION),e=this.transform(e),r=this.getVariables(e,r);let l;!1;let c=(this.getDocumentInfo(e).hasClientExports?ft(this.localState.getExportedVariables({client:this.client,document:e,variables:r,context:s})):ve(r)).pipe(Nt(d=>{let{observable:u,restart:p}=this.getObservableFromLink(e,s,d,i,a),f=new fc(this);return l=p,u.pipe(be(y=>{f.markSubscriptionResult(y,{document:e,variables:d,errorPolicy:o,cacheWriteBehavior:i==="no-cache"?0:2});let b={data:y.data??void 0};return Io(y)?b.error=new Ro(y):e2(y)&&(b.error=y.extensions[Em],delete y.extensions[Em]),y.extensions&&Object.keys(y.extensions).length&&(b.extensions=y.extensions),b.error&&o==="none"&&(b.data=void 0),o==="ignore"&&delete b.error,b}),dr(y=>o==="ignore"?ve({data:void 0}):ve({data:void 0,error:y})),nn(y=>!!(y.data||y.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(n=>n.notify())}inFlightLinkObservables=new Rn(!1);getObservableFromLink(n,e,r,i,o,s=e?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:l,clientQuery:c,operationType:d,hasIncrementalDirective:u}=this.getDocumentInfo(n),p=sn(n),f={client:this.client};if(l){let{inFlightLinkObservables:b,link:v}=this;try{let D=function(P){return new pe(B=>{function Y(){return P.subscribe({next:B.next.bind(B),complete:B.complete.bind(B),error:B.error.bind(B)})}let ye=Y();return a.restart||=()=>{ye.unsubscribe(),ye=Y()},()=>{ye.unsubscribe(),a.restart=void 0}})};var y=D;let w=this.incrementalHandler.prepareRequest({query:l,variables:r,context:A(_(_({},this.defaultContext),e),{queryDeduplication:s}),extensions:o});if(e=w.context,s){let P=Ki(l),B=En(r);a=b.lookup(P,B),a.observable||(a.observable=va(v,w,f).pipe(D,Ci(()=>{b.peek(P,B)===a&&b.remove(P,B)}),d===Qn.SUBSCRIPTION?xi():Rs({refCount:!0})))}else a.observable=va(v,w,f).pipe(D)}catch(w){a.observable=_i(()=>w)}}else a.observable=ve({data:{}});if(c){let{operation:b}=Pn(n);!1,W(!u,96,b[0].toUpperCase()+b.slice(1),p??"(anonymous)"),a.observable=a.observable.pipe(Nt(v=>ft(this.localState.execute({client:this.client,document:c,remoteResult:v,context:e,variables:r,fetchPolicy:i}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(dr(b=>{throw b=t2(b),J_(b),b}))}}getResultsFromLink(n,{queryInfo:e,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:o}){let s=e.lastRequestId=this.generateRequestId(),{errorPolicy:a}=n,l=this.cache.transformForLink(n.query);return this.getObservableFromLink(l,n.context,n.variables,n.fetchPolicy).observable.pipe(be(c=>{let d=e.markQueryResult(c,A(_({},n),{document:l,cacheWriteBehavior:r})),u=Io(d);if(u&&a==="none")throw e.resetLastWrite(),i?.resetNotifications(),new Ro(nw(d));let p=_({data:d.data},e.hasNext?{loading:!0,networkStatus:Ae.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:Ae.ready,partial:!d.data});return o&&"extensions"in d&&(p[gu]=d.extensions),u&&(a==="none"&&(p.data=void 0,p.dataState="empty"),a!=="ignore"&&(p.error=new Ro(nw(d)),p.dataState!=="streaming"&&(p.networkStatus=Ae.error))),p}),dr(c=>{if(s>=e.lastRequestId&&a==="none")throw e.resetLastWrite(),i?.resetNotifications(),c;let d={data:void 0,dataState:"empty",loading:!1,networkStatus:Ae.ready,partial:!0};return a!=="ignore"&&(d.error=c,d.networkStatus=Ae.error),ve(d)}))}fetchObservableWithInfo(n,{networkStatus:e=Ae.loading,query:r=n.query,fetchQueryOperator:i=l=>l,onCacheHit:o=()=>{},observableQuery:s,exposeExtensions:a}){let l=this.getVariables(r,n.variables),{fetchPolicy:c="cache-first",errorPolicy:d="none",returnPartialData:u=!1,notifyOnNetworkStatusChange:p=!0,context:f={}}=n;this.prioritizeCacheValues&&(c==="network-only"||c==="cache-and-network")&&(c="cache-first");let y=Object.assign({},n,{query:r,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:u,notifyOnNetworkStatusChange:p,context:f}),b=new fc(this,s),v=Y=>{y.variables=Y;let ye=c==="no-cache"?0:e===Ae.refetch&&y.refetchWritePolicy!=="merge"?1:2,Xe=this.fetchQueryByPolicy(y,{queryInfo:b,cacheWriteBehavior:ye,onCacheHit:o,observableQuery:s,exposeExtensions:a});return Xe.observable=Xe.observable.pipe(i),y.fetchPolicy!=="standby"&&s?.applyNextFetchPolicy("after-fetch",n),Xe},w=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,Y=>{D.next({kind:"E",error:Y,source:"network"})});let D=new qe,P,B;if(this.getDocumentInfo(y.query).hasClientExports)!1,P=ft(this.localState.getExportedVariables({client:this.client,document:y.query,variables:y.variables,context:y.context})).pipe(Nt(Y=>v(Y).observable)),B=!0;else{let Y=v(y.variables);B=Y.fromLink,P=Y.observable}return{observable:new pe(Y=>{Y.add(w),P.subscribe(Y),D.subscribe(Y)}).pipe(xi()),fromLink:B}}refetchQueries({updateCache:n,include:e,optimistic:r=!1,removeOptimistic:i=r?au("refetchQueries"):void 0,onQueryUpdated:o}){let s=new Map;e&&this.getObservableQueries(e).forEach(l=>{if(l.options.fetchPolicy==="cache-only"||l.variablesUnknown)return;let c=l.getCurrentResult();s.set(l,{oq:l,lastDiff:{result:c?.data,complete:!c?.partial}})});let a=new Map;if(n){let l=new Set;this.cache.batch({update:n,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(c,d,u){let p=c.watcher;if(p instanceof uc&&!l.has(p)){if(l.add(p),o){s.delete(p);let f=o(p,d,u);return f===!0&&(f=p.refetch().retain()),f!==!1&&a.set(p,f),f}o!==null&&p.options.fetchPolicy!=="cache-only"&&s.set(p,{oq:p,lastDiff:u,diff:d})}}})}return s.size&&s.forEach(({oq:l,lastDiff:c,diff:d})=>{let u;o&&(d||(d=l.getCacheDiff()),u=o(l,d,c)),(!o||u===!0)&&(u=l.refetch().retain()),u!==!1&&a.set(l,u)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(n){let{document:e,data:r}=n;if(!1){let{fetchPolicy:i,cause:o={}}=n,s=Pn(e)?.operation;this.dataMasking&&i==="no-cache"&&!p9(e)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),!1)}return this.dataMasking?j_(r,e,this.cache):r}maskFragment(n){let{data:e,fragment:r,fragmentName:i}=n;return this.dataMasking?V_(e,r,this.cache,i):e}fetchQueryByPolicy({query:n,variables:e,fetchPolicy:r,errorPolicy:i,returnPartialData:o,context:s},{cacheWriteBehavior:a,onCacheHit:l,queryInfo:c,observableQuery:d,exposeExtensions:u}){let p=()=>this.cache.diff({query:n,variables:e,returnPartialData:!0,optimistic:!0}),f=(b,v)=>{let w=b.result;!1;let D=B=>(!b.complete&&!o&&(B=void 0),{data:B,dataState:b.complete?"complete":B?"partial":"empty",loading:wa(v),networkStatus:v,partial:!b.complete}),P=B=>ve({kind:"N",value:D(B),source:"cache"});return(b.complete||o)&&this.getDocumentInfo(n).hasForcedResolvers?(!1,l(),ft(this.localState.execute({client:this.client,document:n,remoteResult:w?{data:w}:void 0,context:s,variables:e,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(B=>({kind:"N",value:D(B.data||void 0),source:"cache"})))):i==="none"&&v===Ae.refetch&&b.missing?P(void 0):P(w||void 0)},y=()=>this.getResultsFromLink({query:n,variables:e,context:s,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:a,queryInfo:c,observableQuery:d,exposeExtensions:u}).pipe(a2(),e0(),be(b=>A(_({},b),{source:"network"})));switch(r){default:case"cache-first":{let b=p();return b.complete?{fromLink:!1,observable:f(b,Ae.ready)}:o?{fromLink:!0,observable:wi(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{let b=p();return b.complete||o?{fromLink:!0,observable:wi(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:wi(f(p(),Ae.ready))};case"network-only":return{fromLink:!0,observable:y()};case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:Pt}}}};function a2(){let t=!1;return St({next(){t=!0},complete(){W(t,100)}})}function p9(t){let n=!0;return on(t,{FragmentSpread:e=>{if(n=!!e.directives&&e.directives.some(r=>r.name.value==="unmask"),!n)return Eo}}),n}function f9(t){return on(t,{FragmentSpread:n=>{if(!n.directives?.some(e=>e.name.value==="unmask"))return A(_({},n),{directives:[...n.directives||[],{kind:Q.DIRECTIVE,name:{kind:Q.NAME,value:"nonreactive"}}]})}})}function nw(t){var s;if(t.extensions?.[yr]==null)return t;let i=t,{extensions:o}=i,a=o,{[s=yr]:n}=a,e=Et(a,[Yu(s)]),r=Et(i,["extensions"]);return Object.keys(e).length>0&&(r.extensions=e),r}var l2=!1,Ea=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(n){this.queryManager.prioritizeCacheValues=n}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(n){!1;let{cache:e,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:o=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:l,assumeImmutableResults:c=e.assumeImmutableResults,localState:d,devtools:u,dataMasking:p,link:f,incrementalHandler:y=new _u,experiments:b=[],refetchEventManager:v}=n;this.link=f,this.cache=e,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig=A(_({},u),{enabled:u?.enabled??!1}),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=su,this.queryManager=new Sm({client:this,defaultOptions:this.defaultOptions,defaultContext:l,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!p,clientOptions:n,incrementalHandler:y,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(w=>w.call(this,n)),this.refetchEventManager=v,this.refetchEventManager?.connect(this)}connectToDevTools(){if(typeof window>"u")return;let n=window,e=Symbol.for("apollo.devtools");(n[e]=n[e]||[]).push(this),n.__APOLLO_CLIENT__=this,!l2&&!1&&(l2=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let r=window.navigator,i=r&&r.userAgent,o;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1&&W.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(n){this.queryManager.localState=n}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(n){let{refetchOn:e}=n;if(this.defaultOptions.watchQuery){let r=this.defaultOptions.watchQuery.refetchOn,i;e&&typeof e=="object"&&(typeof r=="object"?i=_(_({},r),e):r!=null&&(i=o=>{let s=e[o.source]??r;return typeof s=="function"?s(o):s})),n=ya(this.defaultOptions.watchQuery,n),i&&(n.refetchOn=i)}if(!1){let{query:r}=n,{refetchEventManager:i}=this;if(e){let o=sn(r,"(anonymous)");i?typeof e=="object"&&Object.keys(e).forEach(s=>{i.hasSource(s)||!1}):!1}}return this.queryManager.watchQuery(n)}query=n=>(this.defaultOptions.query&&(n=ya(this.defaultOptions.query,n)),!1,this.queryManager.query(n));mutate=n=>{let e=ya(Lr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),n);return!1,Kn(e.mutation,Qn.MUTATION),this.queryManager.mutate(e)};subscribe(n){let e={},r=this.queryManager.startGraphQLSubscription(n),i=r.pipe(be(o=>A(_({},o),{data:this.queryManager.maskOperation({document:n.query,data:o.data,fetchPolicy:n.fetchPolicy,cause:e})})));return Object.assign(i,{restart:r.restart})}readQuery(n,e=!1){return this.cache.readQuery(A(_({},n),{query:this.transform(n.query)}),e)}watchFragment(n){let e=this.queryManager.dataMasking,r=this.cache.watchFragment(A(_({},n),{fragment:this.transform(n.fragment,e)}));return r}readFragment(n,e=!1){return this.cache.readFragment(A(_({},n),{fragment:this.transform(n.fragment)}),e)}writeQuery(n){let e=this.cache.writeQuery(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}writeFragment(n){let e=this.cache.writeFragment(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}__actionHookForDevTools(n){this.devToolsHookCb=n}__requestRaw(n){return va(this.link,n,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(n=>n()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(n=>n())))}onResetStore(n){return this.resetStoreCallbacks.push(n),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(e=>e!==n)}}onClearStore(n){return this.clearStoreCallbacks.push(n),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(e=>e!==n)}}reFetchObservableQueries;refetchObservableQueries(n){return this.queryManager.refetchObservableQueries(n)}refetchQueries(n){let e=this.queryManager.refetchQueries(n),r=[],i=[];e.forEach((s,a)=>{r.push(a),i.push(s)});let o=Promise.all(i);return o.queries=r,o.results=i,o.catch(s=>{!1}),o}getObservableQueries(n="active"){return this.queryManager.getObservableQueries(n)}extract(n){return this.cache.extract(n)}restore(n){return this.cache.restore(n)}setLink(n){this.link=n}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new Oo(w_);transform(n,e=!1){let r=this.queryManager.transform(n);return e?this.maskedFragmentTransform.transformDocument(r):r}};!1;var Im=new Map,rw=new Map,c2=!0,Dm=!1;function d2(t){return t.replace(/[\s,]+/g," ").trim()}function h9(t){return d2(t.source.body.substring(t.start,t.end))}function m9(t){var n=new Set,e=[];return t.definitions.forEach(function(r){if(r.kind==="FragmentDefinition"){var i=r.name.value,o=h9(r.loc),s=rw.get(i);s&&!s.has(o)?c2&&console.warn("Warning: fragment with name "+i+` already exists.
+}`)}function Be(t,n,e=""){return n!=null&&n!==""?t+n+e:""}function tm(t){return Be(" ",t.replace(/\n/g,`
+ `))}function Kv(t){var n;return(n=t?.some(e=>e.includes(`
+`)))!==null&&n!==void 0?n:!1}function ca(t){try{return t()}catch{}}var ec=ca(()=>globalThis)||ca(()=>window)||ca(()=>self)||ca(()=>global)||ca(function(){return ca.constructor("return this")()});var iu="4.2.2";var wM=new Map;function ru(t){let n=wM.get(t)||1;return wM.set(t,n+1),`${t}:${n}:${Math.random().toString(36).slice(2)}`}function ou(t,n=0){let e=ru("stringifyForDisplay");return JSON.stringify(t,(i,r)=>r===void 0?e:r,n).split(JSON.stringify(e)).join("")}var CM="Invariant Violation",Yv=class t extends Error{constructor(n=CM){super(n),this.name=CM,Object.setPrototypeOf(this,t.prototype)}},TM=["debug","log","warn","error","silent"],D8=TM.indexOf("silent");function W(t,...n){if(!t)throw Qt(...n)}function nm(t){return function(n,...e){if(TM.indexOf(t)>=D8){let i=console[t]||console.log;if(typeof n=="number"){let r=n;n=EM(r),n||(n=SM(r,e),e=[])}i(n,...e)}}}W.debug=nm("debug");W.log=nm("log");W.warn=nm("warn");W.error=nm("error");function Qt(t,...n){return new Yv(EM(t,n)||SM(t,n))}var xM=Symbol.for("ApolloErrorMessageHandler_"+iu);function Zv(t){if(typeof t=="string")return t;try{return ou(t,2).slice(0,1e3)}catch{return""}}function EM(t,n=[]){if(t)return ec[xM]&&ec[xM](t,n.map(Zv))}function SM(t,n=[]){if(t)return typeof t=="string"?n.reduce((e,i)=>e.replace(/%[sdfo]/,Zv(i)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:iu,message:t,args:n.map(Zv)}))}`}function xo(t,n,e,i){if(e.kind===q.INT||e.kind===q.FLOAT)t[n.value]=Number(e.value);else if(e.kind===q.BOOLEAN||e.kind===q.STRING)t[n.value]=e.value;else if(e.kind===q.OBJECT){let r={};e.fields.map(o=>xo(r,o.name,o.value,i)),t[n.value]=r}else if(e.kind===q.VARIABLE){let r=(i||{})[e.name.value];t[n.value]=r}else if(e.kind===q.LIST)t[n.value]=e.values.map(r=>{let o={};return xo(o,n,r,i),o[n.value]});else if(e.kind===q.ENUM)t[n.value]=e.value;else if(e.kind===q.NULL)t[n.value]=null;else throw Qt(19,n.value,e.kind)}function da(t,n){if(t.arguments&&t.arguments.length){let e={};return t.arguments.forEach(({name:i,value:r})=>xo(e,i,r,n)),e}return null}var k8=Symbol.for("apollo.cacheSize"),mn=_({},ec[k8]);function sn(t,n){return t.definitions.find(e=>e.kind==="OperationDefinition"&&!!e.name)?.name.value??n}var M8=()=>Object.create(null),{forEach:O8,slice:IM}=Array.prototype,{hasOwnProperty:R8}=Object.prototype,Rn=class t{constructor(n=!0,e=M8){this.weakness=n,this.makeData=e}lookup(){return this.lookupArray(arguments)}lookupArray(n){let e=this;return O8.call(n,i=>e=e.getChildTrie(i)),R8.call(e,"data")?e.data:e.data=this.makeData(IM.call(n))}peek(){return this.peekArray(arguments)}peekArray(n){let e=this;for(let i=0,r=n.length;e&&ithis.max;)this.delete(this.oldest.key)}delete(n){let e=this.map.get(n);return e?(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(n),this.dispose(e.value,n),!0):!1}};function Jv(){}var N8=Jv,F8=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},L8=typeof WeakMap<"u"?WeakMap:Map,B8=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Jv,unregister:Jv}},V8=10024,Ur=class{constructor(n=1/0,e=N8){this.max=n,this.dispose=e,this.map=new L8,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let i=this.unfinalizedNodes.values();for(let r=0;r0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new B8(this.deleteNode.bind(this))}has(n){return this.map.has(n)}get(n){let e=this.getNode(n);return e&&e.value}getNode(n){let e=this.map.get(n);if(e&&e!==this.newest){let{older:i,newer:r}=e;r&&(r.older=i),i&&(i.newer=r),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=r)}return e}set(n,e){let i=this.getNode(n);return i?i.value=e:(i={key:n,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=i),this.newest=i,this.oldest=this.oldest||i,this.scheduleFinalization(i),this.map.set(n,i),this.size++,i.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(n){n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.size--;let e=n.key||n.keyRef&&n.keyRef.deref();this.dispose(n.value,e),n.keyRef?this.registry.unregister(n):this.unfinalizedNodes.delete(n),e&&this.map.delete(e)}delete(n){let e=this.map.get(n);return e?(this.deleteNode(e),!0):!1}scheduleFinalization(n){this.unfinalizedNodes.add(n),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var Xv=new WeakSet;function DM(t){t.size<=(t.max||-1)||Xv.has(t)||(Xv.add(t),setTimeout(()=>{t.clean(),Xv.delete(t)},100))}var ua=function(t,n){let e=new Ur(t,n);return e.set=function(i,r){let o=Ur.prototype.set.call(this,i,r);return DM(this),o},e},e_=function(t,n){let e=new ss(t,n);return e.set=function(i,r){let o=ss.prototype.set.call(this,i,r);return DM(this),o},e};function im(t,{max:n,makeCacheKey:e=i=>i}){let i=new Rn(!0),r=new ua(n);return(...o)=>{let s=i.lookupArray(e(o)),a=r.get(s);if(a){if(a.error)throw a.error;return a.result}let l=r.set(s,{});try{return l.result=t(...o)}catch(c){throw l.error=c,c}}}var Qn=im((t,n)=>{W(t&&t.kind==="Document",1);let e=t.definitions.filter(i=>i.kind==="OperationDefinition");!1,n&&W(e.length==1&&e[0].operation===n,4,n,n,e[0].operation),on(t,{Field(i,r,o,s){if(i.alias&&(i.alias.value==="__typename"||i.alias.value.startsWith("__ac_"))&&i.alias.value!==i.name.value){let a=t,l=[];for(let c of s)a=a[c],a.kind===q.FIELD&&l.push(a.alias?.value||a.name.value);throw l.splice(-1,1,i.name.value),Qt(5,i.alias.value,l.join("."),e[0].operation,sn(t,"(anonymous)"))}}})},{max:mn.checkDocument||2e3});var{toString:j8}=Object.prototype;function n_(t){return t_(t)}function t_(t,n){switch(j8.call(t)){case"[object Array]":{if(n=n||new Map,n.has(t))return n.get(t);let e=t.slice(0);return n.set(t,e),e.forEach(function(i,r){e[r]=t_(i,n)}),e}case"[object Object]":{if(n=n||new Map,n.has(t))return n.get(t);let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),Object.keys(t).forEach(i=>{e[i]=t_(t[i],n)}),e}default:return t}}function i_(t){return t.length===0?Pt:new ue(n=>{let{length:e}=t,i=new Array(e),r=new Map;t.forEach((l,c)=>{r.has(l)||r.set(l,new Set),r.get(l).add(c)});let o=r.size,s=r.size,a;r.forEach((l,c)=>{let d=!1,u=c.subscribe({next:p=>{l.forEach(f=>i[f]=p),d||(d=!0,s--),s||(a||=new Set(t.filter(f=>f.dirty)),a.delete(c),a.size||(n.next(i.slice()),a=void 0))},complete:()=>{o--,o||n.complete()},error:n.error.bind(n)});n.add(u)})})}function Fi(...t){let n={};return t.forEach(e=>{e&&Reflect.ownKeys(e).forEach(i=>{let r=e[i];r!==void 0&&(n[i]=r)})}),n}function cr(t=[]){let n={};return t.forEach(e=>{n[e.name.value]=e}),n}function Ct(t){return t!==null&&typeof t=="object"}var{hasOwnProperty:z8}=Object.prototype,H8=function(t,n,e){return this.merge(t[e],n[e])},kM=t=>isNaN(+t)?{}:[],ni=class{options;reconciler;constructor(n={}){this.options=n,this.reconciler=n.reconciler||H8}merge(n,e,i={}){let r=i.atPath;if(r?.length){let[o,...s]=r;n===void 0&&(n=kM(o));let a=n[o];a===void 0&&s.length&&(a=kM(s[0]));let l=this.merge(a,e,A(_({},i),{atPath:s}));return a!==l&&(n=this.shallowCopyForMerge(n),n[o]=l),n}return Array.isArray(n)&&Array.isArray(e)&&this.options.arrayMerge==="truncate"&&n.length>e.length&&(n=n.slice(0,e.length),this.pastCopies.add(n)),Ct(e)&&Ct(n)?(Object.keys(e).forEach(o=>{if(z8.call(n,o)){let s=n[o];if(e[o]!==s){let a=this.reconciler(n,e,o);a!==s&&(n=this.shallowCopyForMerge(n),n[o]=a)}}else n=this.shallowCopyForMerge(n),n[o]=e[o]}),n):e}isObject=Ct;pastCopies=new Set;shallowCopyForMerge(n){return Ct(n)&&(this.pastCopies.has(n)||(Array.isArray(n)?n=n.slice(0):n=_({__proto__:Object.getPrototypeOf(n)},n),this.pastCopies.add(n))),n}};function pa(t){let n={},e=t&&t.variableDefinitions;return e&&e.length&&e.forEach(i=>{i.defaultValue&&xo(n,i.variable.name,i.defaultValue)}),n}function as(t,n){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{let e=t.name.value;if(typeof n=="function")return n(e);let i=n&&n[e];return W(i,9,e),i||null}default:return null}}function r_(t,n){let e=n,i=[];return t.definitions.forEach(o=>{if(o.kind==="OperationDefinition")throw Qt(10,o.operation,o.name?` named '${o.name.value}'`:"");o.kind==="FragmentDefinition"&&i.push(o)}),typeof e>"u"&&(W(i.length===1,11,i.length),e=i[0].name.value),A(_({},t),{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}},...t.definitions]})}function su(t){W(t.kind==="Document",6),W(t.definitions.length<=1,7);let n=t.definitions[0];return W(n.kind==="FragmentDefinition",8),n}function dr(t){return t.definitions.filter(n=>n.kind==="FragmentDefinition")}function ls(t){Qn(t);let n;for(let e of t.definitions){if(e.kind==="OperationDefinition")return e;e.kind==="FragmentDefinition"&&!n&&(n=e)}if(n)return n;throw Qt(12)}function Pn(t){return Qn(t),t.definitions.filter(n=>n.kind==="OperationDefinition")[0]}function au(t){let n=Pn(t);return W(n&&n.operation==="query",13),n}var $8={};function lu(t,n){$8[t]=n}var En=Object.assign(function(n){return JSON.stringify(n,U8)},{reset(){tc=new e_(mn.canonicalStringify||1e3)}});!1;var tc;En.reset();function U8(t,n){if(n&&typeof n=="object"){let e=Object.getPrototypeOf(n);if(e===Object.prototype||e===null){let i=Object.keys(n);if(i.every(W8))return n;let r=JSON.stringify(i),o=tc.get(r);if(!o){i.sort();let a=JSON.stringify(i);o=tc.get(a)||i,tc.set(r,o),tc.set(a,o)}let s=Object.create(e);return o.forEach(a=>{s[a]=n[a]}),s}}return n}function W8(t,n,e){return n===0||e[n-1]<=t}var G8=["connection","include","skip","client","rest","export","nonreactive","stream"],cu=En,du=Object.assign(function(t,n,e){if(n&&e&&e.connection&&e.connection.key){if(e.connection.filter&&e.connection.filter.length>0){let r=e.connection.filter?e.connection.filter:[];r.sort();let o={};r.forEach(a=>{o[a]=n[a]});let s=cu(o);if(s!=="{}")return`${e.connection.key}(${s})`}return e.connection.key}let i=t;if(n){let r=cu(n);r!=="{}"&&(i+=`(${r})`)}return e&&Object.keys(e).forEach(r=>{G8.indexOf(r)===-1&&(e[r]&&Object.keys(e[r]).length?i+=`@${r}(${cu(e[r])})`:i+=`@${r}`)}),i},{setStringify(t){let n=cu;return cu=t,n}});function To(t){return!!t.errors?.length}function Wr(t,n,e){let i=new Set(t),r=i.size;return on(n,{Directive(o){if(i.delete(o.name.value)&&(!e||!i.size))return Co}}),e?!i.size:i.sizei.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0),n))return Co}}}),n}var Tt=Array.isArray;function s_(t){return Ct(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function Gr(t){return t.kind==="Field"}function fa(t){return Array.isArray(t)&&t.length>0}function qr(t){return{__ref:String(t)}}function MM(t){let n=new Set([t]);return n.forEach(e=>{Ct(e)&&q8(e)===e&&Object.getOwnPropertyNames(e).forEach(i=>{Ct(e[i])&&n.add(e[i])})}),t}function q8(t){if(!1)try{Object.freeze(t)}catch(n){if(n instanceof TypeError)return null;throw n}return t}function cs(t){return!1,t}function a_(t){let n=t[0]||{},e=t.length;if(e>1){let i=new ni;for(let r=1;r{}),t}function l_(t,n){Qn(n);let e=OM(""),i=OM(""),r=v=>{for(let w=0,D;w=0;--v)n.definitions[v].kind===q.OPERATION_DEFINITION&&++o;let s=Q8(t),a=v=>fa(v)&&v.map(s).some(w=>w&&w.remove),l=new Map,c=!1,d={enter(v){if(a(v.directives))return c=!0,null}},u=on(n,{Field:d,InlineFragment:d,VariableDefinition:{enter(){return!1}},Variable:{enter(v,w,D,P,B){let Y=r(B);Y&&Y.variables.add(v.name.value)}},FragmentSpread:{enter(v,w,D,P,B){if(a(v.directives))return c=!0,null;let Y=r(B);Y&&Y.fragmentSpreads.add(v.name.value)}},FragmentDefinition:{enter(v,w,D,P){l.set(JSON.stringify(P),v)},leave(v,w,D,P){let B=l.get(JSON.stringify(P));if(v===B)return v;if(o>0&&v.selectionSet.selections.every(Y=>Y.kind===q.FIELD&&Y.name.value==="__typename"))return i(v.name.value).removed=!0,c=!0,null}},Directive:{leave(v){if(s(v))return c=!0,null}}});if(!c)return n;let p=v=>(v.transitiveVars||(v.transitiveVars=new Set(v.variables),v.removed||v.fragmentSpreads.forEach(w=>{p(i(w)).transitiveVars.forEach(D=>{v.transitiveVars.add(D)})})),v),f=new Set;u.definitions.forEach(v=>{v.kind===q.OPERATION_DEFINITION?p(e(v.name&&v.name.value)).fragmentSpreads.forEach(w=>{f.add(w)}):v.kind===q.FRAGMENT_DEFINITION&&o===0&&!i(v.name.value).removed&&f.add(v.name.value)}),f.forEach(v=>{p(i(v)).fragmentSpreads.forEach(w=>{f.add(w)})});let y=v=>!!(!f.has(v)||i(v).removed),b={enter(v){if(y(v.name.value))return null}};return K8(on(u,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(v){if(v.variableDefinitions){let w=p(e(v.name&&v.name.value)).transitiveVars;if(w.sizew.has(D.variable.name.value))})}}}}))}function OM(t){let n=new Map;return function(i=t){let r=n.get(i);return r||n.set(i,r={variables:new Set,fragmentSpreads:new Set}),r}}function Q8(t){let n=new Map,e=new Map;return t.forEach(i=>{i&&(i.name?n.set(i.name,i):i.test&&e.set(i.test,i))}),i=>{let r=n.get(i.name.value);return!r&&e.size&&e.forEach((o,s)=>{s(i)&&(r=o)}),r}}function RM(t,n){return!t||t.selectionSet.selections.every(e=>e.kind===q.FRAGMENT_SPREAD&&RM(n[e.name.value],n))}function K8(t){return RM(Pn(t)||su(t),cr(dr(t)))?null:t}function c_(t){return on(t,{FragmentSpread(n){if(!n.directives?.some(({name:e})=>e.value==="unmask"))return null}})}function fi(t){return t.alias?t.alias.value:t.name.value}function Eo({directives:t},n){return!t||!t.length?!0:Z8(t).every(({directive:e,ifArgument:i})=>{let r=!1;return i.value.kind==="Variable"?(r=n&&n[i.value.name.value],W(r!==void 0,15,e.name.value)):r=i.value.value,e.name.value==="skip"?!r:r})}function Y8({name:{value:t}}){return t==="skip"||t==="include"}function Z8(t){let n=[];return t&&t.length&&t.forEach(e=>{if(!Y8(e))return;let i=e.arguments,r=e.name.value;W(i&&i.length===1,16,r);let o=i[0];W(o.name&&o.name.value==="if",17,r);let s=o.value;W(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),18,r),n.push({directive:e,ifArgument:o})}),n}function d_(t,n){let e=null;t.directives&&(e={},t.directives.forEach(r=>{e[r.name.value]={},r.arguments&&r.arguments.forEach(({name:o,value:s})=>xo(e[r.name.value],o,s,n))}));let i=null;return t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(({name:r,value:o})=>xo(i,r,o,n))),du(t.name.value,i,e)}function ds(t){let n={data:t.data};return t.error&&(n.error=t.error),n}function nc(t,n=()=>{}){return e=>new ue(i=>{let r=n();return e.subscribe({next(o){let s;try{s=t(o,r)}catch(a){i.error(a)}s!==void 0&&i.next(s)},error(o){i.error(o)},complete(){i.complete()}})})}var{toString:PM,hasOwnProperty:J8}=Object.prototype,AM=Function.prototype.toString,u_=new Map;function dt(t,n){try{return p_(t,n)}finally{u_.clear()}}function p_(t,n){if(t===n)return!0;let e=PM.call(t),i=PM.call(n);if(e!==i)return!1;switch(e){case"[object Array]":if(t.length!==n.length)return!1;case"[object Object]":{if(FM(t,n))return!0;let r=NM(t),o=NM(n),s=r.length;if(s!==o.length)return!1;for(let a=0;a=0&&t.indexOf(n,e)===e}function FM(t,n){let e=u_.get(t);if(e){if(e.has(n))return!0}else u_.set(t,e=new Set);return e.add(n),!1}function uu(t,s,l,o){var a=s,{data:n}=a,e=Et(a,["data"]);var c=l,{data:i}=c,r=Et(c,["data"]);return dt(e,r)&&om(ls(t).selectionSet,n,i,{fragmentMap:cr(dr(t)),variables:o})}function om(t,n,e,i){if(n===e)return!0;let r=new Set;return t.selections.every(o=>{if(r.has(o)||(r.add(o),!Eo(o,i.variables))||LM(o))return!0;if(Gr(o)){let s=fi(o),a=n&&n[s],l=e&&e[s],c=o.selectionSet;if(!c)return dt(a,l);let d=Array.isArray(a),u=Array.isArray(l);if(d!==u)return!1;if(d&&u){let p=a.length;if(l.length!==p)return!1;for(let f=0;fr(t.getCurrentResult())})}var pu=im(function(n,e,i){return i7(n,i)},{max:1,makeCacheKey:t=>t.slice(0,2)});var fu=Symbol.for("apollo.result.extensions"),hi=Symbol.for("apollo.result.streamInfo"),f_=Symbol.for("apollo.observableQuery.variablesUnknown");var An=null,BM={},r7=1,o7=()=>class{constructor(){this.id=["slot",r7++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let n=An;n;n=n.parent)if(this.id in n.slots){let e=n.slots[this.id];if(e===BM)break;return n!==An&&(An.slots[this.id]=e),!0}return An&&(An.slots[this.id]=BM),!1}getValue(){if(this.hasValue())return An.slots[this.id]}withValue(n,e,i,r){let o={__proto__:null,[this.id]:n},s=An;An={parent:s,slots:o};try{return e.apply(r,i)}finally{An=s}}static bind(n){let e=An;return function(){let i=An;try{return An=e,n.apply(this,arguments)}finally{An=i}}}static noContext(n,e,i){if(An){let r=An;try{return An=null,n.apply(i,e)}finally{An=r}}else return n.apply(i,e)}};function VM(t){try{return t()}catch{}}var h_="@wry/context:Slot",s7=VM(()=>globalThis)||VM(()=>global)||Object.create(null),jM=s7,So=jM[h_]||Array[h_]||(function(t){try{Object.defineProperty(jM,h_,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(o7());var{bind:zM,noContext:HM}=So;var ma=new So;var{hasOwnProperty:$M}=Object.prototype,hu=Array.from||function(t){let n=[];return t.forEach(e=>n.push(e)),n};function ic(t){let{unsubscribe:n}=t;typeof n=="function"&&(t.unsubscribe=void 0,n())}var mu=[],c7=100;function rc(t,n){if(!t)throw new Error(n||"assertion failure")}function WM(t,n){let e=t.length;return e>0&&e===n.length&&t[e-1]===n[e-1]}function GM(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function qM(t){return t.slice(0)}var QM=(()=>{class t{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++t.count}peek(){if(this.value.length===1&&!us(this))return UM(this),this.value[0]}recompute(e){return rc(!this.recomputing,"already recomputing"),UM(this),us(this)?d7(this,e):GM(this.value)}setDirty(){this.dirty||(this.dirty=!0,KM(this),ic(this))}dispose(){this.setDirty(),eO(this),m_(this,(e,i)=>{e.setDirty(),tO(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=mu.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(hu(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),mu.push(this.deps),this.deps=null)}}return t.count=0,t})();function UM(t){let n=ma.getValue();if(n)return t.parents.add(n),n.childValues.has(t)||n.childValues.set(t,[]),us(t)?ZM(n,t):JM(n,t),n}function d7(t,n){return eO(t),ma.withValue(t,u7,[t,n]),f7(t,n)&&p7(t),GM(t.value)}function u7(t,n){t.recomputing=!0;let{normalizeResult:e}=t,i;e&&t.value.length===1&&(i=qM(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,n),e&&i&&!WM(i,t.value))try{t.value[0]=e(t.value[0],i[0])}catch{}}catch(r){t.value[1]=r}t.recomputing=!1}function us(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function p7(t){t.dirty=!1,!us(t)&&YM(t)}function KM(t){m_(t,ZM)}function YM(t){m_(t,JM)}function m_(t,n){let e=t.parents.size;if(e){let i=hu(t.parents);for(let r=0;r0&&t.childValues.forEach((n,e)=>{tO(t,e)}),t.forgetDeps(),rc(t.dirtyChildren===null)}function tO(t,n){n.parents.delete(t),t.childValues.delete(n),XM(t,n)}function f7(t,n){if(typeof t.subscribe=="function")try{ic(t),t.unsubscribe=t.subscribe.apply(null,n)}catch{return t.setDirty(),!1}return!0}var h7={setDirty:!0,dispose:!0,forget:!0};function gu(t){let n=new Map,e=t&&t.subscribe;function i(r){let o=ma.getValue();if(o){let s=n.get(r);s||n.set(r,s=new Set),o.dependOn(s),typeof e=="function"&&(ic(s),s.unsubscribe=e(r))}}return i.dirty=function(o,s){let a=n.get(o);if(a){let l=s&&$M.call(h7,s)?s:"setDirty";hu(a).forEach(c=>c[l]()),n.delete(o),ic(a)}},i}var nO;function y_(...t){return(nO||(nO=new Rn(typeof WeakMap=="function"))).lookupArray(t)}var g_=new Set;function Io(t,{max:n=Math.pow(2,16),keyArgs:e,makeCacheKey:i=y_,normalizeResult:r,subscribe:o,cache:s=ss}=Object.create(null)){let a=typeof s=="function"?new s(n,p=>p.dispose()):s,l=function(){let p=i.apply(null,e?e.apply(null,arguments):arguments);if(p===void 0)return t.apply(null,arguments);let f=a.get(p);f||(a.set(p,f=new QM(t)),f.normalizeResult=r,f.subscribe=o,f.forget=()=>a.delete(p));let y=f.recompute(Array.prototype.slice.call(arguments));return a.set(p,f),g_.add(a),ma.hasValue()||(g_.forEach(b=>b.clean()),g_.clear()),y};Object.defineProperty(l,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:n,keyArgs:e,makeCacheKey:i,normalizeResult:r,subscribe:o,cache:a});function c(p){let f=p&&a.get(p);f&&f.setDirty()}l.dirtyKey=c,l.dirty=function(){c(i.apply(null,arguments))};function d(p){let f=p&&a.get(p);if(f)return f.peek()}l.peekKey=d,l.peek=function(){return d(i.apply(null,arguments))};function u(p){return p?a.delete(p):!1}return l.forgetKey=u,l.forget=function(){return u(i.apply(null,arguments))},l.makeCacheKey=i,l.getKey=e?function(){return i.apply(null,e.apply(null,arguments))}:i,Object.freeze(l)}function b_(...t){return y_.bind(null,...t)}function v_(){throw new Error("only supported in development mode")}var iO=v_,rO=v_,oO=v_;var yu=class{isIncrementalResult(n){return!1}prepareRequest(n){return W(!Wr(["defer","stream"],n.query),67),n}extractErrors(){}startRequest=void 0};function __(t,{client:n}){let e={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:sn(t.query),operationType:Pn(t.query).operation},i=_({},t.context),r=s=>{typeof s=="function"?i=_(_({},i),s(o())):i=_(_({},i),s)},o=()=>Object.freeze(_({},i));return Object.defineProperty(e,"setContext",{enumerable:!1,value:r}),Object.defineProperty(e,"getContext",{enumerable:!1,value:o}),Object.defineProperty(e,"client",{enumerable:!1,value:n}),e}var Bn=class t{static empty(){return new t(()=>Pt)}static from(n){if(n.length===0)return t.empty();let[e,...i]=n;return e.concat(...i)}static split(n,e,i=new t((r,o)=>o(r))){let r=new t((o,s)=>{let a=n(o);return!1,a?e.request(o,s):i.request(o,s)});return Object.assign(r,{left:e,right:i})}static execute(n,e,i){return n.request(__(e,i),()=>(!1,Pt))}static concat(...n){return t.from(n)}constructor(n){n&&(this.request=n)}split(n,e,i){return this.concat(t.split(n,e,i))}concat(...n){return n.length===0?this:n.reduce(this.combine.bind(this),this)}combine(n,e){let i=new t((r,o)=>n.request(r,s=>e.request(s,o)));return Object.assign(i,{left:n,right:e})}request(n,e){throw Qt(65)}left;right};var sm=Bn.split;var ga=Bn.execute;function m7(t){return t}var Do=class t{transform;cached;resultCache=new WeakSet;getCacheKey(n){return[n]}static identity(){return new t(m7,{cache:!1})}static split(n,e,i=t.identity()){return Object.assign(new t(r=>(n(r)?e:i).transformDocument(r),{cache:!1}),{left:e,right:i})}constructor(n,e={}){this.transform=n,e.getCacheKey&&(this.getCacheKey=e.getCacheKey),this.cached=e.cache!==!1,this.resetCache()}resetCache(){if(this.cached){let n=new Rn;this.performWork=Io(t.prototype.performWork.bind(this),{makeCacheKey:e=>{let i=this.getCacheKey(e);if(i)return W(Array.isArray(i),20),n.lookupArray(i)},max:mn["documentTransform.cache"],cache:Ur})}}performWork(n){return Qn(n),this.transform(n)}transformDocument(n){if(this.resultCache.has(n))return n;let e=this.performWork(n);return this.resultCache.add(e),e}concat(n){return Object.assign(new t(e=>n.transformDocument(this.transformDocument(e)),{cache:!1}),{left:this,right:n})}left;right};var bu,Qr=Object.assign(t=>{let n=bu.get(t);return n||(n=Xl(t),bu.set(t,n)),n},{reset(){bu=new ua(mn.print||2e3)}});Qr.reset();!1;function et(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}var sO={kind:q.FIELD,name:{kind:q.NAME,value:"__typename"}},ya=Object.assign(function(t){return on(t,{SelectionSet:{enter(n,e,i){if(i&&i.kind===q.OPERATION_DEFINITION)return;let{selections:r}=n;if(!r||r.some(a=>a.kind===q.FIELD&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)))return;let s=i;if(!(s.kind===q.FIELD&&s.directives&&s.directives.some(a=>a.name.value==="export")))return A(_({},n),{selections:[...r,sO]})}}})},{added(t){return t===sO}});function vu(t){return t===7||t===8}function ba(t){return!vu(t)}var oc=class{assumeImmutableResults=!1;lookupFragment(n){return null}batch(n){let e=typeof n.optimistic=="string"?n.optimistic:n.optimistic===!1?null:void 0,i;return this.performTransaction(()=>i=n.update(this),e),i}recordOptimisticTransaction(n,e){this.performTransaction(n,e)}transformDocument(n){return n}transformForLink(n){return n}identify(n){}gc(){return[]}modify(n){return!1}readQuery(n,e=!!n.optimistic){return this.read(A(_({},n),{rootId:n.id||"ROOT_QUERY",optimistic:e}))}fragmentWatches=new Rn(!0);watchFragment(n){let{fragment:e,fragmentName:i,from:r}=n,o=this.getFragmentDoc(e,i),a=(Array.isArray(r)?r:[r]).map(f=>{let y=f==null?f:this.toCacheId(f);if(!1){let b=i||su(e).name.value;y===void 0&&!1&&W.warn(118,b)}return y});if(!Array.isArray(r)){let f=this.watchSingleFragment(a[0],o,n);return r===null?f:pu(f,Symbol.for("apollo.transform.individualResult"),y=>A(_({},y),{data:y.data??{}}))}let l;function c(f){let y=f.reduce((b,v,w)=>(b.data.push(v.data),b.complete&&=v.complete,b.dataState=b.complete?"complete":"partial",v.missing&&(b.missing||={},b.missing[w]=v.missing),b),{data:[],dataState:"complete",complete:!0});return dt(l,y)||(l=y),l}if(a.length===0)return y7;let d=!1,u=a.map(f=>this.watchSingleFragment(f,o,n)),p=i_(u).pipe(ye(c),St({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),Ms({bufferSize:1,refCount:!0}));return Object.assign(p,{getCurrentResult:()=>{if(d&&l)return l;let f=u.map(y=>y.getCurrentResult());return c(f)}})}onAfterBroadcast=n=>n();watchSingleFragment(n,e,i){if(n===null)return g7;let{optimistic:r=!0,variables:o}=i,s=[e,En({id:n,optimistic:r,variables:o})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){let u=function(f){let y=f.result;return(!d||!uu(e,{data:d.data},{data:y},i.variables))&&(d={data:y,dataState:f.complete?"complete":"partial",complete:f.complete},f.missing&&(d.missing=f.missing.missing)),d};var l=u;let c=!1,d,p=new ue(f=>{c=!0;let y=this.watch({variables:o,returnPartialData:!0,id:n,query:e,optimistic:r,immediate:!0,callback:b=>{p.dirty=!0,this.onAfterBroadcast(()=>{f.next(u(b)),p.dirty=!1})}});return()=>{c=!1,y(),this.fragmentWatches.removeArray(s)}}).pipe(Pc(),Cr({connector:()=>new to(1),resetOnRefCountZero:()=>Bg(0)}));a.observable=Object.assign(p,{dirty:!1,getCurrentResult:()=>c&&d?d:u(this.diff({id:n,query:e,returnPartialData:!0,optimistic:r,variables:o}))})}return a.observable}getFragmentDoc=Io(r_,{max:mn["cache.fragmentQueryDocuments"]||1e3,cache:Ur,makeCacheKey:b_(this)});readFragment(n,e=!!n.optimistic){let i=n.from!==void 0?this.toCacheId(n.from):n.id;return this.read(A(_({},n),{query:this.getFragmentDoc(n.fragment,n.fragmentName),rootId:i,optimistic:e}))}writeQuery(r){var o=r,{id:n,data:e}=o,i=Et(o,["id","data"]);return this.write(Object.assign(i,{dataId:n||"ROOT_QUERY",result:e}))}writeFragment(o){var s=o,{data:n,fragment:e,fragmentName:i}=s,r=Et(s,["data","fragment","fragmentName"]);let a=r.from!==void 0?this.toCacheId(r.from):r.id;return this.write(Object.assign(r,{query:this.getFragmentDoc(e,i),dataId:a,result:n}))}updateQuery(n,e){return this.batch({update(i){let r=i.readQuery(n),o=e(r);return o==null?r:(i.writeQuery(A(_({},n),{data:o})),o)}})}updateFragment(n,e){return this.batch({update(i){let r=i.readFragment(n),o=e(r);return o==null?r:(i.writeFragment(A(_({},n),{data:o})),o)}})}toCacheId(n){return typeof n=="string"?n:this.identify(n)}};!1;var aO=Object.freeze({data:null,dataState:"complete",complete:!0}),g7=Object.assign(new ue(t=>{t.next(aO)}),{dirty:!1,getCurrentResult:()=>aO}),lO=Object.freeze({data:[],dataState:"complete",complete:!0}),y7=Object.assign(new ue(t=>{t.next(lO)}),{getCurrentResult:()=>lO});var _u=class t extends Error{message;path;query;variables;constructor(n,e,i,r){if(super(n),this.message=n,this.path=e,this.query=i,this.variables=r,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=t.prototype}missing};var{hasOwnProperty:Kt}=Object.prototype;function lm({__typename:t,id:n,_id:e},i){if(typeof t=="string"&&(i&&(i.keyObject=n!=null?{id:n}:e!=null?{_id:e}:void 0),n==null&&e!=null&&(n=e),n!=null))return`${t}:${typeof n=="number"||typeof n=="string"?n:JSON.stringify(n)}`}var b7={dataIdFromObject:lm,resultCaching:!0};function cO(t){return Fi(b7,t)}function dO(t,n){return et(n)?t.get(n.__ref,"__typename"):n&&n.__typename}var w_=/^[_a-z][_0-9a-z]*/i;function ur(t){let n=t.match(w_);return n?n[0]:t}function am(t,n,e){return Ct(n)?Tt(n)?n.every(i=>am(t,i,e)):t.selections.every(i=>{if(Gr(i)&&Eo(i,e)){let r=fi(i);return Kt.call(n,r)&&(!i.selectionSet||am(i.selectionSet,n[r],e))}return!0}):!1}function ps(t){return Ct(t)&&!et(t)&&!Tt(t)}function uO(){return new ni}function cm(t,n){let e=cr(dr(t));return{fragmentMap:e,lookupFragment(i){let r=e[i];return!r&&n&&(r=n.lookup(i)),r||null}}}var dm={},C_=()=>dm,pO={},va=class{policies;group;data={};constructor(n,e){this.policies=n,this.group=e}toObject(){return _({},this.data)}has(n){return this.lookup(n,!0)!==void 0}get(n,e){if(this.group.depend(n,e),Kt.call(this.data,n)){let i=this.data[n];if(i&&Kt.call(i,e))return i[e]}if(e==="__typename"&&Kt.call(this.policies.rootTypenamesById,n))return this.policies.rootTypenamesById[n];if(this instanceof Kr)return this.parent.get(n,e)}lookup(n,e){if(e&&this.group.depend(n,"__exists"),Kt.call(this.data,n))return this.data[n];if(this instanceof Kr)return this.parent.lookup(n,e);if(this.policies.rootTypenamesById[n])return{}}merge(n,e){let i;et(n)&&(n=n.__ref),et(e)&&(e=e.__ref);let r=typeof n=="string"?this.lookup(i=n):n,o=typeof e=="string"?this.lookup(i=e):e;if(!o)return;W(typeof i=="string",104);let s=new ni({reconciler:v7}).merge(r,o);if(this.data[i]=s,s!==r&&(delete this.refs[i],this.group.caching)){let a={};r||(a.__exists=1),Object.keys(o).forEach(l=>{if(!r||r[l]!==s[l]){a[l]=1;let c=ur(l);c!==l&&!this.policies.hasKeyArgs(s.__typename,c)&&(a[c]=1),s[l]===void 0&&!(this instanceof Kr)&&delete s[l]}}),a.__typename&&!(r&&r.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete a.__typename,Object.keys(a).forEach(l=>this.group.dirty(i,l))}}modify(n,e,i){let r=this.lookup(n);if(r){let o={},s=!1,a=!0,l={DELETE:dm,INVALIDATE:pO,isReference:et,toReference:this.toReference,canRead:this.canRead,readField:(c,d)=>this.policies.readField(typeof c=="string"?{fieldName:c,from:d||qr(n)}:c,{store:this})};if(Object.keys(r).forEach(c=>{let d=ur(c),u=r[c];if(u===void 0)return;let p=typeof e=="function"?e:e[c]||(i?void 0:e[d]);if(p){let f=p===C_?dm:p(cs(u),A(_({},l),{fieldName:d,storeFieldName:c,storage:this.getStorage(n,c)}));if(f===pO)this.group.dirty(n,c);else if(f===dm&&(f=void 0),f!==u&&(o[c]=f,s=!0,u=f,!1)){let y=b=>{if(this.lookup(b.__ref)===void 0)return!1,!0};if(et(f))y(f);else if(Array.isArray(f)){let b=!1,v;for(let w of f){if(et(w)){if(b=!0,y(w))break}else if(typeof w=="object"&&w){let[D]=this.policies.identify(w);D&&(v=w)}if(b&&v!==void 0){!1;break}}}}}u!==void 0&&(a=!1)}),s)return this.merge(n,o),a&&(this instanceof Kr?this.data[n]=void 0:delete this.data[n],this.group.dirty(n,"__exists")),!0}return!1}delete(n,e,i){let r=this.lookup(n);if(r){let o=this.getFieldValue(r,"__typename"),s=e&&i?this.policies.getStoreFieldName({typename:o,fieldName:e,args:i}):e;return this.modify(n,s?{[s]:C_}:C_,!!i)}return!1}evict(n,e){let i=!1;return n.id&&(Kt.call(this.data,n.id)&&(i=this.delete(n.id,n.fieldName,n.args)),this instanceof Kr&&this!==e&&(i=this.parent.evict(n,e)||i),(n.fieldName||i)&&this.group.dirty(n.id,n.fieldName||"__exists")),i}clear(){this.replace(null)}extract(){let n=this.toObject(),e=[];return this.getRootIdSet().forEach(i=>{Kt.call(this.policies.rootTypenamesById,i)||e.push(i)}),e.length&&(n.__META={extraRootIds:e.sort()}),n}replace(n){if(Object.keys(this.data).forEach(i=>{n&&Kt.call(n,i)||this.delete(i)}),n){let e=n,{__META:i}=e,r=Et(e,["__META"]);Object.keys(r).forEach(o=>{this.merge(o,r[o])}),i&&i.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(n){return this.rootIds[n]=(this.rootIds[n]||0)+1}release(n){if(this.rootIds[n]>0){let e=--this.rootIds[n];return e||delete this.rootIds[n],e}return 0}getRootIdSet(n=new Set){return Object.keys(this.rootIds).forEach(n.add,n),this instanceof Kr?this.parent.getRootIdSet(n):Object.keys(this.policies.rootTypenamesById).forEach(n.add,n),n}gc(){let n=this.getRootIdSet(),e=this.toObject();n.forEach(r=>{Kt.call(e,r)&&(Object.keys(this.findChildRefIds(r)).forEach(n.add,n),delete e[r])});let i=Object.keys(e);if(i.length){let r=this;for(;r instanceof Kr;)r=r.parent;i.forEach(o=>r.delete(o))}return i}refs={};findChildRefIds(n){if(!Kt.call(this.refs,n)){let e=this.refs[n]={},i=this.data[n];if(!i)return e;let r=new Set([i]);r.forEach(o=>{et(o)&&(e[o.__ref]=!0),Ct(o)&&Object.keys(o).forEach(s=>{let a=o[s];Ct(a)&&r.add(a)})})}return this.refs[n]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(n,e)=>cs(et(n)?this.get(n.__ref,e):n&&n[e]);canRead=n=>et(n)?this.has(n.__ref):typeof n=="object";toReference=(n,e)=>{if(typeof n=="string")return qr(n);if(et(n))return n;let[i]=this.policies.identify(n);if(i){let r=qr(i);return e&&this.merge(i,n),r}};get supportsResultCaching(){return this.group.caching}},um=class{caching;parent;d=null;keyMaker;constructor(n,e=null){this.caching=n,this.parent=e,this.resetCaching()}resetCaching(){this.d=this.caching?gu():null,this.keyMaker=new Rn}depend(n,e){if(this.d){this.d(x_(n,e));let i=ur(e);i!==e&&this.d(x_(n,i)),this.parent&&this.parent.depend(n,e)}}dirty(n,e){this.d&&this.d.dirty(x_(n,e),e==="__exists"?"forget":"setDirty")}};function x_(t,n){return n+"#"+t}function S_(t,n){_a(t)&&t.group.depend(n,"__exists")}var T_=class extends va{constructor({policies:n,resultCaching:e=!0,seed:i}){super(n,new um(e)),i&&this.replace(i)}stump=new E_(this);addLayer(n,e){return this.stump.addLayer(n,e)}removeLayer(){return this}storageTrie=new Rn;getStorage(){return this.storageTrie.lookupArray(arguments)}};va.Root=T_;var Kr=class t extends va{id;parent;replay;group;constructor(n,e,i,r){super(e.policies,r),this.id=n,this.parent=e,this.replay=i,this.group=r,i(this)}addLayer(n,e){return new t(n,this,e,this.group)}removeLayer(n){let e=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(i=>{let r=this.data[i],o=e.lookup(i);o?r?r!==o&&Object.keys(r).forEach(s=>{dt(r[s],o[s])||this.group.dirty(i,s)}):(this.group.dirty(i,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(i,s)})):this.delete(i)}),e):e===this.parent?this:e.addLayer(this.id,this.replay)}toObject(){return _(_({},this.parent.toObject()),this.data)}findChildRefIds(n){let e=this.parent.findChildRefIds(n);return Kt.call(this.data,n)?_(_({},e),super.findChildRefIds(n)):e}getStorage(...n){let e=this.parent;for(;e.parent;)e=e.parent;return e.getStorage(...n)}},E_=class extends Kr{constructor(n){super("EntityStore.Stump",n,()=>{},new um(n.group.caching,n.group))}removeLayer(){return this}merge(n,e){return this.parent.merge(n,e)}};function v7(t,n,e){let i=t[e],r=n[e];return dt(i,r)?i:r}function _a(t){return!!(t&&t.supportsResultCaching)}var sc=new So;function fO(t){let n=t.directives?.find(({name:i})=>i.value==="unmask");if(!n)return"mask";let e=n.arguments?.find(({name:i})=>i.value==="mode");return!1,e&&"value"in e.value&&e.value.value==="migrate"?"migrate":"unmask"}function pm(t,n,e){return sc.withValue(!0,()=>{let i=wu(t,n,e,!1);return Object.isFrozen(t)&&cs(i),i})}function _7(t,n){if(n.has(t))return n.get(t);let e=Array.isArray(t)?[]:{};return n.set(t,e),e}function wu(t,n,e,i,r){let{knownChanged:o}=e,s=_7(t,e.mutableTargets);if(Array.isArray(t)){for(let[a,l]of Array.from(t.entries())){if(l===null){s[a]=null;continue}let c=wu(l,n,e,i,void 0);o.has(c)&&o.add(s),s[a]=c}return o.has(s)?s:t}for(let a of n.selections){let l;if(i&&o.add(s),a.kind===q.FIELD){let c=fi(a),d=a.selectionSet;if(l=s[c]||t[c],l===void 0)continue;if(d&&l!==null){let u=wu(t[c],d,e,i,void 0);o.has(u)&&(l=u)}s[c]=l,!1}if(a.kind===q.INLINE_FRAGMENT&&(!a.typeCondition||e.cache.fragmentMatches(a,t.__typename))&&(l=wu(t,a.selectionSet,e,i,r)),a.kind===q.FRAGMENT_SPREAD){let c=a.name.value,d=e.fragmentMap[c]||(e.fragmentMap[c]=e.cache.lookupFragment(c));W(d,39,c);let u=fO(a);u!=="mask"&&(l=wu(t,d.selectionSet,e,u==="migrate",r))}o.has(l)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}function w7(t,n,e,i,r){let o=()=>(sc.getValue()||(!1,o=()=>n),n);return{get(){return o()},set(s){o=()=>s},enumerable:!0,configurable:!0}}function I_(t,n,e,i){let r=n.definitions.filter(s=>s.kind===q.FRAGMENT_DEFINITION);typeof i>"u"&&(W(r.length===1,41,r.length),i=r[0].name.value);let o=r.find(s=>s.name.value===i);return W(!!o,42,i),t==null||dt(t,{})?t:pm(t,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:cr(dr(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function D_(t,n,e){let i=Pn(n);return W(i,43),t==null?t:pm(t,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:cr(dr(n)),cache:e,mutableTargets:new WeakMap,knownChanged:new WeakSet})}var hO={};function k_(t){let n=JSON.stringify(t);return hO[n]||(hO[n]={})}function M_(t){let n=k_(t);return n.keyFieldsFn||(n.keyFieldsFn=(e,i)=>{let r=(s,a)=>i.readField(a,s),o=i.keyObject=R_(t,s=>{let a=ac(i.storeObject,s,r);return a===void 0&&e!==i.storeObject&&Kt.call(e,s[0])&&(a=ac(e,s,gO)),W(a!==void 0,107,s.join("."),e),a});return`${i.typename}:${JSON.stringify(o)}`})}function O_(t){let n=k_(t);return n.keyArgsFn||(n.keyArgsFn=(e,{field:i,variables:r,fieldName:o})=>{let s=R_(t,l=>{let c=l[0],d=c.charAt(0);if(d==="@"){if(i&&fa(i.directives)){let u=c.slice(1),p=i.directives.find(y=>y.name.value===u),f=p&&da(p,r);return f&&ac(f,l.slice(1))}return}if(d==="$"){let u=c.slice(1);if(r&&Kt.call(r,u)){let p=l.slice(0);return p[0]=u,ac(r,p)}return}if(e)return ac(e,l)}),a=JSON.stringify(s);return(e||a!=="{}")&&(o+=":"+a),o})}function R_(t,n){let e=new ni;return mO(t).reduce((i,r)=>{let o=n(r);if(o!==void 0){for(let s=r.length-1;s>=0;--s)o={[r[s]]:o};i=e.merge(i,o)}return i},{})}function mO(t){let n=k_(t);if(!n.paths){let e=n.paths=[],i=[];t.forEach((r,o)=>{Tt(r)?(mO(r).forEach(s=>e.push(i.concat(s))),i.length=0):(i.push(r),Tt(t[o+1])||(e.push(i.slice(0)),i.length=0))})}return n.paths}function gO(t,n){return t[n]}function ac(t,n,e){return e=e||gO,yO(n.reduce(function i(r,o){return Tt(r)?r.map(s=>i(s,o)):r&&e(r,o)},t))}function yO(t){return Ct(t)?Tt(t)?t.map(yO):R_(Object.keys(t).sort(),n=>ac(t,n)):t}var P_=new So,bO=new WeakMap;function Cu(t){let n=bO.get(t);return n||bO.set(t,n={vars:new Set,dep:gu()}),n}function A_(t){Cu(t).vars.forEach(n=>n.forgetCache(t))}function vO(t){Cu(t).vars.forEach(n=>n.attachCache(t))}function N_(t){let n=new Set,e=new Set,i=function(o){if(arguments.length>0){if(t!==o){t=o,n.forEach(a=>{Cu(a).dep.dirty(i),C7(a)});let s=Array.from(e);e.clear(),s.forEach(a=>a(t))}}else{let s=P_.getValue();s&&(r(s),Cu(s).dep(i))}return t};i.onNextChange=o=>(e.add(o),()=>{e.delete(o)});let r=i.attachCache=o=>(n.add(o),Cu(o).vars.add(i),i);return i.forgetCache=o=>n.delete(o),i}function C7(t){t.broadcastWatches&&t.broadcastWatches()}function F_(t){return t.args!==void 0?t.args:t.field?da(t.field,t.variables):null}var x7=()=>{},_O=(t,n)=>n.fieldName,wO=(t,n,{mergeObjects:e})=>e(t,n),CO=(t,n)=>n,xO=(t,n,{streamFieldInfo:e,existingData:i})=>{if(!t&&!i)return n;let r=[],o=t??i,s=e?.isLastChunk?n.length:Math.max(o.length,n.length);for(let a=0;a{let u=hm(d,o);return i.readField(u,{store:i.cache.data,variables:u.variables})})}),a,l=r&&this.getTypePolicy(r),c=l&&l.keyFn||this.config.dataIdFromObject;return sc.withValue(!0,()=>{for(;c;){let d=c(_(_({},n),o),s);if(Tt(d))c=M_(d);else{a=d;break}}}),a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]}addTypePolicies(n){Object.keys(n).forEach(e=>{let a=n[e],{queryType:i,mutationType:r,subscriptionType:o}=a,s=Et(a,["queryType","mutationType","subscriptionType"]);i&&this.setRootTypename("Query",e),r&&this.setRootTypename("Mutation",e),o&&this.setRootTypename("Subscription",e),Kt.call(this.toBeAdded,e)?this.toBeAdded[e].push(s):this.toBeAdded[e]=[s]})}updateTypePolicy(n,e,i){let r=this.getTypePolicy(n),{keyFields:o,fields:s}=e;function a(l,c){l.merge=typeof c=="function"?c:c===!0?wO:c===!1?CO:l.merge}a(r,e.merge),r.keyFn=o===!1?x7:Tt(o)?M_(o):typeof o=="function"?o:r.keyFn,s&&Object.keys(s).forEach(l=>{let c=i[l];(!c||c?.typename!==n)&&(c=i[l]={typename:n});let d=s[l];if(typeof d=="function")c.read=d;else{let{keyArgs:u,read:p,merge:f}=d;c.keyFn=u===!1?_O:Tt(u)?O_(u):typeof u=="function"?u:c.keyFn,typeof p=="function"&&(c.read=p),a(c,f)}c.read&&c.merge&&(c.keyFn=c.keyFn||_O)})}setRootTypename(n,e=n){let i="ROOT_"+n.toUpperCase(),r=this.rootTypenamesById[i];e!==r&&(W(!r||r===n,108,n),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[e]=i,this.rootTypenamesById[i]=e)}addPossibleTypes(n){this.usingPossibleTypes=!0,Object.keys(n).forEach(e=>{this.getSupertypeSet(e,!0),n[e].forEach(i=>{this.getSupertypeSet(i,!0).add(e);let r=i.match(w_);(!r||r[0]!==i)&&this.fuzzySubtypes.set(i,new RegExp(i))})})}getTypePolicy(n){if(!Kt.call(this.typePolicies,n)){let i=this.typePolicies[n]={};i.fields={};let r=this.supertypeMap.get(n);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(n,!0),this.fuzzySubtypes.forEach((o,s)=>{if(o.test(n)){let a=this.supertypeMap.get(s);a&&a.forEach(l=>r.add(l))}})),r&&r.size&&r.forEach(o=>{let l=this.getTypePolicy(o),{fields:s}=l,a=Et(l,["fields"]);Object.assign(i,a),Object.assign(i.fields,s)})}let e=this.toBeAdded[n];return e&&e.length&&e.splice(0).forEach(i=>{this.updateTypePolicy(n,i,this.typePolicies[n].fields)}),this.typePolicies[n]}getFieldPolicy(n,e){if(n)return this.getTypePolicy(n).fields[e]}getSupertypeSet(n,e){let i=this.supertypeMap.get(n);return!i&&e&&this.supertypeMap.set(n,i=new Set),i}fragmentMatches(n,e,i,r){if(!n.typeCondition)return!0;if(!e)return!1;let o=n.typeCondition.name.value;if(e===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){let s=this.getSupertypeSet(e,!0),a=[s],l=u=>{let p=this.getSupertypeSet(u,!1);p&&p.size&&a.indexOf(p)<0&&a.push(p)},c=!!(i&&this.fuzzySubtypes.size),d=!1;for(let u=0;u{let b=e.match(f);b&&b[0]===e&&l(y)}))}}return!1}hasKeyArgs(n,e){let i=this.getFieldPolicy(n,e);return!!(i&&i.keyFn)}getStoreFieldName(n){let{typename:e,fieldName:i}=n,r=this.getFieldPolicy(e,i),o,s=r&&r.keyFn;if(s&&e){let a={typename:e,fieldName:i,field:n.field||null,variables:n.variables},l=F_(n);for(;s;){let c=s(l,a);if(Tt(c))s=O_(c);else{o=c||i;break}}}return o===void 0&&(o=n.field?d_(n.field,n.variables):du(i,F_(n))),o===!1?i:i===ur(o)?o:i+":"+o}readField(n,e){let i=n.from;if(!i||!(n.field||n.fieldName))return;if(n.typename===void 0){let d=e.store.getFieldValue(i,"__typename");d&&(n.typename=d)}let o=this.getStoreFieldName(n),s=ur(o),a=e.store.getFieldValue(i,o),l=this.getFieldPolicy(n.typename,s),c=l&&l.read;if(c){let d=TO(this,i,n,e,e.store.getStorage(et(i)?i.__ref:i,o));return P_.withValue(this.cache,c,[a,d])}return a}getReadFunction(n,e){let i=this.getFieldPolicy(n,e);return i&&i.read}getMergeFunction(n,e,i){let r=this.getFieldPolicy(n,e),o=r&&r.merge;return!o&&i&&(r=this.getTypePolicy(i),o=r&&r.merge),o}runMergeFunction(n,e,{field:i,typename:r,merge:o,path:s},a,l){let c=n;if(o===wO)return EO(a.store)(n,e);if(o===CO)return e;a.overwrite&&(n=void 0);let d=a.extensions?.[hi]?.deref()?.peekArray(s);if(d){let{current:p,previous:f}=d;if(f&&dt(f.incoming,e)&&dt(f.streamFieldInfo,p))return f.result}let u=o(n,e,T7(this,void 0,{typename:r,fieldName:i.name.value,field:i,variables:a.variables,path:s},a,l||{},c));return d&&(d.previous={incoming:e,streamFieldInfo:d.current,result:u}),u}};function TO(t,n,e,i,r){let o=t.getStoreFieldName(e),s=ur(o),a=e.variables||i.variables,{toReference:l,canRead:c}=i.store;return{args:F_(e),field:e.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:et,toReference:l,storage:r,cache:t.cache,canRead:c,readField(...d){return t.readField(hm(d,n,a),i)},mergeObjects:EO(i.store)}}function T7(t,n,e,i,r,o){var l;let s=A(_({},TO(t,n,e,i,r)),{extensions:i.extensions,existingData:o}),a=i.extensions;if(a&&hi in a){let c=a,{[l=hi]:d}=c,u=Et(c,[Uu(l)]),p=d?.deref()?.peekArray(e.path);p&&(s.streamFieldInfo=p.current),s.extensions=Object.keys(u).length===0?void 0:u}return s}function hm(t,n,e){let{0:i,1:r,length:o}=t,s;return typeof i=="string"?s={fieldName:i,from:o>1?r:n}:(s=_({},i),Kt.call(s,"from")||(s.from=n)),!1,s.variables===void 0&&(s.variables=e),s}function EO(t){return function(e,i){if(Tt(e)||Tt(i))throw Qt(111);if(Ct(e)&&Ct(i)){let r=t.getFieldValue(e,"__typename"),o=t.getFieldValue(i,"__typename");if(r&&o&&r!==o)return i;if(et(e)&&ps(i))return t.merge(e.__ref,i),e;if(ps(e)&&et(i))return t.merge(e,i.__ref),i;if(ps(e)&&ps(i))return _(_({},e),i)}return i}}function SO(t){return[t.selectionSet,t.objectOrReference,t.context]}var mm=class{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(n){this.config=n,this.executeSelectionSet=Io(e=>{let i=SO(e),r=this.executeSelectionSet.peek(...i);return r||(S_(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:mn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:SO,makeCacheKey(e,i,r){if(_a(r.store))return r.store.makeCacheKey(e,et(i)?i.__ref:i,r.varString)}}),this.executeSubSelectedArray=Io(e=>(S_(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:mn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:i,context:r}){if(_a(r.store))return r.store.makeCacheKey(e,i,r.varString)}})}diffQueryAgainstStore({store:n,query:e,rootId:i="ROOT_QUERY",variables:r,returnPartialData:o=!0}){let s=this.config.cache.policies;r=_(_({},pa(au(e))),r);let a=qr(i),l=this.executeSelectionSet({selectionSet:ls(e).selectionSet,objectOrReference:a,enclosingRef:a,context:_({store:n,query:e,policies:s,variables:r,varString:En(r)},cm(e,this.config.fragments))}),c;l.missing&&(c=new _u(E7(l.missing),l.missing,e,r));let d=!c,{result:u}=l;return{result:d?u:o?Object.keys(u).length===0?null:u:null,complete:d,missing:c}}isFresh(n,e,i,r){if(_a(r.store)&&this.knownResults.get(n)===i){let o=this.executeSelectionSet.peek(i,e,r);if(o&&n===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:n,objectOrReference:e,enclosingRef:i,context:r}){if(et(e)&&!r.policies.rootTypenamesById[e.__ref]&&!r.store.has(e.__ref))return{result:{},missing:`Dangling reference to missing ${e.__ref} object`};let{variables:o,policies:s,store:a}=r,l=a.getFieldValue(e,"__typename"),c=[],d,u=new ni;typeof l=="string"&&!s.rootIdsByTypename[l]&&c.push({__typename:l});function p(w,D){return w.missing&&(d=u.merge(d,{[D]:w.missing})),w.result}let f=new Set(n.selections);f.forEach(w=>{if(Eo(w,o))if(Gr(w)){let D=s.readField({fieldName:w.name.value,field:w,variables:r.variables,from:e},r),P=fi(w);D===void 0?ya.added(w)||(d=u.merge(d,{[P]:`Can't find field '${w.name.value}' on ${et(e)?e.__ref+" object":"object "+JSON.stringify(e,null,2)}`})):Tt(D)?D.length>0&&(D=p(this.executeSubSelectedArray({field:w,array:D,enclosingRef:i,context:r}),P)):w.selectionSet&&D!=null&&(D=p(this.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:D,enclosingRef:et(D)?D:i,context:r}),P)),D!==void 0&&c.push({[P]:D})}else{let D=as(w,r.lookupFragment);if(!D&&w.kind===q.FRAGMENT_SPREAD)throw Qt(112,w.name.value);D&&s.fragmentMatches(D,l)&&D.selectionSet.selections.forEach(f.add,f)}});let b={result:a_(c),missing:d},v=cs(b);return v.result&&this.knownResults.set(v.result,n),v}execSubSelectedArrayImpl({field:n,array:e,enclosingRef:i,context:r}){let o,s=new ni;function a(l,c){return l.missing&&(o=s.merge(o,{[c]:l.missing})),l.result}return n.selectionSet&&(e=e.filter(l=>l===void 0||r.store.canRead(l))),e=e.map((l,c)=>l===null?null:Tt(l)?a(this.executeSubSelectedArray({field:n,array:l,enclosingRef:i,context:r}),c):n.selectionSet?a(this.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:et(l)?l:i,context:r}),c):(!1,l)),{result:e,missing:o}}};function E7(t){try{JSON.stringify(t,(n,e)=>{if(typeof e=="string")throw e;return e})}catch(n){return n}}function S7(t,n,e){if(!n.selectionSet){let i=new Set([e]);i.forEach(r=>{Ct(r)&&(W(!et(r),113,dO(t,r),n.name.value),Object.values(r).forEach(i.add,i))})}}function L_(t,n,e){let i=`${n}${e}`,r=t.flavors.get(i);return r||t.flavors.set(i,r=t.clientOnly===n&&t.deferred===e?t:A(_({},t),{clientOnly:n,deferred:e})),r}var gm=class{cache;reader;fragments;constructor(n,e,i){this.cache=n,this.reader=e,this.fragments=i}writeToStore(n,{query:e,result:i,dataId:r,variables:o,overwrite:s,extensions:a}){let l=Pn(e),c=uO();o=_(_({},pa(l)),o);let d=A(_({store:n,written:{},merge(p,f){return c.merge(p,f)},variables:o,varString:En(o)},cm(e,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a}),u=this.processSelectionSet({result:i||{},dataId:r,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!et(u))throw Qt(114,i);return d.incomingById.forEach(({storeObject:p,mergeTree:f,fieldNodeSet:y},b)=>{let v=qr(b);if(f&&f.map.size){let w=this.applyMerges(f,v,p,d);if(et(w))return;p=w}if(!1){let w={};y.forEach(B=>{B.selectionSet&&(w[B.name.value]=!0)});let D=B=>w[ur(B)]===!0,P=B=>{let Y=f&&f.map.get(B);return!!(Y&&Y.info&&Y.info.merge)};Object.keys(p).forEach(B=>{D(B)&&!P(B)&&I7(v,p,B,d.store)})}n.merge(b,p)}),n.retain(u.__ref),u}processSelectionSet({dataId:n,result:e,selectionSet:i,context:r,mergeTree:o,path:s}){let{policies:a}=this.cache,l={},c=n&&a.rootTypenamesById[n]||V_(e,i,r.fragmentMap)||n&&r.store.get(n,"__typename");typeof c=="string"&&(l.__typename=c);let d=(...p)=>{let f=hm(p,l,r.variables);if(et(f.from)){let y=r.incomingById.get(f.from.__ref);if(y){let b=a.readField(A(_({},f),{from:y.storeObject}),r);if(b!==void 0)return b}}return a.readField(f,r)},u=new Set;this.flattenFields(i,e,r,c).forEach((p,f)=>{let y=fi(f),b=e[y],v=[...s,f.name.value];if(u.add(f),b!==void 0){let w=a.getStoreFieldName({typename:c,fieldName:f.name.value,field:f,variables:p.variables}),D=IO(o,w),P=this.processFieldValue(b,f,f.selectionSet?L_(p,!1,!1):p,D,v),B;f.selectionSet&&(et(P)||ps(P))&&(B=d("__typename",P));let Y=a.getMergeFunction(c,f.name.value,B);Y?D.info={field:f,typename:c,merge:Y,path:v}:Wr(["stream"],f)&&Array.isArray(P)&&p.extensions?.[hi]?D.info={field:f,typename:c,merge:xO,path:v}:DO(o,w),l=p.merge(l,{[w]:P})}else!1});try{let[p,f]=a.identify(e,{typename:c,selectionSet:i,fragmentMap:r.fragmentMap,storeObject:l,readField:d});n=n||p,f&&(l=r.merge(l,f))}catch(p){if(!n)throw p}if(typeof n=="string"){let p=qr(n),f=r.written[n]||(r.written[n]=[]);if(f.indexOf(i)>=0||(f.push(i),this.reader&&this.reader.isFresh(e,p,i,r)))return p;let y=r.incomingById.get(n);return y?(y.storeObject=r.merge(y.storeObject,l),y.mergeTree=B_(y.mergeTree,o),u.forEach(b=>y.fieldNodeSet.add(b))):r.incomingById.set(n,{storeObject:l,mergeTree:ym(o)?void 0:o,fieldNodeSet:u}),p}return l}processFieldValue(n,e,i,r,o){return!e.selectionSet||n===null?n:Tt(n)?n.map((s,a)=>{let l=this.processFieldValue(s,e,i,IO(r,a),[...o,a]);return DO(r,a),l}):this.processSelectionSet({result:n,selectionSet:e.selectionSet,context:i,mergeTree:r,path:o})}flattenFields(n,e,i,r=V_(e,n,i.fragmentMap)){let o=new Map,{policies:s}=this.cache,a=new Rn(!1);return(function l(c,d){let u=a.lookup(c,d.clientOnly,d.deferred);u.visited||(u.visited=!0,c.selections.forEach(p=>{if(!Eo(p,i.variables))return;let{clientOnly:f,deferred:y}=d;if(!(f&&y)&&fa(p.directives)&&p.directives.forEach(b=>{let v=b.name.value;if(v==="client"&&(f=!0),v==="defer"){let w=da(b,i.variables);(!w||w.if!==!1)&&(y=!0)}}),Gr(p)){let b=o.get(p);b&&(f=f&&b.clientOnly,y=y&&b.deferred),o.set(p,L_(i,f,y))}else{let b=as(p,i.lookupFragment);if(!b&&p.kind===q.FRAGMENT_SPREAD)throw Qt(116,p.name.value);b&&s.fragmentMatches(b,r,e,i.variables)&&l(b.selectionSet,L_(i,f,y))}}))})(n,i),o}applyMerges(n,e,i,r,o){if(n.map.size&&!et(i)){let s=!Tt(i)&&(et(e)||ps(e))?e:void 0,a=i;s&&!o&&(o=[et(s)?s.__ref:s]);let l,c=(d,u)=>Tt(d)?typeof u=="number"?d[u]:void 0:r.store.getFieldValue(d,String(u));n.map.forEach((d,u)=>{let p=c(s,u),f=c(a,u);if(f===void 0)return;o&&o.push(u);let y=this.applyMerges(d,p,f,r,o);y!==f&&(l=l||new Map,l.set(u,y)),o&&W(o.pop()===u)}),l&&(i=Tt(a)?a.slice(0):_({},a),l.forEach((d,u)=>{i[u]=d}))}return n.info?this.cache.policies.runMergeFunction(e,i,n.info,r,o&&r.store.getStorage(...o)):i}},MO=[];function IO({map:t},n){return t.has(n)||t.set(n,MO.pop()||{map:new Map}),t.get(n)}function B_(t,n){if(t===n||!n||ym(n))return t;if(!t||ym(t))return n;let e=t.info&&n.info?_(_({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,r=i?new Map:t.map.size?t.map:n.map,o={info:e,map:r};if(i){let s=new Set(n.map.keys());t.map.forEach((a,l)=>{o.map.set(l,B_(a,n.map.get(l))),s.delete(l)}),s.forEach(a=>{o.map.set(a,B_(n.map.get(a),t.map.get(a)))})}return o}function ym(t){return!t||!(t.info||t.map.size)}function DO({map:t},n){let e=t.get(n);e&&ym(e)&&(MO.push(e),t.delete(n))}var kO=new Set;function I7(t,n,e,i){let r=u=>{let p=i.getFieldValue(u,e);return typeof p=="object"&&p},o=r(t);if(!o)return;let s=r(n);if(!s||et(o)||dt(o,s)||Object.keys(o).every(u=>i.getFieldValue(s,u)!==void 0))return;let a=i.getFieldValue(t,"__typename")||i.getFieldValue(n,"__typename"),l=ur(e),c=`${a}.${l}`;if(kO.has(c))return;kO.add(c);let d=[];!Tt(o)&&!Tt(s)&&[o,s].forEach(u=>{let p=i.getFieldValue(u,"__typename");typeof p=="string"&&!d.includes(p)&&d.push(p)}),!1}function V_(t,n,e){let i;for(let r of n.selections)if(Gr(r)){if(r.name.value==="__typename")return t[fi(r)]}else i?i.push(r):i=[r];if(typeof t.__typename=="string")return t.__typename;if(i)for(let r of i){let o=V_(t,as(r,e).selectionSet,e);if(typeof o=="string")return o}}var wa=class extends oc{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new Do(ya);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=N_;constructor(n={}){super(),this.config=cO(n),this.policies=new fm({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let n=this.data=new va.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){let{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n?.resetCaches(),this.storeWriter=new gm(this,this.storeReader=new mm({cache:this,fragments:n}),n),this.maybeBroadcastWatch=Io((e,i)=>this.broadcastWatch(e,i),{max:mn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let i=e.optimistic?this.optimisticData:this.data;if(_a(i)){let{optimistic:r,id:o,variables:s}=e;return i.makeCacheKey(e.query,e.callback,En({optimistic:r,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){let{returnPartialData:e=!1}=n;return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:e})).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(Kt.call(n,"id")&&!n.id)return!1;let e=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,e.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore(A(_({},n),{store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config}))}watch(n){return this.watches.size||vO(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&A_(this),this.maybeBroadcastWatch.forget(n)}}gc(n){En.reset(),Qr.reset();let e=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),e}retain(n,e){return(e?this.optimisticData:this.data).retain(n)}release(n,e){return(e?this.optimisticData:this.data).release(n)}identify(n){if(et(n))return n.__ref;try{return this.policies.identify(n)[0]}catch(e){!1}}evict(n){if(!n.id){if(Kt.call(n,"id"))return!1;n=A(_({},n),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),En.reset(),n&&n.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),A_(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){let e=this.optimisticData.removeLayer(n);e!==this.optimisticData&&(this.optimisticData=e,this.broadcastWatches())}txCount=0;batch(n){let{update:e,optimistic:i=!0,removeOptimistic:r,onWatchUpdated:o}=n,s,a=c=>{let{data:d,optimisticData:u}=this;++this.txCount,c&&(this.data=this.optimisticData=c);try{return s=e(this)}finally{--this.txCount,this.data=d,this.optimisticData=u}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(A(_({},n),{onWatchUpdated(c){return l.add(c),!1}})),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,a):i===!1?a(this.data):a(),typeof r=="string"&&(this.optimisticData=this.optimisticData.removeLayer(r)),o&&l.size?(this.broadcastWatches(A(_({},n),{onWatchUpdated(c,d){let u=o.call(this,c,d);return u!==!1&&l.delete(c),u}})),l.size&&l.forEach(c=>this.maybeBroadcastWatch.dirty(c))):this.broadcastWatches(n),s}performTransaction(n,e){return this.batch({update:n,optimistic:e||e!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,e){return this.policies.fragmentMatches(n,e)}lookupFragment(n){return this.config.fragments?.lookup(n)||null}resolvesClientField(n,e){return!!this.policies.getReadFunction(n,e)}broadcastWatches(n){if(!this.txCount){let e=this.onAfterBroadcast,i=new Set;this.onAfterBroadcast=r=>{i.add(r)};try{this.watches.forEach(r=>this.maybeBroadcastWatch(r,n)),i.forEach(r=>r())}finally{this.onAfterBroadcast=e}}}addFragmentsToDocument(n){let{fragments:e}=this.config;return e?e.transform(n):n}broadcastWatch(n,e){let{lastDiff:i}=n,r=this.diff(n);e&&(n.optimistic&&typeof e.optimistic=="string"&&(r.fromOptimisticTransaction=!0),e.onWatchUpdated&&e.onWatchUpdated.call(this,n,r,i)===!1)||(!i||!dt(i.result,r.result))&&n.callback(n.lastDiff=r,i)}};!1;function fs(t,n){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===n}function hs(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function OO(t){return t.map(n=>n.message||"Error message not found.").join(`
+`)}var RO=(()=>{class t extends Error{static is(e){return fs(e,"CombinedProtocolErrors")}static formatMessage=OO;errors;constructor(e){super(t.formatMessage(e,{defaultFormatMessage:OO})),this.name="CombinedProtocolErrors",this.errors=e,hs(this),Object.setPrototypeOf(this,t.prototype)}}return t})();function PO(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}var bm=class t extends Error{static is(n){return fs(n,"UnconventionalError")}constructor(n){super("An error of unexpected shape occurred.",{cause:n}),this.name="UnconventionalError",hs(this),Object.setPrototypeOf(this,t.prototype)}};function AO(t){return t.filter(n=>n).map(n=>n.message||"Error message not found.").join(`
+`)}var ko=(()=>{class t extends Error{static is(e){return fs(e,"CombinedGraphQLErrors")}static formatMessage=AO;errors;data;extensions;constructor(e,i=e.errors||[]){super(t.formatMessage(i,{result:e,defaultFormatMessage:AO})),this.errors=i,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",hs(this),Object.setPrototypeOf(this,t.prototype)}}return t})();var D7=new WeakSet;function j_(t){D7.add(t)}var xu=class t extends Error{static is(n){return fs(n,"ServerError")}response;statusCode;bodyText;constructor(n,e){super(n),this.name="ServerError",this.response=e.response,this.statusCode=e.response.status,this.bodyText=e.bodyText,hs(this),Object.setPrototypeOf(this,t.prototype)}};var vm=Symbol();function NO(t){return"extensions"in t?RO.is(t.extensions[vm]):!1}function FO(t){return PO(t)?t:typeof t=="string"?new Error(t,{cause:t}):new bm(t)}var Ae=(function(t){return t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming",t})(Ae||{});var{assign:LO,hasOwnProperty:k7}=Object,lc={loading:!0,networkStatus:Ae.loading,data:void 0,dataState:"empty",partial:!0},z_={loading:!1,networkStatus:Ae.ready,data:void 0,dataState:"empty",partial:!0},cc=class{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:n,options:e,transformedQuery:i=n.transform(e.query)}){this.queryManager=n,this.waitForNetworkResult=e.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:r="cache-first"}={}}=n.defaultOptions,{fetchPolicy:o=r,initialFetchPolicy:s=o==="standby"?r:o}=e;e[f_]&&(W(o==="standby",82),this.variablesUnknown=!0),this.lastQuery=i,this.options=A(_({},e),{initialFetchPolicy:s,fetchPolicy:o,variables:this.getVariablesWithDefaults(e.variables)}),this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let a=Pn(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new an({query:this.query,variables:this.variables,result:lc,meta:{}});let n=this.subject.pipe(St({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),nc(({query:e,variables:i,result:r,meta:o},s)=>{let{shouldEmit:a}=o;if(r===lc&&(s.previous=void 0,s.previousVariables=void 0),this.options.fetchPolicy==="standby"||a===2)return;if(a===1)return d();let{previous:l,previousVariables:c}=s;if(l){let u=this.queryManager.getDocumentInfo(e),p=this.queryManager.dataMasking,f=p?u.nonReactiveQuery:e;if((p||u.hasNonreactiveDirective?uu(f,l,r,i):dt(l,r))&&dt(c,i))return}if(a===3&&(!this.options.notifyOnNetworkStatusChange||dt(l,r)))return;return d();function d(){return s.previous=r,s.previousVariables=i,r}},()=>({})));this.pipe=n.pipe.bind(n),this.subscribe=n.subscribe.bind(n),this.input=new Ge,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:n=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:n})}getInitialResult(n){let e=n||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(e==="network-only"||e==="cache-and-network")&&(e="cache-first");let i=()=>{let r=this.getCacheDiff(),o=this.options.returnPartialData||r.complete?r.result??void 0:void 0;return this.maskResult({data:o,dataState:r.complete?"complete":o===void 0?"empty":"partial",loading:!r.complete,networkStatus:r.complete?Ae.ready:Ae.loading,partial:!r.complete})};switch(e){case"cache-only":return A(_({},i()),{loading:!1,networkStatus:Ae.ready});case"cache-first":return i();case"cache-and-network":return A(_({},i()),{loading:!0,networkStatus:Ae.loading});case"standby":return z_;default:return lc}}resubscribeCache(){let{variables:n,fetchPolicy:e}=this.options,i=this.query,r=e==="standby"||e==="no-cache"||this.waitForNetworkResult,o=!Tu({query:i,variables:n},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((r||o)&&this.unsubscribeFromCache?.(),r||!o)return;let s={query:i,variables:n,optimistic:!0,watcher:this,callback:l=>{let c=this.queryManager.getDocumentInfo(i);if((c.hasClientExports||c.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===l)return;let{result:d}=this.subject.getValue();!l.complete&&(d.error||d===lc||d===z_)||dt(d.data,l.result)||this.scheduleNotify()}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:i,variables:n})}stableLastResult;getCurrentResult(){let{result:n}=this.subject.getValue(),e=n.networkStatus===Ae.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?n:this.getInitialResult();return e===lc&&(e=this.getInitialResult()),dt(this.stableLastResult,e)||(this.stableLastResult=e),this.stableLastResult}refetch(n){let{fetchPolicy:e}=this.options,i={pollInterval:0};if(e==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",!1){let r=au(this.query),o=r.variableDefinitions;(!o||!o.some(s=>s.variable.name.value==="variables"))&&!1&&W.warn(83,n,r.name?.value||r)}return n&&!dt(this.variables,n)&&(i.variables=this.options.variables=this.getVariablesWithDefaults(_(_({},this.variables),n))),this._lastWrite=void 0,this._reobserve(i,{newNetworkStatus:Ae.refetch})}fetchMore({query:n,variables:e,context:i,errorPolicy:r,updateQuery:o}){W(this.options.fetchPolicy!=="cache-only",84,sn(this.query,"(anonymous)"));let s=A(_({},Fi(this.options,{errorPolicy:"none"},{query:n,context:i,errorPolicy:r})),{variables:n?e:_(_({},this.variables),e),fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange});s.query=this.transformDocument(s.query),this.lastQuery=n?this.transformDocument(this.options.query):s.query;let a=!1,l=this.options.fetchPolicy!=="no-cache";l||W(o,85);let{finalize:c,pushNotification:d}=this.pushOperation(Ae.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:u,operator:p}=BO(),{observable:f}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:Ae.fetchMore,exposeExtensions:!0}),y=f.pipe(p,nn(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{a=!1;let v=b.value,w=v[fu];if(vu(b.value.networkStatus)&&c(),l){let D=this.getCacheDiff();this.cache.batch({update:P=>{o?P.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:w},B=>o(B,{fetchMoreResult:v.data,variables:s.variables})):P.writeQuery({query:s.query,variables:s.variables,data:v.data,extensions:w})},onWatchUpdated:(P,B)=>{if(P.watcher===this&&!dt(B.result,D.result)){a=!0;let Y=this.getCurrentResult();ba(v.networkStatus)&&d({kind:"N",source:"network",value:A(_({},Y),{networkStatus:v.networkStatus===Ae.error?Ae.ready:v.networkStatus,loading:!1,data:B.result,dataState:v.dataState==="streaming"?"streaming":"complete"})})}}})}else{let D=this.getCurrentResult(),P=o(D.data,{fetchMoreResult:v.data,variables:s.variables});d({kind:"N",value:A(_({},D),{networkStatus:Ae.ready,loading:!1,data:P,dataState:D.dataState==="streaming"?"streaming":"complete"}),source:"network"})}}});return rm(u.then(b=>ds(this.maskResult(b))).finally(()=>{if(y.unsubscribe(),c(),l&&!a){let b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:A(_({},b),{dataState:"complete",networkStatus:Ae.ready})}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(n){let e=this.queryManager.startGraphQLSubscription({query:n.document,variables:n.variables,context:n.context}).subscribe({next:i=>{let{updateQuery:r,onError:o}=n,{error:s}=i;if(s){o?o(s):W.error(86,s);return}r&&this.updateQuery((a,l)=>r(a,_({subscriptionData:i},l)))}});return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)&&e.unsubscribe()}}applyOptions(n){let e=Fi(this.options,n||{});LO(this.options,e),this.updatePolling()}setVariables(n){return gt(this,null,function*(){return n=this.getVariablesWithDefaults(n),dt(this.variables,n)?ds(this.getCurrentResult()):(this.options.variables=n,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:n},{newNetworkStatus:Ae.setVariables}):ds(this.getCurrentResult()))})}updateQuery(n){let{queryManager:e}=this,{result:i,complete:r}=this.getCacheDiff({optimistic:!1}),o=n(i,{variables:this.variables,complete:!!r,previousData:i});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),e.broadcastQueries())}startPolling(n){this.options.pollInterval=n,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(n,e){if(e.nextFetchPolicy){let{fetchPolicy:i="cache-first",initialFetchPolicy:r=i}=e;i==="standby"||(typeof e.nextFetchPolicy=="function"?e.fetchPolicy=e.nextFetchPolicy.call(e,i,{reason:n,options:e,observable:this,initialFetchPolicy:r}):n==="variables-changed"?e.fetchPolicy=r:e.fetchPolicy=e.nextFetchPolicy)}return e.fetchPolicy}fetch(n,e,i,r){let o=this.options.fetchPolicy;n.context??={};let s=!1,a=()=>{s=!0},l=v=>new ue(w=>{try{return v.subscribe({next(D){s=!0,w.next(D)},error:D=>w.error(D),complete:()=>w.complete()})}finally{s||(f.override=e,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:p,meta:{shouldEmit:3,fetchPolicy:o}}))}}),{observable:c,fromLink:d}=this.queryManager.fetchObservableWithInfo(n,{networkStatus:e,query:i,onCacheHit:a,fetchQueryOperator:l,observableQuery:this}),{query:u,variables:p}=this,f={abort:()=>{b.unsubscribe()},query:u,variables:p};this.activeOperations.add(f);let y=e==Ae.refetch||e==Ae.setVariables;c=c.pipe(r,Cr());let b=c.pipe(St({next:v=>{v.source==="newNetworkStatus"||v.kind==="N"&&v.value.loading?f.override=e:delete f.override},finalize:()=>this.activeOperations.delete(f)})).subscribe({next:v=>{let w={};y&&v.kind==="N"&&"loading"in v.value&&!v.value.loading&&(y=!1,w.shouldEmit=1),this.input.next(A(_({},v),{query:u,variables:p,meta:w}))}});return{fromLink:d,subscription:b,observable:c}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:n,options:{fetchPolicy:e,pollInterval:i}}=this,r=()=>{let{options:l}=this;return!l.pollInterval||!this.hasObservers()||l.fetchPolicy==="cache-only"||l.fetchPolicy==="standby"};if(r()){!1,this.cancelPolling();return}if(n?.interval===i)return;let o=n||(this.pollingInfo={});o.interval=i;let s=()=>{if(r())return this.cancelPolling();this.pollingInfo&&(!ba(this.networkStatus)&&!this.options.skipPollAttempt?.()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:Ae.poll}).then(a,a):a())},a=()=>{let l=this.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(n){return this._reobserve(n)}_reobserve(n,e){this.isTornDown=!1;let{newNetworkStatus:i}=e||{};this.queryManager.obsQueries.add(this);let r=i===Ae.refetch||i===Ae.poll,o=this.variables,s=this.options.fetchPolicy,a=Fi(this.options,n||{});this.variablesUnknown&&=a.fetchPolicy==="standby";let l=r?a:LO(this.options,a),c=this.transformDocument(l.query);this.lastQuery=c,n&&"variables"in n&&(l.variables=this.getVariablesWithDefaults(n.variables)),r||(this.updatePolling(),n&&n.variables&&!dt(n.variables,o)&&l.fetchPolicy!=="standby"&&(l.fetchPolicy===s||typeof l.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",l),i===void 0&&(i=Ae.setVariables)));let d=this.networkStatus;i||(i=Ae.loading,d!==Ae.loading&&n?.variables&&!dt(n.variables,o)&&(i=Ae.setVariables),l.fetchPolicy==="standby"&&(i=Ae.ready)),l.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();let{promise:u,operator:p}=BO(l.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:f,observable:y,fromLink:b}=this.fetch(l,i,c,p);!r&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);let v=Object.assign(rm(u.then(w=>ds(this.maskResult(w))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{let w=y.subscribe({}),D=()=>w.unsubscribe();return u.then(D,D),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(n){return this.queryManager.transform(n)}maskResult(n){let e=this.queryManager.maskOperation({document:this.query,data:n.data,fetchPolicy:this.options.fetchPolicy,cause:this});return e===n.data?n:A(_({},n),{data:e})}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(n=!1){if(!n){let i=this.queryManager.getDocumentInfo(this.query);if(i.hasClientExports||i.hasForcedResolvers)return}let{dirty:e}=this;if(this.resetNotifications(),e&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){let i=this.getCacheDiff();dt(i.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:i.result,dataState:i.complete?"complete":i.result?"partial":"empty",networkStatus:Ae.ready,loading:!1,error:void 0,partial:!i.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(n){let e=!1,{query:i,variables:r}=this,o=()=>{this.activeOperations.delete(s)},s={override:n,abort:()=>{e=!0,o()},query:i,variables:r};return this.activeOperations.add(s),{finalize:o,pushNotification:(a,l)=>{e||this.input.next(A(_({},a),{query:i,variables:r,meta:_({},l)}))}}}calculateNetworkStatus(n){return n===Ae.streaming?n:Array.from(this.activeOperations.values()).reverse().find(i=>Tu(i,this)&&i.override!==void 0)?.override??n}abortActiveOperations(){this.activeOperations.forEach(n=>n.abort())}reset(){let n=this.options.fetchPolicy==="cache-only";this.setResult(n?z_:lc,{shouldEmit:n?1:2}),this.abortActiveOperations()}setResult(n,e){this.input.next({source:"setResult",kind:"N",value:n,query:this.query,variables:this.variables,meta:_({},e)})}operator=nc(n=>{let{query:e,variables:i,meta:r}=n;if(n.source==="setResult")return{query:e,variables:i,result:n.value,meta:r};if(n.kind==="C"||!Tu(n,this))return;let o,s=this.subject.getValue();if(n.source==="cache"){if(o=n.value,o.networkStatus===Ae.ready&&o.partial&&(!this.options.returnPartialData||s.result.networkStatus===Ae.error)&&this.options.fetchPolicy!=="cache-only")return}else if(n.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),o=n.kind==="E"?A(_({},Tu(s,n)?s.result:{data:void 0,dataState:"empty",partial:!0}),{error:n.error,networkStatus:Ae.error,loading:!1}):n.value,n.kind==="E"&&o.dataState==="streaming"&&(o.dataState="complete"),o.error&&(r.shouldEmit=1);else if(n.source==="newNetworkStatus"){let a=Tu(s,n)?s.result:this.getInitialResult(r.fetchPolicy),{resetError:l}=n.value,c=l?void 0:a.error,d=c?Ae.error:Ae.ready;o=A(_({},a),{error:c,networkStatus:d})}return W(o),o.error||delete o.error,o.networkStatus=this.calculateNetworkStatus(o.networkStatus),o.loading=ba(o.networkStatus),o=this.maskResult(o),s.result.data!==void 0&&o.data!==s.result.data&&dt(o.data,s.result.data)&&(o.data=s.result.data),{query:e,variables:i,result:o,meta:r}});reobserveCacheFirst(){let{fetchPolicy:n,nextFetchPolicy:e}=this.options;n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(i,r){return this.nextFetchPolicy=e,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,r):n}}):this.reobserve()}getVariablesWithDefaults(n){return this.queryManager.getVariables(this.query,n)}};function VO(t){!1}function Tu(t,n){return!!(t&&n&&t.query===n.query&&dt(t.variables,n.variables))}function BO(t){let n=t,e,i,r=new Promise((s,a)=>{e=s,i=a}),o=St({next(s){if(s.kind==="E")return i(s.error);s.kind==="N"&&s.source!=="newNetworkStatus"&&!s.value.loading&&(n=s.value)},finalize:()=>{if(n)e(n);else{let s="The operation was aborted.",a="AbortError";i(typeof DOMException<"u"?new DOMException(s,a):Object.assign(new Error(s),{name:a}))}}});return{promise:r,operator:o}}var jO={},dc=new WeakMap;function H_(t,n){let e=t[n];typeof e=="function"&&(t[n]=function(){return dc.set(t,(dc.get(t)+1)%1e15),e.apply(this,arguments)})}var zO=new WeakMap,uc=class{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(n,e){let i=this.cache=n.cache,r=(zO.get(n)||0)+1;zO.set(n,r),this.id=r+"",this.observableQuery=e,this.queryManager=n,dc.has(i)||(dc.set(i,0),H_(i,"evict"),H_(i,"modify"),H_(i,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(n){(this.observableQuery||this)._lastWrite=n}resetLastWrite(){this.lastWrite=void 0}shouldWrite(n,e){let{lastWrite:i}=this;return!(i&&i.dmCount===dc.get(this.cache)&&dt(e,i.variables)&&dt(n.data,i.result.data)&&n.extensions?.[hi]===i.result.extensions?.[hi])}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(n,e,i){let{incrementalHandler:r}=this.queryManager;return r.isIncrementalResult(e)?(this.incremental||=r.startRequest({query:i}),this.incremental.handle(n,e)):e}markQueryResult(n,{document:e,variables:i,errorPolicy:r,cacheWriteBehavior:o}){let s={query:e,variables:i,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=o===0,l=a?void 0:this.cache.diff(s),c=this.maybeHandleIncrementalResult(l?.result,n,e);return a||($_(c,r)?this.cache.batch({onWatchUpdated:(d,u)=>{d.watcher===this.observableQuery&&(d.lastOwnDiff=u)},update:d=>{if(this.shouldWrite(c,i))d.writeQuery({query:e,data:c.data,variables:i,overwrite:o===1,extensions:c.extensions}),this.lastWrite={result:c,variables:i,dmCount:dc.get(this.cache)};else if(l&&l.complete){c=A(_({},c),{data:l.result});return}let u=d.diff(s);u.complete&&(c=A(_({},c),{data:u.result}))}}):this.lastWrite=void 0),c}markMutationResult(n,e,i=this.cache){let r=[],o=e.cacheWriteBehavior===0,s=this.maybeHandleIncrementalResult(o?void 0:i.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}).result,n,e.document);if(e.errorPolicy==="ignore"&&(s=A(_({},s),{errors:[]})),To(s)&&e.errorPolicy==="none")return Promise.resolve(s);let a=()=>A(_({},s),{dataState:this.hasNext?"streaming":"complete"});if(!o&&$_(s,e.errorPolicy)){r.push({result:s.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables,extensions:s.extensions});let{updateQueries:c}=e;c&&this.queryManager.getObservableQueries("all").forEach(d=>{let u=d&&d.queryName;if(!u||!Object.hasOwnProperty.call(c,u))return;let p=c[u],{query:f,variables:y}=d,{result:b,complete:v}=d.getCacheDiff({optimistic:!1});if(v&&b){let w=p(b,{mutationResult:a(),queryName:f&&sn(f)||void 0,queryVariables:y});w&&r.push({result:w,dataId:"ROOT_QUERY",query:f,variables:y})}})}let l=e.refetchQueries;if(typeof l=="function"&&(l=l(a())),r.length>0||(l||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){let c=[];if(this.queryManager.refetchQueries({updateCache:d=>{o||r.forEach(p=>d.write(p));let{update:u}=e;if(u){if(!o){let p=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(s=A(_({},s),{data:p.result}))}this.hasNext||u(d,s,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(p,{fieldName:f,DELETE:y}){return f==="__typename"?p:y}})},include:l,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(d=>c.push(d)),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(n,e){let i=typeof n=="function"?n(e.variables,{IGNORE:jO}):n;return i===jO?!1:(this.cache.recordOptimisticTransaction(r=>{try{this.markMutationResult({data:i},e,r)}catch(o){W.error(o)}},this.id),!0)}markSubscriptionResult(n,{document:e,variables:i,errorPolicy:r,cacheWriteBehavior:o}){o!==0&&($_(n,r)&&this.cache.write({query:e,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:i,extensions:n.extensions}),this.queryManager.broadcastQueries())}};function $_(t,n="none"){let e=n==="ignore"||n==="all",i=!To(t);return!i&&e&&t.data&&(i=!0),i}var _m=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(n){let e=new Do(r=>this.cache.transformDocument(r),{cache:!1});this.client=n.client,this.defaultOptions=n.defaultOptions,this.queryDeduplication=n.queryDeduplication,this.clientOptions=n.clientOptions,this.ssrMode=n.ssrMode,this.assumeImmutableResults=n.assumeImmutableResults,this.dataMasking=n.dataMasking,this.localState=n.localState,this.incrementalHandler=n.incrementalHandler;let i=n.documentTransform;this.documentTransform=i?e.concat(i).concat(e):e,this.defaultContext=n.defaultContext||{},(this.onBroadcast=n.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(n=>n.stop()),this.cancelPendingFetches(Qt(89))}cancelPendingFetches(n){this.fetchCancelFns.forEach(e=>e(n)),this.fetchCancelFns.clear()}mutate(f){return gt(this,arguments,function*({mutation:n,variables:e,optimisticResponse:i,updateQueries:r,refetchQueries:o=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:l,fetchPolicy:c,errorPolicy:d,keepRootFields:u,context:p}){let y=new uc(this);n=this.cache.transformForLink(this.transform(n));let{hasClientExports:b}=this.getDocumentInfo(n);e=this.getVariables(n,e),b&&(!1,e=yield this.localState.getExportedVariables({client:this.client,document:n,variables:e,context:p}));let v=this.mutationStore&&(this.mutationStore[y.id]={mutation:n,variables:e,loading:!0,error:null}),w=i&&y.markMutationOptimistic(i,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,updateQueries:r,update:a,keepRootFields:u});return this.broadcastQueries(),new Promise((D,P)=>{let B={};return this.getObservableFromLink(n,A(_({},p),{optimisticResponse:w?i:void 0}),e,c,{},!1).observable.pipe(HO(),Nt(Y=>{let ge=_({},Y);return pt(y.markMutationResult(ge,{document:n,variables:e,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:d,context:p,update:a,updateQueries:r,awaitRefetchQueries:s,refetchQueries:o,removeOptimistic:w?y.id:void 0,onQueryUpdated:l,keepRootFields:u}))})).pipe(ye(Y=>{if(To(Y)&&d==="none")throw new ko(U_(Y));return v&&(v.loading=!1,v.error=null),Y})).subscribe({next:Y=>{if(this.broadcastQueries(),!y.hasNext){let ge={data:this.maskOperation({document:n,data:Y.data,fetchPolicy:c,cause:B})};To(Y)&&(ge.error=new ko(Y)),Object.keys(Y.extensions||{}).length&&(ge.extensions=Y.extensions),D(ge)}},error:Y=>{if(v&&(v.loading=!1,v.error=Y),w&&this.cache.removeOptimistic(y.id),this.broadcastQueries(),d==="ignore")return D({data:void 0});if(d==="all")return D({data:void 0,error:Y});P(Y)}})})})}fetchQuery(n,e){return Qn(n.query,qn.QUERY),gt(this,null,function*(){return vr(this.fetchObservableWithInfo(n,{networkStatus:e}).observable.pipe(nc(i=>{switch(i.kind){case"E":throw i.error;case"N":if(i.source!=="newNetworkStatus")return ds(i.value)}})),{defaultValue:{data:void 0}})})}transform(n){return this.documentTransform.transformDocument(n)}transformCache=new ua(mn["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(n){let{transformCache:e}=this;if(!e.has(n)){let r=Pn(n),o={hasClientExports:Wr(["client","export"],n,!0),hasForcedResolvers:o_(n),hasNonreactiveDirective:Wr(["nonreactive"],n),hasIncrementalDirective:Wr(["defer"],n),nonReactiveQuery:O7(n),clientQuery:Wr(["client"],n)?n:null,serverQuery:l_([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],n),operationType:r?.operation,defaultVars:pa(r),asQuery:A(_({},n),{definitions:n.definitions.map(s=>s.kind==="OperationDefinition"&&s.operation!=="query"?A(_({},s),{operation:"query"}):s)})};e.set(n,o)}let i=e.get(n);if(i.violation)throw i.violation;return i}getVariables(n,e){let i=this.getDocumentInfo(n).defaultVars,r=Object.entries(e??{}).map(([o,s])=>[o,s===void 0?i[o]:s]);return _(_({},i),Object.fromEntries(r))}watchQuery(n){Qn(n.query,qn.QUERY);let e=this.transform(n.query);return n=A(_({},n),{variables:this.getVariables(e,n.variables)}),typeof n.notifyOnNetworkStatusChange>"u"&&(n.notifyOnNetworkStatusChange=!0),new cc({queryManager:this,options:n,transformedQuery:e})}query(n){let e=this.transform(n.query);return this.fetchQuery(A(_({},n),{query:e})).then(i=>A(_({},i),{data:this.maskOperation({document:e,data:i?.data,fetchPolicy:n.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(n={discardWatches:!0}){return this.cancelPendingFetches(Qt(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(n)}getObservableQueries(n="active"){let e=new Set,i=new Map,r=new Map,o=new Set;return Array.isArray(n)&&n.forEach(s=>{if(typeof s=="string")i.set(s,s),r.set(s,!1);else if(s_(s)){let a=Qr(this.transform(s));i.set(a,sn(s)),r.set(a,!1)}else Ct(s)&&s.query&&o.add(s)}),this.obsQueries.forEach(s=>{let a=Qr(this.transform(s.options.query));if(n==="all"){e.add(s);return}let{queryName:l,options:{fetchPolicy:c}}=s;n==="active"&&c==="standby"||(n==="active"||l&&r.has(l)||a&&r.has(a))&&(e.add(s),l&&r.set(l,!0),a&&r.set(a,!0))}),o.size&&o.forEach(s=>{let a=new cc({queryManager:this,options:A(_({},ha(this.defaultOptions.watchQuery,s)),{fetchPolicy:"network-only"})});e.add(a)}),!1,e}refetchObservableQueries(n=!1){let e=[];return this.getObservableQueries(n?"all":"active").forEach(i=>{let{fetchPolicy:r}=i.options;(n||r!=="standby")&&r!=="cache-only"&&e.push(i.refetch())}),this.broadcastQueries(),Promise.all(e)}startGraphQLSubscription(n){let{query:e,variables:i}=n,{fetchPolicy:r="cache-first",errorPolicy:o="none",context:s={},extensions:a={}}=n;Qn(e,qn.SUBSCRIPTION),e=this.transform(e),i=this.getVariables(e,i);let l;!1;let c=(this.getDocumentInfo(e).hasClientExports?pt(this.localState.getExportedVariables({client:this.client,document:e,variables:i,context:s})):be(i)).pipe(Nt(d=>{let{observable:u,restart:p}=this.getObservableFromLink(e,s,d,r,a),f=new uc(this);return l=p,u.pipe(ye(y=>{f.markSubscriptionResult(y,{document:e,variables:d,errorPolicy:o,cacheWriteBehavior:r==="no-cache"?0:2});let b={data:y.data??void 0};return To(y)?b.error=new ko(y):NO(y)&&(b.error=y.extensions[vm],delete y.extensions[vm]),y.extensions&&Object.keys(y.extensions).length&&(b.extensions=y.extensions),b.error&&o==="none"&&(b.data=void 0),o==="ignore"&&delete b.error,b}),ai(y=>o==="ignore"?be({data:void 0}):be({data:void 0,error:y})),nn(y=>!!(y.data||y.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(n=>n.notify())}inFlightLinkObservables=new Rn(!1);getObservableFromLink(n,e,i,r,o,s=e?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:l,clientQuery:c,operationType:d,hasIncrementalDirective:u}=this.getDocumentInfo(n),p=sn(n),f={client:this.client};if(l){let{inFlightLinkObservables:b,link:v}=this;try{let D=function(P){return new ue(B=>{function Y(){return P.subscribe({next:B.next.bind(B),complete:B.complete.bind(B),error:B.error.bind(B)})}let ge=Y();return a.restart||=()=>{ge.unsubscribe(),ge=Y()},()=>{ge.unsubscribe(),a.restart=void 0}})};var y=D;let w=this.incrementalHandler.prepareRequest({query:l,variables:i,context:A(_(_({},this.defaultContext),e),{queryDeduplication:s}),extensions:o});if(e=w.context,s){let P=Qr(l),B=En(i);a=b.lookup(P,B),a.observable||(a.observable=ga(v,w,f).pipe(D,wr(()=>{b.peek(P,B)===a&&b.remove(P,B)}),d===qn.SUBSCRIPTION?Cr():Ms({refCount:!0})))}else a.observable=ga(v,w,f).pipe(D)}catch(w){a.observable=br(()=>w)}}else a.observable=be({data:{}});if(c){let{operation:b}=Pn(n);!1,W(!u,96,b[0].toUpperCase()+b.slice(1),p??"(anonymous)"),a.observable=a.observable.pipe(Nt(v=>pt(this.localState.execute({client:this.client,document:c,remoteResult:v,context:e,variables:i,fetchPolicy:r}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(ai(b=>{throw b=FO(b),j_(b),b}))}}getResultsFromLink(n,{queryInfo:e,cacheWriteBehavior:i,observableQuery:r,exposeExtensions:o}){let s=e.lastRequestId=this.generateRequestId(),{errorPolicy:a}=n,l=this.cache.transformForLink(n.query);return this.getObservableFromLink(l,n.context,n.variables,n.fetchPolicy).observable.pipe(ye(c=>{let d=e.markQueryResult(c,A(_({},n),{document:l,cacheWriteBehavior:i})),u=To(d);if(u&&a==="none")throw e.resetLastWrite(),r?.resetNotifications(),new ko(U_(d));let p=_({data:d.data},e.hasNext?{loading:!0,networkStatus:Ae.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:Ae.ready,partial:!d.data});return o&&"extensions"in d&&(p[fu]=d.extensions),u&&(a==="none"&&(p.data=void 0,p.dataState="empty"),a!=="ignore"&&(p.error=new ko(U_(d)),p.dataState!=="streaming"&&(p.networkStatus=Ae.error))),p}),ai(c=>{if(s>=e.lastRequestId&&a==="none")throw e.resetLastWrite(),r?.resetNotifications(),c;let d={data:void 0,dataState:"empty",loading:!1,networkStatus:Ae.ready,partial:!0};return a!=="ignore"&&(d.error=c,d.networkStatus=Ae.error),be(d)}))}fetchObservableWithInfo(n,{networkStatus:e=Ae.loading,query:i=n.query,fetchQueryOperator:r=l=>l,onCacheHit:o=()=>{},observableQuery:s,exposeExtensions:a}){let l=this.getVariables(i,n.variables),{fetchPolicy:c="cache-first",errorPolicy:d="none",returnPartialData:u=!1,notifyOnNetworkStatusChange:p=!0,context:f={}}=n;this.prioritizeCacheValues&&(c==="network-only"||c==="cache-and-network")&&(c="cache-first");let y=Object.assign({},n,{query:i,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:u,notifyOnNetworkStatusChange:p,context:f}),b=new uc(this,s),v=Y=>{y.variables=Y;let ge=c==="no-cache"?0:e===Ae.refetch&&y.refetchWritePolicy!=="merge"?1:2,tt=this.fetchQueryByPolicy(y,{queryInfo:b,cacheWriteBehavior:ge,onCacheHit:o,observableQuery:s,exposeExtensions:a});return tt.observable=tt.observable.pipe(r),y.fetchPolicy!=="standby"&&s?.applyNextFetchPolicy("after-fetch",n),tt},w=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,Y=>{D.next({kind:"E",error:Y,source:"network"})});let D=new Ge,P,B;if(this.getDocumentInfo(y.query).hasClientExports)!1,P=pt(this.localState.getExportedVariables({client:this.client,document:y.query,variables:y.variables,context:y.context})).pipe(Nt(Y=>v(Y).observable)),B=!0;else{let Y=v(y.variables);B=Y.fromLink,P=Y.observable}return{observable:new ue(Y=>{Y.add(w),P.subscribe(Y),D.subscribe(Y)}).pipe(Cr()),fromLink:B}}refetchQueries({updateCache:n,include:e,optimistic:i=!1,removeOptimistic:r=i?ru("refetchQueries"):void 0,onQueryUpdated:o}){let s=new Map;e&&this.getObservableQueries(e).forEach(l=>{if(l.options.fetchPolicy==="cache-only"||l.variablesUnknown)return;let c=l.getCurrentResult();s.set(l,{oq:l,lastDiff:{result:c?.data,complete:!c?.partial}})});let a=new Map;if(n){let l=new Set;this.cache.batch({update:n,optimistic:i&&r||!1,removeOptimistic:r,onWatchUpdated(c,d,u){let p=c.watcher;if(p instanceof cc&&!l.has(p)){if(l.add(p),o){s.delete(p);let f=o(p,d,u);return f===!0&&(f=p.refetch().retain()),f!==!1&&a.set(p,f),f}o!==null&&p.options.fetchPolicy!=="cache-only"&&s.set(p,{oq:p,lastDiff:u,diff:d})}}})}return s.size&&s.forEach(({oq:l,lastDiff:c,diff:d})=>{let u;o&&(d||(d=l.getCacheDiff()),u=o(l,d,c)),(!o||u===!0)&&(u=l.refetch().retain()),u!==!1&&a.set(l,u)}),r&&this.cache.removeOptimistic(r),a}noCacheWarningsByCause=new WeakSet;maskOperation(n){let{document:e,data:i}=n;if(!1){let{fetchPolicy:r,cause:o={}}=n,s=Pn(e)?.operation;this.dataMasking&&r==="no-cache"&&!M7(e)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),!1)}return this.dataMasking?D_(i,e,this.cache):i}maskFragment(n){let{data:e,fragment:i,fragmentName:r}=n;return this.dataMasking?I_(e,i,this.cache,r):e}fetchQueryByPolicy({query:n,variables:e,fetchPolicy:i,errorPolicy:r,returnPartialData:o,context:s},{cacheWriteBehavior:a,onCacheHit:l,queryInfo:c,observableQuery:d,exposeExtensions:u}){let p=()=>this.cache.diff({query:n,variables:e,returnPartialData:!0,optimistic:!0}),f=(b,v)=>{let w=b.result;!1;let D=B=>(!b.complete&&!o&&(B=void 0),{data:B,dataState:b.complete?"complete":B?"partial":"empty",loading:ba(v),networkStatus:v,partial:!b.complete}),P=B=>be({kind:"N",value:D(B),source:"cache"});return(b.complete||o)&&this.getDocumentInfo(n).hasForcedResolvers?(!1,l(),pt(this.localState.execute({client:this.client,document:n,remoteResult:w?{data:w}:void 0,context:s,variables:e,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:i}).then(B=>({kind:"N",value:D(B.data||void 0),source:"cache"})))):r==="none"&&v===Ae.refetch&&b.missing?P(void 0):P(w||void 0)},y=()=>this.getResultsFromLink({query:n,variables:e,context:s,fetchPolicy:i,errorPolicy:r},{cacheWriteBehavior:a,queryInfo:c,observableQuery:d,exposeExtensions:u}).pipe(HO(),Hg(),ye(b=>A(_({},b),{source:"network"})));switch(i){default:case"cache-first":{let b=p();return b.complete?{fromLink:!1,observable:f(b,Ae.ready)}:o?{fromLink:!0,observable:_r(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-and-network":{let b=p();return b.complete||o?{fromLink:!0,observable:_r(f(b,Ae.loading),y())}:{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:_r(f(p(),Ae.ready))};case"network-only":return{fromLink:!0,observable:y()};case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:Pt}}}};function HO(){let t=!1;return St({next(){t=!0},complete(){W(t,100)}})}function M7(t){let n=!0;return on(t,{FragmentSpread:e=>{if(n=!!e.directives&&e.directives.some(i=>i.name.value==="unmask"),!n)return Co}}),n}function O7(t){return on(t,{FragmentSpread:n=>{if(!n.directives?.some(e=>e.name.value==="unmask"))return A(_({},n),{directives:[...n.directives||[],{kind:q.DIRECTIVE,name:{kind:q.NAME,value:"nonreactive"}}]})}})}function U_(t){var s;if(t.extensions?.[hi]==null)return t;let r=t,{extensions:o}=r,a=o,{[s=hi]:n}=a,e=Et(a,[Uu(s)]),i=Et(r,["extensions"]);return Object.keys(e).length>0&&(i.extensions=e),i}var $O=!1,Ca=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(n){this.queryManager.prioritizeCacheValues=n}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(n){!1;let{cache:e,documentTransform:i,ssrMode:r=!1,ssrForceFetchDelay:o=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:l,assumeImmutableResults:c=e.assumeImmutableResults,localState:d,devtools:u,dataMasking:p,link:f,incrementalHandler:y=new yu,experiments:b=[],refetchEventManager:v}=n;this.link=f,this.cache=e,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig=A(_({},u),{enabled:u?.enabled??!1}),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=iu,this.queryManager=new _m({client:this,defaultOptions:this.defaultOptions,defaultContext:l,documentTransform:i,queryDeduplication:s,ssrMode:r,dataMasking:!!p,clientOptions:n,incrementalHandler:y,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=r||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(w=>w.call(this,n)),this.refetchEventManager=v,this.refetchEventManager?.connect(this)}connectToDevTools(){if(typeof window>"u")return;let n=window,e=Symbol.for("apollo.devtools");(n[e]=n[e]||[]).push(this),n.__APOLLO_CLIENT__=this,!$O&&!1&&($O=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let i=window.navigator,r=i&&i.userAgent,o;typeof r=="string"&&(r.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),o&&!1&&W.log("Download the Apollo DevTools for a better development experience: %s",o)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(n){this.queryManager.localState=n}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(n){let{refetchOn:e}=n;if(this.defaultOptions.watchQuery){let i=this.defaultOptions.watchQuery.refetchOn,r;e&&typeof e=="object"&&(typeof i=="object"?r=_(_({},i),e):i!=null&&(r=o=>{let s=e[o.source]??i;return typeof s=="function"?s(o):s})),n=ha(this.defaultOptions.watchQuery,n),r&&(n.refetchOn=r)}if(!1){let{query:i}=n,{refetchEventManager:r}=this;if(e){let o=sn(i,"(anonymous)");r?typeof e=="object"&&Object.keys(e).forEach(s=>{r.hasSource(s)||!1}):!1}}return this.queryManager.watchQuery(n)}query=n=>(this.defaultOptions.query&&(n=ha(this.defaultOptions.query,n)),!1,this.queryManager.query(n));mutate=n=>{let e=ha(Fi({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),n);return!1,Qn(e.mutation,qn.MUTATION),this.queryManager.mutate(e)};subscribe(n){let e={},i=this.queryManager.startGraphQLSubscription(n),r=i.pipe(ye(o=>A(_({},o),{data:this.queryManager.maskOperation({document:n.query,data:o.data,fetchPolicy:n.fetchPolicy,cause:e})})));return Object.assign(r,{restart:i.restart})}readQuery(n,e=!1){return this.cache.readQuery(A(_({},n),{query:this.transform(n.query)}),e)}watchFragment(n){let e=this.queryManager.dataMasking,i=this.cache.watchFragment(A(_({},n),{fragment:this.transform(n.fragment,e)}));return i}readFragment(n,e=!1){return this.cache.readFragment(A(_({},n),{fragment:this.transform(n.fragment)}),e)}writeQuery(n){let e=this.cache.writeQuery(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}writeFragment(n){let e=this.cache.writeFragment(n);return n.broadcast!==!1&&this.queryManager.broadcastQueries(),e}__actionHookForDevTools(n){this.devToolsHookCb=n}__requestRaw(n){return ga(this.link,n,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(n=>n()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(n=>n())))}onResetStore(n){return this.resetStoreCallbacks.push(n),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(e=>e!==n)}}onClearStore(n){return this.clearStoreCallbacks.push(n),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(e=>e!==n)}}reFetchObservableQueries;refetchObservableQueries(n){return this.queryManager.refetchObservableQueries(n)}refetchQueries(n){let e=this.queryManager.refetchQueries(n),i=[],r=[];e.forEach((s,a)=>{i.push(a),r.push(s)});let o=Promise.all(r);return o.queries=i,o.results=r,o.catch(s=>{!1}),o}getObservableQueries(n="active"){return this.queryManager.getObservableQueries(n)}extract(n){return this.cache.extract(n)}restore(n){return this.cache.restore(n)}setLink(n){this.link=n}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new Do(c_);transform(n,e=!1){let i=this.queryManager.transform(n);return e?this.maskedFragmentTransform.transformDocument(i):i}};!1;var wm=new Map,W_=new Map,UO=!0,Cm=!1;function WO(t){return t.replace(/[\s,]+/g," ").trim()}function R7(t){return WO(t.source.body.substring(t.start,t.end))}function P7(t){var n=new Set,e=[];return t.definitions.forEach(function(i){if(i.kind==="FragmentDefinition"){var r=i.name.value,o=R7(i.loc),s=W_.get(r);s&&!s.has(o)?UO&&console.warn("Warning: fragment with name "+r+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
-this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s||rw.set(i,s=new Set),s.add(o),n.has(o)||(n.add(o),e.push(r))}else e.push(r)}),Ac(Ac({},t),{definitions:e})}function g9(t){var n=new Set(t.definitions);n.forEach(function(r){r.loc&&delete r.loc,Object.keys(r).forEach(function(i){var o=r[i];o&&typeof o=="object"&&n.add(o)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}function y9(t){var n=d2(t);if(!Im.has(n)){var e=sm(t,{experimentalFragmentVariables:Dm,allowLegacyFragmentVariables:Dm});if(!e||e.kind!=="Document")throw new Error("Not a valid GraphQL document.");Im.set(n,g9(m9(e)))}return Im.get(n)}function bs(t){for(var n=[],e=1;e(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}function b9(t,n){return n?t.pipe(be(e=>A(_({},e),{loading:!1})),Lc({data:void 0,loading:!0})):t.pipe(be(e=>A(_({},e),{loading:!1})))}var ow=class{zone;constructor(n){this.zone=n}now=Date.now;schedule(n,e=0,r){return this.zone.run(()=>Gg.schedule(n,e,r))}};function sw(t,n){return t.pipe(Os(new ow(n)))}var aw=class{obsQuery;valueChanges;constructor(n,e){this.obsQuery=n,this.valueChanges=sw(ft(this.obsQuery),e)}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}getCurrentResult(){return this.obsQuery.getCurrentResult()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setVariables(n){return this.obsQuery.setVariables(n)}reobserve(n){return this.obsQuery.reobserve(n)}},v9=new H("APOLLO_FLAGS"),lw=new H("APOLLO_OPTIONS"),_9=new H("APOLLO_NAMED_OPTIONS"),km=class{ngZone;flags;_client;useMutationLoading;constructor(n,e,r){this.ngZone=n,this.flags=e,this._client=r,this.useMutationLoading=e?.useMutationLoading??!1}watchQuery(n){return new aw(this.ensureClient().watchQuery(_({},n)),this.ngZone)}query(n){return m2(()=>this.ensureClient().query(_({},n)))}mutate(n){return b9(m2(()=>this.ensureClient().mutate(_({},n))),n.useMutationLoading??this.useMutationLoading)}watchFragment(n){let o=n,{useZone:e}=o,r=Et(o,["useZone"]),i=this.ensureClient().watchFragment(_({},r));return e!==!0?i:sw(i,this.ngZone)}subscribe(n){let o=n,{useZone:e}=o,r=Et(o,["useZone"]),i=this.ensureClient().subscribe(_({},r));return e!==!0?i:sw(i,this.ngZone)}get client(){return this.ensureClient()}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},Mm=(()=>{class t extends km{map=new Map;constructor(e,r,i,o){if(super(e,o),r&&this.createDefault(r),i&&typeof i=="object"){for(let s in i)if(i.hasOwnProperty(s)){let a=i[s];this.create(a,s)}}}create(e,r){iw(r)?this.createNamed(r,e):this.createDefault(e)}default(){return this}use(e){return iw(e)?this.map.get(e):this.default()}createDefault(e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new Ea(e))}createNamed(e,r){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new km(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new Ea(r))))}removeClient(e){iw(e)?this.map.delete(e):this._client=void 0}static \u0275fac=function(r){return new(r||t)(me($e),me(lw,8),me(_9,8),me(v9,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function iw(t){return!!t&&t!=="default"}var w9=bs,Zi=w9;var hc=Zi`
+this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s||W_.set(r,s=new Set),s.add(o),n.has(o)||(n.add(o),e.push(i))}else e.push(i)}),Oc(Oc({},t),{definitions:e})}function A7(t){var n=new Set(t.definitions);n.forEach(function(i){i.loc&&delete i.loc,Object.keys(i).forEach(function(r){var o=i[r];o&&typeof o=="object"&&n.add(o)})});var e=t.loc;return e&&(delete e.startToken,delete e.endToken),t}function N7(t){var n=WO(t);if(!wm.has(n)){var e=em(t,{experimentalFragmentVariables:Cm,allowLegacyFragmentVariables:Cm});if(!e||e.kind!=="Document")throw new Error("Not a valid GraphQL document.");wm.set(n,A7(P7(e)))}return wm.get(n)}function ms(t){for(var n=[],e=1;e(t().then(e=>{n.closed||(n.next(e),n.complete())},e=>{n.closed||n.error(e)}),()=>n.unsubscribe()))}function F7(t,n){return n?t.pipe(ye(e=>A(_({},e),{loading:!1})),Ac({data:void 0,loading:!0})):t.pipe(ye(e=>A(_({},e),{loading:!1})))}var q_=class{zone;constructor(n){this.zone=n}now=Date.now;schedule(n,e=0,i){return this.zone.run(()=>Ag.schedule(n,e,i))}};function Q_(t,n){return t.pipe(ks(new q_(n)))}var K_=class{obsQuery;valueChanges;constructor(n,e){this.obsQuery=n,this.valueChanges=Q_(pt(this.obsQuery),e)}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}getCurrentResult(){return this.obsQuery.getCurrentResult()}refetch(n){return this.obsQuery.refetch(n)}fetchMore(n){return this.obsQuery.fetchMore(n)}subscribeToMore(n){return this.obsQuery.subscribeToMore(n)}updateQuery(n){return this.obsQuery.updateQuery(n)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(n){return this.obsQuery.startPolling(n)}setVariables(n){return this.obsQuery.setVariables(n)}reobserve(n){return this.obsQuery.reobserve(n)}},L7=new z("APOLLO_FLAGS"),Y_=new z("APOLLO_OPTIONS"),B7=new z("APOLLO_NAMED_OPTIONS"),xm=class{ngZone;flags;_client;useMutationLoading;constructor(n,e,i){this.ngZone=n,this.flags=e,this._client=i,this.useMutationLoading=e?.useMutationLoading??!1}watchQuery(n){return new K_(this.ensureClient().watchQuery(_({},n)),this.ngZone)}query(n){return YO(()=>this.ensureClient().query(_({},n)))}mutate(n){return F7(YO(()=>this.ensureClient().mutate(_({},n))),n.useMutationLoading??this.useMutationLoading)}watchFragment(n){let o=n,{useZone:e}=o,i=Et(o,["useZone"]),r=this.ensureClient().watchFragment(_({},i));return e!==!0?r:Q_(r,this.ngZone)}subscribe(n){let o=n,{useZone:e}=o,i=Et(o,["useZone"]),r=this.ensureClient().subscribe(_({},i));return e!==!0?r:Q_(r,this.ngZone)}get client(){return this.ensureClient()}set client(n){if(this._client)throw new Error("Client has been already defined");this._client=n}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},Tm=(()=>{class t extends xm{map=new Map;constructor(e,i,r,o){if(super(e,o),i&&this.createDefault(i),r&&typeof r=="object"){for(let s in r)if(r.hasOwnProperty(s)){let a=r[s];this.create(a,s)}}}create(e,i){G_(i)?this.createNamed(i,e):this.createDefault(e)}default(){return this}use(e){return G_(e)?this.map.get(e):this.default()}createDefault(e){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new Ca(e))}createNamed(e,i){if(this.map.has(e))throw new Error(`Client ${e} has been already created`);this.map.set(e,new xm(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new Ca(i))))}removeClient(e){G_(e)?this.map.delete(e):this._client=void 0}static \u0275fac=function(i){return new(i||t)(he($e),he(Y_,8),he(B7,8),he(L7,8))};static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();function G_(t){return!!t&&t!=="default"}var V7=ms,Yr=V7;var pc=Yr`
fragment BaseModel on IBaseModel {
id
createdById
@@ -1107,7 +1107,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
version
deleted
}
-`,g2=Zi`
+`,bAe=Yr`
mutation Login($username: String!, $password: String!) {
login(username: $username, password: $password) {
... on CurrentUser {
@@ -1132,14 +1132,14 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
}
}
}
-`,y2=Zi`
+`,ZO=Yr`
query Me {
me {
id
identifier
}
}
-`;var b2=Zi`
+`;var JO=Yr`
query GetUser($id: String!) {
getUser(id: $id) {
...BaseModel
@@ -1151,8 +1151,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
}
}
}
- ${hc}
-`;var Gt={production:!0,apiUrl:void 0,wsUrl:void 0,apiKey:void 0,serverUrl:""};var Sa=class t{_hostInjector=ge(null);_pluginServices=ge(null);hostInjector(){return this._hostInjector()}setHostInjector(n){this._hostInjector.set(n)}pluginServices(){return this._pluginServices()}setPluginServices(n){this._pluginServices.set(n)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ji=class t{constructor(n){this.injector=n;Gt.production?this._apollo.set(n.get(Sa)?.pluginServices()?.apollo):this._apollo.set(n.get(Sa)?.pluginServices()?.apollo??n.get(Mm))}injector;_apollo=ge(void 0);apollo=()=>this._apollo();static \u0275fac=function(e){return new(e||t)(me(Bt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var C9=(t,n)=>n.title;function x9(t,n){t&1&&(E(0,"div",2),ce(1," Apollo not provided! "),T())}function T9(t,n){if(t&1){let e=se();E(0,"p-button",5),q("click",function(){let i=S(e).$implicit,o=m(2);return I(i.link?o.router.navigate([i.link]):null)}),T()}if(t&2){let e=n.$implicit,r=n.$index,i=n.$index,o=n.$count;k("w-full drop-shadow-lg"+(i===o-1&&r%2==0?" col-span-2":"")),h("label",e.title)("icon",e.icon)}}function E9(t,n){if(t&1&&(E(0,"app-base",0)(1,"div",1),ce(2," This is a demo of a PHX Frontend Plugin. "),X(3,"br"),ce(4," Click the buttons below to navigate to the different pages. "),T(),rt(5,x9,2,0,"div",2),E(6,"div",3),es(7,T9,1,4,"p-button",4,C9),T()()),t&2){let e=m();h("title",Mb("Hello ",e.userName(),"!"))("noHomeButton",!0),g(5),it(e.apolloProvided()?-1:5),g(2),ts(e.routeItems())}}var Om=class t{constructor(n){this.apollo=n;this.init()}apollo;router=x(Vn);userName=ge(void 0);apolloProvided=We(()=>this.apollo.apollo()!==void 0);routeItems=ae([{title:"Product View",link:"/product-view",icon:"fa fa-boxes-stacked"},{title:"Address List",link:"/address-list",icon:"fa fa-address-card"}]);init(){return pt(this,null,function*(){let n="World";try{let e=yield Cr(this.apollo.apollo().query({query:y2}));if(!e.data?.me)return;n=e.data.me.identifier??"World";let r=yield Cr(this.apollo.apollo().query({query:b2,variables:{id:e.data.me.id}}));if(r.data?.getUser?.activeEmployee){let i=[r.data.getUser.activeEmployee.name,r.data.getUser.activeEmployee.lastName].filter(Boolean);i.length>0&&(n=i.join(" "))}}catch(e){console.error(e)}finally{this.userName.set(n)}})}static \u0275fac=function(e){return new(e||t)(de(Ji))};static \u0275cmp=$({type:t,selectors:[["app-hello-world"]],inputs:{routeItems:[1,"routeItems"]},decls:1,vars:1,consts:[[3,"title","noHomeButton"],[1,"text-muted-color","text-center","bg-white","border-2","rounded-lg","p-8","mb-4","drop-shadow-lg"],[1,"text-center","text-white","bg-red-500","border-2","rounded-lg","p-4","mb-4"],[1,"grid","grid-cols-2","gap-2","pt-4"],["size","large","styleClass","w-full","iconPos","top",3,"label","icon","class"],["size","large","styleClass","w-full","iconPos","top",3,"click","label","icon"]],template:function(e,r){e&1&&rt(0,E9,9,4,"app-base",0),e&2&&it(r.userName()?0:-1)},dependencies:[ls,rr],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var D2=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(de(Jr),de(un))};static \u0275dir=Ue({type:t})}return t})(),S9=(()=>{class t extends D2{static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,features:[j]})}return t})(),Nn=new H("");var I9={provide:Nn,useExisting:Ht(()=>bc),multi:!0};function D9(){let t=Pr()?Pr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var k9=new H(""),bc=(()=>{class t extends D2{_compositionMode;_composing=!1;constructor(e,r,i){super(e,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!D9())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(de(Jr),de(un),de(k9,8))};static \u0275dir=Ue({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&q("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[xe([I9]),j]})}return t})();function hw(t){return t==null||mw(t)===0}function mw(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var gw=new H(""),yw=new H(""),M9=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Au=class{static min(n){return O9(n)}static max(n){return R9(n)}static required(n){return P9(n)}static requiredTrue(n){return A9(n)}static email(n){return N9(n)}static minLength(n){return F9(n)}static maxLength(n){return L9(n)}static pattern(n){return B9(n)}static nullValidator(n){return k2()}static compose(n){return N2(n)}static composeAsync(n){return L2(n)}};function O9(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function P9(t){return hw(t.value)?{required:!0}:null}function A9(t){return t.value===!0?null:{required:!0}}function N9(t){return hw(t.value)||M9.test(t.value)?null:{email:!0}}function F9(t){return n=>{let e=n.value?.length??mw(n.value);return e===null||e===0?null:e{let e=n.value?.length??mw(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function B9(t){if(!t)return k2;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),r=>{if(hw(r.value))return null;let i=r.value;return n.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function k2(t){return null}function M2(t){return t!=null}function O2(t){return Xo(t)?ft(t):t}function R2(t){let n={};return t.forEach(e=>{n=e!=null?_(_({},n),e):n}),Object.keys(n).length===0?null:n}function P2(t,n){return n.map(e=>e(t))}function V9(t){return!t.validate}function A2(t){return t.map(n=>V9(n)?n:e=>n.validate(e))}function N2(t){if(!t)return null;let n=t.filter(M2);return n.length==0?null:function(e){return R2(P2(e,n))}}function F2(t){return t!=null?N2(A2(t)):null}function L2(t){if(!t)return null;let n=t.filter(M2);return n.length==0?null:function(e){let r=P2(e,n).map(O2);return Kg(r).pipe(be(R2))}}function B2(t){return t!=null?L2(A2(t)):null}function _2(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function V2(t){return t._rawValidators}function j2(t){return t._rawAsyncValidators}function cw(t){return t?Array.isArray(t)?t:[t]:[]}function Pm(t,n){return Array.isArray(t)?t.includes(n):t===n}function w2(t,n){let e=cw(n);return cw(t).forEach(i=>{Pm(e,i)||e.push(i)}),e}function C2(t,n){return cw(n).filter(e=>!Pm(t,e))}var Am=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=F2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=B2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Ia=class extends Am{name;get formDirective(){return null}get path(){return null}},Yn=class extends Am{_parent=null;name=null;valueAccessor=null},Nm=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},j9={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},zNe=A(_({},j9),{"[class.ng-submitted]":"isSubmitted"}),_s=(()=>{class t extends Nm{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(de(Yn,2))};static \u0275dir=Ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&ea("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[j]})}return t})(),z2=(()=>{class t extends Nm{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(de(Ia,10))};static \u0275dir=Ue({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&ea("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[j]})}return t})();var ku="VALID",Rm="INVALID",mc="PENDING",Mu="DISABLED",vs=class{},Fm=class extends vs{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Ou=class extends vs{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Ru=class extends vs{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},gc=class extends vs{status;source;constructor(n,e){super(),this.status=n,this.source=e}},dw=class extends vs{source;constructor(n){super(),this.source=n}},Nu=class extends vs{source;constructor(n){super(),this.source=n}};function bw(t){return(jm(t)?t.validators:t)||null}function z9(t){return Array.isArray(t)?F2(t):t||null}function vw(t,n){return(jm(n)?n.asyncValidators:t)||null}function H9(t){return Array.isArray(t)?B2(t):t||null}function jm(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function H2(t,n,e){let r=t.controls;if(!(n?Object.keys(r):r).length)throw new U(1e3,"");if(!r[e])throw new U(1001,"")}function $2(t,n,e){t._forEachChild((r,i)=>{if(e[i]===void 0)throw new U(1002,"")})}var yc=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return fn(this.statusReactive)}set status(n){fn(()=>this.statusReactive.set(n))}_status=We(()=>this.statusReactive());statusReactive=ge(void 0);get valid(){return this.status===ku}get invalid(){return this.status===Rm}get pending(){return this.status==mc}get disabled(){return this.status===Mu}get enabled(){return this.status!==Mu}errors;get pristine(){return fn(this.pristineReactive)}set pristine(n){fn(()=>this.pristineReactive.set(n))}_pristine=We(()=>this.pristineReactive());pristineReactive=ge(!0);get dirty(){return!this.pristine}get touched(){return fn(this.touchedReactive)}set touched(n){fn(()=>this.touchedReactive.set(n))}_touched=We(()=>this.touchedReactive());touchedReactive=ge(!1);get untouched(){return!this.touched}_events=new qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(w2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(w2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(C2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(C2(n,this._rawAsyncValidators))}hasValidator(n){return Pm(this._rawValidators,n)}hasAsyncValidator(n){return Pm(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(A(_({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Ru(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new Ru(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(A(_({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Ou(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new Ou(!0,r))}markAsPending(n={}){this.status=mc;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new gc(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(A(_({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Mu,this.errors=null,this._forEachChild(i=>{i.disable(A(_({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Fm(this.value,r)),this._events.next(new gc(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=ku,this._forEachChild(r=>{r.enable(A(_({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ku||this.status===mc)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Fm(this.value,e)),this._events.next(new gc(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(A(_({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Mu:ku}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=mc,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let r=O2(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){let r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new gc(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new z,this.statusChanges=new z}_calculateStatus(){return this._allControlsDisabled()?Mu:this.errors?Rm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mc)?mc:this._anyControlsHaveStatus(Rm)?Rm:ku}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),i&&this._events.next(new Ou(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ru(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){jm(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=z9(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=H9(this._rawAsyncValidators)}},Lm=class extends yc{constructor(n,e,r){super(bw(e),vw(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){$2(this,!0,n),Object.keys(n).forEach(r=>{H2(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(r=>{let i=this.controls[r];i&&i.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,i)=>{r.reset(n?n[i]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Nu(this))}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>r._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,r,i)=>((r.enabled||this.disabled)&&(e[i]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((i,o)=>{r=e(r,i,o)}),r}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var uw=class extends Lm{};var zm=new H("",{providedIn:"root",factory:()=>Hm}),Hm="always";function U2(t,n){return[...n.path,t]}function pw(t,n,e=Hm){_w(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),U9(t,n),G9(t,n),W9(t,n),$9(t,n)}function x2(t,n,e=!0){let r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Vm(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Bm(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function $9(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function _w(t,n){let e=V2(t);n.validator!==null?t.setValidators(_2(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=j2(t);n.asyncValidator!==null?t.setAsyncValidators(_2(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();Bm(n._rawValidators,i),Bm(n._rawAsyncValidators,i)}function Vm(t,n){let e=!1;if(t!==null){if(n.validator!==null){let i=V2(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==n.validator);o.length!==i.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let i=j2(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==n.asyncValidator);o.length!==i.length&&(e=!0,t.setAsyncValidators(o))}}}let r=()=>{};return Bm(n._rawValidators,r),Bm(n._rawAsyncValidators,r),e}function U9(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&W2(t,n)})}function W9(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&W2(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function W2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function G9(t,n){let e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function q9(t,n){t==null,_w(t,n)}function Q9(t,n){return Vm(t,n)}function G2(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function K9(t){return Object.getPrototypeOf(t.constructor)===S9}function Y9(t,n){t._syncPendingControls(),n.forEach(e=>{let r=e.control;r.updateOn==="submit"&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function q2(t,n){if(!n)return null;Array.isArray(n);let e,r,i;return n.forEach(o=>{o.constructor===bc?e=o:K9(o)?r=o:i=o}),i||r||e||null}function Z9(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function T2(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function E2(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Pu=class extends yc{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(bw(e),vw(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),jm(e)&&(e.nonNullable||e.initialValueIsDefault)&&(E2(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new Nu(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){T2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){T2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){E2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var J9=t=>t instanceof Pu;var X9={provide:Yn,useExisting:Ht(()=>Da)},S2=Promise.resolve(),Da=(()=>{class t extends Yn{_changeDetectorRef;callSetDisabledState;control=new Pu;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new z;constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=q2(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),G2(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){pw(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){S2.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,i=r!==0&&R(r);S2.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?U2(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(de(Ia,9),de(gw,10),de(yw,10),de(Nn,10),de(ns,8),de(zm,8))};static \u0275dir=Ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[xe([X9]),j,Kr]})}return t})();var Q2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var K2=new H("");var ej={provide:Ia,useExisting:Ht(()=>ww)},ww=(()=>{class t extends Ia{callSetDisabledState;get submitted(){return fn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=We(()=>this._submittedReactive());_submittedReactive=ge(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new z;constructor(e,r,i){super(),this.callSetDisabledState=i,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Vm(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let r=this.form.get(e.path);return pw(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){x2(e.control||null,e,!1),Z9(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,r){this.form.get(e.path).setValue(r)}onSubmit(e){return this._submittedReactive.set(!0),Y9(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new dw(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,r={}){this.form.reset(e,r),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let r=e.control,i=this.form.get(e.path);r!==i&&(x2(r||null,e),J9(i)&&(pw(i,e,this.callSetDisabledState),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let r=this.form.get(e.path);q9(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let r=this.form.get(e.path);r&&Q9(r,e)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){_w(this.form,this),this._oldForm&&Vm(this._oldForm,this)}static \u0275fac=function(r){return new(r||t)(de(gw,10),de(yw,10),de(zm,8))};static \u0275dir=Ue({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&q("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[xe([ej]),j,Kr]})}return t})();var tj={provide:Yn,useExisting:Ht(()=>Cw)},Cw=(()=>{class t extends Yn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new z;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,i,o,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=q2(this,o)}ngOnChanges(e){this._added||this._setUpControl(),G2(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return U2(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||t)(de(Ia,13),de(gw,10),de(yw,10),de(Nn,10),de(K2,8))};static \u0275dir=Ue({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[xe([tj]),j,Kr]})}return t})();var Y2=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})(),fw=class extends yc{constructor(n,e,r){super(bw(e),vw(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(r=>{this.controls.push(r),this._registerControl(r)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){$2(this,!1,n),n.forEach((r,i)=>{H2(this,!1,i),this.at(i).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((r,i)=>{this.at(i)&&this.at(i).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,i)=>{r.reset(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new Nu(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>r._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function I2(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var Z2=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,r=null){let i=this._reduceControls(e),o={};return I2(r)?o=r:r!==null&&(o.validators=r.validator,o.asyncValidators=r.asyncValidator),new Lm(i,o)}record(e,r=null){let i=this._reduceControls(e);return new uw(i,r)}control(e,r,i){let o={};return this.useNonNullable?(I2(r)?o=r:(o.validators=r,o.asyncValidators=i),new Pu(e,A(_({},o),{nonNullable:!0}))):new Pu(e,r,i)}array(e,r,i){let o=e.map(s=>this._createControl(s));return new fw(o,r,i)}_reduceControls(e){let r={};return Object.keys(e).forEach(i=>{r[i]=this._createControl(e[i])}),r}_createControl(e){if(e instanceof Pu)return e;if(e instanceof yc)return e;if(Array.isArray(e)){let r=e[0],i=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(r,i,o)}else return this.control(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xi=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:zm,useValue:e.callSetDisabledState??Hm}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Y2]})}return t})(),J2=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:K2,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:zm,useValue:e.callSetDisabledState??Hm}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Y2]})}return t})();var Um=(()=>{class t extends ut{modelValue=ge(void 0);$filled=We(()=>lt(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,features:[j]})}return t})();var eo=(()=>{class t extends Um{required=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});disabled=ae(void 0,{transform:R});name=ae();_disabled=ge(!1);$disabled=We(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,r){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[j]})}return t})();var vc=(()=>{class t extends eo{pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});fluid=ae(void 0,{transform:R});variant=ae();size=ae();inputSize=ae();pattern=ae();min=ae();max=ae();step=ae();minlength=ae();maxlength=ae();$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275dir=Ue({type:t,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[j]})}return t})();var X2=`
+ ${pc}
+`;var Ht={production:!0,apiUrl:void 0,wsUrl:void 0,apiKey:void 0,serverUrl:""};var xa=class t{_hostInjector=_e(null);_pluginServices=_e(null);hostInjector(){return this._hostInjector()}setHostInjector(n){this._hostInjector.set(n)}pluginServices(){return this._pluginServices()}setPluginServices(n){this._pluginServices.set(n)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var gs=class t{constructor(n){this.injector=n;Ht.production?this._apollo.set(n.get(xa)?.pluginServices()?.apollo):this._apollo.set(n.get(xa)?.pluginServices()?.apollo??n.get(Tm))}injector;_apollo=_e(void 0);apollo=()=>this._apollo();static \u0275fac=function(e){return new(e||t)(he(Bt))};static \u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"})};var j7=(t,n)=>n.title;function z7(t,n){t&1&&(I(0,"div",2),ce(1," Apollo not provided! "),T())}function H7(t,n){if(t&1){let e=se();I(0,"p-button",5),K("click",function(){let r=E(e).$implicit,o=m(2);return S(r.link?o.router.navigate([r.link]):null)}),T()}if(t&2){let e=n.$implicit,i=n.$index,r=n.$index,o=n.$count;k("w-full drop-shadow-lg"+(r===o-1&&i%2==0?" col-span-2":"")),h("label",e.title)("icon",e.icon)}}function $7(t,n){if(t&1&&(I(0,"app-base",0)(1,"div",1),ce(2," This is a demo of a PHX Frontend Plugin. "),ee(3,"br"),ce(4," Click the buttons below to navigate to the different pages. "),T(),ot(5,z7,2,0,"div",2),I(6,"div",3),Zo(7,H7,1,4,"p-button",4,j7),T()()),t&2){let e=m();h("title",bb("Hello ",e.userName(),"!"))("noHomeButton",!0),g(5),st(e.apolloProvided()?-1:5),g(2),Jo(e.routeItems())}}var Em=class t{constructor(n){this.apollo=n;this.init()}apollo;router=x(Pi);userName=_e(void 0);apolloProvided=We(()=>this.apollo.apollo()!==void 0);routeItems=ae([{title:"Product View",link:"/product-view",icon:"fa fa-boxes-stacked"},{title:"Address List",link:"/address-list",icon:"fa fa-address-card"}]);init(){return gt(this,null,function*(){let n="World";try{let e=yield vr(this.apollo.apollo().query({query:ZO}));if(!e.data?.me)return;n=e.data.me.identifier??"World";let i=yield vr(this.apollo.apollo().query({query:JO,variables:{id:e.data.me.id}}));if(i.data?.getUser?.activeEmployee){let r=[i.data.getUser.activeEmployee.name,i.data.getUser.activeEmployee.lastName].filter(Boolean);r.length>0&&(n=r.join(" "))}}catch(e){console.error(e)}finally{this.userName.set(n)}})}static \u0275fac=function(e){return new(e||t)(me(gs))};static \u0275cmp=$({type:t,selectors:[["app-hello-world"]],inputs:{routeItems:[1,"routeItems"]},decls:1,vars:1,consts:[[3,"title","noHomeButton"],[1,"text-muted-color","text-center","bg-white","border-2","rounded-lg","p-8","mb-4","drop-shadow-lg"],[1,"text-center","text-white","bg-red-500","border-2","rounded-lg","p-4","mb-4"],[1,"grid","grid-cols-2","gap-2","pt-4"],["size","large","styleClass","w-full","iconPos","top",3,"label","icon","class"],["size","large","styleClass","w-full","iconPos","top",3,"click","label","icon"]],template:function(e,i){e&1&&ot(0,$7,9,4,"app-base",0),e&2&&st(i.userName()?0:-1)},dependencies:[os,Ni],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.h-screen[_ngcontent-%COMP%]{height:100vh}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.w-screen[_ngcontent-%COMP%]{width:100vw}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes _ngcontent-%COMP%_fadein{0%{opacity:0}to{opacity:1}}.animate-fadein[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadein .5s ease-in-out}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-4xl[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20[_ngcontent-%COMP%]{opacity:.2}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-1000[_ngcontent-%COMP%]{transition-duration:1s}.animate-alternate[_ngcontent-%COMP%]{animation-direction:alternate}.animate-duration-\\__ph-0__[_ngcontent-%COMP%]{animation-duration:1.5s}.animate-infinite[_ngcontent-%COMP%]{animation-iteration-count:infinite}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var a2=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(me(Yi),me(un))};static \u0275dir=Ye({type:t})}return t})(),U7=(()=>{class t extends a2{static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275dir=Ye({type:t,features:[j]})}return t})(),Vn=new z("");var W7={provide:Vn,useExisting:Jt(()=>Mm),multi:!0};function G7(){let t=Mi()?Mi().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var q7=new z(""),Mm=(()=>{class t extends a2{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!G7())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(me(Yi),me(un),me(q7,8))};static \u0275dir=Ye({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&K("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},standalone:!1,features:[Se([W7]),j]})}return t})();var Q7=new z(""),K7=new z("");function l2(t){return t!=null}function c2(t){return Yo(t)?pt(t):t}function d2(t){let n={};return t.forEach(e=>{n=e!=null?_(_({},n),e):n}),Object.keys(n).length===0?null:n}function u2(t,n){return n.map(e=>e(t))}function Y7(t){return!t.validate}function p2(t){return t.map(n=>Y7(n)?n:e=>n.validate(e))}function Z7(t){if(!t)return null;let n=t.filter(l2);return n.length==0?null:function(e){return d2(u2(e,n))}}function f2(t){return t!=null?Z7(p2(t)):null}function J7(t){if(!t)return null;let n=t.filter(l2);return n.length==0?null:function(e){let i=u2(e,n).map(c2);return Lg(i).pipe(ye(d2))}}function h2(t){return t!=null?J7(p2(t)):null}function e2(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X7(t){return t._rawValidators}function e9(t){return t._rawAsyncValidators}function Z_(t){return t?Array.isArray(t)?t:[t]:[]}function Im(t,n){return Array.isArray(t)?t.includes(n):t===n}function t2(t,n){let e=Z_(n);return Z_(t).forEach(r=>{Im(e,r)||e.push(r)}),e}function n2(t,n){return Z_(n).filter(e=>!Im(t,e))}var Dm=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=f2(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=h2(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},J_=class extends Dm{name;get formDirective(){return null}get path(){return null}},mi=class extends Dm{_parent=null;name=null;valueAccessor=null},X_=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},t9={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},oNe=A(_({},t9),{"[class.ng-submitted]":"isSubmitted"}),mc=(()=>{class t extends X_{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(me(mi,2))};static \u0275dir=Ye({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&yl("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[j]})}return t})();var Su="VALID",Sm="INVALID",fc="PENDING",Iu="DISABLED",Ta=class{},km=class extends Ta{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Du=class extends Ta{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},ku=class extends Ta{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},hc=class extends Ta{status;source;constructor(n,e){super(),this.status=n,this.source=e}};var ew=class extends Ta{source;constructor(n){super(),this.source=n}};function n9(t){return(Om(t)?t.validators:t)||null}function i9(t){return Array.isArray(t)?f2(t):t||null}function r9(t,n){return(Om(n)?n.asyncValidators:t)||null}function o9(t){return Array.isArray(t)?h2(t):t||null}function Om(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var tw=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return vn(this.statusReactive)}set status(n){vn(()=>this.statusReactive.set(n))}_status=We(()=>this.statusReactive());statusReactive=_e(void 0);get valid(){return this.status===Su}get invalid(){return this.status===Sm}get pending(){return this.status==fc}get disabled(){return this.status===Iu}get enabled(){return this.status!==Iu}errors;get pristine(){return vn(this.pristineReactive)}set pristine(n){vn(()=>this.pristineReactive.set(n))}_pristine=We(()=>this.pristineReactive());pristineReactive=_e(!0);get dirty(){return!this.pristine}get touched(){return vn(this.touchedReactive)}set touched(n){vn(()=>this.touchedReactive.set(n))}_touched=We(()=>this.touchedReactive());touchedReactive=_e(!1);get untouched(){return!this.touched}_events=new Ge;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(t2(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(t2(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(n2(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(n2(n,this._rawAsyncValidators))}hasValidator(n){return Im(this._rawValidators,n)}hasAsyncValidator(n){return Im(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(A(_({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new ku(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new ku(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(A(_({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Du(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Du(!0,i))}markAsPending(n={}){this.status=fc;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new hc(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(A(_({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Iu,this.errors=null,this._forEachChild(r=>{r.disable(A(_({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new km(this.value,i)),this._events.next(new hc(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Su,this._forEachChild(i=>{i.enable(A(_({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(A(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Su||this.status===fc)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new km(this.value,e)),this._events.next(new hc(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(A(_({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Iu:Su}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=fc,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=c2(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new hc(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?Iu:this.errors?Sm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(fc)?fc:this._anyControlsHaveStatus(Sm)?Sm:Su}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Du(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ku(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Om(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=i9(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=o9(this._rawAsyncValidators)}};var m2=new z("",{providedIn:"root",factory:()=>nw}),nw="always";function s9(t,n){return[...n.path,t]}function a9(t,n,e=nw){c9(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),d9(t,n),p9(t,n),u9(t,n),l9(t,n)}function i2(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function l9(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function c9(t,n){let e=X7(t);n.validator!==null?t.setValidators(e2(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=e9(t);n.asyncValidator!==null?t.setAsyncValidators(e2(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();i2(n._rawValidators,r),i2(n._rawAsyncValidators,r)}function d9(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&g2(t,n)})}function u9(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&g2(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function g2(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function p9(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function f9(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function h9(t){return Object.getPrototypeOf(t.constructor)===U7}function m9(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===Mm?e=o:h9(o)?i=o:r=o}),r||i||e||null}function r2(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function o2(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var g9=class extends tw{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(n9(e),r9(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Om(e)&&(e.nonNullable||e.initialValueIsDefault)&&(o2(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new ew(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){r2(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){r2(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){o2(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var y9={provide:mi,useExisting:Jt(()=>Ea)},s2=Promise.resolve(),Ea=(()=>{class t extends mi{_changeDetectorRef;callSetDisabledState;control=new g9;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new H;constructor(e,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=m9(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),f9(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){a9(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){s2.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&R(i);s2.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?s9(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(me(J_,9),me(Q7,10),me(K7,10),me(Vn,10),me(Xo,8),me(m2,8))};static \u0275dir=Ye({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Se([y9]),j,po]})}return t})();var b9=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({})}return t})();var ys=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:m2,useValue:e.callSetDisabledState??nw}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[b9]})}return t})();var Rm=(()=>{class t extends ut{modelValue=_e(void 0);$filled=We(()=>lt(this.modelValue()));writeModelValue(e){this.modelValue.set(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275dir=Ye({type:t,features:[j]})}return t})();var Zr=(()=>{class t extends Rm{required=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});disabled=ae(void 0,{transform:R});name=ae();_disabled=_e(!1);$disabled=We(()=>this.disabled()||this._disabled());onModelChange=()=>{};onModelTouched=()=>{};writeDisabledState(e){this._disabled.set(e)}writeControlValue(e,i){}writeValue(e){this.writeControlValue(e,this.writeModelValue.bind(this))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.writeDisabledState(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275dir=Ye({type:t,inputs:{required:[1,"required"],invalid:[1,"invalid"],disabled:[1,"disabled"],name:[1,"name"]},features:[j]})}return t})();var gc=(()=>{class t extends Zr{pcFluid=x(Ul,{optional:!0,host:!0,skipSelf:!0});fluid=ae(void 0,{transform:R});variant=ae();size=ae();inputSize=ae();pattern=ae();min=ae();max=ae();step=ae();minlength=ae();maxlength=ae();$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275dir=Ye({type:t,inputs:{fluid:[1,"fluid"],variant:[1,"variant"],size:[1,"size"],inputSize:[1,"inputSize"],pattern:[1,"pattern"],min:[1,"min"],max:[1,"max"],step:[1,"step"],minlength:[1,"minlength"],maxlength:[1,"maxlength"]},features:[j]})}return t})();var y2=`
.p-iconfield {
position: relative;
display: block;
@@ -1197,7 +1197,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
height: dt('form.field.lg.font.size');
margin-top: calc(-1 * (dt('form.field.lg.font.size') / 2));
}
-`;var nj=["*"],rj={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},eR=(()=>{class t extends Oe{name="iconfield";style=X2;classes=rj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var tR=new H("ICONFIELD_INSTANCE"),Wm=(()=>{class t extends ut{hostName="";_componentStyle=x(eR);$pcIconField=x(tR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[xe([eR,{provide:tR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:nj,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},dependencies:[Qe,Wt],encapsulation:2,changeDetection:0})}return t})();var ij=["*"],oj={root:"p-inputicon"},nR=(()=>{class t extends Oe{name="inputicon";classes=oj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),rR=new H("INPUTICON_INSTANCE"),Gm=(()=>{class t extends ut{hostName="";styleClass;_componentStyle=x(nR);$pcInputIcon=x(rR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[xe([nR,{provide:rR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:ij,decls:1,vars:0,template:function(r,i){r&1&&(zt(),Ot(0))},dependencies:[Qe,Te,Wt],encapsulation:2,changeDetection:0})}return t})();var iR=`
+`;var v9=["*"],_9={root:({instance:t})=>["p-iconfield",{"p-iconfield-left":t.iconPosition=="left","p-iconfield-right":t.iconPosition=="right"}]},b2=(()=>{class t extends Me{name="iconfield";style=y2;classes=_9;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var v2=new z("ICONFIELD_INSTANCE"),Pm=(()=>{class t extends ut{hostName="";_componentStyle=x(b2);$pcIconField=x(v2,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}iconPosition="left";styleClass;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-iconfield"],["p-iconField"],["p-icon-field"]],hostVars:2,hostBindings:function(i,r){i&2&&k(r.cn(r.cx("root"),r.styleClass))},inputs:{hostName:"hostName",iconPosition:"iconPosition",styleClass:"styleClass"},features:[Se([b2,{provide:v2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],ngContentSelectors:v9,decls:1,vars:0,template:function(i,r){i&1&&(zt(),Ot(0))},dependencies:[qe,Wt],encapsulation:2,changeDetection:0})}return t})();var w9=["*"],C9={root:"p-inputicon"},_2=(()=>{class t extends Me{name="inputicon";classes=C9;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),w2=new z("INPUTICON_INSTANCE"),Am=(()=>{class t extends ut{hostName="";styleClass;_componentStyle=x(_2);$pcInputIcon=x(w2,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-inputicon"],["p-inputIcon"]],hostVars:2,hostBindings:function(i,r){i&2&&k(r.cn(r.cx("root"),r.styleClass))},inputs:{hostName:"hostName",styleClass:"styleClass"},features:[Se([_2,{provide:w2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],ngContentSelectors:w9,decls:1,vars:0,template:function(i,r){i&1&&(zt(),Ot(0))},dependencies:[qe,xe,Wt],encapsulation:2,changeDetection:0})}return t})();var C2=`
.p-inputtext {
font-family: inherit;
font-feature-settings: inherit;
@@ -1275,8 +1275,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-inputtext-fluid {
width: 100%;
}
-`;var sj=`
- ${iR}
+`;var x9=`
+ ${C2}
/* For PrimeNG */
.p-inputtext.ng-invalid.ng-dirty {
@@ -1286,7 +1286,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-inputtext.ng-invalid.ng-dirty::placeholder {
color: dt('inputtext.invalid.placeholder.color');
}
-`,aj={root:({instance:t})=>["p-inputtext p-component",{"p-filled":t.$filled(),"p-inputtext-sm":t.pSize==="small","p-inputtext-lg":t.pSize==="large","p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-inputtext-fluid":t.hasFluid}]},oR=(()=>{class t extends Oe{name="inputtext";style=sj;classes=aj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var sR=new H("INPUTTEXT_INSTANCE"),to=(()=>{class t extends Um{hostName="";ptInputText=ae();bindDirectiveInstance=x(te,{self:!0});$pcInputText=x(sR,{optional:!0,skipSelf:!0})??void 0;ngControl=x(Yn,{optional:!0,self:!0});pcFluid=x(Gl,{optional:!0,host:!0,skipSelf:!0});pSize;variant=ae();fluid=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=x(oR);constructor(){super(),Lt(()=>{this.ptInputText()&&this.directivePT.set(this.ptInputText())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["","pInputText",""]],hostVars:2,hostBindings:function(r,i){r&1&&q("input",function(s){return i.onInput(s)}),r&2&&k(i.cx("root"))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[xe([oR,{provide:sR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j]})}return t})(),aR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({})}return t})();var Ne=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Ne||{}),Br="*";function Fu(t,n){return{type:Ne.Trigger,name:t,definitions:n,options:{}}}function Po(t,n=null){return{type:Ne.Animate,styles:n,timings:t}}function lR(t,n=null){return{type:Ne.Sequence,steps:t,options:n}}function sr(t){return{type:Ne.Style,styles:t,offset:null}}function xw(t,n,e){return{type:Ne.State,name:t,styles:n,options:e}}function Ao(t,n,e=null){return{type:Ne.Transition,expr:t,animation:n,options:e}}function qm(t,n=null){return{type:Ne.Reference,animation:t,options:n}}function Qm(t,n=null){return{type:Ne.AnimateRef,animation:t,options:n}}var no=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},ka=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,r=0,i=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++r==o&&this._onDestroy()}),s.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(r=>{let i=r.totalTime?Math.min(1,e/r.totalTime):1;r.setPosition(i)})}getPosition(){let n=this.players.reduce((e,r)=>e===null||r.totalTime>e.totalTime?r:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(r=>r()),e.length=0}},_c="!";var cR=["content"],lj=["overlay"],cj=["*"],dj=(t,n,e)=>({showTransitionParams:t,hideTransitionParams:n,transform:e}),uj=t=>({value:"visible",params:t}),pj=t=>({mode:t}),fj=t=>({$implicit:t});function hj(t,n){t&1&&ne(0)}function mj(t,n){if(t&1){let e=se();E(0,"div",3,1),q("click",function(i){S(e);let o=m(2);return I(o.onOverlayContentClick(i))})("@overlayContentAnimation.start",function(i){S(e);let o=m(2);return I(o.onOverlayContentAnimationStart(i))})("@overlayContentAnimation.done",function(i){S(e);let o=m(2);return I(o.onOverlayContentAnimationDone(i))}),Ot(2),C(3,hj,1,0,"ng-container",4),T()}if(t&2){let e=m(2);k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content"))("@overlayContentAnimation",Ee(10,uj,Ob(6,dj,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),g(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Ee(14,fj,Ee(12,pj,e.overlayMode)))}}function gj(t,n){if(t&1){let e=se();E(0,"div",3,0),q("click",function(){S(e);let i=m();return I(i.onOverlayClick())}),C(2,mj,4,16,"div",2),T()}if(t&2){let e=m();k(e.cn(e.cx("root"),e.styleClass)),h("pBind",e.ptm("root")),g(2),h("ngIf",e.visible)}}var yj=`
+`,T9={root:({instance:t})=>["p-inputtext p-component",{"p-filled":t.$filled(),"p-inputtext-sm":t.pSize==="small","p-inputtext-lg":t.pSize==="large","p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-inputtext-fluid":t.hasFluid}]},x2=(()=>{class t extends Me{name="inputtext";style=x9;classes=T9;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var T2=new z("INPUTTEXT_INSTANCE"),bs=(()=>{class t extends Rm{hostName="";ptInputText=ae();bindDirectiveInstance=x(te,{self:!0});$pcInputText=x(T2,{optional:!0,skipSelf:!0})??void 0;ngControl=x(mi,{optional:!0,self:!0});pcFluid=x(Ul,{optional:!0,host:!0,skipSelf:!0});pSize;variant=ae();fluid=ae(void 0,{transform:R});invalid=ae(void 0,{transform:R});$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());_componentStyle=x(x2);constructor(){super(),Lt(()=>{this.ptInputText()&&this.directivePT.set(this.ptInputText())})}onAfterViewInit(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value),this.cd.detectChanges()}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("root"))}onDoCheck(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}onInput(){this.writeModelValue(this.ngControl?.value??this.el.nativeElement.value)}get hasFluid(){return this.fluid()??!!this.pcFluid}static \u0275fac=function(i){return new(i||t)};static \u0275dir=Ye({type:t,selectors:[["","pInputText",""]],hostVars:2,hostBindings:function(i,r){i&1&&K("input",function(s){return r.onInput(s)}),i&2&&k(r.cx("root"))},inputs:{hostName:"hostName",ptInputText:[1,"ptInputText"],pSize:"pSize",variant:[1,"variant"],fluid:[1,"fluid"],invalid:[1,"invalid"]},features:[Se([x2,{provide:T2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j]})}return t})(),E2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({})}return t})();var Ne=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(Ne||{}),Li="*";function Mu(t,n){return{type:Ne.Trigger,name:t,definitions:n,options:{}}}function Mo(t,n=null){return{type:Ne.Animate,styles:n,timings:t}}function S2(t,n=null){return{type:Ne.Sequence,steps:t,options:n}}function ii(t){return{type:Ne.Style,styles:t,offset:null}}function rw(t,n,e){return{type:Ne.State,name:t,styles:n,options:e}}function Oo(t,n,e=null){return{type:Ne.Transition,expr:t,animation:n,options:e}}function Nm(t,n=null){return{type:Ne.Reference,animation:t,options:n}}function Fm(t,n=null){return{type:Ne.AnimateRef,animation:t,options:n}}var Jr=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Sa=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},yc="!";var I2=["content"],E9=["overlay"],S9=["*"],I9=(t,n,e)=>({showTransitionParams:t,hideTransitionParams:n,transform:e}),D9=t=>({value:"visible",params:t}),k9=t=>({mode:t}),M9=t=>({$implicit:t});function O9(t,n){t&1&&ne(0)}function R9(t,n){if(t&1){let e=se();I(0,"div",3,1),K("click",function(r){E(e);let o=m(2);return S(o.onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){E(e);let o=m(2);return S(o.onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){E(e);let o=m(2);return S(o.onOverlayContentAnimationDone(r))}),Ot(2),C(3,O9,1,0,"ng-container",4),T()}if(t&2){let e=m(2);k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content"))("@overlayContentAnimation",Te(10,D9,vb(6,I9,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),g(3),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Te(14,M9,Te(12,k9,e.overlayMode)))}}function P9(t,n){if(t&1){let e=se();I(0,"div",3,0),K("click",function(){E(e);let r=m();return S(r.onOverlayClick())}),C(2,R9,4,16,"div",2),T()}if(t&2){let e=m();k(e.cn(e.cx("root"),e.styleClass)),h("pBind",e.ptm("root")),g(2),h("ngIf",e.visible)}}var A9=`
.p-overlay {
position: absolute;
top: 0;
@@ -1373,7 +1373,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-overlay-content ~ .p-overlay-content {
display: none;
}
-`,bj={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},dR=(()=>{class t extends Oe{name="overlay";style=yj;classes=bj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),uR=new H("OVERLAY_INSTANCE"),vj=qm([sr({transform:"{{transform}}",opacity:0}),Po("{{showTransitionParams}}")]),_j=qm([Po("{{hideTransitionParams}}",sr({transform:"{{transform}}",opacity:0}))]),pR=(()=>{class t extends ut{overlayService;zone;$pcOverlay=x(uR,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return Pe.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Pe.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Pe.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Pe.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=ae(void 0);visibleChange=new z;onBeforeShow=new z;onShow=new z;onBeforeHide=new z;onHide=new z;onAnimationStart=new z;onAnimationDone=new z;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=ae();$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=x(dR);bindDirectiveInstance=x(te,{self:!0});documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(kn(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return _(_({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return _(_({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Bv(this.target,this.el?.nativeElement)}constructor(e,r){super(),this.overlayService=e,this.zone=r}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,r=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),r&&ii(this.targetEl),this.modal&&ri(this.document?.body,"p-overflow-hidden")}hide(e,r=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),r&&ii(this.targetEl),this.modal&&Bi(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&De.alignOverlay(this.overlayEl,this.targetEl,this.$appendTo())}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&ir.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),De.appendOverlay(this.overlayEl,this.$appendTo()==="body"?this.document.body:this.$appendTo(),this.$appendTo()),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&ri(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let r=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(r,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(r,!0),this.modalVisible=!1,this.unbindListeners(),De.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),ir.clear(r),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,r){this[e].emit(r),this.options&&this.options[e]&&this.options[e](r),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](r)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new xo(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let i=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&i}):i)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!_o()}):!_o())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!_o()}):!_o())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),ir.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(r){return new(r||t)(de(zl),de($e))};static \u0275cmp=$({type:t,selectors:[["p-overlay"]],contentQueries:function(r,i,o){if(r&1&&(V(o,cR,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(lj,5),ct(cR,5)),r&2){let o;M(o=O())&&(i.overlayViewChild=o.first),M(o=O())&&(i.contentViewChild=o.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[xe([dR,{provide:uR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:cj,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&(zt(),C(0,gj,3,4,"div",2)),r&2&&h("ngIf",i.modalVisible)},dependencies:[Qe,Ut,kt,Te,te],encapsulation:2,data:{animation:[Fu("overlayContentAnimation",[Ao(":enter",[Qm(vj)]),Ao(":leave",[Qm(_j)])])]},changeDetection:0})}return t})();var fR=["content"],wj=["item"],Cj=["loader"],xj=["loadericon"],Tj=["element"],Ej=["*"],Tw=(t,n)=>({$implicit:t,options:n}),Sj=t=>({numCols:t}),gR=t=>({options:t}),Ij=()=>({styleClass:"p-virtualscroller-loading-icon"}),Dj=(t,n)=>({rows:t,columns:n});function kj(t,n){t&1&&ne(0)}function Mj(t,n){if(t&1&&(ie(0),C(1,kj,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(2,Tw,e.loadedItems,e.getContentOptions()))}}function Oj(t,n){t&1&&ne(0)}function Rj(t,n){if(t&1&&(ie(0),C(1,Oj,1,0,"ng-container",10),oe()),t&2){let e=n.$implicit,r=n.index,i=m(3);g(),h("ngTemplateOutlet",i.itemTemplate||i._itemTemplate)("ngTemplateOutletContext",Dt(2,Tw,e,i.getOptions(r)))}}function Pj(t,n){if(t&1&&(E(0,"div",11,3),C(2,Rj,2,5,"ng-container",12),T()),t&2){let e=m(2);Dn(e.contentStyle),k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content")),g(2),h("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function Aj(t,n){if(t&1&&X(0,"div",13),t&2){let e=m(2);k(e.cx("spacer")),h("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function Nj(t,n){t&1&&ne(0)}function Fj(t,n){if(t&1&&(ie(0),C(1,Nj,1,0,"ng-container",10),oe()),t&2){let e=n.index,r=m(4);g(),h("ngTemplateOutlet",r.loaderTemplate||r._loaderTemplate)("ngTemplateOutletContext",Ee(4,gR,r.getLoaderOptions(e,r.both&&Ee(2,Sj,r.numItemsInViewport.cols))))}}function Lj(t,n){if(t&1&&(ie(0),C(1,Fj,2,6,"ng-container",14),oe()),t&2){let e=m(3);g(),h("ngForOf",e.loaderArr)}}function Bj(t,n){t&1&&ne(0)}function Vj(t,n){if(t&1&&(ie(0),C(1,Bj,1,0,"ng-container",10),oe()),t&2){let e=m(4);g(),h("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",Ee(3,gR,Pi(2,Ij)))}}function jj(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(4);k(e.cx("loadingIcon")),h("spin",!0)("pBind",e.ptm("loadingIcon"))}}function zj(t,n){if(t&1&&C(0,Vj,2,5,"ng-container",6)(1,jj,1,4,"ng-template",null,5,at),t&2){let e=pn(2),r=m(3);h("ngIf",r.loaderIconTemplate||r._loaderIconTemplate)("ngIfElse",e)}}function Hj(t,n){if(t&1&&(E(0,"div",11),C(1,Lj,2,1,"ng-container",6)(2,zj,3,2,"ng-template",null,4,at),T()),t&2){let e=pn(3),r=m(2);k(r.cx("loader")),h("pBind",r.ptm("loader")),g(),h("ngIf",r.loaderTemplate||r._loaderTemplate)("ngIfElse",e)}}function $j(t,n){if(t&1){let e=se();ie(0),E(1,"div",7,1),q("scroll",function(i){S(e);let o=m();return I(o.onContainerScroll(i))}),C(3,Mj,2,5,"ng-container",6)(4,Pj,3,7,"ng-template",null,2,at)(6,Aj,1,4,"div",8)(7,Hj,4,5,"div",9),T(),oe()}if(t&2){let e=pn(5),r=m();g(),k(r.cn(r.cx("root"),r.styleClass)),h("ngStyle",r._style)("pBind",r.ptm("root")),J("id",r._id)("tabindex",r.tabindex),g(2),h("ngIf",r.contentTemplate||r._contentTemplate)("ngIfElse",e),g(3),h("ngIf",r._showSpacer),g(),h("ngIf",!r.loaderDisabled&&r._showLoader&&r.d_loading)}}function Uj(t,n){t&1&&ne(0)}function Wj(t,n){if(t&1&&(ie(0),C(1,Uj,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(5,Tw,e.items,Dt(2,Dj,e._items,e.loadedColumns)))}}function Gj(t,n){if(t&1&&(Ot(0),C(1,Wj,2,8,"ng-container",16)),t&2){let e=m();g(),h("ngIf",e.contentTemplate||e._contentTemplate)}}var qj=`
+`,N9={host:"p-overlay-host",root:({instance:t})=>["p-overlay p-component",{"p-overlay-modal p-overlay-mask p-overlay-mask-enter":t.modal,"p-overlay-center":t.modal&&t.overlayResponsiveDirection==="center","p-overlay-top":t.modal&&t.overlayResponsiveDirection==="top","p-overlay-top-start":t.modal&&t.overlayResponsiveDirection==="top-start","p-overlay-top-end":t.modal&&t.overlayResponsiveDirection==="top-end","p-overlay-bottom":t.modal&&t.overlayResponsiveDirection==="bottom","p-overlay-bottom-start":t.modal&&t.overlayResponsiveDirection==="bottom-start","p-overlay-bottom-end":t.modal&&t.overlayResponsiveDirection==="bottom-end","p-overlay-left":t.modal&&t.overlayResponsiveDirection==="left","p-overlay-left-start":t.modal&&t.overlayResponsiveDirection==="left-start","p-overlay-left-end":t.modal&&t.overlayResponsiveDirection==="left-end","p-overlay-right":t.modal&&t.overlayResponsiveDirection==="right","p-overlay-right-start":t.modal&&t.overlayResponsiveDirection==="right-start","p-overlay-right-end":t.modal&&t.overlayResponsiveDirection==="right-end"}],content:"p-overlay-content"},D2=(()=>{class t extends Me{name="overlay";style=A9;classes=N9;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})(),k2=new z("OVERLAY_INSTANCE"),F9=Nm([ii({transform:"{{transform}}",opacity:0}),Mo("{{showTransitionParams}}")]),L9=Nm([Mo("{{hideTransitionParams}}",ii({transform:"{{transform}}",opacity:0}))]),M2=(()=>{class t extends ut{overlayService;zone;$pcOverlay=x(k2,{optional:!0,skipSelf:!0})??void 0;hostName="";get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return Pe.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Pe.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Pe.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Pe.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){let e=this._target||this.overlayOptions?.target;return e===void 0?"@prev":e}set target(e){this._target=e}get autoZIndex(){let e=this._autoZIndex||this.overlayOptions?.autoZIndex;return e===void 0?!0:e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){let e=this._baseZIndex||this.overlayOptions?.baseZIndex;return e===void 0?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){let e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return e===void 0?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){let e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return e===void 0?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}appendTo=ae(void 0);visibleChange=new H;onBeforeShow=new H;onShow=new H;onBeforeHide=new H;onHide=new H;onAnimationStart=new H;onAnimationDone=new H;overlayViewChild;contentViewChild;contentTemplate;templates;hostAttrSelector=ae();$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());_contentTemplate;_visible=!1;_mode;_style;_styleClass;_contentStyle;_contentStyleClass;_target;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_listener;_responsive;_options;modalVisible=!1;isOverlayClicked=!1;isOverlayContentClicked=!1;scrollHandler;documentClickListener;documentResizeListener;_componentStyle=x(D2);bindDirectiveInstance=x(te,{self:!0});documentKeyboardListener;window;transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"};get modal(){if(kn(this.platformId))return this.mode==="modal"||this.overlayResponsiveOptions&&this.document.defaultView?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return _(_({},this.config?.overlayOptions),this.options)}get overlayResponsiveOptions(){return _(_({},this.overlayOptions?.responsive),this.responsive)}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return Sv(this.target,this.el?.nativeElement)}constructor(e,i){super(),this.overlayService=e,this.zone=i}onAfterContentInit(){this.templates?.forEach(e=>{e.getType()==="content"?this._contentTemplate=e.template:this._contentTemplate=e.template})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&nr(this.targetEl),this.modal&&tr(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){if(this.visible)this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&nr(this.targetEl),this.modal&&Lr(this.document?.body,"p-overflow-hidden");else return}alignOverlay(){!this.modal&&Ie.alignOverlay(this.overlayEl,this.targetEl,this.$appendTo())}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&ti.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),this.hostAttrSelector()&&this.overlayEl&&this.overlayEl.setAttribute(this.hostAttrSelector(),""),Ie.appendOverlay(this.overlayEl,this.$appendTo()==="body"?this.document.body:this.$appendTo(),this.$appendTo()),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&tr(this.overlayEl,"p-overlay-mask-leave");break}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){let i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.visible&&(this.show(i,!0),this.bindListeners());break;case"void":if(!this.visible){this.hide(i,!0),this.modalVisible=!1,this.unbindListeners(),Ie.appendOverlay(this.overlayEl,this.targetEl,this.$appendTo()),ti.clear(i),this.cd.markForCheck();break}}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&(this.config?.overlayOptions)[e]&&(this.config?.overlayOptions)[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new _o(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{let r=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target)))&&!this.isOverlayContentClicked;(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:e.which!==3&&r}):r)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!yo()}):!yo())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.document.defaultView,"keydown",e=>{if(this.overlayOptions.hideOnEscape===!1||e.code!=="Escape")return;(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!yo()}):!yo())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}onDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&this.$appendTo()!=="self"&&(this.renderer.appendChild(this.el.nativeElement,this.overlayEl),ti.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}static \u0275fac=function(i){return new(i||t)(me(Vl),me($e))};static \u0275cmp=$({type:t,selectors:[["p-overlay"]],contentQueries:function(i,r,o){if(i&1&&(V(o,I2,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.contentTemplate=s.first),M(s=O())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(ct(E9,5),ct(I2,5)),i&2){let o;M(o=O())&&(r.overlayViewChild=o.first),M(o=O())&&(r.contentViewChild=o.first)}},inputs:{hostName:"hostName",visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options",appendTo:[1,"appendTo"],hostAttrSelector:[1,"hostAttrSelector"]},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Se([D2,{provide:k2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],ngContentSelectors:S9,decls:1,vars:1,consts:[["overlay",""],["content",""],[3,"class","pBind","click",4,"ngIf"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&(zt(),C(0,P9,3,4,"div",2)),i&2&&h("ngIf",r.modalVisible)},dependencies:[qe,Ut,kt,xe,te],encapsulation:2,data:{animation:[Mu("overlayContentAnimation",[Oo(":enter",[Fm(F9)]),Oo(":leave",[Fm(L9)])])]},changeDetection:0})}return t})();var O2=["content"],B9=["item"],V9=["loader"],j9=["loadericon"],z9=["element"],H9=["*"],ow=(t,n)=>({$implicit:t,options:n}),$9=t=>({numCols:t}),A2=t=>({options:t}),U9=()=>({styleClass:"p-virtualscroller-loading-icon"}),W9=(t,n)=>({rows:t,columns:n});function G9(t,n){t&1&&ne(0)}function q9(t,n){if(t&1&&(re(0),C(1,G9,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(2,ow,e.loadedItems,e.getContentOptions()))}}function Q9(t,n){t&1&&ne(0)}function K9(t,n){if(t&1&&(re(0),C(1,Q9,1,0,"ng-container",10),oe()),t&2){let e=n.$implicit,i=n.index,r=m(3);g(),h("ngTemplateOutlet",r.itemTemplate||r._itemTemplate)("ngTemplateOutletContext",Dt(2,ow,e,r.getOptions(i)))}}function Y9(t,n){if(t&1&&(I(0,"div",11,3),C(2,K9,2,5,"ng-container",12),T()),t&2){let e=m(2);Dn(e.contentStyle),k(e.cn(e.cx("content"),e.contentStyleClass)),h("pBind",e.ptm("content")),g(2),h("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy)}}function Z9(t,n){if(t&1&&ee(0,"div",13),t&2){let e=m(2);k(e.cx("spacer")),h("ngStyle",e.spacerStyle)("pBind",e.ptm("spacer"))}}function J9(t,n){t&1&&ne(0)}function X9(t,n){if(t&1&&(re(0),C(1,J9,1,0,"ng-container",10),oe()),t&2){let e=n.index,i=m(4);g(),h("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",Te(4,A2,i.getLoaderOptions(e,i.both&&Te(2,$9,i.numItemsInViewport.cols))))}}function ej(t,n){if(t&1&&(re(0),C(1,X9,2,6,"ng-container",14),oe()),t&2){let e=m(3);g(),h("ngForOf",e.loaderArr)}}function tj(t,n){t&1&&ne(0)}function nj(t,n){if(t&1&&(re(0),C(1,tj,1,0,"ng-container",10),oe()),t&2){let e=m(4);g(),h("ngTemplateOutlet",e.loaderIconTemplate||e._loaderIconTemplate)("ngTemplateOutletContext",Te(3,A2,Rr(2,U9)))}}function ij(t,n){if(t&1&&(G(),ee(0,"svg",15)),t&2){let e=m(4);k(e.cx("loadingIcon")),h("spin",!0)("pBind",e.ptm("loadingIcon"))}}function rj(t,n){if(t&1&&C(0,nj,2,5,"ng-container",6)(1,ij,1,4,"ng-template",null,5,at),t&2){let e=pn(2),i=m(3);h("ngIf",i.loaderIconTemplate||i._loaderIconTemplate)("ngIfElse",e)}}function oj(t,n){if(t&1&&(I(0,"div",11),C(1,ej,2,1,"ng-container",6)(2,rj,3,2,"ng-template",null,4,at),T()),t&2){let e=pn(3),i=m(2);k(i.cx("loader")),h("pBind",i.ptm("loader")),g(),h("ngIf",i.loaderTemplate||i._loaderTemplate)("ngIfElse",e)}}function sj(t,n){if(t&1){let e=se();re(0),I(1,"div",7,1),K("scroll",function(r){E(e);let o=m();return S(o.onContainerScroll(r))}),C(3,q9,2,5,"ng-container",6)(4,Y9,3,7,"ng-template",null,2,at)(6,Z9,1,4,"div",8)(7,oj,4,5,"div",9),T(),oe()}if(t&2){let e=pn(5),i=m();g(),k(i.cn(i.cx("root"),i.styleClass)),h("ngStyle",i._style)("pBind",i.ptm("root")),J("id",i._id)("tabindex",i.tabindex),g(2),h("ngIf",i.contentTemplate||i._contentTemplate)("ngIfElse",e),g(3),h("ngIf",i._showSpacer),g(),h("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function aj(t,n){t&1&&ne(0)}function lj(t,n){if(t&1&&(re(0),C(1,aj,1,0,"ng-container",10),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",Dt(5,ow,e.items,Dt(2,W9,e._items,e.loadedColumns)))}}function cj(t,n){if(t&1&&(Ot(0),C(1,lj,2,8,"ng-container",16)),t&2){let e=m();g(),h("ngIf",e.contentTemplate||e._contentTemplate)}}var dj=`
.p-virtualscroller {
position: relative;
overflow: auto;
@@ -1431,7 +1431,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-virtualscroller-inline .p-virtualscroller-content {
position: static;
}
-`,Qj={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},hR=(()=>{class t extends Oe{name="virtualscroller";css=qj;classes=Qj;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var mR=new H("SCROLLER_INSTANCE"),Lu=(()=>{class t extends ut{zone;componentName="virtualScroller";bindDirectiveInstance=x(te,{self:!0});$pcScroller=x(mR,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([r,i])=>this[`_${r}`]!==i&&(this[`_${r}`]=i)),Object.entries(e).forEach(([r,i])=>this[`${r}`]!==i&&(this[`${r}`]=i)))}onLazyLoad=new z;onScroll=new z;onScrollIndexChange=new z;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=x(hR);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let r=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:i,currentValue:o}=e.loading;this.lazy&&i!==o&&o!==this.d_loading&&(this.d_loading=o,r=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:i,currentValue:o}=e.numToleratedItems;i!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:i,currentValue:o}=e.options;this.lazy&&i?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,r=!0),i?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!r&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){kn(this.platformId)&&!this.initialized&&Vv(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=zi(this.elementViewChild?.nativeElement),this.defaultHeight=ji(this.elementViewChild?.nativeElement),this.defaultContentWidth=zi(this.contentEl),this.defaultContentHeight=ji(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||wt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,r="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),c=this.getContentPosition(),d=this.itemSize,u=(w=0,D)=>w<=D?0:w,p=(w,D,P)=>w*D+P,f=(w=0,D=0)=>this.scrollTo({left:w,top:D,behavior:r}),y=this.both?{rows:0,cols:0}:0,b=!1,v=!1;this.both?(y={rows:u(e[0],l[0]),cols:u(e[1],l[1])},f(p(y.cols,d[1],c.left),p(y.rows,d[0],c.top)),v=this.lastScrollPos.top!==s||this.lastScrollPos.left!==a,b=y.rows!==o.rows||y.cols!==o.cols):(y=u(e,l),this.horizontal?f(p(y,d,c.left),s):f(a,p(y,d,c.top)),v=this.lastScrollPos!==(this.horizontal?a:s),b=y!==o),this.isRangeChanged=b,v&&(this.first=y)}}scrollInView(e,r,i="auto"){if(r){let{first:o,viewport:s}=this.getRenderedRange(),a=(d=0,u=0)=>this.scrollTo({left:d,top:u,behavior:i}),l=r==="to-start",c=r==="to-end";if(l){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let d=(s.first-1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}else if(c){if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let d=(s.first+1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}}else this.scrollToIndex(e,i)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,r=this.first,i=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)r={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},i={rows:r.rows+this.numItemsInViewport.rows,cols:r.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?s:o;r=e(a,this._itemSize),i=r+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:r,last:i}}}calculateNumItems(){let e=this.getContentPosition(),r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(c,d)=>d||c?Math.ceil(c/(d||c)):0,s=c=>Math.ceil(c/2),a=this.both?{rows:o(i,this._itemSize[0]),cols:o(r,this._itemSize[1])}:o(this.horizontal?r:i,this._itemSize),l=this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a));return{numItemsInViewport:a,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:r}=this.calculateNumItems(),i=(a,l,c,d=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,r]=[zi(this.contentEl),ji(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),r!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[i,o]=[zi(this.elementViewChild.nativeElement),ji(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=ie.style[u]=p;this.both||this.horizontal?(d("height",c),d("width",s)):d("height",c)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),r=(i,o,s,a=0)=>this.spacerStyle=A(_({},this.spacerStyle),{[`${i}`]:(o||[]).length*s+a+"px"});this.both?(r("height",this._items,this._itemSize[0],e.y),r("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?r("width",this._columns||this._items,this._itemSize,e.x):r("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let r=e?e.first:this.first,i=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle=A(_({},this.contentStyle),{transform:`translate3d(${s}px, ${a}px, 0)`});if(this.both)o(i(r.cols,this._itemSize[1]),i(r.rows,this._itemSize[0]));else{let s=i(r,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let r=e.target;if(!r)throw new Error("Event target is null");let i=this.getContentPosition(),o=(v,w)=>v?v>w?v-w:v:0,s=(v,w)=>w||v?Math.floor(v/(w||v)):0,a=(v,w,D,P,B,Y)=>v<=B?B:Y?D-P-B:w+B-1,l=(v,w,D,P,B,Y,ye)=>v<=Y?0:Math.max(0,ye?vw?D:v-2*Y),c=(v,w,D,P,B,Y=!1)=>{let ye=w+P+2*B;return v>=B&&(ye+=B+1),this.getLast(ye,Y)},d=o(r.scrollTop,i.top),u=o(r.scrollLeft,i.left),p=this.both?{rows:0,cols:0}:0,f=this.last,y=!1,b=this.lastScrollPos;if(this.both){let v=this.lastScrollPos.top<=d,w=this.lastScrollPos.left<=u;if(!this._appendOnly||this._appendOnly&&(v||w)){let D={rows:s(d,this._itemSize[0]),cols:s(u,this._itemSize[1])},P={rows:a(D.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:a(D.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)};p={rows:l(D.rows,P.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:l(D.cols,P.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)},f={rows:c(D.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(D.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},y=p.rows!==this.first.rows||f.rows!==this.last.rows||p.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,b={top:d,left:u}}}else{let v=this.horizontal?u:d,w=this.lastScrollPos<=v;if(!this._appendOnly||this._appendOnly&&w){let D=s(v,this._itemSize),P=a(D,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w);p=l(D,P,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w),f=c(D,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),y=p!==this.first||f!==this.last||this.isRangeChanged,b=v}}return{first:p,last:f,isRangeChanged:y,scrollPos:b}}onScrollChange(e){let{first:r,last:i,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let a={first:r,last:i};if(this.setContentPosition(a),this.first=r,this.last=i,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(r)){let l={first:this._step?Math.min(this.getPageByFirst(r)*this._step,this._items.length-this._step):r,last:Math.min(this._step?(this.getPageByFirst(r)+1)*this._step:i,this._items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:r}=this.onScrollPositionChange(e);(r||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){kn(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,r=_o()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,r,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Vv(this.elementViewChild?.nativeElement)){let[e,r]=[zi(this.elementViewChild?.nativeElement),ji(this.elementViewChild?.nativeElement)],[i,o]=[e!==this.defaultWidth,r!==this.defaultHeight];(this.both?i||o:this.horizontal?i:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=r,this.defaultContentWidth=zi(this.contentEl),this.defaultContentHeight=ji(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,r){return this.options&&this.options[e]?this.options[e](r):this[e].emit(r)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,r)=>this.getLoaderOptions(e,r),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let r=(this._items||[]).length,i=this.both?this.first.rows+e:this.first+e;return{index:i,count:r,first:i===0,last:i===r-1,even:i%2===0,odd:i%2!==0}}getLoaderOptions(e,r){let i=this.loaderArr.length;return _({index:e,count:i,first:e===0,last:e===i-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},r)}static \u0275fac=function(r){return new(r||t)(de($e))};static \u0275cmp=$({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(r,i,o){if(r&1&&(V(o,fR,4),V(o,wj,4),V(o,Cj,4),V(o,xj,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.loaderTemplate=s.first),M(s=O())&&(i.loaderIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(Tj,5),ct(fR,5)),r&2){let o;M(o=O())&&(i.elementViewChild=o.first),M(o=O())&&(i.contentViewChild=o.first)}},hostVars:2,hostBindings:function(r,i){r&2&&er("height",i.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[xe([hR,{provide:mR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:Ej,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(r,i){if(r&1&&(zt(),C(0,$j,8,10,"ng-container",6)(1,Gj,2,1,"ng-template",null,0,at)),r&2){let o=pn(2);h("ngIf",!i._disabled)("ngIfElse",o)}},dependencies:[Qe,Ar,Ut,kt,tr,To,Te,te],encapsulation:2})}return t})(),Ew=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Lu,Te,Te]})}return t})();var yR=`
+`,uj={root:({instance:t})=>["p-virtualscroller",{"p-virtualscroller-inline":t.inline,"p-virtualscroller-both p-both-scroll":t.both,"p-virtualscroller-horizontal p-horizontal-scroll":t.horizontal}],content:"p-virtualscroller-content",spacer:"p-virtualscroller-spacer",loader:({instance:t})=>["p-virtualscroller-loader",{"p-virtualscroller-loader-mask":!t.loaderTemplate}],loadingIcon:"p-virtualscroller-loading-icon"},R2=(()=>{class t extends Me{name="virtualscroller";css=dj;classes=uj;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var P2=new z("SCROLLER_INSTANCE"),Ou=(()=>{class t extends ut{zone;componentName="virtualScroller";bindDirectiveInstance=x(te,{self:!0});$pcScroller=x(P2,{optional:!0,skipSelf:!0})??void 0;hostName="";get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&typeof e=="object"&&(Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r)),Object.entries(e).forEach(([i,r])=>this[`${i}`]!==r&&(this[`${i}`]=r)))}onLazyLoad=new H;onScroll=new H;onScrollIndexChange=new H;elementViewChild;contentViewChild;height;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;_contentStyleClass;get contentStyleClass(){return this._contentStyleClass}set contentStyleClass(e){this._contentStyleClass=e}get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:Array.isArray(e)?e.slice(this._appendOnly?0:this.first.cols,this.last.cols):e):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=x(R2);constructor(e){super(),this.zone=e}onInit(){this.setInitialState()}onChanges(e){let i=!1;if(this.scrollHeight=="100%"&&(this.height="100%"),e.loading){let{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){let{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){let{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&(this.init(),this.calculateAutoSize())}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"loadericon":this._loaderIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewInit(){Promise.resolve().then(()=>{this.viewInit()})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host")),this.initialized||this.viewInit()}onDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){kn(this.platformId)&&!this.initialized&&Iv(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=jr(this.elementViewChild?.nativeElement),this.defaultHeight=Vr(this.elementViewChild?.nativeElement),this.defaultContentWidth=jr(this.contentEl),this.defaultContentHeight=Vr(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.bindResizeListener(),setTimeout(()=>{this.setSpacerSize(),this.setSize(),this.calculateOptions(),this.cd.detectChanges()},1))}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||wt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,(this.d_loading===void 0||this.d_loading===!1)&&(this.d_loading=this._loading||!1),this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=this.loaderArr.length>0?this.loaderArr:[]}getElementRef(){return this.elementViewChild}getPageByFirst(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(e){return this._step?this.page!==this.getPageByFirst(e??this.first):!0}scrollTo(e){this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){if(this.both?e.every(o=>o>-1):e>-1){let o=this.first,{scrollTop:s=0,scrollLeft:a=0}=this.elementViewChild?.nativeElement,{numToleratedItems:l}=this.calculateNumItems(),c=this.getContentPosition(),d=this.itemSize,u=(w=0,D)=>w<=D?0:w,p=(w,D,P)=>w*D+P,f=(w=0,D=0)=>this.scrollTo({left:w,top:D,behavior:i}),y=this.both?{rows:0,cols:0}:0,b=!1,v=!1;this.both?(y={rows:u(e[0],l[0]),cols:u(e[1],l[1])},f(p(y.cols,d[1],c.left),p(y.rows,d[0],c.top)),v=this.lastScrollPos.top!==s||this.lastScrollPos.left!==a,b=y.rows!==o.rows||y.cols!==o.cols):(y=u(e,l),this.horizontal?f(p(y,d,c.left),s):f(a,p(y,d,c.top)),v=this.lastScrollPos!==(this.horizontal?a:s),b=y!==o),this.isRangeChanged=b,v&&(this.first=y)}}scrollInView(e,i,r="auto"){if(i){let{first:o,viewport:s}=this.getRenderedRange(),a=(d=0,u=0)=>this.scrollTo({left:d,top:u,behavior:r}),l=i==="to-start",c=i==="to-end";if(l){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){let d=(s.first-1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}else if(c){if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){let d=(s.first+1)*this._itemSize;this.horizontal?a(d,0):a(0,d)}}}else this.scrollToIndex(e,r)}getRenderedRange(){let e=(o,s)=>s||o?Math.floor(o/(s||o)):0,i=this.first,r=0;if(this.elementViewChild?.nativeElement){let{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;if(this.both)i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols};else{let a=this.horizontal?s:o;i=e(a,this._itemSize),r=i+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){let e=this.getContentPosition(),i=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0)||0,r=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0)||0,o=(c,d)=>d||c?Math.ceil(c/(d||c)):0,s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize),l=this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a));return{numItemsInViewport:a,numToleratedItems:l}}calculateOptions(){let{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,d=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this._items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[e,i]=[jr(this.contentEl),Vr(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[r,o]=[jr(this.elementViewChild.nativeElement),Vr(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=re.style[u]=p;this.both||this.horizontal?(d("height",c),d("width",s)):d("height",c)}}setSpacerSize(){if(this._items){let e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle=A(_({},this.spacerStyle),{[`${r}`]:(o||[]).length*s+a+"px"});this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){let i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle=A(_({},this.contentStyle),{transform:`translate3d(${s}px, ${a}px, 0)`});if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{let s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){let i=e.target;if(!i)throw new Error("Event target is null");let r=this.getContentPosition(),o=(v,w)=>v?v>w?v-w:v:0,s=(v,w)=>w||v?Math.floor(v/(w||v)):0,a=(v,w,D,P,B,Y)=>v<=B?B:Y?D-P-B:w+B-1,l=(v,w,D,P,B,Y,ge)=>v<=Y?0:Math.max(0,ge?vw?D:v-2*Y),c=(v,w,D,P,B,Y=!1)=>{let ge=w+P+2*B;return v>=B&&(ge+=B+1),this.getLast(ge,Y)},d=o(i.scrollTop,r.top),u=o(i.scrollLeft,r.left),p=this.both?{rows:0,cols:0}:0,f=this.last,y=!1,b=this.lastScrollPos;if(this.both){let v=this.lastScrollPos.top<=d,w=this.lastScrollPos.left<=u;if(!this._appendOnly||this._appendOnly&&(v||w)){let D={rows:s(d,this._itemSize[0]),cols:s(u,this._itemSize[1])},P={rows:a(D.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:a(D.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)};p={rows:l(D.rows,P.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],v),cols:l(D.cols,P.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],w)},f={rows:c(D.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(D.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},y=p.rows!==this.first.rows||f.rows!==this.last.rows||p.cols!==this.first.cols||f.cols!==this.last.cols||this.isRangeChanged,b={top:d,left:u}}}else{let v=this.horizontal?u:d,w=this.lastScrollPos<=v;if(!this._appendOnly||this._appendOnly&&w){let D=s(v,this._itemSize),P=a(D,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w);p=l(D,P,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,w),f=c(D,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),y=p!==this.first||f!==this.last||this.isRangeChanged,b=v}}return{first:p,last:f,isRangeChanged:y,scrollPos:b}}onScrollChange(e){let{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){let a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged(i)){let l={first:this._step?Math.min(this.getPageByFirst(i)*this._step,this._items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst(i)+1)*this._step:r,this._items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this._showLoader){let{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged())&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this._showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){kn(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let e=this.document.defaultView,i=yo()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(e,i,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Iv(this.elementViewChild?.nativeElement)){let[e,i]=[jr(this.elementViewChild?.nativeElement),Vr(this.elementViewChild?.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.defaultContentWidth=jr(this.contentEl),this.defaultContentHeight=Vr(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both,scrollTo:this.scrollTo.bind(this),scrollToIndex:this.scrollToIndex.bind(this),orientation:this._orientation,scrollableElement:this.elementViewChild?.nativeElement}}getOptions(e){let i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:r===0,last:r===i-1,even:r%2===0,odd:r%2!==0}}getLoaderOptions(e,i){let r=this.loaderArr.length;return _({index:e,count:r,first:e===0,last:e===r-1,even:e%2===0,odd:e%2!==0,loading:this.d_loading},i)}static \u0275fac=function(i){return new(i||t)(me($e))};static \u0275cmp=$({type:t,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(i,r,o){if(i&1&&(V(o,O2,4),V(o,B9,4),V(o,V9,4),V(o,j9,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.contentTemplate=s.first),M(s=O())&&(r.itemTemplate=s.first),M(s=O())&&(r.loaderTemplate=s.first),M(s=O())&&(r.loaderIconTemplate=s.first),M(s=O())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(ct(z9,5),ct(O2,5)),i&2){let o;M(o=O())&&(r.elementViewChild=o.first),M(o=O())&&(r.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,r){i&2&&Jn("height",r.height)},inputs:{hostName:"hostName",id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Se([R2,{provide:P2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],ngContentSelectors:H9,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"pBind"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","pBind"],[4,"ngFor","ngForOf"],["data-p-icon","spinner",3,"spin","pBind"],[4,"ngIf"]],template:function(i,r){if(i&1&&(zt(),C(0,sj,8,10,"ng-container",6)(1,cj,2,1,"ng-template",null,0,at)),i&2){let o=pn(2);h("ngIf",!r._disabled)("ngIfElse",o)}},dependencies:[qe,Oi,Ut,kt,Xn,wo,xe,te],encapsulation:2})}return t})(),sw=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[Ou,xe,xe]})}return t})();var N2=`
.p-select {
display: inline-flex;
cursor: pointer;
@@ -1665,8 +1665,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
padding-block-start: dt('select.padding.y');
padding-block-end: dt('select.padding.y');
}
-`;var Bu=t=>({height:t}),Sw=t=>({$implicit:t});function Yj(t,n){if(t&1&&(G(),X(0,"svg",6)),t&2){let e=m(2);k(e.cx("optionCheckIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function Zj(t,n){if(t&1&&(G(),X(0,"svg",7)),t&2){let e=m(2);k(e.cx("optionBlankIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function Jj(t,n){if(t&1&&(ie(0),C(1,Yj,1,3,"svg",4)(2,Zj,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.selected),g(),h("ngIf",!e.selected)}}function Xj(t,n){if(t&1&&(E(0,"span",8),ce(1),T()),t&2){let e=m();h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),g(),Ze(e.label??"empty")}}function ez(t,n){t&1&&ne(0)}var tz=["item"],nz=["group"],rz=["loader"],iz=["selectedItem"],oz=["header"],bR=["filter"],sz=["footer"],az=["emptyfilter"],lz=["empty"],cz=["dropdownicon"],dz=["loadingicon"],uz=["clearicon"],pz=["filtericon"],fz=["onicon"],hz=["officon"],mz=["cancelicon"],gz=["focusInput"],yz=["editableInput"],bz=["items"],vz=["scroller"],_z=["overlay"],wz=["firstHiddenFocusableEl"],Cz=["lastHiddenFocusableEl"],vR=t=>({class:t}),_R=t=>({options:t}),wR=(t,n)=>({$implicit:t,options:n}),xz=()=>({});function Tz(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2);g(),Ze(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Ez(t,n){if(t&1&&ne(0,24),t&2){let e=m(2);h("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",Ee(2,Sw,e.selectedOption))}}function Sz(t,n){if(t&1&&(E(0,"span"),ce(1),T()),t&2){let e=m(3);g(),Ze(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Iz(t,n){if(t&1&&C(0,Sz,2,1,"span",18),t&2){let e=m(2);h("ngIf",e.isSelectedOptionEmpty())}}function Dz(t,n){if(t&1){let e=se();E(0,"span",22,3),q("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))})("keydown",function(i){S(e);let o=m();return I(o.onKeyDown(i))}),C(2,Tz,2,1,"ng-container",20)(3,Ez,1,4,"ng-container",23)(4,Iz,1,1,"ng-template",null,4,at),T()}if(t&2){let e=pn(5),r=m();k(r.cx("label")),h("pBind",r.ptm("label"))("pTooltip",r.tooltip)("tooltipPosition",r.tooltipPosition)("positionStyle",r.tooltipPositionStyle)("tooltipStyleClass",r.tooltipStyleClass)("pAutoFocus",r.autofocus),J("aria-disabled",r.$disabled())("id",r.inputId)("aria-label",r.ariaLabel||(r.label()==="p-emptylabel"?void 0:r.label()))("aria-labelledby",r.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",r.overlayVisible??!1)("aria-controls",r.overlayVisible?r.id+"_list":null)("tabindex",r.$disabled()?-1:r.tabindex)("aria-activedescendant",r.focused?r.focusedOptionId:void 0)("aria-required",r.required())("required",r.required()?"":void 0)("disabled",r.$disabled()?"":void 0),g(2),h("ngIf",!r.selectedItemTemplate&&!r._selectedItemTemplate)("ngIfElse",e),g(),h("ngIf",(r.selectedItemTemplate||r._selectedItemTemplate)&&!r.isSelectedOptionEmpty())}}function kz(t,n){if(t&1){let e=se();E(0,"input",25,5),q("input",function(i){S(e);let o=m();return I(o.onEditableInput(i))})("keydown",function(i){S(e);let o=m();return I(o.onKeyDown(i))})("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))}),T()}if(t&2){let e=m();k(e.cx("label")),h("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),J("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Mz(t,n){if(t&1){let e=se();G(),E(0,"svg",28),q("click",function(i){S(e);let o=m(2);return I(o.clear(i))}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon")}}function Oz(t,n){}function Rz(t,n){t&1&&C(0,Oz,0,0,"ng-template")}function Pz(t,n){if(t&1){let e=se();E(0,"span",29),q("click",function(i){S(e);let o=m(2);return I(o.clear(i))}),C(1,Rz,1,0,null,30),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon"),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",Ee(6,vR,e.cx("clearIcon")))}}function Az(t,n){if(t&1&&(ie(0),C(1,Mz,1,4,"svg",26)(2,Pz,2,8,"span",27),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Nz(t,n){t&1&&ne(0)}function Fz(t,n){if(t&1&&(ie(0),C(1,Nz,1,0,"ng-container",31),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Lz(t,n){if(t&1&&X(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),h("pBind",e.ptm("loadingIcon"))}}function Bz(t,n){if(t&1&&X(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),h("pBind",e.ptm("loadingIcon"))}}function Vz(t,n){if(t&1&&(ie(0),C(1,Lz,1,3,"span",32)(2,Bz,1,3,"span",32),oe()),t&2){let e=m(2);g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function jz(t,n){if(t&1&&(ie(0),C(1,Fz,2,1,"ng-container",18)(2,Vz,3,2,"ng-container",18),oe()),t&2){let e=m();g(),h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function zz(t,n){if(t&1&&X(0,"span",36),t&2){let e=m(3);k(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),h("pBind",e.ptm("dropdownIcon"))}}function Hz(t,n){if(t&1&&(G(),X(0,"svg",37)),t&2){let e=m(3);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon"))}}function $z(t,n){if(t&1&&(ie(0),C(1,zz,1,3,"span",34)(2,Hz,1,3,"svg",35),oe()),t&2){let e=m(2);g(),h("ngIf",e.dropdownIcon),g(),h("ngIf",!e.dropdownIcon)}}function Uz(t,n){}function Wz(t,n){t&1&&C(0,Uz,0,0,"ng-template")}function Gz(t,n){if(t&1&&(E(0,"span",36),C(1,Wz,1,0,null,30),T()),t&2){let e=m(2);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon")),g(),h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Ee(5,vR,e.cx("dropdownIcon")))}}function qz(t,n){if(t&1&&C(0,$z,3,2,"ng-container",18)(1,Gz,2,7,"span",34),t&2){let e=m();h("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Qz(t,n){t&1&&ne(0)}function Kz(t,n){t&1&&ne(0)}function Yz(t,n){if(t&1&&(ie(0),C(1,Kz,1,0,"ng-container",30),oe()),t&2){let e=m(3);g(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",Ee(2,_R,e.filterOptions))}}function Zz(t,n){if(t&1&&(G(),X(0,"svg",45)),t&2){let e=m(4);h("pBind",e.ptm("filterIcon"))}}function Jz(t,n){}function Xz(t,n){t&1&&C(0,Jz,0,0,"ng-template")}function eH(t,n){if(t&1&&(E(0,"span",36),C(1,Xz,1,0,null,31),T()),t&2){let e=m(4);h("pBind",e.ptm("filterIcon")),g(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function tH(t,n){if(t&1){let e=se();E(0,"p-iconfield",41)(1,"input",42,10),q("input",function(i){S(e);let o=m(3);return I(o.onFilterInputChange(i))})("keydown",function(i){S(e);let o=m(3);return I(o.onFilterKeyDown(i))})("blur",function(i){S(e);let o=m(3);return I(o.onFilterBlur(i))}),T(),E(3,"p-inputicon",41),C(4,Zz,1,1,"svg",43)(5,eH,2,2,"span",44),T()()}if(t&2){let e=m(3);h("pt",e.ptm("pcFilterContainer")),g(),k(e.cx("pcFilter")),h("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter")),J("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),g(2),h("pt",e.ptm("pcFilterIconContainer")),g(),h("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),g(),h("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function nH(t,n){if(t&1){let e=se();E(0,"div",29),q("click",function(i){return S(e),I(i.stopPropagation())}),C(1,Yz,2,4,"ng-container",20)(2,tH,6,14,"ng-template",null,9,at),T()}if(t&2){let e=pn(3),r=m(2);k(r.cx("header")),h("pBind",r.ptm("header")),g(),h("ngIf",r.filterTemplate||r._filterTemplate)("ngIfElse",e)}}function rH(t,n){t&1&&ne(0)}function iH(t,n){if(t&1&&C(0,rH,1,0,"ng-container",30),t&2){let e=n.$implicit,r=n.options;m(2);let i=pn(9);h("ngTemplateOutlet",i)("ngTemplateOutletContext",Dt(2,wR,e,r))}}function oH(t,n){t&1&&ne(0)}function sH(t,n){if(t&1&&C(0,oH,1,0,"ng-container",30),t&2){let e=n.options,r=m(4);h("ngTemplateOutlet",r.loaderTemplate||r._loaderTemplate)("ngTemplateOutletContext",Ee(2,_R,e))}}function aH(t,n){t&1&&(ie(0),C(1,sH,1,4,"ng-template",null,12,at),oe())}function lH(t,n){if(t&1){let e=se();E(0,"p-scroller",46,11),q("onLazyLoad",function(i){S(e);let o=m(2);return I(o.onLazyLoad.emit(i))}),C(2,iH,1,5,"ng-template",null,2,at)(4,aH,3,0,"ng-container",18),T()}if(t&2){let e=m(2);Dn(Ee(9,Bu,e.scrollHeight)),h("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),g(4),h("ngIf",e.loaderTemplate||e._loaderTemplate)}}function cH(t,n){t&1&&ne(0)}function dH(t,n){if(t&1&&(ie(0),C(1,cH,1,0,"ng-container",30),oe()),t&2){m();let e=pn(9),r=m();g(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Dt(3,wR,r.visibleOptions(),Pi(2,xz)))}}function uH(t,n){if(t&1&&(E(0,"span",36),ce(1),T()),t&2){let e=m(2).$implicit,r=m(3);k(r.cx("optionGroupLabel")),h("pBind",r.ptm("optionGroupLabel")),g(),Ze(r.getOptionGroupLabel(e.optionGroup))}}function pH(t,n){t&1&&ne(0)}function fH(t,n){if(t&1&&(ie(0),E(1,"li",50),C(2,uH,2,4,"span",34)(3,pH,1,0,"ng-container",30),T(),oe()),t&2){let e=m(),r=e.$implicit,i=e.index,o=m().options,s=m(2);g(),k(s.cx("optionGroup")),h("ngStyle",Ee(8,Bu,o.itemSize+"px"))("pBind",s.ptm("optionGroup")),J("id",s.id+"_"+s.getOptionIndex(i,o)),g(),h("ngIf",!s.groupTemplate&&!s._groupTemplate),g(),h("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",Ee(10,Sw,r.optionGroup))}}function hH(t,n){if(t&1){let e=se();ie(0),E(1,"p-selectItem",51),q("onClick",function(i){S(e);let o=m().$implicit,s=m(3);return I(s.onOptionSelect(i,o))})("onMouseEnter",function(i){S(e);let o=m().index,s=m().options,a=m(2);return I(a.onOptionMouseEnter(i,a.getOptionIndex(o,s)))}),T(),oe()}if(t&2){let e=m(),r=e.$implicit,i=e.index,o=m().options,s=m(2);g(),h("id",s.id+"_"+s.getOptionIndex(i,o))("option",r)("checkmark",s.checkmark)("selected",s.isSelected(r))("label",s.getOptionLabel(r))("disabled",s.isOptionDisabled(r))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(i,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(i,o)))("ariaSetSize",s.ariaSetSize)("index",i)("scrollerOptions",o)}}function mH(t,n){if(t&1&&C(0,fH,4,12,"ng-container",18)(1,hH,2,12,"ng-container",18),t&2){let e=n.$implicit,r=m(3);h("ngIf",r.isOptionGroup(e)),g(),h("ngIf",!r.isOptionGroup(e))}}function gH(t,n){if(t&1&&ce(0),t&2){let e=m(4);$t(" ",e.emptyFilterMessageLabel," ")}}function yH(t,n){t&1&&ne(0,null,14)}function bH(t,n){if(t&1&&C(0,yH,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function vH(t,n){if(t&1&&(E(0,"li",50),rt(1,gH,1,1)(2,bH,1,1,"ng-container"),T()),t&2){let e=m().options,r=m(2);k(r.cx("emptyMessage")),h("ngStyle",Ee(5,Bu,e.itemSize+"px"))("pBind",r.ptm("emptyMessage")),g(),it(!r.emptyFilterTemplate&&!r._emptyFilterTemplate&&!r.emptyTemplate?1:2)}}function _H(t,n){if(t&1&&ce(0),t&2){let e=m(4);$t(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function wH(t,n){t&1&&ne(0,null,15)}function CH(t,n){if(t&1&&C(0,wH,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function xH(t,n){if(t&1&&(E(0,"li",50),rt(1,_H,1,1)(2,CH,1,1,"ng-container"),T()),t&2){let e=m().options,r=m(2);k(r.cx("emptyMessage")),h("ngStyle",Ee(5,Bu,e.itemSize+"px"))("pBind",r.ptm("emptyMessage")),g(),it(!r.emptyTemplate&&!r._emptyTemplate?1:2)}}function TH(t,n){if(t&1&&(E(0,"ul",47,13),C(2,mH,2,2,"ng-template",48)(3,vH,3,7,"li",49)(4,xH,3,7,"li",49),T()),t&2){let e=n.$implicit,r=n.options,i=m(2);Dn(r.contentStyle),k(i.cn(i.cx("list"),r.contentStyleClass)),h("pBind",i.ptm("list")),J("id",i.id+"_list")("aria-label",i.listLabel),g(2),h("ngForOf",e),g(),h("ngIf",i.filterValue&&i.isEmpty()),g(),h("ngIf",!i.filterValue&&i.isEmpty())}}function EH(t,n){t&1&&ne(0)}function SH(t,n){if(t&1){let e=se();E(0,"div",38)(1,"span",39,6),q("focus",function(i){S(e);let o=m();return I(o.onFirstHiddenFocus(i))}),T(),C(3,Qz,1,0,"ng-container",31)(4,nH,4,5,"div",27),E(5,"div",36),C(6,lH,5,11,"p-scroller",40)(7,dH,2,6,"ng-container",18)(8,TH,5,10,"ng-template",null,7,at),T(),C(10,EH,1,0,"ng-container",31),E(11,"span",39,8),q("focus",function(i){S(e);let o=m();return I(o.onLastHiddenFocus(i))}),T()()}if(t&2){let e=m();k(e.cn(e.cx("overlay"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),g(),h("pBind",e.ptm("hiddenFirstFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),g(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",e.filter),g(),k(e.cx("listContainer")),er("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h("pBind",e.ptm("listContainer")),g(),h("ngIf",e.virtualScroll),g(),h("ngIf",!e.virtualScroll),g(3),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),g(),h("pBind",e.ptm("hiddenLastFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var IH=`
- ${yR}
+`;var Ru=t=>({height:t}),aw=t=>({$implicit:t});function fj(t,n){if(t&1&&(G(),ee(0,"svg",6)),t&2){let e=m(2);k(e.cx("optionCheckIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionCheckIcon"))}}function hj(t,n){if(t&1&&(G(),ee(0,"svg",7)),t&2){let e=m(2);k(e.cx("optionBlankIcon")),h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionBlankIcon"))}}function mj(t,n){if(t&1&&(re(0),C(1,fj,1,3,"svg",4)(2,hj,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.selected),g(),h("ngIf",!e.selected)}}function gj(t,n){if(t&1&&(I(0,"span",8),ce(1),T()),t&2){let e=m();h("pBind",e.$pcSelect==null?null:e.$pcSelect.ptm("optionLabel")),g(),Xe(e.label??"empty")}}function yj(t,n){t&1&&ne(0)}var bj=["item"],vj=["group"],_j=["loader"],wj=["selectedItem"],Cj=["header"],F2=["filter"],xj=["footer"],Tj=["emptyfilter"],Ej=["empty"],Sj=["dropdownicon"],Ij=["loadingicon"],Dj=["clearicon"],kj=["filtericon"],Mj=["onicon"],Oj=["officon"],Rj=["cancelicon"],Pj=["focusInput"],Aj=["editableInput"],Nj=["items"],Fj=["scroller"],Lj=["overlay"],Bj=["firstHiddenFocusableEl"],Vj=["lastHiddenFocusableEl"],L2=t=>({class:t}),B2=t=>({options:t}),V2=(t,n)=>({$implicit:t,options:n}),jj=()=>({});function zj(t,n){if(t&1&&(re(0),ce(1),oe()),t&2){let e=m(2);g(),Xe(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Hj(t,n){if(t&1&&ne(0,24),t&2){let e=m(2);h("ngTemplateOutlet",e.selectedItemTemplate||e._selectedItemTemplate)("ngTemplateOutletContext",Te(2,aw,e.selectedOption))}}function $j(t,n){if(t&1&&(I(0,"span"),ce(1),T()),t&2){let e=m(3);g(),Xe(e.label()==="p-emptylabel"?"\xA0":e.label())}}function Uj(t,n){if(t&1&&C(0,$j,2,1,"span",18),t&2){let e=m(2);h("ngIf",e.isSelectedOptionEmpty())}}function Wj(t,n){if(t&1){let e=se();I(0,"span",22,3),K("focus",function(r){E(e);let o=m();return S(o.onInputFocus(r))})("blur",function(r){E(e);let o=m();return S(o.onInputBlur(r))})("keydown",function(r){E(e);let o=m();return S(o.onKeyDown(r))}),C(2,zj,2,1,"ng-container",20)(3,Hj,1,4,"ng-container",23)(4,Uj,1,1,"ng-template",null,4,at),T()}if(t&2){let e=pn(5),i=m();k(i.cx("label")),h("pBind",i.ptm("label"))("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),J("aria-disabled",i.$disabled())("id",i.inputId)("aria-label",i.ariaLabel||(i.label()==="p-emptylabel"?void 0:i.label()))("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",i.overlayVisible??!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.$disabled()?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("aria-required",i.required())("required",i.required()?"":void 0)("disabled",i.$disabled()?"":void 0),g(2),h("ngIf",!i.selectedItemTemplate&&!i._selectedItemTemplate)("ngIfElse",e),g(),h("ngIf",(i.selectedItemTemplate||i._selectedItemTemplate)&&!i.isSelectedOptionEmpty())}}function Gj(t,n){if(t&1){let e=se();I(0,"input",25,5),K("input",function(r){E(e);let o=m();return S(o.onEditableInput(r))})("keydown",function(r){E(e);let o=m();return S(o.onKeyDown(r))})("focus",function(r){E(e);let o=m();return S(o.onInputFocus(r))})("blur",function(r){E(e);let o=m();return S(o.onInputBlur(r))}),T()}if(t&2){let e=m();k(e.cx("label")),h("pBind",e.ptm("label"))("pAutoFocus",e.autofocus),J("id",e.inputId)("aria-haspopup","listbox")("placeholder",e.modelValue()===void 0||e.modelValue()===null?e.placeholder():void 0)("aria-label",e.ariaLabel||(e.label()==="p-emptylabel"?void 0:e.label()))("aria-activedescendant",e.focused?e.focusedOptionId:void 0)("name",e.name())("minlength",e.minlength())("min",e.min())("max",e.max())("pattern",e.pattern())("size",e.inputSize())("maxlength",e.maxlength())("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function qj(t,n){if(t&1){let e=se();G(),I(0,"svg",28),K("click",function(r){E(e);let o=m(2);return S(o.clear(r))}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon")}}function Qj(t,n){}function Kj(t,n){t&1&&C(0,Qj,0,0,"ng-template")}function Yj(t,n){if(t&1){let e=se();I(0,"span",29),K("click",function(r){E(e);let o=m(2);return S(o.clear(r))}),C(1,Kj,1,0,null,30),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),J("data-pc-section","clearicon"),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)("ngTemplateOutletContext",Te(6,L2,e.cx("clearIcon")))}}function Zj(t,n){if(t&1&&(re(0),C(1,qj,1,4,"svg",26)(2,Yj,2,8,"span",27),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function Jj(t,n){t&1&&ne(0)}function Xj(t,n){if(t&1&&(re(0),C(1,Jj,1,0,"ng-container",31),oe()),t&2){let e=m(2);g(),h("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ez(t,n){if(t&1&&ee(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),h("pBind",e.ptm("loadingIcon"))}}function tz(t,n){if(t&1&&ee(0,"span",33),t&2){let e=m(3);k(e.cn(e.cx("loadingIcon"),"pi pi-spinner pi-spin")),h("pBind",e.ptm("loadingIcon"))}}function nz(t,n){if(t&1&&(re(0),C(1,ez,1,3,"span",32)(2,tz,1,3,"span",32),oe()),t&2){let e=m(2);g(),h("ngIf",e.loadingIcon),g(),h("ngIf",!e.loadingIcon)}}function iz(t,n){if(t&1&&(re(0),C(1,Xj,2,1,"ng-container",18)(2,nz,3,2,"ng-container",18),oe()),t&2){let e=m();g(),h("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),g(),h("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function rz(t,n){if(t&1&&ee(0,"span",36),t&2){let e=m(3);k(e.cn(e.cx("dropdownIcon"),e.dropdownIcon)),h("pBind",e.ptm("dropdownIcon"))}}function oz(t,n){if(t&1&&(G(),ee(0,"svg",37)),t&2){let e=m(3);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon"))}}function sz(t,n){if(t&1&&(re(0),C(1,rz,1,3,"span",34)(2,oz,1,3,"svg",35),oe()),t&2){let e=m(2);g(),h("ngIf",e.dropdownIcon),g(),h("ngIf",!e.dropdownIcon)}}function az(t,n){}function lz(t,n){t&1&&C(0,az,0,0,"ng-template")}function cz(t,n){if(t&1&&(I(0,"span",36),C(1,lz,1,0,null,30),T()),t&2){let e=m(2);k(e.cx("dropdownIcon")),h("pBind",e.ptm("dropdownIcon")),g(),h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)("ngTemplateOutletContext",Te(5,L2,e.cx("dropdownIcon")))}}function dz(t,n){if(t&1&&C(0,sz,3,2,"ng-container",18)(1,cz,2,7,"span",34),t&2){let e=m();h("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function uz(t,n){t&1&&ne(0)}function pz(t,n){t&1&&ne(0)}function fz(t,n){if(t&1&&(re(0),C(1,pz,1,0,"ng-container",30),oe()),t&2){let e=m(3);g(),h("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",Te(2,B2,e.filterOptions))}}function hz(t,n){if(t&1&&(G(),ee(0,"svg",45)),t&2){let e=m(4);h("pBind",e.ptm("filterIcon"))}}function mz(t,n){}function gz(t,n){t&1&&C(0,mz,0,0,"ng-template")}function yz(t,n){if(t&1&&(I(0,"span",36),C(1,gz,1,0,null,31),T()),t&2){let e=m(4);h("pBind",e.ptm("filterIcon")),g(),h("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function bz(t,n){if(t&1){let e=se();I(0,"p-iconfield",41)(1,"input",42,10),K("input",function(r){E(e);let o=m(3);return S(o.onFilterInputChange(r))})("keydown",function(r){E(e);let o=m(3);return S(o.onFilterKeyDown(r))})("blur",function(r){E(e);let o=m(3);return S(o.onFilterBlur(r))}),T(),I(3,"p-inputicon",41),C(4,hz,1,1,"svg",43)(5,yz,2,2,"span",44),T()()}if(t&2){let e=m(3);h("pt",e.ptm("pcFilterContainer")),g(),k(e.cx("pcFilter")),h("pSize",e.size())("value",e._filterValue()||"")("variant",e.$variant())("pt",e.ptm("pcFilter")),J("placeholder",e.filterPlaceholder)("aria-owns",e.id+"_list")("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.focusedOptionId),g(2),h("pt",e.ptm("pcFilterIconContainer")),g(),h("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),g(),h("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function vz(t,n){if(t&1){let e=se();I(0,"div",29),K("click",function(r){return E(e),S(r.stopPropagation())}),C(1,fz,2,4,"ng-container",20)(2,bz,6,14,"ng-template",null,9,at),T()}if(t&2){let e=pn(3),i=m(2);k(i.cx("header")),h("pBind",i.ptm("header")),g(),h("ngIf",i.filterTemplate||i._filterTemplate)("ngIfElse",e)}}function _z(t,n){t&1&&ne(0)}function wz(t,n){if(t&1&&C(0,_z,1,0,"ng-container",30),t&2){let e=n.$implicit,i=n.options;m(2);let r=pn(9);h("ngTemplateOutlet",r)("ngTemplateOutletContext",Dt(2,V2,e,i))}}function Cz(t,n){t&1&&ne(0)}function xz(t,n){if(t&1&&C(0,Cz,1,0,"ng-container",30),t&2){let e=n.options,i=m(4);h("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",Te(2,B2,e))}}function Tz(t,n){t&1&&(re(0),C(1,xz,1,4,"ng-template",null,12,at),oe())}function Ez(t,n){if(t&1){let e=se();I(0,"p-scroller",46,11),K("onLazyLoad",function(r){E(e);let o=m(2);return S(o.onLazyLoad.emit(r))}),C(2,wz,1,5,"ng-template",null,2,at)(4,Tz,3,0,"ng-container",18),T()}if(t&2){let e=m(2);Dn(Te(9,Ru,e.scrollHeight)),h("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),g(4),h("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Sz(t,n){t&1&&ne(0)}function Iz(t,n){if(t&1&&(re(0),C(1,Sz,1,0,"ng-container",30),oe()),t&2){m();let e=pn(9),i=m();g(),h("ngTemplateOutlet",e)("ngTemplateOutletContext",Dt(3,V2,i.visibleOptions(),Rr(2,jj)))}}function Dz(t,n){if(t&1&&(I(0,"span",36),ce(1),T()),t&2){let e=m(2).$implicit,i=m(3);k(i.cx("optionGroupLabel")),h("pBind",i.ptm("optionGroupLabel")),g(),Xe(i.getOptionGroupLabel(e.optionGroup))}}function kz(t,n){t&1&&ne(0)}function Mz(t,n){if(t&1&&(re(0),I(1,"li",50),C(2,Dz,2,4,"span",34)(3,kz,1,0,"ng-container",30),T(),oe()),t&2){let e=m(),i=e.$implicit,r=e.index,o=m().options,s=m(2);g(),k(s.cx("optionGroup")),h("ngStyle",Te(8,Ru,o.itemSize+"px"))("pBind",s.ptm("optionGroup")),J("id",s.id+"_"+s.getOptionIndex(r,o)),g(),h("ngIf",!s.groupTemplate&&!s._groupTemplate),g(),h("ngTemplateOutlet",s.groupTemplate||s._groupTemplate)("ngTemplateOutletContext",Te(10,aw,i.optionGroup))}}function Oz(t,n){if(t&1){let e=se();re(0),I(1,"p-selectItem",51),K("onClick",function(r){E(e);let o=m().$implicit,s=m(3);return S(s.onOptionSelect(r,o))})("onMouseEnter",function(r){E(e);let o=m().index,s=m().options,a=m(2);return S(a.onOptionMouseEnter(r,a.getOptionIndex(o,s)))}),T(),oe()}if(t&2){let e=m(),i=e.$implicit,r=e.index,o=m().options,s=m(2);g(),h("id",s.id+"_"+s.getOptionIndex(r,o))("option",i)("checkmark",s.checkmark)("selected",s.isSelected(i))("label",s.getOptionLabel(i))("disabled",s.isOptionDisabled(i))("template",s.itemTemplate||s._itemTemplate)("focused",s.focusedOptionIndex()===s.getOptionIndex(r,o))("ariaPosInset",s.getAriaPosInset(s.getOptionIndex(r,o)))("ariaSetSize",s.ariaSetSize)("index",r)("scrollerOptions",o)}}function Rz(t,n){if(t&1&&C(0,Mz,4,12,"ng-container",18)(1,Oz,2,12,"ng-container",18),t&2){let e=n.$implicit,i=m(3);h("ngIf",i.isOptionGroup(e)),g(),h("ngIf",!i.isOptionGroup(e))}}function Pz(t,n){if(t&1&&ce(0),t&2){let e=m(4);$t(" ",e.emptyFilterMessageLabel," ")}}function Az(t,n){t&1&&ne(0,null,14)}function Nz(t,n){if(t&1&&C(0,Az,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyTemplate)}}function Fz(t,n){if(t&1&&(I(0,"li",50),ot(1,Pz,1,1)(2,Nz,1,1,"ng-container"),T()),t&2){let e=m().options,i=m(2);k(i.cx("emptyMessage")),h("ngStyle",Te(5,Ru,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),g(),st(!i.emptyFilterTemplate&&!i._emptyFilterTemplate&&!i.emptyTemplate?1:2)}}function Lz(t,n){if(t&1&&ce(0),t&2){let e=m(4);$t(" ",e.emptyMessageLabel||e.emptyFilterMessageLabel," ")}}function Bz(t,n){t&1&&ne(0,null,15)}function Vz(t,n){if(t&1&&C(0,Bz,2,0,"ng-container",31),t&2){let e=m(4);h("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function jz(t,n){if(t&1&&(I(0,"li",50),ot(1,Lz,1,1)(2,Vz,1,1,"ng-container"),T()),t&2){let e=m().options,i=m(2);k(i.cx("emptyMessage")),h("ngStyle",Te(5,Ru,e.itemSize+"px"))("pBind",i.ptm("emptyMessage")),g(),st(!i.emptyTemplate&&!i._emptyTemplate?1:2)}}function zz(t,n){if(t&1&&(I(0,"ul",47,13),C(2,Rz,2,2,"ng-template",48)(3,Fz,3,7,"li",49)(4,jz,3,7,"li",49),T()),t&2){let e=n.$implicit,i=n.options,r=m(2);Dn(i.contentStyle),k(r.cn(r.cx("list"),i.contentStyleClass)),h("pBind",r.ptm("list")),J("id",r.id+"_list")("aria-label",r.listLabel),g(2),h("ngForOf",e),g(),h("ngIf",r.filterValue&&r.isEmpty()),g(),h("ngIf",!r.filterValue&&r.isEmpty())}}function Hz(t,n){t&1&&ne(0)}function $z(t,n){if(t&1){let e=se();I(0,"div",38)(1,"span",39,6),K("focus",function(r){E(e);let o=m();return S(o.onFirstHiddenFocus(r))}),T(),C(3,uz,1,0,"ng-container",31)(4,vz,4,5,"div",27),I(5,"div",36),C(6,Ez,5,11,"p-scroller",40)(7,Iz,2,6,"ng-container",18)(8,zz,5,10,"ng-template",null,7,at),T(),C(10,Hz,1,0,"ng-container",31),I(11,"span",39,8),K("focus",function(r){E(e);let o=m();return S(o.onLastHiddenFocus(r))}),T()()}if(t&2){let e=m();k(e.cn(e.cx("overlay"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("pBind",e.ptm("overlay")),g(),h("pBind",e.ptm("hiddenFirstFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),g(2),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",e.filter),g(),k(e.cx("listContainer")),Jn("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),h("pBind",e.ptm("listContainer")),g(),h("ngIf",e.virtualScroll),g(),h("ngIf",!e.virtualScroll),g(3),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate),g(),h("pBind",e.ptm("hiddenLastFocusableEl")),J("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var Uz=`
+ ${N2}
/* For PrimeNG */
.p-select-label.p-placeholder {
@@ -1681,7 +1681,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
color: dt('select.invalid.placeholder.color');
}
-`,DH={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Km=(()=>{class t extends Oe{name="select";style=IH;classes=DH;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var CR=new H("SELECT_INSTANCE"),kH=new H("SELECT_ITEM_INSTANCE"),MH={provide:Nn,useExisting:Ht(()=>Ym),multi:!0},OH=(()=>{class t extends ut{hostName="select";$pcSelectItem=x(kH,{optional:!0,skipSelf:!0})??void 0;$pcSelect=x(CR,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new z;onMouseEnter=new z;_componentStyle=x(Km);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",R],focused:[2,"focused","focused",R],label:"label",disabled:[2,"disabled","disabled",R],visible:[2,"visible","visible",R],itemSize:[2,"itemSize","itemSize",Me],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",R],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[xe([Km,{provide:Ke,useExisting:t}]),j],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(r,i){r&1&&(E(0,"li",0),q("click",function(s){return i.onOptionClick(s)})("mouseenter",function(s){return i.onOptionMouseEnter(s)}),C(1,Jj,3,2,"ng-container",1)(2,Xj,2,2,"span",2)(3,ez,1,0,"ng-container",3),T()),r&2&&(k(i.cx("option")),h("id",i.id)("pBind",i.getPTOptions())("ngStyle",Ee(16,Bu,i.itemSize+"px")),J("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled),g(),h("ngIf",i.checkmark),g(),h("ngIf",!i.template),g(),h("ngTemplateOutlet",i.template)("ngTemplateOutletContext",Ee(18,Sw,i.option)))},dependencies:[Qe,Ut,kt,tr,Te,Ui,Yh,Jk,Wt,te],encapsulation:2})}return t})(),Ym=(()=>{class t extends vc{zone;filterService;bindDirectiveInstance=x(te,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Hv(e,this._options())||this._options.set(e)}appendTo=ae(void 0);onChange=new z;onFilter=new z;onFocus=new z;onBlur=new z;onClick=new z;onShow=new z;onHide=new z;onClear=new z;onLazyLoad=new z;_componentStyle=x(Km);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=ge(null);_placeholder=ge(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=ge(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=ge(-1);labelId;listId;clicked=ge(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(xn.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(xn.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let i=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(a=>{let c=this.getOptionGroupChildren(a).filter(d=>i?.includes(d));c.length>0&&s.push(A(_({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(s)}return i}return e});label=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),r=e.findIndex(i=>this.isOptionValueEqualsModelValue(i));if(r!==-1){let i=e[r];return this.getOptionLabel(i)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,r){super(),this.zone=e,this.filterService=r,Lt(()=>{let i=this.modelValue(),o=this.visibleOptions();if(o&<(o)){let s=this.findSelectedOptionIndex();if(s!==-1||i===void 0||typeof i=="string"&&i.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[s];else{let a=o.findIndex(l=>this.isSelected(l));a!==-1&&(this.selectedOption=o[a])}}Hi(o)&&(i===void 0||this.isModelValueNotSet())&<(this.selectedOption)&&(this.selectedOption=null),i!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||gt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&ck(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((r,i,o)=>{r.push({optionGroup:i,group:!0,index:o});let s=this.getOptionGroupChildren(i);return s&&s.forEach(a=>r.push(a)),r},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,r,i=!0,o=!1){if(!this.isOptionDisabled(r)){if(!this.isSelected(r)){let s=this.getOptionValue(r);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}i&&this.hide(!0)}}onOptionMouseEnter(e,r){this.focusOnHover&&this.changeFocusedOptionIndex(e,r)}updateModel(e,r){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&nr(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,r=e?.classList.contains("p-float-label");if(e&&r&&!this.selectedOption){let i=e.querySelector("label");i&&this._placeholder.set(i.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,r){return this.virtualScrollerDisabled?e:r&&r.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?On(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?On(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,r,i,o){return this.ptm(o,{context:{option:e,index:i,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(i,r),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return Hi(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?On(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?On(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(r=>this.isOptionGroup(r)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let r=e.target.value;this.searchValue="",!this.searchOptions(e,r)&&this.focusedOptionIndex.set(-1),this.onModelChange(r),this.updateModel(r||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:r})},1),!this.overlayVisible&<(r)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&ii(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let r=this.modelValue()?this.focusedOptionIndex():-1;r!==-1&&this.scroller?.scrollToIndex(r)}else{let r=wt(this.itemsWrapper,".p-select-option.p-select-option-selected");r&&r.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Qh(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&ii(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&ii(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let r=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(r),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,r=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,r);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&wk(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let r=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,r)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,r){if(this.focusedOptionIndex()!==r&&(this.focusedOptionIndex.set(r),this.scrollInView(),this.selectOnFocus)){let i=this.visibleOptions()[r];this.onOptionSelect(e,i,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let r=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=wt(this.itemsViewChild.nativeElement,`li[id="${r}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let r=ethis.isValidOption(i)):-1;return r>-1?r+e+1:e}findPrevOptionIndex(e){let r=e>0?$v(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return r>-1?r:e}findLastOptionIndex(){return $v(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,r=!1){if(e.altKey&&!r){if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide()}else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,r=!1){r&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,r=!1){if(r&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;e.shiftKey?i.setSelectionRange(0,i.value.length):(i.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,r=!1){if(r&&e.currentTarget&&e.currentTarget.setSelectionRange){let i=e.currentTarget;if(e.shiftKey)i.setSelectionRange(0,i.value.length);else{let o=i.value.length;i.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,r=!1){!this.editable&&!r&&this.onEnterKey(e)}onEnterKey(e,r=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}!r&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,r=!1){if(!r)if(this.overlayVisible&&this.hasFocusableElements())ii(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let i=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,i)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let r=e.relatedTarget===this.focusInputViewChild?.nativeElement?rk(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;ii(r)}onLastHiddenFocus(e){let r=e.relatedTarget===this.focusInputViewChild?.nativeElement?ik(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;ii(r)}hasFocusableElements(){return la(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,r=!1){r&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,r){this.searchValue=(this.searchValue||"")+r;let i=-1,o=!1;return i=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),i!==-1&&(o=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,i)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let r=e.target.value;this._filterValue.set(r),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?wt(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():ii(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,r){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),r(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(r){return new(r||t)(de($e),de(jl))};static \u0275cmp=$({type:t,selectors:[["p-select"]],contentQueries:function(r,i,o){if(r&1&&(V(o,tz,4),V(o,nz,4),V(o,rz,4),V(o,iz,4),V(o,oz,4),V(o,bR,4),V(o,sz,4),V(o,az,4),V(o,lz,4),V(o,cz,4),V(o,dz,4),V(o,uz,4),V(o,pz,4),V(o,fz,4),V(o,hz,4),V(o,mz,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.groupTemplate=s.first),M(s=O())&&(i.loaderTemplate=s.first),M(s=O())&&(i.selectedItemTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.filterTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.emptyFilterTemplate=s.first),M(s=O())&&(i.emptyTemplate=s.first),M(s=O())&&(i.dropdownIconTemplate=s.first),M(s=O())&&(i.loadingIconTemplate=s.first),M(s=O())&&(i.clearIconTemplate=s.first),M(s=O())&&(i.filterIconTemplate=s.first),M(s=O())&&(i.onIconTemplate=s.first),M(s=O())&&(i.offIconTemplate=s.first),M(s=O())&&(i.cancelIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&(ct(bR,5),ct(gz,5),ct(yz,5),ct(bz,5),ct(vz,5),ct(_z,5),ct(wz,5),ct(Cz,5)),r&2){let o;M(o=O())&&(i.filterViewChild=o.first),M(o=O())&&(i.focusInputViewChild=o.first),M(o=O())&&(i.editableInputViewChild=o.first),M(o=O())&&(i.itemsViewChild=o.first),M(o=O())&&(i.scroller=o.first),M(o=O())&&(i.overlayViewChild=o.first),M(o=O())&&(i.firstHiddenFocusableElementOnOverlay=o.first),M(o=O())&&(i.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(r,i){r&1&&q("click",function(s){return i.onContainerClick(s)}),r&2&&(J("id",i.id),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",R],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",R],editable:[2,"editable","editable",R],tabindex:[2,"tabindex","tabindex",Me],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",R],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",R],checkmark:[2,"checkmark","checkmark",R],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",R],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",R],showClear:[2,"showClear","showClear",R],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",R],virtualScroll:[2,"virtualScroll","virtualScroll",R],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",Me],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",R],selectOnFocus:[2,"selectOnFocus","selectOnFocus",R],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",R],autofocusFilter:[2,"autofocusFilter","autofocusFilter",R],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[xe([MH,Km,{provide:CR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(r,i){if(r&1){let o=se();C(0,Dz,6,23,"span",16)(1,kz,2,19,"input",17)(2,Az,3,2,"ng-container",18),E(3,"div",19),C(4,jz,3,2,"ng-container",20)(5,qz,2,2,"ng-template",null,0,at),T(),E(7,"p-overlay",21,1),Rr("visibleChange",function(a){return S(o),Xr(i.overlayVisible,a)||(i.overlayVisible=a),I(a)}),q("onAnimationStart",function(a){return S(o),I(i.onOverlayAnimationStart(a))})("onHide",function(){return S(o),I(i.hide())}),C(9,SH,13,22,"ng-template",null,2,at),T()}if(r&2){let o=pn(6);h("ngIf",!i.editable),g(),h("ngIf",i.editable),g(),h("ngIf",i.isVisibleClearIcon),g(),k(i.cx("dropdown")),h("pBind",i.ptm("dropdown")),J("aria-expanded",i.overlayVisible??!1)("data-pc-section","trigger"),g(),h("ngIf",i.loading)("ngIfElse",o),g(3),h("hostAttrSelector",i.$attrSelector)("pt",i.ptm("pcOverlay")),Or("visible",i.overlayVisible),h("options",i.overlayOptions)("target","@parent")("appendTo",i.$appendTo())}},dependencies:[Qe,Ar,Ut,kt,tr,OH,pR,Jh,$i,ql,Zh,aM,to,Wm,Gm,Lu,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})(),xR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Ym,Te,Te]})}return t})();var TR=`
+`,Wz={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Lm=(()=>{class t extends Me{name="select";style=Uz;classes=Wz;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var j2=new z("SELECT_INSTANCE"),Gz=new z("SELECT_ITEM_INSTANCE"),qz={provide:Vn,useExisting:Jt(()=>Bm),multi:!0},Qz=(()=>{class t extends ut{hostName="select";$pcSelectItem=x(Gz,{optional:!0,skipSelf:!0})??void 0;$pcSelect=x(j2,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new H;onMouseEnter=new H;_componentStyle=x(Lm);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",R],focused:[2,"focused","focused",R],label:"label",disabled:[2,"disabled","disabled",R],visible:[2,"visible","visible",R],itemSize:[2,"itemSize","itemSize",ke],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",R],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[Se([Lm,{provide:Qe,useExisting:t}]),j],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,r){i&1&&(I(0,"li",0),K("click",function(s){return r.onOptionClick(s)})("mouseenter",function(s){return r.onOptionMouseEnter(s)}),C(1,mj,3,2,"ng-container",1)(2,gj,2,2,"span",2)(3,yj,1,0,"ng-container",3),T()),i&2&&(k(r.cx("option")),h("id",r.id)("pBind",r.getPTOptions())("ngStyle",Te(16,Ru,r.itemSize+"px")),J("aria-label",r.label)("aria-setsize",r.ariaSetSize)("aria-posinset",r.ariaPosInset)("aria-selected",r.selected)("data-p-focused",r.focused)("data-p-highlight",r.selected)("data-p-disabled",r.disabled),g(),h("ngIf",r.checkmark),g(),h("ngIf",!r.template),g(),h("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Te(18,aw,r.option)))},dependencies:[qe,Ut,kt,Xn,xe,$r,Uh,Pk,Wt,te],encapsulation:2})}return t})(),Bm=(()=>{class t extends gc{zone;filterService;bindDirectiveInstance=x(te,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Mv(e,this._options())||this._options.set(e)}appendTo=ae(void 0);onChange=new H;onFilter=new H;onFocus=new H;onBlur=new H;onClick=new H;onShow=new H;onHide=new H;onClear=new H;onLazyLoad=new H;_componentStyle=x(Lm);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=_e(null);_placeholder=_e(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=_e(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=_e(-1);labelId;listId;clicked=_e(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(xn.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(xn.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let r=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],s=[];return o.forEach(a=>{let c=this.getOptionGroupChildren(a).filter(d=>r?.includes(d));c.length>0&&s.push(A(_({},a),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...c]}))}),this.flatOptions(s)}return r}return e});label=We(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(r=>this.isOptionValueEqualsModelValue(r));if(i!==-1){let r=e[i];return this.getOptionLabel(r)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,Lt(()=>{let r=this.modelValue(),o=this.visibleOptions();if(o&<(o)){let s=this.findSelectedOptionIndex();if(s!==-1||r===void 0||typeof r=="string"&&r.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[s];else{let a=o.findIndex(l=>this.isSelected(l));a!==-1&&(this.selectedOption=o[a])}}zr(o)&&(r===void 0||this.isModelValueNotSet())&<(this.selectedOption)&&(this.selectedOption=null),r!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||mt("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&UD(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,r,o)=>{i.push({optionGroup:r,group:!0,index:o});let s=this.getOptionGroupChildren(r);return s&&s.forEach(a=>i.push(a)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,r=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let s=this.getOptionValue(i);this.updateModel(s,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:s})}r&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&ei(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let r=e.querySelector("label");r&&this._placeholder.set(r.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?On(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?On(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,r,o){return this.ptm(o,{context:{option:e,index:r,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(r,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return zr(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?On(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?On(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&<(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&nr(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=wt(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=wt(this.itemsWrapper,".p-select-option.p-select-option-selected");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Hh(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&nr(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&nr(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&nk(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let r=this.visibleOptions()[i];this.onOptionSelect(e,r,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let r=wt(this.itemsViewChild.nativeElement,`li[id="${i}"]`);r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=ethis.isValidOption(r)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?Ov(this.visibleOptions().slice(0,e),r=>this.isValidOption(r)):-1;return i>-1?i:e}findLastOptionIndex(){return Ov(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}this.overlayVisible&&this.hide()}else{let r=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,r),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let r=e.currentTarget;e.shiftKey?r.setSelectionRange(0,r.value.length):(r.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let r=e.currentTarget;if(e.shiftKey)r.setSelectionRange(0,r.value.length);else{let o=r.value.length;r.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())nr(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let r=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,r)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?BD(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;nr(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?VD(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;nr(i)}hasFocusableElements(){return oa(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let r=-1,o=!1;return r=this.visibleOptions().findIndex(s=>this.isOptionMatched(s)),r!==-1&&(o=!0),r===-1&&this.focusedOptionIndex()===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,r)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?wt(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():nr(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(me($e),me(Bl))};static \u0275cmp=$({type:t,selectors:[["p-select"]],contentQueries:function(i,r,o){if(i&1&&(V(o,bj,4),V(o,vj,4),V(o,_j,4),V(o,wj,4),V(o,Cj,4),V(o,F2,4),V(o,xj,4),V(o,Tj,4),V(o,Ej,4),V(o,Sj,4),V(o,Ij,4),V(o,Dj,4),V(o,kj,4),V(o,Mj,4),V(o,Oj,4),V(o,Rj,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.itemTemplate=s.first),M(s=O())&&(r.groupTemplate=s.first),M(s=O())&&(r.loaderTemplate=s.first),M(s=O())&&(r.selectedItemTemplate=s.first),M(s=O())&&(r.headerTemplate=s.first),M(s=O())&&(r.filterTemplate=s.first),M(s=O())&&(r.footerTemplate=s.first),M(s=O())&&(r.emptyFilterTemplate=s.first),M(s=O())&&(r.emptyTemplate=s.first),M(s=O())&&(r.dropdownIconTemplate=s.first),M(s=O())&&(r.loadingIconTemplate=s.first),M(s=O())&&(r.clearIconTemplate=s.first),M(s=O())&&(r.filterIconTemplate=s.first),M(s=O())&&(r.onIconTemplate=s.first),M(s=O())&&(r.offIconTemplate=s.first),M(s=O())&&(r.cancelIconTemplate=s.first),M(s=O())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&(ct(F2,5),ct(Pj,5),ct(Aj,5),ct(Nj,5),ct(Fj,5),ct(Lj,5),ct(Bj,5),ct(Vj,5)),i&2){let o;M(o=O())&&(r.filterViewChild=o.first),M(o=O())&&(r.focusInputViewChild=o.first),M(o=O())&&(r.editableInputViewChild=o.first),M(o=O())&&(r.itemsViewChild=o.first),M(o=O())&&(r.scroller=o.first),M(o=O())&&(r.overlayViewChild=o.first),M(o=O())&&(r.firstHiddenFocusableElementOnOverlay=o.first),M(o=O())&&(r.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(i,r){i&1&&K("click",function(s){return r.onContainerClick(s)}),i&2&&(J("id",r.id),k(r.cn(r.cx("root"),r.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",R],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",R],editable:[2,"editable","editable",R],tabindex:[2,"tabindex","tabindex",ke],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",R],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",R],checkmark:[2,"checkmark","checkmark",R],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",R],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",R],showClear:[2,"showClear","showClear",R],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",R],virtualScroll:[2,"virtualScroll","virtualScroll",R],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",ke],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",R],selectOnFocus:[2,"selectOnFocus","selectOnFocus",R],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",R],autofocusFilter:[2,"autofocusFilter","autofocusFilter",R],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[Se([qz,Lm,{provide:j2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(i,r){if(i&1){let o=se();C(0,Wj,6,23,"span",16)(1,Gj,2,19,"input",17)(2,Zj,3,2,"ng-container",18),I(3,"div",19),C(4,iz,3,2,"ng-container",20)(5,dz,2,2,"ng-template",null,0,at),T(),I(7,"p-overlay",21,1),ki("visibleChange",function(a){return E(o),Zi(r.overlayVisible,a)||(r.overlayVisible=a),S(a)}),K("onAnimationStart",function(a){return E(o),S(r.onOverlayAnimationStart(a))})("onHide",function(){return E(o),S(r.hide())}),C(9,$z,13,22,"ng-template",null,2,at),T()}if(i&2){let o=pn(6);h("ngIf",!r.editable),g(),h("ngIf",r.editable),g(),h("ngIf",r.isVisibleClearIcon),g(),k(r.cx("dropdown")),h("pBind",r.ptm("dropdown")),J("aria-expanded",r.overlayVisible??!1)("data-pc-section","trigger"),g(),h("ngIf",r.loading)("ngIfElse",o),g(3),h("hostAttrSelector",r.$attrSelector)("pt",r.ptm("pcOverlay")),Di("visible",r.overlayVisible),h("options",r.overlayOptions)("target","@parent")("appendTo",r.$appendTo())}},dependencies:[qe,Oi,Ut,kt,Xn,Qz,M2,Gh,Hr,Wl,Wh,Hk,bs,Pm,Am,Ou,xe,Wt,te],encapsulation:2,changeDetection:0})}return t})(),z2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[Bm,xe,xe]})}return t})();var H2=`
.p-inputnumber {
display: inline-flex;
position: relative;
@@ -1873,8 +1873,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-inputnumber-horizontal .p-inputnumber-clear-icon {
inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));
}
-`;var RH=["clearicon"],PH=["incrementbuttonicon"],AH=["decrementbuttonicon"],NH=["input"];function FH(t,n){if(t&1){let e=se();G(),E(0,"svg",7),q("click",function(){S(e);let i=m(2);return I(i.clear())}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon"))}}function LH(t,n){}function BH(t,n){t&1&&C(0,LH,0,0,"ng-template")}function VH(t,n){if(t&1){let e=se();E(0,"span",8),q("click",function(){S(e);let i=m(2);return I(i.clear())}),C(1,BH,1,0,null,9),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function jH(t,n){if(t&1&&(ie(0),C(1,FH,1,3,"svg",5)(2,VH,2,4,"span",6),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function zH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function HH(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function $H(t,n){}function UH(t,n){t&1&&C(0,$H,0,0,"ng-template")}function WH(t,n){if(t&1&&(ie(0),C(1,HH,1,1,"svg",14)(2,UH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function GH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function qH(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function QH(t,n){}function KH(t,n){t&1&&C(0,QH,0,0,"ng-template")}function YH(t,n){if(t&1&&(ie(0),C(1,qH,1,1,"svg",16)(2,KH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function ZH(t,n){if(t&1){let e=se();E(0,"span",10)(1,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onUpButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onUpButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onUpButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onUpButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onUpButtonKeyUp())}),C(2,zH,1,2,"span",12)(3,WH,3,2,"ng-container",2),T(),E(4,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onDownButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onDownButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onDownButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onDownButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onDownButtonKeyUp())}),C(5,GH,1,2,"span",12)(6,YH,3,2,"ng-container",2),T()()}if(t&2){let e=m();k(e.cx("buttonGroup")),h("pBind",e.ptm("buttonGroup")),g(),k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon),g(),k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}function JH(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function XH(t,n){if(t&1&&(G(),X(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function e$(t,n){}function t$(t,n){t&1&&C(0,e$,0,0,"ng-template")}function n$(t,n){if(t&1&&(ie(0),C(1,XH,1,1,"svg",14)(2,t$,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function r$(t,n){if(t&1){let e=se();E(0,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onUpButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onUpButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onUpButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onUpButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onUpButtonKeyUp())}),C(1,JH,1,2,"span",12)(2,n$,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon)}}function i$(t,n){if(t&1&&X(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function o$(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function s$(t,n){}function a$(t,n){t&1&&C(0,s$,0,0,"ng-template")}function l$(t,n){if(t&1&&(ie(0),C(1,o$,1,1,"svg",16)(2,a$,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function c$(t,n){if(t&1){let e=se();E(0,"button",11),q("mousedown",function(i){S(e);let o=m();return I(o.onDownButtonMouseDown(i))})("mouseup",function(){S(e);let i=m();return I(i.onDownButtonMouseUp())})("mouseleave",function(){S(e);let i=m();return I(i.onDownButtonMouseLeave())})("keydown",function(i){S(e);let o=m();return I(o.onDownButtonKeyDown(i))})("keyup",function(){S(e);let i=m();return I(i.onDownButtonKeyUp())}),C(1,i$,1,2,"span",12)(2,l$,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}var d$=`
- ${TR}
+`;var Kz=["clearicon"],Yz=["incrementbuttonicon"],Zz=["decrementbuttonicon"],Jz=["input"];function Xz(t,n){if(t&1){let e=se();G(),I(0,"svg",7),K("click",function(){E(e);let r=m(2);return S(r.clear())}),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon"))}}function eH(t,n){}function tH(t,n){t&1&&C(0,eH,0,0,"ng-template")}function nH(t,n){if(t&1){let e=se();I(0,"span",8),K("click",function(){E(e);let r=m(2);return S(r.clear())}),C(1,tH,1,0,null,9),T()}if(t&2){let e=m(2);k(e.cx("clearIcon")),h("pBind",e.ptm("clearIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function iH(t,n){if(t&1&&(re(0),C(1,Xz,1,3,"svg",5)(2,nH,2,4,"span",6),oe()),t&2){let e=m();g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function rH(t,n){if(t&1&&ee(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function oH(t,n){if(t&1&&(G(),ee(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function sH(t,n){}function aH(t,n){t&1&&C(0,sH,0,0,"ng-template")}function lH(t,n){if(t&1&&(re(0),C(1,oH,1,1,"svg",14)(2,aH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function cH(t,n){if(t&1&&ee(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function dH(t,n){if(t&1&&(G(),ee(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function uH(t,n){}function pH(t,n){t&1&&C(0,uH,0,0,"ng-template")}function fH(t,n){if(t&1&&(re(0),C(1,dH,1,1,"svg",16)(2,pH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function hH(t,n){if(t&1){let e=se();I(0,"span",10)(1,"button",11),K("mousedown",function(r){E(e);let o=m();return S(o.onUpButtonMouseDown(r))})("mouseup",function(){E(e);let r=m();return S(r.onUpButtonMouseUp())})("mouseleave",function(){E(e);let r=m();return S(r.onUpButtonMouseLeave())})("keydown",function(r){E(e);let o=m();return S(o.onUpButtonKeyDown(r))})("keyup",function(){E(e);let r=m();return S(r.onUpButtonKeyUp())}),C(2,rH,1,2,"span",12)(3,lH,3,2,"ng-container",2),T(),I(4,"button",11),K("mousedown",function(r){E(e);let o=m();return S(o.onDownButtonMouseDown(r))})("mouseup",function(){E(e);let r=m();return S(r.onDownButtonMouseUp())})("mouseleave",function(){E(e);let r=m();return S(r.onDownButtonMouseLeave())})("keydown",function(r){E(e);let o=m();return S(o.onDownButtonKeyDown(r))})("keyup",function(){E(e);let r=m();return S(r.onDownButtonKeyUp())}),C(5,cH,1,2,"span",12)(6,fH,3,2,"ng-container",2),T()()}if(t&2){let e=m();k(e.cx("buttonGroup")),h("pBind",e.ptm("buttonGroup")),g(),k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon),g(),k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}function mH(t,n){if(t&1&&ee(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("incrementButtonIcon"))("ngClass",e.incrementButtonIcon)}}function gH(t,n){if(t&1&&(G(),ee(0,"svg",15)),t&2){let e=m(3);h("pBind",e.ptm("incrementButtonIcon"))}}function yH(t,n){}function bH(t,n){t&1&&C(0,yH,0,0,"ng-template")}function vH(t,n){if(t&1&&(re(0),C(1,gH,1,1,"svg",14)(2,bH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.incrementButtonIconTemplate&&!e._incrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.incrementButtonIconTemplate||e._incrementButtonIconTemplate)}}function _H(t,n){if(t&1){let e=se();I(0,"button",11),K("mousedown",function(r){E(e);let o=m();return S(o.onUpButtonMouseDown(r))})("mouseup",function(){E(e);let r=m();return S(r.onUpButtonMouseUp())})("mouseleave",function(){E(e);let r=m();return S(r.onUpButtonMouseLeave())})("keydown",function(r){E(e);let o=m();return S(o.onUpButtonKeyDown(r))})("keyup",function(){E(e);let r=m();return S(r.onUpButtonKeyUp())}),C(1,mH,1,2,"span",12)(2,vH,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("incrementButton"),e.incrementButtonClass)),h("pBind",e.ptm("incrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.incrementButtonIcon),g(),h("ngIf",!e.incrementButtonIcon)}}function wH(t,n){if(t&1&&ee(0,"span",13),t&2){let e=m(2);h("pBind",e.ptm("decrementButtonIcon"))("ngClass",e.decrementButtonIcon)}}function CH(t,n){if(t&1&&(G(),ee(0,"svg",17)),t&2){let e=m(3);h("pBind",e.ptm("decrementButtonIcon"))}}function xH(t,n){}function TH(t,n){t&1&&C(0,xH,0,0,"ng-template")}function EH(t,n){if(t&1&&(re(0),C(1,CH,1,1,"svg",16)(2,TH,1,0,null,9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.decrementButtonIconTemplate&&!e._decrementButtonIconTemplate),g(),h("ngTemplateOutlet",e.decrementButtonIconTemplate||e._decrementButtonIconTemplate)}}function SH(t,n){if(t&1){let e=se();I(0,"button",11),K("mousedown",function(r){E(e);let o=m();return S(o.onDownButtonMouseDown(r))})("mouseup",function(){E(e);let r=m();return S(r.onDownButtonMouseUp())})("mouseleave",function(){E(e);let r=m();return S(r.onDownButtonMouseLeave())})("keydown",function(r){E(e);let o=m();return S(o.onDownButtonKeyDown(r))})("keyup",function(){E(e);let r=m();return S(r.onDownButtonKeyUp())}),C(1,wH,1,2,"span",12)(2,EH,3,2,"ng-container",2),T()}if(t&2){let e=m();k(e.cn(e.cx("decrementButton"),e.decrementButtonClass)),h("pBind",e.ptm("decrementButton")),J("disabled",e.$disabled()?"":void 0)("aria-hidden",!0),g(),h("ngIf",e.decrementButtonIcon),g(),h("ngIf",!e.decrementButtonIcon)}}var IH=`
+ ${H2}
/* For PrimeNG */
p-inputNumber.ng-invalid.ng-dirty > .p-inputtext,
@@ -1894,7 +1894,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
p-inputnumber.ng-invalid.ng-dirty > .p-inputtext::placeholder {
color: dt('inputtext.invalid.placeholder.color');
}
-`,u$={root:({instance:t})=>["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":t.$filled()||t.allowEmpty===!1,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":t.showButtons&&t.buttonLayout==="stacked","p-inputnumber-horizontal":t.showButtons&&t.buttonLayout==="horizontal","p-inputnumber-vertical":t.showButtons&&t.buttonLayout==="vertical","p-inputnumber-fluid":t.hasFluid,"p-invalid":t.invalid()}],pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":t.showButtons&&t.max()!=null&&t.maxlength()}],decrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":t.showButtons&&t.min()!=null&&t.minlength()}],clearIcon:"p-inputnumber-clear-icon"},ER=(()=>{class t extends Oe{name="inputnumber";style=d$;classes=u$;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var SR=new H("INPUTNUMBER_INSTANCE"),p$={provide:Nn,useExisting:Ht(()=>Zm),multi:!0},Zm=(()=>{class t extends vc{injector;$pcInputNumber=x(SR,{optional:!0,skipSelf:!0})??void 0;_componentStyle=x(ER);bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;placeholder;tabindex;title;ariaLabelledBy;ariaDescribedBy;ariaLabel;ariaRequired;autocomplete;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;onInput=new z;onFocus=new z;onBlur=new z;onKeyDown=new z;onClear=new z;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;templates;input;_clearIconTemplate;_incrementButtonIconTemplate;_decrementButtonIconTemplate;value;focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar="";_group;_minusSign;_currency;_prefix;_suffix;_index;ngControl=null;constructor(e){super(),this.injector=e}onChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(i=>!!e[i])&&this.updateConstructParser()}onInit(){this.ngControl=this.injector.get(Yn,null,{optional:!0}),this.constructParser(),this.initialized=!0}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this._clearIconTemplate=e.template;break;case"incrementbuttonicon":this._incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this._decrementButtonIconTemplate=e.template;break}})}getOptions(){let e=(s,a,l)=>{if(!(s==null||isNaN(s)||!isFinite(s)))return Math.max(a,Math.min(l,Math.floor(s)))},r=e(this.minFractionDigits,0,20),i=e(this.maxFractionDigits,0,100),o=r!=null&&i!=null&&r>i?i:r;return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:o,maximumFractionDigits:i}}constructParser(){let e=this.getOptions(),r=Object.fromEntries(Object.entries(e).filter(([s,a])=>a!==void 0));this.numberFormat=new Intl.NumberFormat(this.locale,r);let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.map((s,a)=>[s,a]));this._numeral=new RegExp(`[${i.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=s=>o.get(s)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,A(_({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let i=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(i=this.prefix+i),this.suffix&&e!=this.suffix&&(i=i+this.suffix),i}return e.toString()}return""}parseValue(e){let r=this._suffix?new RegExp(this._suffix,""):/(?:)/,i=this._prefix?new RegExp(this._prefix,""):/(?:)/,o=this._currency?new RegExp(this._currency,""):/(?:)/,s=e.replace(r,"").replace(i,"").trim().replace(/\s/g,"").replace(o,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(s){if(s==="-")return s;let a=+s;return isNaN(a)?null:a}return null}repeat(e,r,i){if(this.readonly)return;let o=r||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,i)},o),this.spin(e,i)}spin(e,r){let i=(this.step()??1)*r,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+i),a=this.maxlength();a&&a=0;a--)if(this.isNumeralChar(o.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":{if(e.preventDefault(),r===i){if(r==1&&this.prefix||r==o.length&&this.suffix)break;let a=o.charAt(r-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,r-2)+o.slice(r-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(r-1,r-1):s=o.slice(0,r-1)+o.slice(r);else if(l>0&&r>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,r-1)+o.slice(r)}else this.mode==="currency"&&this._currency&&a.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,r,i),this.updateValue(e,s,null,"delete-range");break}case"Delete":if(e.preventDefault(),r===i){if(r==0&&this.prefix||r==o.length-1&&this.suffix)break;let a=o.charAt(r),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,r)+o.slice(r+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(r+1,r+1):s=o.slice(0,r)+o.slice(r+1);else if(l>0&&r>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,r)+o.slice(r+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,r,i),this.updateValue(e,s,null,"delete-range");break;case"Home":this.min()&&(this.updateModel(e,this.min()),e.preventDefault());break;case"End":this.max()&&(this.updateModel(e,this.max()),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let r=e.which||e.keyCode,i=String.fromCharCode(r),o=this.isDecimalSign(i),s=this.isMinusSign(i);r!=13&&e.preventDefault(),!o&&e.code==="NumpadDecimal"&&(o=!0,i=this._decimalChar,r=i.charCodeAt(0));let{value:a,selectionStart:l,selectionEnd:c}=this.input.nativeElement,d=this.parseValue(a+i),u=d!=null?d.toString():"",p=a.substring(l,c),f=this.parseValue(p),y=f!=null?f.toString():"";if(l!==c&&y.length>0){this.insert(e,i,{isDecimalSign:o,isMinusSign:s});return}let b=this.maxlength();b&&u.length>b||(48<=r&&r<=57||s||o)&&this.insert(e,i,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.$disabled()&&!this.readonly){e.preventDefault();let r=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(this.inputId==="integeronly"&&/[^\d-]/.test(r))return;if(r){this.maxlength()&&(r=r.toString().substring(0,this.maxlength()));let i=this.parseValue(r);i!=null&&this.insert(e,i.toString())}}}allowMinusSign(){let e=this.min();return e==null||e<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let r=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:r,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){let r=e.search(this._decimal);this._decimal.lastIndex=0;let i=e.search(this._minusSign);this._minusSign.lastIndex=0;let o=e.search(this._suffix);this._suffix.lastIndex=0;let s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:r,minusCharIndex:i,suffixCharIndex:o,currencyCharIndex:s}}insert(e,r,i={isDecimalSign:!1,isMinusSign:!1}){let o=r.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:c,minusCharIndex:d,suffixCharIndex:u,currencyCharIndex:p}=this.getCharIndexes(l),f;if(i.isMinusSign)s===0&&(f=l,(d===-1||a!==0)&&(f=this.insertText(l,r,0,a)),this.updateValue(e,f,r,"insert"));else if(i.isDecimalSign)c>0&&s===c?this.updateValue(e,l,r,"insert"):c>s&&c0&&s>c){if(s+r.length-(c+1)<=y){let v=p>=s?p-1:u>=s?u:l.length;f=l.slice(0,s)+r+l.slice(s+r.length,v)+l.slice(v),this.updateValue(e,f,r,b)}}else f=this.insertText(l,r,s,a),this.updateValue(e,f,r,b)}}insertText(e,r,i,o){if((r==="."?r:r.split(".")).length===2){let a=e.slice(i,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,i)+this.formatValue(r)+e.slice(o):e||this.formatValue(r)}else return o-i===e.length?this.formatValue(r):i===0?r+e.slice(o):o===e.length?e.slice(0,i)+r:e.slice(0,i)+r+e.slice(o)}deleteRange(e,r,i){let o;return i-r===e.length?o="":r===0?o=e.slice(i):i===e.length?o=e.slice(0,r):o=e.slice(0,r)+e.slice(i),o}initCursor(){let e=this.input?.nativeElement.selectionStart,r=this.input?.nativeElement.selectionEnd,i=this.input?.nativeElement.value,o=i.length,s=null,a=(this.prefixChar||"").length;i=i.replace(this._prefix,""),(e===r||e!==0||r=0;)if(l=i.charAt(c),this.isNumeralChar(l)){s=c+a;break}else c--;if(s!==null)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(c=e;ci?i:e}updateInput(e,r,i,o){r=r||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),l===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let d=this.initCursor()+r.length;this.input.nativeElement.setSelectionRange(d,d)}else{let c=this.input.nativeElement.selectionStart,d=this.input.nativeElement.selectionEnd,u=this.maxlength();if(u&&a.length>u&&(a=a.slice(0,u),c=Math.min(c,u),d=Math.min(d,u)),u&&uMe(e,void 0)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>Me(e,void 0)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",R],autofocus:[2,"autofocus","autofocus",R]},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[xe([p$,ER,{provide:SR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:6,vars:36,consts:[["input",""],["pInputText","","role","spinbutton","inputmode","decimal",3,"input","keydown","keypress","paste","click","focus","blur","value","ngStyle","variant","invalid","pSize","pt","pAutoFocus","fluid"],[4,"ngIf"],[3,"pBind","class",4,"ngIf"],["type","button","tabindex","-1",3,"pBind","class","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind"],["type","button","tabindex","-1",3,"mousedown","mouseup","mouseleave","keydown","keyup","pBind"],[3,"pBind","ngClass",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","angle-up",3,"pBind",4,"ngIf"],["data-p-icon","angle-up",3,"pBind"],["data-p-icon","angle-down",3,"pBind",4,"ngIf"],["data-p-icon","angle-down",3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("input",function(a){return S(o),I(i.onUserInput(a))})("keydown",function(a){return S(o),I(i.onInputKeyDown(a))})("keypress",function(a){return S(o),I(i.onInputKeyPress(a))})("paste",function(a){return S(o),I(i.onPaste(a))})("click",function(){return S(o),I(i.onInputClick())})("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))}),T(),C(2,jH,3,2,"ng-container",2)(3,ZH,7,17,"span",3)(4,r$,3,7,"button",4)(5,c$,3,7,"button",4)}r&2&&(k(i.cn(i.cx("pcInputText"),i.inputStyleClass)),h("value",i.formattedValue())("ngStyle",i.inputStyle)("variant",i.$variant())("invalid",i.invalid())("pSize",i.size())("pt",i.ptm("pcInputText"))("pAutoFocus",i.autofocus)("fluid",i.hasFluid),J("id",i.inputId)("aria-valuemin",i.min())("aria-valuemax",i.max())("aria-valuenow",i.value)("placeholder",i.placeholder)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-describedby",i.ariaDescribedBy)("title",i.title)("size",i.inputSize())("name",i.name())("autocomplete",i.autocomplete)("maxlength",i.maxlength())("minlength",i.minlength())("tabindex",i.tabindex)("aria-required",i.ariaRequired)("min",i.min())("max",i.max())("step",i.step()??1)("required",i.required()?"":void 0)("readonly",i.readonly?"":void 0)("disabled",i.$disabled()?"":void 0),g(2),h("ngIf",i.buttonLayout!="vertical"&&i.showClear&&i.value),g(),h("ngIf",i.showButtons&&i.buttonLayout==="stacked"),g(),h("ngIf",i.showButtons&&i.buttonLayout!=="stacked"),g(),h("ngIf",i.showButtons&&i.buttonLayout!=="stacked"))},dependencies:[Qe,ei,Ut,kt,tr,to,$i,ql,Zk,Qk,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})(),IR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Zm,Te,Te]})}return t})();var DR=`
+`,DH={root:({instance:t})=>["p-inputnumber p-component p-inputwrapper",{"p-inputwrapper-filled":t.$filled()||t.allowEmpty===!1,"p-inputwrapper-focus":t.focused,"p-inputnumber-stacked":t.showButtons&&t.buttonLayout==="stacked","p-inputnumber-horizontal":t.showButtons&&t.buttonLayout==="horizontal","p-inputnumber-vertical":t.showButtons&&t.buttonLayout==="vertical","p-inputnumber-fluid":t.hasFluid,"p-invalid":t.invalid()}],pcInputText:"p-inputnumber-input",buttonGroup:"p-inputnumber-button-group",incrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-increment-button",{"p-disabled":t.showButtons&&t.max()!=null&&t.maxlength()}],decrementButton:({instance:t})=>["p-inputnumber-button p-inputnumber-decrement-button",{"p-disabled":t.showButtons&&t.min()!=null&&t.minlength()}],clearIcon:"p-inputnumber-clear-icon"},$2=(()=>{class t extends Me{name="inputnumber";style=IH;classes=DH;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var U2=new z("INPUTNUMBER_INSTANCE"),kH={provide:Vn,useExisting:Jt(()=>Vm),multi:!0},Vm=(()=>{class t extends gc{injector;$pcInputNumber=x(U2,{optional:!0,skipSelf:!0})??void 0;_componentStyle=x($2);bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}showButtons=!1;format=!0;buttonLayout="stacked";inputId;styleClass;placeholder;tabindex;title;ariaLabelledBy;ariaDescribedBy;ariaLabel;ariaRequired;autocomplete;incrementButtonClass;decrementButtonClass;incrementButtonIcon;decrementButtonIcon;readonly;allowEmpty=!0;locale;localeMatcher;mode="decimal";currency;currencyDisplay;useGrouping=!0;minFractionDigits;maxFractionDigits;prefix;suffix;inputStyle;inputStyleClass;showClear=!1;autofocus;onInput=new H;onFocus=new H;onBlur=new H;onKeyDown=new H;onClear=new H;clearIconTemplate;incrementButtonIconTemplate;decrementButtonIconTemplate;templates;input;_clearIconTemplate;_incrementButtonIconTemplate;_decrementButtonIconTemplate;value;focused;initialized;groupChar="";prefixChar="";suffixChar="";isSpecialChar;timer;lastValue;_numeral;numberFormat;_decimal;_decimalChar="";_group;_minusSign;_currency;_prefix;_suffix;_index;ngControl=null;constructor(e){super(),this.injector=e}onChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}onInit(){this.ngControl=this.injector.get(mi,null,{optional:!0}),this.constructParser(),this.initialized=!0}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"clearicon":this._clearIconTemplate=e.template;break;case"incrementbuttonicon":this._incrementButtonIconTemplate=e.template;break;case"decrementbuttonicon":this._decrementButtonIconTemplate=e.template;break}})}getOptions(){let e=(s,a,l)=>{if(!(s==null||isNaN(s)||!isFinite(s)))return Math.max(a,Math.min(l,Math.floor(s)))},i=e(this.minFractionDigits,0,20),r=e(this.maxFractionDigits,0,100),o=i!=null&&r!=null&&i>r?r:i;return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:o,maximumFractionDigits:r}}constructParser(){let e=this.getOptions(),i=Object.fromEntries(Object.entries(e).filter(([s,a])=>a!==void 0));this.numberFormat=new Intl.NumberFormat(this.locale,i);let r=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(r.map((s,a)=>[s,a]));this._numeral=new RegExp(`[${r.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._decimalChar=this.getDecimalChar(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=s=>o.get(s)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){let e=this.getDecimalChar();return new RegExp(`[${e}]`,"g")}getDecimalChar(){return new Intl.NumberFormat(this.locale,A(_({},this.getOptions()),{useGrouping:!1})).format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}getGroupingExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){let e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){let e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{let e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(e!=null){if(e==="-")return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&e!=this.prefix&&(r=this.prefix+r),this.suffix&&e!=this.suffix&&(r=r+this.suffix),r}return e.toString()}return""}parseValue(e){let i=this._suffix?new RegExp(this._suffix,""):/(?:)/,r=this._prefix?new RegExp(this._prefix,""):/(?:)/,o=this._currency?new RegExp(this._currency,""):/(?:)/,s=e.replace(i,"").replace(r,"").trim().replace(/\s/g,"").replace(o,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(s){if(s==="-")return s;let a=+s;return isNaN(a)?null:a}return null}repeat(e,i,r){if(this.readonly)return;let o=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},o),this.spin(e,r)}spin(e,i){let r=(this.step()??1)*i,o=this.parseValue(this.input?.nativeElement.value)||0,s=this.validateValue(o+r),a=this.maxlength();a&&a=0;a--)if(this.isNumeralChar(o.charAt(a))){this.input.nativeElement.setSelectionRange(a,a);break}break;case"Tab":case"Enter":s=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(s),this.input.nativeElement.setAttribute("aria-valuenow",s),this.updateModel(e,s);break;case"Backspace":{if(e.preventDefault(),i===r){if(i==1&&this.prefix||i==o.length&&this.suffix)break;let a=o.charAt(i-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,i-2)+o.slice(i-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(i-1,i-1):s=o.slice(0,i-1)+o.slice(i);else if(l>0&&i>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i-1)+o.slice(i)}else this.mode==="currency"&&this._currency&&a.search(this._currency)!=-1&&(s=o.slice(1));this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range");break}case"Delete":if(e.preventDefault(),i===r){if(i==0&&this.prefix||i==o.length-1&&this.suffix)break;let a=o.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){let d=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,i)+o.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,d?this.input?.nativeElement.setSelectionRange(i+1,i+1):s=o.slice(0,i)+o.slice(i+1);else if(l>0&&i>l){let u=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i)+o.slice(i+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range");break;case"Home":this.min()&&(this.updateModel(e,this.min()),e.preventDefault());break;case"End":this.max()&&(this.updateModel(e,this.max()),e.preventDefault());break;default:break}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,r=String.fromCharCode(i),o=this.isDecimalSign(r),s=this.isMinusSign(r);i!=13&&e.preventDefault(),!o&&e.code==="NumpadDecimal"&&(o=!0,r=this._decimalChar,i=r.charCodeAt(0));let{value:a,selectionStart:l,selectionEnd:c}=this.input.nativeElement,d=this.parseValue(a+r),u=d!=null?d.toString():"",p=a.substring(l,c),f=this.parseValue(p),y=f!=null?f.toString():"";if(l!==c&&y.length>0){this.insert(e,r,{isDecimalSign:o,isMinusSign:s});return}let b=this.maxlength();b&&u.length>b||(48<=i&&i<=57||s||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.$disabled()&&!this.readonly){e.preventDefault();let i=(e.clipboardData||this.document.defaultView.clipboardData).getData("Text");if(this.inputId==="integeronly"&&/[^\d-]/.test(i))return;if(i){this.maxlength()&&(i=i.toString().substring(0,this.maxlength()));let r=this.parseValue(i);r!=null&&this.insert(e,r.toString())}}}allowMinusSign(){let e=this.min();return e==null||e<0}isMinusSign(e){return this._minusSign.test(e)||e==="-"?(this._minusSign.lastIndex=0,!0):!1}isDecimalSign(e){return this._decimal.test(e)?(this._decimal.lastIndex=0,!0):!1}isDecimalMode(){return this.mode==="decimal"}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;let o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;let r=e.search(this._minusSign);this._minusSign.lastIndex=0;let o=e.search(this._suffix);this._suffix.lastIndex=0;let s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:s}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){let o=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&o!==-1)return;let s=this.input?.nativeElement.selectionStart,a=this.input?.nativeElement.selectionEnd,l=this.input?.nativeElement.value.trim(),{decimalCharIndex:c,minusCharIndex:d,suffixCharIndex:u,currencyCharIndex:p}=this.getCharIndexes(l),f;if(r.isMinusSign)s===0&&(f=l,(d===-1||a!==0)&&(f=this.insertText(l,i,0,a)),this.updateValue(e,f,i,"insert"));else if(r.isDecimalSign)c>0&&s===c?this.updateValue(e,l,i,"insert"):c>s&&c0&&s>c){if(s+i.length-(c+1)<=y){let v=p>=s?p-1:u>=s?u:l.length;f=l.slice(0,s)+i+l.slice(s+i.length,v)+l.slice(v),this.updateValue(e,f,i,b)}}else f=this.insertText(l,i,s,a),this.updateValue(e,f,i,b)}}insertText(e,i,r,o){if((i==="."?i:i.split(".")).length===2){let a=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+e.slice(o):e||this.formatValue(i)}else return o-r===e.length?this.formatValue(i):r===0?i+e.slice(o):o===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(o)}deleteRange(e,i,r){let o;return r-i===e.length?o="":i===0?o=e.slice(r):r===e.length?o=e.slice(0,i):o=e.slice(0,i)+e.slice(r),o}initCursor(){let e=this.input?.nativeElement.selectionStart,i=this.input?.nativeElement.selectionEnd,r=this.input?.nativeElement.value,o=r.length,s=null,a=(this.prefixChar||"").length;r=r.replace(this._prefix,""),(e===i||e!==0||i=0;)if(l=r.charAt(c),this.isNumeralChar(l)){s=c+a;break}else c--;if(s!==null)this.input?.nativeElement.setSelectionRange(s+1,s+1);else{for(c=e;cr?r:e}updateInput(e,i,r,o){i=i||"";let s=this.input?.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),l===0){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);let d=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(d,d)}else{let c=this.input.nativeElement.selectionStart,d=this.input.nativeElement.selectionEnd,u=this.maxlength();if(u&&a.length>u&&(a=a.slice(0,u),c=Math.min(c,u),d=Math.min(d,u)),u&&uke(e,void 0)],maxFractionDigits:[2,"maxFractionDigits","maxFractionDigits",e=>ke(e,void 0)],prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:[2,"showClear","showClear",R],autofocus:[2,"autofocus","autofocus",R]},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Se([kH,$2,{provide:U2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],decls:6,vars:36,consts:[["input",""],["pInputText","","role","spinbutton","inputmode","decimal",3,"input","keydown","keypress","paste","click","focus","blur","value","ngStyle","variant","invalid","pSize","pt","pAutoFocus","fluid"],[4,"ngIf"],[3,"pBind","class",4,"ngIf"],["type","button","tabindex","-1",3,"pBind","class","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],["data-p-icon","times",3,"pBind","class","click",4,"ngIf"],[3,"pBind","class","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],[3,"pBind"],["type","button","tabindex","-1",3,"mousedown","mouseup","mouseleave","keydown","keyup","pBind"],[3,"pBind","ngClass",4,"ngIf"],[3,"pBind","ngClass"],["data-p-icon","angle-up",3,"pBind",4,"ngIf"],["data-p-icon","angle-up",3,"pBind"],["data-p-icon","angle-down",3,"pBind",4,"ngIf"],["data-p-icon","angle-down",3,"pBind"]],template:function(i,r){if(i&1){let o=se();I(0,"input",1,0),K("input",function(a){return E(o),S(r.onUserInput(a))})("keydown",function(a){return E(o),S(r.onInputKeyDown(a))})("keypress",function(a){return E(o),S(r.onInputKeyPress(a))})("paste",function(a){return E(o),S(r.onPaste(a))})("click",function(){return E(o),S(r.onInputClick())})("focus",function(a){return E(o),S(r.onInputFocus(a))})("blur",function(a){return E(o),S(r.onInputBlur(a))}),T(),C(2,iH,3,2,"ng-container",2)(3,hH,7,17,"span",3)(4,_H,3,7,"button",4)(5,SH,3,7,"button",4)}i&2&&(k(r.cn(r.cx("pcInputText"),r.inputStyleClass)),h("value",r.formattedValue())("ngStyle",r.inputStyle)("variant",r.$variant())("invalid",r.invalid())("pSize",r.size())("pt",r.ptm("pcInputText"))("pAutoFocus",r.autofocus)("fluid",r.hasFluid),J("id",r.inputId)("aria-valuemin",r.min())("aria-valuemax",r.max())("aria-valuenow",r.value)("placeholder",r.placeholder)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledBy)("aria-describedby",r.ariaDescribedBy)("title",r.title)("size",r.inputSize())("name",r.name())("autocomplete",r.autocomplete)("maxlength",r.maxlength())("minlength",r.minlength())("tabindex",r.tabindex)("aria-required",r.ariaRequired)("min",r.min())("max",r.max())("step",r.step()??1)("required",r.required()?"":void 0)("readonly",r.readonly?"":void 0)("disabled",r.$disabled()?"":void 0),g(2),h("ngIf",r.buttonLayout!="vertical"&&r.showClear&&r.value),g(),h("ngIf",r.showButtons&&r.buttonLayout==="stacked"),g(),h("ngIf",r.showButtons&&r.buttonLayout!=="stacked"),g(),h("ngIf",r.showButtons&&r.buttonLayout!=="stacked"))},dependencies:[qe,Ji,Ut,kt,Xn,bs,Hr,Wl,Rk,kk,xe,Wt,te],encapsulation:2,changeDetection:0})}return t})(),W2=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[Vm,xe,xe]})}return t})();var G2=`
.p-paginator {
display: flex;
align-items: center;
@@ -1995,7 +1995,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-paginator-last:dir(rtl) {
transform: rotate(180deg);
}
-`;var f$=["dropdownicon"],h$=["firstpagelinkicon"],m$=["previouspagelinkicon"],g$=["lastpagelinkicon"],y$=["nextpagelinkicon"],Jm=t=>({$implicit:t}),b$=t=>({pageLink:t});function v$(t,n){t&1&&ne(0)}function _$(t,n){if(t&1&&(E(0,"div",10),C(1,v$,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentStart")),h("pBind",e.ptm("contentStart")),g(),h("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",Ee(5,Jm,e.paginatorState))}}function w$(t,n){if(t&1&&(E(0,"span",10),ce(1),T()),t&2){let e=m();k(e.cx("current")),h("pBind",e.ptm("current")),g(),Ze(e.currentPageReport)}}function C$(t,n){if(t&1&&(G(),X(0,"svg",14)),t&2){let e=m(2);k(e.cx("firstIcon")),h("pBind",e.ptm("firstIcon"))}}function x$(t,n){}function T$(t,n){t&1&&C(0,x$,0,0,"ng-template")}function E$(t,n){if(t&1&&(E(0,"span"),C(1,T$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("firstIcon")),g(),h("ngTemplateOutlet",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function S$(t,n){if(t&1){let e=se();E(0,"button",12),q("click",function(i){S(e);let o=m();return I(o.changePageToFirst(i))}),C(1,C$,1,3,"svg",13)(2,E$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("first")),h("pBind",e.ptm("first")),J("aria-label",e.getAriaLabel("firstPageLabel")),g(),h("ngIf",!e.firstPageLinkIconTemplate&&!e._firstPageLinkIconTemplate),g(),h("ngIf",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function I$(t,n){if(t&1&&(G(),X(0,"svg",16)),t&2){let e=m();k(e.cx("prevIcon")),h("pBind",e.ptm("prevIcon"))}}function D$(t,n){}function k$(t,n){t&1&&C(0,D$,0,0,"ng-template")}function M$(t,n){if(t&1&&(E(0,"span"),C(1,k$,1,0,null,15),T()),t&2){let e=m();k(e.cx("prevIcon")),g(),h("ngTemplateOutlet",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate)}}function O$(t,n){if(t&1){let e=se();E(0,"button",12),q("click",function(i){let o=S(e).$implicit,s=m(2);return I(s.onPageLinkClick(i,o-1))}),ce(1),T()}if(t&2){let e=n.$implicit,r=m(2);k(r.cx("page",Ee(6,b$,e))),h("pBind",r.ptm("page")),J("aria-label",r.getPageAriaLabel(e))("aria-current",e-1==r.getPage()?"page":void 0),g(),$t(" ",r.getLocalization(e)," ")}}function R$(t,n){if(t&1&&(E(0,"span",10),C(1,O$,2,8,"button",17),T()),t&2){let e=m();k(e.cx("pages")),h("pBind",e.ptm("pages")),g(),h("ngForOf",e.pageLinks)}}function P$(t,n){if(t&1&&ce(0),t&2){let e=m(2);Ze(e.currentPageReport)}}function A$(t,n){t&1&&ne(0)}function N$(t,n){if(t&1&&C(0,A$,1,0,"ng-container",11),t&2){let e=n.$implicit,r=m(3);h("ngTemplateOutlet",r.jumpToPageItemTemplate)("ngTemplateOutletContext",Ee(2,Jm,e))}}function F$(t,n){t&1&&(ie(0),C(1,N$,1,4,"ng-template",21),oe())}function L$(t,n){t&1&&ne(0)}function B$(t,n){if(t&1&&C(0,L$,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function V$(t,n){t&1&&C(0,B$,1,1,"ng-template",22)}function j$(t,n){if(t&1){let e=se();E(0,"p-select",18),q("onChange",function(i){S(e);let o=m();return I(o.onPageDropdownChange(i))}),C(1,P$,1,1,"ng-template",19)(2,F$,2,0,"ng-container",20)(3,V$,1,0,null,20),T()}if(t&2){let e=m();h("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("styleClass",e.cx("pcJumpToPageDropdown"))("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("pt",e.ptm("pcJumpToPageDropdown")),J("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),g(2),h("ngIf",e.jumpToPageItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function z$(t,n){if(t&1&&(G(),X(0,"svg",23)),t&2){let e=m();k(e.cx("nextIcon")),h("pBind",e.ptm("nextIcon"))}}function H$(t,n){}function $$(t,n){t&1&&C(0,H$,0,0,"ng-template")}function U$(t,n){if(t&1&&(E(0,"span"),C(1,$$,1,0,null,15),T()),t&2){let e=m();k(e.cx("nextIcon")),g(),h("ngTemplateOutlet",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate)}}function W$(t,n){if(t&1&&(G(),X(0,"svg",25)),t&2){let e=m(2);k(e.cx("lastIcon")),h("pBind",e.ptm("lastIcon"))}}function G$(t,n){}function q$(t,n){t&1&&C(0,G$,0,0,"ng-template")}function Q$(t,n){if(t&1&&(E(0,"span"),C(1,q$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("lastIcon")),g(),h("ngTemplateOutlet",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function K$(t,n){if(t&1){let e=se();E(0,"button",2),q("click",function(i){S(e);let o=m();return I(o.changePageToLast(i))}),C(1,W$,1,3,"svg",24)(2,Q$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("last")),h("pBind",e.ptm("last"))("disabled",e.isLastPage()||e.empty()),J("aria-label",e.getAriaLabel("lastPageLabel")),g(),h("ngIf",!e.lastPageLinkIconTemplate&&!e._lastPageLinkIconTemplate),g(),h("ngIf",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function Y$(t,n){if(t&1){let e=se();E(0,"p-inputnumber",26),q("ngModelChange",function(i){S(e);let o=m();return I(o.changePage(i-1))}),T()}if(t&2){let e=m();k(e.cx("pcJumpToPageInput")),h("pt",e.ptm("pcJumpToPageInput"))("ngModel",e.currentPage())("disabled",e.empty())}}function Z$(t,n){t&1&&ne(0)}function J$(t,n){if(t&1&&C(0,Z$,1,0,"ng-container",11),t&2){let e=n.$implicit,r=m(3);h("ngTemplateOutlet",r.dropdownItemTemplate)("ngTemplateOutletContext",Ee(2,Jm,e))}}function X$(t,n){t&1&&(ie(0),C(1,J$,1,4,"ng-template",21),oe())}function eU(t,n){t&1&&ne(0)}function tU(t,n){if(t&1&&C(0,eU,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function nU(t,n){t&1&&C(0,tU,1,1,"ng-template",22)}function rU(t,n){if(t&1){let e=se();E(0,"p-select",27),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.rows,i)||(o.rows=i),I(i)}),q("onChange",function(i){S(e);let o=m();return I(o.onRppChange(i))}),C(1,X$,2,0,"ng-container",20)(2,nU,1,0,null,20),T()}if(t&2){let e=m();h("options",e.rowsPerPageItems),Or("ngModel",e.rows),h("styleClass",e.cx("pcRowPerPageDropdown"))("disabled",e.empty())("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel"))("pt",e.ptm("pcRowPerPageDropdown")),g(),h("ngIf",e.dropdownItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function iU(t,n){t&1&&ne(0)}function oU(t,n){if(t&1&&(E(0,"div",10),C(1,iU,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentEnd")),h("pBind",e.ptm("contentEnd")),g(),h("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",Ee(5,Jm,e.paginatorState))}}var sU={paginator:({instance:t})=>["p-paginator p-component"],content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:({instance:t})=>["p-paginator-first",{"p-disabled":t.isFirstPage()||t.empty()}],firstIcon:"p-paginator-first-icon",prev:({instance:t})=>["p-paginator-prev",{"p-disabled":t.isFirstPage()||t.empty()}],prevIcon:"p-paginator-prev-icon",next:({instance:t})=>["p-paginator-next",{"p-disabled":t.isLastPage()||t.empty()}],nextIcon:"p-paginator-next-icon",last:({instance:t})=>["p-paginator-last",{"p-disabled":t.isLastPage()||t.empty()}],lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:({instance:t,pageLink:n})=>["p-paginator-page",{"p-paginator-page-selected":n-1==t.getPage()}],current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInput:"p-paginator-jtp-input"},kR=(()=>{class t extends Oe{name="paginator";style=DR;classes=sU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var MR=new H("PAGINATOR_INSTANCE"),Vu=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcPaginator=x(MR,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}pageLinkSize=5;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}appendTo=ae(void 0);onPageChange=new z;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;templates;_dropdownIconTemplate;_firstPageLinkIconTemplate;_previousPageLinkIconTemplate;_lastPageLinkIconTemplate;_nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;_componentStyle=x(kR);$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());get display(){return this.alwaysShow||this.pageLinks&&this.pageLinks.length>1?null:"none"}constructor(){super()}onInit(){this.updatePaginatorState()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this._firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this._previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this._lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this._nextPageLinkIconTemplate=e.template;break}})}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel?.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let r=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(r.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>i.get(Number(s))).join(""):i.get(e)}onChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];let e=null;for(let r of this.rowsPerPageOptions)typeof r=="object"&&r.showAll?e={label:r.showAll,value:this.totalRecords}:this.rowsPerPageItems.push({label:String(this.getLocalization(r)),value:r});e&&this.rowsPerPageItems.push(e)}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),r=Math.min(this.pageLinkSize,e),i=Math.max(0,Math.ceil(this.getPage()-r/2)),o=Math.min(e-1,i+r-1);var s=this.pageLinkSize-(o-i+1);return i=Math.max(0,i-s),[i,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),r=e[0],i=e[1];for(let o=r;o<=i;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,r){this.changePage(r),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=$({type:t,selectors:[["p-paginator"]],contentQueries:function(r,i,o){if(r&1&&(V(o,f$,4),V(o,h$,4),V(o,m$,4),V(o,g$,4),V(o,y$,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.dropdownIconTemplate=s.first),M(s=O())&&(i.firstPageLinkIconTemplate=s.first),M(s=O())&&(i.previousPageLinkIconTemplate=s.first),M(s=O())&&(i.lastPageLinkIconTemplate=s.first),M(s=O())&&(i.nextPageLinkIconTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:4,hostBindings:function(r,i){r&2&&(k(i.cn(i.cx("paginator"),i.styleClass)),er("display",i.display))},inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",Me],styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",R],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],totalRecords:[2,"totalRecords","totalRecords",Me],rows:[2,"rows","rows",Me],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",R],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",R],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first",appendTo:[1,"appendTo"]},outputs:{onPageChange:"onPageChange"},features:[xe([kR,{provide:MR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:15,vars:23,consts:[[3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","click",4,"ngIf"],["type","button","pRipple","",3,"click","pBind","disabled"],["data-p-icon","angle-left",3,"pBind","class",4,"ngIf"],[3,"class",4,"ngIf"],[3,"options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt","onChange",4,"ngIf"],["data-p-icon","angle-right",3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","disabled","class","click",4,"ngIf"],[3,"pt","ngModel","class","disabled","ngModelChange",4,"ngIf"],[3,"options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt","ngModelChange","onChange",4,"ngIf"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","pRipple","",3,"click","pBind"],["data-p-icon","angle-double-left",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-left",3,"pBind"],[4,"ngTemplateOutlet"],["data-p-icon","angle-left",3,"pBind"],["type","button","pRipple","",3,"pBind","class","click",4,"ngFor","ngForOf"],[3,"onChange","options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["data-p-icon","angle-right",3,"pBind"],["data-p-icon","angle-double-right",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-right",3,"pBind"],[3,"ngModelChange","pt","ngModel","disabled"],[3,"ngModelChange","onChange","options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt"]],template:function(r,i){r&1&&(C(0,_$,2,7,"div",0)(1,w$,2,4,"span",0)(2,S$,3,6,"button",1),E(3,"button",2),q("click",function(s){return i.changePageToPrev(s)}),C(4,I$,1,3,"svg",3)(5,M$,2,3,"span",4),T(),C(6,R$,2,4,"span",0)(7,j$,4,10,"p-select",5),E(8,"button",2),q("click",function(s){return i.changePageToNext(s)}),C(9,z$,1,3,"svg",6)(10,U$,2,3,"span",4),T(),C(11,K$,3,7,"button",7)(12,Y$,1,5,"p-inputnumber",8)(13,rU,3,10,"p-select",9)(14,oU,2,7,"div",0)),r&2&&(h("ngIf",i.templateLeft),g(),h("ngIf",i.showCurrentPageReport),g(),h("ngIf",i.showFirstLastIcon),g(),k(i.cx("prev")),h("pBind",i.ptm("prev"))("disabled",i.isFirstPage()||i.empty()),J("aria-label",i.getAriaLabel("prevPageLabel")),g(),h("ngIf",!i.previousPageLinkIconTemplate&&!i._previousPageLinkIconTemplate),g(),h("ngIf",i.previousPageLinkIconTemplate||i._previousPageLinkIconTemplate),g(),h("ngIf",i.showPageLinks),g(),h("ngIf",i.showJumpToPageDropdown),g(),k(i.cx("next")),h("pBind",i.ptm("next"))("disabled",i.isLastPage()||i.empty()),J("aria-label",i.getAriaLabel("nextPageLabel")),g(),h("ngIf",!i.nextPageLinkIconTemplate&&!i._nextPageLinkIconTemplate),g(),h("ngIf",i.nextPageLinkIconTemplate||i._nextPageLinkIconTemplate),g(),h("ngIf",i.showFirstLastIcon),g(),h("ngIf",i.showJumpToPageInput),g(),h("ngIf",i.rowsPerPageOptions),g(),h("ngIf",i.templateRight))},dependencies:[Qe,Ar,Ut,kt,Ym,Zm,Xi,_s,Da,Ui,Gk,qk,Kk,Yk,Te,xt,te],encapsulation:2,changeDetection:0})}return t})(),Xm=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[Vu,Te,Te]})}return t})();var RR=`
+`;var MH=["dropdownicon"],OH=["firstpagelinkicon"],RH=["previouspagelinkicon"],PH=["lastpagelinkicon"],AH=["nextpagelinkicon"],jm=t=>({$implicit:t}),NH=t=>({pageLink:t});function FH(t,n){t&1&&ne(0)}function LH(t,n){if(t&1&&(I(0,"div",10),C(1,FH,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentStart")),h("pBind",e.ptm("contentStart")),g(),h("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",Te(5,jm,e.paginatorState))}}function BH(t,n){if(t&1&&(I(0,"span",10),ce(1),T()),t&2){let e=m();k(e.cx("current")),h("pBind",e.ptm("current")),g(),Xe(e.currentPageReport)}}function VH(t,n){if(t&1&&(G(),ee(0,"svg",14)),t&2){let e=m(2);k(e.cx("firstIcon")),h("pBind",e.ptm("firstIcon"))}}function jH(t,n){}function zH(t,n){t&1&&C(0,jH,0,0,"ng-template")}function HH(t,n){if(t&1&&(I(0,"span"),C(1,zH,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("firstIcon")),g(),h("ngTemplateOutlet",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function $H(t,n){if(t&1){let e=se();I(0,"button",12),K("click",function(r){E(e);let o=m();return S(o.changePageToFirst(r))}),C(1,VH,1,3,"svg",13)(2,HH,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("first")),h("pBind",e.ptm("first")),J("aria-label",e.getAriaLabel("firstPageLabel")),g(),h("ngIf",!e.firstPageLinkIconTemplate&&!e._firstPageLinkIconTemplate),g(),h("ngIf",e.firstPageLinkIconTemplate||e._firstPageLinkIconTemplate)}}function UH(t,n){if(t&1&&(G(),ee(0,"svg",16)),t&2){let e=m();k(e.cx("prevIcon")),h("pBind",e.ptm("prevIcon"))}}function WH(t,n){}function GH(t,n){t&1&&C(0,WH,0,0,"ng-template")}function qH(t,n){if(t&1&&(I(0,"span"),C(1,GH,1,0,null,15),T()),t&2){let e=m();k(e.cx("prevIcon")),g(),h("ngTemplateOutlet",e.previousPageLinkIconTemplate||e._previousPageLinkIconTemplate)}}function QH(t,n){if(t&1){let e=se();I(0,"button",12),K("click",function(r){let o=E(e).$implicit,s=m(2);return S(s.onPageLinkClick(r,o-1))}),ce(1),T()}if(t&2){let e=n.$implicit,i=m(2);k(i.cx("page",Te(6,NH,e))),h("pBind",i.ptm("page")),J("aria-label",i.getPageAriaLabel(e))("aria-current",e-1==i.getPage()?"page":void 0),g(),$t(" ",i.getLocalization(e)," ")}}function KH(t,n){if(t&1&&(I(0,"span",10),C(1,QH,2,8,"button",17),T()),t&2){let e=m();k(e.cx("pages")),h("pBind",e.ptm("pages")),g(),h("ngForOf",e.pageLinks)}}function YH(t,n){if(t&1&&ce(0),t&2){let e=m(2);Xe(e.currentPageReport)}}function ZH(t,n){t&1&&ne(0)}function JH(t,n){if(t&1&&C(0,ZH,1,0,"ng-container",11),t&2){let e=n.$implicit,i=m(3);h("ngTemplateOutlet",i.jumpToPageItemTemplate)("ngTemplateOutletContext",Te(2,jm,e))}}function XH(t,n){t&1&&(re(0),C(1,JH,1,4,"ng-template",21),oe())}function e$(t,n){t&1&&ne(0)}function t$(t,n){if(t&1&&C(0,e$,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function n$(t,n){t&1&&C(0,t$,1,1,"ng-template",22)}function i$(t,n){if(t&1){let e=se();I(0,"p-select",18),K("onChange",function(r){E(e);let o=m();return S(o.onPageDropdownChange(r))}),C(1,YH,1,1,"ng-template",19)(2,XH,2,0,"ng-container",20)(3,n$,1,0,null,20),T()}if(t&2){let e=m();h("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("styleClass",e.cx("pcJumpToPageDropdown"))("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("pt",e.ptm("pcJumpToPageDropdown")),J("aria-label",e.getAriaLabel("jumpToPageDropdownLabel")),g(2),h("ngIf",e.jumpToPageItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function r$(t,n){if(t&1&&(G(),ee(0,"svg",23)),t&2){let e=m();k(e.cx("nextIcon")),h("pBind",e.ptm("nextIcon"))}}function o$(t,n){}function s$(t,n){t&1&&C(0,o$,0,0,"ng-template")}function a$(t,n){if(t&1&&(I(0,"span"),C(1,s$,1,0,null,15),T()),t&2){let e=m();k(e.cx("nextIcon")),g(),h("ngTemplateOutlet",e.nextPageLinkIconTemplate||e._nextPageLinkIconTemplate)}}function l$(t,n){if(t&1&&(G(),ee(0,"svg",25)),t&2){let e=m(2);k(e.cx("lastIcon")),h("pBind",e.ptm("lastIcon"))}}function c$(t,n){}function d$(t,n){t&1&&C(0,c$,0,0,"ng-template")}function u$(t,n){if(t&1&&(I(0,"span"),C(1,d$,1,0,null,15),T()),t&2){let e=m(2);k(e.cx("lastIcon")),g(),h("ngTemplateOutlet",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function p$(t,n){if(t&1){let e=se();I(0,"button",2),K("click",function(r){E(e);let o=m();return S(o.changePageToLast(r))}),C(1,l$,1,3,"svg",24)(2,u$,2,3,"span",4),T()}if(t&2){let e=m();k(e.cx("last")),h("pBind",e.ptm("last"))("disabled",e.isLastPage()||e.empty()),J("aria-label",e.getAriaLabel("lastPageLabel")),g(),h("ngIf",!e.lastPageLinkIconTemplate&&!e._lastPageLinkIconTemplate),g(),h("ngIf",e.lastPageLinkIconTemplate||e._lastPageLinkIconTemplate)}}function f$(t,n){if(t&1){let e=se();I(0,"p-inputnumber",26),K("ngModelChange",function(r){E(e);let o=m();return S(o.changePage(r-1))}),T()}if(t&2){let e=m();k(e.cx("pcJumpToPageInput")),h("pt",e.ptm("pcJumpToPageInput"))("ngModel",e.currentPage())("disabled",e.empty())}}function h$(t,n){t&1&&ne(0)}function m$(t,n){if(t&1&&C(0,h$,1,0,"ng-container",11),t&2){let e=n.$implicit,i=m(3);h("ngTemplateOutlet",i.dropdownItemTemplate)("ngTemplateOutletContext",Te(2,jm,e))}}function g$(t,n){t&1&&(re(0),C(1,m$,1,4,"ng-template",21),oe())}function y$(t,n){t&1&&ne(0)}function b$(t,n){if(t&1&&C(0,y$,1,0,"ng-container",15),t&2){let e=m(3);h("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function v$(t,n){t&1&&C(0,b$,1,1,"ng-template",22)}function _$(t,n){if(t&1){let e=se();I(0,"p-select",27),ki("ngModelChange",function(r){E(e);let o=m();return Zi(o.rows,r)||(o.rows=r),S(r)}),K("onChange",function(r){E(e);let o=m();return S(o.onRppChange(r))}),C(1,g$,2,0,"ng-container",20)(2,v$,1,0,null,20),T()}if(t&2){let e=m();h("options",e.rowsPerPageItems),Di("ngModel",e.rows),h("styleClass",e.cx("pcRowPerPageDropdown"))("disabled",e.empty())("appendTo",e.dropdownAppendTo||e.$appendTo())("scrollHeight",e.dropdownScrollHeight)("ariaLabel",e.getAriaLabel("rowsPerPageLabel"))("pt",e.ptm("pcRowPerPageDropdown")),g(),h("ngIf",e.dropdownItemTemplate),g(),h("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function w$(t,n){t&1&&ne(0)}function C$(t,n){if(t&1&&(I(0,"div",10),C(1,w$,1,0,"ng-container",11),T()),t&2){let e=m();k(e.cx("contentEnd")),h("pBind",e.ptm("contentEnd")),g(),h("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",Te(5,jm,e.paginatorState))}}var x$={paginator:({instance:t})=>["p-paginator p-component"],content:"p-paginator-content",contentStart:"p-paginator-content-start",contentEnd:"p-paginator-content-end",first:({instance:t})=>["p-paginator-first",{"p-disabled":t.isFirstPage()||t.empty()}],firstIcon:"p-paginator-first-icon",prev:({instance:t})=>["p-paginator-prev",{"p-disabled":t.isFirstPage()||t.empty()}],prevIcon:"p-paginator-prev-icon",next:({instance:t})=>["p-paginator-next",{"p-disabled":t.isLastPage()||t.empty()}],nextIcon:"p-paginator-next-icon",last:({instance:t})=>["p-paginator-last",{"p-disabled":t.isLastPage()||t.empty()}],lastIcon:"p-paginator-last-icon",pages:"p-paginator-pages",page:({instance:t,pageLink:n})=>["p-paginator-page",{"p-paginator-page-selected":n-1==t.getPage()}],current:"p-paginator-current",pcRowPerPageDropdown:"p-paginator-rpp-dropdown",pcJumpToPageDropdown:"p-paginator-jtp-dropdown",pcJumpToPageInput:"p-paginator-jtp-input"},q2=(()=>{class t extends Me{name="paginator";style=G2;classes=x$;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Q2=new z("PAGINATOR_INSTANCE"),Pu=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcPaginator=x(Q2,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}pageLinkSize=5;styleClass;alwaysShow=!0;dropdownAppendTo;templateLeft;templateRight;dropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showFirstLastIcon=!0;totalRecords=0;rows=0;rowsPerPageOptions;showJumpToPageDropdown;showJumpToPageInput;jumpToPageItemTemplate;showPageLinks=!0;locale;dropdownItemTemplate;get first(){return this._first}set first(e){this._first=e}appendTo=ae(void 0);onPageChange=new H;dropdownIconTemplate;firstPageLinkIconTemplate;previousPageLinkIconTemplate;lastPageLinkIconTemplate;nextPageLinkIconTemplate;templates;_dropdownIconTemplate;_firstPageLinkIconTemplate;_previousPageLinkIconTemplate;_lastPageLinkIconTemplate;_nextPageLinkIconTemplate;pageLinks;pageItems;rowsPerPageItems;paginatorState;_first=0;_page=0;_componentStyle=x(q2);$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());get display(){return this.alwaysShow||this.pageLinks&&this.pageLinks.length>1?null:"none"}constructor(){super()}onInit(){this.updatePaginatorState()}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"firstpagelinkicon":this._firstPageLinkIconTemplate=e.template;break;case"previouspagelinkicon":this._previousPageLinkIconTemplate=e.template;break;case"lastpagelinkicon":this._lastPageLinkIconTemplate=e.template;break;case"nextpagelinkicon":this._nextPageLinkIconTemplate=e.template;break}})}getAriaLabel(e){return this.config.translation.aria?this.config.translation.aria[e]:void 0}getPageAriaLabel(e){return this.config.translation.aria?this.config.translation.aria.pageLabel?.replace(/{page}/g,`${e}`):void 0}getLocalization(e){let i=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),r=new Map(i.map((o,s)=>[s,o]));return e>9?String(e).split("").map(s=>r.get(Number(s))).join(""):r.get(e)}onChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions(),e.pageLinkSize&&this.updatePageLinks()}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];let e=null;for(let i of this.rowsPerPageOptions)typeof i=="object"&&i.showAll?e={label:i.showAll,value:this.totalRecords}:this.rowsPerPageItems.push({label:String(this.getLocalization(i)),value:i});e&&this.rowsPerPageItems.push(e)}}isFirstPage(){return this.getPage()===0}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),o=Math.min(e-1,r+i-1);var s=this.pageLinkSize-(o-r+1);return r=Math.max(0,r-s),[r,o]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),i=e[0],r=e[1];for(let o=i;o<=r;o++)this.pageLinks.push(o+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let o=0;o=0&&e0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return this.getPageCount()===0}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=$({type:t,selectors:[["p-paginator"]],contentQueries:function(i,r,o){if(i&1&&(V(o,MH,4),V(o,OH,4),V(o,RH,4),V(o,PH,4),V(o,AH,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.dropdownIconTemplate=s.first),M(s=O())&&(r.firstPageLinkIconTemplate=s.first),M(s=O())&&(r.previousPageLinkIconTemplate=s.first),M(s=O())&&(r.lastPageLinkIconTemplate=s.first),M(s=O())&&(r.nextPageLinkIconTemplate=s.first),M(s=O())&&(r.templates=s)}},hostVars:4,hostBindings:function(i,r){i&2&&(k(r.cn(r.cx("paginator"),r.styleClass)),Jn("display",r.display))},inputs:{pageLinkSize:[2,"pageLinkSize","pageLinkSize",ke],styleClass:"styleClass",alwaysShow:[2,"alwaysShow","alwaysShow",R],dropdownAppendTo:"dropdownAppendTo",templateLeft:"templateLeft",templateRight:"templateRight",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],totalRecords:[2,"totalRecords","totalRecords",ke],rows:[2,"rows","rows",ke],rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showJumpToPageInput:[2,"showJumpToPageInput","showJumpToPageInput",R],jumpToPageItemTemplate:"jumpToPageItemTemplate",showPageLinks:[2,"showPageLinks","showPageLinks",R],locale:"locale",dropdownItemTemplate:"dropdownItemTemplate",first:"first",appendTo:[1,"appendTo"]},outputs:{onPageChange:"onPageChange"},features:[Se([q2,{provide:Q2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],decls:15,vars:23,consts:[[3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","class","click",4,"ngIf"],["type","button","pRipple","",3,"click","pBind","disabled"],["data-p-icon","angle-left",3,"pBind","class",4,"ngIf"],[3,"class",4,"ngIf"],[3,"options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt","onChange",4,"ngIf"],["data-p-icon","angle-right",3,"pBind","class",4,"ngIf"],["type","button","pRipple","",3,"pBind","disabled","class","click",4,"ngIf"],[3,"pt","ngModel","class","disabled","ngModelChange",4,"ngIf"],[3,"options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt","ngModelChange","onChange",4,"ngIf"],[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","pRipple","",3,"click","pBind"],["data-p-icon","angle-double-left",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-left",3,"pBind"],[4,"ngTemplateOutlet"],["data-p-icon","angle-left",3,"pBind"],["type","button","pRipple","",3,"pBind","class","click",4,"ngFor","ngForOf"],[3,"onChange","options","ngModel","disabled","styleClass","appendTo","scrollHeight","pt"],["pTemplate","selectedItem"],[4,"ngIf"],["pTemplate","item"],["pTemplate","dropdownicon"],["data-p-icon","angle-right",3,"pBind"],["data-p-icon","angle-double-right",3,"pBind","class",4,"ngIf"],["data-p-icon","angle-double-right",3,"pBind"],[3,"ngModelChange","pt","ngModel","disabled"],[3,"ngModelChange","onChange","options","ngModel","styleClass","disabled","appendTo","scrollHeight","ariaLabel","pt"]],template:function(i,r){i&1&&(C(0,LH,2,7,"div",0)(1,BH,2,4,"span",0)(2,$H,3,6,"button",1),I(3,"button",2),K("click",function(s){return r.changePageToPrev(s)}),C(4,UH,1,3,"svg",3)(5,qH,2,3,"span",4),T(),C(6,KH,2,4,"span",0)(7,i$,4,10,"p-select",5),I(8,"button",2),K("click",function(s){return r.changePageToNext(s)}),C(9,r$,1,3,"svg",6)(10,a$,2,3,"span",4),T(),C(11,p$,3,7,"button",7)(12,f$,1,5,"p-inputnumber",8)(13,_$,3,10,"p-select",9)(14,C$,2,7,"div",0)),i&2&&(h("ngIf",r.templateLeft),g(),h("ngIf",r.showCurrentPageReport),g(),h("ngIf",r.showFirstLastIcon),g(),k(r.cx("prev")),h("pBind",r.ptm("prev"))("disabled",r.isFirstPage()||r.empty()),J("aria-label",r.getAriaLabel("prevPageLabel")),g(),h("ngIf",!r.previousPageLinkIconTemplate&&!r._previousPageLinkIconTemplate),g(),h("ngIf",r.previousPageLinkIconTemplate||r._previousPageLinkIconTemplate),g(),h("ngIf",r.showPageLinks),g(),h("ngIf",r.showJumpToPageDropdown),g(),k(r.cx("next")),h("pBind",r.ptm("next"))("disabled",r.isLastPage()||r.empty()),J("aria-label",r.getAriaLabel("nextPageLabel")),g(),h("ngIf",!r.nextPageLinkIconTemplate&&!r._nextPageLinkIconTemplate),g(),h("ngIf",r.nextPageLinkIconTemplate||r._nextPageLinkIconTemplate),g(),h("ngIf",r.showFirstLastIcon),g(),h("ngIf",r.showJumpToPageInput),g(),h("ngIf",r.rowsPerPageOptions),g(),h("ngIf",r.templateRight))},dependencies:[qe,Oi,Ut,kt,Bm,Vm,ys,mc,Ea,$r,Ik,Dk,Mk,Ok,xe,xt,te],encapsulation:2,changeDetection:0})}return t})(),zm=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[Pu,xe,xe]})}return t})();var Y2=`
.p-dataview {
position: relative;
border-color: dt('dataview.border.color');
@@ -2054,7 +2054,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
justify-content: center;
z-index: 2;
}
-`;var aU=["list"],lU=["grid"],cU=["header"],dU=["emptymessage"],uU=["footer"],pU=["paginatorleft"],fU=["paginatorright"],hU=["paginatordropdownitem"],mU=["loadingicon"],gU=["listicon"],yU=["gridicon"],bU=[[["p-header"]],[["p-footer"]]],vU=["p-header","p-footer"],_U=()=>({position:"top"}),NR=t=>({$implicit:t}),wU=()=>({position:"bottom"});function CU(t,n){if(t&1&&X(0,"i"),t&2){let e=m(2);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function xU(t,n){}function TU(t,n){t&1&&C(0,xU,0,0,"ng-template")}function EU(t,n){if(t&1&&(ie(0),G(),X(1,"svg",5),C(2,TU,1,0,null,6),oe()),t&2){let e=m(2);g(),k(e.cx("loadingIcon")),h("pBind",e.ptm("loadingIcon"))("spin",!0),g(),h("ngTemplateOutlet",e.loadingicon)}}function SU(t,n){if(t&1&&(E(0,"div",3)(1,"div",3),rt(2,CU,1,2,"i",4)(3,EU,3,5,"ng-container"),T()()),t&2){let e=m();k(e.cx("loading")),h("pBind",e.ptm("loading")),g(),k(e.cx("loadingOverlay")),h("pBind",e.ptm("loadingOverlay")),g(),it(e.loadingIcon?2:3)}}function IU(t,n){t&1&&ne(0)}function DU(t,n){if(t&1&&(E(0,"div",3),Ot(1),C(2,IU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("header")),h("pBind",e.ptm("header")),g(2),h("ngTemplateOutlet",e.headerTemplate)}}function kU(t,n){if(t&1){let e=se();E(0,"p-paginator",7),q("onPageChange",function(i){S(e);let o=m();return I(o.paginate(i))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Pi(18,_U)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function MU(t,n){t&1&&ne(0)}function OU(t,n){if(t&1&&(C(0,MU,1,0,"ng-container",8),Zf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.listTemplate)("ngTemplateOutletContext",Ee(6,NR,e.paginator?Jf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function RU(t,n){t&1&&ne(0)}function PU(t,n){if(t&1&&(C(0,RU,1,0,"ng-container",8),Zf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.gridTemplate)("ngTemplateOutletContext",Ee(6,NR,e.paginator?Jf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function AU(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2);g(),$t(" ",e.emptyMessageLabel," ")}}function NU(t,n){t&1&&ne(0,null,0)}function FU(t,n){if(t&1&&(E(0,"div",3),C(1,AU,2,1,"ng-container",9)(2,NU,2,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("emptyMessage")),h("pBind",e.ptm("emptyMessage")),g(),h("ngIf",!e.emptymessageTemplate)("ngIfElse",e.empty),g(),h("ngTemplateOutlet",e.emptymessageTemplate)}}function LU(t,n){if(t&1){let e=se();E(0,"p-paginator",7),q("onPageChange",function(i){S(e);let o=m();return I(o.paginate(i))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Pi(18,wU)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function BU(t,n){t&1&&ne(0)}function VU(t,n){if(t&1&&(E(0,"div",3),Ot(1,1),C(2,BU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("footer")),h("pBind",e.ptm("footer")),g(2),h("ngTemplateOutlet",e.footerTemplate)}}var jU={root:({instance:t})=>["p-dataview p-component",{"p-dataview-list":t.layout==="list","p-dataview-grid":t.layout==="grid"}],header:"p-dataview-header",loading:"p-dataview-loading",loadingOverlay:"p-dataview-loading-overlay p-overlay-mask",loadingIcon:"p-dataview-loading-icon",pcPaginator:({position:t})=>"p-dataview-paginator-"+t,content:"p-dataview-content",emptyMessage:"p-dataview-empty-message",footer:"p-dataview-footer"},PR=(()=>{class t extends Oe{name="dataview";style=RR;classes=jU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var AR=new H("DATAVIEW_INSTANCE"),FR=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcDataView=x(AR,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}paginator;rows;totalRecords;pageLinks=5;rowsPerPageOptions;paginatorPosition="bottom";paginatorStyleClass;alwaysShowPaginator=!0;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;lazy;lazyLoadOnInit=!0;emptyMessage="";styleClass;gridStyleClass="";trackBy=(e,r)=>r;filterBy;filterLocale;loading;loadingIcon;first=0;sortField;sortOrder;value;layout="list";onLazyLoad=new z;onPage=new z;onSort=new z;onChangeLayout=new z;listTemplate;gridTemplate;headerTemplate;emptymessageTemplate;footerTemplate;paginatorleft;paginatorright;paginatordropdownitem;loadingicon;listicon;gridicon;header;footer;_value;filteredValue;filterValue;initialized;_layout="list";translationSubscription;_componentStyle=x(PR);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}filterService=x(jl);onInit(){this.lazy&&this.lazyLoadOnInit&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){}onChanges(e){e.layout&&!e.layout.firstChange&&this.onChangeLayout.emit({layout:e.layout.currentValue}),e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,r)=>{let i=On(e,this.sortField),o=On(r,this.sortField),s;return i==null&&o!=null?s=-1:i!=null&&o==null?s=1:i==null&&o==null?s=0:typeof i=="string"&&typeof o=="string"?s=i.localeCompare(o):s=io?1:0,this.sortOrder*s}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}filter(e,r="contains"){if(this.filterValue=e,this.value&&this.value.length){let i=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,i,e,r,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}onDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-dataView"],["p-dataview"],["p-data-view"]],contentQueries:function(r,i,o){if(r&1&&(V(o,aU,5),V(o,lU,5),V(o,cU,5),V(o,dU,5),V(o,uU,5),V(o,pU,5),V(o,fU,5),V(o,hU,5),V(o,mU,5),V(o,gU,5),V(o,yU,5),V(o,xk,5),V(o,Tk,5)),r&2){let s;M(s=O())&&(i.listTemplate=s.first),M(s=O())&&(i.gridTemplate=s.first),M(s=O())&&(i.headerTemplate=s.first),M(s=O())&&(i.emptymessageTemplate=s.first),M(s=O())&&(i.footerTemplate=s.first),M(s=O())&&(i.paginatorleft=s.first),M(s=O())&&(i.paginatorright=s.first),M(s=O())&&(i.paginatordropdownitem=s.first),M(s=O())&&(i.loadingicon=s.first),M(s=O())&&(i.listicon=s.first),M(s=O())&&(i.gridicon=s.first),M(s=O())&&(i.header=s.first),M(s=O())&&(i.footer=s.first)}},hostVars:2,hostBindings:function(r,i){r&2&&k(i.cn(i.cx("root"),i.styleClass))},inputs:{paginator:[2,"paginator","paginator",R],rows:[2,"rows","rows",Me],totalRecords:[2,"totalRecords","totalRecords",Me],pageLinks:[2,"pageLinks","pageLinks",Me],rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",R],paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],showPageLinks:[2,"showPageLinks","showPageLinks",R],lazy:[2,"lazy","lazy",R],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",R],emptyMessage:"emptyMessage",styleClass:"styleClass",gridStyleClass:"gridStyleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",first:[2,"first","first",Me],sortField:"sortField",sortOrder:[2,"sortOrder","sortOrder",Me],value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[xe([PR,{provide:AR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],ngContentSelectors:vU,decls:9,vars:11,consts:[["empty",""],[3,"pBind","class"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[3,"pBind"],[3,"class"],["data-p-icon","spinner",3,"pBind","spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"]],template:function(r,i){r&1&&(zt(bU),rt(0,SU,4,7,"div",1),rt(1,DU,3,4,"div",1),rt(2,kU,1,19,"p-paginator",2),E(3,"div",3),rt(4,OU,2,8,"ng-container"),rt(5,PU,2,8,"ng-container"),rt(6,FU,3,6,"div",1),T(),rt(7,LU,1,19,"p-paginator",2),rt(8,VU,3,4,"div",1)),r&2&&(it(i.loading?0:-1),g(),it(i.header||i.headerTemplate?1:-1),g(),it(i.paginator&&(i.paginatorPosition==="top"||i.paginatorPosition=="both")?2:-1),g(),k(i.cx("content")),h("pBind",i.ptm("content")),g(),it(i.layout==="list"?4:-1),g(),it(i.layout==="grid"?5:-1),g(),it(i.isEmpty()&&!i.loading?6:-1),g(),it(i.paginator&&(i.paginatorPosition==="bottom"||i.paginatorPosition=="both")?7:-1),g(),it(i.footer||i.footerTemplate?8:-1))},dependencies:[Qe,Ut,kt,Xm,Vu,To,Te,te,Zb],encapsulation:2,changeDetection:0})}return t})();var LR=Zi`
+`;var T$=["list"],E$=["grid"],S$=["header"],I$=["emptymessage"],D$=["footer"],k$=["paginatorleft"],M$=["paginatorright"],O$=["paginatordropdownitem"],R$=["loadingicon"],P$=["listicon"],A$=["gridicon"],N$=[[["p-header"]],[["p-footer"]]],F$=["p-header","p-footer"],L$=()=>({position:"top"}),X2=t=>({$implicit:t}),B$=()=>({position:"bottom"});function V$(t,n){if(t&1&&ee(0,"i"),t&2){let e=m(2);k(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function j$(t,n){}function z$(t,n){t&1&&C(0,j$,0,0,"ng-template")}function H$(t,n){if(t&1&&(re(0),G(),ee(1,"svg",5),C(2,z$,1,0,null,6),oe()),t&2){let e=m(2);g(),k(e.cx("loadingIcon")),h("pBind",e.ptm("loadingIcon"))("spin",!0),g(),h("ngTemplateOutlet",e.loadingicon)}}function $$(t,n){if(t&1&&(I(0,"div",3)(1,"div",3),ot(2,V$,1,2,"i",4)(3,H$,3,5,"ng-container"),T()()),t&2){let e=m();k(e.cx("loading")),h("pBind",e.ptm("loading")),g(),k(e.cx("loadingOverlay")),h("pBind",e.ptm("loadingOverlay")),g(),st(e.loadingIcon?2:3)}}function U$(t,n){t&1&&ne(0)}function W$(t,n){if(t&1&&(I(0,"div",3),Ot(1),C(2,U$,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("header")),h("pBind",e.ptm("header")),g(2),h("ngTemplateOutlet",e.headerTemplate)}}function G$(t,n){if(t&1){let e=se();I(0,"p-paginator",7),K("onPageChange",function(r){E(e);let o=m();return S(o.paginate(r))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Rr(18,L$)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function q$(t,n){t&1&&ne(0)}function Q$(t,n){if(t&1&&(C(0,q$,1,0,"ng-container",8),Wf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.listTemplate)("ngTemplateOutletContext",Te(6,X2,e.paginator?Gf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function K$(t,n){t&1&&ne(0)}function Y$(t,n){if(t&1&&(C(0,K$,1,0,"ng-container",8),Wf(1,"slice")),t&2){let e=m();h("ngTemplateOutlet",e.gridTemplate)("ngTemplateOutletContext",Te(6,X2,e.paginator?Gf(1,2,e.filteredValue||e.value,e.lazy?0:e.first,(e.lazy?0:e.first)+e.rows):e.filteredValue||e.value))}}function Z$(t,n){if(t&1&&(re(0),ce(1),oe()),t&2){let e=m(2);g(),$t(" ",e.emptyMessageLabel," ")}}function J$(t,n){t&1&&ne(0,null,0)}function X$(t,n){if(t&1&&(I(0,"div",3),C(1,Z$,2,1,"ng-container",9)(2,J$,2,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("emptyMessage")),h("pBind",e.ptm("emptyMessage")),g(),h("ngIf",!e.emptymessageTemplate)("ngIfElse",e.empty),g(),h("ngTemplateOutlet",e.emptymessageTemplate)}}function eU(t,n){if(t&1){let e=se();I(0,"p-paginator",7),K("onPageChange",function(r){E(e);let o=m();return S(o.paginate(r))}),T()}if(t&2){let e=m();h("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("appendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorleft)("templateRight",e.paginatorright)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatordropdownitem)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("styleClass",e.cn(e.cx("pcPaginator",Rr(18,B$)),e.paginatorStyleClass))("pt",e.ptm("pcPaginator"))}}function tU(t,n){t&1&&ne(0)}function nU(t,n){if(t&1&&(I(0,"div",3),Ot(1,1),C(2,tU,1,0,"ng-container",6),T()),t&2){let e=m();k(e.cx("footer")),h("pBind",e.ptm("footer")),g(2),h("ngTemplateOutlet",e.footerTemplate)}}var iU={root:({instance:t})=>["p-dataview p-component",{"p-dataview-list":t.layout==="list","p-dataview-grid":t.layout==="grid"}],header:"p-dataview-header",loading:"p-dataview-loading",loadingOverlay:"p-dataview-loading-overlay p-overlay-mask",loadingIcon:"p-dataview-loading-icon",pcPaginator:({position:t})=>"p-dataview-paginator-"+t,content:"p-dataview-content",emptyMessage:"p-dataview-empty-message",footer:"p-dataview-footer"},Z2=(()=>{class t extends Me{name="dataview";style=Y2;classes=iU;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var J2=new z("DATAVIEW_INSTANCE"),eR=(()=>{class t extends ut{bindDirectiveInstance=x(te,{self:!0});$pcDataView=x(J2,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}paginator;rows;totalRecords;pageLinks=5;rowsPerPageOptions;paginatorPosition="bottom";paginatorStyleClass;alwaysShowPaginator=!0;paginatorDropdownAppendTo;paginatorDropdownScrollHeight="200px";currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;lazy;lazyLoadOnInit=!0;emptyMessage="";styleClass;gridStyleClass="";trackBy=(e,i)=>i;filterBy;filterLocale;loading;loadingIcon;first=0;sortField;sortOrder;value;layout="list";onLazyLoad=new H;onPage=new H;onSort=new H;onChangeLayout=new H;listTemplate;gridTemplate;headerTemplate;emptymessageTemplate;footerTemplate;paginatorleft;paginatorright;paginatordropdownitem;loadingicon;listicon;gridicon;header;footer;_value;filteredValue;filterValue;initialized;_layout="list";translationSubscription;_componentStyle=x(Z2);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(xn.EMPTY_MESSAGE)}filterService=x(Bl);onInit(){this.lazy&&this.lazyLoadOnInit&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){}onChanges(e){e.layout&&!e.layout.firstChange&&this.onChangeLayout.emit({layout:e.layout.currentValue}),e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,i)=>{let r=On(e,this.sortField),o=On(i,this.sortField),s;return r==null&&o!=null?s=-1:r!=null&&o==null?s=1:r==null&&o==null?s=0:typeof r=="string"&&typeof o=="string"?s=r.localeCompare(o):s=ro?1:0,this.sortOrder*s}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return e==null||e.length==0}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}filter(e,i="contains"){if(this.filterValue=e,this.value&&this.value.length){let r=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,r,e,i,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}onDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-dataView"],["p-dataview"],["p-data-view"]],contentQueries:function(i,r,o){if(i&1&&(V(o,T$,5),V(o,E$,5),V(o,S$,5),V(o,I$,5),V(o,D$,5),V(o,k$,5),V(o,M$,5),V(o,O$,5),V(o,R$,5),V(o,P$,5),V(o,A$,5),V(o,rk,5),V(o,ok,5)),i&2){let s;M(s=O())&&(r.listTemplate=s.first),M(s=O())&&(r.gridTemplate=s.first),M(s=O())&&(r.headerTemplate=s.first),M(s=O())&&(r.emptymessageTemplate=s.first),M(s=O())&&(r.footerTemplate=s.first),M(s=O())&&(r.paginatorleft=s.first),M(s=O())&&(r.paginatorright=s.first),M(s=O())&&(r.paginatordropdownitem=s.first),M(s=O())&&(r.loadingicon=s.first),M(s=O())&&(r.listicon=s.first),M(s=O())&&(r.gridicon=s.first),M(s=O())&&(r.header=s.first),M(s=O())&&(r.footer=s.first)}},hostVars:2,hostBindings:function(i,r){i&2&&k(r.cn(r.cx("root"),r.styleClass))},inputs:{paginator:[2,"paginator","paginator",R],rows:[2,"rows","rows",ke],totalRecords:[2,"totalRecords","totalRecords",ke],pageLinks:[2,"pageLinks","pageLinks",ke],rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",R],paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",R],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",R],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",R],showPageLinks:[2,"showPageLinks","showPageLinks",R],lazy:[2,"lazy","lazy",R],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",R],emptyMessage:"emptyMessage",styleClass:"styleClass",gridStyleClass:"gridStyleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:[2,"loading","loading",R],loadingIcon:"loadingIcon",first:[2,"first","first",ke],sortField:"sortField",sortOrder:[2,"sortOrder","sortOrder",ke],value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[Se([Z2,{provide:J2,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],ngContentSelectors:F$,decls:9,vars:11,consts:[["empty",""],[3,"pBind","class"],[3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[3,"pBind"],[3,"class"],["data-p-icon","spinner",3,"pBind","spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","appendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","styleClass","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfElse"]],template:function(i,r){i&1&&(zt(N$),ot(0,$$,4,7,"div",1),ot(1,W$,3,4,"div",1),ot(2,G$,1,19,"p-paginator",2),I(3,"div",3),ot(4,Q$,2,8,"ng-container"),ot(5,Y$,2,8,"ng-container"),ot(6,X$,3,6,"div",1),T(),ot(7,eU,1,19,"p-paginator",2),ot(8,nU,3,4,"div",1)),i&2&&(st(r.loading?0:-1),g(),st(r.header||r.headerTemplate?1:-1),g(),st(r.paginator&&(r.paginatorPosition==="top"||r.paginatorPosition=="both")?2:-1),g(),k(r.cx("content")),h("pBind",r.ptm("content")),g(),st(r.layout==="list"?4:-1),g(),st(r.layout==="grid"?5:-1),g(),st(r.isEmpty()&&!r.loading?6:-1),g(),st(r.paginator&&(r.paginatorPosition==="bottom"||r.paginatorPosition=="both")?7:-1),g(),st(r.footer||r.footerTemplate?8:-1))},dependencies:[qe,Ut,kt,zm,Pu,wo,xe,te,Vb],encapsulation:2,changeDetection:0})}return t})();var tR=Yr`
query GetProductsForList($input: ProductSearchInput) {
getProducts(input: $input) {
isLastPage
@@ -2081,8 +2081,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
}
}
}
- ${hc}
-`;var BR=`
+ ${pc}
+`;var nR=`
.p-togglebutton {
display: inline-flex;
cursor: pointer;
@@ -2201,8 +2201,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-togglebutton-fluid {
width: 100%;
}
-`;var zU=["icon"],HU=["content"],zR=t=>({$implicit:t});function $U(t,n){t&1&&ne(0)}function UU(t,n){if(t&1&&X(0,"span",0),t&2){let e=m(3);k(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),h("pBind",e.ptm("icon"))}}function WU(t,n){if(t&1&&rt(0,UU,1,3,"span",2),t&2){let e=m(2);it(e.onIcon||e.offIcon?0:-1)}}function GU(t,n){t&1&&ne(0)}function qU(t,n){if(t&1&&C(0,GU,1,0,"ng-container",1),t&2){let e=m(2);h("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Ee(2,zR,e.checked))}}function QU(t,n){if(t&1&&(rt(0,WU,1,1)(1,qU,1,4,"ng-container"),E(2,"span",0),ce(3),T()),t&2){let e=m();it(e.iconTemplate?1:0),g(2),k(e.cx("label")),h("pBind",e.ptm("label")),g(),Ze(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var KU=`
- ${BR}
+`;var rU=["icon"],oU=["content"],oR=t=>({$implicit:t});function sU(t,n){t&1&&ne(0)}function aU(t,n){if(t&1&&ee(0,"span",0),t&2){let e=m(3);k(e.cn(e.cx("icon"),e.checked?e.onIcon:e.offIcon,e.iconPos==="left"?e.cx("iconLeft"):e.cx("iconRight"))),h("pBind",e.ptm("icon"))}}function lU(t,n){if(t&1&&ot(0,aU,1,3,"span",2),t&2){let e=m(2);st(e.onIcon||e.offIcon?0:-1)}}function cU(t,n){t&1&&ne(0)}function dU(t,n){if(t&1&&C(0,cU,1,0,"ng-container",1),t&2){let e=m(2);h("ngTemplateOutlet",e.iconTemplate||e._iconTemplate)("ngTemplateOutletContext",Te(2,oR,e.checked))}}function uU(t,n){if(t&1&&(ot(0,lU,1,1)(1,dU,1,4,"ng-container"),I(2,"span",0),ce(3),T()),t&2){let e=m();st(e.iconTemplate?1:0),g(2),k(e.cx("label")),h("pBind",e.ptm("label")),g(),Xe(e.checked?e.hasOnLabel?e.onLabel:"\xA0":e.hasOffLabel?e.offLabel:"\xA0")}}var pU=`
+ ${nR}
/* For PrimeNG (iconPos) */
.p-togglebutton-icon-right {
@@ -2212,7 +2212,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-togglebutton.ng-invalid.ng-dirty {
border-color: dt('togglebutton.invalid.border.color');
}
-`,YU={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},VR=(()=>{class t extends Oe{name="togglebutton";style=KU;classes=YU;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var jR=new H("TOGGLEBUTTON_INSTANCE"),ZU={provide:Nn,useExisting:Ht(()=>Iw),multi:!0},Iw=(()=>{class t extends eo{$pcToggleButton=x(jR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=ae(void 0,{transform:R});onChange=new z;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=x(VR);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,r){this.checked=e,r(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,zU,4),V(o,HU,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.iconTemplate=s.first),M(s=O())&&(i.contentTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:8,hostBindings:function(r,i){r&1&&q("keydown",function(s){return i.onKeyDown(s)})("click",function(s){return i.toggle(s)}),r&2&&(J("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-pressed",i.checked?"true":"false")("role","button")("tabindex",i.tabindex!==void 0?i.tabindex:i.$disabled()?-1:0)("data-pc-name","togglebutton"),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",Me],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",R],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[xe([ZU,VR,{provide:jR,useExisting:t},{provide:Ke,useExisting:t}]),et([Ui,te]),j],decls:3,vars:8,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(r,i){r&1&&(E(0,"span",0),C(1,$U,1,0,"ng-container",1),rt(2,QU,4,5),T()),r&2&&(k(i.cx("content")),h("pBind",i.ptm("content")),g(),h("ngTemplateOutlet",i.contentTemplate||i._contentTemplate)("ngTemplateOutletContext",Ee(6,zR,i.checked)),g(),it(i.contentTemplate?-1:2))},dependencies:[Qe,kt,Te,Wt,te],encapsulation:2,changeDetection:0})}return t})();var HR=`
+`,fU={root:({instance:t})=>["p-togglebutton p-component",{"p-togglebutton-checked":t.checked,"p-invalid":t.invalid(),"p-disabled":t.$disabled(),"p-togglebutton-sm p-inputfield-sm":t.size==="small","p-togglebutton-lg p-inputfield-lg":t.size==="large","p-togglebutton-fluid":t.fluid()}],content:"p-togglebutton-content",icon:"p-togglebutton-icon",iconLeft:"p-togglebutton-icon-left",iconRight:"p-togglebutton-icon-right",label:"p-togglebutton-label"},iR=(()=>{class t extends Me{name="togglebutton";style=pU;classes=fU;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var rR=new z("TOGGLEBUTTON_INSTANCE"),hU={provide:Vn,useExisting:Jt(()=>lw),multi:!0},lw=(()=>{class t extends Zr{$pcToggleButton=x(rR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onKeyDown(e){switch(e.code){case"Enter":this.toggle(e),e.preventDefault();break;case"Space":this.toggle(e),e.preventDefault();break}}toggle(e){!this.$disabled()&&!(this.allowEmpty===!1&&this.checked)&&(this.checked=!this.checked,this.writeModelValue(this.checked),this.onModelChange(this.checked),this.onModelTouched(),this.onChange.emit({originalEvent:e,checked:this.checked}),this.cd.markForCheck())}onLabel="Yes";offLabel="No";onIcon;offIcon;ariaLabel;ariaLabelledBy;styleClass;inputId;tabindex=0;iconPos="left";autofocus;size;allowEmpty;fluid=ae(void 0,{transform:R});onChange=new H;iconTemplate;contentTemplate;templates;checked=!1;onInit(){(this.checked===null||this.checked===void 0)&&(this.checked=!1)}_componentStyle=x(iR);onBlur(){this.onModelTouched()}get hasOnLabel(){return this.onLabel&&this.onLabel.length>0}get hasOffLabel(){return this.offLabel&&this.offLabel.length>0}get active(){return this.checked===!0}_iconTemplate;_contentTemplate;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"icon":this._iconTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}writeControlValue(e,i){this.checked=e,i(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-toggleButton"],["p-togglebutton"],["p-toggle-button"]],contentQueries:function(i,r,o){if(i&1&&(V(o,rU,4),V(o,oU,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.iconTemplate=s.first),M(s=O())&&(r.contentTemplate=s.first),M(s=O())&&(r.templates=s)}},hostVars:8,hostBindings:function(i,r){i&1&&K("keydown",function(s){return r.onKeyDown(s)})("click",function(s){return r.toggle(s)}),i&2&&(J("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel)("aria-pressed",r.checked?"true":"false")("role","button")("tabindex",r.tabindex!==void 0?r.tabindex:r.$disabled()?-1:0)("data-pc-name","togglebutton"),k(r.cn(r.cx("root"),r.styleClass)))},inputs:{onLabel:"onLabel",offLabel:"offLabel",onIcon:"onIcon",offIcon:"offIcon",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",styleClass:"styleClass",inputId:"inputId",tabindex:[2,"tabindex","tabindex",ke],iconPos:"iconPos",autofocus:[2,"autofocus","autofocus",R],size:"size",allowEmpty:"allowEmpty",fluid:[1,"fluid"]},outputs:{onChange:"onChange"},features:[Se([hU,iR,{provide:rR,useExisting:t},{provide:Qe,useExisting:t}]),nt([$r,te]),j],decls:3,vars:8,consts:[[3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind"]],template:function(i,r){i&1&&(I(0,"span",0),C(1,sU,1,0,"ng-container",1),ot(2,uU,4,5),T()),i&2&&(k(r.cx("content")),h("pBind",r.ptm("content")),g(),h("ngTemplateOutlet",r.contentTemplate||r._contentTemplate)("ngTemplateOutletContext",Te(6,oR,r.checked)),g(),st(r.contentTemplate?-1:2))},dependencies:[qe,kt,xe,Wt,te],encapsulation:2,changeDetection:0})}return t})();var sR=`
.p-selectbutton {
display: inline-flex;
user-select: none;
@@ -2254,15 +2254,15 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-selectbutton-fluid .p-togglebutton {
flex: 1 1 0;
}
-`;var JU=["item"],XU=(t,n)=>({$implicit:t,index:n});function eW(t,n){return this.getOptionLabel(n)}function tW(t,n){t&1&&ne(0)}function nW(t,n){if(t&1&&C(0,tW,1,0,"ng-container",3),t&2){let e=m(2),r=e.$implicit,i=e.$index,o=m();h("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",Dt(2,XU,r,i))}}function rW(t,n){t&1&&C(0,nW,1,5,"ng-template",null,0,at)}function iW(t,n){if(t&1){let e=se();E(0,"p-togglebutton",2),q("onChange",function(i){let o=S(e),s=o.$implicit,a=o.$index,l=m();return I(l.onOptionSelect(i,s,a))}),rt(1,rW,2,0),T()}if(t&2){let e=n.$implicit,r=m();h("autofocus",r.autofocus)("styleClass",r.styleClass)("ngModel",r.isSelected(e))("onLabel",r.getOptionLabel(e))("offLabel",r.getOptionLabel(e))("disabled",r.$disabled()||r.isOptionDisabled(e))("allowEmpty",r.getAllowEmpty())("size",r.size())("fluid",r.fluid())("pt",r.ptm("pcToggleButton")),g(),it(r.itemTemplate||r._itemTemplate?1:-1)}}var oW=`
- ${HR}
+`;var mU=["item"],gU=(t,n)=>({$implicit:t,index:n});function yU(t,n){return this.getOptionLabel(n)}function bU(t,n){t&1&&ne(0)}function vU(t,n){if(t&1&&C(0,bU,1,0,"ng-container",3),t&2){let e=m(2),i=e.$implicit,r=e.$index,o=m();h("ngTemplateOutlet",o.itemTemplate||o._itemTemplate)("ngTemplateOutletContext",Dt(2,gU,i,r))}}function _U(t,n){t&1&&C(0,vU,1,5,"ng-template",null,0,at)}function wU(t,n){if(t&1){let e=se();I(0,"p-togglebutton",2),K("onChange",function(r){let o=E(e),s=o.$implicit,a=o.$index,l=m();return S(l.onOptionSelect(r,s,a))}),ot(1,_U,2,0),T()}if(t&2){let e=n.$implicit,i=m();h("autofocus",i.autofocus)("styleClass",i.styleClass)("ngModel",i.isSelected(e))("onLabel",i.getOptionLabel(e))("offLabel",i.getOptionLabel(e))("disabled",i.$disabled()||i.isOptionDisabled(e))("allowEmpty",i.getAllowEmpty())("size",i.size())("fluid",i.fluid())("pt",i.ptm("pcToggleButton")),g(),st(i.itemTemplate||i._itemTemplate?1:-1)}}var CU=`
+ ${sR}
/* For PrimeNG */
.p-selectbutton.ng-invalid.ng-dirty {
outline: 1px solid dt('selectbutton.invalid.border.color');
outline-offset: 0;
}
-`,sW={root:({instance:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid(),"p-selectbutton-fluid":t.fluid()}]},$R=(()=>{class t extends Oe{name="selectbutton";style=oW;classes=sW;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var UR=new H("SELECTBUTTON_INSTANCE"),aW={provide:Nn,useExisting:Ht(()=>eg),multi:!0},eg=(()=>{class t extends eo{options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(e){this._unselectable=e,this.allowEmpty=!e}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=ae();fluid=ae(void 0,{transform:R});onOptionClick=new z;onChange=new z;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=x($R);$pcSelectButton=x(UR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(e){return this.optionLabel?On(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?On(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}onOptionSelect(e,r,i){if(this.$disabled()||this.isOptionDisabled(r))return;let o=this.isSelected(r);if(o&&this.unselectable)return;let s=this.getOptionValue(r),a;if(this.multiple)o?a=this.value.filter(l=>!nr(l,s,this.equalityKey||void 0)):a=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;a=o?null:s}this.focusedIndex=i,this.value=a,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:r,index:i})}changeTabIndexes(e,r){let i,o;for(let s=0;s<=this.el.nativeElement.children.length-1;s++)this.el.nativeElement.children[s].getAttribute("tabindex")==="0"&&(i={elem:this.el.nativeElement.children[s],index:s});r==="prev"?i.index===0?o=this.el.nativeElement.children.length-1:o=i.index-1:i.index===this.el.nativeElement.children.length-1?o=0:o=i.index+1,this.focusedIndex=o,this.el.nativeElement.children[o].focus()}onFocus(e,r){this.focusedIndex=r}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(r=>!nr(r,this.getOptionValue(e),this.dataKey))}isSelected(e){let r=!1,i=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(nr(o,i,this.dataKey)){r=!0;break}}}else r=nr(this.getOptionValue(e),this.value,this.equalityKey||void 0);return r}templates;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="item"&&(this._itemTemplate=e.template)})}writeControlValue(e,r){this.value=e,r(this.value),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(r,i,o){if(r&1&&(V(o,JU,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.itemTemplate=s.first),M(s=O())&&(i.templates=s)}},hostVars:4,hostBindings:function(r,i){r&2&&(J("role","group")("aria-labelledby",i.ariaLabelledBy),k(i.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",R],tabindex:[2,"tabindex","tabindex",Me],multiple:[2,"multiple","multiple",R],allowEmpty:[2,"allowEmpty","allowEmpty",R],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",R],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[xe([aW,$R,{provide:UR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&es(0,iW,2,11,"p-togglebutton",1,eW,!0),r&2&&ts(i.options)},dependencies:[Iw,Xi,_s,Da,Qe,kt,Te,Wt],encapsulation:2,changeDetection:0})}return t})(),WR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[eg,Te,Te]})}return t})();function wc(t){return`${Gt.serverUrl}${t}`}var lW=["dt2"],cW=(t,n)=>({"fa-bars":t,"fa-table":n});function dW(t,n){if(t&1){let e=se();E(0,"p-inputicon",17),q("click",function(){S(e),m();let i=pn(6),o=m();return o.searchTrigger.next(""),o.filterValue.set(""),I(i.focus())}),T()}}function uW(t,n){if(t&1&&X(0,"i",18),t&2){let e=n.$implicit;h("ngClass",Dt(1,cW,e==="list",e==="grid"))}}function pW(t,n){if(t&1){let e=se();E(0,"div",9)(1,"div",10)(2,"p-iconfield",11)(3,"p-iconfield",12),X(4,"p-inputicon",13),E(5,"input",14,5),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.filterValue,i)||(o.filterValue=i),I(i)}),q("input",function(i){S(e);let o=m();return I(o.searchTrigger.next(i.target.value))}),T()(),rt(7,dW,1,0,"p-inputicon",15),T()(),E(8,"p-selectbutton",16),Rr("ngModelChange",function(i){S(e);let o=m();return Xr(o.layout,i)||(o.layout=i),I(i)}),q("ngModelChange",function(i){S(e);let o=m();return I(o.onLayoutChange(i))}),C(9,uW,1,4,"ng-template",null,6,at),T()()}if(t&2){let e=m();g(5),Or("ngModel",e.filterValue),g(2),it(e.filterValue()?7:-1),g(),Or("ngModel",e.layout),h("options",e.layoutOptions)("allowEmpty",!1)}}function fW(t,n){if(t&1&&X(0,"img",22),t&2){let e=m().$implicit,r=m(2);h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Js)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function hW(t,n){if(t&1){let e=se();E(0,"div",20)(1,"div",21),rt(2,fW,1,2,"img",22),E(3,"div",23)(4,"div")(5,"h3",24),ce(6),T(),E(7,"p",25),ce(8),T()(),E(9,"p-button",26),q("click",function(){let i=S(e).$implicit,o=m(2);return I(o.openProduct(i))}),T()()()()}if(t&2){let e=n.$implicit;g(2),it(e.featuredAsset!=null&&e.featuredAsset.source?2:-1),g(4),Ze(e.identifier),g(2),Ze(e.description)}}function mW(t,n){if(t&1&&(E(0,"div",19),es(1,hW,10,3,"div",20,qf),T()),t&2){let e=n.$implicit;g(),ts(e)}}function gW(t,n){if(t&1&&X(0,"img",28),t&2){let e=m().$implicit,r=m(2);h("src",r.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Js)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function yW(t,n){if(t&1){let e=se();E(0,"div",20),rt(1,gW,1,2,"img",28),E(2,"div",29)(3,"div")(4,"h3",24),ce(5),T(),E(6,"p",25),ce(7),T()(),E(8,"p-button",30),q("click",function(){let i=S(e).$implicit,o=m(2);return I(o.openProduct(i))}),T()()()}if(t&2){let e=n.$implicit;g(),it(e.featuredAsset!=null&&e.featuredAsset.source?1:-1),g(4),Ze(e.identifier),g(2),Ze(e.description)}}function bW(t,n){if(t&1&&(E(0,"div",27),es(1,yW,9,3,"div",20,qf),T()),t&2){let e=n.$implicit;g(),ts(e)}}function vW(t,n){t&1&&(E(0,"div",31),ce(1,"No results found"),T())}function _W(t,n){t&1&&(E(0,"div",31),ce(1,"No products found"),T())}function wW(t,n){if(t&1&&rt(0,vW,2,0,"div",31)(1,_W,2,0,"div",31),t&2){let e=m();it(e.filterValue()?0:1)}}var tg=class t{constructor(n){this.apollo=n;this.searchTrigger.pipe(Jg(800),Fc()).subscribe(e=>{this.onLazyLoad()})}apollo;router=x(Vn);dataViewComponent=EI("dt2");products=ge([]);loading=ae(!1);layout=ge(localStorage.getItem("product-view-layout")==="list"?"list":"grid");layoutOptions=["list","grid"];listPageOptions=[10,25,50,75,100];gridPageOptions=[12,24,48,72,96];listRows=ge(localStorage.getItem("product-view-list-rows")?parseInt(localStorage.getItem("product-view-list-rows")):25);gridRows=ge(localStorage.getItem("product-view-grid-rows")?parseInt(localStorage.getItem("product-view-grid-rows")):12);rows=We(()=>this.layout()==="list"?this.listRows():this.gridRows());currentTotalProducts=ge(0);filterValue=ge("");getPhxUrl=wc;searchTrigger=new qe;getProducts=(...e)=>pt(this,[...e],function*(n={}){return(yield Cr(this.apollo.apollo().query({query:LR,variables:{input:n}})))?.data?.getProducts});onLazyLoad(n){return pt(this,null,function*(){let e=yield this.getProducts({take:n?.rows??this.rows(),skip:n?.first??0,term:this.filterValue()});(n?.rows??-1)>=0&&n.rows!=this.rows()&&(this.layout()==="list"?(this.listRows.set(n.rows),localStorage.setItem("product-view-list-rows",n.rows.toString())):(this.gridRows.set(n.rows),localStorage.setItem("product-view-grid-rows",n.rows.toString()))),this.products.set(e?.items??[]),this.currentTotalProducts.set(e?.totalItems??0)})}openProduct(n){window.open(wc("/products/edit/"+n.id),"_blank")}onLayoutChange(n){this.layout.set(n),this.dataViewComponent()&&(this.dataViewComponent().first=0),localStorage.setItem("product-view-layout",n),this.onLazyLoad()}static \u0275fac=function(e){return new(e||t)(de(Ji))};static \u0275cmp=$({type:t,selectors:[["app-product-view"]],viewQuery:function(e,r){e&1&&kb(r.dataViewComponent,lW,5),e&2&&Qf()},inputs:{loading:[1,"loading"]},decls:11,vars:8,consts:[["dt2",""],["header",""],["list",""],["grid",""],["emptymessage",""],["searchInput",""],["item",""],["title","Product View"],["lazy","",3,"onLazyLoad","value","paginator","lazy","totalRecords","loading","layout","rowsPerPageOptions","rows"],[1,"flex","justify-between","items-center","gap-4"],[1,"w-full"],["iconPosition","right",1,"mr-auto","drop-shadow"],["iconPosition","left",1,"ml-auto"],[1,"fa","fa-search"],["pInputText","","type","text","placeholder","Search...","fluid","",3,"ngModelChange","input","ngModel"],[1,"fa","fa-circle-xmark","cursor-pointer"],[1,"drop-shadow",3,"ngModelChange","ngModel","options","allowEmpty"],[1,"fa","fa-circle-xmark","cursor-pointer",3,"click"],[1,"fa",3,"ngClass"],[1,"flex","flex-col","gap-2","p-2"],[1,"bg-white","border","rounded-lg","p-4","drop-shadow-lg"],[1,"flex","items-center","gap-2"],[1,"w-16","h-16","p-1","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2","w-full","items-center"],[1,"text-lg","font-bold","truncate"],[1,"text-sm","text-gray-500","line-clamp-2"],["icon","fa fa-arrow-up-right-from-square","size","large","text","","rounded","","outlined","",3,"click"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2","p-2"],[1,"w-32","h-32","p-1","mx-auto","mb-4","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[1,"text-center","p-8","italic","text-muted-color"]],template:function(e,r){if(e&1){let i=se();E(0,"app-base",7)(1,"p-dataView",8,0),q("onLazyLoad",function(s){return S(i),I(r.onLazyLoad(s))}),C(3,pW,11,5,"ng-template",null,1,at)(5,mW,3,0,"ng-template",null,2,at)(7,bW,3,0,"ng-template",null,3,at)(9,wW,2,1,"ng-template",null,4,at),T()()}e&2&&(g(),h("value",r.products())("paginator",!0)("lazy",!0)("totalRecords",r.currentTotalProducts())("loading",r.loading())("layout",r.layout())("rowsPerPageOptions",r.layout()==="list"?r.listPageOptions:r.gridPageOptions)("rows",r.rows()))},dependencies:[ls,FR,eg,Xi,bc,_s,Da,ei,rr,to,Wm,Gm],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}} .p-dataview-content{background:transparent!important} .p-dataview-header, p-paginator{border-width:1px!important;border-radius:12px!important;margin-left:.5rem!important;margin-right:.5rem!important;--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[pInputText][_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important;border-width:1px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var ng=class t{constructor(n){this.route=n;this.route.queryParams.subscribe(e=>{e.redirectTo?(this.redirectTo=atob(e.redirectTo),console.log("redirectTo",this.redirectTo)):this.redirectTo="/"})}route;apollo=x(Ji);fb=x(Z2);router=x(Vn);loginForm=this.fb.group({username:["",Au.required],password:["",Au.required]});redirectTo="/";loading=ge(!1);onSubmit(){return pt(this,null,function*(){this.loading.set(!0);try{((yield Cr(this.apollo.apollo().mutate({mutation:g2,variables:{username:this.loginForm.value.username,password:this.loginForm.value.password}}))).data?.login).__typename==="CurrentUser"&&this.router.navigate([this.redirectTo])}catch(n){console.error(n)}finally{this.loading.set(!1)}})}static \u0275fac=function(e){return new(e||t)(de(Li))};static \u0275cmp=$({type:t,selectors:[["app-login"]],decls:13,vars:2,consts:[[1,"min-h-screen","flex","items-center","justify-center","p-8"],[1,"border-2","rounded-2xl","bg-gray-100/50","drop-shadow-2xl","w-full","mx-auto","p-4",2,"max-width","300px"],[3,"ngSubmit","formGroup"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-col"],["for","username"],["type","text","pInputText","","id","username","formControlName","username"],["for","password"],["type","password","pInputText","","id","password","formControlName","password"],["type","submit","label","Login","icon","fa fa-sign-in","styleClass","w-full mt-4",1,"w-full",3,"loading"]],template:function(e,r){e&1&&(E(0,"div",0)(1,"div",1)(2,"form",2),q("ngSubmit",function(){return r.onSubmit()}),E(3,"div",3)(4,"div",4)(5,"label",5),ce(6,"Username"),T(),X(7,"input",6),T(),E(8,"div",4)(9,"label",7),ce(10,"Password"),T(),X(11,"input",8),T()(),X(12,"p-button",9),T()()()),e&2&&(g(2),h("formGroup",r.loginForm),g(10),h("loading",r.loading()))},dependencies:[Xi,Q2,bc,_s,z2,J2,ww,Cw,to,rr],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}input[pInputText][_ngcontent-%COMP%]{padding:.5rem!important;border-width:2px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var Ma=class t{router=x(Vn);canActivate(n,e){let r=Gt.apiKey??localStorage.getItem("api-key");return!Gt.production&&!r&&this.router.navigate(["login"],{queryParams:{redirectTo:btoa(window.location.pathname+window.location.search)}}),!0}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})};var GR=`
+`,xU={root:({instance:t})=>["p-selectbutton p-component",{"p-invalid":t.invalid(),"p-selectbutton-fluid":t.fluid()}]},aR=(()=>{class t extends Me{name="selectbutton";style=CU;classes=xU;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var lR=new z("SELECTBUTTON_INSTANCE"),TU={provide:Vn,useExisting:Jt(()=>Hm),multi:!0},Hm=(()=>{class t extends Zr{options;optionLabel;optionValue;optionDisabled;get unselectable(){return this._unselectable}_unselectable=!1;set unselectable(e){this._unselectable=e,this.allowEmpty=!e}tabindex=0;multiple;allowEmpty=!0;styleClass;ariaLabelledBy;dataKey;autofocus;size=ae();fluid=ae(void 0,{transform:R});onOptionClick=new H;onChange=new H;itemTemplate;_itemTemplate;get equalityKey(){return this.optionValue?null:this.dataKey}value;focusedIndex=0;_componentStyle=x(aR);$pcSelectButton=x(lR,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=x(te,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}getAllowEmpty(){return this.multiple?this.allowEmpty||this.value?.length!==1:this.allowEmpty}getOptionLabel(e){return this.optionLabel?On(e,this.optionLabel):e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?On(e,this.optionValue):this.optionLabel||e.value===void 0?e:e.value}isOptionDisabled(e){return this.optionDisabled?On(e,this.optionDisabled):e.disabled!==void 0?e.disabled:!1}onOptionSelect(e,i,r){if(this.$disabled()||this.isOptionDisabled(i))return;let o=this.isSelected(i);if(o&&this.unselectable)return;let s=this.getOptionValue(i),a;if(this.multiple)o?a=this.value.filter(l=>!ei(l,s,this.equalityKey||void 0)):a=this.value?[...this.value,s]:[s];else{if(o&&!this.allowEmpty)return;a=o?null:s}this.focusedIndex=r,this.value=a,this.writeModelValue(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.onOptionClick.emit({originalEvent:e,option:i,index:r})}changeTabIndexes(e,i){let r,o;for(let s=0;s<=this.el.nativeElement.children.length-1;s++)this.el.nativeElement.children[s].getAttribute("tabindex")==="0"&&(r={elem:this.el.nativeElement.children[s],index:s});i==="prev"?r.index===0?o=this.el.nativeElement.children.length-1:o=r.index-1:r.index===this.el.nativeElement.children.length-1?o=0:o=r.index+1,this.focusedIndex=o,this.el.nativeElement.children[o].focus()}onFocus(e,i){this.focusedIndex=i}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!ei(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value)){for(let o of this.value)if(ei(o,r,this.dataKey)){i=!0;break}}}else i=ei(this.getOptionValue(e),this.value,this.equalityKey||void 0);return i}templates;onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="item"&&(this._itemTemplate=e.template)})}writeControlValue(e,i){this.value=e,i(this.value),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-selectButton"],["p-selectbutton"],["p-select-button"]],contentQueries:function(i,r,o){if(i&1&&(V(o,mU,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.itemTemplate=s.first),M(s=O())&&(r.templates=s)}},hostVars:4,hostBindings:function(i,r){i&2&&(J("role","group")("aria-labelledby",r.ariaLabelledBy),k(r.cx("root")))},inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",unselectable:[2,"unselectable","unselectable",R],tabindex:[2,"tabindex","tabindex",ke],multiple:[2,"multiple","multiple",R],allowEmpty:[2,"allowEmpty","allowEmpty",R],styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",dataKey:"dataKey",autofocus:[2,"autofocus","autofocus",R],size:[1,"size"],fluid:[1,"fluid"]},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Se([TU,aR,{provide:lR,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],decls:2,vars:0,consts:[["content",""],[3,"autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[3,"onChange","autofocus","styleClass","ngModel","onLabel","offLabel","disabled","allowEmpty","size","fluid","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,r){i&1&&Zo(0,wU,2,11,"p-togglebutton",1,yU,!0),i&2&&Jo(r.options)},dependencies:[lw,ys,mc,Ea,qe,kt,xe,Wt],encapsulation:2,changeDetection:0})}return t})(),cR=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[Hm,xe,xe]})}return t})();function bc(t){return`${Ht.serverUrl}${t}`}var EU=["dt2"],SU=(t,n)=>({"fa-bars":t,"fa-table":n});function IU(t,n){if(t&1){let e=se();I(0,"p-inputicon",17),K("click",function(){E(e),m();let r=pn(6),o=m();return o.searchTrigger.next(""),o.filterValue.set(""),S(r.focus())}),T()}}function DU(t,n){if(t&1&&ee(0,"i",18),t&2){let e=n.$implicit;h("ngClass",Dt(1,SU,e==="list",e==="grid"))}}function kU(t,n){if(t&1){let e=se();I(0,"div",9)(1,"div",10)(2,"p-iconfield",11)(3,"p-iconfield",12),ee(4,"p-inputicon",13),I(5,"input",14,5),ki("ngModelChange",function(r){E(e);let o=m();return Zi(o.filterValue,r)||(o.filterValue=r),S(r)}),K("input",function(r){E(e);let o=m();return S(o.searchTrigger.next(r.target.value))}),T()(),ot(7,IU,1,0,"p-inputicon",15),T()(),I(8,"p-selectbutton",16),ki("ngModelChange",function(r){E(e);let o=m();return Zi(o.layout,r)||(o.layout=r),S(r)}),K("ngModelChange",function(r){E(e);let o=m();return S(o.onLayoutChange(r))}),C(9,DU,1,4,"ng-template",null,6,at),T()()}if(t&2){let e=m();g(5),Di("ngModel",e.filterValue),g(2),st(e.filterValue()?7:-1),g(),Di("ngModel",e.layout),h("options",e.layoutOptions)("allowEmpty",!1)}}function MU(t,n){if(t&1&&ee(0,"img",22),t&2){let e=m().$implicit,i=m(2);h("src",i.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Ys)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function OU(t,n){if(t&1){let e=se();I(0,"div",20)(1,"div",21),ot(2,MU,1,2,"img",22),I(3,"div",23)(4,"div")(5,"h3",24),ce(6),T(),I(7,"p",25),ce(8),T()(),I(9,"p-button",26),K("click",function(){let r=E(e).$implicit,o=m(2);return S(o.openProduct(r))}),T()()()()}if(t&2){let e=n.$implicit;g(2),st(e.featuredAsset!=null&&e.featuredAsset.source?2:-1),g(4),Xe(e.identifier),g(2),Xe(e.description)}}function RU(t,n){if(t&1&&(I(0,"div",19),Zo(1,OU,10,3,"div",20,zf),T()),t&2){let e=n.$implicit;g(),Jo(e)}}function PU(t,n){if(t&1&&ee(0,"img",28),t&2){let e=m().$implicit,i=m(2);h("src",i.getPhxUrl(e.featuredAsset==null?null:e.featuredAsset.source),Ys)("alt",e.featuredAsset==null?null:e.featuredAsset.name)}}function AU(t,n){if(t&1){let e=se();I(0,"div",20),ot(1,PU,1,2,"img",28),I(2,"div",29)(3,"div")(4,"h3",24),ce(5),T(),I(6,"p",25),ce(7),T()(),I(8,"p-button",30),K("click",function(){let r=E(e).$implicit,o=m(2);return S(o.openProduct(r))}),T()()()}if(t&2){let e=n.$implicit;g(),st(e.featuredAsset!=null&&e.featuredAsset.source?1:-1),g(4),Xe(e.identifier),g(2),Xe(e.description)}}function NU(t,n){if(t&1&&(I(0,"div",27),Zo(1,AU,9,3,"div",20,zf),T()),t&2){let e=n.$implicit;g(),Jo(e)}}function FU(t,n){t&1&&(I(0,"div",31),ce(1,"No results found"),T())}function LU(t,n){t&1&&(I(0,"div",31),ce(1,"No products found"),T())}function BU(t,n){if(t&1&&ot(0,FU,2,0,"div",31)(1,LU,2,0,"div",31),t&2){let e=m();st(e.filterValue()?0:1)}}var $m=class t{constructor(n){this.apollo=n;this.searchTrigger.pipe(jg(800),Pc()).subscribe(e=>{this.onLazyLoad()})}apollo;router=x(Pi);dataViewComponent=sI("dt2");products=_e([]);loading=ae(!1);layout=_e(localStorage.getItem("product-view-layout")==="list"?"list":"grid");layoutOptions=["list","grid"];listPageOptions=[10,25,50,75,100];gridPageOptions=[12,24,48,72,96];listRows=_e(localStorage.getItem("product-view-list-rows")?parseInt(localStorage.getItem("product-view-list-rows")):25);gridRows=_e(localStorage.getItem("product-view-grid-rows")?parseInt(localStorage.getItem("product-view-grid-rows")):12);rows=We(()=>this.layout()==="list"?this.listRows():this.gridRows());currentTotalProducts=_e(0);filterValue=_e("");getPhxUrl=bc;searchTrigger=new Ge;getProducts=(...e)=>gt(this,[...e],function*(n={}){return(yield vr(this.apollo.apollo().query({query:tR,variables:{input:n}})))?.data?.getProducts});onLazyLoad(n){return gt(this,null,function*(){let e=yield this.getProducts({take:n?.rows??this.rows(),skip:n?.first??0,term:this.filterValue()});(n?.rows??-1)>=0&&n.rows!=this.rows()&&(this.layout()==="list"?(this.listRows.set(n.rows),localStorage.setItem("product-view-list-rows",n.rows.toString())):(this.gridRows.set(n.rows),localStorage.setItem("product-view-grid-rows",n.rows.toString()))),this.products.set(e?.items??[]),this.currentTotalProducts.set(e?.totalItems??0)})}openProduct(n){window.open(bc("/products/edit/"+n.id),"_blank")}onLayoutChange(n){this.layout.set(n),this.dataViewComponent()&&(this.dataViewComponent().first=0),localStorage.setItem("product-view-layout",n),this.onLazyLoad()}static \u0275fac=function(e){return new(e||t)(me(gs))};static \u0275cmp=$({type:t,selectors:[["app-product-view"]],viewQuery:function(e,i){e&1&&yb(i.dataViewComponent,EU,5),e&2&&Hf()},inputs:{loading:[1,"loading"]},decls:11,vars:8,consts:[["dt2",""],["header",""],["list",""],["grid",""],["emptymessage",""],["searchInput",""],["item",""],["title","Product View"],["lazy","",3,"onLazyLoad","value","paginator","lazy","totalRecords","loading","layout","rowsPerPageOptions","rows"],[1,"flex","justify-between","items-center","gap-4"],[1,"w-full"],["iconPosition","right",1,"mr-auto","drop-shadow"],["iconPosition","left",1,"ml-auto"],[1,"fa","fa-search"],["pInputText","","type","text","placeholder","Search...","fluid","",3,"ngModelChange","input","ngModel"],[1,"fa","fa-circle-xmark","cursor-pointer"],[1,"drop-shadow",3,"ngModelChange","ngModel","options","allowEmpty"],[1,"fa","fa-circle-xmark","cursor-pointer",3,"click"],[1,"fa",3,"ngClass"],[1,"flex","flex-col","gap-2","p-2"],[1,"bg-white","border","rounded-lg","p-4","drop-shadow-lg"],[1,"flex","items-center","gap-2"],[1,"w-16","h-16","p-1","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2","w-full","items-center"],[1,"text-lg","font-bold","truncate"],[1,"text-sm","text-gray-500","line-clamp-2"],["icon","fa fa-arrow-up-right-from-square","size","large","text","","rounded","","outlined","",3,"click"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2","p-2"],[1,"w-32","h-32","p-1","mx-auto","mb-4","rounded-lg","border",2,"object-fit","contain",3,"src","alt"],[1,"flex","justify-between","gap-2"],["icon","fa fa-arrow-up-right-from-square","size","small","text","","rounded","","outlined","",3,"click"],[1,"text-center","p-8","italic","text-muted-color"]],template:function(e,i){if(e&1){let r=se();I(0,"app-base",7)(1,"p-dataView",8,0),K("onLazyLoad",function(s){return E(r),S(i.onLazyLoad(s))}),C(3,kU,11,5,"ng-template",null,1,at)(5,RU,3,0,"ng-template",null,2,at)(7,NU,3,0,"ng-template",null,3,at)(9,BU,2,1,"ng-template",null,4,at),T()()}e&2&&(g(),h("value",i.products())("paginator",!0)("lazy",!0)("totalRecords",i.currentTotalProducts())("loading",i.loading())("layout",i.layout())("rowsPerPageOptions",i.layout()==="list"?i.listPageOptions:i.gridPageOptions)("rows",i.rows()))},dependencies:[os,eR,Hm,ys,Mm,mc,Ea,Ji,Ni,bs,Pm,Am],styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.h-screen[_ngcontent-%COMP%]{height:100vh}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.w-screen[_ngcontent-%COMP%]{width:100vw}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes _ngcontent-%COMP%_fadein{0%{opacity:0}to{opacity:1}}.animate-fadein[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadein .5s ease-in-out}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-4xl[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20[_ngcontent-%COMP%]{opacity:.2}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-1000[_ngcontent-%COMP%]{transition-duration:1s}.animate-alternate[_ngcontent-%COMP%]{animation-direction:alternate}.animate-duration-\\__ph-0__[_ngcontent-%COMP%]{animation-duration:1.5s}.animate-infinite[_ngcontent-%COMP%]{animation-iteration-count:infinite}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}} .p-dataview-content{background:transparent!important} .p-dataview-header, p-paginator{border-width:1px!important;border-radius:12px!important;margin-left:.5rem!important;margin-right:.5rem!important;--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}input[pInputText][_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important;border-width:1px!important}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var Um=class t{constructor(n){this.route=n;this.route.queryParams.subscribe(e=>{let i=e.authToken;if(i){let r=decodeURIComponent(atob(e.redirectTo));localStorage.setItem("api-key",i),window.history.replaceState({},"",r),window.location.href=r}})}route;static \u0275fac=function(e){return new(e||t)(me(Fr))};static \u0275cmp=$({type:t,selectors:[["app-login"]],decls:3,vars:0,consts:[[1,"flex","flex-col","items-center","justify-center","h-screen","w-screen","opacity-20"],[1,"animate-fadein","duration-1000","animate-infinite","animate-alternate","text-4xl"]],template:function(e,i){e&1&&(Ze(0,"div",0)(1,"div",1),ce(2,"Signing in..."),Je()())},styles:['*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }[_ngcontent-%COMP%]::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}[_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after{--tw-content: ""}html[_ngcontent-%COMP%], [_nghost-%COMP%]{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body[_ngcontent-%COMP%]{margin:0;line-height:inherit}hr[_ngcontent-%COMP%]{height:0;color:inherit;border-top-width:1px}abbr[_ngcontent-%COMP%]:where([title]){text-decoration:underline dotted}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit}a[_ngcontent-%COMP%]{color:inherit;text-decoration:inherit}b[_ngcontent-%COMP%], strong[_ngcontent-%COMP%]{font-weight:bolder}code[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small[_ngcontent-%COMP%]{font-size:80%}sub[_ngcontent-%COMP%], sup[_ngcontent-%COMP%]{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub[_ngcontent-%COMP%]{bottom:-.25em}sup[_ngcontent-%COMP%]{top:-.5em}table[_ngcontent-%COMP%]{text-indent:0;border-color:inherit;border-collapse:collapse}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%], optgroup[_ngcontent-%COMP%], select[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{text-transform:none}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]:where([type=button]), input[_ngcontent-%COMP%]:where([type=reset]), input[_ngcontent-%COMP%]:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}[_ngcontent-%COMP%]:-moz-focusring{outline:auto}[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}progress[_ngcontent-%COMP%]{vertical-align:baseline}[_ngcontent-%COMP%]::-webkit-inner-spin-button, [_ngcontent-%COMP%]::-webkit-outer-spin-button{height:auto}[type=search][_ngcontent-%COMP%]{-webkit-appearance:textfield;outline-offset:-2px}[_ngcontent-%COMP%]::-webkit-search-decoration{-webkit-appearance:none}[_ngcontent-%COMP%]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary[_ngcontent-%COMP%]{display:list-item}blockquote[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], hr[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%]{margin:0}fieldset[_ngcontent-%COMP%]{margin:0;padding:0}legend[_ngcontent-%COMP%]{padding:0}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], menu[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}dialog[_ngcontent-%COMP%]{padding:0}textarea[_ngcontent-%COMP%]{resize:vertical}input[_ngcontent-%COMP%]::placeholder, textarea[_ngcontent-%COMP%]::placeholder{opacity:1;color:#9ca3af}button[_ngcontent-%COMP%], [role=button][_ngcontent-%COMP%]{cursor:pointer}[_ngcontent-%COMP%]:disabled{cursor:default}img[_ngcontent-%COMP%], svg[_ngcontent-%COMP%], video[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], object[_ngcontent-%COMP%]{display:block;vertical-align:middle}img[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{max-width:100%;height:auto}[hidden][_ngcontent-%COMP%]:where(:not([hidden=until-found])){display:none}.visible[_ngcontent-%COMP%]{visibility:visible}.absolute[_ngcontent-%COMP%]{position:absolute}.col-span-2[_ngcontent-%COMP%]{grid-column:span 2 / span 2}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-4[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:1rem}.mb-4[_ngcontent-%COMP%]{margin-bottom:1rem}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.mt-4[_ngcontent-%COMP%]{margin-top:1rem}.line-clamp-2[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block[_ngcontent-%COMP%]{display:block}.flex[_ngcontent-%COMP%]{display:flex}.table[_ngcontent-%COMP%]{display:table}.grid[_ngcontent-%COMP%]{display:grid}.h-16[_ngcontent-%COMP%]{height:4rem}.h-32[_ngcontent-%COMP%]{height:8rem}.h-screen[_ngcontent-%COMP%]{height:100vh}.min-h-screen[_ngcontent-%COMP%]{min-height:100vh}.w-16[_ngcontent-%COMP%]{width:4rem}.w-32[_ngcontent-%COMP%]{width:8rem}.w-full[_ngcontent-%COMP%]{width:100%}.w-screen[_ngcontent-%COMP%]{width:100vw}.transform[_ngcontent-%COMP%]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes _ngcontent-%COMP%_fadein{0%{opacity:0}to{opacity:1}}.animate-fadein[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadein .5s ease-in-out}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.grid-cols-2[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.items-center[_ngcontent-%COMP%]{align-items:center}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-2[_ngcontent-%COMP%]{gap:.5rem}.gap-4[_ngcontent-%COMP%]{gap:1rem}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded[_ngcontent-%COMP%]{border-radius:.25rem}.rounded-2xl[_ngcontent-%COMP%]{border-radius:1rem}.rounded-lg[_ngcontent-%COMP%]{border-radius:.5rem}.border[_ngcontent-%COMP%]{border-width:1px}.border-2[_ngcontent-%COMP%]{border-width:2px}.bg-gray-100\\/50[_ngcontent-%COMP%]{background-color:#f3f4f680}.bg-red-500[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-1[_ngcontent-%COMP%]{padding:.25rem}.p-2[_ngcontent-%COMP%]{padding:.5rem}.p-4[_ngcontent-%COMP%]{padding:1rem}.p-8[_ngcontent-%COMP%]{padding:2rem}.pt-4[_ngcontent-%COMP%]{padding-top:1rem}.text-center[_ngcontent-%COMP%]{text-align:center}.text-2xl[_ngcontent-%COMP%]{font-size:1.5rem;line-height:2rem}.text-4xl[_ngcontent-%COMP%]{font-size:2.25rem;line-height:2.5rem}.text-lg[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.75rem}.text-sm[_ngcontent-%COMP%]{font-size:.875rem;line-height:1.25rem}.font-bold[_ngcontent-%COMP%]{font-weight:700}.italic[_ngcontent-%COMP%]{font-style:italic}.text-blue-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-gray-500[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-white[_ngcontent-%COMP%]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20[_ngcontent-%COMP%]{opacity:.2}.drop-shadow[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-2xl[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-lg[_ngcontent-%COMP%]{--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter[_ngcontent-%COMP%]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.duration-1000[_ngcontent-%COMP%]{transition-duration:1s}.animate-alternate[_ngcontent-%COMP%]{animation-direction:alternate}.animate-infinite[_ngcontent-%COMP%]{animation-iteration-count:infinite}.text-muted-color[_ngcontent-%COMP%]{color:var(--p-text-muted-color)}@keyframes _ngcontent-%COMP%_enter{0%{opacity:var(--p-enter-opacity, 1);transform:translate3d(var(--p-enter-translate-x, 0),var(--p-enter-translate-y, 0),0) scale3d(var(--p-enter-scale, 1),var(--p-enter-scale, 1),var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0))}}@keyframes _ngcontent-%COMP%_leave{to{opacity:var(--p-leave-opacity, 1);transform:translate3d(var(--p-leave-translate-x, 0),var(--p-leave-translate-y, 0),0) scale3d(var(--p-leave-scale, 1),var(--p-leave-scale, 1),var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0))}}.hover\\:text-blue-700[_ngcontent-%COMP%]:hover{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.hover\\:underline[_ngcontent-%COMP%]:hover{text-decoration-line:underline}@media(min-width:640px){.sm\\:grid-cols-3[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}']})};var Ia=class t{canActivate(n,e){let i=Ht.apiKey??localStorage.getItem("api-key");if(!Ht.production&&!i){let r=encodeURIComponent(btoa(`${window.location.protocol}//${window.location.host}/login?redirectTo=${encodeURIComponent(btoa(window.location.href))}`));return window.location.href=`${Ht.serverUrl}/login?redirectTo=${r}`,!1}return!0}static \u0275fac=function(e){return new(e||t)};static \u0275prov=N({token:t,factory:t.\u0275fac})};var dR=`
.p-datatable {
position: relative;
display: block;
@@ -2869,7 +2869,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
.p-datatable-row-toggle-icon:dir(rtl) {
transform: rotate(180deg);
}
-`;var qR=`
+`;var uR=`
.p-checkbox {
position: relative;
display: inline-flex;
@@ -3008,8 +3008,8 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
width: dt('checkbox.icon.lg.size');
height: dt('checkbox.icon.lg.size');
}
-`;var CW=["icon"],xW=["input"],TW=(t,n)=>({checked:t,class:n});function EW(t,n){if(t&1&&X(0,"span",8),t&2){let e=m(3);k(e.cx("icon")),h("ngClass",e.checkboxIcon)("pBind",e.ptm("icon"))}}function SW(t,n){if(t&1&&(G(),X(0,"svg",9)),t&2){let e=m(3);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function IW(t,n){if(t&1&&(ie(0),C(1,EW,1,4,"span",6)(2,SW,1,3,"svg",7),oe()),t&2){let e=m(2);g(),h("ngIf",e.checkboxIcon),g(),h("ngIf",!e.checkboxIcon)}}function DW(t,n){if(t&1&&(G(),X(0,"svg",10)),t&2){let e=m(2);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function kW(t,n){if(t&1&&(ie(0),C(1,IW,3,2,"ng-container",3)(2,DW,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.checked),g(),h("ngIf",e._indeterminate())}}function MW(t,n){}function OW(t,n){t&1&&C(0,MW,0,0,"ng-template")}var RW=`
- ${qR}
+`;var VU=["icon"],jU=["input"],zU=(t,n)=>({checked:t,class:n});function HU(t,n){if(t&1&&ee(0,"span",8),t&2){let e=m(3);k(e.cx("icon")),h("ngClass",e.checkboxIcon)("pBind",e.ptm("icon"))}}function $U(t,n){if(t&1&&(G(),ee(0,"svg",9)),t&2){let e=m(3);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function UU(t,n){if(t&1&&(re(0),C(1,HU,1,4,"span",6)(2,$U,1,3,"svg",7),oe()),t&2){let e=m(2);g(),h("ngIf",e.checkboxIcon),g(),h("ngIf",!e.checkboxIcon)}}function WU(t,n){if(t&1&&(G(),ee(0,"svg",10)),t&2){let e=m(2);k(e.cx("icon")),h("pBind",e.ptm("icon"))}}function GU(t,n){if(t&1&&(re(0),C(1,UU,3,2,"ng-container",3)(2,WU,1,3,"svg",5),oe()),t&2){let e=m();g(),h("ngIf",e.checked),g(),h("ngIf",e._indeterminate())}}function qU(t,n){}function QU(t,n){t&1&&C(0,qU,0,0,"ng-template")}var KU=`
+ ${uR}
/* For PrimeNG */
p-checkBox.ng-invalid.ng-dirty .p-checkbox-box,
@@ -3017,7 +3017,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
p-checkbox.ng-invalid.ng-dirty .p-checkbox-box {
border-color: dt('checkbox.invalid.border.color');
}
-`,PW={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},QR=(()=>{class t extends Oe{name="checkbox";style=RW;classes=PW;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var KR=new H("CHECKBOX_INSTANCE"),AW={provide:Nn,useExisting:Ht(()=>YR),multi:!0},YR=(()=>{class t extends eo{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=ae();size=ae();onChange=new z;onFocus=new z;onBlur=new z;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:yk(this.value,this.modelValue())}_indeterminate=ge(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=x(QR);bindDirectiveInstance=x(te,{self:!0});$pcCheckbox=x(KR,{optional:!0,skipSelf:!0})??void 0;$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}onChanges(e){e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(e){let r,i=this.injector.get(Yn,null,{optional:!0,self:!0}),o=i&&!this.formControl?i.value:this.modelValue();this.binary?(r=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(r),this.onModelChange(r)):(this.checked||this._indeterminate()?r=o.filter(s=>!nr(s,this.value)):r=o?[...o,this.value]:[this.value],this.onModelChange(r),this.writeModelValue(r),this.formControl&&this.formControl.setValue(r)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:r,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(e,r){r(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275cmp=$({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(r,i,o){if(r&1&&(V(o,CW,4),V(o,xt,4)),r&2){let s;M(s=O())&&(i.checkboxIconTemplate=s.first),M(s=O())&&(i.templates=s)}},viewQuery:function(r,i){if(r&1&&ct(xW,5),r&2){let o;M(o=O())&&(i.inputViewChild=o.first)}},hostVars:5,hostBindings:function(r,i){r&2&&(J("data-p-highlight",i.checked)("data-p-checked",i.checked)("data-p-disabled",i.$disabled()),k(i.cn(i.cx("root"),i.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",R],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",Me],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",R],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",R],autofocus:[2,"autofocus","autofocus",R],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[xe([AW,QR,{provide:KR,useExisting:t},{provide:Ke,useExisting:t}]),et([te]),j],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(r,i){if(r&1){let o=se();E(0,"input",1,0),q("focus",function(a){return S(o),I(i.onInputFocus(a))})("blur",function(a){return S(o),I(i.onInputBlur(a))})("change",function(a){return S(o),I(i.handleChange(a))}),T(),E(2,"div",2),C(3,kW,3,2,"ng-container",3)(4,OW,1,0,null,4),T()}r&2&&(Dn(i.inputStyle),k(i.cn(i.cx("input"),i.inputClass)),h("checked",i.checked)("pBind",i.ptm("input")),J("id",i.inputId)("value",i.value)("name",i.name())("tabindex",i.tabindex)("required",i.required()?"":void 0)("readonly",i.readonly?"":void 0)("disabled",i.$disabled()?"":void 0)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel),g(2),k(i.cx("box")),h("pBind",i.ptm("box")),g(),h("ngIf",!i.checkboxIconTemplate&&!i._checkboxIconTemplate),g(),h("ngTemplateOutlet",i.checkboxIconTemplate||i._checkboxIconTemplate)("ngTemplateOutletContext",Dt(21,TW,i.checked,i.cx("icon"))))},dependencies:[Qe,ei,Ut,kt,Te,Yh,oM,Wt,te],encapsulation:2,changeDetection:0})}return t})(),ZR=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ke({type:t});static \u0275inj=Ie({imports:[YR,Te,Te]})}return t})();var JR=`
+`,YU={root:({instance:t})=>["p-checkbox p-component",{"p-checkbox-checked p-highlight":t.checked,"p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-variant-filled":t.$variant()==="filled","p-checkbox-sm p-inputfield-sm":t.size()==="small","p-checkbox-lg p-inputfield-lg":t.size()==="large"}],box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon"},pR=(()=>{class t extends Me{name="checkbox";style=KU;classes=YU;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var fR=new z("CHECKBOX_INSTANCE"),ZU={provide:Vn,useExisting:Jt(()=>hR),multi:!0},hR=(()=>{class t extends Zr{hostName="";value;binary;ariaLabelledBy;ariaLabel;tabindex;inputId;inputStyle;styleClass;inputClass;indeterminate=!1;formControl;checkboxIcon;readonly;autofocus;trueValue=!0;falseValue=!1;variant=ae();size=ae();onChange=new H;onFocus=new H;onBlur=new H;inputViewChild;get checked(){return this._indeterminate()?!1:this.binary?this.modelValue()===this.trueValue:JD(this.value,this.modelValue())}_indeterminate=_e(void 0);checkboxIconTemplate;templates;_checkboxIconTemplate;focused=!1;_componentStyle=x(pR);bindDirectiveInstance=x(te,{self:!0});$pcCheckbox=x(fR,{optional:!0,skipSelf:!0})??void 0;$variant=We(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"icon":this._checkboxIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break}})}onChanges(e){e.indeterminate&&this._indeterminate.set(e.indeterminate.currentValue)}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}updateModel(e){let i,r=this.injector.get(mi,null,{optional:!0,self:!0}),o=r&&!this.formControl?r.value:this.modelValue();this.binary?(i=this._indeterminate()?this.trueValue:this.checked?this.falseValue:this.trueValue,this.writeModelValue(i),this.onModelChange(i)):(this.checked||this._indeterminate()?i=o.filter(s=>!ei(s,this.value)):i=o?[...o,this.value]:[this.value],this.onModelChange(i),this.writeModelValue(i),this.formControl&&this.formControl.setValue(i)),this._indeterminate()&&this._indeterminate.set(!1),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}focus(){this.inputViewChild?.nativeElement.focus()}writeControlValue(e,i){i(e),this.cd.markForCheck()}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275cmp=$({type:t,selectors:[["p-checkbox"],["p-checkBox"],["p-check-box"]],contentQueries:function(i,r,o){if(i&1&&(V(o,VU,4),V(o,xt,4)),i&2){let s;M(s=O())&&(r.checkboxIconTemplate=s.first),M(s=O())&&(r.templates=s)}},viewQuery:function(i,r){if(i&1&&ct(jU,5),i&2){let o;M(o=O())&&(r.inputViewChild=o.first)}},hostVars:5,hostBindings:function(i,r){i&2&&(J("data-p-highlight",r.checked)("data-p-checked",r.checked)("data-p-disabled",r.$disabled()),k(r.cn(r.cx("root"),r.styleClass)))},inputs:{hostName:"hostName",value:"value",binary:[2,"binary","binary",R],ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:[2,"tabindex","tabindex",ke],inputId:"inputId",inputStyle:"inputStyle",styleClass:"styleClass",inputClass:"inputClass",indeterminate:[2,"indeterminate","indeterminate",R],formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:[2,"readonly","readonly",R],autofocus:[2,"autofocus","autofocus",R],trueValue:"trueValue",falseValue:"falseValue",variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[Se([ZU,pR,{provide:fR,useExisting:t},{provide:Qe,useExisting:t}]),nt([te]),j],decls:5,vars:24,consts:[["input",""],["type","checkbox",3,"focus","blur","change","checked","pBind"],[3,"pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","minus",3,"class","pBind",4,"ngIf"],[3,"class","ngClass","pBind",4,"ngIf"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],[3,"ngClass","pBind"],["data-p-icon","check",3,"pBind"],["data-p-icon","minus",3,"pBind"]],template:function(i,r){if(i&1){let o=se();I(0,"input",1,0),K("focus",function(a){return E(o),S(r.onInputFocus(a))})("blur",function(a){return E(o),S(r.onInputBlur(a))})("change",function(a){return E(o),S(r.handleChange(a))}),T(),I(2,"div",2),C(3,GU,3,2,"ng-container",3)(4,QU,1,0,null,4),T()}i&2&&(Dn(r.inputStyle),k(r.cn(r.cx("input"),r.inputClass)),h("checked",r.checked)("pBind",r.ptm("input")),J("id",r.inputId)("value",r.value)("name",r.name())("tabindex",r.tabindex)("required",r.required()?"":void 0)("readonly",r.readonly?"":void 0)("disabled",r.$disabled()?"":void 0)("aria-labelledby",r.ariaLabelledBy)("aria-label",r.ariaLabel),g(2),k(r.cx("box")),h("pBind",r.ptm("box")),g(),h("ngIf",!r.checkboxIconTemplate&&!r._checkboxIconTemplate),g(),h("ngTemplateOutlet",r.checkboxIconTemplate||r._checkboxIconTemplate)("ngTemplateOutletContext",Dt(21,zU,r.checked,r.cx("icon"))))},dependencies:[qe,Ji,Ut,kt,xe,Uh,jk,Wt,te],encapsulation:2,changeDetection:0})}return t})(),mR=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Re({type:t});static \u0275inj=De({imports:[hR,xe,xe]})}return t})();var gR=`
.p-datepicker {
display: inline-flex;
max-width: 100%;
@@ -3477,14 +3477,14 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
border-start-end-radius: dt('datepicker.dropdown.border.radius');
border-end-end-radius: dt('datepicker.dropdown.border.radius');
}
-`;var NW=["date"],FW=["header"],LW=["footer"],BW=["disabledDate"],VW=["decade"],jW=["previousicon"],zW=["nexticon"],HW=["triggericon"],$W=["clearicon"],UW=["decrementicon"],WW=["incrementicon"],GW=["inputicon"],qW=["buttonbar"],QW=["inputfield"],KW=["contentWrapper"],YW=[[["p-header"]],[["p-footer"]]],ZW=["p-header","p-footer"],JW=t=>({clickCallBack:t}),XW=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),eG=t=>({value:"visible",params:t}),XR=t=>({visibility:t}),Dw=t=>({$implicit:t}),tG=t=>({date:t}),nG=(t,n)=>({month:t,index:n}),rG=t=>({year:t}),iG=(t,n)=>({todayCallback:t,clearCallback:n});function oG(t,n){if(t&1){let e=se();G(),E(0,"svg",10),q("click",function(){S(e);let i=m(3);return I(i.clear())}),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon"))}}function sG(t,n){}function aG(t,n){t&1&&C(0,sG,0,0,"ng-template")}function lG(t,n){if(t&1){let e=se();E(0,"span",11),q("click",function(){S(e);let i=m(3);return I(i.clear())}),C(1,aG,1,0,null,12),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function cG(t,n){if(t&1&&(ie(0),C(1,oG,1,3,"svg",8)(2,lG,2,4,"span",9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function dG(t,n){if(t&1&&X(0,"span",15),t&2){let e=m(3);h("ngClass",e.icon)("pBind",e.ptm("dropdownIcon"))}}function uG(t,n){if(t&1&&(G(),X(0,"svg",17)),t&2){let e=m(4);h("pBind",e.ptm("dropdownIcon"))}}function pG(t,n){}function fG(t,n){t&1&&C(0,pG,0,0,"ng-template")}function hG(t,n){if(t&1&&(ie(0),C(1,uG,1,1,"svg",16)(2,fG,1,0,null,12),oe()),t&2){let e=m(3);g(),h("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),g(),h("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function mG(t,n){if(t&1){let e=se();E(0,"button",13),q("click",function(i){S(e),m();let o=pn(1),s=m();return I(s.onButtonClick(i,o))}),C(1,dG,1,2,"span",14)(2,hG,3,2,"ng-container",6),T()}if(t&2){let e=m(2);k(e.cx("dropdown")),h("disabled",e.$disabled())("pBind",e.ptm("dropdown")),J("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null),g(),h("ngIf",e.icon),g(),h("ngIf",!e.icon)}}function gG(t,n){if(t&1){let e=se();G(),E(0,"svg",21),q("click",function(i){S(e);let o=m(3);return I(o.onButtonClick(i))}),T()}if(t&2){let e=m(3);k(e.cx("inputIcon")),h("pBind",e.ptm("inputIcon"))}}function yG(t,n){t&1&&ne(0)}function bG(t,n){if(t&1&&(ie(0),E(1,"span",18),C(2,gG,1,3,"svg",19)(3,yG,1,0,"ng-container",20),T(),oe()),t&2){let e=m(2);g(),k(e.cx("inputIconContainer")),h("pBind",e.ptm("inputIconContainer")),g(),h("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),g(),h("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",Ee(6,JW,e.onButtonClick.bind(e)))}}function vG(t,n){if(t&1){let e=se();E(0,"input",5,0),q("focus",function(i){S(e);let o=m();return I(o.onInputFocus(i))})("keydown",function(i){S(e);let o=m();return I(o.onInputKeydown(i))})("click",function(){S(e);let i=m();return I(i.onInputClick())})("blur",function(i){S(e);let o=m();return I(o.onInputBlur(i))})("input",function(i){S(e);let o=m();return I(o.onUserInput(i))}),T(),C(2,cG,3,2,"ng-container",6)(3,mG,3,9,"button",7)(4,bG,4,8,"ng-container",6)}if(t&2){let e=m();k(e.cn(e.cx("pcInputText"),e.inputStyleClass)),h("pSize",e.size())("value",e.inputFieldValue)("ngStyle",e.inputStyle)("pAutoFocus",e.autofocus)("variant",e.$variant())("fluid",e.hasFluid)("invalid",e.invalid())("pt",e.ptm("pcInputText")),J("size",e.inputSize())("id",e.inputId)("name",e.name())("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("required",e.required()?"":void 0)("readonly",e.readonlyInput?"":void 0)("disabled",e.$disabled()?"":void 0)("placeholder",e.placeholder)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),g(2),h("ngIf",e.showClear&&!e.$disabled()&&(e.inputfieldViewChild==null||e.inputfieldViewChild.nativeElement==null?null:e.inputfieldViewChild.nativeElement.value)),g(),h("ngIf",e.showIcon&&e.iconDisplay==="button"),g(),h("ngIf",e.iconDisplay==="input"&&e.showIcon)}}function _G(t,n){t&1&&ne(0)}function wG(t,n){t&1&&(G(),X(0,"svg",30))}function CG(t,n){}function xG(t,n){t&1&&C(0,CG,0,0,"ng-template")}function TG(t,n){if(t&1&&(E(0,"span"),C(1,xG,1,0,null,12),T()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function EG(t,n){if(t&1&&C(0,wG,1,0,"svg",29)(1,TG,2,1,"span",6),t&2){let e=m(4);h("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),g(),h("ngIf",e.previousIconTemplate||e._previousIconTemplate)}}function SG(t,n){if(t&1){let e=se();E(0,"button",31),q("click",function(i){S(e);let o=m(4);return I(o.switchToMonthView(i))})("keydown",function(i){S(e);let o=m(4);return I(o.onContainerButtonKeydown(i))}),ce(1),T()}if(t&2){let e=m().$implicit,r=m(3);k(r.cx("selectMonth")),h("pBind",r.ptm("selectMonth")),J("disabled",r.switchViewButtonDisabled()?"":void 0)("aria-label",r.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),g(),$t(" ",r.getMonthName(e.month)," ")}}function IG(t,n){if(t&1){let e=se();E(0,"button",31),q("click",function(i){S(e);let o=m(4);return I(o.switchToYearView(i))})("keydown",function(i){S(e);let o=m(4);return I(o.onContainerButtonKeydown(i))}),ce(1),T()}if(t&2){let e=m().$implicit,r=m(3);k(r.cx("selectYear")),h("pBind",r.ptm("selectYear")),J("disabled",r.switchViewButtonDisabled()?"":void 0)("aria-label",r.getTranslation("chooseYear"))("data-pc-group-section","navigator"),g(),$t(" ",r.getYear(e)," ")}}function DG(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(5);g(),_l("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1])}}function kG(t,n){t&1&&ne(0)}function MG(t,n){if(t&1&&(E(0,"span",18),C(1,DG,2,2,"ng-container",6)(2,kG,1,0,"ng-container",20),T()),t&2){let e=m(4);k(e.cx("decade")),h("pBind",e.ptm("decade")),g(),h("ngIf",!e.decadeTemplate&&!e._decadeTemplate),g(),h("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",Ee(6,Dw,e.yearPickerValues))}}function OG(t,n){t&1&&(G(),X(0,"svg",33))}function RG(t,n){}function PG(t,n){t&1&&C(0,RG,0,0,"ng-template")}function AG(t,n){if(t&1&&(ie(0),C(1,PG,1,0,null,12),oe()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function NG(t,n){if(t&1&&C(0,OG,1,0,"svg",32)(1,AG,2,1,"ng-container",6),t&2){let e=m(4);h("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate),g(),h("ngIf",e.nextIconTemplate||e._nextIconTemplate)}}function FG(t,n){if(t&1&&(E(0,"th",18)(1,"span",18),ce(2),T()()),t&2){let e=m(5);k(e.cx("weekHeader")),h("pBind",e.ptm("weekHeader")),g(),h("pBind",e.ptm("weekHeaderLabel")),g(),Ze(e.getTranslation("weekHeader"))}}function LG(t,n){if(t&1&&(E(0,"th",37)(1,"span",18),ce(2),T()()),t&2){let e=n.$implicit,r=m(5);k(r.cx("weekDayCell")),h("pBind",r.ptm("weekDayCell")),g(),k(r.cx("weekDay")),h("pBind",r.ptm("weekDay")),g(),Ze(e)}}function BG(t,n){if(t&1&&(E(0,"td",18)(1,"span",18),ce(2),T()()),t&2){let e=m().index,r=m(2).$implicit,i=m(3);k(i.cx("weekNumber")),h("pBind",i.ptm("weekNumber")),g(),k(i.cx("weekLabelContainer")),h("pBind",i.ptm("weekLabelContainer")),g(),$t(" ",r.weekNumbers[e]," ")}}function VG(t,n){if(t&1&&(ie(0),ce(1),oe()),t&2){let e=m(2).$implicit;g(),Ze(e.day)}}function jG(t,n){t&1&&ne(0)}function zG(t,n){if(t&1&&(ie(0),C(1,jG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,r=m(6);g(),h("ngTemplateOutlet",r.dateTemplate||r._dateTemplate)("ngTemplateOutletContext",Ee(2,Dw,e))}}function HG(t,n){t&1&&ne(0)}function $G(t,n){if(t&1&&(ie(0),C(1,HG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,r=m(6);g(),h("ngTemplateOutlet",r.disabledDateTemplate||r._disabledDateTemplate)("ngTemplateOutletContext",Ee(2,Dw,e))}}function UG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m(2).$implicit;g(),$t(" ",e.day," ")}}function WG(t,n){if(t&1){let e=se();ie(0),E(1,"span",38),q("click",function(i){S(e);let o=m().$implicit,s=m(6);return I(s.onDateSelect(i,o))})("keydown",function(i){S(e);let o=m().$implicit,s=m(3).index,a=m(3);return I(a.onDateCellKeydown(i,o,s))}),C(2,VG,2,1,"ng-container",6)(3,zG,2,4,"ng-container",6)(4,$G,2,4,"ng-container",6),T(),C(5,UG,2,1,"div",39),oe()}if(t&2){let e=m().$implicit,r=m(6);g(),h("ngClass",r.dayClass(e))("pBind",r.ptm("day")),J("data-date",r.formatDateKey(r.formatDateMetaToDate(e))),g(),h("ngIf",!r.dateTemplate&&!r._dateTemplate&&(e.selectable||!r.disabledDateTemplate&&!r._disabledDateTemplate)),g(),h("ngIf",e.selectable||!r.disabledDateTemplate&&!r._disabledDateTemplate),g(),h("ngIf",!e.selectable),g(),h("ngIf",r.isSelected(e))}}function GG(t,n){if(t&1&&(E(0,"td",18),C(1,WG,6,7,"ng-container",6),T()),t&2){let e=n.$implicit,r=m(6);k(r.cx("dayCell",Ee(5,tG,e))),h("pBind",r.ptm("dayCell")),J("aria-label",e.day),g(),h("ngIf",e.otherMonth?r.showOtherMonths:!0)}}function qG(t,n){if(t&1&&(E(0,"tr",18),C(1,BG,3,7,"td",23)(2,GG,2,7,"td",24),T()),t&2){let e=n.$implicit,r=m(5);h("pBind",r.ptm("tableBodyRow")),g(),h("ngIf",r.showWeek),g(),h("ngForOf",e)}}function QG(t,n){if(t&1&&(E(0,"table",34)(1,"thead",18)(2,"tr",18),C(3,FG,3,5,"th",23)(4,LG,3,7,"th",35),T()(),E(5,"tbody",18),C(6,qG,3,3,"tr",36),T()()),t&2){let e=m().$implicit,r=m(3);k(r.cx("dayView")),h("pBind",r.ptm("table")),g(),h("pBind",r.ptm("tableHeader")),g(),h("pBind",r.ptm("tableHeaderRow")),g(),h("ngIf",r.showWeek),g(),h("ngForOf",r.weekDays),g(),h("pBind",r.ptm("tableBody")),g(),h("ngForOf",e.dates)}}function KG(t,n){if(t&1){let e=se();E(0,"div",18)(1,"div",18)(2,"p-button",25),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onPrevButtonClick(i))}),C(3,EG,2,2,"ng-template",null,2,at),T(),E(5,"div",18),C(6,SG,2,7,"button",26)(7,IG,2,7,"button",26)(8,MG,3,8,"span",23),T(),E(9,"p-button",27),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onNextButtonClick(i))}),C(10,NG,2,2,"ng-template",null,2,at),T()(),C(12,QG,7,9,"table",28),T()}if(t&2){let e=n.index,r=m(3);k(r.cx("calendar")),h("pBind",r.ptm("calendar")),g(),k(r.cx("header")),h("pBind",r.ptm("header")),g(),h("styleClass",r.cx("pcPrevButton"))("ngStyle",Ee(23,XR,e===0?"visible":"hidden"))("ariaLabel",r.prevIconAriaLabel)("pt",r.ptm("pcPrevButton")),J("data-pc-group-section","navigator"),g(3),k(r.cx("title")),h("pBind",r.ptm("title")),g(),h("ngIf",r.currentView==="date"),g(),h("ngIf",r.currentView!=="year"),g(),h("ngIf",r.currentView==="year"),g(),h("styleClass",r.cx("pcNextButton"))("ngStyle",Ee(25,XR,e===r.months.length-1?"visible":"hidden"))("ariaLabel",r.nextIconAriaLabel)("pt",r.ptm("pcNextButton")),J("data-pc-group-section","navigator"),g(3),h("ngIf",r.currentView==="date")}}function YG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),$t(" ",e," ")}}function ZG(t,n){if(t&1){let e=se();E(0,"span",42),q("click",function(i){let o=S(e).index,s=m(4);return I(s.onMonthSelect(i,o))})("keydown",function(i){let o=S(e).index,s=m(4);return I(s.onMonthCellKeydown(i,o))}),ce(1),C(2,YG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,r=n.index,i=m(4);k(i.cx("month",Dt(5,nG,e,r))),h("pBind",i.ptm("month")),g(),$t(" ",e," "),g(),h("ngIf",i.isMonthSelected(r))}}function JG(t,n){if(t&1&&(E(0,"div",18),C(1,ZG,3,8,"span",41),T()),t&2){let e=m(3);k(e.cx("monthView")),h("pBind",e.ptm("monthView")),g(),h("ngForOf",e.monthPickerValues())}}function XG(t,n){if(t&1&&(E(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),$t(" ",e," ")}}function eq(t,n){if(t&1){let e=se();E(0,"span",42),q("click",function(i){let o=S(e).$implicit,s=m(4);return I(s.onYearSelect(i,o))})("keydown",function(i){let o=S(e).$implicit,s=m(4);return I(s.onYearCellKeydown(i,o))}),ce(1),C(2,XG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,r=m(4);k(r.cx("year",Ee(5,rG,e))),h("pBind",r.ptm("year")),g(),$t(" ",e," "),g(),h("ngIf",r.isYearSelected(e))}}function tq(t,n){if(t&1&&(E(0,"div",18),C(1,eq,3,7,"span",41),T()),t&2){let e=m(3);k(e.cx("yearView")),h("pBind",e.ptm("yearView")),g(),h("ngForOf",e.yearPickerValues())}}function nq(t,n){if(t&1&&(ie(0),E(1,"div",18),C(2,KG,13,27,"div",24),T(),C(3,JG,2,4,"div",23)(4,tq,2,4,"div",23),oe()),t&2){let e=m(2);g(),k(e.cx("calendarContainer")),h("pBind",e.ptm("calendarContainer")),g(),h("ngForOf",e.months),g(),h("ngIf",e.currentView==="month"),g(),h("ngIf",e.currentView==="year")}}function rq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function iq(t,n){}function oq(t,n){t&1&&C(0,iq,0,0,"ng-template")}function sq(t,n){if(t&1&&C(0,rq,1,1,"svg",45)(1,oq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function aq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function lq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function cq(t,n){}function dq(t,n){t&1&&C(0,cq,0,0,"ng-template")}function uq(t,n){if(t&1&&C(0,lq,1,1,"svg",47)(1,dq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function pq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function fq(t,n){}function hq(t,n){t&1&&C(0,fq,0,0,"ng-template")}function mq(t,n){if(t&1&&C(0,pq,1,1,"svg",45)(1,hq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function gq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function yq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function bq(t,n){}function vq(t,n){t&1&&C(0,bq,0,0,"ng-template")}function _q(t,n){if(t&1&&C(0,yq,1,1,"svg",47)(1,vq,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function wq(t,n){if(t&1&&(E(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator)}}function Cq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function xq(t,n){}function Tq(t,n){t&1&&C(0,xq,0,0,"ng-template")}function Eq(t,n){if(t&1&&C(0,Cq,1,1,"svg",45)(1,Tq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function Sq(t,n){t&1&&(ie(0),ce(1,"0"),oe())}function Iq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function Dq(t,n){}function kq(t,n){t&1&&C(0,Dq,0,0,"ng-template")}function Mq(t,n){if(t&1&&C(0,Iq,1,1,"svg",47)(1,kq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function Oq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"p-button",43),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.incrementSecond(i))})("keydown.space",function(i){S(e);let o=m(3);return I(o.incrementSecond(i))})("mousedown",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseDown(i,2,1))})("mouseup",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(3);return I(i.onTimePickerElementMouseLeave())}),C(2,Eq,2,2,"ng-template",null,2,at),T(),E(4,"span",18),C(5,Sq,2,0,"ng-container",6),ce(6),T(),E(7,"p-button",43),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.decrementSecond(i))})("keydown.space",function(i){S(e);let o=m(3);return I(o.decrementSecond(i))})("mousedown",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseDown(i,2,-1))})("mouseup",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(3);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(3);return I(i.onTimePickerElementMouseLeave())}),C(8,Mq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("secondPicker")),h("pBind",e.ptm("secondPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("second")),g(),h("ngIf",e.currentSecond<10),g(),Ze(e.currentSecond),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function Rq(t,n){if(t&1&&(E(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator)}}function Pq(t,n){if(t&1&&(G(),X(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function Aq(t,n){}function Nq(t,n){t&1&&C(0,Aq,0,0,"ng-template")}function Fq(t,n){if(t&1&&C(0,Pq,1,1,"svg",45)(1,Nq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function Lq(t,n){if(t&1&&(G(),X(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function Bq(t,n){}function Vq(t,n){t&1&&C(0,Bq,0,0,"ng-template")}function jq(t,n){if(t&1&&C(0,Lq,1,1,"svg",47)(1,Vq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function zq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"p-button",49),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))}),C(2,Fq,2,2,"ng-template",null,2,at),T(),E(4,"span",18),ce(5),T(),E(6,"p-button",50),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("click",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))})("keydown.enter",function(i){S(e);let o=m(3);return I(o.toggleAMPM(i))}),C(7,jq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("ampmPicker")),h("pBind",e.ptm("ampmPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("am"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("ampm")),g(),Ze(e.pm?"PM":"AM"),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function Hq(t,n){if(t&1){let e=se();E(0,"div",18)(1,"div",18)(2,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.incrementHour(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.incrementHour(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,0,1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(3,sq,2,2,"ng-template",null,2,at),T(),E(5,"span",18),C(6,aq,2,0,"ng-container",6),ce(7),T(),E(8,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.decrementHour(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.decrementHour(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,0,-1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(9,uq,2,2,"ng-template",null,2,at),T()(),E(11,"div",44)(12,"span",18),ce(13),T()(),E(14,"div",18)(15,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.incrementMinute(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.incrementMinute(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,1,1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(16,mq,2,2,"ng-template",null,2,at),T(),E(18,"span",18),C(19,gq,2,0,"ng-container",6),ce(20),T(),E(21,"p-button",43),q("keydown",function(i){S(e);let o=m(2);return I(o.onContainerButtonKeydown(i))})("keydown.enter",function(i){S(e);let o=m(2);return I(o.decrementMinute(i))})("keydown.space",function(i){S(e);let o=m(2);return I(o.decrementMinute(i))})("mousedown",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseDown(i,1,-1))})("mouseup",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.enter",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("keyup.space",function(i){S(e);let o=m(2);return I(o.onTimePickerElementMouseUp(i))})("mouseleave",function(){S(e);let i=m(2);return I(i.onTimePickerElementMouseLeave())}),C(22,_q,2,2,"ng-template",null,2,at),T()(),C(24,wq,3,5,"div",23)(25,Oq,10,14,"div",23)(26,Rq,3,5,"div",23)(27,zq,9,13,"div",23),T()}if(t&2){let e=m(2);k(e.cx("timePicker")),h("pBind",e.ptm("timePicker")),g(),k(e.cx("hourPicker")),h("pBind",e.ptm("hourPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("hour")),g(),h("ngIf",e.currentHour<10),g(),Ze(e.currentHour),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Ze(e.timeSeparator),g(),k(e.cx("minutePicker")),h("pBind",e.ptm("minutePicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("minute")),g(),h("ngIf",e.currentMinute<10),g(),Ze(e.currentMinute),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("ngIf",e.showSeconds),g(),h("ngIf",e.showSeconds),g(),h("ngIf",e.hourFormat=="12"),g(),h("ngIf",e.hourFormat=="12")}}function $q(t,n){t&1&&ne(0)}function Uq(t,n){if(t&1&&C(0,$q,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.buttonBarTemplate||e._buttonBarTemplate)("ngTemplateOutletContext",Dt(2,iG,e.onTodayButtonClick.bind(e),e.onClearButtonClick.bind(e)))}}function Wq(t,n){if(t&1){let e=se();E(0,"p-button",51),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onTodayButtonClick(i))}),T(),E(1,"p-button",51),q("keydown",function(i){S(e);let o=m(3);return I(o.onContainerButtonKeydown(i))})("onClick",function(i){S(e);let o=m(3);return I(o.onClearButtonClick(i))}),T()}if(t&2){let e=m(3);h("styleClass",e.cx("pcTodayButton"))("label",e.getTranslation("today"))("ngClass",e.todayButtonStyleClass)("pt",e.ptm("pcTodayButton")),J("data-pc-group-section","button"),g(),h("styleClass",e.cx("pcClearButton"))("label",e.getTranslation("clear"))("ngClass",e.clearButtonStyleClass)("pt",e.ptm("pcClearButton")),J("data-pc-group-section","button")}}function Gq(t,n){if(t&1&&(E(0,"div",18),rt(1,Uq,1,5,"ng-container")(2,Wq,2,10),T()),t&2){let e=m(2);k(e.cx("buttonbar")),h("pBind",e.ptm("buttonbar")),g(),it(e.buttonBarTemplate||e._buttonBarTemplate?1:2)}}function qq(t,n){t&1&&ne(0)}function Qq(t,n){if(t&1){let e=se();E(0,"div",22,1),q("@overlayAnimation.start",function(i){S(e);let o=m();return I(o.onOverlayAnimationStart(i))})("@overlayAnimation.done",function(i){S(e);let o=m();return I(o.onOverlayAnimationDone(i))})("click",function(i){S(e);let o=m();return I(o.onOverlayClick(i))}),Ot(2),C(3,_G,1,0,"ng-container",12)(4,nq,5,6,"ng-container",6)(5,Hq,28,38,"div",23)(6,Gq,3,4,"div",23),Ot(7,1),C(8,qq,1,0,"ng-container",12),T()}if(t&2){let e=m();k(e.cn(e.cx("panel"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("@overlayAnimation",Ee(18,eG,Dt(15,XW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0)("pBind",e.ptm("panel")),J("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),g(3),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",!e.timeOnly),g(),h("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),g(),h("ngIf",e.showButtonBar),g(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Kq=`
- ${JR}
+`;var JU=["date"],XU=["header"],eW=["footer"],tW=["disabledDate"],nW=["decade"],iW=["previousicon"],rW=["nexticon"],oW=["triggericon"],sW=["clearicon"],aW=["decrementicon"],lW=["incrementicon"],cW=["inputicon"],dW=["buttonbar"],uW=["inputfield"],pW=["contentWrapper"],fW=[[["p-header"]],[["p-footer"]]],hW=["p-header","p-footer"],mW=t=>({clickCallBack:t}),gW=(t,n)=>({showTransitionParams:t,hideTransitionParams:n}),yW=t=>({value:"visible",params:t}),yR=t=>({visibility:t}),cw=t=>({$implicit:t}),bW=t=>({date:t}),vW=(t,n)=>({month:t,index:n}),_W=t=>({year:t}),wW=(t,n)=>({todayCallback:t,clearCallback:n});function CW(t,n){if(t&1){let e=se();G(),I(0,"svg",10),K("click",function(){E(e);let r=m(3);return S(r.clear())}),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon"))}}function xW(t,n){}function TW(t,n){t&1&&C(0,xW,0,0,"ng-template")}function EW(t,n){if(t&1){let e=se();I(0,"span",11),K("click",function(){E(e);let r=m(3);return S(r.clear())}),C(1,TW,1,0,null,12),T()}if(t&2){let e=m(3);k(e.cx("clearIcon")),h("pBind",e.ptm("inputIcon")),g(),h("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function SW(t,n){if(t&1&&(re(0),C(1,CW,1,3,"svg",8)(2,EW,2,4,"span",9),oe()),t&2){let e=m(2);g(),h("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),g(),h("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function IW(t,n){if(t&1&&ee(0,"span",15),t&2){let e=m(3);h("ngClass",e.icon)("pBind",e.ptm("dropdownIcon"))}}function DW(t,n){if(t&1&&(G(),ee(0,"svg",17)),t&2){let e=m(4);h("pBind",e.ptm("dropdownIcon"))}}function kW(t,n){}function MW(t,n){t&1&&C(0,kW,0,0,"ng-template")}function OW(t,n){if(t&1&&(re(0),C(1,DW,1,1,"svg",16)(2,MW,1,0,null,12),oe()),t&2){let e=m(3);g(),h("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),g(),h("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function RW(t,n){if(t&1){let e=se();I(0,"button",13),K("click",function(r){E(e),m();let o=pn(1),s=m();return S(s.onButtonClick(r,o))}),C(1,IW,1,2,"span",14)(2,OW,3,2,"ng-container",6),T()}if(t&2){let e=m(2);k(e.cx("dropdown")),h("disabled",e.$disabled())("pBind",e.ptm("dropdown")),J("aria-label",e.iconButtonAriaLabel)("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null),g(),h("ngIf",e.icon),g(),h("ngIf",!e.icon)}}function PW(t,n){if(t&1){let e=se();G(),I(0,"svg",21),K("click",function(r){E(e);let o=m(3);return S(o.onButtonClick(r))}),T()}if(t&2){let e=m(3);k(e.cx("inputIcon")),h("pBind",e.ptm("inputIcon"))}}function AW(t,n){t&1&&ne(0)}function NW(t,n){if(t&1&&(re(0),I(1,"span",18),C(2,PW,1,3,"svg",19)(3,AW,1,0,"ng-container",20),T(),oe()),t&2){let e=m(2);g(),k(e.cx("inputIconContainer")),h("pBind",e.ptm("inputIconContainer")),g(),h("ngIf",!e.inputIconTemplate&&!e._inputIconTemplate),g(),h("ngTemplateOutlet",e.inputIconTemplate||e._inputIconTemplate)("ngTemplateOutletContext",Te(6,mW,e.onButtonClick.bind(e)))}}function FW(t,n){if(t&1){let e=se();I(0,"input",5,0),K("focus",function(r){E(e);let o=m();return S(o.onInputFocus(r))})("keydown",function(r){E(e);let o=m();return S(o.onInputKeydown(r))})("click",function(){E(e);let r=m();return S(r.onInputClick())})("blur",function(r){E(e);let o=m();return S(o.onInputBlur(r))})("input",function(r){E(e);let o=m();return S(o.onUserInput(r))}),T(),C(2,SW,3,2,"ng-container",6)(3,RW,3,9,"button",7)(4,NW,4,8,"ng-container",6)}if(t&2){let e=m();k(e.cn(e.cx("pcInputText"),e.inputStyleClass)),h("pSize",e.size())("value",e.inputFieldValue)("ngStyle",e.inputStyle)("pAutoFocus",e.autofocus)("variant",e.$variant())("fluid",e.hasFluid)("invalid",e.invalid())("pt",e.ptm("pcInputText")),J("size",e.inputSize())("id",e.inputId)("name",e.name())("aria-required",e.required())("aria-expanded",e.overlayVisible??!1)("aria-controls",e.overlayVisible?e.panelId:null)("aria-labelledby",e.ariaLabelledBy)("aria-label",e.ariaLabel)("required",e.required()?"":void 0)("readonly",e.readonlyInput?"":void 0)("disabled",e.$disabled()?"":void 0)("placeholder",e.placeholder)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null),g(2),h("ngIf",e.showClear&&!e.$disabled()&&(e.inputfieldViewChild==null||e.inputfieldViewChild.nativeElement==null?null:e.inputfieldViewChild.nativeElement.value)),g(),h("ngIf",e.showIcon&&e.iconDisplay==="button"),g(),h("ngIf",e.iconDisplay==="input"&&e.showIcon)}}function LW(t,n){t&1&&ne(0)}function BW(t,n){t&1&&(G(),ee(0,"svg",30))}function VW(t,n){}function jW(t,n){t&1&&C(0,VW,0,0,"ng-template")}function zW(t,n){if(t&1&&(I(0,"span"),C(1,jW,1,0,null,12),T()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.previousIconTemplate||e._previousIconTemplate)}}function HW(t,n){if(t&1&&C(0,BW,1,0,"svg",29)(1,zW,2,1,"span",6),t&2){let e=m(4);h("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),g(),h("ngIf",e.previousIconTemplate||e._previousIconTemplate)}}function $W(t,n){if(t&1){let e=se();I(0,"button",31),K("click",function(r){E(e);let o=m(4);return S(o.switchToMonthView(r))})("keydown",function(r){E(e);let o=m(4);return S(o.onContainerButtonKeydown(r))}),ce(1),T()}if(t&2){let e=m().$implicit,i=m(3);k(i.cx("selectMonth")),h("pBind",i.ptm("selectMonth")),J("disabled",i.switchViewButtonDisabled()?"":void 0)("aria-label",i.getTranslation("chooseMonth"))("data-pc-group-section","navigator"),g(),$t(" ",i.getMonthName(e.month)," ")}}function UW(t,n){if(t&1){let e=se();I(0,"button",31),K("click",function(r){E(e);let o=m(4);return S(o.switchToYearView(r))})("keydown",function(r){E(e);let o=m(4);return S(o.onContainerButtonKeydown(r))}),ce(1),T()}if(t&2){let e=m().$implicit,i=m(3);k(i.cx("selectYear")),h("pBind",i.ptm("selectYear")),J("disabled",i.switchViewButtonDisabled()?"":void 0)("aria-label",i.getTranslation("chooseYear"))("data-pc-group-section","navigator"),g(),$t(" ",i.getYear(e)," ")}}function WW(t,n){if(t&1&&(re(0),ce(1),oe()),t&2){let e=m(5);g(),bl("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1])}}function GW(t,n){t&1&&ne(0)}function qW(t,n){if(t&1&&(I(0,"span",18),C(1,WW,2,2,"ng-container",6)(2,GW,1,0,"ng-container",20),T()),t&2){let e=m(4);k(e.cx("decade")),h("pBind",e.ptm("decade")),g(),h("ngIf",!e.decadeTemplate&&!e._decadeTemplate),g(),h("ngTemplateOutlet",e.decadeTemplate||e._decadeTemplate)("ngTemplateOutletContext",Te(6,cw,e.yearPickerValues))}}function QW(t,n){t&1&&(G(),ee(0,"svg",33))}function KW(t,n){}function YW(t,n){t&1&&C(0,KW,0,0,"ng-template")}function ZW(t,n){if(t&1&&(re(0),C(1,YW,1,0,null,12),oe()),t&2){let e=m(5);g(),h("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function JW(t,n){if(t&1&&C(0,QW,1,0,"svg",32)(1,ZW,2,1,"ng-container",6),t&2){let e=m(4);h("ngIf",!e.nextIconTemplate&&!e._nextIconTemplate),g(),h("ngIf",e.nextIconTemplate||e._nextIconTemplate)}}function XW(t,n){if(t&1&&(I(0,"th",18)(1,"span",18),ce(2),T()()),t&2){let e=m(5);k(e.cx("weekHeader")),h("pBind",e.ptm("weekHeader")),g(),h("pBind",e.ptm("weekHeaderLabel")),g(),Xe(e.getTranslation("weekHeader"))}}function eG(t,n){if(t&1&&(I(0,"th",37)(1,"span",18),ce(2),T()()),t&2){let e=n.$implicit,i=m(5);k(i.cx("weekDayCell")),h("pBind",i.ptm("weekDayCell")),g(),k(i.cx("weekDay")),h("pBind",i.ptm("weekDay")),g(),Xe(e)}}function tG(t,n){if(t&1&&(I(0,"td",18)(1,"span",18),ce(2),T()()),t&2){let e=m().index,i=m(2).$implicit,r=m(3);k(r.cx("weekNumber")),h("pBind",r.ptm("weekNumber")),g(),k(r.cx("weekLabelContainer")),h("pBind",r.ptm("weekLabelContainer")),g(),$t(" ",i.weekNumbers[e]," ")}}function nG(t,n){if(t&1&&(re(0),ce(1),oe()),t&2){let e=m(2).$implicit;g(),Xe(e.day)}}function iG(t,n){t&1&&ne(0)}function rG(t,n){if(t&1&&(re(0),C(1,iG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,i=m(6);g(),h("ngTemplateOutlet",i.dateTemplate||i._dateTemplate)("ngTemplateOutletContext",Te(2,cw,e))}}function oG(t,n){t&1&&ne(0)}function sG(t,n){if(t&1&&(re(0),C(1,oG,1,0,"ng-container",20),oe()),t&2){let e=m(2).$implicit,i=m(6);g(),h("ngTemplateOutlet",i.disabledDateTemplate||i._disabledDateTemplate)("ngTemplateOutletContext",Te(2,cw,e))}}function aG(t,n){if(t&1&&(I(0,"div",40),ce(1),T()),t&2){let e=m(2).$implicit;g(),$t(" ",e.day," ")}}function lG(t,n){if(t&1){let e=se();re(0),I(1,"span",38),K("click",function(r){E(e);let o=m().$implicit,s=m(6);return S(s.onDateSelect(r,o))})("keydown",function(r){E(e);let o=m().$implicit,s=m(3).index,a=m(3);return S(a.onDateCellKeydown(r,o,s))}),C(2,nG,2,1,"ng-container",6)(3,rG,2,4,"ng-container",6)(4,sG,2,4,"ng-container",6),T(),C(5,aG,2,1,"div",39),oe()}if(t&2){let e=m().$implicit,i=m(6);g(),h("ngClass",i.dayClass(e))("pBind",i.ptm("day")),J("data-date",i.formatDateKey(i.formatDateMetaToDate(e))),g(),h("ngIf",!i.dateTemplate&&!i._dateTemplate&&(e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate)),g(),h("ngIf",e.selectable||!i.disabledDateTemplate&&!i._disabledDateTemplate),g(),h("ngIf",!e.selectable),g(),h("ngIf",i.isSelected(e))}}function cG(t,n){if(t&1&&(I(0,"td",18),C(1,lG,6,7,"ng-container",6),T()),t&2){let e=n.$implicit,i=m(6);k(i.cx("dayCell",Te(5,bW,e))),h("pBind",i.ptm("dayCell")),J("aria-label",e.day),g(),h("ngIf",e.otherMonth?i.showOtherMonths:!0)}}function dG(t,n){if(t&1&&(I(0,"tr",18),C(1,tG,3,7,"td",23)(2,cG,2,7,"td",24),T()),t&2){let e=n.$implicit,i=m(5);h("pBind",i.ptm("tableBodyRow")),g(),h("ngIf",i.showWeek),g(),h("ngForOf",e)}}function uG(t,n){if(t&1&&(I(0,"table",34)(1,"thead",18)(2,"tr",18),C(3,XW,3,5,"th",23)(4,eG,3,7,"th",35),T()(),I(5,"tbody",18),C(6,dG,3,3,"tr",36),T()()),t&2){let e=m().$implicit,i=m(3);k(i.cx("dayView")),h("pBind",i.ptm("table")),g(),h("pBind",i.ptm("tableHeader")),g(),h("pBind",i.ptm("tableHeaderRow")),g(),h("ngIf",i.showWeek),g(),h("ngForOf",i.weekDays),g(),h("pBind",i.ptm("tableBody")),g(),h("ngForOf",e.dates)}}function pG(t,n){if(t&1){let e=se();I(0,"div",18)(1,"div",18)(2,"p-button",25),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("onClick",function(r){E(e);let o=m(3);return S(o.onPrevButtonClick(r))}),C(3,HW,2,2,"ng-template",null,2,at),T(),I(5,"div",18),C(6,$W,2,7,"button",26)(7,UW,2,7,"button",26)(8,qW,3,8,"span",23),T(),I(9,"p-button",27),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("onClick",function(r){E(e);let o=m(3);return S(o.onNextButtonClick(r))}),C(10,JW,2,2,"ng-template",null,2,at),T()(),C(12,uG,7,9,"table",28),T()}if(t&2){let e=n.index,i=m(3);k(i.cx("calendar")),h("pBind",i.ptm("calendar")),g(),k(i.cx("header")),h("pBind",i.ptm("header")),g(),h("styleClass",i.cx("pcPrevButton"))("ngStyle",Te(23,yR,e===0?"visible":"hidden"))("ariaLabel",i.prevIconAriaLabel)("pt",i.ptm("pcPrevButton")),J("data-pc-group-section","navigator"),g(3),k(i.cx("title")),h("pBind",i.ptm("title")),g(),h("ngIf",i.currentView==="date"),g(),h("ngIf",i.currentView!=="year"),g(),h("ngIf",i.currentView==="year"),g(),h("styleClass",i.cx("pcNextButton"))("ngStyle",Te(25,yR,e===i.months.length-1?"visible":"hidden"))("ariaLabel",i.nextIconAriaLabel)("pt",i.ptm("pcNextButton")),J("data-pc-group-section","navigator"),g(3),h("ngIf",i.currentView==="date")}}function fG(t,n){if(t&1&&(I(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),$t(" ",e," ")}}function hG(t,n){if(t&1){let e=se();I(0,"span",42),K("click",function(r){let o=E(e).index,s=m(4);return S(s.onMonthSelect(r,o))})("keydown",function(r){let o=E(e).index,s=m(4);return S(s.onMonthCellKeydown(r,o))}),ce(1),C(2,fG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,i=n.index,r=m(4);k(r.cx("month",Dt(5,vW,e,i))),h("pBind",r.ptm("month")),g(),$t(" ",e," "),g(),h("ngIf",r.isMonthSelected(i))}}function mG(t,n){if(t&1&&(I(0,"div",18),C(1,hG,3,8,"span",41),T()),t&2){let e=m(3);k(e.cx("monthView")),h("pBind",e.ptm("monthView")),g(),h("ngForOf",e.monthPickerValues())}}function gG(t,n){if(t&1&&(I(0,"div",40),ce(1),T()),t&2){let e=m().$implicit;g(),$t(" ",e," ")}}function yG(t,n){if(t&1){let e=se();I(0,"span",42),K("click",function(r){let o=E(e).$implicit,s=m(4);return S(s.onYearSelect(r,o))})("keydown",function(r){let o=E(e).$implicit,s=m(4);return S(s.onYearCellKeydown(r,o))}),ce(1),C(2,gG,2,1,"div",39),T()}if(t&2){let e=n.$implicit,i=m(4);k(i.cx("year",Te(5,_W,e))),h("pBind",i.ptm("year")),g(),$t(" ",e," "),g(),h("ngIf",i.isYearSelected(e))}}function bG(t,n){if(t&1&&(I(0,"div",18),C(1,yG,3,7,"span",41),T()),t&2){let e=m(3);k(e.cx("yearView")),h("pBind",e.ptm("yearView")),g(),h("ngForOf",e.yearPickerValues())}}function vG(t,n){if(t&1&&(re(0),I(1,"div",18),C(2,pG,13,27,"div",24),T(),C(3,mG,2,4,"div",23)(4,bG,2,4,"div",23),oe()),t&2){let e=m(2);g(),k(e.cx("calendarContainer")),h("pBind",e.ptm("calendarContainer")),g(),h("ngForOf",e.months),g(),h("ngIf",e.currentView==="month"),g(),h("ngIf",e.currentView==="year")}}function _G(t,n){if(t&1&&(G(),ee(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function wG(t,n){}function CG(t,n){t&1&&C(0,wG,0,0,"ng-template")}function xG(t,n){if(t&1&&C(0,_G,1,1,"svg",45)(1,CG,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function TG(t,n){t&1&&(re(0),ce(1,"0"),oe())}function EG(t,n){if(t&1&&(G(),ee(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function SG(t,n){}function IG(t,n){t&1&&C(0,SG,0,0,"ng-template")}function DG(t,n){if(t&1&&C(0,EG,1,1,"svg",47)(1,IG,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function kG(t,n){if(t&1&&(G(),ee(0,"svg",46)),t&2){let e=m(4);h("pBind",e.ptm("pcIncrementButton").icon)}}function MG(t,n){}function OG(t,n){t&1&&C(0,MG,0,0,"ng-template")}function RG(t,n){if(t&1&&C(0,kG,1,1,"svg",45)(1,OG,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function PG(t,n){t&1&&(re(0),ce(1,"0"),oe())}function AG(t,n){if(t&1&&(G(),ee(0,"svg",48)),t&2){let e=m(4);h("pBind",e.ptm("pcDecrementButton").icon)}}function NG(t,n){}function FG(t,n){t&1&&C(0,NG,0,0,"ng-template")}function LG(t,n){if(t&1&&C(0,AG,1,1,"svg",47)(1,FG,1,0,null,12),t&2){let e=m(3);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function BG(t,n){if(t&1&&(I(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Xe(e.timeSeparator)}}function VG(t,n){if(t&1&&(G(),ee(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function jG(t,n){}function zG(t,n){t&1&&C(0,jG,0,0,"ng-template")}function HG(t,n){if(t&1&&C(0,VG,1,1,"svg",45)(1,zG,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function $G(t,n){t&1&&(re(0),ce(1,"0"),oe())}function UG(t,n){if(t&1&&(G(),ee(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function WG(t,n){}function GG(t,n){t&1&&C(0,WG,0,0,"ng-template")}function qG(t,n){if(t&1&&C(0,UG,1,1,"svg",47)(1,GG,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function QG(t,n){if(t&1){let e=se();I(0,"div",18)(1,"p-button",43),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){E(e);let o=m(3);return S(o.incrementSecond(r))})("keydown.space",function(r){E(e);let o=m(3);return S(o.incrementSecond(r))})("mousedown",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){E(e);let r=m(3);return S(r.onTimePickerElementMouseLeave())}),C(2,HG,2,2,"ng-template",null,2,at),T(),I(4,"span",18),C(5,$G,2,0,"ng-container",6),ce(6),T(),I(7,"p-button",43),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){E(e);let o=m(3);return S(o.decrementSecond(r))})("keydown.space",function(r){E(e);let o=m(3);return S(o.decrementSecond(r))})("mousedown",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){E(e);let o=m(3);return S(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){E(e);let r=m(3);return S(r.onTimePickerElementMouseLeave())}),C(8,qG,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("secondPicker")),h("pBind",e.ptm("secondPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextSecond"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("second")),g(),h("ngIf",e.currentSecond<10),g(),Xe(e.currentSecond),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevSecond"))("data-pc-group-section","timepickerbutton")}}function KG(t,n){if(t&1&&(I(0,"div",18)(1,"span",18),ce(2),T()()),t&2){let e=m(3);k(e.cx("separator")),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Xe(e.timeSeparator)}}function YG(t,n){if(t&1&&(G(),ee(0,"svg",46)),t&2){let e=m(5);h("pBind",e.ptm("pcIncrementButton").icon)}}function ZG(t,n){}function JG(t,n){t&1&&C(0,ZG,0,0,"ng-template")}function XG(t,n){if(t&1&&C(0,YG,1,1,"svg",45)(1,JG,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.incrementIconTemplate&&!e._incrementIconTemplate),g(),h("ngTemplateOutlet",e.incrementIconTemplate||e._incrementIconTemplate)}}function eq(t,n){if(t&1&&(G(),ee(0,"svg",48)),t&2){let e=m(5);h("pBind",e.ptm("pcDecrementButton").icon)}}function tq(t,n){}function nq(t,n){t&1&&C(0,tq,0,0,"ng-template")}function iq(t,n){if(t&1&&C(0,eq,1,1,"svg",47)(1,nq,1,0,null,12),t&2){let e=m(4);h("ngIf",!e.decrementIconTemplate&&!e._decrementIconTemplate),g(),h("ngTemplateOutlet",e.decrementIconTemplate||e._decrementIconTemplate)}}function rq(t,n){if(t&1){let e=se();I(0,"div",18)(1,"p-button",49),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("onClick",function(r){E(e);let o=m(3);return S(o.toggleAMPM(r))})("keydown.enter",function(r){E(e);let o=m(3);return S(o.toggleAMPM(r))}),C(2,XG,2,2,"ng-template",null,2,at),T(),I(4,"span",18),ce(5),T(),I(6,"p-button",50),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("click",function(r){E(e);let o=m(3);return S(o.toggleAMPM(r))})("keydown.enter",function(r){E(e);let o=m(3);return S(o.toggleAMPM(r))}),C(7,iq,2,2,"ng-template",null,2,at),T()()}if(t&2){let e=m(3);k(e.cx("ampmPicker")),h("pBind",e.ptm("ampmPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("am"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("ampm")),g(),Xe(e.pm?"PM":"AM"),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("pm"))("data-pc-group-section","timepickerbutton")}}function oq(t,n){if(t&1){let e=se();I(0,"div",18)(1,"div",18)(2,"p-button",43),K("keydown",function(r){E(e);let o=m(2);return S(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){E(e);let o=m(2);return S(o.incrementHour(r))})("keydown.space",function(r){E(e);let o=m(2);return S(o.incrementHour(r))})("mousedown",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){E(e);let r=m(2);return S(r.onTimePickerElementMouseLeave())}),C(3,xG,2,2,"ng-template",null,2,at),T(),I(5,"span",18),C(6,TG,2,0,"ng-container",6),ce(7),T(),I(8,"p-button",43),K("keydown",function(r){E(e);let o=m(2);return S(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){E(e);let o=m(2);return S(o.decrementHour(r))})("keydown.space",function(r){E(e);let o=m(2);return S(o.decrementHour(r))})("mousedown",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){E(e);let r=m(2);return S(r.onTimePickerElementMouseLeave())}),C(9,DG,2,2,"ng-template",null,2,at),T()(),I(11,"div",44)(12,"span",18),ce(13),T()(),I(14,"div",18)(15,"p-button",43),K("keydown",function(r){E(e);let o=m(2);return S(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){E(e);let o=m(2);return S(o.incrementMinute(r))})("keydown.space",function(r){E(e);let o=m(2);return S(o.incrementMinute(r))})("mousedown",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){E(e);let r=m(2);return S(r.onTimePickerElementMouseLeave())}),C(16,RG,2,2,"ng-template",null,2,at),T(),I(18,"span",18),C(19,PG,2,0,"ng-container",6),ce(20),T(),I(21,"p-button",43),K("keydown",function(r){E(e);let o=m(2);return S(o.onContainerButtonKeydown(r))})("keydown.enter",function(r){E(e);let o=m(2);return S(o.decrementMinute(r))})("keydown.space",function(r){E(e);let o=m(2);return S(o.decrementMinute(r))})("mousedown",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.enter",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("keyup.space",function(r){E(e);let o=m(2);return S(o.onTimePickerElementMouseUp(r))})("mouseleave",function(){E(e);let r=m(2);return S(r.onTimePickerElementMouseLeave())}),C(22,LG,2,2,"ng-template",null,2,at),T()(),C(24,BG,3,5,"div",23)(25,QG,10,14,"div",23)(26,KG,3,5,"div",23)(27,rq,9,13,"div",23),T()}if(t&2){let e=m(2);k(e.cx("timePicker")),h("pBind",e.ptm("timePicker")),g(),k(e.cx("hourPicker")),h("pBind",e.ptm("hourPicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("hour")),g(),h("ngIf",e.currentHour<10),g(),Xe(e.currentHour),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevHour"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("separatorContainer")),g(),h("pBind",e.ptm("separator")),g(),Xe(e.timeSeparator),g(),k(e.cx("minutePicker")),h("pBind",e.ptm("minutePicker")),g(),h("styleClass",e.cx("pcIncrementButton"))("pt",e.ptm("pcIncrementButton")),J("aria-label",e.getTranslation("nextMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("pBind",e.ptm("minute")),g(),h("ngIf",e.currentMinute<10),g(),Xe(e.currentMinute),g(),h("styleClass",e.cx("pcDecrementButton"))("pt",e.ptm("pcDecrementButton")),J("aria-label",e.getTranslation("prevMinute"))("data-pc-group-section","timepickerbutton"),g(3),h("ngIf",e.showSeconds),g(),h("ngIf",e.showSeconds),g(),h("ngIf",e.hourFormat=="12"),g(),h("ngIf",e.hourFormat=="12")}}function sq(t,n){t&1&&ne(0)}function aq(t,n){if(t&1&&C(0,sq,1,0,"ng-container",20),t&2){let e=m(3);h("ngTemplateOutlet",e.buttonBarTemplate||e._buttonBarTemplate)("ngTemplateOutletContext",Dt(2,wW,e.onTodayButtonClick.bind(e),e.onClearButtonClick.bind(e)))}}function lq(t,n){if(t&1){let e=se();I(0,"p-button",51),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("onClick",function(r){E(e);let o=m(3);return S(o.onTodayButtonClick(r))}),T(),I(1,"p-button",51),K("keydown",function(r){E(e);let o=m(3);return S(o.onContainerButtonKeydown(r))})("onClick",function(r){E(e);let o=m(3);return S(o.onClearButtonClick(r))}),T()}if(t&2){let e=m(3);h("styleClass",e.cx("pcTodayButton"))("label",e.getTranslation("today"))("ngClass",e.todayButtonStyleClass)("pt",e.ptm("pcTodayButton")),J("data-pc-group-section","button"),g(),h("styleClass",e.cx("pcClearButton"))("label",e.getTranslation("clear"))("ngClass",e.clearButtonStyleClass)("pt",e.ptm("pcClearButton")),J("data-pc-group-section","button")}}function cq(t,n){if(t&1&&(I(0,"div",18),ot(1,aq,1,5,"ng-container")(2,lq,2,10),T()),t&2){let e=m(2);k(e.cx("buttonbar")),h("pBind",e.ptm("buttonbar")),g(),st(e.buttonBarTemplate||e._buttonBarTemplate?1:2)}}function dq(t,n){t&1&&ne(0)}function uq(t,n){if(t&1){let e=se();I(0,"div",22,1),K("@overlayAnimation.start",function(r){E(e);let o=m();return S(o.onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){E(e);let o=m();return S(o.onOverlayAnimationDone(r))})("click",function(r){E(e);let o=m();return S(o.onOverlayClick(r))}),Ot(2),C(3,LW,1,0,"ng-container",12)(4,vG,5,6,"ng-container",6)(5,oq,28,38,"div",23)(6,cq,3,4,"div",23),Ot(7,1),C(8,dq,1,0,"ng-container",12),T()}if(t&2){let e=m();k(e.cn(e.cx("panel"),e.panelStyleClass)),h("ngStyle",e.panelStyle)("@overlayAnimation",Te(18,yW,Dt(15,gW,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.inline===!0)("pBind",e.ptm("panel")),J("id",e.panelId)("aria-label",e.getTranslation("chooseDate"))("role",e.inline?null:"dialog")("aria-modal",e.inline?null:"true"),g(3),h("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),g(),h("ngIf",!e.timeOnly),g(),h("ngIf",(e.showTime||e.timeOnly)&&e.currentView==="date"),g(),h("ngIf",e.showButtonBar),g(2),h("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var pq=`
+ ${gR}
/* For PrimeNG */
.p-datepicker.ng-invalid.ng-dirty .p-inputtext {
border-color: dt('inputtext.invalid.border.color');
}
-`,Yq={root:()=>({position:"relative"})},Zq={root:({instance:t})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":t.invalid(),"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.$filled(),"p-variant-filled":t.$variant()==="filled","p-inputwrapper-focus":t.focus||t.overlayVisible,"p-focus":t.focus||t.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.$disabled(),"p-datepicker-timeonly":t.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:n})=>{let e="";if(t.isRangeSelection()&&t.isSelected(n)&&n.selectable){let r=t.value[0],i=t.value[1],o=r&&n.year===r.getFullYear()&&n.month===r.getMonth()&&n.day===r.getDate(),s=i&&n.year===i.getFullYear()&&n.month===i.getMonth()&&n.day===i.getDate();e=o||s?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(n)&&n.selectable,"p-disabled":t.$disabled()||!n.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,index:n})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(n),"p-disabled":t.isMonthDisabled(n)}],yearView:"p-datepicker-year-view",year:({instance:t,year:n})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(n),"p-disabled":t.isYearDisabled(n)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},eP=(()=>{class t extends Oe{name="datepicker";style=Kq;classes=Zq;inlineStyles=Yq;static \u0275fac=(()=>{let e;return function(i){return(e||(e=F(t)))(i||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var Jq={provide:Nn,useExisting:Ht(()=>nP),multi:!0},tP=new H("DATEPICKER_INSTANCE"),nP=(()=>{class t extends vc{zone;overlayService;bindDirectiveInstance=x(te,{self:!0});$pcDatePicker=x(tP,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(e){this._dateFormat=e,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(e){this._hourFormat=e,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let r=e||new Date;this.currentMonth=r.getMonth(),this.currentYear=r.getFullYear(),this.initTime(r),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=ae(void 0);onFocus=new z;onBlur=new z;onClose=new z;onSelect=new z;onClear=new z;onInput=new z;onTodayClick=new z;onClearClick=new z;onMonthChange=new z;onYearChange=new z;onClickOutside=new z;onShow=new z;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=x(eP);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,r){super(),this.zone=e,this.overlayService=r,this.window=this.document.defaultView}onInit(){this.attributeSelector=gt("pn_id_"),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Mn(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"buttonbar":this._buttonBarTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._dateTemplate=e.template;break}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,r){this.yearOptions=[];for(let i=e;i<=r;i++)this.yearOptions.push(i)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),r=this.getTranslation(xn.DAY_NAMES_MIN);for(let i=0;i<7;i++)this.weekDays.push(r[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let r=0;r<=11;r++)e.push(this.config.getTranslation("monthNamesShort")[r]);return e}yearPickerValues(){let e=[],r=this.currentYear-this.currentYear%10;for(let i=0;i<10;i++)e.push(r+i);return e}createMonths(e,r){this.months=this.months=[];for(let i=0;i11&&(o=o%12,s=r+Math.floor((e+i)/12)),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let r=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();r.setDate(r.getDate()+6+o-r.getDay())}else r.setDate(r.getDate()+4-(r.getDay()||7));let i=r.getTime();return r.setMonth(0),r.setDate(1),Math.floor(Math.round((i-r.getTime())/864e5)/7)+1}createMonth(e,r){let i=[],o=this.getFirstDayOfMonthIndex(e,r),s=this.getDaysCountInMonth(e,r),a=this.getDaysCountInPrevMonth(e,r),l=1,c=new Date,d=[],u=Math.ceil((s+o)/7);for(let p=0;ps){let b=this.getNextMonthAndYear(e,r);f.push({day:l-s,month:b.month,year:b.year,otherMonth:!0,today:this.isToday(c,l-s,b.month,b.year),selectable:this.isSelectable(l-s,b.month,b.year,!0)})}else f.push({day:l,month:e,year:r,today:this.isToday(c,l,e,r),selectable:this.isSelectable(l,e,r,!1)});l++}this.showWeek&&d.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),i.push(f)}return{month:e,year:r,dates:i,weekNumbers:d}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=this.showSeconds?e.getSeconds():0,this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.currentYeare[e.length-1]){let r=e[e.length-1]-e[0];this.populateYearOptions(e[0]+r,e[e.length-1]+r)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,r){if(this.$disabled()||!r.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(r)?(this.value=this.value.filter((i,o)=>!this.isDateEquals(i,r)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(r)&&this.selectDate(r),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,r){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:r,day:1,selectable:!0}):(this.currentMonth=r,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,r){this.view==="year"?this.onDateSelect(e,{year:r,month:0,day:1,selectable:!0}):(this.currentYear=r,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let r=0;r11,e>=12?this.currentHour=e==12?12:e-12:this.currentHour=e==0?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let r=this.formatDateMetaToDate(e);if(this.showTime&&(this.hourFormat=="12"?this.currentHour===12?r.setHours(this.pm?12:0):r.setHours(this.pm?this.currentHour+12:this.currentHour):r.setHours(this.currentHour),r.setMinutes(this.currentMinute),r.setSeconds(this.currentSecond)),this.minDate&&this.minDate>r&&(r=this.minDate,this.setCurrentHourPM(r.getHours()),this.currentMinute=r.getMinutes(),this.currentSecond=r.getSeconds()),this.maxDate&&this.maxDate=i.getTime()?o=r:(i=r,o=null),this.updateModel([i,o])}else this.updateModel([r,null]);this.onSelect.emit(r)}updateModel(e){if(this.value=e,this.dataType=="date")this.writeModelValue(this.value),this.onModelChange(this.value);else if(this.dataType=="string")if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let r=null;Array.isArray(this.value)&&(r=this.value.map(i=>this.formatDateTime(i))),this.writeModelValue(r),this.onModelChange(r)}}getFirstDayOfMonthIndex(e,r){let i=new Date;i.setDate(1),i.setMonth(e),i.setFullYear(r);let o=i.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,r){return 32-this.daylightSavingAdjust(new Date(r,e,32)).getDate()}getDaysCountInPrevMonth(e,r){let i=this.getPreviousMonthAndYear(e,r);return this.getDaysCountInMonth(i.month,i.year)}getPreviousMonthAndYear(e,r){let i,o;return e===0?(i=11,o=r-1):(i=e-1,o=r),{month:i,year:o}}getNextMonthAndYear(e,r){let i,o;return e===11?(i=0,o=r+1):(i=e+1,o=r),{month:i,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(this.value){if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let r=!1;for(let i of this.value)if(r=this.isDateEquals(i,e),r)break;return r}else if(this.isRangeSelection())return this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e)}else return!1}isComparable(){return this.value!=null&&typeof this.value!="string"}isMonthSelected(e){if(!this.isComparable())return!1;if(this.isMultipleSelection())return this.value.some(r=>r.getMonth()===e&&r.getFullYear()===this.currentYear);if(this.isRangeSelection())if(this.value[1]){let r=new Date(this.currentYear,e,1),i=new Date(this.value[0].getFullYear(),this.value[0].getMonth(),1),o=new Date(this.value[1].getFullYear(),this.value[1].getMonth(),1);return r>=i&&r<=o}else return this.value[0]?.getFullYear()===this.currentYear&&this.value[0]?.getMonth()===e;else return this.value.getMonth()===e&&this.value.getFullYear()===this.currentYear}isMonthDisabled(e,r){let i=r??this.currentYear;for(let o=1;othis.isMonthDisabled(i,e))}isYearSelected(e){if(this.isComparable()){let r=this.isRangeSelection()?this.value[0]:this.value;return this.isMultipleSelection()?!1:r.getFullYear()===e}return!1}isDateEquals(e,r){return e&&nu(e)?e.getDate()===r.day&&e.getMonth()===r.month&&e.getFullYear()===r.year:!1}isDateBetween(e,r,i){let o=!1;if(nu(e)&&nu(r)){let s=this.formatDateMetaToDate(i);return e.getTime()<=s.getTime()&&r.getTime()>=s.getTime()}return o}isSingleSelection(){return this.selectionMode==="single"}isRangeSelection(){return this.selectionMode==="range"}isMultipleSelection(){return this.selectionMode==="multiple"}isToday(e,r,i,o){return e.getDate()===r&&e.getMonth()===i&&e.getFullYear()===o}isSelectable(e,r,i,o){let s=!0,a=!0,l=!0,c=!0;return o&&!this.selectOtherMonths?!1:(this.minDate&&(this.minDate.getFullYear()>i||this.minDate.getFullYear()===i&&this.currentView!="year"&&(this.minDate.getMonth()>r||this.minDate.getMonth()===r&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.$disabled()}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:if(this.inline||this.trapFocus(e),this.inline){let r=wt(this.el?.nativeElement,".p-datepicker-header"),i=e.target;if(this.timeOnly)return;i==r?.children[r?.children?.length-1]&&this.initFocusableCell()}break;case 27:this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break;default:break}}onInputKeydown(e){this.isKeydown=!0,e.keyCode===40&&this.contentViewChild?this.trapFocus(e):e.keyCode===27?this.overlayVisible&&(this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault()):e.keyCode===13?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):e.keyCode===9&&this.contentViewChild&&(la(this.contentViewChild.nativeElement).forEach(r=>r.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,r,i){let o=e.currentTarget,s=o.parentElement,a=this.formatDateMetaToDate(r);switch(e.which){case 40:{o.tabIndex="-1";let y=eu(s),b=s.parentElement.nextElementSibling;if(b){let v=b.children[y].children[0];wn(v,"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(b.children[y].children[0].tabIndex="0",b.children[y].children[0].focus())}else this.navigationState={backward:!1},this.navForward(e);e.preventDefault();break}case 38:{o.tabIndex="-1";let y=eu(s),b=s.parentElement.previousElementSibling;if(b){let v=b.children[y].children[0];wn(v,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(v.tabIndex="0",v.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let y=s.previousElementSibling;if(y){let b=y.children[0];wn(b,"p-disabled")||wn(b.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,i):(b.tabIndex="0",b.focus())}else this.navigateToMonth(!0,i);e.preventDefault();break}case 39:{o.tabIndex="-1";let y=s.nextElementSibling;if(y){let b=y.children[0];wn(b,"p-disabled")?this.navigateToMonth(!1,i):(b.tabIndex="0",b.focus())}else this.navigateToMonth(!1,i);e.preventDefault();break}case 13:case 32:{this.onDateSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}case 33:{o.tabIndex="-1";let y=new Date(a.getFullYear(),a.getMonth()-1,a.getDate()),b=this.formatDateKey(y);this.navigateToMonth(!0,i,`span[data-date='${b}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 34:{o.tabIndex="-1";let y=new Date(a.getFullYear(),a.getMonth()+1,a.getDate()),b=this.formatDateKey(y);this.navigateToMonth(!1,i,`span[data-date='${b}']:not(.p-disabled):not(.p-ink)`),e.preventDefault();break}case 36:o.tabIndex="-1";let l=new Date(a.getFullYear(),a.getMonth(),1),c=this.formatDateKey(l),d=wt(o.offsetParent,`span[data-date='${c}']:not(.p-disabled):not(.p-ink)`);d&&(d.tabIndex="0",d.focus()),e.preventDefault();break;case 35:o.tabIndex="-1";let u=new Date(a.getFullYear(),a.getMonth()+1,0),p=this.formatDateKey(u),f=wt(o.offsetParent,`span[data-date='${p}']:not(.p-disabled):not(.p-ink)`);u&&(f.tabIndex="0",f.focus()),e.preventDefault();break;default:break}}onMonthCellKeydown(e,r){let i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,s=eu(i);let a=o[e.which===40?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onMonthSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.inline||this.trapFocus(e);break}default:break}}onYearCellKeydown(e,r){let i=e.currentTarget;switch(e.which){case 38:case 40:{i.tabIndex="-1";var o=i.parentElement.children,s=eu(i);let a=o[e.which===40?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{i.tabIndex="-1";let a=i.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{i.tabIndex="-1";let a=i.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:{this.onYearSelect(e,r),e.preventDefault();break}case 27:{this.inputfieldViewChild?.nativeElement.focus(),this.overlayVisible=!1,e.preventDefault();break}case 9:{this.trapFocus(e);break}default:break}}navigateToMonth(e,r,i){if(e)if(this.numberOfMonths===1||r===0)this.navigationState={backward:!0},this._focusKey=i,this.navBackward(event);else{let o=this.contentViewChild.nativeElement.children[r-1];if(i){let s=wt(o,i);s.tabIndex="0",s.focus()}else{let s=Vi(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),a=s[s.length-1];a.tabIndex="0",a.focus()}}else if(this.numberOfMonths===1||r===this.numberOfMonths-1)this.navigationState={backward:!1},this._focusKey=i,this.navForward(event);else{let o=this.contentViewChild.nativeElement.children[r+1];if(i){let s=wt(o,i);s.tabIndex="0",s.focus()}else{let s=wt(o,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?wt(this.contentViewChild.nativeElement,".p-datepicker-prev-button").focus():wt(this.contentViewChild.nativeElement,".p-datepicker-next-button").focus();else{if(this.navigationState.backward){let r;this.currentView==="month"?r=Vi(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?r=Vi(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):r=Vi(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),r&&r.length>0&&(e=r[r.length-1])}else this.currentView==="month"?e=wt(this.contentViewChild.nativeElement,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"):this.currentView==="year"?e=wt(this.contentViewChild.nativeElement,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"):e=wt(this.contentViewChild.nativeElement,this._focusKey||".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null,this._focusKey=null}else this.initFocusableCell()}initFocusableCell(){let e=this.contentViewChild?.nativeElement,r;if(this.currentView==="month"){let i=Vi(e,".p-datepicker-month-view .p-datepicker-month:not(.p-disabled)"),o=wt(e,".p-datepicker-month-view .p-datepicker-month.p-highlight");i.forEach(s=>s.tabIndex=-1),r=o||i[0],i.length===0&&Vi(e,'.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(this.currentView==="year"){let i=Vi(e,".p-datepicker-year-view .p-datepicker-year:not(.p-disabled)"),o=wt(e,".p-datepicker-year-view .p-datepicker-year.p-highlight");i.forEach(s=>s.tabIndex=-1),r=o||i[0],i.length===0&&Vi(e,'.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(r=wt(e,"span.p-highlight"),!r){let i=wt(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i?r=i:r=wt(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}r&&(r.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{this.$disabled()||r.focus()},1),this.preventFocus=!1)}trapFocus(e){let r=la(this.contentViewChild.nativeElement);if(r&&r.length>0)if(!r[0].ownerDocument.activeElement)r[0].focus();else{let i=r.indexOf(r[0].ownerDocument.activeElement);if(e.shiftKey)if(i==-1||i===0)if(this.focusTrap)r[r.length-1].focus();else{if(i===-1)return this.hideOverlay();if(i===0)return}else r[i-1].focus();else if(i==-1)if(this.timeOnly)r[0].focus();else{let o=0;for(let s=0;s=12),!0){case(y&&a&&this.minDate.getHours()===12&&this.minDate.getHours()>c):s[0]=11;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&!a&&this.minDate.getHours()-1===c&&this.minDate.getHours()>c):s[0]=11,this.pm=!0;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&a&&this.minDate.getHours()>c&&c!==12):this.setCurrentHourPM(this.minDate.getHours()),s[0]=this.currentHour||0;case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(y&&this.minDate.getHours()>c):s[0]=this.minDate.getHours();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()>r):s[1]=this.minDate.getMinutes();case(y&&this.minDate.getHours()===c&&this.minDate.getMinutes()===r&&this.minDate.getSeconds()>i):s[2]=this.minDate.getSeconds();break;case(b&&this.maxDate.getHours()=24?i-24:i:this.hourFormat=="12"&&(r<12&&i>11&&(o=!this.pm),i=i>=13?i-12:i),this.toggleAMPMIfNotMinDate(o),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(i,this.currentMinute,this.currentSecond,o),e.preventDefault()}toggleAMPMIfNotMinDate(e){let r=this.value,i=r?r.toDateString():null;this.minDate&&i&&this.minDate.toDateString()===i&&this.minDate.getHours()>=12?this.pm=!0:this.pm=e}onTimePickerElementMouseDown(e,r,i){this.$disabled()||(this.repeat(e,null,r,i),e.preventDefault())}onTimePickerElementMouseUp(e){this.$disabled()||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.$disabled()&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,r,i,o){let s=r||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,i,o),this.cd.markForCheck()},s),i){case 0:o===1?this.incrementHour(e):this.decrementHour(e);break;case 1:o===1?this.incrementMinute(e):this.decrementMinute(e);break;case 2:o===1?this.incrementSecond(e):this.decrementSecond(e);break}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let r=(this.currentHour??0)-this.stepHour,i=this.pm;this.hourFormat=="24"?r=r<0?24+r:r:this.hourFormat=="12"&&(this.currentHour===12&&(i=!this.pm),r=r<=0?12+r:r),this.toggleAMPMIfNotMinDate(i),[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(r,this.currentMinute,this.currentSecond,i),e.preventDefault()}incrementMinute(e){let r=(this.currentMinute??0)+this.stepMinute;r=r>59?r-60:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,r,this.currentSecond,this.pm),e.preventDefault()}decrementMinute(e){let r=(this.currentMinute??0)-this.stepMinute;r=r<0?60+r:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,r,this.currentSecond||0,this.pm),e.preventDefault()}incrementSecond(e){let r=this.currentSecond+this.stepSecond;r=r>59?r-60:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,r,this.pm),e.preventDefault()}decrementSecond(e){let r=this.currentSecond-this.stepSecond;r=r<0?60+r:r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,r,this.pm),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,this.hourFormat=="12"?this.currentHour===12?e.setHours(this.pm?12:0):e.setHours(this.pm?this.currentHour+12:this.currentHour):e.setHours(this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(this.value[1]?e=[this.value[0],e]:e=[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){let r=!this.pm;this.pm=r,[this.currentHour,this.currentMinute,this.currentSecond]=this.constrainTime(this.currentHour||0,this.currentMinute||0,this.currentSecond||0,r),this.updateTime(),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let r=e.target.value;try{let i=this.parseValueFromString(r);this.isValidSelection(i)?(this.updateModel(i),this.updateUI()):this.keepInvalid&&this.updateModel(i)}catch{let o=this.keepInvalid?r:null;this.updateModel(o)}this.onInput.emit(e)}isValidSelection(e){if(this.isSingleSelection())return this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1);let r=e.every(i=>this.isSelectable(i.getDate(),i.getMonth(),i.getFullYear(),!1));return r&&this.isRangeSelection()&&(r=e.length===1||e.length>1&&e[1]>=e[0]),r}parseValueFromString(e){if(!e||e.trim().length===0)return null;let r;if(this.isSingleSelection())r=this.parseDateTime(e);else if(this.isMultipleSelection()){let i=e.split(this.multipleSeparator);r=[];for(let o of i)r.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let i=e.split(" "+this.rangeSeparator+" ");r=[];for(let o=0;o{this.disableModality(),this.overlayVisible=!1}),this.renderer.appendChild(this.document.body,this.mask),Vk())}disableModality(){this.mask&&(ri(this.mask,"p-overlay-mask-leave"),this.animationEndListener||(this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyMask.bind(this))))}destroyMask(){if(!this.mask)return;this.renderer.removeChild(this.document.body,this.mask);let e=this.document.body.children,r;for(let i=0;i{let u=i+1{let f=""+u;if(o(d))for(;f.lengtho(d)?f[u]:p[u],l="",c=!1;if(e)for(i=0;i11&&i!=12&&(i-=12),this.hourFormat=="12"?r+=i===0?12:i<10?"0"+i:i:r+=i<10?"0"+i:i,r+=":",r+=o<10?"0"+o:o,this.showSeconds&&(r+=":",r+=s<10?"0"+s:s),this.hourFormat=="12"&&(r+=e.getHours()>11?" PM":" AM"),r}parseTime(e){let r=e.split(":"),i=this.showSeconds?3:2;if(r.length!==i)throw"Invalid time";let o=parseInt(r[0]),s=parseInt(r[1]),a=this.showSeconds?parseInt(r[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||this.hourFormat=="12"&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return this.hourFormat=="12"&&(o!==12&&this.pm?o+=12:!this.pm&&o===12&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,r){if(r==null||e==null)throw"Invalid arguments";if(e=typeof e=="object"?e.toString():e+"",e==="")return null;let i,o,s,a=0,l=typeof this.shortYearCutoff!="string"?this.shortYearCutoff:new Date().getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,d=-1,u=-1,p=-1,f=!1,y,b=P=>{let B=i+1{let B=b(P),Y=P==="@"?14:P==="!"?20:P==="y"&&B?4:P==="o"?3:2,ye=P==="y"?Y:1,Xe=new RegExp("^\\d{"+ye+","+Y+"}"),tt=e.substring(a).match(Xe);if(!tt)throw"Missing number at position "+a;return a+=tt[0].length,parseInt(tt[0],10)},w=(P,B,Y)=>{let ye=-1,Xe=b(P)?Y:B,tt=[];for(let vt=0;vt-(vt[1].length-tn[1].length));for(let vt=0;vt{if(e.charAt(a)!==r.charAt(i))throw"Unexpected literal at position "+a;a++};for(this.view==="month"&&(u=1),i=0;i-1){d=1,u=p;do{if(o=this.getDaysCountInMonth(c,d-1),u<=o)break;d++,u-=o}while(!0)}if(this.view==="year"&&(d=d===-1?1:d,u=u===-1?1:u),y=this.daylightSavingAdjust(new Date(c,d-1,u)),y.getFullYear()!==c||y.getMonth()+1!==d||y.getDate()!==u)throw"Invalid date";return y}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}isValidDateForTimeConstraints(e){return this.keepInvalid?!0:(!this.minDate||e>=this.minDate)&&(!this.maxDate||e<=this.maxDate)}onTodayButtonClick(e){let r=new Date,i={day:r.getDate(),month:r.getMonth(),year:r.getFullYear(),otherMonth:r.getMonth()!==this.currentMonth||r.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.createMonths(r.getMonth(),r.getFullYear()),this.onDateSelect(e,i),this.onTodayClick.emit(r)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=this.renderer.createElement("style"),this.responsiveStyleElement.type="text/css",tu(this.responsiveStyleElement,"nonce",this.config?.csp()?.nonce),this.renderer.appendChild(this.document.body,this.responsiveStyleElement));let e="";if(this.responsiveOptions){let r=[...this.responsiveOptions].filter(i=>!!(i.breakpoint&&i.numMonths)).sort((i,o)=>-1*i.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let i=0;i({position:"relative"})},hq={root:({instance:t})=>["p-datepicker p-component p-inputwrapper",{"p-invalid":t.invalid(),"p-datepicker-fluid":t.hasFluid,"p-inputwrapper-filled":t.$filled(),"p-variant-filled":t.$variant()==="filled","p-inputwrapper-focus":t.focus||t.overlayVisible,"p-focus":t.focus||t.overlayVisible}],pcInputText:"p-datepicker-input",dropdown:"p-datepicker-dropdown",inputIconContainer:"p-datepicker-input-icon-container",inputIcon:"p-datepicker-input-icon",panel:({instance:t})=>["p-datepicker-panel p-component",{"p-datepicker-panel p-component":!0,"p-datepicker-panel-inline":t.inline,"p-disabled":t.$disabled(),"p-datepicker-timeonly":t.timeOnly}],calendarContainer:"p-datepicker-calendar-container",calendar:"p-datepicker-calendar",header:"p-datepicker-header",pcPrevButton:"p-datepicker-prev-button",title:"p-datepicker-title",selectMonth:"p-datepicker-select-month",selectYear:"p-datepicker-select-year",decade:"p-datepicker-decade",pcNextButton:"p-datepicker-next-button",dayView:"p-datepicker-day-view",weekHeader:"p-datepicker-weekheader p-disabled",weekNumber:"p-datepicker-weeknumber",weekLabelContainer:"p-datepicker-weeklabel-container p-disabled",weekDayCell:"p-datepicker-weekday-cell",weekDay:"p-datepicker-weekday",dayCell:({date:t})=>["p-datepicker-day-cell",{"p-datepicker-other-month":t.otherMonth,"p-datepicker-today":t.today}],day:({instance:t,date:n})=>{let e="";if(t.isRangeSelection()&&t.isSelected(n)&&n.selectable){let i=t.value[0],r=t.value[1],o=i&&n.year===i.getFullYear()&&n.month===i.getMonth()&&n.day===i.getDate(),s=r&&n.year===r.getFullYear()&&n.month===r.getMonth()&&n.day===r.getDate();e=o||s?"p-datepicker-day-selected":"p-datepicker-day-selected-range"}return{"p-datepicker-day":!0,"p-datepicker-day-selected":!t.isRangeSelection()&&t.isSelected(n)&&n.selectable,"p-disabled":t.$disabled()||!n.selectable,[e]:!0}},monthView:"p-datepicker-month-view",month:({instance:t,index:n})=>["p-datepicker-month",{"p-datepicker-month-selected":t.isMonthSelected(n),"p-disabled":t.isMonthDisabled(n)}],yearView:"p-datepicker-year-view",year:({instance:t,year:n})=>["p-datepicker-year",{"p-datepicker-year-selected":t.isYearSelected(n),"p-disabled":t.isYearDisabled(n)}],timePicker:"p-datepicker-time-picker",hourPicker:"p-datepicker-hour-picker",pcIncrementButton:"p-datepicker-increment-button",pcDecrementButton:"p-datepicker-decrement-button",separator:"p-datepicker-separator",minutePicker:"p-datepicker-minute-picker",secondPicker:"p-datepicker-second-picker",ampmPicker:"p-datepicker-ampm-picker",buttonbar:"p-datepicker-buttonbar",pcTodayButton:"p-datepicker-today-button",pcClearButton:"p-datepicker-clear-button",clearIcon:"p-datepicker-clear-icon"},bR=(()=>{class t extends Me{name="datepicker";style=pq;classes=hq;inlineStyles=fq;static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(t)))(r||t)}})();static \u0275prov=N({token:t,factory:t.\u0275fac})}return t})();var mq={provide:Vn,useExisting:Jt(()=>_R),multi:!0},vR=new z("DATEPICKER_INSTANCE"),_R=(()=>{class t extends gc{zone;overlayService;bindDirectiveInstance=x(te,{self:!0});$pcDatePicker=x(vR,{optional:!0,skipSelf:!0})??void 0;iconDisplay="button";styleClass;inputStyle;inputId;inputStyleClass;placeholder;ariaLabelledBy;ariaLabel;iconAriaLabel;get dateFormat(){return this._dateFormat}set dateFormat(e){this._dateFormat=e,this.initialized&&this.updateInputfield()}multipleSeparator=",";rangeSeparator="-";inline=!1;showOtherMonths=!0;selectOtherMonths;showIcon;icon;readonlyInput;shortYearCutoff="+10";get hourFormat(){return this._hourFormat}set hourFormat(e){this._hourFormat=e,this.initialized&&this.updateInputfield()}timeOnly;stepHour=1;stepMinute=1;stepSecond=1;showSeconds=!1;showOnFocus=!0;showWeek=!1;startWeekFromFirstDayOfYear=!1;showClear=!1;dataType="date";selectionMode="single";maxDateCount;showButtonBar;todayButtonStyleClass;clearButtonStyleClass;autofocus;autoZIndex=!0;baseZIndex=0;panelStyleClass;panelStyle;keepInvalid=!1;hideOnDateTimeSelect=!0;touchUI;timeSeparator=":";focusTrap=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";tabindex;get minDate(){return this._minDate}set minDate(e){this._minDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,this.currentMonth!=null&&this.currentMonth!=null&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get showTime(){return this._showTime}set showTime(e){this._showTime=e,this.currentHour===void 0&&this.initTime(this.value||new Date),this.updateInputfield()}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){let i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}appendTo=ae(void 0);onFocus=new H;onBlur=new H;onClose=new H;onSelect=new H;onClear=new H;onInput=new H;onTodayClick=new H;onClearClick=new H;onMonthChange=new H;onYearChange=new H;onClickOutside=new H;onShow=new H;inputfieldViewChild;set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):!this.focus&&!this.inline&&this.initFocusableCell())}_componentStyle=x(bR);contentViewChild;value;dates;months;weekDays;currentMonth;currentYear;currentHour;currentMinute;currentSecond;p;pm;mask;maskClickListener;overlay;responsiveStyleElement;overlayVisible;$appendTo=We(()=>this.appendTo()||this.config.overlayAppendTo());calendarElement;timePickerTimer;documentClickListener;animationEndListener;ticksTo1970;yearOptions;focus;isKeydown;_minDate;_maxDate;_dateFormat;_hourFormat="24";_showTime;_yearRange;preventDocumentListener;dayClass(e){return this._componentStyle.classes.day({instance:this,date:e})}dateTemplate;headerTemplate;footerTemplate;disabledDateTemplate;decadeTemplate;previousIconTemplate;nextIconTemplate;triggerIconTemplate;clearIconTemplate;decrementIconTemplate;incrementIconTemplate;inputIconTemplate;buttonBarTemplate;_dateTemplate;_headerTemplate;_footerTemplate;_disabledDateTemplate;_decadeTemplate;_previousIconTemplate;_nextIconTemplate;_triggerIconTemplate;_clearIconTemplate;_decrementIconTemplate;_incrementIconTemplate;_inputIconTemplate;_buttonBarTemplate;_disabledDates;_disabledDays;selectElement;todayElement;focusElement;scrollHandler;documentResizeListener;navigationState=null;isMonthNavigate;initialized;translationSubscription;_locale;_responsiveOptions;currentView;attributeSelector;panelId;_numberOfMonths=1;_firstDayOfWeek;_view="date";preventFocus;_defaultDate;_focusKey=null;window;get locale(){return this._locale}get iconButtonAriaLabel(){return this.iconAriaLabel?this.iconAriaLabel:this.getTranslation("chooseDate")}get prevIconAriaLabel(){return this.currentView==="year"?this.getTranslation("prevDecade"):this.currentView==="month"?this.getTranslation("prevYear"):this.getTranslation("prevMonth")}get nextIconAriaLabel(){return this.currentView==="year"?this.getTranslation("nextDecade"):this.currentView==="month"?this.getTranslation("nextYear"):this.getTranslation("nextMonth")}constructor(e,i){super(),this.zone=e,this.overlayService=i,this.window=this.document.defaultView}onInit(){this.attributeSelector=mt("pn_id_"),this.panelId=this.attributeSelector+"_panel";let e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.yearOptions=[],this.currentView=this.view,this.view==="date"&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}onAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),!this.$disabled()&&!this.inline&&(this.initFocusableCell(),this.numberOfMonths===1&&this.contentViewChild&&this.contentViewChild.nativeElement&&(this.contentViewChild.nativeElement.style.width=Mn(this.el?.nativeElement)+"px")))}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":this._dateTemplate=e.template;break;case"decade":this._decadeTemplate=e.template;break;case"disabledDate":this._disabledDateTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"inputicon":this._inputIconTemplate=e.template;break;case"buttonbar":this._buttonBarTemplate=e.template;break;case"previousicon":this._previousIconTemplate=e.template;break;case"nexticon":this._nextIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"decrementicon":this._decrementIconTemplate=e.template;break;case"incrementicon":this._incrementIconTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._dateTemplate=e.template;break}})}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(xn.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=e==6?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r11&&(o=o%12,s=i+Math.floor((e+r)/12)),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let i=new Date(e.getTime());if(this.startWeekFromFirstDayOfYear){let o=+this.getFirstDateOfWeek();i.setDate(i.getDate()+6+o-i.getDay())}else i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],o=this.getFirstDayOfMonthIndex(e,i),s=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,d=[],u=Math.ceil((s+o)/7);for(let p=0;ps){let b=this.getNextMonthAndYear(e,i);f.push({day:l-s,month:b.month,year:b.year,otherMonth:!0,today:this.isToday(c,l-s,b.month,b.year),selectable:this.isSelectable(l-s,b.month,b.year,!0)})}else f.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&d.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),r.push(f)}return{month:e,year:i,dates:r,weekNumbers:d}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=this.showSeconds?e.getSeconds():0,this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===0?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}navForward(e){if(this.$disabled()){e.preventDefault();return}this.isMonthNavigate=!0,this.currentView==="month"?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):this.currentView==="year"?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(this.currentMonth===11?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear))}decrementYear(){this.currentYear--;let e=this.yearOptions;if(this.currentYeare[e.length-1]){let i=e[e.length-1]-e[0];this.populateYearOptions(e[0]+i,e[e.length-1]+i)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){if(this.$disabled()||!i.selectable){e.preventDefault();return}this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,o)=>!this.isDateEquals(r,i)),this.value.length===0&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.hideOnDateTimeSelect&&(this.isSingleSelection()||this.isRangeSelection()&&this.value[1])&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()}shouldSelectDate(e){return this.isMultipleSelection()&&this.maxDateCount!=null?this.maxDateCount>(this.value?this.value.length:0):!0}onMonthSelect(e,i){this.view==="month"?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){this.view==="year"?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value){if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i