@angular-wave/angular.ts 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/animations/animate-css.d.ts +1 -1
- package/@types/animations/animate-js-driver.d.ts +10 -2
- package/@types/animations/animate.d.ts +1 -1
- package/@types/animations/animation.d.ts +1 -2
- package/@types/animations/interface.d.ts +8 -3
- package/@types/animations/queue/animate-queue.d.ts +1 -1
- package/@types/animations/shared.d.ts +1 -1
- package/@types/core/compile/attributes.d.ts +4 -4
- package/@types/core/compile/compile.d.ts +3 -3
- package/@types/core/interpolate/interpolate.d.ts +1 -1
- package/@types/directive/aria/aria.d.ts +1 -1
- package/@types/directive/messages/messages.d.ts +13 -13
- package/@types/interface.d.ts +0 -1
- package/@types/namespace.d.ts +7 -13
- package/@types/router/directives/view-directive.d.ts +2 -2
- package/@types/router/state/state-object.d.ts +2 -2
- package/@types/services/anchor-scroll/anchor-scroll.d.ts +1 -1
- package/@types/services/anchor-scroll/interface.d.ts +5 -8
- package/@types/services/http/http.d.ts +1 -1
- package/@types/services/location/location.d.ts +1 -1
- package/@types/services/sce/interface.d.ts +2 -2
- package/@types/services/sce/sce.d.ts +2 -2
- package/dist/angular-ts.esm.js +250 -288
- package/dist/angular-ts.umd.js +250 -288
- package/dist/angular-ts.umd.min.js +1 -1
- package/dist/angular-ts.umd.min.js.gz +0 -0
- package/dist/angular-ts.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/@types/router/scroll/interface.d.ts +0 -3
- package/@types/router/scroll/view-scroll.d.ts +0 -8
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const n="ng-valid",e="ng-invalid",i="ng-pristine",r="ng-dirty",s="ng-untouched",o="ng-touched",c="ng-empty",u="ng-not-empty",h=/^((?:x|data)[-])/i,a=/[-]+(.)/g,l={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},f=Symbol("isProxy");function d(t){return!(!t||!t[f])}function m(t){return d(t)?t.$target:t}const p=pt("ng");let $=0;function g(){return $+=1,$}function w(t){return _(t)?t.toLowerCase():t}function v(t){if(O(t)||P(t))return!1;if(k(t)||t instanceof Array||_(t))return!0;const n=t.length;return j(n)&&(n>=0&&n-1 in t||"function"==typeof t.item)}function b(t){return void 0===t}function y(t){return void 0!==t}function k(t){return Array.isArray(t)}function E(t,n){return t instanceof n}function S(t){return null!==t&&"object"==typeof t}function _(t){return"string"==typeof t}function x(t){return null===t}function O(t){return null==t}function C(t){return!O(t)}function j(t){return"number"==typeof t}function A(t){return"[object Date]"===toString.call(t)}function T(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function R(t){return"function"==typeof t}function M(t){return"[object RegExp]"===toString.call(t)}function P(t){return E(t,Window)}function I(t){return t&&t.$watch}function D(t){return"boolean"==typeof t}function N(t){return t&&R(t.then)}function q(t){return _(t)?t.trim():t}function U(t,n){const e=n;return t.replace(/[A-Z]/g,(t,n)=>(n?e:"")+t.toLowerCase())}function V(t,n,e=!1){const i=t.i;for(let i=0,r=n.length;i<r;++i){const r=n[i];if(!S(r)&&!R(r))continue;const s=Et(r);for(let n=0,i=s.length;n<i;n++){const i=s[n],o=r[i];e&&S(o)?A(o)?t[i]=new Date(o.valueOf()):M(o)?t[i]=new RegExp(o):o.nodeName?t[i]=o.cloneNode(!0):"__proto__"!==i&&(S(t[i])||(t[i]=k(o)?[]:{}),V(t[i],[o],!0)):t[i]=o}}var r,s;return r=t,(s=i)?r.i=s:delete r.i,t}function F(t,...n){return V(t,n,!1)}function L(t){return Number.isNaN(t)}function H(t,n){return F(Object.create(t),n)}function B(t){return R(t.toString)&&t.toString!==toString}function z(t){return w(t.nodeName)}function W(t,n){return-1!==Array.prototype.indexOf.call(t,n)}function J(t,n){const e=t.indexOf(n);return e>=0&&t.splice(e,1),e}function Z(t,n){return t===n||Number.isNaN(t)&&Number.isNaN(n)}function G(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;if(k(t)){if(!k(n))return!1;const{length:e}=t;if(e!==n.length)return!1;for(let i=0;i<e;i++)if(!G(t[i],n[i]))return!1;return!0}if(A(t))return!!A(n)&&Z(t.getTime(),n.getTime());if(M(t))return!!M(n)&&t.toString()===n.toString();if(I(t)||I(n)||P(t)||P(n)||k(n)||A(n)||M(n))return!1;const i=Object.create(null);for(const e in t)if("$"!==e.charAt(0)&&!R(t[e])){if(!G(t[e],n[e]))return!1;i[e]=!0}for(const t in n)if(!(t in i)&&"$"!==t.charAt(0)&&y(n[t])&&!R(n[t]))return!1;return!0}function K(t,n){if("hasOwnProperty"===t)throw p("badname","hasOwnProperty is not a valid {0} name",n)}function X(t){if(x(t)||b(t))return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!B(t)||k(t)||A(t)?et(t):t.toString()}return t}function Y(t,n,e){return t.concat(Array.prototype.slice.call(n,e))}function Q(t,n){return Array.prototype.slice.call(t,n)}function tt(t,n){const e=arguments.length>2?Q(arguments,2):[];return!R(n)||n instanceof RegExp?n:e.length?function(){return arguments.length?n.apply(t,Y(e,arguments,0)):n.apply(t,e)}:function(){return arguments.length?n.apply(t,arguments):n.call(t)}}function nt(t,n){let e=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?e=void 0:P(n)?e="$WINDOW":n&&window.document===n?e="$DOCUMENT":I(n)&&(e="$SCOPE"),e}function et(t,n){if(!b(t))return j(n)||(n=n?2:void 0),JSON.stringify(t,nt,n)}function it(t){const n={};return(t||"").split("&").forEach(e=>{let i,r,s;e&&(r=t=e.replace(/\+/g,"%20"),i=e.indexOf("="),-1!==i&&(r=e.substring(0,i),s=e.substring(i+1)),r=st(r),y(r)&&(s=!y(s)||st(s),kt(n,r)?k(n[r])?n[r].push(s):n[r]=[n[r],s]:n[r]=s))}),n}function rt(t){const n=[];return t&&St(t).forEach(([t,e])=>{k(e)?e.forEach(e=>{n.push(ct(t,!0)+(!0===e?"":`=${ct(e,!0)}`))}):n.push(ct(t,!0)+(!0===e?"":`=${ct(e,!0)}`))}),n.length?n.join("&"):""}function st(t){try{return decodeURIComponent(t)}catch{return}}function ot(t){return ct(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ct(t,n){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,n?"%20":"+")}const ut=["ng-","data-ng-"];function ht(t,n){if(k(t)){const e=n||[];return e.push(...t),e}if(S(t)){const e=n||{};for(const n in t)n.startsWith("$$")||(e[n]=t[n]);return e}return t}function at(t,n="Assertion failed"){if(!t)throw new Error(n)}function lt(t,n,e){if(!t)throw p("areq","Argument '{0}' is {1}",n||"?",e||"required");return t}function ft(t,n,e){return e&&k(t)&&(t=t[t.length-1]),lt(R(t),n,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const dt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function mt(t){var n;return S(t)&&(y(t.objectMaxDepth)&&(dt.objectMaxDepth=j(n=t.objectMaxDepth)&&n>0?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&D(t.urlErrorParamsEnabled)&&(dt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),dt}function pt(t){return function(...n){const e=n[0],i=n[1];let r=`[${t?`${t}:`:""}${e}] `;const s=Q(n,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(b(t))return"undefined";if("string"!=typeof t){const n=[],e=structuredClone(d(t)?t.$target:t);return JSON.stringify(e,(t,e)=>{const i=nt(t,e);if(S(i)){if(n.indexOf(i)>=0)return"...";n.push(i)}return i})}return t}(t));return r+=i.replace(/\{\d+\}/g,t=>{const n=+t.slice(1,-1);return n<s.length?s[n]:t}),new Error(r)}}function $t(t){const n=t&&t.i;if(n)return"function"==typeof n?t.i():n;const e=typeof t;return"function"===e||"object"===e&&null!==t?(t.i=`${e}:${g()}`,t.i):"undefined"===e?`${e}:${g()}`:`${e}:${t}`}function gt(t,n){return t||n?t?n?(k(t)&&(t=wt(t)),k(n)&&(n=wt(n)),`${t.trim()} ${n.trim()}`.trim()):k(t)?t.join(" ").trim():t:k(n)?n.join(" ").trim():n:""}function wt(t){const n=[];for(const e of t)if(e){const t=e.trim();t&&n.push(t)}return n.join(" ")}function vt(t){return t.replace(h,"").replace(a,(t,n,e)=>e?n.toUpperCase():n)}function bt(t){return function(t,n){if(1!==t.nodeType)return!1;const e=t;return"true"===e.dataset[n]||"true"===e.getAttribute(n)}(t,"animate")}function yt(t){return!t||!Et(t).length}function kt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Et(t){return Object.keys(t)}function St(t){return Object.entries(t)}function _t(t){let n=!1;return(...e)=>{if(n)return t(...e);n=!0}}function xt(t=0){return new Promise(n=>setTimeout(n,t))}function Ot(t,n){return t.slice(0,n.length)===n}async function Ct(t,n={}){const e=await fetch(t);if(!e.ok)throw new Error("fetch failed");try{const{instance:t,module:i}=await WebAssembly.instantiateStreaming(e.clone(),n);return{instance:t,exports:t.exports,module:i}}catch{}const i=await e.arrayBuffer(),{instance:r,module:s}=await WebAssembly.instantiate(i,n);return{instance:r,exports:r.exports,module:s}}const jt={o:"$angular",u:"$attrs",h:"$scope",l:"$element",m:"$$animateCssDriver",p:"$$animateJs",$:"$$animateJsDriver",k:"$$animateQueue",S:"$$animation",_:"$$taskTrackerFactory",O:"$anchorScroll",C:"$animate",j:"$animateCss",A:"$aria",T:"$compile",R:"$cookie",M:"$controller",P:"$document",I:"$eventBus",D:"$exceptionHandler",N:"$filter",q:"$http",U:"$httpParamSerializer",V:"$interpolate",F:"$location",L:"$log",H:"$viewScroll",B:"$parse",W:"$rest",J:"$rootScope",Z:"$rootElement",G:"$router",K:"$sce",X:"$sceDelegate",Y:"$state",tt:"$stateRegistry",nt:"$sse",et:"$$sanitizeUri",it:"$$sanitizeUriProvider",rt:"$templateCache",st:"$templateFactory",ot:"$templateRequest",ct:"$transitions",ut:"$urlConfig",ht:"$url",lt:"$view",ft:"$window",dt:"$websocket",gt:"$provide",wt:"$injector",vt:"$compileProvider",bt:"$animateProvider",yt:"$filterProvider",kt:"$controllerProvider"};function At(t){return t.map(t=>`${t}Provider`)}let Tt=1;const Rt="ng",Mt=new Map,Pt=jt.h,It=/-([a-z])/g,Dt=/_([a-z])/g,Nt=["multiple","selected","checked","disabled","readonly","required","open"],qt=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function Ut(t,n){return n.toUpperCase()}function Vt(t){return t.replace(It,Ut)}function Ft(t){return t.replace(Dt,Ut)}function Lt(t,n){const e=t[Rt],i=e&&Mt.get(e);i&&(n?delete i.data[n]:i.data={},function(t){const n=t[Rt],e=n?Mt.get(n)?.data:void 0;e&&Et(e).length||(Mt.delete(n),t[Rt]=void 0)}(t))}function Ht(t,n=!1){let e=t[Rt],i=e&&Mt.get(e);return n&&!i&&(t[Rt]=e=++Tt,i={data:{}},Mt.set(e,i)),i}function Bt(t){return!/<|&#?\w+;/.test(t)}function zt(t){switch(t.nodeType){case 1:case 9:case 8:case void 0:return!0;default:return!1}}function Wt(t,n){!t||t instanceof Comment||(k(t)?t.forEach(t=>Wt(t,n)):(!n&&zt(t)&&on([t]),zt(t)&&on(t.querySelectorAll("*"))),delete t[Rt],t.innerHTML="")}function Jt(t,n,e){if(!zt(t))return;const i=y(e),r=!i&&n&&!S(n),s=!n,o=Ht(t,!r),c=o&&o.data;if(c)if(i&&"string"==typeof n)c[Vt(n)]=e;else{if(s)return c;if(r&&"string"==typeof n)return c[Vt(n)];if(n&&"object"==typeof n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(c[Vt(t)]=n[t])}}function Zt(t,n,e){if(zt(t)){const i=Ht(t,!0);(i&&i.data)[Vt(n)]=e}else t.parentElement&&Zt(t.parentElement,n,e)}function Gt(t,n){if(zt(t)){const e=Ht(t,!1),i=e&&e.data;if(!n)return;return i&&i[Vt(n)]}}function Kt(t){return Gt(t,Pt)}function Xt(t,n){return Zt(t,Pt,n)}function Yt(t,n){return Zt(t,"$isolateScope",n)}function Qt(t,n){return tn(t,`$${n||"ngController"}Controller`)}function tn(t,n){let e;for(9===t.nodeType&&(t=t.documentElement);t;){if(e=Gt(t,n),y(e))return e;let i=t.parentNode;if(i||11!==t.nodeType||(i=t.host),!i)break;t=i}}function nn(t,n=!1){n||Wt(t);const e=t.parentNode;e&&e.removeChild(t)}function en(t){let n;if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),{firstChild:i}=e.body;if(!i)return"";n=i.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");n=t.cloneNode(!0)}for(;n.firstChild;)n.removeChild(n.firstChild);const e=document.createElement("div");e.appendChild(n);const i=e.innerHTML;try{if(3===n.nodeType)return i.toLowerCase();if(8===n.nodeType)return`\x3c!--${n.data.trim()}--\x3e`;{const t=i.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,n)=>`<${n.toLowerCase()}`)}}catch{return i.toLowerCase()}return i.toLowerCase()}function rn(t){let n=t[0];const e=t[t.length-1];let i;for(let r=1;n!==e;r++){const e=n.nextSibling;if(!e)break;n=e,(i||t[r]!==n)&&(i||(i=Array.prototype.slice.call(t,0,r)),i.push(n))}return i||t}function sn(t,n){const e=n.toLowerCase();return!(!Nt.includes(e)||!qt.includes(t.nodeName))&&e}function on(t){for(let n=0,e=t.length;n<e;n++)Lt(t[n])}function cn(t){return tn(t,jt.wt)}function un(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.firstChild}function hn(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.childNodes}function an(t){switch(Wt(t,!0),t.nodeType){case 1:case 9:case 11:t.replaceChildren()}}function ln(t,n,e){if(e){const t=mn(e);!t||t.parentNode||t.previousSibling||(e=null)}e?e.after(t):n.prepend(t)}function fn(t,n,e){const i=t.style.visibility,r=t.style.position,s=t.style.pointerEvents;Object.assign(t.style,{visibility:"hidden",position:"absolute",pointerEvents:"none"}),ln(t,n,e),requestAnimationFrame(()=>{t.style.visibility=i,t.style.position=r,t.style.pointerEvents=s})}function dn(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}function mn(t){if(!t||!k(t))return t;for(let n=0;n<t.length;n++){const e=t[n];if(1===e.nodeType)return e}}const pn=pt(jt.wt),$n=/^([^(]+?)=>/,gn=/^[^(]*\(\s*([^)]*)\)/m,wn=/^\s*(_?)(\S+?)\1\s*$/,vn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function bn(t){return Function.prototype.toString.call(t)}function yn(t,n,e){let i,r,s=[];if(R(t)){if(s=t.$inject,!s){if(s=[],t.length){if(n)throw pn("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",e);i=function(t){const n=bn(t).replace(vn,"");return n.match($n)||n.match(gn)}(t),i&&i[1].split(/,/).forEach(t=>{t.replace(wn,(t,n,e)=>(s.push(e),e))})}t.$inject=s}}else k(t)?(r=t.length-1,ft(t[r],"fn"),s=t.slice(0,r)):ft(t,"fn",!0);return s}const kn=pt(jt.wt),En="Provider",Sn=!0;class _n{constructor(t){this.Et={},this.strictDi=t,this.St=[],this._t={}}get(t){if(kt(this.Et,t)){if(this.Et[t]===Sn)throw kn("cdep","Circular dependency found: {0}",`${t} <- ${this.St.join(" <- ")}`);return this.Et[t]}this.St.unshift(t),this.Et[t]=Sn;try{this.Et[t]=this.factory(t)}catch(n){throw delete this.Et[t],n}return this.Et[t]}xt(t,n,e){const i=[],r=yn(t,this.strictDi,e);for(let t=0,{length:e}=r;t<e;t++){const e=r[t];if("string"!=typeof e)throw kn("itkn","Incorrect injection token! Expected service name as string, got {0}",e);i.push(n&&kt(n,e)?n[e]:this.get(e))}return i}invoke(t,n,e,i){"string"==typeof e&&(i=e,e=void 0);const r=this.xt(t,e,i);return k(t)&&(t=t[t.length-1]),/^class\b/.test(bn(t))?(r.unshift(null),new(Function.prototype.bind.apply(t,r))):t.apply(n,r)}instantiate(t,n,e){const i=k(t)?t[t.length-1]:t,r=this.xt(t,n,e);r.unshift(null);try{return new(Function.prototype.bind.apply(i,r))}catch(t){if("function"!=typeof(s=i)||s.prototype)throw t;return i(r)}var s}factory(t){}}class xn extends _n{constructor(t,n){super(n),this.Et=t}factory(t){throw this.St.push(t),kn("unpr","Unknown provider: {0}",this.St.join(" <- "))}}class On extends _n{loadNewModules=()=>{};constructor(t,n){super(n),this.Ot=t,this._t=t._t}factory(t){const n=this.Ot.get(t+En);return this.invoke(n.$get,n,void 0,t)}has(t){const n=kt(this.Ot.Et,t+En),e=kt(this.Et,t);return n||e}}function Cn(t,n,e,i={}){const r=i.serialize||JSON.stringify,s=i.deserialize||JSON.parse,o=e.getItem(n);return o&&Object.assign(t,s(o)),new Proxy(t,{set:(t,i,s)=>(t[i]=s,e.setItem(n,r(t)),!0),deleteProperty(t,i){const s=delete t[i];return e.setItem(n,r(t)),s}})}function jn(t){if(k(t)&&t.length){const n=t.slice(0,-1),e=t.slice(-1);return!(n.filter(t=>!_(t)).length||e.filter(t=>!R(t)).length)}return R(t)}function An(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}const Tn="badarg",Rn=new Map([[C,"required"],[k,"notarray"],[jn,"notinjectable"],[y,"required"],[_,"notstring"]]);function Mn(t,n,e){if(t(n))return n;let i;try{i=JSON.stringify(n)}catch{i=String(n)}throw new TypeError(`badarg:${function(t){return Rn.get(t)??"fail"}(t)} ${e}=${i}`)}function Pn(t,n){return Mn(C,t,n)}function In(t,n){return Mn(_,t,n)}const Dn=pt(jt.wt),Nn="Provider";function qn(t,n=!1){at(k(t),"modules required");const e=new Map,i={$provide:{provider:Un(u),factory:Un(h),service:Un(function(t,n){return h(t,[jt.wt,t=>t.instantiate(n)])}),value:Un(function(t,n){return i[t+Nn]={$get:()=>n}}),constant:Un(function(t,n){K(t,"constant"),r.Et[t]=n,s.Et[t]=n}),store:function(t,n,e,i){return u(t,{$get:r=>{switch(e){case"session":return Cn(r.instantiate(n),t,sessionStorage);case"local":return Cn(r.instantiate(n),t,localStorage);case"cookie":{const e=r.instantiate(n),s=r.get(jt.R),o=i?.serialize??JSON.stringify,c=i?.deserialize??JSON.parse,u=i?.cookie??{};return Cn(e,t,{getItem(t){const n=s.get(t);return O(n)?null:n},setItem(t,n){s.put(t,n,u)},removeItem(t){s.remove(t,u)},serialize:o,deserialize:c})}case"custom":{const e=r.instantiate(n);let s,o=JSON.stringify,c=JSON.parse;return i?"function"==typeof i.getItem?s=i:S(i)&&(s=i.backend||localStorage,i.serialize&&(o=i.serialize),i.deserialize&&(c=i.deserialize)):s=localStorage,Cn(e,t,s,{serialize:o,deserialize:c})}}}})},decorator:function(t,n){const e=r.get(t+Nn),i=e.$get;e.$get=function(){const t=o.invoke(i,e);return o.invoke(n,null,{$delegate:t})}}}},r=i.$injector=new xn(i,n),s=new On(r,n);i.$injectorProvider={$get:()=>s};let o=s;const c=a(t);return o=s.get(jt.wt),c.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>a(t).forEach(t=>t&&o.invoke(t)),o;function u(t,n){let e;if(K(t,"service"),e=R(n)||k(n)?r.instantiate(n):n,!e.$get)throw Dn("pget","Provider '{0}' must define $get factory method.",t);return i[t+Nn]=e,e}function h(t,n){return u(t,{$get(){const e=o.invoke(n,this);if(b(e))throw Dn("undef","Provider '{0}' must return a value from $get factory method.",t);return e}})}function a(t){Mn(k,t,"modules");let n=[];return t.forEach(t=>{const i=Array.isArray(t)?t[t.length-1]:t;if(!e.get(i)){e.set(i,!0);try{if(_(t)){const e=window.angular.module(t);o._t[t]=e,n=n.concat(a(e.Ct)).concat(e.jt),e.At.concat(e.Tt).forEach(t=>{const n=r.get(t[0]);n[t[1]].apply(n,t[2])})}else R(t)||k(t)?n.push(r.invoke(t)):ft(t,"module")}catch(n){const e=k(t)?t[t.length-1]:t;throw Dn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,E(n,Error)?n.stack||n.message:String(n))}}}),n}}function Un(t){return function(n,e){return S(n)?void St(n).forEach(([n,e])=>{t(n,e)}):t(n,e)}}const Vn=Fn(window.location.href);function Fn(t){if(!_(t))return t;const n=new URL(t,window.location.href),e=n.hostname.includes(":")?`[${n.hostname}]`:n.hostname;return{href:n.href,protocol:n.protocol,host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:e,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:`/${n.pathname}`}}function Ln(t,n){return t=Fn(t),n=Fn(n),t.protocol===n.protocol&&t.host===n.host}function Hn(t){return t.replace(/#$/,"")}const Bn="application/json",zn=200,Wn={"Content-Type":`${Bn};charset=utf-8`},Jn=/^\[|^\{(?!\{)/,Zn={"[":/]$/,"{":/}$/},Gn=/^\)]\}',?\n/,Kn=pt("$http");function Xn(t){return S(t)?A(t)?t.toISOString():et(t):t}function Yn(){this.$get=()=>t=>{if(!t)return"";const n=[];return Et(t).sort().forEach(e=>{const i=t[e];null===i||b(i)||R(i)||(k(i)?i.forEach(t=>{n.push(`${ct(e)}=${ct(Xn(t))}`)}):n.push(`${ct(e)}=${ct(Xn(i))}`))}),n.join("&")}}function Qn(t,n){if(_(t)){const i=t.replace(Gn,"").trim();if(i){const r=n("Content-Type"),s=r&&0===r.indexOf(Bn);if(s||function(t){const n=t.match(Jn);return n&&Zn[n[0]].test(t)}(i))try{t=_(e=i)?JSON.parse(e):e}catch(n){if(!s)return t;throw Kn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,n)}}}var e;return t}function te(t){const n=Object.create(null);let e;function i(t,e){t&&(n[t]=n[t]?`${n[t]}, ${e}`:e)}return _(t)?t.split("\n").forEach(t=>{e=t.indexOf(":"),i(t.substring(0,e).trim().toLowerCase(),q(t.substring(e+1)))}):S(t)&&St(t).forEach(([t,n])=>{i(t.toLowerCase(),q(n))}),n}function ne(t){let n;return function(e){if(n||(n=te(t)),e){let t=n[e.toLowerCase()];return void 0===t&&(t=null),t}return n}}function ee(t,n,e,i){return R(i)?i(t,n,e):(k(i)&&i.forEach(i=>{t=i(t,n,e)}),t)}function ie(t){return t>=zn&&t<300}function re(){const t=this.defaults={transformResponse:[Qn],transformRequest:[function(t){return!S(t)||(n=t,"[object File]"===toString.call(n))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:et(t);var n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ht(Wn),put:ht(Wn),patch:ht(Wn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n},this.interceptors=[],this.xsrfTrustedOrigins=[];const e=this;this.$get=[jt.wt,jt.K,jt.R,function(i,r,s){const o=new Map;t.paramSerializer=_(t.paramSerializer)?i.get(t.paramSerializer):t.paramSerializer;const c=[];e.interceptors.forEach(t=>{c.unshift(_(t)?i.get(t):i.invoke(t))});const u=function(t){const n=[Vn].concat(t.map(Fn));return function(t){const e=Fn(t);return n.some(Ln.bind(null,e))}}(e.xsrfTrustedOrigins);function h(e){if(!S(e))throw pt("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!_(r.valueOf(e.url)))throw pt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",e.url);const a=F({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);var l;a.headers=function(n){let e=t.headers;const i=F({},n.headers);return e=F({},e.common,e[w(n.method)]),Et(e).forEach(t=>{const n=w(t);Et(i).some(t=>w(t)===n)||(i[t]=e[t])}),function(t,n){let e;const i={};return St(t).forEach(([t,r])=>{R(r)?(e=r(n),O(e)||(i[t]=e)):i[t]=r}),i}(i,ht(n))}(e),a.method=_(l=a.method)?l.toUpperCase():l,a.paramSerializer=_(a.paramSerializer)?i.get(a.paramSerializer):a.paramSerializer;const f=[],d=[];let m=Promise.resolve(a);return c.forEach(t=>{(t.request||t.requestError)&&f.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),m=p(m,f),m=m.then(function(e){const{headers:i}=e,c=ee(e.data,ne(i),void 0,e.transformRequest);return b(c)&&Et(i).forEach(t=>{"content-type"===w(t)&&delete i[t]}),b(e.withCredentials)&&!b(t.withCredentials)&&(e.withCredentials=t.withCredentials),function(e,i){const{promise:c,resolve:a,reject:l}=Promise.withResolvers();let f,d;const m=e.headers;let{url:p}=e;if(_(p)||(p=r.valueOf(p)),p=function(t,n){return n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n),t}(p,e.paramSerializer(e.params)),h.pendingRequests.push(e),c.then(v,v),(e.cache||t.cache)&&!1!==e.cache&&"GET"===e.method&&(f=S(e.cache)?e.cache:S(t.cache)?t.cache:o),f&&(d=f.get(p),y(d)?N(d)?d.then(w,w):k(d)?g(d[1],d[0],ht(d[2]),d[3],d[4]):g(d,zn,{},"OK","complete"):f.set(p,c)),b(d)){const r=u(e.url)?s.getAll()[e.xsrfCookieName||t.xsrfCookieName]:void 0;r&&(m[e.xsrfHeaderName||t.xsrfHeaderName]=r),function(t,n,e,i,r,s,o,c,u,h){n=n||Hn(window.location.href);const a=new XMLHttpRequest;let l,f=!1;if(a.open(t,n,!0),r)for(const[t,n]of St(r))y(n)&&a.setRequestHeader(t,n);if(a.onload=()=>{let t=a.status||0;const e=a.statusText||"";0===t&&(t=a.response?zn:"file:"===new URL(n).protocol?404:0),m(t,a.response,a.getAllResponseHeaders(),e,"complete")},a.onerror=()=>m(-1,null,null,"","error"),a.ontimeout=()=>m(-1,null,null,"","timeout"),a.onabort=()=>{m(-1,null,null,"",f?"timeout":"abort")},u)for(const[t,n]of St(u))a.addEventListener(t,n);if(h)for(const[t,n]of St(h))a.upload.addEventListener(t,n);if(o&&(a.withCredentials=!0),c)try{a.responseType=c}catch(t){if("json"!==c)throw t}function d(t){f="timeout"===t,a&&a.abort()}function m(t,n,e,r,s){y(l)&&clearTimeout(l),i(t,n,e,r,s)}a.send(b(e)?null:e),"number"==typeof s&&s>0?l=setTimeout(()=>d("timeout"),s):N(s)&&s.then(()=>{d("abort")})}(e.method,p,i,function(t,e,i,r,s){function o(){g(e,t,i,r,s)}f&&(ie(t)?f.set(p,[t,e,te(i),r,s]):f.delete(p)),n?setTimeout(o):o()},m,e.timeout,e.withCredentials,e.responseType,$(e.eventHandlers),$(e.uploadEventHandlers))}return c;function $(t){if(t){const e={};return St(t).forEach(([t,i])=>{e[t]=function(t){function e(){i(t)}n?setTimeout(()=>e()):e()}}),e}return{}}function g(t,n,i,r,s){(ie(n=n>=-1?n:0)?a:l)({data:t,status:n,headers:ne(i),config:e,statusText:r,xhrStatus:s})}function w(t){g(t.data,t.status,ht(t.headers()),t.statusText,t.xhrStatus)}function v(){const t=h.pendingRequests.indexOf(e);-1!==t&&h.pendingRequests.splice(t,1)}}(e,c).then($,$)}),m=p(m,d),m;function p(t,n){for(let e=0,i=n.length;e<i;){const i=n[e++],r=n[e++];t=t.then(i,r)}return n.length=0,t}function $(t){const n=F({},t);return n.data=ee(t.data,t.headers,t.status,a.transformResponse),ie(t.status)?n:Promise.reject(n)}}return h.pendingRequests=[],["get","delete","head"].forEach(t=>{h[t]=function(n,e){return h(F({},e||{},{method:t,url:n}))}}),["post","put","patch"].forEach(t=>{h[t]=function(n,e,i){return h(F({},i||{},{method:t,url:n,data:e}))}}),h.defaults=t,h}]}function se(t,n){const e=n||`ng${t.charAt(0).toUpperCase()}${t.slice(1)}`,i=function(t,n){return function(e,i,r,s,o,c,u){function h(t){let n=null;if("form"===t.tagName.toLowerCase())n=t;else if("form"in t&&t.form)n=t.form;else if(t.hasAttribute("form")){const e=t.getAttribute("form");if(e){const t=document.getElementById(e);t&&"form"===t.tagName.toLowerCase()&&(n=t)}}if(!n){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(E(t,HTMLInputElement)||E(t,HTMLTextAreaElement)||E(t,HTMLSelectElement))){const n=t.name,{value:e}=t;return{[n]:e}}return{}}const e=new FormData(n),i={};return e.forEach((t,n)=>{i[n]=t}),i}return{restrict:"A",link(a,l,f){const d=f.trigger||le(l),m=l.tagName.toLowerCase();let p;y(f.latch)&&f.$observe("latch",_t(()=>l.dispatchEvent(new Event(d))));let $,g=!1;y(f.interval)&&(l.dispatchEvent(new Event(d)),$=setInterval(()=>l.dispatchEvent(new Event(d)),parseInt(f.interval)||1e3)),l.addEventListener(d,async d=>{if(l.disabled)return;"form"===m&&d.preventDefault();const $=f.swap||"innerHTML",w=f[n];if(!w)return void r.warn(`${n}: no URL specified`);const v=t=>{y(f.loading)&&f.$set("loading",!1),y(f.loadingClass)&&f.$removeClass(f.loadingClass);const e=t.data;zn<=t.status&&t.status<=299?(y(f.success)&&s(f.success)(a,{$res:e}),y(f.stateSuccess)&&o.go(f.stateSuccess)):400<=t.status&&t.status<=599&&(y(f.error)&&s(f.error)(a,{$res:e}),y(f.stateError)&&o.go(f.stateError)),S(e)?f.target?a.$eval(`${f.target} = ${JSON.stringify(e)}`):a.$merge(e):_(e)&&function(t,e,s,o,c){let h=!1;o.animate&&(h=!0);let a=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;const n=i(t)(s);a=n instanceof DocumentFragment?Array.from(n.childNodes):[n]}const l=o.target,f=l?document.querySelector(l):c;if(f)switch(e){case"outerHTML":{const t=f.parentNode;if(!t)return;const n=document.createDocumentFragment();if(a.forEach(t=>n.appendChild(t)),!h){t.replaceChild(n,f);break}const e=document.createElement("span");e.style.display="none",t.insertBefore(e,f.nextSibling),u.leave(f).done(()=>{const i=Array.from(n.childNodes);for(const n of i)1===n.nodeType?u.enter(n,t,e):t.insertBefore(n,e);p=i,s.$flushQueue()}),s.$flushQueue();break}case"textContent":h?(u.leave(f).done(()=>{f.textContent=t,u.enter(f,f.parentNode),s.$flushQueue()}),s.$flushQueue()):f.textContent=t;break;case"beforebegin":{const t=f.parentNode;if(!t)break;a.forEach(n=>{h&&1===n.nodeType?u.enter(n,t,f):t.insertBefore(n,f)}),h&&s.$flushQueue();break}case"afterbegin":{const{firstChild:t}=f;[...a].reverse().forEach(n=>{h&&1===n.nodeType?u.enter(n,f,t):f.insertBefore(n,t)}),h&&s.$flushQueue();break}case"beforeend":a.forEach(t=>{h&&1===t.nodeType?u.enter(t,f,null):f.appendChild(t)}),h&&s.$flushQueue();break;case"afterend":{const t=f.parentNode;if(!t)break;const{nextSibling:n}=f;[...a].reverse().forEach(e=>{h&&1===e.nodeType?u.enter(e,t,n):t.insertBefore(e,n)}),h&&s.$flushQueue();break}case"delete":h?(u.leave(f).done(()=>{f.remove(),s.$flushQueue()}),s.$flushQueue()):f.remove();break;case"none":break;default:h?p&&3!==p.nodeType?(u.leave(p).done(()=>{p=a[0],u.enter(a[0],f),s.$flushQueue()}),s.$flushQueue()):(p=a[0],3===p.nodeType?f.replaceChildren(...a):(u.enter(a[0],f),s.$flushQueue())):f.replaceChildren(...a)}else r.warn(`${n}: target "${l}" not found`)}(e,$,a,f,l)};if(y(f.delay)&&await xt(0|parseInt(f.delay)),!g)if(y(f.throttle)&&(g=!0,f.$set("throttled",!0),setTimeout(()=>{f.$set("throttled",!1),g=!1},parseInt(f.throttle))),y(f.loading)&&f.$set("loading",!0),y(f.loadingClass)&&f.$addClass(f.loadingClass),"post"===t||"put"===t){let n;const i={};f.enctype?(i.headers={"Content-Type":f.enctype},n=rt(h(l))):n=h(l),e[t](w,n,i).then(v).catch(v)}else if("get"===t&&f.ngSse){const t=w,e={withCredentials:"true"===f.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{r.info(`${n}: SSE connection opened to ${t}`),y(f.loading)&&f.$set("loading",!1),y(f.loadingClass)&&f.$removeClass(f.loadingClass)},onMessage:t=>{v({status:200,data:t})},onError:t=>{r.error(`${n}: SSE error`,t),v({status:500,data:t})},onReconnect:t=>{r.info(`ngSse: reconnected ${t} time(s)`),f.onReconnect&&s(f.onReconnect)(a,{$count:t})}},i=c(t,e);a.$on("$destroy",()=>{r.info(`${n}: closing SSE connection`),i.close()})}else e[t](w).then(v).catch(v)}),$&&a.$on("$destroy",()=>clearInterval($)),"load"===d&&l.dispatchEvent(new Event("load"))}}}}(t,e);return i.$inject=[jt.q,jt.T,jt.L,jt.B,jt.Y,jt.nt,jt.C],i}const oe=se("get"),ce=se("delete"),ue=se("post"),he=se("put"),ae=se("get","ngSse");function le(t){const n=t.tagName.toLowerCase();return["input","textarea","select"].includes(n)?"change":"form"===n?"submit":"click"}function fe(t,n,e){return{restrict:"A",link(i,r,s){const o=s.ngWorker;if(!o)return void n.warn("ngWorker: missing worker name");const c=s.trigger||le(r);let u,h=!1;y(s.latch)&&s.$observe("latch",_t(()=>r.dispatchEvent(new Event(c)))),y(s.interval)&&(r.dispatchEvent(new Event(c)),u=setInterval(()=>r.dispatchEvent(new Event(c)),parseInt(s.interval)||1e3));const a=de(o,{logger:n,err:e,onMessage:n=>{y(s.dataOnResult)?t(s.dataOnResult)(i,{$result:n}):function(t,n,e){switch(n){case"outerHTML":{const n=e.parentNode;if(!n)return;const i=document.createElement("div");i.innerHTML=t,n.replaceChild(i.firstChild,e);break}case"textContent":e.textContent=t;break;case"beforebegin":e.insertAdjacentHTML("beforebegin",t);break;case"afterbegin":e.insertAdjacentHTML("afterbegin",t);break;case"beforeend":e.insertAdjacentHTML("beforeend",t);break;case"afterend":e.insertAdjacentHTML("afterend",t);break;default:e.innerHTML=t}}(n,s.swap||"innerHTML",r)},onError:e=>{n.error(`[ng-worker:${o}]`,e),y(s.dataOnError)?t(s.dataOnError)(i,{$error:e}):r.textContent="Error"}});r.addEventListener(c,async()=>{if(r.hasAttribute("disabled"))return;if(y(s.delay)&&await xt(parseInt(s.delay)||0),h)return;let t;y(s.throttle)&&(h=!0,s.$set("throttled",!0),setTimeout(()=>{s.$set("throttled",!1),h=!1},parseInt(s.throttle)));try{t=s.params?i.$eval(s.params):void 0}catch(e){n.error("ngWorker: failed to evaluate data-params",e),t=void 0}a.post(t)}),u&&i.$on("$destroy",()=>clearInterval(u)),"load"===c&&r.dispatchEvent(new Event("load"))}}}function de(t,n){if(!t)throw new Error("Worker script path required");const e={autoRestart:!1,autoTerminate:!1,onMessage(){},onError(){},transformMessage(t){try{return JSON.parse(t)}catch{return t}}},i=Object.assign({},e,n);let r=new Worker(t,{type:"module"}),s=!1;const o=function(){s||(i.logger.info("Worker: restarting..."),r.terminate(),r=new Worker(t,{type:"module"}),c(r))},c=t=>{t.onmessage=function(t){let{data:n}=t;try{n=i.transformMessage(n)}catch{}i.onMessage(n,t)},t.onerror=function(t){i.onError(t),i.autoRestart&&o()}};return c(r),{post(t){s&&i.logger.warn("Worker already terminated");try{r.postMessage(t)}catch(t){i.logger.log("Worker post failed",t)}},terminate(){s=!0,r.terminate()},restart(){s&&i.logger.warn("Worker cannot restart after terminate"),o()},config:i}}fe.$inject=[jt.B,jt.L,jt.D];class me{constructor(t,n,e){Mn(_,t,"name"),Mn(k,n,"requires"),this.name=t,this.Ct=n,this.At=[],this.Tt=[],this.jt=[],e&&this.config(e),this.Rt=[],this.Mt=[]}value(t,n){return Mn(_,t,"name"),this.At.push([jt.gt,"value",[t,n]]),this}constant(t,n){return Mn(_,t,"name"),Mn(y,n,"object"),this.At.unshift([jt.gt,"constant",[t,n]]),this}config(t){return Mn(jn,t,"configFn"),this.Tt.push([jt.wt,"invoke",[t]]),this}run(t){return Mn(jn,t,"block"),this.jt.push(t),this}component(t,n){return Mn(_,t,"name"),Mn(y,n,"object"),this.At.push([jt.vt,"component",[t,n]]),this}factory(t,n){return Mn(_,t,"name"),Pn(n,"providerFunction"),this.At.push([jt.gt,"factory",[t,n]]),this}service(t,n){return Mn(_,t,"name"),Pn(n,"serviceFunction"),this.Rt.push(t),this.At.push([jt.gt,"service",[t,n]]),this}provider(t,n){return Mn(_,t,"name"),Pn(n,"providerType"),this.At.push([jt.gt,"provider",[t,n]]),this}decorator(t,n){return Mn(_,t,"name"),Pn(n,"decorFn"),this.Tt.push([jt.gt,"decorator",[t,n]]),this}directive(t,n){return Mn(_,t,"name"),Pn(n,"directiveFactory"),this.At.push([jt.vt,"directive",[t,n]]),this}animation(t,n){return Mn(_,t,"name"),Pn(n,"animationFactory"),this.At.push([jt.bt,"register",[t,n]]),this}filter(t,n){return Mn(_,t,"name"),Mn(R,n,"filterFn"),this.At.push([jt.yt,"register",[t,n]]),this}controller(t,n){return Mn(_,t,"name"),Pn(n,"fictlFnlterFn"),this.At.push([jt.kt,"register",[t,n]]),this}wasm(t,n,e={},i={}){Mn(_,t,"name"),Mn(_,n,"src");const r=!!i.raw;return this.At.push([jt.gt,"provider",[t,class{$get(){return Ct(n,e).then(t=>r?t:t.exports)}}]]),this}worker(t,n,e){return Mn(_,t,"name"),Mn(_,n,"scriptPath"),this.At.push([jt.gt,"provider",[t,class{$get=()=>de(n,e)}]]),this}store(t,n,e,i){return Mn(_,t,"name"),Pn(n,"ctor"),this.At.push([jt.gt,"store",[t,S(n)?()=>n:n,e,i]]),this}rest(t,n,e,i={}){Mn(_,t,"name"),Mn(_,n,"url"),Mn(R,e,"entityClass");const r={name:t,url:n,entityClass:e,options:i};return this.Mt.push(r),this.At.push([jt.gt,"factory",[t,[jt.W,t=>t(n,e,i)]]]),this}sse(t,n,e={}){return Mn(_,t,"name"),Mn(_,n,"url"),this.At.push([jt.gt,"factory",[t,[jt.nt,t=>t(n,e)]]]),this}websocket(t,n,e=[],i={}){return Mn(_,t,"name"),Mn(_,n,"url"),this.At.push([jt.gt,"factory",[t,[jt.dt,t=>t(n,e,i)]]]),this}}class pe{static $nonscope=!0;constructor(t){if(this.Pt=void 0,this.l=void 0,this.It=[],this.Dt=!1,_(t)){const n=un(t);switch(!0){case n instanceof Element:this.element=n;break;case n instanceof Node:this.node=n}}else if(t instanceof NodeList)1===t.length?this.node=t[0]:(this.It=Array.from(t),this.Dt=!0);else if(t instanceof Element)this.element=t;else if(t instanceof Node)this.Pt=t;else{if(!k(t))throw new Error("Invalid element passed to NodeRef");1===t.length?this.node=t[0]:this.nodes=t}}get element(){return this.l}set element(t){this.l=t,this.Dt=!1}get node(){return this.Pt||this.l}set node(t){this.Pt=t,1===t.nodeType?this.l=t:this.l=void 0}set nodes(t){this.It=t,this.Dt=!0}get nodes(){return this.It}get nodelist(){if(0===this.It.length)return[];if(this.It[0].parentElement)return this.It[0].parentElement.childNodes;const t=document.createDocumentFragment();return this.It.forEach(n=>t.appendChild(n)),t.childNodes}get dom(){return this.Dt?this.nodelist:this.node}get size(){return this.Dt?this.It.length:1}Nt(){return this.Dt?this.It[0]:this.l||this.Pt}qt(){return this.Dt?this.It:this.l||this.Pt}Ut(){return this.Dt?Array.from(this.It):[this.l||this.Pt]}Vt(t){return this.Dt?this.It[t]:this.node}Ft(t,n){this.Dt?this.It[t]=n:this.node=n}Lt(){const t=this.Dt?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new pe(t)}Ht(){return void 0!==this.l}}const $e=pt("$controller"),ge=/^(\S+)(\s+as\s+([\w$]+))?$/;function we(t,n){if(_(t)){const n=ge.exec(t);if(n)return n[3]}}class ve{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,n){K(t,"controller"),S(t)?St(t).forEach(([t,n])=>{this.controllers.set(t,n)}):this.controllers.set(t,n)}$get=[jt.wt,t=>(n,e,i,r)=>{let s,o,c,u=r&&_(r)?r:null;if(i=!0===i,_(n)){if(o=n.match(ge),!o)throw $e("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",n);if(c=o[1],u=u||o[3],!(n=this.controllers.get(c)))throw $e("ctrlreg","The controller with the name '{0}' is not registered.",c);ft(n,c,!0)}if(i){const i=(k(n)?n[n.length-1]:n).prototype;return s=Object.create(i||null),u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name)),s?.constructor?.$scopename&&(e.$scope.$scopename=s.constructor.$scopename),function(){const i=t.invoke(n,s,e,c);return i!==s&&(S(i)||R(i))&&(s=i,u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name))),s}.bind(this,{instance:s,identifier:u})}return s=t.instantiate(n,e,c),u&&this.addIdentifier(e,u,s,c||n.name),s}];addIdentifier(t,n,e,i){if(!t||!S(t.$scope))throw pt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=e,t.$scope.$controllerIdentifier=n}}const be=pt("$sce"),ye={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl"};function ke(t){if("self"===t)return t;if(_(t)){if(t.indexOf("***")>-1)throw be("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(n=t,n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var n;if(M(t))return new RegExp(`^${t.source}$`);throw be("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ee{constructor(){let t=["self"],n=[];this.trustedResourceUrlList=function(n){return arguments.length&&(t=n.map(ke)),t},this.bannedResourceUrlList=function(t){return arguments.length&&(n=t.map(ke)),n},this.$get=[jt.wt,jt.et,jt.D,function(e,i,r){let s=function(){r(be("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,n){return"self"===t?Ln(n,Vn)||Ln(n,document.baseURI):!!t.exec(n.href)}function c(t){const n=function(t){this.Bt=function(){return t}};return t&&(n.prototype=new t),n.prototype.valueOf=function(){return this.Bt()},n.prototype.toString=function(){return this.Bt().toString()},n}e.has("$sanitize")&&(s=e.get("$sanitize"));const u=c(),h={};return h[ye.HTML]=c(u),h[ye.CSS]=c(u),h[ye.MEDIA_URL]=c(u),h[ye.URL]=c(h[ye.MEDIA_URL]),h[ye.JS]=c(u),h[ye.RESOURCE_URL]=c(h[ye.URL]),{trustAs:function(t,n){const e=y(t)&&kt(h,t)?h[t]:null;return e?null===n||b(n)||""===n?n:"string"!=typeof n?void r(be("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t)):new e(n):void r(be("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,n))},getTrusted:function(e,c){if(null===c||b(c)||""===c)return c;const u=kt(h,e)?h[e]:null;return u&&c instanceof u?c.Bt():(R(c.Bt)&&(c=c.Bt()),e===ye.MEDIA_URL||e===ye.URL?i(c.toString(),e===ye.MEDIA_URL):e===ye.RESOURCE_URL?function(e){const i=Fn(e.toString());let r,s,c=!1;for(r=0,s=t.length;r<s;r++)if(o(t[r],i)){c=!0;break}if(c)for(r=0,s=n.length;r<s;r++)if(o(n[r],i)){c=!1;break}return c}(c)?c:void r(be("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",c.toString())):e===ye.HTML?s():r(be("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof u?t.Bt():t}}}]}}function Se(){let t=!0;this.enabled=function(n){return arguments.length&&(t=!!n),t},this.$get=[jt.B,jt.X,(n,e)=>{const i=ht(ye);i.isEnabled=function(){return t},i.trustAs=e.trustAs,i.getTrusted=e.getTrusted,i.valueOf=e.valueOf,t||(i.trustAs=i.getTrusted=function(t,n){return n},i.valueOf=t=>t),i.parseAs=(t,e)=>{const r=n(e);return r.zt&&r.constant?r:n(e,n=>i.getTrusted(t,n))};const r=i.parseAs,{getTrusted:s}=i,{trustAs:o}=i;return St(ye).forEach(([t,n])=>{const e=t.toLowerCase();i[Ft(`parse_as_${e}`)]=function(t){return r(n,t)},i[Ft(`get_trusted_${e}`)]=function(t){return s(n,t)},i[Ft(`trust_as_${e}`)]=function(t){return o(n,t)}}),i}]}const _e={};function xe(t,n,e,i){return{restrict:"A",compile(r,s){const o=t(s[e]);return(t,e)=>{const r=e=>{try{o(t,{$event:e})}catch(t){n(t)}};e.addEventListener(i,r),t.$on("$destroy",()=>e.removeEventListener(i,r))}}}}function Oe(t,n,e,i,r){return{restrict:"A",compile(s,o){const c=t(o[i]);return t=>{const i=e=>{try{c(t,{$event:e})}catch(t){n(t)}};e.addEventListener(r,i),t.$on("$destroy",()=>e.removeEventListener(r,i))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove".split(" ").forEach(t=>{const n=vt(`ng-${t}`);_e[n]=[jt.B,jt.D,(e,i)=>xe(e,i,n,t)]});const Ce=pt("$compile"),je=/^\w/,Ae=document.createElement("div");class Te{static $nonscope=!0;constructor(t,n,e,i,r){if(this.C=t,this.D=n,this.K=e,this.$attr={},r){const t=Object.keys(r),n=this;for(let e=0,i=t.length;e<i;e++){const i=t[e];n[i]=r[i]}}this.Wt=i}l(){return this.Wt?.Nt()}$normalize=vt;$addClass(t){t&&t.length>0&&(bt(this.l())?this.C.addClass(this.l(),t):this.Wt?.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(bt(this.l())?this.C.removeClass(this.l(),t):this.Wt?.element.classList.remove(t))}$updateClass(t,n){const e=Re(t,n);e&&e.length&&(bt(this.l())?this.C.addClass(this.l(),e):this.Wt?.element.classList.add(...e.trim().split(/\s+/)));const i=Re(n,t);i&&i.length&&(bt(this.l())?this.C.removeClass(this.l(),i):this.Wt?.element.classList.remove(...i.trim().split(/\s+/)))}$set(t,n,e,i){const r=sn(this.l(),t),s=l[t];let o=t;r?(this.l()[t]=n,i=r):s&&(this[s]=n,o=s),this[t]=n,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=U(t,"-"));const c=this.Wt?.node.nodeName.toLowerCase();let u;if("img"===c&&"srcset"===t?this[t]=u=this.sanitizeSrcset(n,"$set('srcset', value)"):u=n,!1!==e){const t=this.l();O(u)?t.removeAttribute(i):je.test(i)?r&&!1===u?t.removeAttribute(i):r?t.toggleAttribute(i,u):t.setAttribute(i,u):this.setSpecialAttr(this.l(),i,u)}const{Jt:h}=this;h&&h[o]&&h[o].forEach(t=>{try{t(u)}catch(t){this.D(t)}})}$observe(t,n){const e=this.Jt||(this.Jt=Object.create(null)),i=e[t]||(e[t]=[]);return i.push(n),i.$$inter||!kt(this,t)||b(this[t])||n(this[t]),function(){J(i,n)}}setSpecialAttr(t,n,e){Ae.innerHTML=`<span ${n}>`;const{attributes:i}=Ae.firstChild,r=i[0];i.removeNamedItem(r.name),r.value=e??"",t.attributes.setNamedItem(r)}sanitizeSrcset(t,n){let e;if(!t)return t;if(!_(t))throw Ce("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',n,t.toString());let i="";const r=q(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(s),c=Math.floor(o.length/2);for(e=0;e<c;e++){const t=2*e;i+=this.K.getTrustedMediaUrl(q(o[t])),i+=` ${q(o[t+1])}`}const u=q(o[2*e]).split(/\s/);return i+=this.K.getTrustedMediaUrl(q(u[0])),2===u.length&&(i+=` ${q(u[1])}`),i.replace(/unsafe:unsafe/g,"unsafe")}}function Re(t,n){const e=new Set(t.split(/\s+/)),i=new Set(n.split(/\s+/));return Array.from(e).filter(t=>!i.has(t)).join(" ")}function Me(t,n){return{restrict:"A",compile:()=>(e,i)=>{""===n&&(n=t);const r=Vt(n);e[r]||(e[r]=i.getAttribute(t));const s=new MutationObserver(n=>{const i=n[0].target.getAttribute(t);e[r]!==i&&(e[r]=i)});s.observe(i,{attributes:!0,attributeFilter:[t]}),e.$on("$destroy",()=>{s.disconnect()})}}}const Pe=pt("$compile"),Ie=["ngIf","ngRepeat"],De=["ngSrc","ngSrcset","src","srcset"],Ne=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,qe=/^(on[a-z]+|formaction)$/,Ue=t=>()=>t,Ve="Directive";class Fe{static $inject=[jt.gt,jt.it];constructor(t,n){const e={},i=Object.create(null);function r(t,n,e){const r=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,s=Object.create(null);return St(t).forEach(([t,o])=>{if((o=o.trim())in i)return void(s[t]=i[o]);const c=o.match(r);if(!c)throw Pe("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",n,t,o,e?"controller bindings definition":"isolate scope definition");s[t]={mode:c[1][0],collection:"*"===c[2],optional:"?"===c[3],attrName:c[4]||t},c[4]&&(i[o]=s[t])}),s}function s(t,n){const e={isolateScope:null,bindToController:null};if(S(t.scope)&&(!0===t.bindToController?(e.bindToController=r(t.scope,n,!0),e.isolateScope={}):e.isolateScope=r(t.scope,n,!1)),S(t.bindToController)&&(e.bindToController=r(t.bindToController,n,!0)),e.bindToController&&!t.controller)throw Pe("noctrl","Cannot bind to controller without directive '{0}'s controller.",n);return e}function o(t){const n=t.require||t.controller&&t.name;if(!k(n)&&S(n)){const t=St(n);for(let e=0,i=t.length;e<i;e++){const[i,r]=t[e],s=r.match(Ne);s&&(r.substring(s[0].length)||(n[i]=s[0]+i))}}return n}function c(t,n){if(t&&(!_(t)||!/[EA]/.test(t)))throw Pe("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,n);return t||"EA"}this.directive=function n(i,r){return lt(i,"name"),K(i,"directive"),_(i)?(function(t){const n=t.charAt(0);if(!n||n!==n.toLowerCase())throw Pe("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Pe("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),lt(r,"directiveFactory"),kt(e,i)||(e[i]=[],t.factory(i+Ve,[jt.wt,jt.D,function(t,n){const r=[];for(let s=0,u=e[i].length;s<u;s++){const u=e[i][s];try{let n=t.invoke(u);R(n)?n={compile:Ue(n)}:!n.compile&&n.link&&(n.compile=Ue(n.link)),n.priority=n.priority||0,n.index=s,n.name=n.name||i,n.require=o(n),n.restrict=c(n.restrict,i),r.push(n)}catch(t){n(t)}}return r}])),e[i].push(r)):St(i).forEach(([t,e])=>n(t,e)),this},this.component=function(t,n){if(!_(t))return St(t).forEach(([t,n])=>this.component(t,n)),this;const e=n.controller||function(){};function i(t){function i(n){return R(n)||k(n)?function(e,i){return t.invoke(n,this,{$element:e,$attrs:i})}:n}const r=n.template||n.templateUrl?n.template:"",s={controller:e,controllerAs:we(n.controller)||n.controllerAs||"$ctrl",template:i(r),templateUrl:i(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return St(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(s[t]=n)}),s}return St(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(i[t]=n,R(e)&&(e[t]=n))}),i.$inject=[jt.wt],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(t){if(!y(t))return n.aHrefSanitizationTrustedUrlList();n.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!y(t))return n.imgSrcSanitizationTrustedUrlList();n.imgSrcSanitizationTrustedUrlList(t)};let u=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(u=t,this):u};const a=Object.create(null);this.addPropertySecurityContext=function(t,n,e){const i=`${t.toLowerCase()}|${n.toLowerCase()}`;if(i in a&&a[i]!==e)throw Pe("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,n,a[i],e);return a[i]=e,this},function(){function t(t,n){n.forEach(n=>{a[n.toLowerCase()]=t})}t(ye.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(ye.CSS,["*|style"]),t(ye.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(ye.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(ye.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=[jt.wt,jt.V,jt.D,jt.ot,jt.B,jt.M,jt.K,jt.C,function(t,n,i,r,o,c,l,f){let d;function p(){for(let t=0,n=d.length;t<n;++t)try{d[t]()}catch(t){i(t)}d=void 0}const $=n.startSymbol(),g=n.endSymbol(),w="{{"===$&&"}}"===g?t=>t:t=>t.replace(/\{\{/g,$).replace(/}}/g,g),v=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return E;function E(t,n,e,i,r){let s=new pe(t),o=x(s,n,e,i,r),c=null;return function(t,n,e){if(!s)throw Pe("multilink","This element has already been linked.");lt(t,"scope"),s.l&&Xt(s.l,t),r&&r.needsNewScope&&(t=t.$parent.$new()),e=e||{};let{Zt:i}=e;const{transcludeControllers:u,Gt:h}=e;let a;if(i&&i.Kt&&(i=i.Kt),c||(c=function(t){const n=t;return n&&"foreignobject"!==z(n)&&toString.call(n).match(/SVG/)?"svg":"html"}(h)),"html"!==c){const t=un("<div></div>");t.append(s.node);const n=W(c,t.innerHTML);a=new pe(n[0])}else a=n?s.Lt():s;if(u)for(const t in u)lt(a.element,"element"),Zt(a.element,`$${t}Controller`,u[t].instance);return n&&n(a.dom,t),o&&o(t,a,i),n||(s=o=null),a.qt()}}function x(t,n,e,r,s){const o=[];let c,u=!1;for(let h=0;h<t.size;h++){const a=new Te(f,i,l),d=C(t.Vt(h),a,0===h?e:void 0,r);let m,p;d.length&&(m=A(d,t.Vt(h),a,n,null,[],[],Object.assign({},s,{index:h,parentNodeRef:t,ctxNodeRef:t})));const $=m?.nodeLinkFn,{childNodes:g}=t.Vt(h);if($&&m.terminal||!g||!g.length)p=null;else{const t=$?(m.transcludeOnThisElement||!m.templateOnThisElement)&&m.transclude:n;p=x(new pe(g),t)}($||p)&&(o.push({index:h,nodeLinkFnCtx:m,childLinkFn:p}),u=!0,c=c||$),s=null}return u?function(e,i,r){lt(i,"nodeRef");let s=[];if(c){const n=i.Dt?i.nodes.length:1;s=new Array(n),o.forEach(n=>{const e=n.index;0===e?s[e]=i.Dt?i.nodes[e]:i.node:t.Vt(e)&&(s[e]=i.nodes[e])})}else i.Dt?i.nodes.forEach(t=>s.push(t)):s.push(i.node);o.forEach(({index:t,nodeLinkFnCtx:i,childLinkFn:o})=>{const c=s[t];let u,h;c.stable=!0,i?.nodeLinkFn?(u=i.newScope?e.$new():e,h=i.transcludeOnThisElement?O(e,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&n?O(e,n):null,i?.newScope&&Xt(c,u),i.nodeLinkFn(o,u,c,h)):o&&o(e,new pe(c.childNodes),r)})}:null}function O(t,n,e){function i(i,r,s,o,c){return i||(i=t.$transcluded(c)),n(i,r,{Zt:e,transcludeControllers:s,Gt:o})}const r=i.Xt=Object.create(null);for(const i in n.Xt)n.Xt[i]?r[i]=O(t,n.Xt[i],e):r[i]=null;return i}function C(t,e,r,s){const c=[],{nodeType:u}=t,a=e.$attr;let l;switch(u){case 1:l=t.nodeName.toLowerCase(),s!==vt(l)&&N(c,vt(l),"E",r);for(let n=0;n<t.attributes?.length;n++){let u=!1,l=!1,f=!1,d=!1,m=!1;const p=t.attributes[n];let{name:$}=p;const{value:g}=p;let w=vt($.toLowerCase());const b=w.match(v);b&&(u="Attr"===b[1],l="Prop"===b[1],f="On"===b[1],d="Observe"===b[1],m="Window"===b[1],$=$.replace(h,"").toLowerCase().substring(4+b[1].length).replace(/_(.)/g,(t,n)=>n.toUpperCase())),l||f||m?(e[w]=g,a[w]=p.name,l?J(t,c,w,$):f?c.push(xe(o,i,w,$)):c.push(Oe(o,i,window,w,$))):d?c.push(Me($,g)):(w=vt($.toLowerCase()),a[w]=$,!u&&kt(e,w)||(e[w]=g,sn(t,w)&&(e[w]=!0)),K(t,c,g,w,u),w!==s&&N(c,w,"A",r))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case 3:!function(t,e){const i=n(e,!0);i&&t.push({priority:0,compile:()=>(t,n)=>{i.expressions.forEach(e=>{t.$watch(e,()=>{const e=i(m(t));1===n.nodeType?n.innerHTML=e:n.nodeValue=e})})}})}(c,t.nodeValue)}return c.sort(L),c}function j(t,n,e,i,r,s){let o;return t?E(n,e,i,r,s):function(){return o||(o=E(n,e,i,r,s),n=e=s=null),o.apply(this,arguments)}}function A(t,n,e,r,s,o,u,h){h=h||{};let a=-Number.MAX_VALUE,d=!1,{Yt:m,Qt:p,tn:$,nn:g,en:v,hasElementTranscludeDirective:y}=h;const{ctxNodeRef:E,parentNodeRef:x}=h;let O=!1,A=!1,T=new pe(n);const{index:D}=h;let N,L,H;e.Wt=T;let J,Z=s,G=r,K=!1,Q=!1,et=function(t,s,h,a){let d,g,w,v,E,_,x,O,C=s;if(n===h?(x=e,_=e.Wt):(_=new pe(h),x=new Te(f,i,l,_,e)),v=s,$?w=s.$newIsolate():m&&(v=s.$parent),a){const t=function(t,n,e,i){let r;if(I(t)||(i=e,e=n,n=t,t=void 0),y&&(r=E),e||(e=y?_.node.parentElement:_.node),i){const s=a.Xt[i];if(s)return s(t,n,r,e,C);if(b(s))throw Pe("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,en(_.element));return}return a(t,n,r,e,C)};t.Kt=a,t.isSlotFilled=function(t){return!!a.Xt[t]},r=t}p&&(E=function(t,n,e,i,r,s,o){const u=Object.create(null);for(const h in i){const a=i[h],l={$scope:a===o||a.$$isolateScope?r:s,$element:t.node,$attrs:n,$transclude:e};let{controller:f}=a;"@"===f&&(f=n[a.name]);const d=c(f,l,!0,a.controllerAs);u[a.name]=d,t.Ht()&&Zt(t.element,`$${a.name}Controller`,d.instance)}return u}(_,x,r,p,w,s,$)),$&&(w.$target.rn=$.rn,O=nt(s,x,w,w.rn,$),O.removeWatches&&w.$on("$destroy",O.removeWatches));for(const t in E){const n=p[t],e=E[t],i=n.sn.bindToController,r=e();e.instance=v.$new(r),Zt(_.node,`$${n.name}Controller`,e.instance),e.bindingInfo=nt(v,x,e.instance,i,n)}for(p&&St(p).forEach(([t,n])=>{const{require:e}=n;n.bindToController&&!k(e)&&S(e)&&F(E[t].instance,M(t,e,_.element,E))}),E&&Object.values(E).forEach(t=>{const n=t.instance;if(R(n.$onChanges))try{n.$onChanges(t.bindingInfo.initialChanges)}catch(t){i(t)}if(R(n.$onInit))try{n.$target.$onInit()}catch(t){i(t)}R(n.$onDestroy)&&v.$on("$destroy",()=>{n.$onDestroy()})}),d=0,g=o.length;d<g;d++){const t=o[d],n=t.require&&M(t.directiveName,t.require,_.element,E);try{t(t.isolateScope?w:s,_.node,x,n,r)}catch(t){i(t)}}for($&&($.template||null===$.templateUrl)&&(C=w),t&&h&&h.childNodes&&h.childNodes.length&&t(C,new pe(h.childNodes),a),d=u.length-1;d>=0;d--){const t=u[d],n=t.require&&M(t.directiveName,t.require,_.node,E);try{t.isolateScope&&Yt(_.element,w),t(t.isolateScope?w:s,_.node,x,n,r)}catch(t){i(t)}}E&&Object.values(E).forEach(t=>{const n=t.instance;R(n.$postLink)&&n.$postLink()})};for(let s=0,c=t.length;s<c&&(N=t[s],!(a>N.priority));s++){J=N.scope,J&&(N.templateUrl||(S(J)?(B("new/isolated scope",$||m,N,T),$=N):B("new/isolated scope",$,N,T)),m=m||N),L=N.name;const l=N.replace&&(N.templateUrl||N.template),f=N.transclude&&!Ie.includes(N.name);if(!K&&(l||f)){let n;for(let e=s+1;n=t[e++];)if(n.transclude&&!Ie.includes(n.name)||n.replace&&(n.templateUrl||n.template)){Q=!0;break}K=!0}if(!N.templateUrl&&N.controller&&(p=p||Object.create(null),B(`'${L}' controller`,p[L],N,T),p[L]=N),J=N.transclude,J)if(O=!0,Ie.includes(N.name)||(B("transclusion",v,N,T),v=N),"element"===J)y=!0,a=N.priority,H=T,T=new pe(document.createComment("")),e.Wt=T,n=T.node,E.node=n,X(new pe(H.l),n,D),G=j(Q,H.l,r,a,Z&&Z.name,{en:v});else{const t=Object.create(null);let e;if(S(J)){e=document.createDocumentFragment();const n=Object.create(null),i=Object.create(null);St(J).forEach(([e,r])=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,n[r]=e,t[e]=null,i[e]=s}),T.element.childNodes.forEach(r=>{const s=n[vt(z(r))];s?(i[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):e.appendChild(r)}),St(i).forEach(([t,n])=>{if(!n)throw Pe("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const n in t)if(t[n]){const e=t[n].childNodes;t[n]=j(Q,e,r)}e=e.childNodes}else e=n.cloneNode(!0).childNodes;an(n),G=j(Q,e,r,void 0,void 0,{needsNewScope:N.$$isolateScope||N.$$newScope}),G.Xt=t}if(N.template)if(A=!0,B("template",g,N,T),g=N,J=R(N.template)?N.template(T.node,e):N.template,J=w(J),N.replace){if(Z=N,H=Bt(J)?[]:Le(W(N.templateNamespace,q(J))),_(H)&&(H=Array.from(hn(H)).filter(t=>1===t.nodeType)),n=H[0],1!==H.length||1!==n.nodeType)throw Pe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",L,"");X(T,n),x&&x.Ft(D,n);const i={$attr:{}},r=C(n,i),o=t.splice(s+1,t.length-(s+1));($||m)&&P(r,$,m),t=t.concat(r).concat(o),U(e,i),c=t.length}else T.Ht()&&(T.element.innerHTML=J);if(N.templateUrl)A=!0,B("template",g,N,T),g=N,N.replace&&(Z=N),et=V(t.splice(s,t.length-s),T,e,n,O&&G,o,u,{index:D,Qt:p,Yt:m!==N&&m,tn:$,nn:g,en:v,Gt:h.Gt}),c=t.length;else if(N.compile)try{const t=N.compile(T.Nt(),e,G),n=N.$$originalDirective||N;R(t)?it(null,tt(n,t)):t&&it(tt(n,t.pre),tt(n,t.post))}catch(t){i(t)}N.terminal&&(d=!0,a=Math.max(a,N.priority))}return h.hasElementTranscludeDirective=y,{nodeLinkFn:et,terminal:d,transclude:G,transcludeOnThisElement:O,templateOnThisElement:A,newScope:m&&!0===m.scope};function it(t,n){t&&(t.require=N.require,t.directiveName=L,($===N||N.$$isolateScope)&&(t=Y(t,{isolateScope:!0})),o.push(t)),n&&(n.require=N.require,n.directiveName=L,($===N||N.$$isolateScope)&&(n=Y(n,{isolateScope:!0})),u.push(n))}}function M(t,n,e,i){let r;if(_(n)){const s=n.match(Ne),o=n.substring(s[0].length),c=s[1]||s[3],u="?"===s[2];if("^^"===c?e=e.parentElement?e.parentElement:void 0:(r=i&&i[o],r=r&&r.instance),!r){const t=`$${o}Controller`;r="^^"===c&&e&&9===e.nodeType?null:e?c?tn(e,t):Gt(e,t):void 0}if(!r&&!u)throw Pe("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(k(n)){r=[];for(let s=0,o=n.length;s<o;s++)r[s]=M(t,n[s],e,i)}else S(n)&&(r={},St(n).forEach(([n,s])=>{r[n]=M(t,s,e,i)}));return r||null}function P(t,n,e){for(let i=0,r=t.length;i<r;i++)t[i]=H(t[i],{$$isolateScope:n,$$newScope:e})}function N(n,i,r,o){let c=!1;if(kt(e,i))for(let e,u=t.get(i+Ve),h=0,a=u.length;h<a;h++)if(e=u[h],(b(o)||o>e.priority)&&-1!==e.restrict.indexOf(r)){if(!e.sn){const t=e.sn=s(e,e.name);S(t.isolateScope)&&(e.rn=t.isolateScope)}n.push(e),c=e}return c}function U(t,n){const e=n.$attr,i=t.$attr;St(t).forEach(([i,r])=>{"$"!==i[0]&&"_"!==i[0]&&(n[i]&&n[i]!==r&&(r.length?r+=("style"===i?";":" ")+n[i]:r=n[i]),t.$set(i,r,!0,e[i]))}),St(n).forEach(([n,r])=>{kt(t,n)||"$"===n.charAt(0)||(t[n]=r,"class"!==n&&"style"!==n&&(i[n]=e[n]))})}function V(t,n,e,s,o,c,u,h){let a,l,f,d=[];const m=n.Nt(),p=t.shift(),$=H(p,{templateUrl:null,transclude:null,replace:null,$$originalDirective:p});let g;g=R(p.templateUrl)?p.templateUrl(n.element,e):p.templateUrl;const{templateNamespace:v}=p;return an(n.element),r(g).then(i=>{let r,b,y,k;if(i=w(i),p.replace){if(y=Bt(i)?[]:_(i)?Array.from(hn(i)).filter(t=>8!==t.nodeType&&3!==t.nodeType):Le(W(v,q(i))),r=y[0],1!==y.length||1!==r.nodeType)throw Pe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",p.name,g);b={$attr:{}},X(n,r,h.index);const s=C(r,b);S(p.scope)&&P(s,!0),t=s.concat(t),U(e,b)}else r=m,n.element.innerHTML=i;for(t.unshift($),f=A(t,r,e,o,p,c,u,{...h,ctxNodeRef:n}),a=f?.nodeLinkFn,s&&St(s).forEach(([t,e])=>{e===r&&(s[t]=n)}),l=x(new pe(n.Nt().childNodes),o);d.length;){const t=d.shift(),e=d.shift(),i=d.shift();let s=n.Nt();if(!t.cn){if(e!==m){const t=e.className;h.hasElementTranscludeDirective&&p.replace||(s=r.cloneNode(!0),e.appendChild(s));try{""!==t&&n.element.classList.forEach(t=>e.classList.add(t))}catch{}}k=f.transcludeOnThisElement?O(t,f.transclude,i):i,a(l,t,s,k)}}d=null}).catch(t=>{T(t)?i(t):i(new Error(t))}),function(t,n,e,i,r){let s=r;n.cn||(d?d.push(n,e,i):(a.transcludeOnThisElement&&(s=O(n,a.transclude,r)),a(l,n,e,i,s)))}}function L(t,n){const e=n.priority-t.priority;return 0!==e?e:t.name!==n.name?t.name<n.name?-1:1:t.index-n.index}function B(t,n,e,i){if(n)throw Pe("multidir","Multiple directives [{0}, {1}] asking for {3} on: {4}",n.name,e.name,t,en(i.Nt()))}function W(t,n){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const e=document.createElement("div");return e.innerHTML=`<${t}>${n}</${t}>`,e.childNodes[0].childNodes}default:return n}}function J(t,n,e,i){if(qe.test(i))throw Pe("nodomevents","Property bindings for HTML DOM event properties are disallowed");const r=z(t),s=function(t,n){const e=n.toLowerCase();return a[`${t}|${e}`]||a[`*|${e}`]}(r,i);let c=t=>t;"srcset"!==i||"img"!==r&&"source"!==r?s&&(c=l.getTrusted.bind(l,s)):c=t=>function(t){if(!t)return t;if(!_(t))throw Pe("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',"ng-prop-srcset",t.toString());let n="";const e=q(t),i=/\s/.test(e)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=e.split(i),s=Math.floor(r.length/2);let o;for(o=0;o<s;o++){const t=2*o;n+=l.getTrustedMediaUrl(q(r[t])),n+=` ${q(r[t+1])}`}const c=q(r[2*o]).split(/\s/);return n+=l.getTrustedMediaUrl(q(c[0])),2===c.length&&(n+=` ${q(c[1])}`),n}(l.valueOf(t)),n.push({priority:100,compile:function(t,n){const r=o(n[e]);return{pre:function(t,s){function o(){const n=r(t);s[i]=c(n)}o(),t.$watch(i,o),t.$watch(n[e],t=>{l.valueOf(t),o()})}}}})}function K(t,e,i,r,s){const o=z(t),c=function(t,n){return"srcdoc"===n?l.HTML:"src"===n||"ngSrc"===n?-1===["img","video","audio","source","track"].indexOf(t)?l.RESOURCE_URL:l.MEDIA_URL:"xlinkHref"===n?"image"===t?l.MEDIA_URL:"a"===t?l.URL:l.RESOURCE_URL:"form"===t&&"action"===n||"base"===t&&"href"===n||"link"===t&&"href"===n?l.RESOURCE_URL:"a"!==t||"href"!==n&&"ngHref"!==n?void 0:l.URL}(o,r),u=!s,h=De.includes(r)||s;let a=n(i,u,c,h);if(a){if("multiple"===r&&"select"===o)throw Pe("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",en(t.outerHTML));if(qe.test(r))throw Pe("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:()=>({pre:function(t,e,s){const o=s.Jt||(s.Jt=Object.create(null)),u=s[r];u!==i&&(a=u&&n(u,!0,c,h),i=u),a&&(s[r]=a(t),(o[r]||(o[r]=[])).$$inter=!0,a.expressions.forEach(n=>{(s.Jt&&s.Jt[r].h||t).$watch(n,()=>{const n=a(t);"class"===r?s.$updateClass(n,s.l().classList.value):s.$set(r,"srcset"===r?l.getTrustedMediaUrl(n):n)})}),0===a.expressions.length&&s.$set(r,"srcset"===r?l.getTrustedMediaUrl(u):u))}})})}}function X(t,n,e){const i=t.Nt().parentNode;if(i)if(y(e)){const t=i.childNodes[e];t&&i.replaceChild(n,t)}else i.insertBefore(n,i.firstChild);const r=document.createDocumentFragment();t.Ut().forEach(t=>{r.appendChild(t)}),t.node=n}function Y(t,n){return F(function(){return t.apply(null,arguments)},t,n)}function Q(t,n){if(u)throw Pe("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,n)}function nt(t,e,i,r,s){const c=[],u={};let h;function a(n,e,r){R(i.$onChanges)&&(d||(t.$postUpdate(p),d=[]),h||(h={},d.push(l)),h[n]={currentValue:e,firstChange:r})}function l(){i.$onChanges&&h&&i.$onChanges(h),h=void 0}return r&&St(r).forEach(([r,h])=>{const{attrName:f,optional:d,mode:m}=h;let p,$,g,w,v,k=!0,E=!0;switch(m){case"@":d||kt(e,f)||(Q(f,s.name),i[r]=e[f]=void 0),v=e.$observe(f,t=>{(_(t)||D(t))&&(a(r,t,E),i[r]=t,k?k=!1:(l(),E=!1))}),e.Jt[f].h=t,p=e[f],_(p)?i[r]=n(p)(t):D(p)&&(i[r]=p),u[r]={currentValue:i[r],firstChange:!0},c.push(v);break;case"=":{if(!kt(e,f)){if(d)break;Q(f,s.name),e[f]=void 0}if(d&&!e[f])break;const n=e[f];$=n&&o(n),w=$&&$.zt?G:Z,g=$&&$.un||function(){throw Pe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name)},p=i.$target[r]=$&&$(t.$target);const u=function(n){return w(n,i[r])||(w(n,p)?g(t,n=i[r]):i[r]=n),p=n,p};if(e[f]){const n=e[f];t.$watch(n,n=>{const i=o(e[f],u);n?($.zt?t.$target[f]=n:t[f]=n,i(t)):t[f]=t[e[f]]},!0)}v=i.$watch(f,n=>{if(n!==p||b(e[f])){if($&&$.hn&&!$.zt||b(e[f])&&y(n))throw i.$target[f]=p,Pe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name);S(n)?St(n).forEach(([n,e])=>{t.$target[n]=e}):(g(t.$target,p=n),t.$handler.an.get(e[f])?.forEach(e=>{e.listenerFn(n,t.$target)}))}},!0),c.push(v);break}case"<":if(!kt(e,f)){if(d)break;Q(f,s.name),e[f]=void 0}if(d&&!e[f])break;$=e[f]&&o(e[f]),i.$target[r]=$&&$(t.$target),u[r]={currentValue:i.$target[r],firstChange:E},t.$target.attrs=e,e[f]&&(v=t.$watch(e[f],t=>{i.$target[r]=t,a(r,t,E),E&&(E=!1)},!0),c.push(v));break;case"&":if(d||kt(e,f)||Q(f,s.name),$=kt(e,f)?o(e[f]):void 0,!$&&d)break;i.$target[r]=function(n){return $(t.$target,n)}}}),{initialChanges:u,removeWatches:c.length&&function(){for(let t=0,n=c.length;t<n;++t)c[t]()}}}}]}}function Le(t){let n=t.length;if(n<=1)return t;for(;n--;){const e=t[n];(8===e.nodeType||3===e.nodeType&&""===e.nodeValue.trim())&&[].splice.call(t,n,1)}return t}const He={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],ln:(t,n)=>{t.$name=n},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},dn:()=>{}},Be="ng-pending",ze="ng-submitted";class We{static $nonscope=!0;static $inject=[jt.l,jt.u,jt.h,jt.C,jt.V];constructor(t,i,r,s,o){this.mn=bt(t),this.pn=[],this.$name=o(i.name||i.ngForm||"")(r),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$n=He,this.l=t,this.C=s,this.$error={},this.gn={},this.$pending=void 0,this.wn={};const c=this.l.classList.contains(n);this.wn[n]=c,this.wn[e]=!c,this.$target={}}$rollbackViewValue(){this.pn.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.pn.forEach(t=>{t.$commitViewValue()})}$addControl(t){K(t.$name,"input"),this.pn.push(t),t.$name&&(this[t.$name]=t),t.$target.$n=this}$getControls(){return ht(this.pn)}ln(t,n){const e=t.$name;this[e]===t&&delete this[e],this[n]=t,t.$name=n}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(n=>{this.$setValidity(n,null,t)}),this.$error&&Object.keys(this.$error).forEach(n=>{this.$setValidity(n,null,t)}),this.gn&&Object.keys(this.gn).forEach(n=>{this.$setValidity(n,null,t)}),J(this.pn,t),t.$target.$n=He}$setDirty(){bt(this.l)?(this.C.removeClass(this.l,i),this.C.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.$dirty=!0,this.$pristine=!1,this.$n.$setDirty()}$setPristine(){bt(this.l)?this.C.setClass(this.l,i,`${r} ${ze}`):(this.l.classList.remove(r,ze),this.l.classList.add(i)),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.pn.forEach(t=>{t.$setPristine()})}$setUntouched(){this.pn.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.$n&&t.$n!==He;)t=t.$n;t.dn()}dn(){bt(this.l)?this.C.addClass(this.l,ze):this.l.classList.add(ze),this.$submitted=!0,this.pn.forEach(t=>{t.dn&&t.dn()})}set(t,n,e){const i=t[n];i?-1===i.indexOf(e)&&i.push(e):(t=m(t))[n]=[e]}unset(t,n,e){const i=t[n];i&&(-1===J(i,e)&&J(i,e.$target),0===i.length&&delete t[n])}$setValidity(t,i,r){const s=this;let o;function c(t,i,r){i=i?`-${U(i,"-")}`:"",Ke(t,n+i,!0===r),Ke(t,e+i,!1===r)}b(i)?function(t,n,e,i){t[n]||(t[n]={}),s.set(t[n],e,i)}(this,"$pending",t,r):function(t,n,e,i){t[n]&&s.unset(t[n],e,i),yt(t[n])&&(t[n]=void 0)}(this,"$pending",t,r),D(i)?i?(this.unset(this.$error,t,r),this.set(this.gn,t,r)):(this.set(this.$error,t,r),this.unset(this.gn,t,r)):(this.unset(this.$error,t,r),this.unset(this.gn,t,r)),this.$pending?(Ke(this,Be,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(Ke(this,Be,!1),this.$valid=yt(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.gn[t]||null),c(this,t,o),this.$n.$setValidity(t,o,this)}}const Je=function(t){return[jt.B,function(e){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:We,compile:function(r,s){r.classList.add(i,n);const o=s.name?"name":!(!t||!s.ngForm)&&"ngForm";return{pre:function(t,n,i,r){const s=r[0];if(!("action"in i)){const t=function(t){s.$commitViewValue(),s.$setSubmitted(),t.preventDefault()};n.addEventListener("submit",t),n.addEventListener("$destroy",()=>{setTimeout(()=>{n.removeEventListener("submit",t)},0,!1)})}(r[1]||s.$n).$addControl(s);const c=o?""===(u=s.$name)?e('this[""]').un:e(u).un:()=>{};var u;o&&(c(t,s),i.$observe(o,n=>{s.$name!==n&&(t.$target[s.$name]=void 0,s.$n.ln(s,n),t.$target!==s.$n&&s.$n!==He||(t.$target[n]=s))})),n.addEventListener("$destroy",()=>{s.$target.$n.$removeControl(s),c(t,void 0),F(s,He)})}}}}}]},Ze=Je(),Ge=Je("ngForm");function Ke(t,n,e){e&&!t.wn[n]?(t.mn?t.C.addClass(t.l,n):t.l.classList.add(n),t.wn[n]=!0):!e&&t.wn[n]&&(t.mn?t.C.removeClass(t.l,n):t.l.classList.remove(n),t.wn[n]=!1)}const Xe=/(\s+|^)default(\s+|$)/;class Ye{static $nonscope=!0;static $inject=[jt.u,jt.h];constructor(t,n){this.u=t,this.h=n,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:ti,n=this.h.$eval(this.u.ngModelOptions);this.$options=t.createChild(n)}}class Qe{static $nonscope=!0;constructor(t){this.vn=t}getOption(t){return this.vn[t]}createChild(t){let n=!1;return St(t=Object.assign({},t)).forEach(([e,i])=>{"$inherit"===i?"*"===e?n=!0:(t[e]=this.vn[e],"updateOn"===e&&(t.updateOnDefault=this.vn.updateOnDefault)):"updateOn"===e&&(t.updateOnDefault=!1,t[e]=q(i.replace(Xe,()=>(t.updateOnDefault=!0," "))))},this),n&&(delete t["*"],ei(t,this.vn)),ei(t,ti.vn),new Qe(t)}}const ti=new Qe({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1});function ni(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:Ye}}function ei(t,n){Et(n).forEach(e=>{y(t[e])||(t[e]=n[e])})}const ii=pt("ngModel");class ri{static $nonscope=!0;static $inject=[jt.h,jt.D,jt.u,jt.l,jt.B,jt.C,jt.V];constructor(t,i,r,s,o,c,u){this.mn=bt(s),this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.bn=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.gn={},this.$pending=void 0,this.$name=u(r.name||"",!1)(t),this.$n=He,this.$options=ti,this.yn="",this.kn=this.kn.bind(this),this.En=o(r.ngModel),this.Sn=this.En.un,this._n=this.En,this.xn=this.Sn,this.On=null,this.Cn=void 0,this.jn="parse",this.An=0,this.h=t,this.Tn=r,this.l=s,this.C=c,this.B=o,this.D=i,this.Rn=!1,this.wn={};const h=this.l.classList.contains(n);var a;this.wn[n]=h,this.wn[e]=!h,this.Mn=new Set,(a=this).h.$watch("value",()=>{const t=a._n(a.h);t===a.$modelValue||Number.isNaN(a.$modelValue)&&Number.isNaN(t)||a.Pn(t)})}set(t,n){t[n]=!0}unset(t,n){delete t[n]}$setValidity(t,i){const r=this;function s(t,i,r){i=i?`-${U(i,"-")}`:"",Ke(t,n+i,!0===r),Ke(t,e+i,!1===r)}let o;b(i)?function(t,n,e){t[n]||(t[n]={}),r.set(t[n],e)}(this,"$pending",t):function(t,n,e){t[n]&&r.unset(t[n],e),yt(t[n])&&(t[n]=void 0)}(this,"$pending",t),D(i)?i?(delete this.$error[t],this.set(this.gn,t)):(this.set(this.$error,t),delete this.gn[t]):(delete this.$error[t],delete this.gn[t]),this.$pending?(Ke(this,Be,!0),this.$valid=this.$invalid=void 0,s(this,"",null)):(Ke(this,Be,!1),this.$valid=yt(this.$error),this.$invalid=!this.$valid,s(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.gn[t]||null),s(this,t,o),this.$n.$setValidity(t,o,this)}In(){if(this.$options.getOption("getterSetter")){const t=this.B(`${this.Tn.ngModel}()`),n=this.B(`${this.Tn.ngModel}(_$p)`);this._n=n=>{let e=this.En(n);return R(e)&&(e=t(n)),e},this.xn=(t,e)=>{R(this.En(t))?n(t,{Dn:e}):this.Sn(t,e)}}else if(!this.En.un)throw ii("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.Tn.ngModel,en(this.l))}$render(){}$isEmpty(t){return b(t)||""===t||null===t||Number.isNaN(t)}Nn(t){this.$isEmpty(t)?bt(this.l)?(this.C.removeClass(this.l,u),this.C.addClass(this.l,c)):(this.l.classList.remove(u),this.l.classList.add(c)):bt(this.l)?(this.C.removeClass(this.l,c),this.C.addClass(this.l,u)):(this.l.classList.remove(c),this.l.classList.add(u))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.l&&(bt(this.l)?(this.C.removeClass(this.l,c),this.C.addClass(this.l,i)):(this.l.classList.remove(c),this.l.classList.add(i)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,bt(this.l)?(this.C.removeClass(this.l,i),this.C.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.$n.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,bt(this.l)?this.C.setClass(this.l,s,o):(this.l.classList.remove(o),this.l.classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,bt(this.l)?this.C.setClass(this.l,o,s):(this.l.classList.remove(s),this.l.classList.add(o))}$rollbackViewValue(){clearTimeout(this.On),this.$viewValue=this.qn,this.$render()}$validate(){if(L(this.$modelValue))return;const t=this.qn,n=this.bn,e=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),s=this;this.Un(n,t,t=>{r||e===t||(s.$modelValue=t?n:void 0,s.$modelValue!==i&&s.Vn())})}Un(t,n,e){this.An++;const i=this.An,r=this;function s(t,n){i===r.An&&r.$setValidity(t,n)}function o(t){i===r.An&&e(t)}!function(){const t=r.jn;return b(r.Cn)?(s(t,null),!0):(r.Cn||(Et(r.$validators).forEach(t=>{s(t,null)}),Et(r.$asyncValidators).forEach(t=>{s(t,null)})),s(t,r.Cn),r.Cn)}()?o(!1):function(){let e=!0;return St(r.$validators).forEach(([i,r])=>{const o=Boolean(r(t,n));e=e&&o,s(i,o)}),!!e||(Et(r.$asyncValidators).forEach(t=>{s(t,null)}),!1)}()?function(){const e=[];let i=!0;St(r.$asyncValidators).forEach(([r,o])=>{const c=o(t,n);if(!N(c))throw ii("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",c);s(r,void 0),e.push(c.then(()=>{s(r,!0)},()=>{i=!1,s(r,!1)}))}),e.length?Promise.all(e).then(()=>{o(i)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.On),(this.qn!==this.$viewValue||""===this.$viewValue&&this.Rn)&&(void 0===this.qn&&Number.isNaN(this.$viewValue)||(this.Nn(this.$viewValue),this.qn=this.$viewValue,this.$pristine&&this.$setDirty(),this.Fn()))}Fn(){let t=this.qn;const n=this;if(this.Cn=!b(t)||void 0,this.$setValidity(this.jn,null),this.jn="parse",this.Cn)for(let n=0;n<this.$parsers.length;n++)if(t=this.$parsers[n](t),b(t)){this.Cn=!1;break}L(this.$modelValue)&&(this.$modelValue=this._n(this.h));const e=this.$modelValue,i=this.$options.getOption("allowInvalid");function r(){if(n.$modelValue!=e){if(x(n.$modelValue)&&""===e)return;n.Vn()}}this.bn=t,i&&(this.$modelValue=t,r()),this.Un(t,this.qn,e=>{i||(n.$modelValue=e?t:void 0,r())})}Vn(){this.xn(this.h,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.D(t)}},this)}$setViewValue(t,n){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.Ln(n)}Ln(t){let n=this.$options.getOption("debounce");j(n[t])?n=n[t]:j(n.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?n=n.default:j(n["*"])&&(n=n["*"]),clearTimeout(this.On);const e=this;n>0?this.On=setTimeout(()=>{e.$commitViewValue()},n):this.$commitViewValue()}$overrideModelOptions(t){this.Hn(),this.$options=this.$options.createChild(t),this.yn=this.$options.vn.updateOn,this.Bn()}$processModelValue(){const t=this.zn();this.$viewValue!==t&&(this.Nn(t),this.$viewValue=this.qn=t,this.$render(),this.Un(this.$modelValue,this.$viewValue,()=>{}))}zn(){const t=this.$formatters;let n=t.length,e=this.$modelValue;for(;n--;)e=t[n](e);return e}Pn(t){this.$modelValue=this.bn=t,this.Cn=void 0,this.$processModelValue()}Hn(){this.Mn.forEach(t=>t()),this.Mn.clear()}Bn(){this.yn&&this.yn.split(" ").forEach(t=>{this.l.addEventListener(t,this.kn),this.Mn.add(()=>this.l.removeEventListener(t,this.kn))}),this.yn=this.$options.getOption("updateOn"),this.yn&&this.yn.split(" ").forEach(t=>{this.l.addEventListener(t,this.kn),this.Mn.add(()=>this.l.removeEventListener(t,this.kn))})}kn(t){this.Ln(t&&t.type)}}function si(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ri,priority:1,compile:t=>(t.classList.add(i,s,n),{pre:(t,n,e,i)=>{const r=i[0],s=i[1]||r.$n,o=i[2];o&&(r.$options=o.$options),r.In(),s.$addControl(r),e.$observe("name",t=>{r.$name!==t&&r.$n.ln(r,t)});const c=t.$watch(e.ngModel,t=>{r.Pn(m(t))});t.$on("$destroy",()=>{r.$n.$removeControl(r),c()})},post:(t,n,e,i)=>{const r=i[0];r.Bn(),n.addEventListener("blur",()=>{r.$touched||r.$setTouched()}),r.$viewChangeListeners.push(()=>{const{change:e}=n.dataset;e&&t.$eval(e)})}})}}const oi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ci=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,ui=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,hi="validity",ai=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{ai.set(t,!0)});const li={text:function(t,n,e,i){di(0,n,e,i),fi(i)},date:mi("date",/^(\d{4,})-(\d{2})-(\d{2})$/),"datetime-local":mi("datetimelocal",/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),time:mi("time",/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),week:mi("week",/^(\d{4,})-W(\d\d)$/),month:mi("month",/^(\d{4,})-(\d\d)$/),number:function(t,n,e,i,r){let s;if(pi(0,n,0,i,"number"),$i(i),di(0,n,e,i),y(e.min)||e.ngMin){let n=e.min||r(e.ngMin)(t);s=gi(n),i.$validators.min=function(t,n){return i.$isEmpty(n)||b(s)||n>=s},e.$observe("min",t=>{t!==n&&(s=gi(t),n=t,i.$validate())})}if(y(e.max)||e.ngMax){let n=e.max||r(e.ngMax)(t),s=gi(n);i.$validators.max=function(t,n){return i.$isEmpty(n)||b(s)||n<=s},e.$observe("max",t=>{t!==n&&(s=gi(t),n=t,i.$validate())})}if(y(e.step)||e.ngStep){let n=e.step||r(e.ngStep)(t),o=gi(n);i.$validators.step=function(t,n){return i.$isEmpty(n)||b(o)||bi(n,s||0,o)},e.$observe("step",t=>{t!==n&&(o=gi(t),n=t,i.$validate())})}},url:function(t,n,e,i){di(0,n,e,i),fi(i),i.$validators.url=function(t,n){const e=t||n;return i.$isEmpty(e)||oi.test(e)}},email:function(t,n,e,i){di(0,n,e,i),fi(i),i.$validators.email=function(t,n){const e=t||n;return i.$isEmpty(e)||ci.test(e)}},radio:function(t,n,e,i){const r=!e.ngTrim||"false"!==q(e.ngTrim);b(e.name)&&n.setAttribute("name",g()),n.addEventListener("change",function(t){if(n.checked){let{value:n}=e;r&&(n=q(n)),i.$setViewValue(n,t&&t.type)}}),i.$render=function(){let{value:t}=e;r&&(t=q(t));const s=d(i.$viewValue)?i.$viewValue.$target:i.$viewValue;n.checked=m(t)===m(s)},e.$observe("value",i.$render)},range:function(t,n,e,i){pi(0,n,0,i,"range"),$i(i),di(0,n,e,i);const r=i.Rn&&"range"===n.type;let s=r?0:void 0,o=r?100:void 0,c=r?1:void 0;const{validity:u}=n,h=y(e.min),a=y(e.max),l=y(e.step),f=i.$render;function d(t,i){n.setAttribute(t,e[t]);let r=e[t];e.$observe(t,t=>{t!==r&&(r=t,i(t))})}i.$render=r&&y(u.rangeUnderflow)&&y(u.rangeOverflow)?function(){f(),i.$setViewValue(n.value)}:f,h&&(s=gi(e.min),i.$validators.min=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||b(s)||n>=s},d("min",function(t){if(s=gi(t),!L(i.$modelValue))if(r){let t=n.value;s>t&&(t=s,n.value=t),i.$setViewValue(t)}else i.$validate()})),a&&(o=gi(e.max),i.$validators.max=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||b(o)||n<=o},d("max",function(t){if(o=gi(t),!L(i.$modelValue))if(r){let t=n.value;o<t&&(n.value=o,t=o<s?s:o),i.$setViewValue(t)}else i.$validate()})),l&&(c=gi(e.step),i.$validators.step=r?function(){return!u.stepMismatch}:function(t,n){return i.$isEmpty(n)||b(c)||bi(n,s||0,c)},d("step",function(t){c=gi(t),L(i.$modelValue)||(r?i.$viewValue!==n.value&&i.$setViewValue(n.value):i.$validate())}))},checkbox:function(t,n,e,i,r){const s=yi(r,t,"ngTrueValue",e.ngTrueValue,!0),o=yi(r,t,"ngFalseValue",e.ngFalseValue,!1);n.addEventListener("change",function(t){i.$setViewValue(n.checked,t&&t.type)}),i.$render=function(){n.checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(t=>G(t,s)),i.$parsers.push(t=>t?s:o)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function fi(t){t.$formatters.push(n=>t.$isEmpty(n)?n:n.toString())}function di(t,n,e,i){const r=n.type.toLowerCase();let s,o=!1;n.addEventListener("compositionstart",()=>{o=!0}),n.addEventListener("compositionend",()=>{o=!1,c()});const c=function(t){if(s&&(clearTimeout(s),s=null),o)return;let{value:c}=n;const u=t&&t.type;"password"===r||e.ngTrim&&"false"===e.ngTrim||(c=q(c)),(i.$viewValue!==c||""===c&&i.Rn)&&i.$target.$setViewValue(c,u)};["input","change","paste","drop","cut"].forEach(t=>{n.addEventListener(t,c)}),ai[r]&&i.Rn&&r===e.type&&n.addEventListener("keydown wheel mousedown",t=>{if(!s){const n=this[hi],e=n.badInput,i=n.typeMismatch;s=setTimeout(()=>{s=null,n.badInput===e&&n.typeMismatch===i||c(t)})}}),i.$render=function(){const t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;n.value!==t&&(n.value=t)}}function mi(t,n){return function(e,i,r,s,o){if(di(0,i,r,s),s.$parsers.push(e=>s.$isEmpty(e)?null:n.test(e)?e:void(s.jn=t)),s.$formatters.push(t=>{if(s.$isEmpty(t))return"";if(!_(t))throw ii("datefmt","Expected `{0}` to be a string",t);return t}),y(r.min)||r.ngMin){let t=r.min||o?.(r.ngMin)(e);s.$validators.min=(n,e)=>s.$isEmpty(e)||e>=t,r.$observe("min",n=>{t=n,s.$validate()})}if(y(r.max)||r.ngMax){let t=r.max||o?.(r.ngMax)(e);s.$validators.max=(n,e)=>s.$isEmpty(e)||e<=t,r.$observe("max",n=>{t=n,s.$validate()})}}}function pi(t,n,e,i,r){(i.Rn=S(n.validity))&&i.$parsers.push(t=>{const e=n[hi]||{};if(!e.badInput&&!e.typeMismatch)return t;i.jn=r})}function $i(t){t.$parsers.push(n=>t.$isEmpty(n)?null:ui.test(n)?parseFloat(n):void(t.jn="number")),t.$formatters.push(n=>{if(!t.$isEmpty(n)){if(!j(n))throw ii("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n})}function gi(t){return y(t)&&!j(t)&&(t=parseFloat(t)),L(t)?void 0:t}function wi(t){return(0|t)===t}function vi(t){const n=t.toString(),e=n.indexOf(".");if(-1===e){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(n);if(t)return Number(t[1])}return 0}return n.length-e-1}function bi(t,n,e){let i=Number(t);const r=!wi(i),s=!wi(n),o=!wi(e);if(r||s||o){const t=r?vi(i):0,c=s?vi(n):0,u=o?vi(e):0,h=10**Math.max(t,c,u);i*=h,n*=h,e*=h,r&&(i=Math.round(i)),s&&(n=Math.round(n)),o&&(e=Math.round(e))}return(i-n)%e===0}function yi(t,n,e,i,r){let s;if(y(i)){if(s=t(i),!s.constant)throw ii("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",e,i);return s(n)}return r}function ki(t){return{restrict:"E",require:["?ngModel"],link:{pre(n,e,i,r){r[0]&&(li[i.type?.toLowerCase()]||li.text)(n,e,i,r[0],t)}}}}function Ei(){return{restrict:"E",compile(t,n){if("hidden"===n.type?.toLowerCase())return{pre(t,n){n.value=n.getAttribute("value")??""}}}}}ki.$inject=[jt.B];const Si=/^(true|false|\d+)$/;function _i(){function t(t,n,e){t.value=m(e??""),n.$set("value",e)}return{restrict:"A",priority:100,compile:(n,e)=>Si.test(e.ngValue)?function(n,e,i){t(e,i,n.$eval(i.ngValue))}:function(n,e,i){n.$watch(i.ngValue,n=>{t(e,i,n)})}}}function xi(t){return{restrict:"E",terminal:!0,compile(n,e){"text/ng-template"===e.type&&t.set(e.id,n.innerText)}}}xi.$inject=[jt.rt];class Oi{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap"];static $inject=[jt.l,jt.h];constructor(t,n){this.l=t,this.h=n,this.Wn={},this.Jn={},this.Zn=!1,this.Gn=document.createElement("option"),this.Kn=!1,this.Xn=void 0,this.Yn=new Map,this.Qn=!1,this.te=!1,n.$on("$destroy",()=>{this.ne=()=>{}})}ne(t){const n=this.ee(t);this.Gn.value=n,this.l.prepend(this.Gn),this.Gn.selected=!0,this.Gn.setAttribute("selected","selected"),this.l.value=n}ie(t){const n=this.ee(t);this.Gn.value=n,this.Gn.selected=!0,this.Gn.setAttribute("selected","selected"),this.l.value=n}ee(t){return b(t)?"? undefined:undefined ?":`? ${$t(t)} ?`}re(){this.Gn.parentElement&&this.Gn.remove()}se(){this.Xn&&(this.l.value="",this.Xn.selected=!0,this.Xn.setAttribute("selected","selected"))}oe(){this.Kn&&(this.Xn.selected=!1)}ce(){const t=this.l.value,n=t in this.Wn?this.Wn[t]:t;return this.ue(n)?n:null}he(t){const n=this.l.options[this.l.selectedIndex];if(n&&(n.selected=!1),this.ue(t)){this.re();const n=$t(t);this.l.value=n in this.Wn?n:t;const e=this.l.options[this.l.selectedIndex];e?e.selected=!0:this.ae(t)}else this.ae(t)}le(t,n){if(8===n.nodeType)return;K(t,'"option value"'),""===t&&(this.Kn=!0,this.Xn=n);const e=this.Yn.get(t)||0;this.Yn.set(t,e+1),this.fe()}de(t){const n=this.Yn.get(t);n&&(1===n?(this.Yn.delete(t),""===t&&(this.Kn=!1,this.Xn=void 0)):this.Yn.set(t,n-1))}ue(t){return!!this.Yn.get(t)}$hasEmptyOption(){return this.Kn}$isUnknownOptionSelected(){return this.l.options[0]===this.Gn}$isEmptyOptionSelected(){return this.Kn&&this.l.options[this.l.selectedIndex]===this.Xn}ae(t){O(t)&&this.Xn?(this.re(),this.se()):this.Gn.parentElement?this.ie(t):this.ne(t)}fe(){this.Qn||(this.Qn=!0,this.h.$postUpdate(()=>{this.Qn=!1,this.Jn.$render()}))}me(t=!1){this.te||(this.te=!0,this.h.$postUpdate(()=>{this.h.cn||(this.te=!1,this.Jn.$setViewValue(this.ce()),t&&this.Jn.$render())}))}registerOption(t,n,e,i,r){let s,o;e.$attr.ngValue?e.$observe("value",t=>{let e;const i=n.selected;y(o)&&(this.de(s),delete this.Wn[o],e=!0),o=$t(t),s=t,this.Wn[o]=t,this.le(t,n),n.setAttribute("value",o),e&&i&&this.me()}):i?e.$observe("value",t=>{let e;this.ce();const i=n.selected;y(s)&&(this.de(s),e=!0),s=t,this.le(t,n),e&&i&&this.me()}):r?(t.value=r(t),e.value||(e.$set("value",t.value),this.le(t.value,n)),t.$watch("value",()=>{const i=r(t);e.value||e.$set("value",i);const o=n.selected;s!==i&&(this.de(s),s=i),this.le(i,n),s&&o&&this.me()})):this.le(e.value,n),e.$observe("disabled",t=>{("true"===t||t&&n.selected)&&(this.Zn?this.me(!0):(this.Jn.$setViewValue(null),this.Jn.$render()))}),n.addEventListener("$destroy",()=>{const t=this.ce(),n=e.value;this.de(n),this.fe(),(this.Zn&&t&&-1!==t.indexOf(n)||t===n)&&this.me(!0)})}}function Ci(){return{restrict:"E",require:["select","?ngModel"],controller:Oi,priority:1,link:{pre:function(t,n,e,i){const r=i[0],s=i[1];if(s){if(r.Jn=s,n.addEventListener("change",()=>{r.re();const t=r.ce();s.$setViewValue(t)}),e.multiple){let t;r.Zn=!0,r.ce=function(){const t=[],e=n.getElementsByTagName("option");return Array.from(e).forEach(n=>{if(n.selected&&!n.disabled){const e=n.value;t.push(e in r.Wn?r.Wn[e]:e)}}),t},r.he=function(t){const e=n.getElementsByTagName("option");Array.from(e).forEach(n=>{const e=!!t&&(W(t,n.value)||W(t,r.Wn[n.value]));e!==n.selected&&(n.selected=e)})};let e=NaN;e!==s.$viewValue||G(t,s.$viewValue)||(t=ht(s.$viewValue),s.$render()),e=s.$viewValue,s.$isEmpty=function(t){return!t||0===t.length}}}else r.registerOption=()=>{}},post:function(t,n,e,i){const r=i[1];if(!r)return;const s=i[0];r.$render=function(){s.he(r.$viewValue)}}}}}function ji(t){return{restrict:"E",priority:100,compile(n,e){let i,r;return y(e.ngValue)||(y(e.value)?i=t(e.value,!0):(r=t(n.textContent,!0),r||e.$set("value",n.textContent))),function(t,n,e){const s="$selectController",o=n.parentElement,c=Gt(o,s)||Gt(o.parentElement,s);c&&c.registerOption(t,n,e,i,r)}}}}function Ai(){return{link(t,n,e){t.$watch(e.ngBind,t=>{n.textContent=X(m(t))},y(e.lazy))}}}function Ti(){return{link(t,n,e){e.$observe("ngBindTemplate",t=>{n.textContent=O(t)?"":t})}}}function Ri(t){return{restrict:"A",compile:(n,e)=>(t(e.ngBindHtml),(t,n)=>{t.$watch(e.ngBindHtml,t=>{(b(t)||x(t))&&(t=""),n.innerHTML=t})})}}function Mi(t,n){return t=`ngClass${t}`,function(){return{link(e,i,r){let s,o=Gt(i,"$classCounts"),c=!0;function u(t,n){const e=[];return t&&t.forEach(t=>{(n>0||o[t])&&(o[t]=(o[t]||0)+n,o[t]===+(n>0)&&e.push(t))}),e.join(" ")}o||(o=Object.create(null),Zt(i,"$classCounts",o)),"ngClass"!==t&&e.$watch("$index",()=>{var t,o;(t=1&e.$index)===n?(o=u(Ii(o=s),1),bt(i)?r.$addClass(o):e.$postUpdate(()=>{""!==o&&i.classList.add(...o.trim().split(" "))})):function(t){t=u(Ii(t),-1),bt(i)?r.$removeClass(t):e.$postUpdate(()=>{""!==t&&i.classList.remove(...t.trim().split(" "))})}(s),c=t}),e.$watch(r[t],t=>{var e;e=Di(t),c===n&&function(t,n){const e=Ii(t),s=Ii(n),o=Pi(e,s),c=Pi(s,e),h=u(o,-1),a=u(c,1);bt(i)?(r.$addClass(a),r.$removeClass(h)):(""!==a&&i.classList.add(...a.trim().split(" ")),""!==h&&i.classList.remove(...h.trim().split(" ")))}(s,e),s=e})}}}}function Pi(t,n){if(!t||!t.length)return[];if(!n||!n.length)return t;const e=[];t:for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<n.length;t++)if(r===n[t])continue t;e.push(r)}return e}function Ii(t){return t&&t.split(" ")}function Di(t){if(!t)return t;let n=t;return k(t)?n=t.map(Di).join(" "):S(t)?n=Et(t).filter(n=>t[n]).join(" "):_(t)||(n=`${t}`),n}ji.$inject=[jt.V],Ri.$inject=[jt.B];const Ni=Mi("",!0),qi=Mi("Odd",0),Ui=Mi("Even",1);function Vi(){return{compile(t,n){n.$set("ngCloak",null)}}}function Fi(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const Li="ng-hide",Hi="ng-hide-animate";function Bi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngShow,n=>{bt(e)?t[n?"removeClass":"addClass"](e,Li,{tempClasses:Hi}):n?e.classList.remove(Li):e.classList.add(Li)})}}}function zi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngHide,n=>{bt(e)?t[n?"addClass":"removeClass"](e,Li,{tempClasses:Hi}):n?e.classList.add(Li):e.classList.remove(Li)})}}}function Wi(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(n,e,i,r,s){let o,c,u;n.$watch(i.ngIf,n=>{n?c||s((n,i)=>{c=i,o=n,bt(n)?t.enter(n,e.parentElement,e):e.after(n)}):(u&&(nn(u),u=null),c&&(c.$destroy(),c=null),o&&(u=o,bt(u)?t.leave(u).done(t=>{!1!==t&&(u=null)}):e.nextElementSibling?.remove(),o=null))})}}}function Ji(t,n,e,i){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,s){const o=s.ngInclude||s.src,c=s.onload||"",u=s.autoscroll;return(r,s,h,a,l)=>{function f(){!y(u)||u&&!r.$eval(u)||n()}let d,m,p,$=0;const g=()=>{m&&(m.remove(),m=null),d&&(d.$destroy(),d=null),p&&(bt(p)?e.leave(p).done(t=>{!1!==t&&(m=null)}):p.remove(),m=p,p=null)};r.$watch(o,async n=>{const o=function(t){!1!==t&&f()},u=++$;n?(r.$emit("$includeContentRequested",n),t(n).then(t=>{if(r.cn)return;if(u!==$)return;const i=r.$new();a.template=t;const h=l(i,t=>{g(),bt(t)?e.enter(t,null,s).done(o):(s.after(t),f())});d=i,p=h,d.$emit("$includeContentLoaded",n),r.$eval(c)}).catch(t=>{r.cn||(u===$&&(g(),r.$emit("$includeContentError",n)),i(new Error(t)))})):(g(),a.template=null)})}}}}function Zi(t){return{priority:-400,require:"ngInclude",link(n,e,i,r){e.innerHTML=r.template,t(e.childNodes)(n)}}}function Gi(){return{priority:450,compile:()=>({pre(t,n,e){const i=Qt(n);i?i.$eval(e.ngInit):t.$eval(e.ngInit)}})}}function Ki(){return{terminal:!0,priority:1e3}}Bi.$inject=[jt.C],zi.$inject=[jt.C],Wi.$inject=[jt.C],Ji.$inject=[jt.ot,jt.O,jt.C,jt.D],Zi.$inject=[jt.T];const Xi=pt("ngRef");function Yi(t){return{priority:-1,restrict:"A",compile(n,e){const i=vt(z(n)),r=t(e.ngRef),s=r.un||function(){throw Xi("nonassign",'Expression in ngRef="{0}" is non-assignable!',e.ngRef)};return(t,n,o)=>{let c;if(kt(o,"ngRefRead")){if("$element"===o.ngRefRead)c=n;else if(c=Gt(n,`$${o.ngRefRead}Controller`),!c)throw Xi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,e.ngRef)}else c=Gt(n,`$${i}Controller`);c=c||n,s(t,c),n.addEventListener("$destroy",()=>{r(t)===c&&s(t,null)})}}}}Yi.$inject=[jt.B];const Qi="$$NG_REMOVED",tr=pt("ngRepeat"),nr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function er(t){function n(t,n,e,i,r,s,o){t[e]!==i&&(t[e]=i),r&&(t[r]=s),i&&(t.$target.i=i.i),t.$index=n,t.$first=0===n,t.$last=n===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&n))}function e(t){return t.clone}function i(t){return t.clone}function r(t,n,e){return $t(e)}function s(t,n){return n}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,c)=>{const u=c.ngRepeat,h=!!c.animate;let a=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!a)throw tr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",u);const l=a[1],f=a[2],d=a[3];if(a=l.match(nr),!a)throw tr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",l);const m=a[3]||a[1],p=a[2];if(d&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(d)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(d)))throw tr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",d);const $=function(){let t=!1;return(...n)=>{if(!t)return t=!0,(()=>{y(c.lazy)&&y(c.swap)&&document.querySelectorAll(c.swap).forEach(t=>nn(t))})(...n)}}();return function(o,c,a,l,g){let w=Object.create(null);o.$watch(f,a=>{$();let l,f,b=c;const y=Object.create(null);let k,E,S,_,x,O,C;if(d&&(o[d]=a),v(a))x=a,_=r;else{_=s,x=[];for(const t in a)kt(a,t)&&"$"!==t.charAt(0)&&x.push(t)}const j=x.length,A=new Array(j);for(l=0;l<j;l++)if(k=a===x?l:x[l],E=a[k],S=_(o,k,E),w[S])O=w[S],delete w[S],y[S]=O,A[l]=O;else{if(y[S])throw Object.values(A).forEach(t=>{t&&t.scope&&(w[t.id]=O)}),tr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",u,S,E);A[l]={id:S,scope:void 0,clone:void 0},y[S]=!0}for(const n in w){if(O=w[n],C=O.clone,h?t.leave(C):C.remove(),C.parentNode)for(let t=0,n=C.length;t<n;t++)C[t][Qi]=!0;O.scope.$destroy()}for(l=0;l<j;l++)if(k=a===x?l:x[l],E=a[k],O=A[l],O.scope){f=b;do{f=f.nextSibling}while(f&&f[Qi]);e(O)!==f&&t.move(rn(O.clone),null,b),b=i(O),n(O.scope,l,m,E,p,k,j)}else g((e,i)=>{O.scope=i;const r=e;h?t.enter(e,null,b):b.after(e),b=r,O.clone=e,y[O.id]=O,n(O.scope,l,m,E,p,k,j)});w=y},y(a.lazy))}}}}function ir(){return{restrict:"A",link(t,n,e){let i=null;t.$watch(e.ngStyle,t=>{const e=t?.$target||t;if(i)for(const t in i)n.style.removeProperty(t);if(e){i={};for(const t in e){const r=e[t];n.style.setProperty(t,r),i[t]=r}}else i=null})}}}function rr(t){return{require:"ngSwitch",controller:[jt.h,class{constructor(){this.cases={}}}],link(n,e,i,r){const s=i.ngSwitch||i.on;let o=[];const c=[],u=[],h=[],a=function(t,n){return function(e){!1!==e&&t.splice(n,1)}};n.$watch(s,n=>{let e,i,s;for(;u.length;)t.cancel(u.pop());for(e=0,i=h.length;e<i;++e){const n=c[e].clone;h[e].$destroy(),bt(n)?(s=u[e]=t.leave(n),s.done(a(u,e))):n.remove()}c.length=0,h.length=0,(o=r.cases[`!${n}`]||r.cases["?"])&&Object.values(o).forEach(n=>{n.transclude((e,i)=>{h.push(i);const r=n.element,o={clone:e,comment:document.createComment("")};c.push(o),bt(e)?s?requestAnimationFrame(()=>{t.enter(e,r.parentElement,r)}):t.enter(e,r.parentElement,r):ln(e,r.parentElement,r)})})})}}}function sr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){e.ngSwitchWhen.split(e.ngSwitchWhenSeparator).sort().filter((t,n,e)=>e[n-1]!==t).forEach(t=>{i.cases[`!${t}`]=i.cases[`!${t}`]||[],i.cases[`!${t}`].push({transclude:r,element:n})})}}}function or(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:n})}}}er.$inject=[jt.C],rr.$inject=[jt.C];const cr=pt("ngOptions"),ur=document.createElement("option"),hr=document.createElement("optgroup"),ar=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;function lr(t,n){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,n,e,i){i[0].registerOption=()=>{}},post:function(e,i,r,s){const o=s[0],c=s[1],{multiple:u}=r;for(let t=0,n=i.childNodes,e=n.length;t<e;t++)if(""===n[t].value){o.hasEmptyOption=!0,o.emptyOption=n[t];break}an(i);const h=!!o.emptyOption;let a;ur.cloneNode(!1).nodeValue="?";const l=function(t,e,i){const r=t.match(ar);if(!r)throw cr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,en(e));const s=r[5]||r[7],o=r[6],c=/ as /.test(r[0])&&r[1],u=r[9],h=n(r[2]?r[1]:s),a=c&&n(c)||h,l=u&&n(u),f=u?function(t,n){return l(i,n)}:function(t){return $t(t)},d=function(t,n){return f(t,b(t,n))},m=n(r[2]||r[1]),p=n(r[3]||""),$=n(r[4]||""),g=n(r[8]),w={},b=o?function(t,n){return w[o]=n,w[s]=t,w}:function(t){return w[s]=t,w};class y{constructor(t,n,e,i,r){this.selectValue=t,this.viewValue=n,this.label=e,this.group=i,this.disabled=r}}return{trackBy:u,getTrackByValue:d,getWatchables:g,getOptions(){const t=[],n={},e=g(i)||[],r=function(t){let n;if(!o&&v(t))n=t;else{n=[];for(const e in t)kt(t,e)&&"$"!==e.charAt(0)&&n.push(e)}return n}(e),s=r.length;for(let o=0;o<s;o++){const s=e===r?o:r[o],c=e[s],u=b(c,s),h=a(i,u),l=f(h,u),d=m(i,u),g=p(i,u),w=$(i,u),v=new y(l,h,d,g,w);t.push(v),n[l]=v}return{items:t,selectValueMap:n,getOptionFromViewValue:t=>n[d(t)],getViewValueFromOption:t=>u?structuredClone(t.viewValue):t.viewValue}}}}(r.ngOptions,i,e),f=document.createDocumentFragment();if(o.ee=()=>"?",u?(o.he=function(t){if(!a)return;const n=t&&t.map(p)||[];a.items.forEach(t=>{t.element.selected&&!W(n,t)&&(t.element.selected=!1)})},o.ce=function(){const t=[],n=i.options;for(let e=0;e<n.length;e++){const i=n[e];if(i.selected){const n=a.selectValueMap[i.value];n&&!n.disabled&&t.push(a.getViewValueFromOption(n))}}return t}):(o.he=function(t){if(!a)return;const n=i.options[i.selectedIndex],e=a.getOptionFromViewValue(t);n&&n.removeAttribute("selected"),e?(i.value!==e.selectValue&&(o.re(),i.value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):o.ae(t)},o.ce=function(){const t=a.selectValueMap[i.value];return t&&!t.disabled?(o.oe(),o.re(),a.getViewValueFromOption(t)):null},l.trackBy&&e.$watch(l.getTrackByValue(c.$viewValue),()=>{c.$render()})),h){const n=t(o.emptyOption);i.prepend(o.emptyOption),n(e),8===o.emptyOption.nodeType&&(o.hasEmptyOption=!1,o.registerOption=function(t,n){""===n.value&&(o.hasEmptyOption=!0,o.emptyOption=n,c.$render(),n.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&c.$render()}))})}const d=l.getWatchables.pe.body[0].expression?.name;function m(t,n){const e=ur.cloneNode(!1);n.appendChild(e),function(t,n){t.element=n,n.disabled=t.disabled,t.label!==n.label&&(n.label=t.label,n.textContent=t.label),n.value=t.selectValue}(t,e)}function p(t){const n=a.getOptionFromViewValue(t),e=n&&n.element;return e&&!e.selected&&(e.selected=!0),n}e.$watch(d,function(){const t=a&&o.ce();if(a)for(let t=a.items.length-1;t>=0;t--){const n=a.items[t];y(n.group)?nn(n.element.parentNode):nn(n.element)}a=l.getOptions();const n={};if(a.items.forEach(t=>{let e;y(t.group)?(e=n[t.group],e||(e=hr.cloneNode(!1),f.appendChild(e),e.label=null===t.group?"null":t.group,n[t.group]=e),m(t,e)):m(t,f)}),i.appendChild(f),c.$render(),!c.$isEmpty(t)){const n=o.ce();(l.trackBy||u?G(t,n):t===n)||(c.$setViewValue(n),c.$render())}})}}}}lr.$inject=[jt.T,jt.B];const fr=pt("ngTransclude");function dr(t){return{compile:function(n){const e=t(n.childNodes);return an(n),function(t,n,i,r,s){if(!s)throw fr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",en(n));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");const o=i.ngTransclude||i.ngTranscludeSlot;function c(){e(t,t=>{n.append(t)})}s(function(t,e){var i;(i=t)instanceof Array||3===i.nodeType&&!i.nodeValue.trim()?(c(),e.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{n.append(t)}):n.append(t)},null,o),o&&!s.isSlotFilled(o)&&c()}}}}dr.$inject=[jt.T];const mr=/^\/(.+)\/([a-z]*)$/,pr={};Nt.forEach(t=>{if("multiple"===t)return;function n(n,i,r){n.$watch(r[e],n=>{r.$set(t,!!n)})}const e=vt(`ng-${t}`);let i=n;"checked"===t&&(i=function(t,i,r){r.ngModel!==r[e]&&n(t,0,r)}),pr[e]=function(){return{restrict:"A",priority:100,link:i}}}),St(l).forEach(([t])=>{pr[t]=function(){return{priority:100,link(n,e,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){const t=i.ngPattern.match(mr);if(t)return void i.$set("ngPattern",new RegExp(t[1],t[2]).toString())}n.$watch(i[t],n=>{i.$set(t,n)})}}}}),["src","srcset","href"].forEach(t=>{const n=vt(`ng-${t}`);pr[n]=[jt.K,function(e){return{priority:99,link(i,r,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(r.href)&&(o="xlinkHref",s.$attr[o]="href"),s.$set(n,e.getTrustedMediaUrl(s[n])),s.$observe(n,n=>{n?s.$set(o,n):"href"===t&&s.$set(o,null)})}}}]});const $r=[jt.B,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=kt(i,"required")||i.ngRequired&&t(i.ngRequired)(n);i.ngRequired||(i.required="true"),r.$validators.required=(t,n)=>!s||!r.$isEmpty(n),i.$observe("required",t=>{s!==t&&(s=t,r.$validate())})}})],gr=[jt.B,t=>({restrict:"A",require:"?ngModel",compile:(n,e)=>{let i,r;return e.ngPattern&&(i=e.ngPattern,r="/"===e.ngPattern.charAt(0)&&mr.test(e.ngPattern)?function(){return e.ngPattern}:e.ngPattern&&t(e.ngPattern)),function(t,n,e,s){if(!s)return;let o=e.pattern;e.ngPattern?o=r(t):i=e.pattern;let c=br(o,i,n);e.$observe("pattern",t=>{const e=c;c=br(t,i,n),(e&&e.toString())!==(c&&c.toString())&&s.$validate()}),s.$validators.pattern=(t,n)=>s.$isEmpty(n)||b(c)||c.test(n)}}})],wr=[jt.B,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=i.maxlength||i.ngMaxlength&&t(i.ngMaxlength)(n),o=yr(s);i.$observe("maxlength",t=>{s!==t&&(o=yr(t),s=t,r.$validate())}),r.$validators.maxlength=function(t,n){return o<0||r.$isEmpty(n)||n.length<=o}}})],vr=[jt.B,t=>({restrict:"A",require:"?ngModel",link(n,e,i,r){if(!r)return;let s=i.minlength||i.ngMinlength&&t(i.ngMinlength)(n),o=yr(s)||-1;i.$observe("minlength",t=>{s!==t&&(o=yr(t)||-1,s=t,r.$validate())}),r.$validators.minlength=function(t,n){return r.$isEmpty(n)||n.length>=o}}})];function br(t,n,e){if(t){if(d(t)&&(t=t.$target),_(t)){const n=t.match(/^\/(.*)\/([gimsuy]*)$/);t=n?new RegExp(n[1],n[2]):new RegExp(`^${t}$`)}if(!t.test)throw pt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",n,t,en(e));return t}}function yr(t){const n=parseInt(t,10);return L(n)?-1:n}class kr{constructor(){this.autoScrollingEnabled=!0}$get=[jt.F,jt.J,(t,n)=>{function e(t){if(t){t.scrollIntoView();const n=function(){let t=i.yOffset;if(R(t))t=t();else if(t instanceof Element){const n=t[0];t="fixed"!==window.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else j(t)||(t=0);return t}();if(n){const e=t.getBoundingClientRect().top;window.scrollBy(0,e-n)}}else window.scrollTo(0,0)}const i=function(n){let i;(n=_(n)?n:j(n)?n.toString():t.getHash())?(i=document.getElementById(n))||(i=function(t){let n=null;return Array.prototype.some.call(t,t=>"a"===z(t)&&(n=t,!0)),n}(document.getElementsByName(n)))?e(i):"top"===n&&e(null):e(null)};return this.autoScrollingEnabled&&(n.$location=t,n.$watch("$location.$$hash",(t,n)=>{if(t===n&&""===t)return;const e=()=>i(t);"complete"===document.readyState?queueMicrotask(()=>e()):window.addEventListener("load",()=>e())})),i}]}const Er="-add",Sr="-remove",_r="-active",xr="ng-animate",Or="$$ngAnimateChildren";function Cr(t,n,e){return(k(t)?t:t&&_(t)?t.trim().split(/\s+/):[]).filter(Boolean).map(t=>e?n+t:t+n).join(" ")}function jr(t){const n=t||{};if(!n.$$prepared){let t=n.domOperation||(()=>{});n.domOperation=function(){n.$e=!0,t(),t=()=>{}},n.$$prepared=!0}return n}function Ar(t,n){Tr(t,n),Rr(t,n)}function Tr(t,n){n&&n.from&&(Object.assign(t.style,n.from),n.from=void 0)}function Rr(t,n){n&&n.to&&(Object.assign(t.style,n.to),n.to=void 0)}function Mr(t,n,e){const i=n.options||{},r=e.options||{};r.preparationClasses&&(i.preparationClasses=[r.preparationClasses,i.preparationClasses].filter(Boolean).join(" "),delete r.preparationClasses),Object.assign(i,r);const s=`${i.addClass||""} ${r.addClass||""}`.trim().split(/\s+/).filter(Boolean),o=`${i.removeClass||""} ${r.removeClass||""}`.trim().split(/\s+/).filter(Boolean),c=new Set((t.getAttribute("class")||"").split(/\s+/).filter(Boolean)),u=[],h=[];return s.forEach(function(t){c.has(t)||u.push(t)}),o.forEach(function(t){c.has(t)&&h.push(t)}),i.addClass=u.length?u.join(" "):void 0,i.removeClass=h.length?h.join(" "):void 0,n.addClass=i.addClass,n.removeClass=i.removeClass,i}function Pr(t,n){const e=n?"paused":"",i="animationPlayState";return Ir(t,[i,e]),[i,e]}function Ir(t,n){const e=n[0];t.style[e]=n[1]}function Dr(t,n){return[t,n].filter(Boolean).join(" ")}const Nr=pt("$animate");function qr(t){return S(t)?t:{}}function Ur(t){const n=this;let e=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(e,i){if(e&&"."!==e.charAt(0))throw Nr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);const r=`${e}-animation`;n.$$registeredAnimations[e.substring(1)]=r,t.factory(r,i)},this.customFilter=function(t){return 1===arguments.length&&(i=R(t)?t:null),i},this.classNameFilter=function(t){if(1===arguments.length&&(e=t instanceof RegExp?t:null,e)&&new RegExp(`[(\\s|\\/)]${xr}[(\\s|\\/)]`).test(e.toString()))throw e=null,Nr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',xr);return e},this.$get=[jt.k,function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:(t,n)=>void 0!==n?bt(t):(t.setAttribute("animate",`${n}`),!0),cancel(t){t.cancel&&t.cancel()},enter:(n,e,i,r)=>(e=e||i.parentElement,E(n,HTMLElement)&&E(e,HTMLElement)?fn(n,e,i):ln(n,e,i),t.push(n,"enter",qr(r))),move:(n,e,i,r)=>(e=e||i.parentElement,E(n,HTMLElement)&&E(e,HTMLElement)?fn(n,e,i):ln(n,e,i),t.push(n,"move",qr(r))),leave:(n,e)=>t.push(n,"leave",qr(e),()=>{nn(n)}),addClass:(n,e,i)=>((i=qr(i)).addClass=gt(i.addClass,e),t.push(n,"addClass",i)),removeClass:(n,e,i)=>((i=qr(i)).removeClass=gt(i.removeClass,e),t.push(n,"removeClass",i)),setClass:(n,e,i,r)=>((r=qr(r)).addClass=gt(r.addClass,e),r.removeClass=gt(r.removeClass,i),t.push(n,"setClass",r)),animate:(n,e,i,r,s)=>((s=qr(s)).from=s.from?F(s.from,e):e,s.to=s.to?F(s.to,i):i,r=r||"ng-inline-animate",s.tempClasses=gt(s.tempClasses,r),t.push(n,"animate",s))}}]}Ur.$inject=[jt.gt];class Vr{constructor(){this.cache=new Map}$get(){return this.cache}}class Fr{constructor(){this.handler=t=>{throw t}}$get(){return t=>this.handler(t)}}function Lr(){return function(t,n,e,i){if(!v(t)){if(O(t))return t;throw pt("filter")("notarray","Expected array but received: {0}",t)}let r;switch(i=i||"$",zr(n)){case"function":r=n;break;case"boolean":case"null":case"number":case"string":r=Hr(n,e,i,!0);break;case"object":r=Hr(n,e,i,!1);break;default:return t}return Array.from(t).filter(r)}}function Hr(t,n,e,i){e=e??"$";const r=S(t)&&e in t;return!0===n?n=G:R(n)||(n=function(t,n){return!(b(t)||(null===t||null===n?t!==n:S(n)||S(t)&&!B(t)||(t=`${t}`.toLowerCase(),n=`${n}`.toLowerCase(),-1===t.indexOf(n))))}),function(s){return r&&!S(s)?Br(s,t[e],n,e,!1):Br(s,t,n,e,!!i)}}function Br(t,n,e,i,r,s){const o=zr(t),c=zr(n);if("string"===c&&"!"===n.charAt(0))return!Br(t,n.substring(1),e,i,r);if(k(t))return t.some(t=>Br(t,n,e,i,r));switch(o){case"object":if(r){for(const r in t)if(r.charAt&&"$"!==r.charAt(0)&&Br(t[r],n,e,i,!0))return!0;return!s&&Br(t,n,e,i,!1)}if("object"===c){for(const r in n){const s=n[r];if(R(s)||b(s))continue;const o=r===i;if(!Br(o?t:t[r],s,e,i,o,o))return!1}return!0}return e(t,n);case"function":return!1;default:return e(t,n)}}function zr(t){return null===t?"null":typeof t}function Wr(){return function(t,n){return b(n)&&(n=2),et(t,n)}}function Jr(){return function(t,n,e){return R(t)&&(t=t()),L(n=Math.abs(Number(n))===1/0?Number(n):parseInt(n,10))?t:(j(t)&&(t=t.toString()),v(t)?(e=(e=!e||isNaN(e)?0:parseInt(e,10))<0?Math.max(0,t.length+e):e,n>=0?Zr(t,e,e+n):0===e?Zr(t,n,t.length):Zr(t,Math.max(0,e+n),e)):t)}}function Zr(t,n,e){return _(t)?t.slice(n,e):[].slice.call(t,n,e)}function Gr(t){return function(i,r,s,o){if(O(i))return i;if(R(i))return i();if(!v(i))throw pt("orderBy")("notarray","Expected array but received: {0}",i);k(r)||(r=[r??"+"]),0===r.length&&(r=["+"]);const c=r.map(n=>{let e=1,i=t=>t;if(R(n))i=n;else if(_(n)&&("+"!==n.charAt(0)&&"-"!==n.charAt(0)||(e="-"===n.charAt(0)?-1:1,n=n.substring(1)),""!==n)){const e=t(n);if(e.constant){const t=e();i=n=>n[t]}else i=e}return{get:i,descending:e}}),u=s?-1:1,h=R(o)?o:e,a=Array.prototype.map.call(i,function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:c.map(i=>function(t,e){let i=typeof t;return null===t?i="null":"object"===i&&(t=function(t){return R(t.valueOf)&&n(t=t.valueOf())||B(t)&&n(t=t.toString()),t}(t)),{value:t,type:i,index:e}}(i.get(t),e))}});return a.sort(function(t,n){for(let e=0,i=c.length;e<i;e++){const i=h(t.predicateValues[e],n.predicateValues[e]);if(i)return i*c[e].descending*u}return(h(t.tieBreaker,n.tieBreaker)||e(t.tieBreaker,n.tieBreaker))*u}),a.map(t=>t.value)};function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function e(t,n){let e=0;const i=t.type,r=n.type;if(i===r){let r=t.value,s=n.value;"string"===i?(r=r.toLowerCase(),s=s.toLowerCase()):"object"===i&&(S(r)&&(r=t.index),S(s)&&(s=n.index)),r!==s&&(e=r<s?-1:1)}else e="undefined"===i?1:"undefined"===r?-1:"null"===i?1:"null"===r||i<r?-1:1;return e}}Gr.$inject=[jt.B];const Kr="Filter";class Xr{static $inject=[jt.gt];constructor(t){at(y(t)),this.ge=t,St({filter:Lr,json:Wr,limitTo:Jr,orderBy:Gr}).forEach(([t,n])=>this.register(t,n))}register(t,n){return In(t,"name"),Mn(R,n,"factory"),this.ge.factory(t+Kr,n),this}$get=[jt.wt,t=>n=>(In(n,"name"),t.get(n+Kr))]}const Yr=pt("$interpolate");function Qr(t,n){throw Yr("interr","Can't interpolate: {0}\n{1}",t,n.toString())}class ts{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[jt.B,jt.K,(t,n)=>{const e=this,i=this.startSymbol.length,r=this.endSymbol.length,s=new RegExp(e.startSymbol.replace(/./g,c),"g"),o=new RegExp(e.endSymbol.replace(/./g,c),"g");function c(t){return`\\\\\\${t}`}function u(t){return t.replace(s,e.startSymbol).replace(o,e.endSymbol)}function h(s,o,c,h){const a=c===n.URL||c===n.MEDIA_URL;if(!s.length||-1===s.indexOf(e.startSymbol)){if(o)return;let t=u(s);a&&(t=n.getTrusted(c,t));const e=()=>t;return e.exp=s,e.expressions=[],e}let l,f;h=!!h;let d=0;const m=[],p=s.length;let $;const g=[],w=[];for(;d<p;){if(-1===(l=s.indexOf(e.startSymbol,d))||-1===(f=s.indexOf(e.endSymbol,l+i))){d!==p&&g.push(u(s.substring(d)));break}d!==l&&g.push(u(s.substring(d,l))),$=s.substring(l+i,f),m.push($),d=f+r,w.push(g.length),g.push("")}const v=1===g.length&&1===w.length,k=a&&v?void 0:function(t){try{return t=c&&!a?n.getTrusted(c,t):n.valueOf(t),h&&!y(t)?t:X(t)}catch(t){return Qr(s,t)}},E=m.map(n=>t(n,k));if(!o||m.length){const t=function(t){for(let n=0,e=m.length;n<e;n++){if(h&&b(t[n]))return;g[w[n]]=t[n]}return a?n.getTrusted(c,v?g[0]:g.join("")):(c&&g.length>1&&function(t){throw Yr("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(s),g.join(""))},e=(n,e)=>{const i=m.length,r=new Array(i);try{for(let s=0;s<i;s++){if(e){const r=m[s].trim();n.$watch(r,()=>{const r=new Array(i);for(let t=0;t<i;t++)r[t]=E[t](n);e(t(r))})}r[s]=E[s](n)}return t(r)}catch(t){return Qr(s,t)}};return e.exp=s,e.expressions=m,e}}return h.startSymbol=function(){return e.startSymbol},h.endSymbol=function(){return e.endSymbol},h}]}const ns=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,es=pt("$location");let is,rs,ss,os=!1;class cs{constructor(t,n,e=!0,i){this.appBase=t,this.appBaseNoFile=n,this.html5=e,this.basePrefix=e?i||"":void 0,this.hashPrefix=e?void 0:i,this.absUrl="",this.ht=void 0,this.we=void 0}setUrl(t){const n=ns.exec(t);return void 0===n[1]&&""!==t||this.setPath(n[1]||""),void 0===n[2]&&void 0===n[1]&&""!==t||this.setSearch(n[3]||""),this.setHash(n[5]||""),this}getUrl(){return this.ht}setPath(t){const n=null!==t?t.toString():"";return is="/"===n.charAt(0)?n:`/${n}`,this.ve(),this}getPath(){return is}setHash(t){return ss=null!==t?t.toString():"",this.ve(),this}getHash(){return ss}setSearch(t,n){if(1===arguments.length)if(_(t)||j(t))t=t.toString(),rs=it(t);else{if(!S(t))throw es("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");St(t=structuredClone(t,{})).forEach(([n,e])=>{x(e)&&delete t[n]}),rs=t}else b(n)||null===n?delete rs[t]:rs[t]=n;return this.ve(),this}getSearch(){return rs}ve(){this.ht=function(t,n,e){const i=rt(n),r=e?`#${ot(e)}`:"";return function(t){const n=t.split("/");let e=n.length;for(;e--;){const t=decodeURIComponent(n[e].replace(/%2F/gi,"/"));n[e]=ot(t)}return n.join("/")}(t)+(i?`?${i}`:"")+r}(is,rs,ss),this.absUrl=this.html5?this.appBaseNoFile+this.ht.substring(1):this.appBase+(this.ht?this.hashPrefix+this.ht:""),os=!0,setTimeout(()=>this.we&&this.we())}setState(t){if(!this.html5)throw es("nostate","History API state support is available only in HTML5 mode");return this.$$state=b(t)?null:t,os=!0,this}getState(){return this.$$state}parseLinkUrl(t,n){if(this.html5){if(n&&"#"===n[0])return this.setHash(n.slice(1)),!0;let e,i,r;return y(e=as(this.appBase,t))?(i=e,r=this.basePrefix&&y(e=as(this.basePrefix,e))?this.appBaseNoFile+(as("/",e)||e):this.appBase+i):y(e=as(this.appBaseNoFile,t))?r=this.appBaseNoFile+e:this.appBaseNoFile===`${t}/`&&(r=this.appBaseNoFile),r&&this.parse(r),!!r}return ls(this.appBase)===ls(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const n=as(this.appBaseNoFile,t);if(!_(n))throw es("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);hs(n,!0),is||(is="/"),this.ve()}else{const e=as(this.appBase,t)||as(this.appBaseNoFile,t);let i;function r(t,n,e){const i=/^\/[A-Z]:(\/.*)/;if(Ot(n,e)&&(n=n.replace(e,"")),i.exec(n))return t;const r=i.exec(t);return r?r[1]:t}b(e)||"#"!==e.charAt(0)?this.html5?i=e:(i="",b(e)&&(this.appBase=t)):(i=as(this.hashPrefix,e),b(i)&&(i=e)),hs(i,!1),is=r(is,i,this.appBase),this.ve()}}}class us{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.be=[],this.ye=!1,this.ke=null,this.Ee=null,this.Se=window.location.href,this.cacheState()}setUrl(t,n){if(void 0===n&&(n=null),t){if(t=new URL(t).href,this.Se===t&&this.Ee===n)return this;this.Se=t,this.Ee=n,history.pushState(n,"",t),this.cacheState()}return this}getBrowserUrl(){return Hn(window.location.href)}state(){return this.ke}cacheState(){const t=history.state??null;G(t,this.lastCachedState)||(this.ke=t,this.lastCachedState=t,this.Ee=t)}#t(){const t=this.Ee;this.cacheState(),this.Se===this.getBrowserUrl()&&t===this.ke||(this.Se=this.getBrowserUrl(),this.Ee=this.ke,this.be.forEach(t=>{t(Hn(window.location.href),this.ke)}))}#n(t){this.ye||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.ye=!0),this.be.push(t)}$get=[jt.J,jt.Z,jt.D,(t,n,e)=>{const i=dn(),r=Hn(window.location.href);let s;if(this.html5ModeConf.enabled){if(!i&&this.html5ModeConf.requireBase)throw es("nobase","$location in HTML5 mode requires a <base> tag to be present!");s=function(t){const n=t.indexOf("//")+2,e=t.indexOf("/",n);return-1===e?t:t.substring(0,e)}(r)+(i||"/")}else s=ls(r);const o=(c=s).substring(0,ls(c).lastIndexOf("/")+1);var c;const u=new cs(s,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`);u.parseLinkUrl(r,r),u.$$state=this.state();const h=/^\s*(javascript|mailto):/i,a=(t,n)=>{const i=u.getUrl(),r=u.$$state;try{this.setUrl(t,n),u.$$state=this.state()}catch(t){u.setUrl(i),u.$$state=r,e(t)}};n.addEventListener("click",t=>{const{rewriteLinks:e}=this.html5ModeConf;if(!e||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let i=t.target;for(;"a"!==i.nodeName.toLowerCase();)if(i===n||!(i=i.parentElement))return;if(_(e)&&b(i.getAttribute(e)))return;let r=i.href;const s=i.getAttribute("href")||i.getAttribute("xlink:href");S(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=new URL(r.animVal).href),h.test(r)||!r||i.getAttribute("target")||t.defaultPrevented||u.parseLinkUrl(r,s)&&t.preventDefault()}),u.absUrl!==r&&this.setUrl(u.absUrl,!0);let l=!0;this.#n((n,e)=>{Ot(n,o)?queueMicrotask(()=>{const i=u.absUrl,r=u.$$state;u.parse(n),u.$$state=e;const{defaultPrevented:s}=t.$broadcast("$locationChangeStart",n,i,e,r);u.absUrl===n&&(s?(u.parse(i),u.$$state=r,a(i,r)):(l=!1,d(i,r)))}):window.location.href=n});const f=()=>{if(l||os){os=!1;const e=this.getBrowserUrl();let i=u.absUrl;const r=this.state(),s=(n=i,!(fs(e)===fs(n))||u.html5&&r!==u.$$state);(l||s)&&(l=!1,setTimeout(()=>{i=u.absUrl;const{defaultPrevented:n}=t.$broadcast("$locationChangeStart",u.absUrl,e,u.$$state,r);u.absUrl===i&&(n?(u.parse(e),u.$$state=r):(s&&a(i,r===u.$$state?null:u.$$state),d(e,r)))}))}var n};return u.we=f,f(),t.$on("$updateBrowser",f),u;function d(n,e){t.$broadcast("$locationChangeSuccess",u.absUrl,n,u.$$state,e)}}]}function hs(t,n){if(/^\s*[\\/]{2,}/.test(t))throw es("badpath",'Invalid url "{0}".',t);const e="/"!==t.charAt(0);e&&(t=`/${t}`);const i=Fn(t),r=e&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;is=function(t,n){const e=t.split("/");let i=e.length;for(;i--;)e[i]=decodeURIComponent(e[i]),n&&(e[i]=e[i].replace(/\//g,"%2F"));return e.join("/")}(r,n),rs=it(i.search),ss=decodeURIComponent(i.hash),is&&"/"!==is.charAt(0)&&(is=`/${is}`)}function as(t,n){if(Ot(n,t))return n.substring(t.length)}function ls(t){const n=t.indexOf("#");return-1===n?t:t.substring(0,n)}function fs(t){const n=document.createElement("a");n.href=t;let e=n.href;return e.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(e)&&(e=e.slice(0,-1)),e.endsWith("#")&&(e=e.slice(0,-1)),e}class ds{constructor(){this.debug=!1,this._e=null}setLogger(t){this._e=t}xe(t){return T(t)&&t.stack&&(t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack),t}Oe(t){const n=window.console||{},e=n[t]||n.log||(()=>{});return(...t)=>{const i=t.map(t=>this.xe(t));return e.apply(n,i)}}$get(){return this._e?this._e():{log:this.Oe("log"),info:this.Oe("info"),warn:this.Oe("warn"),error:this.Oe("error"),debug:(()=>{const t=this.Oe("debug");return(...n)=>{this.debug&&t.apply(this,n)}})()}}}const ms=pt("$parse"),ps={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},$s=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" ")),gs=10,ws=11;class vs{constructor(t){this.Ce=t}compile(t){const n=bs(t,this.Ce),{body:e}=n,i=function(t){const n=t.body[0];if(1===t.body.length&&n?.expression&&ys(n.expression))return{type:3,left:n.expression,right:{type:17},operator:"="}}(n);let r;i&&(r=this.#e(i));const s=function(t){if(1!==t.length)return;const n=t[0].expression,e=n.toWatch;return 1!==e.length||e[0]!==n?e:void 0}(e);let o;if(s){o=[];for(const[t,n]of St(s)){const e=this.#e(n);n.input=e,o.push(e),n.watchId=t}}const c=[];e.forEach(t=>{c.push(this.#e(t.expression))});const u=0===e.length?()=>{}:1===e.length?c[0]:function(t,n){let e;for(let i=0;i<c.length;i++)e=c[i](t,n);return e};return r&&(u.un=(t,n,e)=>r(t,e,n)),o&&(u.hn=o),u.pe=n,u}#e(t,n,e){let i,r;const s=this;let o;switch(t.type){case ws:return this.value(t.value,n);case 7:return r=this.#e(t.argument),this[`unary${t.operator}`](r,n);case 6:case 5:return i=this.#e(t.left),r=this.#e(t.right),this[`binary${t.operator}`](i,r,n);case 4:return this["ternary?:"](this.#e(t.test),this.#e(t.alternate),this.#e(t.consequent),n);case gs:return s.identifier(t.name,n,e);case 9:return i=this.#e(t.object,!1,!!e),t.computed||(r=t.property.name),t.computed&&(r=this.#e(t.property)),t.computed?this.#i(i,r,n,e):this.nonComputedMember(i,r,n,e);case 8:return o=[],t.arguments.forEach(t=>{o.push(s.#e(t))}),t.filter&&(r=this.Ce(t.callee.name)),t.filter||(r=this.#e(t.callee,!0)),t.filter?(t,e,i)=>{const s=[];for(let n=0;n<o.length;++n){const r=o[n](t&&m(t),e,i);s.push(r)}const c=()=>r.apply(void 0,s);return n?{context:void 0,name:void 0,value:c}:c()}:(t,e,i)=>{const s=r(t.$target?t.$target:t,e,i);let c;if(!O(s.value)&&R(s.value)){const n=[];for(let r=0;r<o.length;++r){const s=o[r](t,e,i);n.push(R(s)?s():s)}c=s.value.apply(s.context,n)}return n?{value:c}:c};case 3:return i=this.#e(t.left,!0,1),r=this.#e(t.right),(t,e,s)=>{const o=i(t,e,s),c=r(t,e,s);return(d(o.context)?o.context:o.context.$proxy??o.context)[o.name]=c,n?{value:c}:c};case 12:return o=[],t.elements.forEach(t=>{o.push(s.#e(t))}),(t,e,i)=>{const r=[];for(let n=0;n<o.length;++n)r.push(o[n](t,e,i));return n?{value:r}:r};case 14:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:s.#e(t.key),computed:!0,value:s.#e(t.value)}):o.push({key:t.key.type===gs?t.key.name:`${t.key.value}`,computed:!1,value:s.#e(t.value)})}),(t,e,i)=>{const r={};for(let n=0;n<o.length;++n)o[n].computed?r[o[n].key(t,e,i)]=o[n].value(t,e,i):r[o[n].key]=o[n].value(t,e,i);return n?{value:r}:r};case 15:return t=>n?{value:t}:t.$proxy;case 16:return(t,e)=>n?{value:e}:e;case 17:return(t,e,i)=>n?{value:i}:i}}"unary+"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=y(s)?+s:0,n?{value:s}:s}}"unary-"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=y(s)?-s:-0,n?{value:s}:s}}"unary!"(t,n){return(e,i,r)=>{const s=!t(e,i,r);return n?{value:s}:s}}"binary+"(t,n,e){return(i,r,s)=>{const o=function(t,n){return void 0===t||S(t)?n:void 0===n||S(n)?t:t+n}(t(i,r,s),n(i,r,s));return e?{value:o}:o}}"binary-"(t,n,e){return(i,r,s)=>{const o=t(i,r,s),c=n(i,r,s),u=(y(o)?o:0)-(y(c)?c:0);return e?{value:u}:u}}"binary*"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)*n(i,r,s);return e?{value:o}:o}}"binary/"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)/n(i,r,s);return e?{value:o}:o}}"binary%"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)%n(i,r,s);return e?{value:o}:o}}"binary==="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)===n(i,r,s);return e?{value:o}:o}}"binary!=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!==n(i,r,s);return e?{value:o}:o}}"binary=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)==n(i,r,s);return e?{value:o}:o}}"binary!="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!=n(i,r,s);return e?{value:o}:o}}"binary<"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<n(i,r,s);return e?{value:o}:o}}"binary>"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>n(i,r,s);return e?{value:o}:o}}"binary<="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<=n(i,r,s);return e?{value:o}:o}}"binary>="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>=n(i,r,s);return e?{value:o}:o}}"binary&&"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)&&n(i,r,s);return e?{value:o}:o}}"binary||"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)||n(i,r,s);return e?{value:o}:o}}"ternary?:"(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o)?n(r,s,o):e(r,s,o);return i?{value:c}:c}}value(t,n){return()=>n?{context:void 0,name:void 0,value:t}:t}identifier(t,n,e){return(i,r)=>{const s=r&&t in r?r:(i&&i.$proxy)??i;let o;return e&&1!==e&&s&&O(s[t])&&(s[t]={}),s&&(o=m(s)[t]),n?{context:s,name:t,value:o}:o}}#i(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);let u,h;return O(c)||(u=n(r,s,o),u=function(t){return`${t}`}(u),i&&1!==i&&c&&!c[u]&&(c[u]={}),h=c[u]),e?{context:c,name:u,value:h}:h}}nonComputedMember(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);i&&1!==i&&c&&O(c[n])&&(c[n]={});const u=O(c)?void 0:c[n];return e?{context:c,name:n,value:u}:u}}}function bs(t,n,e){let i,r,s;const o=t;let c,u,h,a,l,f,d,m;const p=o.isPure=!!function(t,n){switch(t.type){case 9:if(t.computed)return!1;break;case 7:return 1;case 6:return"+"!==t.operator&&1;case 8:return!1}return void 0===n?2:n}(t,e);switch(t.type){case 1:return i=!0,o.body.forEach(t=>{const e=bs(t.expression,n,p);i=i&&e.constant}),o.constant=i,o;case ws:return o.constant=!0,o.toWatch=[],o;case 7:{const t=bs(o.argument,n,p);return o.constant=t.constant,o.toWatch=t.toWatch||[],o}case 6:return c=bs(o.left,n,p),u=bs(o.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=c.toWatch.concat(u.toWatch),o;case 5:return c=bs(o.left,n,p),u=bs(o.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=o.constant?[]:[t],o;case 4:return h=bs(t.test,n,p),a=bs(t.alternate,n,p),l=bs(t.consequent,n,p),o.constant=h.constant&&a.constant&&l.constant,o.toWatch=o.constant?[]:[t],o;case gs:return o.constant=!1,o.toWatch=[t],o;case 9:return f=bs(t.object,n,p),t.computed&&(d=bs(t.property,n,p)),o.constant=f.constant&&(!o.computed||d.constant),o.toWatch=o.constant?[]:[t],o;case 8:return s=t.filter,i=s,r=[],t.arguments.forEach(t=>{const e=bs(t,n,p);i=i&&e.constant,r.push.apply(r,e.toWatch)}),o.constant=i,o.toWatch=s?r:[o],o;case 3:return c=bs(t.left,n,p),u=bs(t.right,n,p),o.constant=c.constant&&u.constant,o.toWatch=[o],o;case 12:return i=!0,r=[],t.elements.forEach(t=>{const e=bs(t,n,p);i=i&&e.constant,r.push.apply(r,e.toWatch)}),o.constant=i,o.toWatch=r,o;case 14:return i=!0,r=[],t.properties.forEach(t=>{const e=bs(t.value,n,p);i=i&&e.constant,r.push.apply(r,e.toWatch),t.computed&&(m=bs(t.key,n,!1),i=i&&m.constant,r.push.apply(r,e.toWatch))}),o.constant=i,o.toWatch=r,o;case 15:case 16:return o.constant=!1,o.toWatch=[],o;default:throw new Error(`Unknown AST node type: ${t.type}`)}}function ys(t){return t.type===gs||9===t.type}const ks=pt("$parse"),Es={true:!0,false:!1,null:null,undefined:void 0};class Ss{constructor(t){this.je=t,this.Ae={this:{type:15},$locals:{type:16}},this.Te=0}Re(t){this.Me=t,this.Pe=this.je.Ie(t);const n=this.De();return this.Pe.length>this.Te&&this.Ne("is an unexpected token",this.Pe[this.Te]),n}De(){const t=[];let n=!0;for(;n;)this.Pe&&this.Pe.length>this.Te&&!this.qe("}",")",";","]")&&t.push(this.Ue()),this.Ve(";")||(n=!1);return{type:1,body:t}}Ue(){return{type:2,expression:this.Fe()}}Fe(){let t=this.Le();for(;this.Ve("|");)t=this.N(t);return t}Le(){let t=this.He();if(this.Ve("=")){if(!ys(t))throw ks("lval","Trying to assign a value to a non l-value");t={type:3,left:t,right:this.Le(),operator:"="}}return t}He(){const t=this.Be();if(this.Ve("?")){const n=this.Le();if(this.ze(":"))return{type:4,test:t,alternate:n,consequent:this.Le()}}return t}Be(){let t=this.We();for(;this.Ve("||");)t={type:5,operator:"||",left:t,right:this.We()};return t}We(){let t=this.Je();for(;this.Ve("&&");)t={type:5,operator:"&&",left:t,right:this.Je()};return t}Je(){let t,n=this.Ze();for(;t=this.Ve("==","!=","===","!==");)n={type:6,operator:t.text,left:n,right:this.Ze()};return n}Ze(){let t,n=this.Ge();for(;t=this.Ve("<",">","<=",">=");)n={type:6,operator:t.text,left:n,right:this.Ge()};return n}Ge(){let t,n=this.Ke();for(;t=this.Ve("+","-");)n={type:6,operator:t.text,left:n,right:this.Ke()};return n}Ke(){let t,n=this.Xe();for(;t=this.Ve("*","/","%");)n={type:6,operator:t.text,left:n,right:this.Xe()};return n}Xe(){let t;return(t=this.Ve("+","-","!"))?{type:7,operator:t.text,prefix:!0,argument:this.Xe()}:this.Ye()}Ye(){let t,n;for(this.Ve("(")?(t=this.Fe(),this.ze(")")):this.Ve("[")?t=this.Qe():this.Ve("{")?t=this.ti():kt(this.Ae,this.qe().text)?t=structuredClone(this.Ae[this.ze().text]):kt(Es,this.qe().text)?t={type:ws,value:Es[this.ze().text]}:this.qe().identifier?t=this.ni():this.qe().constant?t=this.ei():this.Ne("not a primary expression",this.qe());n=this.Ve("(","[",".");)if("("===n.text)t={type:8,callee:t,arguments:this.ii()},this.ze(")");else if("["===n.text)t={type:9,object:t,property:this.Le(),computed:!0},this.ze("]");else{if("."!==n.text)throw new Error("IMPOSSIBLE");t={type:9,object:t,property:this.ni(),computed:!1}}return t}N(t){const n=[t],e={type:8,callee:this.ni(),arguments:n,filter:!0};for(;this.Ve(":");)n.push(this.Le());return e}ii(){const t=[];if(")"!==this.ri().text)do{t.push(this.Fe())}while(this.Ve(","));return t}ni(){const t=this.ze();return t.identifier||this.Ne("is not a valid identifier",t),{type:gs,name:t.text}}ei(){return{type:ws,value:this.ze().value}}Qe(){const t=[];if("]"!==this.ri().text)do{if(this.qe("]"))break;t.push(this.Le())}while(this.Ve(","));return this.ze("]"),{type:12,elements:t}}ti(){const t=[];let n;if("}"!==this.ri().text)do{if(this.qe("}"))break;n={type:13,kind:"init"},this.qe().constant?(n.key=this.ei(),n.computed=!1,this.ze(":"),n.value=this.Le()):this.qe().identifier?(n.key=this.ni(),n.computed=!1,this.qe(":")?(this.ze(":"),n.value=this.Le()):n.value=n.key):this.qe("[")?(this.ze("["),n.key=this.Le(),this.ze("]"),n.computed=!0,this.ze(":"),n.value=this.Le()):this.Ne("invalid key",this.qe()),t.push(n)}while(this.Ve(","));return this.ze("}"),{type:14,properties:t}}Ne(t,n){throw ks("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",n.text,t,n.index+1,this.Me,this.Me?.substring(n.index))}ze(t){if(this.Pe&&this.Pe.length===this.Te)throw ks("ueoe","Unexpected end of expression: {0}",this.Me);return(y(t)?this.Ve(t):this.Ve())||void this.Ne(`is unexpected, expecting [${t}]`,this.qe())}ri(){if(this.Pe&&this.Pe.length!==this.Te)return this.Pe[this.Te];throw ks("ueoe","Unexpected end of expression: {0}",this.Me)}qe(...t){const n=this.Pe&&this.Pe[this.Te];if(!n)return!1;const e=t.length;if(!e)return n;const i=n.text;if(1===t.length)return t[0]===i&&n;for(let r=0;r<e;r++)if(t[r]===i||!t[r])return n;return!1}Ve(...t){const n=this.qe(...t);return!!n&&(this.Te++,n)}}class _s{constructor(t,n){this.Re=new Ss(t),this.si=new vs(n)}B(t){t=t.trim();const n=this.Re.Re(t),e=this.si.compile(n);return e.zt=function(t){const{body:n}=t;if(!n||1!==n.length)return!0;if(!n||1!==n.length)return!0;switch(n[0].expression?.type){case ws:case 12:case 14:return!0;default:return!1}}(n),e.constant=!!n.constant,e}}const xs=new class{constructor(){this.Me="",this.Te=0}Ie(t){for(this.Me=t,this.Te=0,this.Pe=[];this.Te<this.Me.length;){const t=this.Me.charAt(this.Te);if('"'===t||"'"===t)this.oi(t);else if(this.ci(t)||"."===t&&this.ci(this.qe()))this.ui();else if(this.hi(this.ai()))this.li();else if(this.fi(t,"(){}[].,;:?"))this.Pe.push({index:this.Te,text:t}),this.Te++;else if(this.di(t))this.Te++;else{const n=t+this.qe(),e=n+this.qe(2),i=$s.has(t),r=$s.has(n),s=$s.has(e);if(i||r||s){const i=s?e:r?n:t;this.Pe.push({index:this.Te,text:i,operator:!0}),this.Te+=i.length}else this.Ne("Unexpected next character ",this.Te,this.Te+1)}}return this.Pe}fi(t,n){return-1!==n.indexOf(t)}qe(t){const n=t||1;return this.Te+n<this.Me.length&&this.Me.charAt(this.Te+n)}ci(t){return t>="0"&&t<="9"&&"string"==typeof t}di(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}hi(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}mi(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}ai(){const t=this.Me.charAt(this.Te),n=this.qe();if(!n)return t;const e=t.charCodeAt(0),i=n.charCodeAt(0);return e>=55296&&e<=56319&&i>=56320&&i<=57343?t+n:t}pi(t){return"-"===t||"+"===t||this.ci(t)}Ne(t,n,e){e=e||this.Te;const i=y(n)?`s ${n}-${this.Te} [${this.Me.substring(n,e)}]`:` ${e}`;throw ms("lexerr",`Lexer Error: ${t} at column${i} in expression [${this.Me}].`)}ui(){let t="";const n=this.Te;for(;this.Te<this.Me.length;){const n=this.Me.charAt(this.Te).toLowerCase();if("."===n||this.ci(n))t+=n;else{const e=this.qe();if("e"===n&&this.pi(e))t+=n;else if(this.pi(n)&&e&&this.ci(e)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.pi(n)||e&&this.ci(e)||"e"!==t.charAt(t.length-1))break;this.Ne("Invalid exponent")}}this.Te++}this.Pe.push({index:n,text:t,constant:!0,value:Number(t)})}li(){const t=this.Te;for(this.Te+=this.ai().length;this.Te<this.Me.length;){const t=this.ai();if(!this.mi(t))break;this.Te+=t.length}this.Pe.push({index:t,text:this.Me.slice(t,this.Te),identifier:!0})}oi(t){const n=this.Te;let e="",i=!1;for(this.Te++;this.Te<this.Me.length;){const r=this.Me[this.Te];if(i)e+="u"===r?this.$i():ps[r]||r,i=!1;else if("\\"===r)i=!0;else{if(r===t)return this.Pe.push({index:n,text:this.Me.slice(n,this.Te+1),constant:!0,value:e}),void this.Te++;e+=r}this.Te++}this.Ne("Unterminated quote",n)}$i(){const t=this.Me.substring(this.Te+1,this.Te+5);return t.match(/[\da-f]{4}/i)||this.Ne(`Invalid unicode escape [\\u${t}]`),this.Te+=4,String.fromCharCode(parseInt(t,16))}};class Os{constructor(){const t=Object.create(null);this.$get=[jt.N,function(n){return function(e,i){let r;return Pn(e,"exp"),e=e.trim(),r=t[e],r||(r=new _s(xs,n).B(e)),function(t,n){if(!n)return t;const e=function(e,i,r){if(e?.getter)return;const s=t(e,i,r),o=R(s)?s():s;return n(m(o))};return e.gi=n,e.zt=t.zt,e.constant=t.constant,e.pe=t.pe,e}(r,i)}}]}}let Cs,js,As=0;const Ts=[];class Rs{constructor(){this.rootScope=Ms()}$get=[jt.D,jt.B,(t,n)=>(js=t,Cs=n,this.rootScope)]}function Ms(t={},n){if(!S(t)||function(t){if(null==t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t)return!0;if(!0===t.$nonscope||!0===t?.constructor?.$nonscope)return!0;if(t===Ps.window||t===Ps.document||t===Ps.self||t===Ps.frames)return!0;const n=[Window,Document,Element,Node,EventTarget,Promise,HTMLCollection,NodeList,Event,Date,RegExp,Map,Set,WeakMap,WeakSet,ArrayBuffer,DataView,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array,Function,Error,Blob,File,FormData,URL,URLSearchParams];for(const e of n)try{if(t instanceof e)return!0}catch{}try{return Object.prototype.toString.call(t)===Is}catch{return!1}}(t))return t;const e=new Proxy(t,n||new Ds),i=Et(t),r=k(t.constructor?.$nonscope)?t.constructor.$nonscope:null,s=k(t.$nonscope)?t.$nonscope:null;for(let n=0,o=i.length;n<o;n++){const o=i[n];r?.includes(o)||s?.includes(o)||(t[o]=Ms(t[o],e.$handler))}return e}const Ps=globalThis,Is="[object Window]";class Ds{constructor(t,n){this.an=t?.an??new Map,this.wi=new Map,this.bi=t?.bi??new Map,this.yi=t?.yi??new Set,this.ki=t?.ki??new WeakMap,this.$proxy,this.$handler=this,this.$target=null,this.Ei=[],this.$id=(As+=1,As),this.$root=t?t.$root:this,this.$parent=n||(this.$root===this?void 0:t),this.cn=!1,this.Si=[],this.$scopename=void 0,this.propertyMap={$apply:this.$apply.bind(this),$broadcast:this.$broadcast.bind(this),Ei:this.Ei,$destroy:this.$destroy.bind(this),$emit:this.$emit.bind(this),$eval:this.$eval.bind(this),$flushQueue:this.$flushQueue.bind(this),$getById:this.$getById.bind(this),$handler:this,$id:this.$id,$isRoot:this.#r.bind(this),$merge:this.$merge.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$on:this.$on.bind(this),$parent:this.$parent,$postUpdate:this.$postUpdate.bind(this),$proxy:this.$proxy,$root:this.$root,$scopename:this.$scopename,$searchByName:this.$searchByName.bind(this),$transcluded:this.$transcluded.bind(this),$watch:this.$watch.bind(this)}}set(t,n,e,i){if("undefined"===n)return!1;if("$scopename"===n)return this.$scopename=e,!0;const r=t.constructor?.$nonscope??t.$nonscope;if(k(r)&&r.includes(n))return t[n]=e,!0;this.$proxy=i,this.$target=t;const s=t[n];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(e))return!0;if(s&&s[f]){if(k(e)){if(s!==e){const t=this.an.get(n);t&&this.#s(t);const e=this.bi.get(n);e&&this.#s(e)}return this.ki.get(t[n])&&this.ki.delete(t[n]),t[n]=Ms(e,this),this.ki.set(t[n],[n]),!0}if(S(e)){if(kt(t,n)){const t=Et(s);for(const n of t)e[n]||delete s[n]}if(s!==e){const t=this.an.get(n);t&&this.#s(t);const i=this.bi.get(n);i&&this.#s(i),this.#o(e)}return t[n]=Ms(e,this),!0}if(b(e)){let e=!1;const i=Et(s.$target),r=s.$target;let o=0;for(;o<i.length;o++){const t=i[o],n=r[t];n&&n[f]&&(e=!0),delete s[t]}if(t[n]=void 0,!e){const t=this.an.get(n);t&&this.#s(t)}return!0}if(y(e)){t[n]=e;const r=this.an.get(n);if(r&&this.#s(r),k(t)&&this.ki.has(i)&&"length"!==n){const t=this.ki.get(i);for(let n=0,e=t.length;n<e;n++){const e=this.an.get(t[n]);e&&this.#s(e)}}return!0}return!0}if(b(t[n])&&d(e)&&(this.yi.add(e),t[n]=e,!this.an.has(n)))return!0;if(b(e)?t[n]=e:t[n]=Ms(e,this),s!==e){let i=this.$target;const r=[];if(b(s)&&S(t[n])){this.ki.has(t[n])||this.ki.set(t[n],[n]);const s=Et(e);for(let t=0,n=s.length;t<n;t++){const n=s[t],e=this.an.get(n);if(e)for(let t=0,n=e.length;t<n;t++)r.push(e[t])}i=e}if(k(t)){const t=this.an.get("length");if(t)for(let n=0,e=t.length;n<e;n++)r.push(t[n])}const o=this.an.get(n);if(o)for(let t=0,n=o.length;t<n;t++)r.push(o[t]);r.length>0&&this.#s(r,t=>{const n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!r.watchProp){n.push(r);continue}const s=r.watchProp.split(".").slice(0,-1).join("."),o=Cs(s)(r.originalTarget);i===o?.$target&&n.push(r)}return n});let c=this.bi.get(n);if(!c&&this.$parent?.bi&&(c=this.$parent.bi.get(n)),c){let t=c;const n=this.$target.i;if(n){t=[];for(let e=0,i=c.length;e<i;e++){const i=c[e];i.originalTarget.i===n&&t.push(i)}}t.length>0&&this.#s(t)}}if(this.ki.has(i)&&"length"!==n){const t=this.ki.get(i);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&this.Si!==i&&this.#s(i)}}return!0}get(t,n,e){if("$scopename"===n&&this.$scopename)return this.$scopename;if("$$watchersCount"===n)return function(t){const n=function(t){const n=new Set,e=[t];for(;e.length;){const t=e.pop();if(!n.has(t.$id)&&(n.add(t.$id),t.Ei))for(let n=0,i=t.Ei.length;n<i;n++)e.push(t.Ei[n])}return n}(t);let e=0;for(const i of t.an.values())for(let t=0,r=i.length;t<r;t++)n.has(i[t].scopeId)&&e++;return e}(this);if(n===f)return!0;const i=t[n];if(d(i)?this.$proxy=i:this.$proxy=e,this.propertyMap.$target=t,this.propertyMap.$proxy=e,k(t)&&["pop","shift","unshift"].includes(n)){if(this.ki.has(e)){const t=this.ki.get(e);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&(this.Si=i)}}"unshift"===n&&this.#s(this.Si)}return kt(this.propertyMap,n)?(this.$target=t,this.propertyMap[n]):i}deleteProperty(t,n){if(t[n]&&t[n][f]){t[n]=void 0;const e=this.an.get(n);if(e&&this.#s(e),this.ki.has(this.$proxy)){const t=this.ki.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&this.#s(i)}}return this.Si&&(this.#s(this.Si),this.Si=[]),!0}if(delete t[n],this.ki.has(this.$proxy)){const t=this.ki.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.an.get(e);i&&this.#s(i)}}else{const e=this.an.get(n);e&&this.#s(e,t[n])}return!0}#o(t){b(t)||Et(t).forEach(n=>{const e=this.an.get(n);e&&this.#s(e),S(t[n])&&this.#o(t[n])})}#s(t,n=t=>t){queueMicrotask(()=>{let e=0;const i=n(t);for(;e<i.length;){const t=i[e];this.#c(t,this.$target),e++}})}$watch(t,n,e=!1){at(_(t),"Watched property required"),t=t.trim();const i=Cs(t);if(i.constant)return n&&queueMicrotask(()=>{let t=i();for(;R(t);)t=t();n(t,this.$target)}),()=>{};const r=i.pe.body[0].expression;if(!n){let t=i(this.$target);for(;R(t);)t=t(this.$target);return}const s={originalTarget:this.$target,listenerFn:n,watchFn:i,scopeId:this.$id,id:g(),property:[]};let o=r.name;const c=[],{type:u}=r;switch(u){case 3:o=r.left?.name;break;case 4:o=(r.toWatch[0]?.test)?.name,s.property.push(o);break;case 5:{const t=[r.left.toWatch[0]?.name,r.right.toWatch[0]?.name];for(let n=0,e=t.length;n<e;n++){const e=t[n];e&&this.#u(e,s)}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];this.#h(e,s.id)}}}case 6:if(r.isPure){const t=r.toWatch[0];if(o=t.property?t.property.name:t.name,!o)throw new Error("Unable to determine key");s.property.push(o);break}{const{toWatch:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;if(!i)throw new Error("Unable to determine key");this.#u(i,s),this.#s([s])}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;this.#h(i,s.id)}}}case 7:{const t=r.toWatch[0];if(o=t.property?t.property.name:t.name,!o)throw new Error("Unable to determine key");s.property.push(o);break}case 8:{const{toWatch:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n];y(e)&&(this.#u(e.name,s),this.#s([s]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];y(e)&&this.#h(e.name,s.id)}}}case 9:if(o=r.property.name,o||(o=r.object.name),s.property.push(o),t!==o){s.watchProp=t;const n=Cs(t.split(".").slice(0,-1).join("."))(s.originalTarget);if(n&&this.yi.has(n))return n.$handler._i(o,s),n.$handler.#s([s]),()=>(n.$handler.xi(o,s.id),n.$handler.#h(o,s.id))}break;case gs:s.property.push(r.name);break;case 12:{const{elements:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ws?e.value:e.toWatch[0]?.name;i&&(this.#u(i,s),this.#s([s]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ws?e.value:e.toWatch[0].name;i&&this.#h(i,s.id)}}}case 14:{const{properties:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n];let i;if(!1===e.key.isPure)i=e.key.name;else if(e.value?.name)i=e.value.name;else{const t=r.toWatch[0];i=t.property?t.property.name:t.name}i&&(c.push(i),s.property.push(i))}break}default:throw new Error(`Unsupported type ${u}`)}const h=s.watchFn(this.$target);if(S(h)&&this.ki.set(h,[o]),c.length>0)for(let t=0,n=c.length;t<n;t++)this.#u(c[t],s);else this.#u(o,s);return e||this.#s([s]),()=>{if(c.length>0){let t=!0;for(let n=0,e=c.length;n<e;n++)this.#h(c[n],s.id)||(t=!1);return t}return this.#h(o,s.id)}}$new(t){let n;if(t){const e=Object.getPrototypeOf(t);e===Object.prototype||e===this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(e||t,this.$target),n=t}else n=Object.create(this.$target);const e=new Proxy(n,new Ds(this));return this.Ei.push(e),e}$newIsolate(t){const n=t?Object.create(t):Object.create(null),e=new Proxy(n,new Ds(this,this.$root));return this.Ei.push(e),e}$transcluded(t){const n=Object.create(this.$target),e=new Proxy(n,new Ds(this,t));return this.Ei.push(e),e}#u(t,n){this.an.has(t)?this.an.get(t).push(n):this.an.set(t,[n])}_i(t,n){this.bi.has(t)?this.bi.get(t).push(n):this.bi.set(t,[n])}#h(t,n){const e=this.an.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this.an.set(t,e):this.an.delete(t),!0)}xi(t,n){const e=this.bi.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this.bi.set(t,e):this.bi.delete(t),!0)}$eval(t,n){const e=Cs(t)(this,n);return b(e)||null===e||e.name===Object.hasOwnProperty.name?e:R(e)?e():Number.isNaN(e)?0:e}$merge(t){const n=St(t);for(let t=0,e=n.length;t<e;t++){const[e,i]=n[t];this.set(this.$target,e,i,this.$proxy)}}$apply(t){try{return Cs(t)(this.$proxy)}catch(t){return js(t)}}$on(t,n){let e=this.wi.get(t);return e||(e=[],this.wi.set(t,e)),e.push(n),()=>{const i=e.indexOf(n);-1!==i&&(e.splice(i,1),0===e.length&&this.wi.delete(t))}}$emit(t,...n){return this.#a({name:t,event:void 0,broadcast:!1},...n)}$broadcast(t,...n){return this.#a({name:t,event:void 0,broadcast:!0},...n)}#a({name:t,event:n,broadcast:e},...i){if(!e&&!this.wi.has(t))return this.$parent?this.$parent.$handler.#a({name:t,event:n,broadcast:e},...i):void 0;n?n.currentScope=this.$proxy:n=n||{name:t,targetScope:this.$proxy,currentScope:this.$proxy,stopped:!1,stopPropagation(){n.stopped=!0},preventDefault(){n.defaultPrevented=!0},defaultPrevented:!1};const r=Y([n],[n].concat(i),1),s=this.wi.get(t);if(s){let{length:t}=s;for(let n=0;n<t;n++)try{s[n].apply(null,r);const e=s.length;e!==t&&(e<t&&n--,t=e)}catch(t){js(t)}}return n.currentScope=null,n.stopped?n:e?(this.Ei.length>0&&this.Ei.forEach(r=>{n=r.$handler.#a({name:t,event:n,broadcast:e},...i)}),n):this.$parent?this.$parent.#a({name:t,event:n,broadcast:e},...i):n}#r(){return this.$root===this}$postUpdate(t){Ts.push(t)}$destroy(){if(!this.cn){this.$broadcast("$destroy");for(const[t,n]of this.an){for(let t=n.length-1;t>=0;t--)n[t].scopeId===this.$id&&n.splice(t,1);0===n.length?this.an.delete(t):this.an.set(t,n)}if(this.#r())this.an.clear();else{const t=this.$parent.Ei;for(let n=0,e=t.length;n<e;n++)if(t[n].$id===this.$id){t.splice(n,1);break}}this.wi.clear(),this.cn=!0}}#c(t,n){const{originalTarget:e,listenerFn:i,watchFn:r}=t;try{let t=r(e);if(b(t)&&(t=r(n)),R(t)&&(t=t(e)),k(t))for(let n=0,i=t.length;n<i;n++)R(t[n])&&(t[n]=t[n](e));for(i(t,e);Ts.length;)Ts.shift()()}catch(t){js(t)}}$flushQueue(){for(;Ts.length;)Ts.shift()()}$getById(t){if(_(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let n;for(const e of this.Ei){const i=e.$getById(t);if(i){n=i;break}}return n}}$searchByName(t){const n=[this.$root];for(;n.length;){const e=n.pop();if(e.$scopename===t)return e;if(e.Ei?.length)for(let t=e.Ei.length-1;t>=0;t--)n.push(e.Ei[t])}}}class Ns{httpOptions;$get=[jt.rt,jt.q,(t,n)=>e=>{let i=n.defaults?.transformResponse??null;k(i)?i=i.filter(t=>t!==Qn):i===Qn&&(i=null);const r=F({cache:t,transformResponse:i},this.httpOptions||{});return n.get(e,r).then(n=>(t.set(e,n.data),n.data),t=>Promise.reject(t))}]}class qs{constructor(){this.Oi=/^\s*(https?|s?ftp|mailto|tel|file):/,this.Ci=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return y(t)?(this.Oi=t,this):this.Oi}imgSrcSanitizationTrustedUrlList(t){return y(t)?(this.Ci=t,this):this.Ci}$get=[jt.ft,t=>(n,e)=>{if(!n)return n;const i=e?this.Ci:this.Oi,r=new URL(n.trim(),t.location.href).href;return""===r||r.match(i)?n:`unsafe:${r}`}]}const Us="ng-active",Vs="ng-inactive";class Fs{constructor(t,n,e,i){this.$element=t,this.$scope=n,this.$attrs=e,this.$animate=i,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watch(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const n=Hs(this.$scope,this.$attrs.ngMessagesMultiple)||Hs(this.$scope,this.$attrs.multiple),e=[],i={};let r=0,s=this.head,o=!1,c=0;for(;s;){c++;const u=s.message;let h=!1;o||St(t).forEach(([t,n])=>{if(Bs(n)&&!h&&(r++,u.test(t))){if(i[t])return;i[t]=!0,h=!0,u.attach()}}),h?o=!n:e.push(u),s=s.next}e.forEach(t=>{t.detach()});const u=e.length!==c,h=this.default&&!u&&r>0;h?this.default.attach():this.default&&this.default.detach(),u||h?this.$animate.setClass(this.$element,Us,Vs):this.$animate.setClass(this.$element,Vs,Us)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(t,n,e){if(e)this.default=n;else{const e=this.latestKey.toString();this.messages[e]={message:n},this.insertMessageNode(this.$element,t,e),t.ji=e,this.latestKey++}this.reRender()}deregister(t,n){if(n)delete this.default;else{const n=t.ji;delete t.ji,this.removeMessageNode(this.$element,t,n),delete this.messages[n]}this.reRender()}findPreviousMessage(t,n){let e=n;const i=[];for(;e&&e!==t;){const t=e.ji;if(t&&t.length)return this.messages[t];e.childNodes.length&&-1===i.indexOf(e)?(i.push(e),e=e.childNodes[e.childNodes.length-1]):e.previousSibling?e=e.previousSibling:(e=e.parentNode,i.push(e))}}insertMessageNode(t,n,e){const i=this.messages[e];if(this.head){const e=this.findPreviousMessage(t,n);e?(i.next=e.next,e.next=i):(i.next=this.head,this.head=i)}else this.head=i}removeMessageNode(t,n,e){const i=this.messages[e];if(!i)return;const r=this.findPreviousMessage(t,n);r?r.next=i.next:this.head=i.next}}function Ls(t){return{require:"ngMessages",restrict:"AE",controller:(n,e,i)=>new Fs(n,e,i,t)}}function Hs(t,n){return _(n)&&0===n.length||Bs(n&&t.$eval(n))}function Bs(t){return _(t)?t.length:!!t}function zs(t,n){return{restrict:"AE",require:"^^ngMessages",link(e,i,r){const s=r.ngMessagesInclude||r.src;t(s).then(t=>{e.cn||_(t)&&!t.trim()||n(t)(e,t=>{E(t,Node)&&i.after(t)})})}}}Ls.$inject=[jt.C],zs.$inject=[jt.ot,jt.T];const Ws=Gs(!1),Js=Gs(!1),Zs=Gs(!0);function Gs(t){function n(n){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(e,i,r,s,o){let c,u,h,a,l,f;if(!t){c=i,h=r.ngMessage||r.when,a=r.ngMessageExp||r.whenExp;const t=function(t){u=t?k(t)?t:t.split(/[\s,]+/):null,s.reRender()};a?(t(e.$eval(a)),e.$watch(a,t)):t(h)}s.register(c,f={test:t=>function(t,n){if(t)return k(t)?t.indexOf(n)>=0:kt(t,n)}(u,t),attach(){l||o((e,r)=>{n.enter(e,null,i),l=e;const o=l.$$attachId=s.getAttachId();l.addEventListener("$destroy",()=>{l&&l.$$attachId===o&&(s.deregister(c,t),f.detach()),r.$destroy()})})},detach(){if(l){const t=l;l=null,n.leave(t)}}},t),e.$on("$destroy",()=>{s.deregister(c,t)})}}}return n.$inject=[jt.C],n}const Ks="ngAriaDisable",Xs=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Ys=function(t,n){return-1!==n.indexOf(t.nodeName)};function Qs(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function n(n,e,i,r){return function(s,o,c){if(kt(c,Ks))return;const u=c.$normalize(e);!t[u]||Ys(o,i)||c[u]||s.$watch(c[n],t=>{t=r?!t:!!t,o.setAttribute(e,t)})}}this.config=function(n){t=F(t,n)},this.$get=function(){return{config:n=>t[n],$$watchExpr:n}}}function to(t){return t.$$watchExpr("ngDisabled","aria-disabled",Xs,!1)}function no(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function eo(){return{restrict:"A",require:"?ngMessages",link(t,n,e){kt(e,Ks)||n.hasAttribute("aria-live")||n.setAttribute("aria-live","assertive")}}}function io(t,n){return{restrict:"A",compile(e,i){if(kt(i,Ks))return;const r=n(i.ngClick);return(n,e,i)=>{Ys(e,Xs)||(t.config("bindRoleForClick")&&!e.hasAttribute("role")&&e.setAttribute("role","button"),t.config("tabindex")&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","0"),!t.config("bindKeydown")||i.ngKeydown||i.ngKeypress||i.ngKeyup||e.addEventListener("keydown",t=>{const e=parseInt(t.key,10);13!==e&&32!==e||(-1!==Xs.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),r(n,{$event:t}))}))}}}}function ro(t){return t.$$watchExpr("ngRequired","aria-required",Xs,!1)}function so(t){return t.$$watchExpr("ngChecked","aria-checked",Xs,!1)}function oo(t){return t.$$watchExpr("ngValue","aria-checked",Xs,!1)}function co(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function uo(t){return t.$$watchExpr("ngReadonly","aria-readonly",Xs,!1)}function ho(t){function n(n,e,i,r){return t.config(e)&&!i.getAttribute(n)&&(r||!Ys(i,Xs))&&("hidden"!==i.getAttribute("type")||"INPUT"!==i.nodeName)}function e(t,n){return!n.getAttribute("role")&&n.getAttribute("type")===t&&!Ys(n,Xs)}return{restrict:"A",require:"ngModel",priority:200,compile(i,r){if(kt(r,Ks))return;const s=function(t){const{type:n}=t,{role:e}=t;return"checkbox"===(n||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(n||e)||"menuitemradio"===e?"radio":"range"===n||"progressbar"===e||"slider"===e?"range":""}(r);return{post(i,r,o,c){const u=n("tabindex","tabindex",r,!1);switch(s){case"radio":case"checkbox":e(s,r)&&r.setAttribute("role",s),n("aria-checked","ariaChecked",r,!1)&&c.$watch("$modelValue","radio"===s?function(){r.setAttribute("aria-checked",(o.value==c.$viewValue).toString())}:function(){r.setAttribute("aria-checked",(!c.$isEmpty(c.$viewValue)).toString())}),u&&r.setAttribute("tabindex",0);break;case"range":if(e(s,r)&&r.setAttribute("role","slider"),t.config("ariaValue")){const t=!r.hasAttribute("aria-valuemin")&&(kt(o,"min")||kt(o,"ngMin")),n=!r.hasAttribute("aria-valuemax")&&(kt(o,"max")||kt(o,"ngMax")),e=!r.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{r.setAttribute("aria-valuemin",t)}),n&&o.$observe("max",t=>{r.setAttribute("aria-valuemax",t)}),e&&c.$watch("$modelValue",t=>{r.setAttribute("aria-valuenow",t)})}u&&r.setAttribute("tabindex",0)}!kt(o,"ngRequired")&&c.$validators.required&&n("aria-required","ariaRequired",r,!1)&&o.$observe("required",()=>{r.setAttribute("aria-required",(!!o.required).toString())}),n("aria-invalid","ariaInvalid",r,!0)&&c.$watch("$invalid",t=>{r.setAttribute("aria-invalid",(!!t).toString())})}}}}}function ao(t){return function(n,e,i){kt(i,Ks)||!t.config("tabindex")||e.hasAttribute("tabindex")||Ys(e,Xs)||e.setAttribute("tabindex",0)}}to.$inject=[jt.A],no.$inject=[jt.A],io.$inject=[jt.A,jt.B],ro.$inject=[jt.A],so.$inject=[jt.A],oo.$inject=[jt.A],co.$inject=[jt.A],uo.$inject=[jt.A],ho.$inject=[jt.A],ao.$inject=[jt.A];let lo=[],fo=!1;function mo(){const t=lo;lo=[],fo=!1;for(let n=0;n<t.length;n++)t[n]()}function po(t){lo.push(t),fo||(fo=!0,requestAnimationFrame(mo))}class $o{constructor(t={},n=!1){if(this.Ai=t,this.Ti=[],this.Y=0,this.Ri=null,n){const t=t=>{requestAnimationFrame(t)},n=t=>{setTimeout(t,0)};this.Mi=e=>{document.hidden?n(e):t(e)}}else this.Mi=po}setHost(t){this.Ai=t||{}}done(t){2===this.Y?t(!0):this.Ti.push(t)}progress(...t){this.Ai.progress?.(...t)}pause(){this.Ai.pause?.()}resume(){this.Ai.resume?.()}end(){this.Ai.end?.(),this.Pi(!0)}cancel(){this.Ai.cancel?.(),this.Pi(!1)}complete(t=!0){0===this.Y&&(this.Y=1,this.Mi(()=>this.Pi(t)))}Pi(t){if(2===this.Y)return;this.Y=2;const n=this.Ti;this.Ti=[];for(let e=0;e<n.length;e++)n[e]&&n[e](t)}getPromise(){return this.Ri||(this.Ri=new Promise((t,n)=>{this.done(e=>!1===e?n():t())})),this.Ri}then(t,n){return this.getPromise().then(t,n)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}static Ii(t,n){let e=0;const i=(r=!0)=>{!r||e>=t.length?n(r):t[e++].done(i)};i()}static Di(t,n){let e=t.length,i=!0;for(const r of t)r.done(t=>{!1===t&&(i=!1),0===--e&&n(i)})}}const go="$animId",wo=new class{#l=new Map;#f=0;Ni(t,n,e,i){const r=t.parentNode??t,s=[r[go]??(r[go]=++this.#f),n,t.getAttribute("class")];return e&&s.push(e),i&&s.push(i),s.join(" ")}qi(t){const n=this.#l.get(t);return!!n&&!n.isValid}Ui(){this.#l.clear()}Vi(t){return this.#l.get(t)?.total??0}Fi(t){return this.#l.get(t)?.value}Li(t,n,e){const i=this.#l.get(t);i?(i.total++,i.value=n):this.#l.set(t,{total:1,value:n,isValid:e})}},vo=new class{constructor(){this.Hi=[],this.Bi=null}zi(){if(this.Hi.length){for(;this.Hi.length;)this.Hi.shift()();this.Bi||(this.Bi=window.requestAnimationFrame(()=>{this.Bi=null,this.zi()}))}}Wi(t){this.Hi.push(...t),this.zi()}Ji(t){null!==this.Bi&&(window.cancelAnimationFrame(this.Bi),this.Bi=null),this.Bi=window.requestAnimationFrame(()=>{this.Bi=null,t(),this.zi()})}},bo=jt.j,yo=1e3,ko={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",transitionProperty:"transitionProperty",animationDuration:"animationDuration",animationDelay:"animationDelay",animationIterationCount:"animationIterationCount"},Eo={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",animationDuration:"animationDuration",animationDelay:"animationDelay"};function So(t,n){return[n?"animationDelay":"transitionDelay",`${t}s`]}function _o(t,n){const e=Object.create(null),i=window.getComputedStyle(t)||{};return St(n).forEach(([t,n])=>{let r=i[n];if(r){const n=r.charAt(0);("-"===n||"+"===n||n>=0)&&(r=function(t){let n=0;return t.split(/\s*,\s*/).forEach(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,n=n?Math.max(t,n):t}),n}(r)),0===r&&(r=null),e[t]=r}}),e}function xo(t){return 0===t||!O(t)}function Oo(t,n){let e="transition",i=`${t}s`;return n?e+="Duration":i+=" linear all",[e,i]}function Co(t,n,e){e.forEach(e=>{t[e]=y(t[e])?t[e]:n.style.getPropertyValue(e)})}function jo(){let t;this.$get=[function(){const n=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)},e=[];function i(t){e.push(t),vo.Ji(()=>{wo.Ui(),document.documentElement.getBoundingClientRect();for(let t=0;t<e.length;t++)e[t]();e.length=0})}function r(t,n,e){const i=function(t,n,e,i){let r=wo.Fi(n);r||(r=_o(t,i),"infinite"===r.animationIterationCount&&(r.animationIterationCount=1));const s=e||r.transitionDuration>0||r.animationDuration>0;return wo.Li(n,r,s),r}(t,n,e,ko),r=i.animationDelay,s=i.transitionDelay;return i.maxDelay=r&&s?Math.max(r,s):r||s,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(e,s){let o,c=s||{$$skipPreparationClasses:!1};c.$$prepared||(c=jr(structuredClone(c)));const u={},h=e;if(!h||!h.parentNode)return H();const a=[],l=function(t){return t?.to||t?.from?{to:t.to,from:t.from}:{}}(c);let f,d,m,p,$,g,w,v,b,y;const E=[];if(0===c.duration)return H();const S=c.event&&k(c.event)?c.event.join(" "):c.event,_=S&&c.structural;let x="",C="";_?x=Cr(S,"ng-",!0):S&&(x=S),c.addClass&&(C+=Cr(c.addClass,Er)),c.removeClass&&(C.length&&(C+=" "),C+=Cr(c.removeClass,Sr)),c.applyClassesEarly&&C.length&&n(e,c);let j=[x,C].join(" ").trim();const A=l.to&&Object.keys(l.to).length>0;if(!((c.keyframeStyle||"").length>0||A||j))return H();let T,R,M=wo.Ni(h,S,c.addClass,c.removeClass);if(wo.qi(M))return j=null,H();if(c.stagger>0){const t=parseFloat(c.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,n,e,i){let r;const s=`stagger-${e}`;if(wo.Vi(e)>0&&(r=wo.Fi(s),!r)){const e=Cr(n,"-stagger");t.className+=` ${e}`,r=_o(t,i),r.animationDuration=Math.max(r.animationDuration,0),r.transitionDuration=Math.max(r.transitionDuration,0),t.classList.remove(e),wo.Li(s,r,!0)}return r||{}}(h,j,M,Eo);if(c.$$skipPreparationClasses||e.classList.add(...j.split(" ").filter(t=>""!==t)),c.transitionStyle){const t=["transition",c.transitionStyle];Ir(h,t),a.push(t)}if(c.duration>=0){R=h.style.transition.length>0;const t=Oo(c.duration,R);Ir(h,t),a.push(t)}if(c.keyframeStyle){const t=["animation",c.keyframeStyle];Ir(h,t),a.push(t)}const P=T?c.staggerIndex>=0?c.staggerIndex:wo.Vi(M):0,I=0===P;I&&Ao(h,9999);let D=r(h,M,!_),N=D.maxDelay;g=Math.max(N,0),v=D.maxDuration;const q={};return q.hasTransitions=D.transitionDuration>0,q.hasAnimations=D.animationDuration>0,q.hasTransitionAll=q.hasTransitions&&"all"===D.transitionProperty,q.applyTransitionDuration=A&&(q.hasTransitions&&!q.hasTransitionAll||q.hasAnimations&&!q.hasTransitions),q.applyAnimationDuration=c.duration&&q.hasAnimations,q.applyTransitionDelay=xo(c.delay)&&(q.applyTransitionDuration||q.hasTransitions),q.applyAnimationDelay=xo(c.delay)&&q.hasAnimations,q.recalculateTimingStyles=C.length>0,(q.applyTransitionDuration||q.applyAnimationDuration)&&(v=c.duration?parseFloat(c.duration):v,q.applyTransitionDuration&&(q.hasTransitions=!0,D.transitionDuration=v,R=h.style.transitionProperty.length>0,a.push(Oo(v,R))),q.applyAnimationDuration&&(q.hasAnimations=!0,D.animationDuration=v,a.push(["animationDuration",`${v}s`]))),0!==v||q.recalculateTimingStyles?(t=Cr(j,_r),O(c.delay)||("boolean"!=typeof c.delay&&(o=parseFloat(c.delay),g=Math.max(o,0)),q.applyTransitionDelay&&a.push(So(o)),q.applyAnimationDelay&&a.push(So(o,!0))),O(c.duration)&&D.transitionDuration>0&&(q.recalculateTimingStyles=q.recalculateTimingStyles||I),w=g*yo,b=v*yo,q.blockTransition=D.transitionDuration>0,q.blockKeyframeAnimation=D.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration,c.from&&(c.cleanupStyles&&Co(u,h,Object.keys(c.from)),Tr(e,c)),q.blockTransition||q.blockKeyframeAnimation?L(v):c.skipBlocking||Ao(h,!1),{$$willAnimate:!0,end:U,start(){if(!f)return $={end:U,cancel:V,resume:null,pause:null},p=new $o($),i(z),p}}):H();function U(){F()}function V(){F(!0)}function F(i){if(f||m&&d)return;f=!0,d=!1,j&&!c.$$skipPreparationClasses&&e.classList.remove(...j.split(" ")),t=Cr(j,_r),t&&e.classList.remove(...t.split(" ")),Pr(h,!1),Ao(h,!1),a.forEach(t=>{h.style[t[0]]=""}),n(e,c),Ar(e,c),Et(u).length&&St(u).forEach(([t,n])=>{n?h.style.setProperty(t,n):h.style.removeProperty(t)}),c.onDone&&c.onDone(),E&&E.length&&E.forEach(t=>e.removeEventListener(t,B));const r=Gt(e,bo);r&&(clearTimeout(r[0].timer),Lt(e,bo)),p&&p.complete(!i)}function L(t){q.blockTransition&&Ao(h,t),q.blockKeyframeAnimation&&Pr(h,!!t)}function H(){return p=new $o({end:U,cancel:V}),i(()=>{}),F(),{$$willAnimate:!1,start:()=>p,end:U}}function B(t){t.stopPropagation();const n=t.originalEvent||t;if(n.target!==h)return;const e=n.$manualTimeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(e-y,0)>=w&&i>=v&&(m=!0,F())}function z(){if(f)return;if(!h.parentNode)return void F();const i=function(t){if(m)d&&t&&(d=!1,F());else if(d=!t,D.animationDuration){const t=Pr(h,d);if(d)a.push(t);else{const n=a.indexOf(t);-1!==n&&a.splice(n,1)}}},s=P>0&&(D.transitionDuration&&0===T.transitionDuration||D.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function l(){if(f)return;if(L(!1),a.forEach(t=>{const n=t[0];h.style[n]=t[1]}),n(e,c),e.classList.add(...t.split(" ").filter(t=>""!==t)),q.recalculateTimingStyles){if(M=wo.Ni(h,S,c.addClass,c.removeClass),D=r(h,M,!1),N=D.maxDelay,g=Math.max(N,0),v=D.maxDuration,0===v)return void F();q.hasTransitions=D.transitionDuration>0,q.hasAnimations=D.animationDuration>0}if(q.applyAnimationDelay&&(N="boolean"!=typeof c.delay&&xo(c.delay)?parseFloat(c.delay):N,g=Math.max(N,0),D.animationDelay=N,o=So(N,!0),a.push(o),h.style[o[0]]=o[1]),w=g*yo,b=v*yo,c.easing){let t;const n=c.easing;q.hasTransitions&&(t="transitionTimingFunction",a.push([t,n]),h.style[t]=n),q.hasAnimations&&(t="animationTimingFunction",a.push([t,n]),h.style[t]=n)}D.transitionDuration&&E.push("transitionend"),D.animationDuration&&E.push("animationend"),y=Date.now();const i=w+1.5*b,s=y+i,l=Gt(e,bo)||[];let d=!0;if(l.length){const t=l[0];d=s>t.expectedEndTime,d?clearTimeout(t.timer):l.push(F)}if(d){const t=setTimeout(p,i,!1);l[0]={timer:t,expectedEndTime:s},l.push(F),Zt(e,bo,l)}E.length&&E.forEach(t=>{e.addEventListener(t,B)}),c.to&&(c.cleanupStyles&&Co(u,h,Object.keys(c.to)),Rr(e,c))}function p(){const t=Gt(e,bo);if(t){for(let n=1;n<t.length;n++)t[n]();Lt(e,bo)}}s?setTimeout(l,Math.floor(s*P*yo),!1):l(),$.resume=function(){i(!0)},$.pause=function(){i(!1)}}}}]}function Ao(t,n){const e=n?`-${n}s`:"";return Ir(t,["transitionDelay",e]),["transitionDelay",e]}const To="data-ng-animate",Ro="$ngAnimatePin";function Mo(t){const n=this.rules={skip:[],cancel:[],join:[]};function e(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const e=function(t){if(!t)return null;const n=t.split(" "),e=Object.create(null);return n.forEach(t=>{e[t]=!0}),e}(n);return t.split(" ").some(t=>e[t])}}function r(t,e,i){return n[t].some(t=>t(e,i))}function s(t,n){const e=(t.addClass||"").length>0,i=(t.removeClass||"").length>0;return n?e&&i:e||i}n.join.push(t=>!t.structural&&s(t)),n.skip.push(t=>!t.structural&&!s(t)),n.skip.push((t,n)=>"leave"===n.event&&t.structural),n.skip.push((t,n)=>n.structural&&2===n.state&&!t.structural),n.cancel.push((t,n)=>n.structural&&t.structural),n.cancel.push((t,n)=>2===n.state&&t.structural),n.cancel.push((t,n)=>{if(n.structural)return!1;const e=t.addClass,r=t.removeClass,s=n.addClass,o=n.removeClass;return!(b(e)&&b(r)||b(s)&&b(o))&&(i(e,o)||i(r,s))}),this.$get=[jt.J,jt.wt,jt.S,function(n,i,o){const c=new Map,u=new Map,h=Object.create(null),a=t.customFilter(),l=t.classNameFilter(),f=function(){return!0},d=a||f,m=l?function(t,n){const e=[t.getAttribute("class"),n.addClass,n.removeClass].join(" ");return l.test(e)}:f,p=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)};function $(t,n){return Mr(t,n,{})}function g(t,n,e){const i=mn(n);return t.filter(t=>!(t.node===i&&(!e||t.callback===e)))}function w(t,n){"close"!==t||n.parentNode||v.off(n)}const v={on(t,n,e){const i=mn(n);h[t]=h[t]||[],h[t].push({node:i,callback:e}),n.addEventListener("$destroy",()=>{c.get(i)||v.off(t,n,e)})},off(t,n,e){if(1===arguments.length&&!_(arguments[0])){n=arguments[0];for(const t in h)h[t]=g(h[t],n);return}const i=h[t];i&&(h[t]=1===arguments.length?null:g(i,n,e))},pin(t,n){Zt(t,Ro,n)},push:(t,a,l,f)=>((l=l||{}).domOperation=f,function(t,a,l){let f=l,g=k(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const v=g,O=v&&v.parentNode;f=jr(f);const C=new $o,j=function(){let t=!1;return function(e){t?e():n.$postUpdate(()=>{t=!0,e()})}}();if(k(f.addClass)&&(f.addClass=f.addClass.join(" ")),f.addClass&&!_(f.addClass)&&(f.addClass=null),k(f.removeClass)&&(f.removeClass=f.removeClass.join(" ")),f.removeClass&&!_(f.removeClass)&&(f.removeClass=null),f.from&&!S(f.from)&&(f.from=null),f.to&&!S(f.to)&&(f.to=null),!v||!d(v,a,l)||!m(v,f))return q(),C;const A=["enter","move","leave"].indexOf(a)>=0;let T=document.hidden||u.get(v);const R=!T&&c.get(v)||{},M=!!R.state;if(T||M&&1===R.state||(T=!function(t,n){const e=document.body,r=i.get("$rootElement");let s,o=t===e||"HTML"===t.nodeName,h=t===r,a=!1,l=u.get(t),f=Jt(t,Ro);for(f&&(n=f);n&&(h||(h=n===r),1===n.nodeType);){const t=c.get(n)||{};if(!a){const e=u.get(n);if(!0===e&&!1!==l){l=!0;break}!1===e&&(l=!1),a=t.structural}if(b(s)||!0===s){const t=Jt(n,Or);y(t)&&(s=t)}if(a&&!1===s)break;if(o||(o=n===e),o&&h)break;n=h||(f=Jt(n,Ro),!f)?n.parentNode:f}return(!a||s)&&!0!==l&&h&&o}(v,O)),T)return document.hidden&&N(C,a,"start",e(f)),q(),document.hidden&&N(C,a,"close",e(f)),C;A&&function(t){t.querySelectorAll(`[${To}]`).forEach(t=>{const n=parseInt(t.getAttribute(To),10),e=c.get(t);if(e)switch(n){case 2:e.runner.end();case 1:c.delete(t)}})}(v);const P={structural:A,element:g,event:a,addClass:f.addClass,removeClass:f.removeClass,close:q,options:f,runner:C};if(M){if(r("skip",P,R))return 2===R.state?(q(),C):(Mr(g,R,P),R.runner);if(r("cancel",P,R))if(2===R.state)R.runner.end();else{if(!R.structural)return Mr(g,R,P),R.runner;R.close()}else if(r("join",P,R)){if(2!==R.state)return function(t,n,e){let i="";n&&(i=Cr(n,"ng-",!0)),e.addClass&&(i=Dr(i,Cr(e.addClass,Er))),e.removeClass&&(i=Dr(i,Cr(e.removeClass,Sr))),i.length&&(e.preparationClasses=i,t.className+=` ${i}`)}(g,A?a:null,f),a=P.event=R.event,f=Mr(g,R,P),R.runner;$(g,P)}}else $(g,P);let I=P.structural;if(I||(I="animate"===P.event&&Object.keys(P.options.to||{}).length>0||s(P)),!I)return q(),E(v),C;const D=(R.counter||0)+1;return P.counter=D,x(v,1,P),n.$postUpdate(()=>{g=function(t){return t instanceof NodeList?Array.from(t).filter(t=>1===t.nodeType):1===t.nodeType?t:void 0}(t);let n=c.get(v);const i=!n;n=n||{};const r=(g.parentElement||[])&&("animate"===n.event||n.structural||s(n));if(i||n.counter!==D||!r)return i&&(p(g,f),Ar(g,f)),(i||A&&n.event!==a)&&(f.domOperation(),C.end()),void(r||E(v));a=!n.structural&&s(n,!0)?"setClass":n.event,x(v,2);const u=o(g,a,n.options);C.setHost(u),N(C,a,"start",e(f)),u.done(t=>{q(!t),c.get(v)?.counter===D&&E(v),N(C,a,"close",e(f))})}),setTimeout(n.$flushQueue,0),C;function N(t,n,e,i){j(()=>{const t=function(t,n,e){const i=[],r=h[e];return r&&r.forEach(r=>{(r.node.contains(n)||"leave"===e&&r.node.contains(t))&&i.push(r.callback)}),i}(O,v,n);t.length?(t.forEach(t=>{t(g,e,i)}),w(e,v)):w(e,v)}),t.progress(n,e,i)}function q(t){!function(t,n){n.preparationClasses&&(n.preparationClasses.split(" ").forEach(n=>t.classList.remove(n)),n.preparationClasses=void 0),n.activeClasses&&(n.activeClasses.split(" ").forEach(n=>t.classList.remove(n)),n.activeClasses=void 0)}(g,f),p(g,f),Ar(g,f),f.domOperation(),C.complete(!t)}}(t,a,l))};return v;function E(t){t.removeAttribute(To),c.delete(t)}function x(t,n,e){(e=e||{}).state=n,t.setAttribute(To,n);const i=c.get(t),r=i?F(i,e):e;c.set(t,r)}}]}function Po(t){this.$get=[jt.wt,function(n){return function(e,i,r,s){3===arguments.length&&S(r)&&(s=r,r=null),s=jr(s),r||(r=e.getAttribute("class")||"",s.addClass&&(r+=` ${s.addClass}`),s.removeClass&&(r+=` ${s.removeClass}`));const o=s.addClass,c=s.removeClass,u=function(e){e=k(e)?e:e.split(" ");const i=[],r={};for(let s=0;s<e.length;s++){const o=e[s],c=t.$$registeredAnimations[o];c&&!r[o]&&(i.push(n.get(c)),r[o]=!0)}return i}(r);let h,a,l;if(u.length){let t,n;"leave"===i?(t="leave",n="afterLeave"):(t=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,n=i),"enter"!==i&&"move"!==i&&(h=m(e,s,u,t,{add:o,remove:c})),a=m(e,s,u,n,{add:o,remove:c})}if(h||a)return{$$willAnimate:!0,start(){if(l)return l;function t(t){d(),l.complete(t)}return l=new $o({end:()=>t(!0),cancel:()=>t(!1)}),h?h(l.done.bind(l)):f(),a&&a(l.done.bind(l)),l},end:()=>(l?l.end():(d(),l=new $o,l.complete(!0)),l)};function f(){s.domOperation(),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(e,s)}function d(){f(),Ar(e,s)}function m(t,n,e,i,r){const s=[];if(e.forEach(e=>{const o=e[i];o&&s.push(s=>{if(R(o)){let c;switch(i){case"addClass":c=[t,r.add,s];break;case"removeClass":c=[t,r.remove,s];break;case"setClass":c=[t,r.add,r.remove,s];break;case"animate":c=[t,n.from,n.to,s];break;default:c=[t,s]}const u=o.apply(e,c);u instanceof $o&&u.done(s)}else s()})}),s.length)return t=>{let n=0;const e=s.length;s.forEach(i=>{i(()=>{++n===e&&R(t)&&t()})})}}}}]}Mo.$inject=At([jt.C]),Po.$inject=At([jt.C]);const Io="$$animationRunner",Do="$$animatePrepareClasses";function No(){const t="ng-animate-ref",n=this.drivers=[];function e(t){return Gt(t,Io)}this.$get=[jt.J,jt.wt,function(i,r){const s=[];return function(o,c,u){u=jr(u);const h=["enter","move","leave"].indexOf(c)>=0,a=new $o({end(){m()},cancel(){m(!0)}});if(!n.length)return m(),a;let l=gt(o.getAttribute("class"),gt(u.addClass,u.removeClass)),{tempClasses:f}=u;return f&&(l+=` ${f}`,u.tempClasses=null),h&&Zt(o,Do,`ng-${c}-prepare`),function(t,n){Zt(t,Io,n)}(o,a),s.push({element:o,classes:l,event:c,structural:h,options:u,beforeStart:function(){f=(f?`${f} `:"")+xr,o.className+=` ${f}`;let t=Gt(o,Do);t&&(o.classList.remove(t),t=null)},close:m}),o.addEventListener("$destroy",function(){("leave"!==c||!u.$e)&&e(o)?.end()}),s.length>1||i.$postUpdate(()=>{const i=[];s.forEach(t=>{e(t.element)?i.push(t):t.close()}),s.length=0;const o=function(n){const e=[],i={};n.forEach((n,r)=>{const{element:s,event:o}=n,c=s,u=["enter","move"].indexOf(o)>=0,h=n.structural?function(n){const e=`[${t}]`,i=n.hasAttribute(t)?[n]:n.querySelectorAll(e),r=[];return i.forEach(n=>{const e=n.getAttribute(t);e&&e.length&&r.push(n)}),r}(c):[];if(h.length){const n=u?"to":"from";h.forEach(e=>{const s=e.getAttribute(t);i[s]=i[s]||{},i[s][n]={animationID:r,element:e}})}else e.push(n)});const r={},s={};return Object.values(i).forEach(t=>{const{from:i}=t,{to:o}=t;if(!i||!o){const t=i?i.animationID:o.animationID,s=t.toString();return void(r[s]||(r[s]=!0,e.push(n[t])))}const c=n[i.animationID],u=n[o.animationID],h=i.animationID.toString();if(!s[h]){const t=s[h]={structural:!0,beforeStart(){c.beforeStart(),u.beforeStart()},close(){c.close(),u.close()},classes:d(c.classes,u.classes),from:c,to:u,anchors:[]};t.classes.length?e.push(t):(e.push(c),e.push(u))}s[h].anchors.push({out:i.element,in:o.element})}),e}(i),c=[];o.forEach(t=>{const i=t.from?t.from.element:t.element;let s=u.addClass;s=(s?`${s} `:"")+xr;const o=wo.Ni(i,t.event,s,u.removeClass);c.push({element:i,domNode:i,fn:function(){let i;const s=t.close;if(wo.qi(o))s();else{if(t.beforeStart(),e(t.anchors?t.from.element||t.to.element:t.element)){const e=function(t){for(let e=n.length-1;e>=0;e--){const i=n[e],s=r.get(i)(t);if(s)return s}}(t);e&&(i=e.start)}if(i){const n=i();n.done(t=>{s(!t)}),function(t,n){function i(t){e(t).setHost(n)}t.from&&t.to?(i(t.from.element),i(t.to.element)):i(t.element)}(t,n)}else s()}}})});const h=function(t){const n={children:[]};let e;const i=new Map;for(e=0;e<t.length;e++){const n=t[e];i.set(n.domNode,t[e]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(e=0;e<t.length;e++)r(t[e]);return function(t){const n=[],i=[];for(e=0;e<t.children.length;e++)i.push(t.children[e]);let r=i.length,s=0,o=[];for(let t=0;t<i.length;t++){const e=i[t];r<=0&&(r=s,s=0,n.push(o),o=[]),o.push(e),e.children.forEach(t=>{s++,i.push(t)}),r--}return o.length&&n.push(o),n}(n);function r(t){if(t.processed)return t;t.processed=!0;const e=t.domNode;let s,{parentNode:o}=e;for(i.set(e,t);o;){if(s=i.get(o),s){s.processed||(s=r(s));break}o=o.parentNode}return(s||n).children.push(t),t}}(c);for(let t=0;t<h.length;t++){const n=h[t];for(let e=0;e<n.length;e++){const i=n[e],{element:r}=i;if(h[t][e]=i.fn,0===t){Lt(r,Do);continue}const s=Gt(r,Do);s&&r.classList.add(s)}}const a=h.flat();vo.Wi(a)}),a;function d(t,n){t=t.split(" "),n=n.split(" ");const e=[];for(let i=0;i<t.length;i++){const r=t[i];if("ng-"!==r.substring(0,3))for(let t=0;t<n.length;t++)if(r===n[t]){e.push(r);break}}return e.join(" ")}function m(t){(function(t,n){if(zt(t)){const e=Ht(t,!1),i=e?.data;i&&kt(i,Vt(n))&&delete i[Vt(n)]}})(o,Io),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(o,u),Ar(o,u),u.domOperation(),f&&f.split(" ").forEach(t=>o.classList.remove(t)),a.complete(!t)}}}]}const qo="ng-animate-shim",Uo="ng-anchor-out";function Vo(t){t.drivers.push(jt.m),this.$get=[jt.j,jt.Z,function(t,n){const e=document.body,i=n,r=(s=i).parentNode&&11===s.parentNode.nodeType||e.contains(i)?i:e;var s;return function(n){return n.from&&n.to?function(n,i,s){const c=o(n),u=o(i),h=[];return s.forEach(n=>{const i=function(n,i){const s=n.cloneNode(!0),o=Fo(l(s));let c;n[0].classList.add(qo),i[0].classList.add(qo),s.classList.add("ng-anchor"),r.append(s);const u=function(){const e=t(s,{addClass:Uo,delay:!0,from:a(n)});return e.$$willAnimate?e:null}();if(!u&&(c=f(),!c))return d();const h=u||c;return{start(){const t=new $o({end:e,cancel:e});let n=h.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,d(),t.complete()}),n;d(),t.complete()}),t;function e(){n&&n.end()}}};function a(t){const n={},i=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let r=i[t];switch(t){case"top":r+=e.scrollTop;break;case"left":r+=e.scrollLeft}n[t]=`${Math.floor(r)}px`}),n}function l(t){return t.getAttribute("class")||""}function f(){const n=Fo(l(i)),e=Lo(n,o),r=Lo(o,n),c=t(s,{to:a(i),addClass:`ng-anchor-in ${e}`,removeClass:`${Uo} ${r}`,delay:!0});return c.$$willAnimate?c:null}function d(){s.remove(),n[0].classList.remove(qo),i[0].classList.remove(qo)}}(n.out,n.in);i&&h.push(i)}),c||u||0!==h.length?{start(){const t=[];c&&t.push(c.start()),u&&t.push(u.start()),h.forEach(n=>{t.push(n.start())});const n=new $o({end:e,cancel:e});return $o.Di(t,t=>{n.complete(t)}),n;function e(){t.forEach(t=>{t.end()})}}}:void 0}(n.from,n.to,n.anchors):o(n)};function o(n){const e=n.options||{};n.structural&&(e.event=n.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===n.event&&(e.onDone=e.domOperation)),e.preparationClasses&&(e.event=Dr(e.event,e.preparationClasses));const i=t(n.element,e);return i.$$willAnimate?i:null}}]}function Fo(t){return t.replace(/\bng-\S+\b/g,"")}function Lo(t,n){return _(t)&&(t=t.split(" ")),_(n)&&(n=n.split(" ")),t.filter(t=>-1===n.indexOf(t)).join(" ")}function Ho(t){t.drivers.push(jt.$),this.$get=[jt.p,function(t){return function(t){if(t.from&&t.to){const e=n(t.from),i=n(t.to);if(!e&&!i)return;return{start(){const t=[];e&&t.push(e.start()),i&&t.push(i.start()),$o.Di(t,function(t){n.complete(t)});const n=new $o({end:r(),cancel:r()});return n;function r(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(n){const{element:e,event:i,options:r,classes:s}=n;return t(e,i,s,r)}}]}function Bo(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(n,e,i,r,s){let o,c;n.$watch(i.ngAnimateSwap||i.for,n=>{o&&t.leave(o),c&&(c.$destroy(),c=null),n&&s((n,i)=>{o=n,c=i,t.enter(n,null,e)})})}}}function zo(t){return{link(n,e,i){const r=i.ngAnimateChildren;function s(t){Zt(e,Or,"on"===t||"true"===t)}_(r)&&0===r.length?Zt(e,Or,!0):(s(t(r)(n)),i.$observe("ngAnimateChildren",s))}}}function Wo(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;const i=[t,n];if(i.every(k))return function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!Wo(t[e],n[e]))return!1;return!0}(t,n);if(i.every(A))return t.getTime()===n.getTime();if(i.every(M))return t.toString()===n.toString();if(i.every(R))return!0;if([R,k,A,M].some(t=>!!t(i)))return!1;const r={};for(const e in t){if(!Wo(t[e],n[e]))return!1;r[e]=!0}for(const t in n)if(!r[t])return!1;return!0}function Jo(t,n){const e=Object.create(t);return n&&Object.assign(e,n),e}function Zo(t,n){const e=t.indexOf(n);return-1!==e&&t.splice(e,1),t}function Go(t,...n){const e=Object.assign({},...n.reverse());return Object.assign(e,Ko(t||{},Object.keys(e)))}function Ko(t,n){const e={};for(const i in t)-1!==n.indexOf(i)&&(e[i]=t[i]);return e}function Xo(t,n){return Object.keys(t).filter(t=>!n.includes(t)).reduce((n,e)=>(n[e]=t[e],n),{})}function Yo(t,n){const e=k(t),i=e?[]:{},r=e?t=>i.push(t):(t,n)=>i[n]=t;return St(t).forEach(([t,e])=>{n(e,t)&&r(e,t)}),i}function Qo(t,n){let e;return St(t).forEach(([t,i])=>{e||n(i,t)&&(e=i)}),e}function tc(t,n,e){return e=e||(k(t)?[]:{}),St(t).forEach(([t,i])=>{if(k(e)){const r=Number(t);e[r]=n(i,r)}else e[t]=n(i,t)}),e}Vo.$inject=At([jt.S]),Ho.$inject=At([jt.S]),Bo.$inject=[jt.C],zo.$inject=[jt.V];const nc=(t,n)=>t&&n,ec=(t,n)=>t||n,ic=(t,n)=>t.concat(n);function rc(t,n){return t.push(n),t}const sc=(t,n)=>t.includes(n)?t:rc(t,n),oc=t=>t.reduce(ic,[]);function cc(...t){if(0===t.length)return[];const n=t.reduce((t,n)=>Math.min(n.length,t),Number.MAX_SAFE_INTEGER),e=[];for(let i=0;i<n;i++)switch(t.length){case 1:e.push([t[0][i]]);break;case 2:e.push([t[0][i],t[1][i]]);break;case 3:e.push([t[0][i],t[1][i],t[2][i]]);break;case 4:e.push([t[0][i],t[1][i],t[2][i],t[3][i]]);break;default:e.push(t.map(t=>t[i]))}return e}function uc(t,n){let e,i;if(k(n)&&([e,i]=n),!_(e))throw new Error("invalid parameters to applyPairs");return t[e]=i,t}function hc(t){return t.length>0?t[t.length-1]:void 0}function ac(t,n){return n&&Object.keys(n).forEach(t=>delete n[t]),n||(n={}),Object.assign(n,t)}function lc(t){const n=(...e)=>e.length>=t.length?t(...e):(...t)=>n(...e,...t);return n}const fc=lc((t,n,e)=>e&&e[t]===n),dc=t=>{const n=t.split(".");return t=>n.reduce((t,n)=>t&&t[n],t)};function mc(t){return function(n){return null!=n&&n.constructor===t||n instanceof t}}const pc=t=>()=>t;function $c(t){return function(n){for(let e=0;e<t.length;e++)if(t[e][0](n))return t[e][1](n)}}class gc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,n){return t===n}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,n){if(!t)return this;if("auto"===t&&!n)throw new Error("'auto' array mode is for query parameters only");return new wc(this,t)}}function wc(t,n){function e(t){return k(t)?t:y(t)?[t]:[]}function i(t,i){return function(r){if(k(r)&&0===r.length)return r;const s=tc(e(r),t);return!0===i?0===Yo(s,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===n?t[0]:t;default:return t}}(s)}}function r(t){return function(n,i){const r=e(n),s=e(i);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],s[n]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(n=>{const e=t[n].bind(t),s="equals"===n?r:i;this[n]=s(e)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:i(t.is.bind(t),!0),$arrayMode:n})}class vc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ko(vc.prototype,["hash","string","query","path","int","bool","date","json","any"]),this.types=Jo(tc(this.defaultTypes,(t,n)=>new gc(Object.assign({name:n},t))),{})}type(t,n,e){if(!y(n))return this.types[t];if(kt(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new gc(Object.assign({name:t},n)),e&&(this.typeQueue.push({name:t,def:e}),this.enqueue||this.Zi()),this}Zi(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],window.angular.$injector.invoke(t.def))}}}!function(){const t=t=>{const n=t=>O(t)?t:t.toString(),e={encode:n,decode:n,is:mc(String),pattern:/.*/,equals:(t,n)=>t===n};return Object.assign({},e,t)};Object.assign(vc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is(t){return!O(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:mc(Boolean),pattern:/[01]/}),date:t({encode(t){return this.is(t)?[t.getFullYear(),`0${t.getMonth()+1}`.slice(-2),`0${t.getDate()}`.slice(-2)].join("-"):void 0},decode(t){if(this.is(t))return t;const n=this.capture.exec(t);return n?new Date(n[1],n[2]-1,n[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,n)=>["getFullYear","getMonth","getDate"].reduce((e,i)=>e&&t[i]()===n[i](),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:mc(Object),equals:Wo,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Wo})})}();class bc{constructor(){this.paramTypes=new vc,this.Gi=!1,this.Ki=!0,this.Xi=!1;const t=this.type("path");t.encode=t=>O(t)?t:t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])),t.decode=t=>O(t)?t:t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])),this.paramTypes.enqueue=!1,this.paramTypes.Zi()}$get=()=>this;caseInsensitive(t){return this.Gi=y(t)?t:this.Gi}defaultSquashPolicy(t){if(y(t)&&!0!==t&&!1!==t&&!_(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this.Xi=y(t)?t:this.Xi}strictMode(t){return this.Ki=y(t)?t:this.Ki}type(t,n,e){const i=this.paramTypes.type(t,n,e);return y(n)?this:i}}class yc{constructor(t={}){Object.assign(this,t)}$inherit(t,n,e){const i=function(t,n){const e=[];for(const i in t.path){if(t.path[i]!==n.path[i])break;e.push(t.path[i])}return e}(n,e),r={},s=[];for(const t in i){if(!i[t]||!i[t].params)continue;const n=i[t].params,e=Et(n);if(e.length)for(const t in e)!1===n[e[t]].inherit||s.indexOf(e[t])>=0||(s.push(e[t]),r[e[t]]=this[e[t]])}return Object.assign({},r,t)}}class kc{constructor(t=[],n=null){this.Yi=k(t)?[...t]:[],this.Qi=Number.isInteger(n)&&n>0?n:null,this.tr=[]}onEvict(t){this.tr.push(t)}enqueue(t){return this.Yi.push(t),null!==this.Qi&&this.Yi.length>this.Qi&&this.evict(),t}evict(){const t=this.Yi.shift();return void 0!==t&&this.tr.forEach(n=>n(t)),t}dequeue(){return this.Yi.length>0?this.Yi.shift():void 0}clear(){const t=[...this.Yi];return this.Yi.length=0,t}size(){return this.Yi.length}remove(t){const n=this.Yi.indexOf(t);return-1!==n&&this.Yi.splice(n,1)[0]}peekTail(){return this.Yi[this.Yi.length-1]}peekHead(){return this.Yi[0]}}class Ec{constructor(){this.params=new yc,this.nr=-1,this.er=new kc([],1),this.ir=new kc([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function Sc(t,n){return n.length<=t?n:`${n.substring(0,t-3)}...`}function _c(t){const n=xc(t),e=n.match(/^(function [^ ]+\([^)]*\))/),i=e?e[1]:n,r=t.name||"";return r&&i.match(/function \(/)?`function ${r}${i.substring(9)}`:i}function xc(t){const n=k(t)?t.slice(-1)[0]:t;return n&&n.toString()||"undefined"}function Oc(t){const n=[],e=$c([[b,pc("undefined")],[x,pc("null")],[An,pc("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"===t.constructor.name,t=>t.rr.toString()],[t=>S(t)&&!k(t)&&t.constructor!==Object&&R(t.toString),t=>t.toString()],[jn,_c],[pc(!0),t=>t]]);function i(t){if(S(t)){if(-1!==n.indexOf(t))return"[circular ref]";n.push(t)}return e(t)}return b(t)?i(t):JSON.stringify(t,(t,n)=>i(n)).replace(/\\"/g,'"')}function Cc(t,n){return _(hc(t))&&_(n)?t.slice(0,-1).concat(hc(t)+n):rc(t,n)}function jc(t){if(!t)return"ng-view (defunct)";const n=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${n})]`}function Ac(t){return j(t)?Tc[t]:Tc[Tc[t]]}const Tc={sr:0,cr:1,ur:2,hr:3,ar:4},Rc=dc("$id"),Mc=dc("router.$id"),Pc=t=>`Transition #${Rc(t)}-${Mc(t)}`,Ic=new class{constructor(){this.lr={},this.approximateDigests=0,this.$logger=window.angular?.$injector?.get(jt.L)}dr(t,n){n.length||(n=Et(Tc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>Tc[t])),n.map(Ac).forEach(n=>this.lr[n]=t)}enable(...t){this.dr(!0,t)}disable(...t){this.dr(!1,t)}enabled(t){return!!this.lr[Ac(t)]}traceTransitionStart(t){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(t)}: Started -> ${Oc(t)}`)}traceTransitionIgnored(t){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(t)}: Ignored <> ${Oc(t)}`)}traceHookInvocation(t,n,e){if(!this.enabled(Tc.ur))return;const i=dc("traceData.hookType")(e)||"internal",r=dc("traceData.context.state.name")(e)||dc("traceData.context")(e)||"unknown",s=_c(t.registeredHook.callback);this.$logger.log(`${Pc(n)}: Hook -> ${i} context: ${r}, ${Sc(200,s)}`)}traceHookResult(t,n){this.enabled(Tc.ur)&&this.$logger.log(`${Pc(n)}: <- Hook returned: ${Sc(200,Oc(t))}`)}traceResolvePath(t,n,e){this.enabled(Tc.sr)&&this.$logger.log(`${Pc(e)}: Resolving ${t} (${n})`)}traceResolvableResolved(t,n){this.enabled(Tc.sr)&&this.$logger.log(`${Pc(n)}: <- Resolved ${t} to: ${Sc(200,Oc(t.data))}`)}traceError(t,n){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(n)}: <- Rejected ${Oc(n)}, reason: ${t}`)}traceSuccess(t,n){this.enabled(Tc.cr)&&this.$logger.log(`${Pc(n)}: <- Success ${Oc(n)}, final state: ${t.name}`)}traceUIViewEvent(t,n,e=""){this.enabled(Tc.hr)&&this.$logger.log(`ng-view: ${function(t,n){for(;n.length<30;)n+=" ";return n}(0,t)} ${jc(n)}${e}`)}traceUIViewConfigUpdated(t,n){this.enabled(Tc.hr)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${n}'`)}traceUIViewFill(t,n){this.enabled(Tc.hr)&&this.traceUIViewEvent("Fill",t,` with: ${Sc(200,n)}`)}traceViewSync(t){if(!this.enabled(Tc.ar))return;const n="uiview component fqn",e="view config state (view name)",i=t.map(({ngView:t,viewConfig:i})=>{const r=t&&t.fqn,s=i&&`${i.viewDecl.$context.name}: (${i.viewDecl.$name})`;return{[n]:r,[e]:s}}).sort((t,e)=>(t[n]||"").localeCompare(e[n]||""));this.$logger.table(i)}traceViewServiceEvent(t,n){this.enabled(Tc.ar)&&this.$logger.log(`VIEWCONFIG: ${t} ${(t=>{const n=t.viewDecl,e=n.$context.name||"(root)";return`[View#${t.$id} from '${e}' state]: target ng-view: '${n.$ngViewName}@${n.$ngViewContextAnchor}'`})(n)}`)}traceViewServiceUIViewEvent(t,n){this.enabled(Tc.ar)&&this.$logger.log(`VIEWCONFIG: ${t} ${jc(n)}`)}};class Dc{constructor(t,n,e,i,r){this.resolved=!1,this.promise=void 0,t instanceof Dc?Object.assign(this,t):R(n)?(at(!O(t),"token argument is required"),this.token=t,this.policy=i,this.resolveFn=n,this.deps=e||[],this.data=r,this.resolved=void 0!==r,this.promise=this.resolved?Promise.resolve(this.data):void 0):S(t)&&t.token&&(kt(t,"resolveFn")||kt(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const n=this.policy||{},e=t&&t.resolvePolicy||{};return{when:n.when||e.when||"LAZY",async:n.async||e.async||"WAIT"}}resolve(t,n){const e=t.findNode(this),i=e&&e.state,r=this.getPolicy(i).async,s=R(r)?r:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(e=>e.get(t,n)))).then(t=>this.resolveFn.apply(null,t)).then(s).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Ic.traceResolvableResolved(this,n),this.data)),this.promise}get(t,n){return this.promise||this.resolve(t,n)}toString(){return`Resolvable(token: ${Oc(this.token)}, requires: [${this.deps.map(Oc)}])`}clone(){return new Dc(this)}}Dc.fromData=(t,n)=>new Dc(t,()=>n,null,null,n);class Nc{constructor(t,n,e,i){this.tt=t,this.ni=n,this.ni=n,this.mr=Object.assign({},e||{}),this.vn=Object.assign({},i||{}),this.pr=t.matcher.find(n,this.vn.relative)}name(){return this.pr&&this.pr.name||this.ni}identifier(){return this.ni}params(){return this.mr}$state(){return this.pr}state(){return this.pr&&this.pr.self}options(){return this.vn}exists(){return!(!this.pr||!this.pr.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this.pr&&t){const n=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${n}'`}return this.pr?this.pr.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Oc(this.params())}`}withState(t){return new Nc(this.tt,t,this.mr,this.vn)}withParams(t,n=!1){const e=n?t:Object.assign({},this.mr,t);return new Nc(this.tt,this.ni,e,this.vn)}withOptions(t,n=!1){const e=n?t:Object.assign({},this.vn,t);return new Nc(this.tt,this.ni,this.mr,e)}}Nc.isDef=t=>t&&t.state&&(_(t.state)||S(t.state)&&_(t.state.name));class qc{constructor(t,n,e,i,r){const s=function(t,n,e){const i=!1===e.reloadOnSearch&&1===n||void 0,r=Qo([e.dynamic,i],y),s=y(r)?{dynamic:r}:{},o=function(t){function n(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,n.$r=!0;const e=jn(t.value)?t.value:n;return Object.assign(t,{gr:e})}(e&&e.params&&e.params[t]);return Object.assign(s,o)}(t,e,r);n=function(t,n,e,i,r){if(t.type&&n&&"string"!==n.name)throw new Error(`Param '${i}' has two type configurations.`);if(t.type&&n&&"string"===n.name&&r.type(t.type))return r.type(t.type);if(n)return n;if(!t.type){const t=2===e?"any":0===e?"path":1===e?"query":"string";return r.type(t)}return t.type instanceof gc?t.type:r.type(t.type)}(s,n,e,t,i.paramTypes);const o=function(){const n={array:1===e&&"auto"},i=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(n,i,s).array}();n=o?n.$asArray(o,1===e):n;const c=void 0!==s.value||1===e,u=y(s.dynamic)?!!s.dynamic:!!n.dynamic,h=y(s.raw)?!!s.raw:!!n.raw,a=function(t,n,e){const{squash:i}=t;if(!n||!1===i)return!1;if(!y(i)||O(i))return e;if(!0===i||_(i))return i;throw new Error(`Invalid squash policy: '${i}'. Valid policies: false, true, or arbitrary string`)}(s,c,i.defaultSquashPolicy()),l=function(t,n,e,i){const r=[{from:"",to:e||n?void 0:""},{from:null,to:e||n?void 0:""}],s=k(t.replace)?t.replace:[];_(i)&&s.push({from:i,to:void 0});const o=tc(s,t=>t.from);return Yo(r,t=>-1===o.indexOf(t.from)).concat(s)}(s,o,c,a),f=y(s.inherit)?!!s.inherit:!!n.inherit;this.isOptional=c,this.type=n,this.location=e,this.id=t,this.dynamic=u,this.raw=h,this.squash=a,this.replace=l,this.inherit=f,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const n of this.replace)if(n.from===t)return n.to;return t})(t),b(t)?(()=>{if(this.wr)return this.wr.defaultValue;if(!window.angular.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=window.angular.$injector.invoke(this.config.gr);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.gr.$r&&(this.wr={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return 1===this.location}validates(t){if((b(t)||null===t)&&this.isOptional)return!0;const n=this.type.$normalize(t);if(!this.type.is(n))return!1;const e=n;return!(_(e)&&!this.type.pattern.exec(e))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,n={}){const e={};for(const i of t)e[i.id]=i.value(n[i.id]);return e}static changed(t,n={},e={}){return t.filter(t=>!t.type.equals(n[t.id],e[t.id]))}static equals(t,n={},e={}){return 0===qc.changed(t,n,e).length}static validates(t,n={}){return t.map(t=>t.validates(n[t.id])).reduce(nc,!0)}}class Uc{constructor(t){if(t instanceof Uc){const n=t;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=Object.assign({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{const n=t;this.state=n,this.paramSchema=n.parameters({inherit:!1}),this.paramValues={},this.resolvables=n.resolvables.map(t=>t.clone())}}clone(){return new Uc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((n,e)=>{return uc(n,[(i=e).id,i.value(t[i.id])]);var i},{}),this}parameter(t){return Qo(this.paramSchema,fc("id",t))}equals(t,n){const e=this.diff(t,n);return e&&0===e.length}diff(t,n){if(this.state!==t.state)return!1;const e=n?n(this):this.paramSchema;return qc.changed(e,this.paramValues,t.paramValues)}}class Vc{static buildPath(t){const n=t.params();return t.$state().path.map(t=>new Uc(t).applyRawParams(n))}static buildToPath(t,n){const e=Vc.buildPath(n);return n.options().inherit?Vc.inheritParams(t,e,Object.keys(n.params())):e}static applyViewConfigs(t,n,e){n.filter(t=>e.includes(t.state)).forEach(e=>{const i=Object.values(e.state.views||{}),r=Vc.subPath(n,t=>t===e),s=i.map(n=>t.vr(r,n));e.views=s.reduce(ic,[])})}static inheritParams(t,n,e=[]){const i=t.map(t=>t.paramSchema).reduce(ic,[]).filter(t=>!t.inherit).map(t=>t.id);return n.map(function(n){let r=Object.assign({},n&&n.paramValues);const s=Ko(r,e);r=Xo(r,e);const o=Xo(function(t,n){const e=Qo(t,fc("state",n));return Object.assign({},e&&e.paramValues)}(t,n.state)||{},i),c=Object.assign(r,o,s);return new Uc(n.state).applyRawParams(c)})}static treeChanges(t,n,e){const i=Math.min(t.length,n.length);let r=0;const s=(t,n)=>t.equals(n,Vc.nonDynamicParams);for(;r<i&&t[r].state!==e&&s(t[r],n[r]);)r++;const o=t,c=o.slice(0,r),u=o.slice(r),h=c.map(function(t,e){const i=t.clone();return i.paramValues=n[e].paramValues,i}),a=n.slice(r);return{from:o,to:h.concat(a),retained:c,retainedWithToParams:h,exiting:u,entering:a}}static matching(t,n,e){let i=!1;return cc(t,n).reduce((t,[n,r])=>(i=i||!n.equals(r,e),i?t:t.concat(n)),[])}static equals(t,n,e){return t.length===n.length&&Vc.matching(t,n,e).length===t.length}static subPath(t,n){const e=Qo(t,n),i=t.indexOf(e);return-1===i?void 0:t.slice(0,i+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,n)=>Object.assign(t,n.paramValues),{})}}function Fc(t,n){return new Nc(t,n.at(-1).state,n.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}),{})}const Lc="EAGER",Hc=[Lc,"LAZY"],Bc=[Lc];class zc{constructor(t){this.St=t}getTokens(){return this.St.reduce((t,n)=>t.concat(n.resolvables.map(t=>t.token)),[]).reduce(sc,[])}getResolvable(t){return hc(this.St.map(t=>t.resolvables).reduce(ic,[]).filter(n=>n.token===t))}getPolicy(t){const n=this.findNode(t);return t.getPolicy(n)}subContext(t){return new zc(Vc.subPath(this.St,n=>n.state===t))}addResolvables(t,n){const e=Qo(this.St,fc("state",n)),i=t.map(t=>t.token);e.resolvables=e.resolvables.filter(t=>-1===i.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",n){const e=(Hc.includes(t)?t:"LAZY")===Lc?Bc:Hc;Ic.traceResolvePath(this.St,t,n);const i=(t,n)=>e=>t.includes(this.getPolicy(e)[n]),r=this.St.reduce((t,r)=>{const s=r.resolvables.filter(i(e,"when")),o=s.filter(i(["NOWAIT"],"async")),c=s.filter(t=>!i(["NOWAIT"],"async")(t)),u=this.subContext(r.state),h=t=>t.get(u,n).then(n=>({token:t.token,value:n}));return o.forEach(h),t.concat(c.map(h))},[]);return Promise.all(r)}findNode(t){return Qo(this.St,n=>n.resolvables.includes(t))}getDependencies(t){const n=this.findNode(t),e=(Vc.subPath(this.St,t=>t===n)||this.St).reduce((t,n)=>t.concat(n.resolvables),[]).filter(n=>n!==t);return t.deps.map(t=>{const n=e.filter(n=>n.token===t);if(n.length)return hc(n);const i=window.angular.$injector.get(t);if(b(i))throw new Error(`Could not find Dependency Injection token: ${Oc(t)}`);return new Dc(t,()=>i,[],i)})}}const Wc=(t,n)=>t.reduce((t,e)=>t||y(n[e]),!1);function Jc(t){if(!t.parent)return{};const n=["component","bindings","componentProvider"],e=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=n.concat(e);if(y(t.views)&&Wc(i,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${i.filter(n=>y(t[n])).join(", ")}`);const r={};return St(t.views||{$default:Ko(t,i)}).forEach(([i,s])=>{if(i=i||"$default",_(s)&&(s={component:s}),s=Object.assign({},s),Wc(n,s)&&Wc(e,s))throw new Error(`Cannot combine: ${n.join("|")} with: ${e.join("|")} in stateview: '${i}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$context=t,s.$name=i;const o=Gc.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,r[i]=s}),r}let Zc=0;class Gc{constructor(t,n,e){this.path=t,this.viewDecl=n,this.factory=e,this.component=void 0,this.template=void 0,this.$id=Zc++,this.loaded=!1,this.getTemplate=(t,n)=>this.component?this.factory.makeComponentTemplate(t,n,this.component,this.viewDecl.bindings):this.template}load(){const t=new zc(this.path),n=this.path.reduce((t,n)=>Object.assign(t,n.paramValues),{}),e=[Promise.resolve(this.factory.fromConfig(this.viewDecl,n,t)),Promise.resolve(this.getController(t))];return Promise.all(e).then(t=>(Ic.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const n=this.viewDecl.controllerProvider;if(!jn(n))return this.viewDecl.controller;const e=yn(n),i=k(n)?hc(n):n;return new Dc("",i,e).get(t)}static normalizeUIViewTarget(t,n=""){const e=n.split("@");let i=e[0]||"$default",r=_(e[1])?e[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(i);if(s&&(r=s[1],i=s[2]),"!"===i.charAt(0)&&(i=i.substring(1),r=""),/^(\^(?:\.\^)*)$/.exec(r)){const n=r.split(".").reduce(t=>t.parent,t);r=n.name}else"."===r&&(r=t.name);return{ngViewName:i,ngViewContextAnchor:r}}}class Kc{constructor(){this.br=[],this.yr=[],this.wi=[],this.kr(function(){let t=null;return(n,e)=>(t=t||window.angular.$injector.get("$templateFactory"),new Gc(n,e,t))}())}$get=()=>this;rootViewContext(t){return this.Er=t||this.Er}kr(t){this.kr=t}vr(t,n){const e=this.kr;if(!e)throw new Error(`ViewService: No view config factory registered for type ${n.$type}`);return e(t,n)}deactivateViewConfig(t){Ic.traceViewServiceEvent("<- Removing",t),Zo(this.yr,t)}activateViewConfig(t){Ic.traceViewServiceEvent("-> Registering",t),this.yr.push(t)}sync(){const t=this.br.map(t=>[t.fqn,t]).reduce(uc,{});function n(t){let n=t.viewDecl.$context,e=0;for(;++e&&n.parent;)n=n.parent;return e}const e=lc((t,n,e,i)=>n*(t(e)-t(i))),i=t=>{-1!==this.br.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},r=this.br.sort(e(function(t){const n=t=>t&&t.parent?n(t.parent)+1:1;return 1e4*t.fqn.split(".").length+n(t.creationContext)},1)).map(i=>{const r=this.yr.filter(Kc.matches(t,i));return r.length>1&&r.sort(e(n,-1)),{ngView:i,viewConfig:r[0]}}),s=r.map(t=>t.viewConfig),o=this.yr.filter(t=>!s.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));r.forEach(t=>{i(t)});const c=r.concat(o);this.wi.forEach(t=>t(c)),Ic.traceViewSync(c)}registerUIView(t){Ic.traceViewServiceUIViewEvent("-> Registering",t);const n=this.br;return n.filter(n=>n.fqn===t.fqn).length&&Ic.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),n.push(t),this.sync(),()=>{-1!==n.indexOf(t)?(Ic.traceViewServiceUIViewEvent("<- Deregistering",t),Zo(n,t)):Ic.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this.br.map(t=>t.fqn)}active(){return this.br.filter(t=>t.$config).map(t=>t.name)}}Kc.matches=(t,n)=>e=>{if(n.$type!==e.viewDecl.$type)return!1;const i=e.viewDecl,r=i.$ngViewName.split("."),s=n.fqn.split(".");if(!Wo(r,s.slice(0-r.length)))return!1;const o=1-r.length||void 0,c=s.slice(0,o).join("."),u=t[c].creationContext;return i.$ngViewContextAnchor===(u&&u.name)};let Xc=0;class Yc{constructor(t,n,e){this.$id=Xc++,this.type=t,this.message=n,this.detail=e,this.redirected=!1}static superseded(t,n){const e=new Yc(2,"The transition has been superseded by a different transition",t);return n&&n.redirected&&(e.redirected=!0),e}static redirected(t){return Yc.superseded(t,{redirected:!0})}static invalid(t){return new Yc(4,"This transition is invalid",t)}static ignored(t){return new Yc(5,"The transition was ignored",t)}static aborted(t){return new Yc(3,"The transition has been aborted",t)}static errored(t){return new Yc(6,"The transition errored",t)}static normalize(t){return mc(Yc)(t)?t:Yc.errored(t)}toString(){const t=(n=this.detail)&&n.toString!==Object.prototype.toString?n.toString():Oc(n);var n;const{$id:e,type:i,message:r}=this;return`Transition Rejection($id: ${e} type: ${i}, message: ${r}, detail: ${t})`}toPromise(){return Object.assign(((t=Promise.reject(this)).catch(()=>0),t),{rr:this});var t}}const Qc={current:()=>{},transition:null,traceData:{},bind:null},tu={cr:0,Sr:1};class nu{static chain(t,n){return t.reduce((t,n)=>t.then(()=>n.invokeHook()),n||Promise.resolve())}static invokeHooks(t,n){for(let e=0;e<t.length;e++){const i=t[e].invokeHook();if(An(i)){const r=t.slice(e+1);return nu.chain(r,i).then(()=>{n()})}}return n()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,n,e,i,r){this.transition=t,this.stateContext=n,this.registeredHook=e,this.options=i,this.isSuperseded=()=>2===this.type.hookPhase&&!this.options.transition.isActive(),this.options=Go(i,Qc),this.type=e.eventType,this.D=r}logError(t){this.D(t)}invokeHook(){const t=this.registeredHook;if(t._r)return;const n=this.getNotCurrentRejection();if(n)return n;const{options:e}=this;Ic.traceHookInvocation(this,this.transition,e);const i=()=>t.callback.call(e.bind,this.transition,this.stateContext),r=t=>Yc.normalize(t).toPromise(),s=n=>t.eventType.getErrorHandler(this)(n),o=n=>t.eventType.getResultHandler(this)(n);try{const t=i();return!this.type.synchronous&&An(t)?t.catch(r).then(o,s):o(t)}catch(t){return s(Yc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){return this.getNotCurrentRejection()||(An(t)?t.then(t=>this.handleHookResult(t)):(Ic.traceHookResult(t,this.transition),!1===t?Yc.aborted("Hook aborted transition").toPromise():t instanceof Nc?Yc.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition.Or?Yc.aborted().toPromise():this.isSuperseded()?Yc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:n}=this;return`${dc("traceData.hookType")(t)||"internal"} context: ${dc("traceData.context.state.name")(t)||dc("traceData.context")(t)||"unknown"}, ${Sc(200,xc(n.callback))}`}}nu.HANDLE_RESULT=t=>n=>t.handleHookResult(n),nu.LOG_REJECTED_RESULT=t=>n=>{An(n)&&n.catch(n=>t.logError(Yc.normalize(n)))},nu.LOG_ERROR=t=>n=>t.logError(n),nu.REJECT_ERROR=()=>t=>{return(n=Promise.reject(t)).catch(()=>0),n;var n},nu.THROW_ERROR=()=>t=>{throw t};class eu{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new eu(t):null}constructor(t){this.Me=t;const n=this.Me.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":`\\.${t}`).join("");this.Cr=new RegExp(`^${n}$`)}matches(t){return this.Cr.test(`.${t}`)}}function iu(t,n,e){const i=_(n)?[n]:n;return!!(R(i)?i:function(t){const n=i;for(let e=0;e<n.length;e++){const i=new eu(n[e]);if(i&&i.matches(t.name)||!i&&n[e]===t.name)return!0}return!1})(t,e)}class ru{constructor(t,n,e,i,r,s={}){this.tranSvc=t,this.eventType=n,this.callback=e,this.matchCriteria=i,this.removeHookFromRegistry=r,this.invokeCount=0,this._r=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}jr(t,n,e){if(!0===n)return t;const i=t.filter(t=>iu(t.state,n,e));return i.length?i:null}Ar(){return tc(this.tranSvc.Tr(),()=>!0)}Rr(t,n){const e=Object.assign(this.Ar(),this.matchCriteria);return Object.values(this.tranSvc.Tr()).reduce((i,r)=>{const s=r.scope===tu.Sr,o=t[r.name]||[],c=s?o:[hc(o)];return i[r.name]=this.jr(c,e[r.name],n),i},{})}matches(t,n){const e=this.Rr(t,n);return Object.values(e).every(t=>t)?e:null}deregister(){this.removeHookFromRegistry(this),this._r=!0}}function su(t,n,e){const i=(t.Mr=t.Mr||{})[e.name]=[],r=t=>Zo(i,t);function s(t,s,o={}){const c=new ru(n,e,s,t,r,o);return i.push(c),c.deregister.bind(c)}return t[e.name]=s,s}class ou{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.Ir.Pr(t).map(t=>this.buildHooks(t)).reduce(ic,[]).filter(Boolean)}buildHooks(t){const{transition:n}=this,e=n.treeChanges(),i=this.getMatchingHooks(t,e,n);if(!i)return[];const r={transition:n,current:n.options().current};return i.map(i=>i.matches(e,n)[t.criteriaMatchPath.name].map(e=>{const s=Object.assign({bind:i.bind,traceData:{hookType:t.name,context:e}},r),o=t.criteriaMatchPath.scope===tu.Sr?e.state.self:null,c=new nu(n,o,i,s,this.transition.Ir.D);return{hook:i,node:e,transitionHook:c}})).reduce(ic,[]).sort(function(t=!1){return function(n,e){const i=t?-1:1,r=(n.node.state.path.length-e.node.state.path.length)*i;return 0!==r?r:e.hook.priority-n.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,n,e){const i=0===t.hookPhase,r=this.transition.Ir;return(i?[r]:[this.transition,r]).map(n=>n.getHooks(t.name)).filter(function(t,n="assert failure"){return e=>{const i=t(e);if(!i)throw new Error(n);return i}}(k,`broken event named: ${t.name}`)).reduce(ic,[]).filter(t=>t.matches(n,e))}}class cu{constructor(t,n,e,i){if(this.Dr=i,this.Ir=e,this.Nr=Promise.withResolvers(),this.promise=this.Nr.promise,this.Mr={},this.qr=new ou(this),this.isActive=()=>this.Dr.transition===this,this.Ur=n,!n.valid())throw new Error(n.error());this.vn=Object.assign({current:pc(this)},n.options()),this.$id=e.Vr++;const r=Vc.buildToPath(t,n);this.Fr=Vc.treeChanges(t,r,this.vn.reloadState),this.createTransitionHookRegFns();const s=this.qr.buildHooksForPhase(0);nu.invokeHooks(s,()=>null),this.applyViewConfigs(),this.onStart=void 0,this.onBefore=void 0,this.onSuccess=void 0,this.onEnter=void 0,this.onRetain=void 0,this.onExit=void 0,this.onFinish=void 0,this.onError=void 0}createTransitionHookRegFns(){this.Ir.Pr().filter(t=>0!==t.hookPhase).forEach(t=>su(this,this.Ir,t))}getHooks(t){return this.Mr[t]}applyViewConfigs(){const t=this.Fr.entering.map(t=>t.state);Vc.applyViewConfigs(this.Ir.$view,this.Fr.to,t)}$from(){return hc(this.Fr.from).state}$to(){return hc(this.Fr.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this.Ur}is(t){return t instanceof cu?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!iu(this.$to(),t.to,this)||t.from&&!iu(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this.Fr[t].map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}))}getResolveTokens(t="to"){return new zc(this.Fr[t]).getTokens()}addResolvable(t,n){void 0===n&&(n=""),t=mc(Dc)(t)?t:new Dc(t);const e="string"==typeof n?n:n.name,i=this.Fr.to,r=Qo(i,t=>t.state.name===e);at(!!r,`targetNode not found ${e}`),new zc(i).addResolvables([t],r.state)}redirectedFrom(){return this.vn.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this.vn}entering(){return tc(this.Fr.entering,t=>t.state).map(t=>t.self)}exiting(){return tc(this.Fr.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return tc(this.Fr.retained,t=>t.state).map(t=>t.self)}views(t="entering",n){let e=this.Fr[t];return e=n?e.filter(fc("state",n)):e,e.map(t=>t.views).reduce(ic,[])}treeChanges(t){return t?this.Fr[t]:this.Fr}redirect(t){let n=1,e=this;for(;!O(e=e.redirectedFrom());)if(++n>20)throw new Error("Too many consecutive Transition redirects (20+)");const i={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(i.location="replace");const r=Object.assign({},this.options(),t.options(),i);t=t.withOptions(r,!0);const s=this.Ir.create(this.Fr.from,t),o=this.Fr.entering,c=s.Fr.entering;return Vc.matching(c,o,Vc.nonDynamicParams).filter(n=>{return!(e=t.options().reloadState,t=>e&&t.state.includes[e.name])(n);var e}).forEach((t,n)=>{t.resolvables=o[n].resolvables}),s}Lr(){const t=this.Fr;if(this.vn.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(cc(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(ec,!1))return;const n=t.to.map(t=>t.paramSchema),[e,i]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return cc(n,e,i).map(([t,n,e])=>qc.changed(t,n,e)).reduce(ic,[])}dynamic(){const t=this.Lr();return!!t&&t.map(t=>t.dynamic).reduce(ec,!1)}ignored(){return!!this.Hr()}Hr(){const t=this.Dr.transition,{reloadState:n}=this.vn,e=(t,e)=>{if(t.length!==e.length)return!1;const i=Vc.matching(t,e);return t.length===i.filter(t=>!n||!t.state.includes[n.name]).length},i=this.Fr,r=t&&t.Fr;return r&&e(r.to,i.to)&&e(r.exiting,i.exiting)?"SameAsPending":0===i.exiting.length&&0===i.entering.length&&e(i.from,i.to)?"SameAsCurrent":void 0}run(){const t=t=>this.qr.buildHooksForPhase(t),n=t(1);return nu.invokeHooks(n,()=>{const{Dr:t}=this;return t.nr=this.$id,t.transition=this,t.er.enqueue(this),Ic.traceTransitionStart(this),Promise.resolve()}).then(()=>{const n=t(2),e=Promise.resolve();return nu.invokeHooks(n,()=>e)}).then(()=>{Ic.traceSuccess(this.$to(),this),this.success=!0,this.Nr.resolve(this.to()),this.qr.buildHooksForPhase(3).forEach(t=>{t.invokeHook()})},n=>{Ic.traceError(n,this),this.success=!1,this.Nr.reject(n),this.Br=n,t(4).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){b(this.success)&&(this.Or=!0)}error(){const t=this.$to();if(t.self.abstract)return Yc.invalid(`Cannot transition to abstract state '${t.name}'`);const n=t.parameters(),e=this.params(),i=n.filter(t=>!t.validates(e[t.id]));if(i.length){const n=i.map(t=>`[${t.id}:${Oc(e[t.id])}]`).join(", "),r=`The following parameter values are not valid for state '${t.name}': ${n}`;return Yc.invalid(r)}return!1===this.success?this.Br:void 0}toString(){const t=this.from(),n=this.to(),e=t=>null!==t["#"]&&void 0!==t["#"]?t:Xo(t,["#"]);return`Transition#${this.$id}( '${S(t)?t.name:t}'${Oc(e(this.Fr.from.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{})))} -> ${this.valid()?"":"(X) "}'${S(n)?n.name:n}'${Oc(e(this.params()))} )`}}cu.diToken=cu;const uu=["$transition$",cu];function hu(t){const n=Object.values(t.treeChanges()).reduce(ic,[]).reduce(sc,[]),e=t=>uu.includes(t.token)?Dc.fromData(t.token,null):t;n.forEach(t=>{t.resolvables=t.resolvables.map(e)})}function au(t){return(n,e)=>(0,e.$$state()[t])(n,e)}const lu=au("onExit"),fu=au("onRetain"),du=au("onEnter"),mu=1e3,pu=t=>new zc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),$u=(t,n)=>new zc(t.treeChanges().to).subContext(n.$$state()).resolvePath("LAZY",t).then(()=>{}),gu=t=>new zc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),wu=t=>{const n=t.views("entering");if(n.length)return Promise.all(n.map(t=>Promise.resolve(t.load()))).then(()=>{})},vu=t=>{const n=t.Dr,e=()=>{n.transition===t&&(n.transition=null)};t.onSuccess({},()=>{n.ir.enqueue(t),n.$current=t.$to(),n.current=n.$current.self,ac(t.params(),n.params)},{priority:1e4}),t.promise.then(e,e)};function bu(t,n,e,i){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const r=t.entering().filter(t=>!!t.$$state().lazyLoad).map(n=>yu(t,n,i));return Promise.all(r).then(function(){if("url"!==t.originalTransition().options().source){const e=t.targetState();return n.target(e.identifier(),e.params(),e.options())}const i=e.match(e.parts()),r=i&&i.rule;if(r&&"STATE"===r.type){const{state:e}=r,s=i.match;return n.target(e,s,t.options())}e.sync()})})}function yu(t,n,e){const i=n.$$state().lazyLoad;let r=i.Ri;if(!r){const s=t=>(delete n.lazyLoad,delete n.$$state().lazyLoad,delete i.Ri,t),o=t=>(delete i.Ri,Promise.reject(t));r=i.Ri=Promise.resolve(i(t,n)).then(function(t){return t&&k(t.states)&&t.states.forEach(t=>e.register(t)),t}).then(s,o)}return r}class ku{constructor(t,n,e,i,r=!1,s=nu.HANDLE_RESULT,o=nu.REJECT_ERROR,c=!1){this.name=t,this.hookPhase=n,this.hookOrder=e,this.criteriaMatchPath=i,this.reverseSort=r,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=c}}function Eu(t){const n=t.Hr();if(!n)return;Ic.traceTransitionIgnored(t);const e=t.Dr.transition;return"SameAsCurrent"===n&&e&&e.abort(),Yc.ignored().toPromise()}function Su(t){if(!t.valid())throw new Error(t.error().toString())}const _u={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class xu{static $inject=At([jt.G,jt.lt,jt.D]);constructor(t,n,e){this.Vr=0,this.zr=[],this.Mr={},this.Wr={},this.globals=t,this.$view=n,this.Jr={},this.Zr(),this.Gr(),this.Kr(),this.D=e.handler,t.ir.onEvict(hu)}$get=[jt.Y,jt.ht,jt.tt,jt.lt,(t,n,e,i)=>(this.Jr.lazyLoad=bu(this,t,n,e),this.Jr.updateUrl=((t,n,e)=>{this.onSuccess({},t=>{const i=t.options(),r=n;if("url"!==i.source&&i.location&&r.$current.navigable){const t={replace:"replace"===i.location};e.push(r.$current.navigable.url,r.globals.params,t)}e.update(!0)},{priority:9999})})(0,t,n),this.Jr.redirectTo=((t,n)=>{this.onStart({to:t=>!!t.redirectTo},t=>{const e=t.to().redirectTo;if(!e)return;const i=n;function r(n){if(n)return n instanceof Nc?n:_(n)?i.target(n,t.params(),t.options()):n.state||n.params?i.target(n.state||t.to(),n.params||t.params(),t.options()):void 0}return R(e)?Promise.resolve(e(t)).then(r):r(e)})})(0,t),this.Jr.activateViews=((t,n)=>{this.onSuccess({},t=>{const e=t.views("entering"),i=t.views("exiting");(e.length||i.length)&&(i.forEach(t=>n.deactivateViewConfig(t)),e.forEach(t=>{n.activateViewConfig(t)}),n.sync())})})(0,i),this)];create(t,n){return new cu(t,n,this,this.globals)}Gr(){const t=nu,n=this.Wr,e=!1,i=!0;this.Xr("onCreate",0,0,n.to,e,t.LOG_REJECTED_RESULT,t.THROW_ERROR,i),this.Xr("onBefore",1,0,n.to),this.Xr("onStart",2,0,n.to),this.Xr("onExit",2,100,n.exiting,!0),this.Xr("onRetain",2,200,n.retained),this.Xr("onEnter",2,300,n.entering),this.Xr("onFinish",2,400,n.to),this.Xr("onSuccess",3,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i),this.Xr("onError",4,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i)}Zr(){const{Sr:t,cr:n}=tu;this.Yr("to",n),this.Yr("from",n),this.Yr("exiting",t),this.Yr("retained",t),this.Yr("entering",t)}Xr(t,n,e,i,r=!1,s=nu.HANDLE_RESULT,o=nu.REJECT_ERROR,c=!1){const u=new ku(t,n,e,i,r,s,o,c);this.zr.push(u),su(this,this,u)}Pr(t){return(y(t)?this.zr.filter(n=>n.hookPhase===t):this.zr.slice()).sort((t,n)=>{const e=t.hookPhase-n.hookPhase;return 0===e?t.hookOrder-n.hookOrder:e})}Yr(t,n){this.Wr[t]={name:t,scope:n}}Tr(){return this.Wr}getHooks(t){return this.Mr[t]}Kr(){const t=this.Jr;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(Dc.fromData(cu,t),""),t.addResolvable(Dc.fromData("$transition$",t),""),t.addResolvable(Dc.fromData("$stateParams",t.params()),""),t.entering().forEach(n=>{t.addResolvable(Dc.fromData("$state$",n),n)})}),t.ignored=(()=>this.onBefore({},Eu,{priority:-9999}))(),t.invalid=(()=>this.onBefore({},Su,{priority:-1e4}))(),t.onExit=(()=>this.onExit({exiting:t=>!!t.onExit},lu))(),t.onRetain=(()=>this.onRetain({retained:t=>!!t.onRetain},fu))(),t.onEnter=(()=>this.onEnter({entering:t=>!!t.onEnter},du))(),t.eagerResolve=(()=>this.onStart({},pu,{priority:mu}))(),t.lazyResolve=(()=>this.onEnter({entering:pc(!0)},$u,{priority:mu}))(),t.resolveAll=(()=>this.onFinish({},gu,{priority:mu}))(),t.loadViews=(()=>this.onFinish({},wu))(),t.updateGlobals=(()=>this.onCreate({},vu))(),t.lazyLoad=bu(this)}}const Ou=pt("$stateProvider"),Cu=t=>t.catch(()=>0)&&t;class ju{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=At([jt.G,jt.ct,jt.D]);constructor(t,n,e){this.globals=t,this.transitionService=n,this.stateRegistry=void 0,this.urlService=void 0,this.$injector=void 0,this.invalidCallbacks=[],this.Qr=e.handler}$get=[jt.wt,jt.ht,(t,n)=>(this.urlService=n,this.$injector=t,this)];decorator(t,n){return this.stateRegistry.decorator(t,n)||this}state(t){if(!t.name)throw Ou("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Ou("stateinvalid",t.message)}return this}ts(t,n){const e=Fc(this.stateRegistry,t),{globals:i}=this,r=()=>i.er.peekTail(),s=r(),o=new kc(this.invalidCallbacks.slice()),c=this.$injector,u=t=>{if(!(t instanceof Nc))return;let n=t;return n=this.target(n.identifier(),n.params(),n.options()),n.valid()?r()!==s?Yc.superseded().toPromise():this.transitionTo(n.identifier(),n.params(),n.options()):Yc.invalid(n.error()).toPromise()};return function t(){const i=o.dequeue();return void 0===i?Yc.invalid(n.error()).toPromise():Promise.resolve(i(n,e,c)).then(u).then(n=>n||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Zo(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!y(t)||t,inherit:!1,notify:!1})}go(t,n,e){const i=Go(e,{relative:this.$current,inherit:!0},_u);return this.transitionTo(t,n,i)}target(t,n,e={}){if(S(e.reload)&&!e.reload.name)throw new Error("Invalid reload state object");const i=this.stateRegistry;if(e.reloadState=!0===e.reload?i.root():i.matcher.find(e.reload,e.relative),e.reload&&!e.reloadState)throw new Error(`No such reload state '${_(e.reload)?e.reload:e.reload.name}'`);return new Nc(this.stateRegistry,t,n,e)}getCurrentPath(){const{globals:t}=this,n=t.ir.peekTail();return n?n.Fr.to:(()=>[new Uc(this.stateRegistry.root())])()}transitionTo(t,n={},e={}){e=Go(e,_u);const i=()=>this.globals.transition;e=Object.assign(e,{current:i});const r=this.target(t,n,e),s=this.getCurrentPath();if(!r.exists())return this.ts(s,r);if(!r.valid())return o=r.error(),Cu(Promise.reject(o));var o;if(!1===e.supercede&&i())return Yc.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const c=t=>n=>{if(n instanceof Yc){const e=this.globals.nr<=t.$id;if(5===n.type)return e&&this.urlService.update(),Promise.resolve(this.globals.current);const{detail:i}=n;if(2===n.type&&n.redirected&&i instanceof Nc){const n=t.redirect(i);return n.run().catch(c(n))}if(3===n.type)return e&&this.urlService.update(),Promise.reject(n)}return this.defaultErrorHandler()(n),Promise.reject(n)},u=this.transitionService.create(s,r),h=u.run().catch(c(u));return Cu(h),Object.assign(h,{transition:u})}is(t,n,e){e=Go(e,{relative:this.$current});const i=this.stateRegistry.matcher.find(t,e.relative);if(!y(i))return;if(this.$current!==i)return!1;if(!n)return!0;const r=i.parameters({inherit:!0,matchingKeys:n});return qc.equals(r,qc.values(r,n),this.globals.params)}includes(t,n,e){e=Go(e,{relative:this.$current});const i=_(t)&&eu.fromString(t);if(i){if(!i.matches(this.$current.name))return!1;t=this.$current.name}const r=this.stateRegistry.matcher.find(t,e.relative),s=this.$current.includes;if(!y(r))return;if(!y(s[r.name]))return!1;if(!n)return!0;const o=r.parameters({inherit:!0,matchingKeys:n});return qc.equals(o,qc.values(o,n),this.globals.params)}href(t,n,e){e=Go(e,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),n=n||{};const i=this.stateRegistry.matcher.find(t,e.relative);if(!y(i))return null;e.inherit&&(n=this.globals.params.$inherit(n,this.$current,i));const r=i&&e.lossy?i.navigable:i;return r&&void 0!==r.url&&null!==r.url?this.urlService.href(r.url,n,{absolute:e.absolute}):null}defaultErrorHandler(t){return this.Qr=t||this.Qr}get(t,n){const e=this.stateRegistry;return 0===arguments.length?e.get():e.get(t,n||this.$current)}lazyLoad(t,n){const e=this.get(t);if(!e||!e.lazyLoad)throw new Error(`Can not lazy load ${t}`);const i=this.getCurrentPath(),r=Fc(this.stateRegistry,i);return yu(n=n||this.transitionService.create(i,r),e)}}class Au{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[jt.O,t=>this.enabled?t:t=>{var n;n=Element,Mn(t=>t instanceof n,t,"$element"),setTimeout(()=>{t.scrollIntoView(!1)},0)}]}class Tu{constructor(){this.ns=!1}$get=[jt.q,jt.rt,jt.ot,jt.wt,(t,n,e,i)=>(this.$templateRequest=e,this.$http=t,this.$templateCache=n,this.$injector=i,this)];useHttpService(t){this.ns=t}fromConfig(t,n,e){const i=t=>Promise.resolve(t).then(t=>({template:t})),r=t=>Promise.resolve(t).then(t=>({component:t}));switch(y((s=t).template)?"template":y(s.templateUrl)?"templateUrl":y(s.templateProvider)?"templateProvider":y(s.component)?"component":y(s.componentProvider)?"componentProvider":"default"){case"template":return i(this.fromString(t.template,n));case"templateUrl":return i(this.fromUrl(t.templateUrl,n));case"templateProvider":return i(this.fromProvider(t.templateProvider,n,e));case"component":return r(t.component);case"componentProvider":return r(this.fromComponentProvider(t.componentProvider,e));default:return i("<ng-view></ng-view>")}var s}fromString(t,n){return R(t)?t(n):t}fromUrl(t,n){return R(t)&&(t=t(n)),O(t)?null:this.ns?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,n,e){const i=yn(t),r=k(t)?hc(t):t;return new Dc("",r,i).get(e)}fromComponentProvider(t,n){const e=yn(t),i=k(t)?hc(t):t;return new Dc("",i,e).get(n)}makeComponentTemplate(t,n,e,i){i=i||{};const r=t=>{const n=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}(t);return/^(x|data)-/.exec(n)?`x-${n}`:n},s=function(t,n){const e=t.get(n+Ve);if(!e||!e.length)throw new Error(`Unable to find component named '${n}'`);return e.map(Ru).reduce(ic,[])}(this.$injector,e).map(e=>{const{name:s,type:o}=e,c=r(s);if(t.getAttribute(c)&&!i[s])return`${c}='${t.getAttribute(c)}'`;const u=i[s]||s;if("@"===o)return`${c}='{{s$resolve.${u}}}'`;if("&"===o){const t=n.getResolvable(u),e=t&&t.data,i=e&&yn(e)||[];return`${c}='$resolve.${u}${k(e)?`[${e.length-1}]`:""}(${i.join(",")})'`}return`${c}='$resolve.${u}'`}).join(" "),o=r(e);return`<${o} ${s}></${o}>`}}const Ru=t=>S(t.bindToController)?Mu(t.bindToController):Mu(t.scope),Mu=t=>Object.keys(t||{}).map(n=>[n,/^([=<@&])[?]?(.*)/.exec(t[n])]).filter(t=>y(t)&&k(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function Pu(t,n){let e=["",""],i=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!n)return i;switch(n.squash){case!1:e=["(",")"+(n.isOptional?"?":"")];break;case!0:i=i.replace(/\/$/,""),e=["(?:/(",")|/)?"];break;default:e=[`(${n.squash}|`,")?"]}return i+e[0]+n.type.pattern.source+e[1]}const Iu=function(){const t=new RegExp("(/)","g");return n=>n.split(t).filter(Boolean)}(),Du={state:{params:{}},strict:!0,caseInsensitive:!0};class Nu{static pathSegmentsAndParams(t){return cc(t.es,t.mr.filter(t=>0===t.location).concat(void 0)).reduce(ic,[]).filter(t=>""!==t&&y(t))}static queryParams(t){return t.mr.filter(t=>1===t.location)}static compare(t,n){const e=t=>t.Et.weights=t.Et.weights||(t=>t.Et.segments=t.Et.segments||t.Et.path.map(Nu.pathSegmentsAndParams).reduce(ic,[]).reduce(Cc,[]).map(t=>_(t)?Iu(t):t).reduce(ic,[]))(t).map(t=>"/"===t?1:_(t)?2:t instanceof qc?3:void 0),i=e(t),r=e(n);((t,n)=>{const e=Math.max(t.length,n.length);for(;t.length<e;)t.push(0);for(;n.length<e;)n.push(0)})(i,r);const s=cc(i,r);let o;for(let t=0,n=s.length;t<n;t++)if(o=s[t][0]-s[t][1],0!==o)return o;return 0}constructor(t,n,e,i){this.Et={path:[this]},this.Ei=[],this.mr=[],this.es=[],this.rs=[],this.config=i=Go(i,Du),this.pattern=t;const r=new RegExp("([:*])([\\w[\\]]+)|\\{([\\w[\\]]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),s=new RegExp("([:]?)([\\w[\\].-]+)|\\{([\\w[\\].-]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),o=[];let c,u=0;const h=n=>{if(!Nu.nameValidator.test(n))throw new Error(`Invalid parameter name '${n}' in pattern '${t}'`);if(Qo(this.mr,fc("id",n)))throw new Error(`Duplicate parameter name '${n}' in pattern '${t}'`)},a=(e,i)=>{const r=e[2]||e[3],s=i?e[4]:e[4]||("*"===e[1]?"[\\s\\S]*":null);return{id:r,regexp:s,segment:t.substring(u,e.index),type:s?n.type(s)||(t=>Jo(n.type(i?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let l,f;for(;(c=r.exec(t))&&(l=a(c,!1),!(l.segment.indexOf("?")>=0));)h(l.id),this.mr.push(e.fromPath(l.id,l.type,i.state)),this.es.push(l.segment),o.push([l.segment,hc(this.mr)]),u=r.lastIndex;f=t.substring(u);const d=f.indexOf("?");if(d>=0){const t=f.substring(d);if(f=f.substring(0,d),t.length>0)for(u=0;c=s.exec(t);)l=a(c,!0),h(l.id),this.mr.push(e.fromSearch(l.id,l.type,i.state)),u=r.lastIndex}this.es.push(f),this.rs=o.map(t=>Pu.apply(null,t)).concat(Pu(f))}append(t){return this.Ei.push(t),t.Et={path:this.Et.path.concat(t),parent:this,pattern:null},t}isRoot(){return this.Et.path[0]===this}toString(){return this.pattern}ss(t,n){return n.value(t)}exec(t,n={},e){const i=(r=this.Et,s="pattern",o=()=>new RegExp(["^",oc(this.Et.path.map(t=>t.rs)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),r[s]=r[s]||o()).exec(t);var r,s,o;if(!i)return null;const c=this.parameters(),u=c.filter(t=>!t.isSearch()),h=c.filter(t=>t.isSearch()),a=this.Et.path.map(t=>t.es.length-1).reduce((t,n)=>t+n),l={};if(a!==i.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function f(t){const n=t=>t.split("").reverse().join(""),e=tc(n(t).split(/-(?!\\)/),n);return tc(e,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<a;t++){const n=u[t];let e=i[t+1];for(let t=0;t<n.replace.length;t++)n.replace[t].from===e&&(e=n.replace[t].to);e&&!0===n.array&&(e=f(e)),l[n.id]=this.ss(e,n)}return h.forEach(t=>{let e=n[t.id];for(let n=0;n<t.replace.length;n++)t.replace[n].from===e&&(e=t.replace[n].to);l[t.id]=this.ss(e,t)}),e&&(l["#"]=e),l}parameters(t={}){return!1===t.inherit?this.mr:oc(this.Et.path.map(t=>t.mr))}parameter(t,n={}){const{parent:e}=this.Et;return(()=>{for(const n of this.mr)if(n.id===t)return n})()||!1!==n.inherit&&e&&e.parameter(t,n)||null}validates(t){return t=t||{},this.parameters().filter(n=>kt(t,n.id)).map(n=>((t,n)=>!t||t.validates(n))(n,t[n.id])).reduce(nc,!0)}format(t={}){const n=this.Et.path,e=n.map(Nu.pathSegmentsAndParams).reduce(ic,[]).map(t=>_(t)?t:r(t)),i=n.map(Nu.queryParams).reduce(ic,[]).map(r);if(e.concat(i).filter(t=>!1===t.isValid).length)return null;function r(n){const e=n.value(t[n.id]),i=n.validates(e),r=n.isDefaultValue(e),s=!!r&&n.squash,o=n.type.encode(e);return{param:n,value:e,isValid:i,isDefaultValue:r,squash:s,encoded:o}}const s=e.reduce((t,n)=>{if(_(n))return t+n;const{squash:e,encoded:i,param:r}=n;return!0===e?t.match(/\/$/)?t.slice(0,-1):t:_(e)?t+e:!1!==e||O(i)?t:k(i)?t+tc(i,qu).join("-"):r.raw?t+i:t+encodeURIComponent(i)},""),o=i.map(t=>{const{param:n,squash:e,isDefaultValue:i}=t;let{encoded:r}=t;if(!(O(r)||i&&!1!==e)&&(k(r)||(r=[r]),0!==r.length))return n.raw||(r=tc(r,encodeURIComponent)),r.map(t=>`${n.id}=${t}`)}).reduce(ic,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?`#${t["#"]}`:"")}}function qu(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}Nu.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Uu{name;navigable;parent;params;url;includes;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const n=this.name?eu.fromString(this.name):null;this.cs={nameGlob:n}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?`${t}.${this.name}`:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Go(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(n=>!t.matchingKeys||kt(t.matchingKeys,n.id))}parameter(t,n={}){return this.url&&this.url.parameter(t,n)||Qo(Object.values(this.params),fc("id",t))||n.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Uu.isStateDeclaration=t=>R(t.$$state),Uu.isState=t=>S(t.cs);class Vu{constructor(t,n,e){this.urlService=t,this.stateService=n,this.routerGlobals=e}create(t,n){const{isState:e,isStateDeclaration:i}=Uu,r=$c([[_,t=>r(this.urlService.compile(t))],[mc(Nu),t=>this.fromUrlMatcher(t,n)],[(...t)=>e(...t)||i(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[mc(RegExp),t=>this.fromRegExp(t,n)],[R,t=>new Fu(t,n)]]),s=r(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,n){let e=n;_(n)&&(n=this.urlService.compile(n)),mc(Nu)(n)&&(e=t=>n.format(t));const i={urlMatcher:t,matchPriority:function(n){const e=t.parameters().filter(t=>t.isOptional);return e.length?e.filter(t=>n[t.id]).length/e.length:1e-6},type:"URLMATCHER"};return Object.assign(new Fu(function(n){const e=t.exec(n.path,n.search,n.hash);return t.validates(e)&&e},e),i)}fromState(t,n,e){const i=Uu.isStateDeclaration(t)?t.$$state():t,r={state:i,type:"STATE"};return Object.assign(this.fromUrlMatcher(i.url,t=>{const r=n;r.href(i,t)!==r.href(e.current,e.params)&&r.transitionTo(i,t,{inherit:!0,source:"url"})}),r)}fromRegExp(t,n){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const e=_(n)?t=>n.replace(/\$(\$|\d{1,2})/,(n,e)=>t["$"===e?0:Number(e)]):n,i={regexp:t,type:"REGEXP"};return Object.assign(new Fu(n=>t.exec(n.path),e),i)}}Vu.isUrlRule=t=>t&&["type","match","handler"].every(n=>y(t[n]));class Fu{constructor(t,n){this.match=t,this.type="RAW",this.$id=-1,this.us=void 0,this.handler=n||(t=>t),this.priority=void 0}matchPriority(t){return at(b(t)),0-this.$id}}function Lu(t,n){let e=function(t,n){return(n.priority||0)-(t.priority||0)}(t,n);return 0!==e?e:(e=((t,n)=>{const e={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(e[t.type]||0)-(e[n.type]||0)})(t,n),0!==e?e:(e=((t,n)=>t.urlMatcher&&n.urlMatcher?Nu.compare(t.urlMatcher,n.urlMatcher):0)(t,n),0!==e?e:((t,n)=>{const e={STATE:!0,URLMATCHER:!0};return e[t.type]&&e[n.type]?0:(t.$id||0)-(n.$id||0)})(t,n)))}class Hu{constructor(t){this.hs=Lu,this.ls=[],this.fs=0,this.ds=t}removeRule(t){Zo(this.ls,t)}rule(t){if(!Vu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this.fs++,t.priority=t.priority||0,this.ls.push(t),this.ps=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this.ls}sort(t){const n=this.stableSort(this.ls,this.hs=t||this.hs);let e=0;for(let t=0;t<n.length;t++)n[t].us=e,t<n.length-1&&0!==this.hs(n[t],n[t+1])&&e++;this.ls=n,this.ps=!0}ensureSorted(){this.ps||this.sort()}stableSort(t,n){const e=t.map((t,n)=>({elem:t,idx:n}));return e.sort((t,e)=>{const i=n(t.elem,e.elem);return 0===i?t.idx-e.idx:i}),e.map(t=>t.elem)}when(t,n,e){const i=this.ds.create(t,n);return y(e&&e.priority)&&(i.priority=e.priority),this.rule(i),i}}class Bu{constructor(t){this.urlServiceConfig=t}fromConfig(t,n,e){return new qc(t,n,2,this.urlServiceConfig,e)}fromPath(t,n,e){return new qc(t,n,0,this.urlServiceConfig,e)}fromSearch(t,n,e){return new qc(t,n,1,this.urlServiceConfig,e)}}class zu{static $inject=At([jt.F,jt.Y,jt.G,jt.ut]);$location;constructor(t,n,e,i){this.$s=t,this.stateService=n,this.ds=new Vu(this,this.stateService,e),this.ls=new Hu(this.ds),this.gs=i,this.ws=new Bu(this.gs),this.vs=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[jt.F,jt.J,(t,n)=>(this.$location=t,n.$on("$locationChangeSuccess",t=>{for(let n=0,e=this.vs.length;n<e;n++)this.vs[n](t)}),this.listen(!0),this)];baseHref(){return this.bs||(this.bs=dn()||window.location.pathname)}url(t,n){if(y(t)){const n=decodeURIComponent(t);this.$location.setUrl(n)}return n&&this.$location.setState(n),this.$location.getUrl()}onChange(t){return this.vs.push(t),()=>Zo(this.vs,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const{stateService:n}=this,e={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},i=this.match(e);$c([[_,t=>this.url(t)],[Nc.isDef,t=>n.go(t.state,t.params,t.options)],[mc(Nc),t=>n.go(t.state(),t.params(),t.options())]])(i&&i.rule.handler(i.match,e))}listen(t){return!1===t?(this.ys&&this.ys(),void delete this.ys):this.ys=this.ys||this.onChange(t=>this.sync(t))}match(t){t=Object.assign({path:"",search:{},hash:""},t);const n=this.ls.rules(),e=n=>{const e=n.match(t);return e&&{match:e,rule:n,weight:n.matchPriority(e)}};let i;for(let t=0;t<n.length&&(!i||i.rule.us===n[t].us);t++){const r=e(n[t]);i=!i||r&&r.weight>i.weight?r:i}return i}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,n,e){const i=e&&!!e.replace;this.url(t.format(n||{}),i)}href(t,n,e){let i=t.format(n);if(x(i))return null;e=e||{absolute:!1};const r=this.$s.html5ModeConf.enabled;if(r||(i=`#${this.$s.hashPrefixConf}${i}`),i=function(t,n,e,i){return"/"===i?t:n?i.replace(/\/[^/]*$/,"")+t:e?i.slice(1)+t:t}(i,r,e.absolute,this.baseHref()),!e.absolute||!i)return i;const s=!r&&i?"/":"";return[`${window.location.protocol}//`,window.location.host,s,i].join("")}compile(t,n){const e=this.gs,i=n&&!n.state&&n.params;n=i?Object.assign({state:{params:i}},n):n;const r={strict:e.Ki,caseInsensitive:e.Gi};return new Nu(t,e.paramTypes,this.ws,Object.assign(r,n))}isMatcher(t){if(!S(t))return!1;let n=!0;return St(Nu.prototype).forEach(([e,i])=>{R(i)&&(n=n&&y(t[e])&&R(t[e]))}),n}}class Wu{constructor(t){this.ks=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,n,e=!0){if(!t&&""!==t)return;const i=_(t);let r=i?t:t.name;this.isRelative(r)&&(r=this.resolvePath(r,n));const s=this.ks[r];if(s&&(i||!(i||s!==t&&s.self!==t)))return s;if(i&&e){const t=Object.values(this.ks).filter(t=>t.cs.nameGlob?.matches(r));if(t.length>1)throw new Error(`stateMatcher.find: Found multiple matches for ${r} using glob: ${t.map(t=>t.name)}`);return t[0]}}resolvePath(t,n){if(!n)throw new Error(`No reference point given for path '${t}'`);const e=this.find(n),i=t.split("."),r=i.length;let s=0,o=e;for(;s<r;s++)if(""!==i[s]||0!==s){if("^"!==i[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${e.name}'`);o=o.parent}else o=e;const c=i.slice(s).join(".");return o.name+(o.name&&c?".":"")+c}}function Ju(t){return t.self.$$state=()=>t,t.self}function Zu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Jo(t.parent.data,t.data)),t.data}function Gu(t,n){return function(e){let i=e.self;if(i&&i.url&&i.name&&i.name.match(/\.\*\*$/)){const t={};ac(i,t),t.url+="{remainder:any}",i=t}const{parent:r}=e,s=function(t){if(!_(t))return!1;const n="^"===t.charAt(0);return{val:n?t.substring(1):t,root:n}}(i.url),o=s?t.compile(s.val,{state:i}):i.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${e}'`);return s&&s.root?o:(r&&r.navigable||n()).url.append(o)}}function Ku(t){return t.parent?t.parent.path.concat(t):[t]}function Xu(t){const n=t.parent?Object.assign({},t.parent.includes):{};return n[t.name]=!0,n}function Yu(t){const n=$c([[t=>t.resolveFn,t=>new Dc(nh(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Dc(nh(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Dc(nh(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new Dc(nh(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Dc(nh(t),t=>t,[t.useExisting],t.policy)]]),e=$c([[t=>_(t.val),t=>new Dc(t.token,t=>t,[t.val],t.policy)],[t=>k(t.val),t=>new Dc(t.token,hc(t.val),t.val.slice(0,-1),t.policy)],[t=>R(t.val),t=>new Dc(t.token,t.val,(t=>{const{$injector:n}=window.angular;return t.$inject||n&&yn(t,n.strictDi)||"deferred"})(t.val),t.policy)]]),i=$c([[mc(Dc),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!!(t&&t.val&&(_(t.val)||k(t.val)||R(t.val))),e],[pc(!0),t=>{throw new Error(`Invalid resolve value: ${Oc(t)}`)}]]),r=t.resolve;var s,o;return(k(r)?r:(s=r,o=t.resolvePolicy||{},Object.keys(s||{}).map(t=>({token:t,val:s[t],deps:void 0,policy:o[t]})))).map(i)}class Qu{constructor(t,n){this.Es=t,this.Ss=void 0;const e=this,i=()=>t.find("");var r,s;this._s={name:[t=>t.name],self:[Ju],parent:[function(n){return th(n)?null:t.find(e.parentName(n))||i()}],data:[Zu],url:[Gu(n,i)],navigable:[(s=th,function(t){return!s(t)&&t.url?t:t.parent?t.parent.navigable:null})],params:[(r=n.ws,function(t){const n=t.url&&t.url.parameters({inherit:!1})||[],e=Object.values(tc(Xo(t.params||{},n.map(t=>t.id)),(n,e)=>r.fromConfig(e,null,t.self)));return n.concat(e).map(t=>[t.id,t]).reduce(uc,{})})],views:[],path:[Ku],includes:[Xu],resolvables:[Yu]}}builder(t,n){const{_s:e}=this,i=e[t]||[];return _(t)&&!y(n)?i.length>1?i:i[0]:_(t)&&R(n)?(e[t]=i,e[t].push(n),()=>e[t].splice(e[t].indexOf(n,1))&&null):void 0}build(t){const{Es:n,_s:e}=this,i=this.parentName(t);if(i&&!n.find(i,void 0,!1))return null;for(const n in e){if(!kt(e,n))continue;const i=e[n].reduce((t,n)=>e=>n(e,t),()=>{});t[n]=i(t)}return t}parentName(t){const n=t.name||"",e=n.split(".");if("**"===e.pop()&&e.pop(),e.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${n})`);return e.join(".")}return t.parent?_(t.parent)?t.parent:t.parent.name:""}name(t){const{name:n}=t;if(-1!==n.indexOf(".")||!t.parent)return n;const e=_(t.parent)?t.parent:t.parent.name;return e?`${e}.${n}`:n}}function th(t){return""===t.name}function nh(t){return t.provide||t.token}class eh{constructor(t,n,e,i,r){this.stateRegistry=t,this.urlServiceRules=n,this.states=e,this.builder=i,this.listeners=r,this.queue=[]}register(t){const n=new Uu(t);if(!_(name))throw new Error("State must have a valid name");if(kt(this.states,n.name)||this.queue.map(t=>t.name).includes(n.name))throw new Error(`State '${n.name}' is already defined`);return this.queue.push(n),this.flush(),n}flush(){const{queue:t,states:n,builder:e}=this,i=[],r=[],s={},o=t=>kt(this.states,t)&&this.states[t],c=()=>{i.length&&this.listeners.forEach(t=>t("registered",i.map(t=>t.self)))};for(;t.length>0;){const u=t.shift(),{name:h}=u,a=e.build(u),l=r.indexOf(u);if(a){const t=o(h);if(t&&t.name===h)throw new Error(`State '${h}' is already defined`);const e=o(`${h}.**`);e&&this.stateRegistry.deregister(e),n[h]=u,this.attachRoute(u),l>=0&&r.splice(l,1),i.push(u);continue}const f=s[h];if(s[h]=t.length,l>=0&&f===t.length)return t.push(u),c(),n;l<0&&r.push(u),t.push(u)}return c(),n}attachRoute(t){if(t.abstract||!t.url)return;const n=this.urlServiceRules;n.rule(n.ds.create(t))}}class ih{static $inject=At([jt.ht,jt.Y,jt.G,jt.lt]);constructor(t,n,e,i){this.states={},n.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.ls,this.$injector=void 0,this.listeners=[],this.matcher=new Wu(this.states),this.builder=new Qu(this.matcher,t),this.builder.builder("views",Jc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new eh(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),i.rootViewContext(this.root()),e.$current=this.root(),e.current=e.$current.self}$get=[jt.wt,t=>(this.$injector=t,this.builder.Ss=t,this)];getStateHookBuilder(t){const n=this;return function(e){const i=e[t],r="onExit"===t?"from":"to";return i?function(t,e){const s=new zc(t.treeChanges(r)).subContext(e.$$state()),o=Object.assign(rh(s),{$state$:e,$transition$:t});return n.$injector.invoke(i,n,o)}:void 0}}registerRoot(){this.xs=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this.xs.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Zo(this.listeners,t)}.bind(this)}root(){return this.xs}register(t){return this.stateQueue.register(t)}Os(t){const n=this.getAll().map(t=>t.$$state()),e=t=>{const i=n.filter(n=>-1!==t.indexOf(n.parent));return 0===i.length?i:i.concat(e(i))},i=e([t]),r=[t].concat(i).reverse();return r.forEach(t=>{const n=this.urlServiceRules;n.rules().filter(fc("state",t)).forEach(t=>n.removeRule(t)),delete this.states[t.name]}),r}deregister(t){const n=this.get(t);if(!n)throw new Error(`Can't deregister state; not found: ${t}`);const e=this.Os(n.$$state());return this.listeners.forEach(t=>t("deregistered",e.map(t=>t.self))),e}getAll(){return Et(this.states).map(t=>this.states[t].self)}get(t,n){if(0===arguments.length)return Et(this.states).map(t=>this.states[t].self);const e=this.matcher.find(t,n);return e&&e.self||null}decorator(t,n){return this.builder.builder(t,n)}}const rh=t=>t.getTokens().filter(_).map(n=>{const e=t.getResolvable(n);return[n,"NOWAIT"===t.getPolicy(e).async?e.promise:e.data]}).reduce(uc,{});function sh(t){const n=t.match(/^\s*({[^}]*})\s*$/);n&&(t=`(${n[1]})`);const e=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!e||4!==e.length)throw new Error(`Invalid state ref '${t}'`);return{state:e[1]||null,paramExpr:e[3]||null}}function oh(t){const n=tn(t,"$ngView"),e=dc("$cfg.path")(n);return e?hc(e).state.name:void 0}function ch(t,n,e){const i=e.ngState||t.current.name,r=Object.assign(function(t,n){return{relative:oh(t)||n.$current,inherit:!0,source:"sref"}}(n,t),e.ngStateOpts||{}),s=t.href(i,e.ngStateParams,r);return{ngState:i,ngStateParams:e.ngStateParams,ngStateOpts:r,href:s}}function uh(t){const n="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),e="FORM"===t.nodeName;return{attr:e?"action":n?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!e}}function hh(t,n,e,i,r){return function(s){const o=s.which||s.button,c=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.getAttribute("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=setTimeout(function(){t.getAttribute("disabled")||n.go(c.ngState,c.ngStateParams,c.ngStateOpts).then(()=>{r.$emit("$updateBrowser")})});s.preventDefault();let o=e.isAnchor&&!c.href?1:0;s.preventDefault=function(){o--<=0&&clearTimeout(i)}}}}function ah(t,n,e,i){let r=i?i.events:void 0;k(r)||(r=["click"]);for(const n of r)t.addEventListener(n,e);n.$on("$destroy",function(){for(const n of r)t.removeEventListener(n,e)})}function lh(t,n,e){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,r,s,o)=>{const c=uh(r),u=o[1]||o[0];let h=null;const a={},l=()=>ch(i,r,a),f=sh(s.ngSref);function d(){a.ngStateParams=Object.assign({},f.paramExpr&&t.$eval(f.paramExpr));const n=l();h&&h(),u&&(h=u.Cs(n.ngState,n.ngStateParams)),O(n.href)||s.$set(c.attr,n.href)}a.ngState=f.state,a.ngStateOpts=s.ngSrefOpts?t.$eval(s.ngSrefOpts):{},f.paramExpr&&(t.$watch(f.paramExpr,function(t){a.ngStateParams=Object.assign({},t),d()},!0),a.ngStateParams=Object.assign({},t.$eval(f.paramExpr))),d(),t.$on("$destroy",n.onStatesChanged(d)),t.$on("$destroy",e.onSuccess({},d)),c.clickable&&ah(r,t,hh(r,i,c,l,t),a.ngStateOpts)}}}function fh(t,n,e){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link(i,r,s,o){const c=uh(r),u=o[1]||o[0];let h=null;const a={},l=()=>ch(t,r,a),f=["ngState","ngStateParams","ngStateOpts"],d=f.reduce((t,n)=>(t[n]=()=>{},t),{});function m(){const t=l();h&&h(),u&&(h=u.Cs(t.ngState,t.ngStateParams)),O(t.href)||s.$set(c.attr,t.href)}if(f.forEach(t=>{a[t]=s[t]?i.$eval(s[t]):null,s.$observe(t,n=>{d[t](),d[t]=i.$watch(n,n=>{a[t]=n,m()})})}),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",e.onSuccess({},m)),!c.clickable)return;const p=hh(r,t,c,l,i);ah(r,i,p,a.ngStateOpts)}}}function dh(t,n,e,i,r){return{restrict:"A",controller(s,o,c){let u,h=[];const a=e(c.ngSrefActiveEq||"",!1)(s);try{u=s.$eval(c.ngSrefActive)}catch{}function l(t){t.promise.then(p,()=>{})}function f(){d(u)}function d(t){S(t)&&(h=[],St(t).forEach(([t,n])=>{const e=function(t,n){const e=sh(t);m(e.state,e.paramExpr&&s.$eval(e.paramExpr),n)};_(n)?e(n,t):k(n)&&n.forEach(n=>{e(n,t)})}))}function m(n,e,i){const r={state:t.get(n,oh(o))||{name:n},params:e,activeClass:i};return h.push(r),function(){Zo(h,r)}}function p(){const n=t=>t.split(/\s/).filter(Boolean),e=t=>t.map(t=>t.activeClass).map(n).reduce(ic,[]),i=e(h).concat(n(a)).reduce(sc,[]),r=e(h.filter(n=>t.includes(n.state.name,n.params))),s=h.filter(n=>t.is(n.state.name,n.params)).length?n(a):[],c=r.concat(s).reduce(sc,[]),u=i.filter(t=>!c.includes(t));c.forEach(t=>o.classList.add(t)),u.forEach(t=>o.classList.remove(t))}u=u||e(c.ngSrefActive||"",!1)(s),d(u),this.Cs=function(t,n){if(S(u)&&h.length>0)return;const e=m(t,n,u);return p(),e},s.$on("$destroy",function(){const t=i.onStatesChanged(f),n=r.onStart({},l),e=s.$on("$stateChangeSuccess",p);return function(){t(),n(),e()}}()),n.transition&&l(n.transition),p()}}}function mh(t,n,e,i){const r={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},s={count:0,terminal:!0,priority:400,transclude:"element",compile:(o,c,u)=>function(o,c,h){const a=h.onload||"",l=h.autoscroll,f={enter(t,e,i){bt(t)?n.enter(t,null,e).then(i):(e.after(t),i())},leave(t,e){bt(t)?n.leave(t).then(e):(t.parentElement.removeChild(t),e())}},d=tn(c,"$ngView")||r,m=i(h.ngView||h.name||"")(o)||"$default";let p,$,g,w;const v={id:s.count++,name:m,fqn:d.$ngView.fqn?`${d.$ngView.fqn}.${m}`:m,config:null,configUpdated:function(t){(!t||t instanceof Gc)&&w!==t&&(Ic.traceUIViewConfigUpdated(v,t&&t.viewDecl&&t.viewDecl.$context),w=t,k(t))},get creationContext(){const t=dc("$cfg.viewDecl.$context")(d),n=dc("$ngView.creationContext")(d);return t||n}};Ic.traceUIViewEvent("Linking",v),Zt(c,"$ngView",{$ngView:v}),k();const b=t.registerUIView(v);function k(t){const n=o.$new(),i=Promise.withResolvers(),r=Promise.withResolvers(),s={$cfg:t,$ngView:v},h={$animEnter:i.promise,$animLeave:r.promise,$$animLeave:r};n.$emit("$viewContentLoading",m),$=u(n,function(t){Zt(t,"$ngViewAnim",h),Zt(t,"$ngView",s),f.enter(t,c,function(){i.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(y(l)&&!l||l&&o.$eval(l))&&e(t)}),function(){if(p&&(Ic.traceUIViewEvent("Removing (previous) el",Gt(p,"$ngView")),p.remove(),p=null),g&&(Ic.traceUIViewEvent("Destroying scope",v),g.$destroy(),g=null),$){const t=Gt($,"$ngViewAnim");Ic.traceUIViewEvent("Animate out",t),f.leave($,function(){t.$$animLeave.resolve(),p=null}),p=$,$=null}}()}),g=n,g.$emit("$viewContentLoaded",t||w),g.$eval(a)}o.$on("$destroy",function(){Ic.traceUIViewEvent("Destroying/Unregistering",v),b()})}};return s}function ph(t,n,e){const i=dc("viewDecl.controllerAs"),r=dc("viewDecl.resolveAs");return{priority:-400,compile(s){const o=s.innerHTML;return Wt(s,!0),function(s,c){const u=Gt(c,"$ngView");if(!u)return c.innerHTML=o,void t(c.contentDocument||c.childNodes)(s);const h=u.$cfg||{viewDecl:{},getTemplate:()=>{}},a=h.path&&new zc(h.path);c.innerHTML=h.getTemplate(c,a)||o,Ic.traceUIViewFill(u.$ngView,c.innerHTML);const l=t(c.contentDocument||c.childNodes),{controller:f}=h,d=i(h),m=r(h),p=a&&rh(a);if(m&&(s.$target[m]=p),f){const t=n(f,Object.assign({},p,{$scope:s,$element:c}));d&&(s.$target[d]=t,s.$target[d][m]=p),Zt(c,"$ngControllerController",t),Array.from(c.children).forEach(n=>{Zt(n,"$ngControllerController",t)}),function(t,n,e,i){!R(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const r=hc(i.path).state.self,s={bind:n};if(R(n.uiOnParamsChanged)){const o=new zc(i.path).getResolvable("$transition$").data,c=t=>{if(t===o||-1!==t.exiting().indexOf(r))return;const e=t.params("to"),i=t.params("from"),s=t=>t.paramSchema,c=t.treeChanges("to").map(s).reduce(ic,[]),u=t.treeChanges("from").map(s).reduce(ic,[]),h=c.filter(t=>{const n=u.indexOf(t);return-1===n||!u[n].type.equals(e[t.id],i[t.id])});if(h.length){const i=h.map(t=>t.id),r=Yo(e,(t,n)=>-1!==i.indexOf(n));n.uiOnParamsChanged(r,t)}};e.$on("$destroy",t.onSuccess({},c,s))}if(R(n.uiCanExit)){const i=$h++,o="_uiCanExitIds",c=t=>!!t&&(t[o]&&!0===t[o][i]||c(t.redirectedFrom())),u=t=>{let e;const r=t[o]=t[o]||{};return c(t)||(e=Promise.resolve(n.uiCanExit(t)),e.then(t=>r[i]=!1!==t)),e},h={exiting:r.name};e.$on("$destroy",t.onBefore(h,u,s))}}(e,t,s,h)}l(s)}}}}lh.$inject=[jt.Y,jt.tt,jt.ct],fh.$inject=[jt.Y,jt.tt,jt.ct],dh.$inject=[jt.Y,jt.G,jt.V,jt.tt,jt.ct],mh.$inject=[jt.lt,jt.C,jt.H,jt.V],ph.$inject=[jt.T,jt.M,jt.ct];let $h=0;function gh(t){return{scope:!1,link:(n,e,i)=>{const r=i.ngChannel,s=e.childNodes.length>0,o=t.subscribe(r,t=>{s?S(t)&&n.$merge(t):e.innerHTML=_(t)?t:t.toString()});n.$on("$destroy",()=>o())}}}function wh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngSetter;if(!s)return void n.warn("ng-setter: expression null");const o=t(s).un;if(!o)return void n.warn("ng-setter: expression invalid");const c=t=>{o(e,t.trim())},u=new MutationObserver(t=>{let n=!1;for(const e of t)if("childList"===e.type||"characterData"===e.type){n=!0;break}n&&c(i.innerHTML)});u.observe(i,{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",()=>u.disconnect()),c(i.innerHTML)}}}gh.$inject=[jt.I],wh.$inject=[jt.B,jt.L];class vh{static $inject=At([jt.D,jt.o]);constructor(t,n){this.eventBus=new bh(t.handler),n.$get().$eventBus=this.eventBus}$get=()=>this.eventBus}class bh{constructor(t){this.js=Object.create(null),this.As=!1,this.$exceptionHandler=t}reset(){this.js=Object.create(null),this.As=!1}isDisposed(){return this.As}dispose(){this.As||(this.As=!0,this.js=Object.create(null))}subscribe(t,n,e=void 0){if(this.As)return()=>!1;let i=this.js[t];i||(this.js[t]=i=[]);const r={fn:n,context:e};return i.push(r),()=>this.unsubscribe(t,n,e)}subscribeOnce(t,n,e=void 0){if(this.As)return()=>!1;let i=!1;const r=this.subscribe(t,(...t)=>{i||(i=!0,r(),n.apply(e,t))});return r}unsubscribe(t,n,e=void 0){if(this.As)return!1;const i=this.js[t];if(!i||0===i.length)return!1;for(let t=0;t<i.length;t++){const r=i[t];if(r.fn===n&&r.context===e)return i.splice(t,1),!0}return!1}getCount(t){const n=this.js[t];return n?n.length:0}publish(t,...n){if(this.As)return!1;const e=this.js[t];if(!e||0===e.length)return!1;const i=e.slice();return queueMicrotask(()=>{for(const{fn:t,context:e}of i)try{t.apply(e,n)}catch(t){this.$exceptionHandler(t)}}),!0}}function yh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngInject;if(!s)return;const o=s.split(";").map(t=>t.trim()).filter(Boolean);for(const i of o)n.has(i)?e[i]=n.get(i):t.warn(`Injectable ${i} not found in $injector`)}}}function kh(){return{restrict:"A",link(t,n,e){const i=e.ngEl||n.id;t.$target[i]=n;const r=n.parentNode;if(!r)return;const s=new MutationObserver(e=>{for(const r of e)Array.from(r.removedNodes).forEach(e=>{e===n&&(delete t.$target[i],s.disconnect())})});s.observe(r,{childList:!0})}}}yh.$inject=[jt.L,jt.wt];class Eh{constructor(t,n={},e=console){this.Ts=t,this.gs={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},...n},this.L=e,this.Rs=0,this.Ms=!1,this.Ps=void 0,this.Is=null,this.connect()}connect(){this.Ms||(this.Is&&"function"==typeof this.Is.close&&this.Is.close(),this.Is=this.Ts(),this.Ds())}send(t){this.Is instanceof WebSocket?this.Is.send(JSON.stringify(t)):this.L.warn("Send is only supported on WebSocket connections")}close(){this.Ms=!0,clearTimeout(this.Ps),this.Is&&this.Is.close&&this.Is.close()}Ds(){const t=this.Is;t instanceof EventSource?(t.addEventListener("open",t=>this.Ns(t)),t.addEventListener("message",t=>this.qs(t.data,t)),t.addEventListener("error",t=>this.Us(t))):t instanceof WebSocket&&(t.onopen=t=>this.Ns(t),t.onmessage=t=>this.qs(t.data,t),t.onerror=t=>this.Us(t),t.onclose=()=>this.Vs())}Ns(t){this.Rs=0,this.gs.onOpen?.(t),this.Fs()}qs(t,n){try{t=this.gs.transformMessage?.(t)??t}catch{}this.gs.onMessage?.(t,n),this.Fs()}Us(t){this.gs.onError?.(t),this.Ls()}Vs(){this.Ls()}Ls(){this.Ms||(this.Rs<this.gs.maxRetries?(this.Rs++,this.gs.onReconnect?.(this.Rs),setTimeout(()=>this.connect(),this.gs.retryDelay)):this.L.warn("StreamConnection: Max retries reached"))}Fs(){this.gs.heartbeatTimeout&&(clearTimeout(this.Ps),this.Ps=setTimeout(()=>{this.L.warn("StreamConnection: heartbeat timeout, reconnecting..."),this.Hs(),this.Rs++,this.gs.onReconnect?.(this.Rs),this.connect()},this.gs.heartbeatTimeout))}Hs(){clearTimeout(this.Ps),this.Is?.close()}}class Sh{constructor(){this.defaults={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[jt.L,t=>(this.Bs=t,(t,n={})=>{const e={...this.defaults,...n},i=this.#d(t,e.params);return new Eh(()=>new EventSource(i,{withCredentials:!!e.withCredentials}),{...e,onMessage:(t,n)=>{e.onMessage?.(t,n)}},this.Bs)})];#d(t,n){if(!n)return t;const e=St(n).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&");return t+(t.includes("?")?"&":"?")+e}}function _h(){return{restrict:"A",link(t,n,e){const i=e.onEnter,r=e.onLeave,s=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting?i&&t.$eval(i):r&&t.$eval(r)})},{root:null,threshold:.1});s.observe(n);const o=n.parentNode;let c;o&&(c=new MutationObserver(t=>{for(const e of t)Array.from(e.removedNodes).forEach(t=>{t===n&&(s.disconnect(),c.disconnect())})}),c.observe(o,{childList:!0})),t.$on("$destroy",()=>{s.disconnect(),c&&c.disconnect()})}}}function xh(){return{async link(t,n,e){t.$target[e.as||"wasm"]=(await Ct(e.src)).exports}}}function Oh(){return{scope:!1,async link(t,n,e){t.$scopename=e.ngScope}}}class Ch{constructor(){this.defaults={}}$get=()=>new jh(this.defaults)}class jh{constructor(t){this.zs=Object.freeze({...t})}get(t){return In(t,"key"),Rh()[t]||null}getObject(t){In(t,"key");const n=this.get(t);return n?JSON.parse(n):null}getAll(){return Rh()}put(t,n,e={}){In(t,"key"),In(n,"value");const i=encodeURIComponent(t),r=encodeURIComponent(n);document.cookie=`${i}=${r}${function(t={}){const n=[];if(y(t.path)){if(!_(t.path))throw new TypeError(`${Tn}:path ${t.path}`);n.push(`path=${t.path}`)}if(y(t.domain)){if(!_(t.domain))throw new TypeError(`${Tn}:domain ${t.domain}`);n.push(`domain=${t.domain}`)}if(!O(t.expires)){let e;if(t.expires instanceof Date)e=t.expires;else{if(!j(t.expires)&&!_(t.expires))throw new TypeError(`${Tn}:expires ${String(t.expires)}`);e=new Date(t.expires)}if(isNaN(e.getTime()))throw new TypeError(`${Tn}:expires ${String(t.expires)}`);n.push(`expires=${e.toUTCString()}`)}if(t.secure&&n.push("secure"),y(t.samesite)){if(!_(t.samesite))throw new TypeError(`${Tn}:samesite ${t.samesite}`);const e=t.samesite.toLowerCase();if(!["lax","strict","none"].includes(e))throw new TypeError(`${Tn}:samesite ${t.samesite}`);n.push(`samesite=${e}`)}return n.length?`;${n.join(";")}`:""}({...this.zs,...e})}`}putObject(t,n,e){In(t,"key"),Pn(n,"value");const i=JSON.stringify(n);this.put(t,i,e)}remove(t,n={}){In(t,"key"),this.put(t,"",{...this.zs,...n,expires:new Date(0)})}}let Ah="",Th=Object.create(null);function Rh(){const t=document.cookie;if(t===Ah)return Th;Ah=t;const n=Object.create(null);if(!t)return Th=n,n;const e=t.split("; ");for(const t of e){const e=t.indexOf("=");if(-1===e)continue;const i=decodeURIComponent(t.substring(0,e)),r=decodeURIComponent(t.substring(e+1));n[i]=r}return Th=n,n}function Mh(t,n){const e=encodeURIComponent(String(t));return n?e.replace(/(%3A|%2F|%3F|%23|%5B|%5D|%40|%21|%24|%26|%27|%28|%29|%2A|%2B|%2C|%3B|%3D)/gi,t=>decodeURIComponent(t)):e}class Ph{static $nonscope=!0;constructor(t,n,e,i={}){at(_(n)&&n.length>0,"baseUrl required"),this.Ws=t,this.Js=n,this.Zs=e,this.vn=i}buildUrl(t,n){return function(t,n={}){if("string"!=typeof t)throw new TypeError("template must be a string");return t.replace(/\{([^}]+)\}/g,(t,e)=>function(t,n){const e=/^[+#./;?&]/.test(t)?t[0]:"",i=e?t.slice(1):t,r={"":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!1},"+":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!0},"#":{sep:",",prefix:"#",named:!1,ifEmpty:"",allowReserved:!0},".":{sep:".",prefix:".",named:!1,ifEmpty:"",allowReserved:!1},"/":{sep:"/",prefix:"/",named:!1,ifEmpty:"",allowReserved:!1},";":{sep:";",prefix:";",named:!0,ifEmpty:"",allowReserved:!1},"?":{sep:"&",prefix:"?",named:!0,ifEmpty:"=",allowReserved:!1},"&":{sep:"&",prefix:"&",named:!0,ifEmpty:"=",allowReserved:!1}}[e];if(!r)throw new Error(`Unsupported operator: ${e}`);const s=i.split(",").map(t=>t.trim()).filter(Boolean),o=[];for(const t of s){const e=/^([A-Za-z0-9_.]+)(\*|(?::(\d+)))?$/.exec(t);if(!e)throw new Error(`Invalid varspec: ${t}`);const i=e[1],s="*"===e[2],c=e[3]?parseInt(e[3],10):void 0,u=n[i];if(null==u)continue;if(k(u)){if(0===u.length){r.named&&("="===r.ifEmpty?o.push(`${Mh(i,r.allowReserved)}${r.ifEmpty}`):o.push(Mh(i,r.allowReserved)));continue}if(s)for(const t of u)null!=t&&(r.named?o.push(`${Mh(i,r.allowReserved)}=${Mh(t,r.allowReserved)}`):o.push(Mh(t,r.allowReserved)));else{const t=u.filter(t=>null!=t).map(t=>Mh(t,r.allowReserved)).join(",");r.named?""===t?o.push(Mh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${Mh(i,r.allowReserved)}=${t}`):o.push(t)}continue}if("object"==typeof u){const t=Object.keys(u);if(0===t.length){r.named&&o.push(Mh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:""));continue}if(s)for(const n of t){const t=u[n];null!=t&&(r.named,o.push(`${Mh(n,r.allowReserved)}=${Mh(t,r.allowReserved)}`))}else{const n=t.map(t=>`${Mh(t,r.allowReserved)},${Mh(u[t],r.allowReserved)}`).join(",");r.named?""===n?o.push(Mh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${Mh(i,r.allowReserved)}=${n}`):o.push(n)}continue}let h=String(u);"number"==typeof c&&(h=h.substring(0,c)),""!==h?r.named?o.push(`${Mh(i,r.allowReserved)}=${Mh(h,r.allowReserved)}`):o.push(Mh(h,r.allowReserved)):r.named?"="===r.ifEmpty?o.push(`${Mh(i,r.allowReserved)}${r.ifEmpty}`):o.push(Mh(i,r.allowReserved)):o.push(Mh(h,r.allowReserved))}return 0===o.length?"":r.prefix+o.join(r.sep)}(e,n))}(t,n||{})}#m(t){return t&&this.Zs?new this.Zs(t):t}async list(t={}){const n=this.buildUrl(this.Js,t),e=await this.#p("get",n,null,t);return k(e.data)?e.data.map(t=>this.#m(t)):[]}async read(t,n={}){at(!O(t),`${Tn}:id ${t}`);const e=this.buildUrl(`${this.Js}/${t}`,n),i=await this.#p("get",e,null,n);return this.#m(i.data)}async create(t){at(!O(t),`${Tn}:item ${t}`);const n=await this.#p("post",this.Js,t);return this.#m(n.data)}async update(t,n){at(!O(t),`${Tn}:id ${t}`);const e=`${this.Js}/${t}`;try{const t=await this.#p("put",e,n);return this.#m(t.data)}catch{return null}}async delete(t){at(!O(t),`${Tn}:id ${t}`);const n=`${this.Js}/${t}`;try{return await this.#p("delete",n),!0}catch{return!1}}async#p(t,n,e=null,i={}){return this.Ws({method:t,url:n,data:e,params:i,...this.vn})}}class Ih{constructor(){this.Gs=[]}rest(t,n,e,i={}){this.Gs.push({name:t,url:n,entityClass:e,options:i})}$get=[jt.q,t=>{const n=new Map,e=(n,e,i={})=>new Ph(t,n,e,i);for(const t of this.Gs){const i=e(t.url,t.entityClass,t.options);n.set(t.name,i)}return e}]}function Dh(){return{scope:!1,link:(t,n,e)=>{const i=e.ngListener||n.id,r=n.childNodes.length,s=e=>{const i=e.detail;r?S(i)&&t.$merge(i):_(i)&&(n.innerHTML=i)};n.addEventListener(i,s),t.$on("$destroy",()=>n.removeEventListener(i,s))}}}class Nh{constructor(){this.defaults={protocols:[],autoReconnect:!0,reconnectInterval:1e3,maxRetries:1/0,heartbeatInterval:0,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[jt.L,t=>(this.Bs=t,(t,n=[],e={})=>{const i={...this.defaults,...e};return i.protocols=n.length?n:i.protocols,new Eh(()=>new WebSocket(t,i.protocols),{...i,onMessage:(t,n)=>{i.onMessage?.(t,n)},onOpen:t=>{i.onOpen?.(t)},onClose:t=>{i.onClose?.(t)},onError:t=>{i.onError?.(t)}},this.Bs)})]}const qh=pt("ng"),Uh=pt("$injector"),Vh="strict-di",Fh={};class Lh extends EventTarget{constructor(t=!1){super(),this.Ks=t,this.Xs=[],this.$eventBus,this.$injector,this.version="0.17.0",this.getController=Qt,this.getInjector=cn,this.getScope=Kt,this.errorHandlingConfig=mt,this.$t={},Object.values(jt).forEach(t=>{this.$t[t]=t}),t||(window.angular=this),function(t){t.module("ng",[],[jt.gt,n=>{n.provider({$$sanitizeUri:qs}),n.value(jt.o,t),n.value(jt.ft,window),n.value(jt.P,document),n.provider(jt.T,Fe).directive({input:ki,textarea:ki,form:Ze,script:xi,select:Ci,option:ji,ngBind:Ai,ngBindHtml:Ri,ngBindTemplate:Ti,ngChannel:gh,ngClass:Ni,ngClassEven:Ui,ngClassOdd:qi,ngCloak:Vi,ngController:Fi,ngDelete:ce,ngDisabled:to,ngEl:kh,ngForm:Ge,ngGet:oe,ngHide:zi,ngIf:Wi,ngInclude:Ji,ngInject:yh,ngInit:Gi,ngListener:Dh,ngMessages:Ls,ngMessage:Ws,ngMessageExp:Js,ngMessagesInclude:zs,ngMessageDefault:Zs,ngNonBindable:Ki,ngPost:ue,ngPut:he,ngRef:Yi,ngRepeat:er,ngSetter:wh,ngShow:Bi,ngStyle:ir,ngSse:ae,ngSwitch:rr,ngSwitchWhen:sr,ngSwitchDefault:or,ngOptions:lr,ngTransclude:dr,ngModel:si,pattern:gr,ngPattern:gr,required:$r,ngRequired:$r,ngMinlength:vr,minlength:vr,ngMaxlength:wr,maxlength:wr,ngValue:_i,ngModelOptions:ni,ngViewport:_h,ngWasm:xh,ngWorker:fe,ngScope:Oh}).directive({input:Ei,ngAnimateSwap:Bo,ngAnimateChildren:zo,ngChecked:so,ngClick:io,ngDblclick:ao,ngInclude:Zi,ngHide:co,ngShow:no,ngMessages:eo,ngModel:ho,ngReadonly:uo,ngRequired:ro,ngValue:oo,ngSref:lh,ngSrefActive:dh,ngSrefActiveEq:dh,ngState:fh,ngView:mh}).directive({ngView:ph}).directive(pr).directive(_e),n.provider({$aria:Qs,$anchorScroll:kr,$animate:Ur,$$animation:No,$animateCss:jo,$$animateCssDriver:Vo,$$animateJs:Po,$$animateJsDriver:Ho,$$animateQueue:Mo,$controller:ve,$cookie:Ch,$exceptionHandler:Fr,$filter:Xr,$interpolate:ts,$http:re,$httpParamSerializer:Yn,$location:us,$log:ds,$parse:Os,$rest:Ih,$rootScope:Rs,$router:Ec,$sce:Se,$sceDelegate:Ee,$sse:Sh,$templateCache:Vr,$templateRequest:Ns,$urlConfig:bc,$view:Kc,$transitions:xu,$state:ju,$viewScroll:Au,$templateFactory:Tu,$url:zu,$stateRegistry:ih,$eventBus:vh,$websocket:Nh})}]).factory("$stateParams",[jt.G,t=>t.params]).value("$trace",Ic)}(this)}module(t,n,e){return K(t,"module"),n&&kt(Fh,t)&&(Fh[t]=null),function(t,n,e){return t[n]||(t[n]=e())}(Fh,t,()=>{if(!n)throw Uh("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new me(t,n,e)})}dispatchEvent(t){const n=this.$injector.get(jt.B),e=t.type,i=this.$injector.has(e)?this.$injector.get(e):this.getScopeByName(e);return!!i&&(n(t.detail)(i),!0)}bootstrap(t,n,e){if(e=e||{strictDi:!1},(t instanceof Element||t instanceof Document)&&cn(t))throw qh("btstrpd","App already bootstrapped");k(n)&&(this.Xs=n),this.Xs.unshift(["$provide",n=>{n.value("$rootElement",t)}]),this.Xs.unshift("ng");const i=qn(this.Xs,e.strictDi);return i.invoke([jt.J,jt.Z,jt.T,jt.wt,(t,n,e,i)=>{if(this.$rootScope=t,this.$injector=i,Zt(n,"$injector",i),e(n)(t),!kt(i,"strictDi"))try{i.invoke(()=>{})}catch(t){const n=t instanceof Error?t.toString():String(t);i.strictDi=!!/strict mode/.exec(n)}i.get(jt.tt).getAll().map(t=>t.$$state().resolvables).reduce(ic,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=yn(t.resolveFn,i.strictDi))}]),i}injector(t,n){return this.$injector=qn(t,n),this.$injector}init(t){let n,e;const i={};ut.forEach(i=>{const r=`${i}app`;let s;t.hasAttribute&&t.hasAttribute(r)&&(n=t,e=t.getAttribute(r)),!n&&(s=t.querySelector(`[${r.replace(":","\\:")}]`))&&(n=s,e=s.getAttribute(r))}),n&&(i.strictDi=n.hasAttribute(Vh)||n.hasAttribute(`data-${Vh}`),this.bootstrap(n,e?[e]:[],i))}getScopeByName(t){In(t,"name");const n=this.$injector.get("$rootScope").$searchByName(t);if(n)return n.$proxy}}const Hh=new Lh;document.addEventListener("DOMContentLoaded",()=>Hh.init(document),{once:!0}),t.angular=Hh});
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const n="ng-valid",e="ng-invalid",i="ng-pristine",r="ng-dirty",s="ng-untouched",o="ng-touched",c="ng-empty",u="ng-not-empty",h=/^((?:x|data)[-])/i,a=/[-]+(.)/g,l={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},f=Symbol("isProxy");function d(t){return!(!t||!t[f])}function p(t){return d(t)?t.$target:t}const m=mt("ng");let $=0;function g(){return $+=1,$}function w(t){return S(t)?t.toLowerCase():t}function v(t){if(O(t)||P(t))return!1;if(k(t)||t instanceof Array||S(t))return!0;const n=t.length;return j(n)&&(n>=0&&n-1 in t||"function"==typeof t.item)}function b(t){return void 0===t}function y(t){return void 0!==t}function k(t){return Array.isArray(t)}function E(t,n){return t instanceof n}function _(t){return null!==t&&"object"==typeof t}function S(t){return"string"==typeof t}function x(t){return null===t}function O(t){return null==t}function C(t){return!O(t)}function j(t){return"number"==typeof t}function A(t){return"[object Date]"===toString.call(t)}function T(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function R(t){return"function"==typeof t}function M(t){return"[object RegExp]"===toString.call(t)}function P(t){return E(t,Window)}function I(t){return t&&t.$watch}function D(t){return"boolean"==typeof t}function N(t){return t&&R(t.then)}function q(t){return S(t)?t.trim():t}function U(t,n){const e=n;return t.replace(/[A-Z]/g,(t,n)=>(n?e:"")+t.toLowerCase())}function V(t,n,e=!1){const i=t.i;for(let i=0,r=n.length;i<r;++i){const r=n[i];if(!_(r)&&!R(r))continue;const s=Et(r);for(let n=0,i=s.length;n<i;n++){const i=s[n],o=r[i];e&&_(o)?A(o)?t[i]=new Date(o.valueOf()):M(o)?t[i]=new RegExp(o):o.nodeName?t[i]=o.cloneNode(!0):"__proto__"!==i&&(_(t[i])||(t[i]=k(o)?[]:{}),V(t[i],[o],!0)):t[i]=o}}var r,s;return r=t,(s=i)?r.i=s:delete r.i,t}function F(t,...n){return V(t,n,!1)}function L(t){return Number.isNaN(t)}function H(t,n){return F(Object.create(t),n)}function B(t){return R(t.toString)&&t.toString!==toString}function z(t){return w(t.nodeName)}function W(t,n){return-1!==Array.prototype.indexOf.call(t,n)}function J(t,n){const e=t.indexOf(n);return e>=0&&t.splice(e,1),e}function Z(t,n){return t===n||Number.isNaN(t)&&Number.isNaN(n)}function G(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;if(k(t)){if(!k(n))return!1;const{length:e}=t;if(e!==n.length)return!1;for(let i=0;i<e;i++)if(!G(t[i],n[i]))return!1;return!0}if(A(t))return!!A(n)&&Z(t.getTime(),n.getTime());if(M(t))return!!M(n)&&t.toString()===n.toString();if(I(t)||I(n)||P(t)||P(n)||k(n)||A(n)||M(n))return!1;const i=Object.create(null);for(const e in t)if("$"!==e.charAt(0)&&!R(t[e])){if(!G(t[e],n[e]))return!1;i[e]=!0}for(const t in n)if(!(t in i)&&"$"!==t.charAt(0)&&y(n[t])&&!R(n[t]))return!1;return!0}function K(t,n){if("hasOwnProperty"===t)throw m("badname","hasOwnProperty is not a valid {0} name",n)}function X(t){if(x(t)||b(t))return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!B(t)||k(t)||A(t)?et(t):t.toString()}return t}function Y(t,n,e){return t.concat(Array.prototype.slice.call(n,e))}function Q(t,n){return Array.prototype.slice.call(t,n)}function tt(t,n){const e=arguments.length>2?Q(arguments,2):[];return!R(n)||n instanceof RegExp?n:e.length?function(){return arguments.length?n.apply(t,Y(e,arguments,0)):n.apply(t,e)}:function(){return arguments.length?n.apply(t,arguments):n.call(t)}}function nt(t,n){let e=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?e=void 0:P(n)?e="$WINDOW":n&&window.document===n?e="$DOCUMENT":I(n)&&(e="$SCOPE"),e}function et(t,n){if(!b(t))return j(n)||(n=n?2:void 0),JSON.stringify(t,nt,n)}function it(t){const n={};return(t||"").split("&").forEach(e=>{let i,r,s;e&&(r=t=e.replace(/\+/g,"%20"),i=e.indexOf("="),-1!==i&&(r=e.substring(0,i),s=e.substring(i+1)),r=st(r),y(r)&&(s=!y(s)||st(s),kt(n,r)?k(n[r])?n[r].push(s):n[r]=[n[r],s]:n[r]=s))}),n}function rt(t){const n=[];return t&&_t(t).forEach(([t,e])=>{k(e)?e.forEach(e=>{n.push(ct(t,!0)+(!0===e?"":`=${ct(e,!0)}`))}):n.push(ct(t,!0)+(!0===e?"":`=${ct(e,!0)}`))}),n.length?n.join("&"):""}function st(t){try{return decodeURIComponent(t)}catch{return}}function ot(t){return ct(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ct(t,n){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,n?"%20":"+")}const ut=["ng-","data-ng-"];function ht(t,n){if(k(t)){const e=n||[];return e.push(...t),e}if(_(t)){const e=n||{};for(const n in t)n.startsWith("$$")||(e[n]=t[n]);return e}return t}function at(t,n="Assertion failed"){if(!t)throw new Error(n)}function lt(t,n,e){if(!t)throw m("areq","Argument '{0}' is {1}",n||"?",e||"required");return t}function ft(t,n,e){return e&&k(t)&&(t=t[t.length-1]),lt(R(t),n,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const dt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function pt(t){var n;return _(t)&&(y(t.objectMaxDepth)&&(dt.objectMaxDepth=j(n=t.objectMaxDepth)&&n>0?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&D(t.urlErrorParamsEnabled)&&(dt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),dt}function mt(t){return function(...n){const e=n[0],i=n[1];let r=`[${t?`${t}:`:""}${e}] `;const s=Q(n,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(b(t))return"undefined";if("string"!=typeof t){const n=[],e=structuredClone(d(t)?t.$target:t);return JSON.stringify(e,(t,e)=>{const i=nt(t,e);if(_(i)){if(n.indexOf(i)>=0)return"...";n.push(i)}return i})}return t}(t));return r+=i.replace(/\{\d+\}/g,t=>{const n=+t.slice(1,-1);return n<s.length?s[n]:t}),new Error(r)}}function $t(t){const n=t&&t.i;if(n)return"function"==typeof n?t.i():n;const e=typeof t;return"function"===e||"object"===e&&null!==t?(t.i=`${e}:${g()}`,t.i):"undefined"===e?`${e}:${g()}`:`${e}:${t}`}function gt(t,n){return t||n?t?n?(k(t)&&(t=wt(t)),k(n)&&(n=wt(n)),`${t.trim()} ${n.trim()}`.trim()):k(t)?t.join(" ").trim():t:k(n)?n.join(" ").trim():n:""}function wt(t){const n=[];for(const e of t)if(e){const t=e.trim();t&&n.push(t)}return n.join(" ")}function vt(t){return t.replace(h,"").replace(a,(t,n,e)=>e?n.toUpperCase():n)}function bt(t){return function(t,n){if(1!==t.nodeType)return!1;const e=t;return"true"===e.dataset[n]||"true"===e.getAttribute(n)}(t,"animate")}function yt(t){return!t||!Et(t).length}function kt(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function Et(t){return Object.keys(t)}function _t(t){return Object.entries(t)}function St(t){let n=!1;return(...e)=>{if(n)return t(...e);n=!0}}function xt(t=0){return new Promise(n=>setTimeout(n,t))}function Ot(t,n){return t.slice(0,n.length)===n}async function Ct(t,n={}){const e=await fetch(t);if(!e.ok)throw new Error("fetch failed");try{const{instance:t,module:i}=await WebAssembly.instantiateStreaming(e.clone(),n);return{instance:t,exports:t.exports,module:i}}catch{}const i=await e.arrayBuffer(),{instance:r,module:s}=await WebAssembly.instantiate(i,n);return{instance:r,exports:r.exports,module:s}}const jt={o:"$angular",u:"$attrs",h:"$scope",l:"$element",p:"$$animateCssDriver",m:"$$animateJs",$:"$$animateJsDriver",k:"$$animateQueue",_:"$$animation",S:"$$taskTrackerFactory",O:"$anchorScroll",C:"$animate",j:"$animateCss",A:"$aria",T:"$compile",R:"$cookie",M:"$controller",P:"$document",I:"$eventBus",D:"$exceptionHandler",N:"$filter",q:"$http",U:"$httpParamSerializer",V:"$interpolate",F:"$location",L:"$log",H:"$parse",B:"$rest",W:"$rootScope",J:"$rootElement",Z:"$router",G:"$sce",K:"$sceDelegate",X:"$state",Y:"$stateRegistry",tt:"$sse",nt:"$$sanitizeUri",et:"$$sanitizeUriProvider",it:"$templateCache",rt:"$templateFactory",st:"$templateRequest",ot:"$transitions",ct:"$urlConfig",ut:"$url",ht:"$view",lt:"$window",ft:"$websocket",dt:"$provide",gt:"$injector",wt:"$compileProvider",vt:"$animateProvider",bt:"$filterProvider",yt:"$controllerProvider"};function At(t){return t.map(t=>`${t}Provider`)}let Tt=1;const Rt="ng",Mt=new Map,Pt=jt.h,It=/-([a-z])/g,Dt=/_([a-z])/g,Nt=["multiple","selected","checked","disabled","readonly","required","open"],qt=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function Ut(t,n){return n.toUpperCase()}function Vt(t){return t.replace(It,Ut)}function Ft(t){return t.replace(Dt,Ut)}function Lt(t,n){const e=t[Rt],i=e&&Mt.get(e);i&&(n?delete i.data[n]:i.data={},function(t){const n=t[Rt],e=n?Mt.get(n)?.data:void 0;e&&Et(e).length||(Mt.delete(n),t[Rt]=void 0)}(t))}function Ht(t,n=!1){let e=t[Rt],i=e&&Mt.get(e);return n&&!i&&(t[Rt]=e=++Tt,i={data:{}},Mt.set(e,i)),i}function Bt(t){return!/<|&#?\w+;/.test(t)}function zt(t){switch(t.nodeType){case 1:case 9:case 8:case void 0:return!0;default:return!1}}function Wt(t,n){!t||t instanceof Comment||(k(t)?t.forEach(t=>Wt(t,n)):(!n&&zt(t)&&on([t]),zt(t)&&on(t.querySelectorAll("*"))),delete t[Rt],t.innerHTML="")}function Jt(t,n,e){if(!zt(t))return;const i=y(e),r=!i&&n&&!_(n),s=!n,o=Ht(t,!r),c=o&&o.data;if(c)if(i&&"string"==typeof n)c[Vt(n)]=e;else{if(s)return c;if(r&&"string"==typeof n)return c[Vt(n)];if(n&&"object"==typeof n)for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(c[Vt(t)]=n[t])}}function Zt(t,n,e){if(zt(t)){const i=Ht(t,!0);(i&&i.data)[Vt(n)]=e}else t.parentElement&&Zt(t.parentElement,n,e)}function Gt(t,n){if(zt(t)){const e=Ht(t,!1),i=e&&e.data;if(!n)return;return i&&i[Vt(n)]}}function Kt(t){return Gt(t,Pt)}function Xt(t,n){return Zt(t,Pt,n)}function Yt(t,n){return Zt(t,"$isolateScope",n)}function Qt(t,n){return tn(t,`$${n||"ngController"}Controller`)}function tn(t,n){let e;for(9===t.nodeType&&(t=t.documentElement);t;){if(e=Gt(t,n),y(e))return e;let i=t.parentNode;if(i||11!==t.nodeType||(i=t.host),!i)break;t=i}}function nn(t,n=!1){n||Wt(t);const e=t.parentNode;e&&e.removeChild(t)}function en(t){let n;if("string"==typeof t){const e=(new DOMParser).parseFromString(t,"text/html"),{firstChild:i}=e.body;if(!i)return"";n=i.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");n=t.cloneNode(!0)}for(;n.firstChild;)n.removeChild(n.firstChild);const e=document.createElement("div");e.appendChild(n);const i=e.innerHTML;try{if(3===n.nodeType)return i.toLowerCase();if(8===n.nodeType)return`\x3c!--${n.data.trim()}--\x3e`;{const t=i.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,n)=>`<${n.toLowerCase()}`)}}catch{return i.toLowerCase()}return i.toLowerCase()}function rn(t){let n=t[0];const e=t[t.length-1];let i;for(let r=1;n!==e;r++){const e=n.nextSibling;if(!e)break;n=e,(i||t[r]!==n)&&(i||(i=Array.prototype.slice.call(t,0,r)),i.push(n))}return i||t}function sn(t,n){const e=n.toLowerCase();return!(!Nt.includes(e)||!qt.includes(t.nodeName))&&e}function on(t){for(let n=0,e=t.length;n<e;n++)Lt(t[n])}function cn(t){return tn(t,jt.gt)}function un(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.firstChild}function hn(t){const n=document.createElement("template");return n.innerHTML=t.trim(),n.content.childNodes}function an(t){switch(Wt(t,!0),t.nodeType){case 1:case 9:case 11:t.replaceChildren()}}function ln(t,n,e){if(e){const t=pn(e);!t||t.parentNode||t.previousSibling||(e=null)}e?e.after(t):n.prepend(t)}function fn(t,n,e){const i=t.style.visibility,r=t.style.position,s=t.style.pointerEvents;Object.assign(t.style,{visibility:"hidden",position:"absolute",pointerEvents:"none"}),ln(t,n,e),requestAnimationFrame(()=>{t.style.visibility=i,t.style.position=r,t.style.pointerEvents=s})}function dn(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}function pn(t){if(!t||!k(t))return t;for(let n=0;n<t.length;n++){const e=t[n];if(1===e.nodeType)return e}}const mn=mt(jt.gt),$n=/^([^(]+?)=>/,gn=/^[^(]*\(\s*([^)]*)\)/m,wn=/^\s*(_?)(\S+?)\1\s*$/,vn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function bn(t){return Function.prototype.toString.call(t)}function yn(t,n,e){let i,r,s=[];if(R(t)){if(s=t.$inject,!s){if(s=[],t.length){if(n)throw mn("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",e);i=function(t){const n=bn(t).replace(vn,"");return n.match($n)||n.match(gn)}(t),i&&i[1].split(/,/).forEach(t=>{t.replace(wn,(t,n,e)=>(s.push(e),e))})}t.$inject=s}}else k(t)?(r=t.length-1,ft(t[r],"fn"),s=t.slice(0,r)):ft(t,"fn",!0);return s}const kn=mt(jt.gt),En="Provider",_n=!0;class Sn{constructor(t){this.kt={},this.strictDi=t,this.Et=[],this._t={}}get(t){if(kt(this.kt,t)){if(this.kt[t]===_n)throw kn("cdep","Circular dependency found: {0}",`${t} <- ${this.Et.join(" <- ")}`);return this.kt[t]}this.Et.unshift(t),this.kt[t]=_n;try{this.kt[t]=this.factory(t)}catch(n){throw delete this.kt[t],n}return this.kt[t]}St(t,n,e){const i=[],r=yn(t,this.strictDi,e);for(let t=0,{length:e}=r;t<e;t++){const e=r[t];if("string"!=typeof e)throw kn("itkn","Incorrect injection token! Expected service name as string, got {0}",e);i.push(n&&kt(n,e)?n[e]:this.get(e))}return i}invoke(t,n,e,i){"string"==typeof e&&(i=e,e=void 0);const r=this.St(t,e,i);return k(t)&&(t=t[t.length-1]),/^class\b/.test(bn(t))?(r.unshift(null),new(Function.prototype.bind.apply(t,r))):t.apply(n,r)}instantiate(t,n,e){const i=k(t)?t[t.length-1]:t,r=this.St(t,n,e);r.unshift(null);try{return new(Function.prototype.bind.apply(i,r))}catch(t){if("function"!=typeof(s=i)||s.prototype)throw t;return i(r)}var s}factory(t){}}class xn extends Sn{constructor(t,n){super(n),this.kt=t}factory(t){throw this.Et.push(t),kn("unpr","Unknown provider: {0}",this.Et.join(" <- "))}}class On extends Sn{loadNewModules=()=>{};constructor(t,n){super(n),this.xt=t,this._t=t._t}factory(t){const n=this.xt.get(t+En);return this.invoke(n.$get,n,void 0,t)}has(t){const n=kt(this.xt.kt,t+En),e=kt(this.kt,t);return n||e}}function Cn(t,n,e,i={}){const r=i.serialize||JSON.stringify,s=i.deserialize||JSON.parse,o=e.getItem(n);return o&&Object.assign(t,s(o)),new Proxy(t,{set:(t,i,s)=>(t[i]=s,e.setItem(n,r(t)),!0),deleteProperty(t,i){const s=delete t[i];return e.setItem(n,r(t)),s}})}function jn(t){if(k(t)&&t.length){const n=t.slice(0,-1),e=t.slice(-1);return!(n.filter(t=>!S(t)).length||e.filter(t=>!R(t)).length)}return R(t)}function An(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}const Tn="badarg",Rn=new Map([[C,"required"],[k,"notarray"],[jn,"notinjectable"],[y,"required"],[S,"notstring"]]);function Mn(t,n,e){if(t(n))return n;let i;try{i=JSON.stringify(n)}catch{i=String(n)}throw new TypeError(`badarg:${function(t){return Rn.get(t)??"fail"}(t)} ${e}=${i}`)}function Pn(t,n){return Mn(C,t,n)}function In(t,n){return Mn(S,t,n)}const Dn=mt(jt.gt),Nn="Provider";function qn(t,n=!1){at(k(t),"modules required");const e=new Map,i={$provide:{provider:Un(u),factory:Un(h),service:Un(function(t,n){return h(t,[jt.gt,t=>t.instantiate(n)])}),value:Un(function(t,n){return i[t+Nn]={$get:()=>n}}),constant:Un(function(t,n){K(t,"constant"),r.kt[t]=n,s.kt[t]=n}),store:function(t,n,e,i){return u(t,{$get:r=>{switch(e){case"session":return Cn(r.instantiate(n),t,sessionStorage);case"local":return Cn(r.instantiate(n),t,localStorage);case"cookie":{const e=r.instantiate(n),s=r.get(jt.R),o=i?.serialize??JSON.stringify,c=i?.deserialize??JSON.parse,u=i?.cookie??{};return Cn(e,t,{getItem(t){const n=s.get(t);return O(n)?null:n},setItem(t,n){s.put(t,n,u)},removeItem(t){s.remove(t,u)},serialize:o,deserialize:c})}case"custom":{const e=r.instantiate(n);let s,o=JSON.stringify,c=JSON.parse;return i?"function"==typeof i.getItem?s=i:_(i)&&(s=i.backend||localStorage,i.serialize&&(o=i.serialize),i.deserialize&&(c=i.deserialize)):s=localStorage,Cn(e,t,s,{serialize:o,deserialize:c})}}}})},decorator:function(t,n){const e=r.get(t+Nn),i=e.$get;e.$get=function(){const t=o.invoke(i,e);return o.invoke(n,null,{$delegate:t})}}}},r=i.$injector=new xn(i,n),s=new On(r,n);i.$injectorProvider={$get:()=>s};let o=s;const c=a(t);return o=s.get(jt.gt),c.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>a(t).forEach(t=>t&&o.invoke(t)),o;function u(t,n){let e;if(K(t,"service"),e=R(n)||k(n)?r.instantiate(n):n,!e.$get)throw Dn("pget","Provider '{0}' must define $get factory method.",t);return i[t+Nn]=e,e}function h(t,n){return u(t,{$get(){const e=o.invoke(n,this);if(b(e))throw Dn("undef","Provider '{0}' must return a value from $get factory method.",t);return e}})}function a(t){Mn(k,t,"modules");let n=[];return t.forEach(t=>{const i=Array.isArray(t)?t[t.length-1]:t;if(!e.get(i)){e.set(i,!0);try{if(S(t)){const e=window.angular.module(t);o._t[t]=e,n=n.concat(a(e.Ot)).concat(e.Ct),e.jt.concat(e.At).forEach(t=>{const n=r.get(t[0]);n[t[1]].apply(n,t[2])})}else R(t)||k(t)?n.push(r.invoke(t)):ft(t,"module")}catch(n){const e=k(t)?t[t.length-1]:t;throw Dn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,E(n,Error)?n.stack||n.message:String(n))}}}),n}}function Un(t){return function(n,e){return _(n)?void _t(n).forEach(([n,e])=>{t(n,e)}):t(n,e)}}const Vn=Fn(window.location.href);function Fn(t){if(!S(t))return t;const n=new URL(t,window.location.href),e=n.hostname.includes(":")?`[${n.hostname}]`:n.hostname;return{href:n.href,protocol:n.protocol,host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:e,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:`/${n.pathname}`}}function Ln(t,n){return t=Fn(t),n=Fn(n),t.protocol===n.protocol&&t.host===n.host}function Hn(t){return t.replace(/#$/,"")}const Bn="application/json",zn=200,Wn={"Content-Type":`${Bn};charset=utf-8`},Jn=/^\[|^\{(?!\{)/,Zn={"[":/]$/,"{":/}$/},Gn=/^\)]\}',?\n/,Kn=mt("$http");function Xn(t){return _(t)?A(t)?t.toISOString():et(t):t}function Yn(){this.$get=()=>t=>{if(!t)return"";const n=[];return Et(t).sort().forEach(e=>{const i=t[e];null===i||b(i)||R(i)||(k(i)?i.forEach(t=>{n.push(`${ct(e)}=${ct(Xn(t))}`)}):n.push(`${ct(e)}=${ct(Xn(i))}`))}),n.join("&")}}function Qn(t,n){if(S(t)){const i=t.replace(Gn,"").trim();if(i){const r=n("Content-Type"),s=r&&0===r.indexOf(Bn);if(s||function(t){const n=t.match(Jn);return n&&Zn[n[0]].test(t)}(i))try{t=S(e=i)?JSON.parse(e):e}catch(n){if(!s)return t;throw Kn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,n)}}}var e;return t}function te(t){const n=Object.create(null);let e;function i(t,e){t&&(n[t]=n[t]?`${n[t]}, ${e}`:e)}return S(t)?t.split("\n").forEach(t=>{e=t.indexOf(":"),i(t.substring(0,e).trim().toLowerCase(),q(t.substring(e+1)))}):_(t)&&_t(t).forEach(([t,n])=>{i(t.toLowerCase(),q(n))}),n}function ne(t){let n;return function(e){if(n||(n=te(t)),e){let t=n[e.toLowerCase()];return void 0===t&&(t=null),t}return n}}function ee(t,n,e,i){return R(i)?i(t,n,e):(k(i)&&i.forEach(i=>{t=i(t,n,e)}),t)}function ie(t){return t>=zn&&t<300}function re(){const t=this.defaults={transformResponse:[Qn],transformRequest:[function(t){return!_(t)||(n=t,"[object File]"===toString.call(n))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:et(t);var n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ht(Wn),put:ht(Wn),patch:ht(Wn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let n=!1;this.useApplyAsync=function(t){return y(t)?(n=!!t,this):n},this.interceptors=[],this.xsrfTrustedOrigins=[];const e=this;this.$get=[jt.gt,jt.G,jt.R,function(i,r,s){const o=new Map;t.paramSerializer=S(t.paramSerializer)?i.get(t.paramSerializer):t.paramSerializer;const c=[];e.interceptors.forEach(t=>{c.unshift(S(t)?i.get(t):i.invoke(t))});const u=function(t){const n=[Vn].concat(t.map(Fn));return function(t){const e=Fn(t);return n.some(Ln.bind(null,e))}}(e.xsrfTrustedOrigins);function h(e){if(!_(e))throw mt("$http")("badreq","Http request configuration must be an object. Received: {0}",e);if(!S(r.valueOf(e.url)))throw mt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",e.url);const a=F({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);var l;a.headers=function(n){let e=t.headers;const i=F({},n.headers);return e=F({},e.common,e[w(n.method)]),Et(e).forEach(t=>{const n=w(t);Et(i).some(t=>w(t)===n)||(i[t]=e[t])}),function(t,n){let e;const i={};return _t(t).forEach(([t,r])=>{R(r)?(e=r(n),O(e)||(i[t]=e)):i[t]=r}),i}(i,ht(n))}(e),a.method=S(l=a.method)?l.toUpperCase():l,a.paramSerializer=S(a.paramSerializer)?i.get(a.paramSerializer):a.paramSerializer;const f=[],d=[];let p=Promise.resolve(a);return c.forEach(t=>{(t.request||t.requestError)&&f.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),p=m(p,f),p=p.then(function(e){const{headers:i}=e,c=ee(e.data,ne(i),void 0,e.transformRequest);return b(c)&&Et(i).forEach(t=>{"content-type"===w(t)&&delete i[t]}),b(e.withCredentials)&&!b(t.withCredentials)&&(e.withCredentials=t.withCredentials),function(e,i){const{promise:c,resolve:a,reject:l}=Promise.withResolvers();let f,d;const p=e.headers;let{url:m}=e;if(S(m)||(m=r.valueOf(m)),m=function(t,n){return n.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+n),t}(m,e.paramSerializer(e.params)),h.pendingRequests.push(e),c.then(v,v),(e.cache||t.cache)&&!1!==e.cache&&"GET"===e.method&&(f=_(e.cache)?e.cache:_(t.cache)?t.cache:o),f&&(d=f.get(m),y(d)?N(d)?d.then(w,w):k(d)?g(d[1],d[0],ht(d[2]),d[3],d[4]):g(d,zn,{},"OK","complete"):f.set(m,c)),b(d)){const r=u(e.url)?s.getAll()[e.xsrfCookieName||t.xsrfCookieName]:void 0;r&&(p[e.xsrfHeaderName||t.xsrfHeaderName]=r),function(t,n,e,i,r,s,o,c,u,h){n=n||Hn(window.location.href);const a=new XMLHttpRequest;let l,f=!1;if(a.open(t,n,!0),r)for(const[t,n]of _t(r))y(n)&&a.setRequestHeader(t,n);if(a.onload=()=>{let t=a.status||0;const e=a.statusText||"";0===t&&(t=a.response?zn:"file:"===new URL(n).protocol?404:0),p(t,a.response,a.getAllResponseHeaders(),e,"complete")},a.onerror=()=>p(-1,null,null,"","error"),a.ontimeout=()=>p(-1,null,null,"","timeout"),a.onabort=()=>{p(-1,null,null,"",f?"timeout":"abort")},u)for(const[t,n]of _t(u))a.addEventListener(t,n);if(h)for(const[t,n]of _t(h))a.upload.addEventListener(t,n);if(o&&(a.withCredentials=!0),c)try{a.responseType=c}catch(t){if("json"!==c)throw t}function d(t){f="timeout"===t,a&&a.abort()}function p(t,n,e,r,s){y(l)&&clearTimeout(l),i(t,n,e,r,s)}a.send(b(e)?null:e),"number"==typeof s&&s>0?l=setTimeout(()=>d("timeout"),s):N(s)&&s.then(()=>{d("abort")})}(e.method,m,i,function(t,e,i,r,s){function o(){g(e,t,i,r,s)}f&&(ie(t)?f.set(m,[t,e,te(i),r,s]):f.delete(m)),n?setTimeout(o):o()},p,e.timeout,e.withCredentials,e.responseType,$(e.eventHandlers),$(e.uploadEventHandlers))}return c;function $(t){if(t){const e={};return _t(t).forEach(([t,i])=>{e[t]=function(t){function e(){i(t)}n?setTimeout(()=>e()):e()}}),e}return{}}function g(t,n,i,r,s){(ie(n=n>=-1?n:0)?a:l)({data:t,status:n,headers:ne(i),config:e,statusText:r,xhrStatus:s})}function w(t){g(t.data,t.status,ht(t.headers()),t.statusText,t.xhrStatus)}function v(){const t=h.pendingRequests.indexOf(e);-1!==t&&h.pendingRequests.splice(t,1)}}(e,c).then($,$)}),p=m(p,d),p;function m(t,n){for(let e=0,i=n.length;e<i;){const i=n[e++],r=n[e++];t=t.then(i,r)}return n.length=0,t}function $(t){const n=F({},t);return n.data=ee(t.data,t.headers,t.status,a.transformResponse),ie(t.status)?n:Promise.reject(n)}}return h.pendingRequests=[],["get","delete","head"].forEach(t=>{h[t]=function(n,e){return h(F({},e||{},{method:t,url:n}))}}),["post","put","patch"].forEach(t=>{h[t]=function(n,e,i){return h(F({},i||{},{method:t,url:n,data:e}))}}),h.defaults=t,h}]}function se(t,n){const e=n||`ng${t.charAt(0).toUpperCase()}${t.slice(1)}`,i=function(t,n){return function(e,i,r,s,o,c,u){function h(t){let n=null;if("form"===t.tagName.toLowerCase())n=t;else if("form"in t&&t.form)n=t.form;else if(t.hasAttribute("form")){const e=t.getAttribute("form");if(e){const t=document.getElementById(e);t&&"form"===t.tagName.toLowerCase()&&(n=t)}}if(!n){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(E(t,HTMLInputElement)||E(t,HTMLTextAreaElement)||E(t,HTMLSelectElement))){const n=t.name,{value:e}=t;return{[n]:e}}return{}}const e=new FormData(n),i={};return e.forEach((t,n)=>{i[n]=t}),i}return{restrict:"A",link(a,l,f){const d=f.trigger||le(l),p=l.tagName.toLowerCase();let m;y(f.latch)&&f.$observe("latch",St(()=>l.dispatchEvent(new Event(d))));let $,g=!1;y(f.interval)&&(l.dispatchEvent(new Event(d)),$=setInterval(()=>l.dispatchEvent(new Event(d)),parseInt(f.interval)||1e3)),l.addEventListener(d,async d=>{if(l.disabled)return;"form"===p&&d.preventDefault();const $=f.swap||"innerHTML",w=f[n];if(!w)return void r.warn(`${n}: no URL specified`);const v=t=>{y(f.loading)&&f.$set("loading",!1),y(f.loadingClass)&&f.$removeClass(f.loadingClass);const e=t.data;zn<=t.status&&t.status<=299?(y(f.success)&&s(f.success)(a,{$res:e}),y(f.stateSuccess)&&o.go(f.stateSuccess)):400<=t.status&&t.status<=599&&(y(f.error)&&s(f.error)(a,{$res:e}),y(f.stateError)&&o.go(f.stateError)),_(e)?f.target?a.$eval(`${f.target} = ${JSON.stringify(e)}`):a.$merge(e):S(e)&&function(t,e,s,o,c){let h=!1;o.animate&&(h=!0);let a=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;const n=i(t)(s);a=n instanceof DocumentFragment?Array.from(n.childNodes):[n]}const l=o.target,f=l?document.querySelector(l):c;if(f)switch(e){case"outerHTML":{const t=f.parentNode;if(!t)return;const n=document.createDocumentFragment();if(a.forEach(t=>n.appendChild(t)),!h){t.replaceChild(n,f);break}const e=document.createElement("span");e.style.display="none",t.insertBefore(e,f.nextSibling),u.leave(f).done(()=>{const i=Array.from(n.childNodes);for(const n of i)1===n.nodeType?u.enter(n,t,e):t.insertBefore(n,e);m=i,s.$flushQueue()}),s.$flushQueue();break}case"textContent":h?(u.leave(f).done(()=>{f.textContent=t,u.enter(f,f.parentNode),s.$flushQueue()}),s.$flushQueue()):f.textContent=t;break;case"beforebegin":{const t=f.parentNode;if(!t)break;a.forEach(n=>{h&&1===n.nodeType?u.enter(n,t,f):t.insertBefore(n,f)}),h&&s.$flushQueue();break}case"afterbegin":{const{firstChild:t}=f;[...a].reverse().forEach(n=>{h&&1===n.nodeType?u.enter(n,f,t):f.insertBefore(n,t)}),h&&s.$flushQueue();break}case"beforeend":a.forEach(t=>{h&&1===t.nodeType?u.enter(t,f,null):f.appendChild(t)}),h&&s.$flushQueue();break;case"afterend":{const t=f.parentNode;if(!t)break;const{nextSibling:n}=f;[...a].reverse().forEach(e=>{h&&1===e.nodeType?u.enter(e,t,n):t.insertBefore(e,n)}),h&&s.$flushQueue();break}case"delete":h?(u.leave(f).done(()=>{f.remove(),s.$flushQueue()}),s.$flushQueue()):f.remove();break;case"none":break;default:h?m&&3!==m.nodeType?(u.leave(m).done(()=>{m=a[0],u.enter(a[0],f),s.$flushQueue()}),s.$flushQueue()):(m=a[0],3===m.nodeType?f.replaceChildren(...a):(u.enter(a[0],f),s.$flushQueue())):f.replaceChildren(...a)}else r.warn(`${n}: target "${l}" not found`)}(e,$,a,f,l)};if(y(f.delay)&&await xt(0|parseInt(f.delay)),!g)if(y(f.throttle)&&(g=!0,f.$set("throttled",!0),setTimeout(()=>{f.$set("throttled",!1),g=!1},parseInt(f.throttle))),y(f.loading)&&f.$set("loading",!0),y(f.loadingClass)&&f.$addClass(f.loadingClass),"post"===t||"put"===t){let n;const i={};f.enctype?(i.headers={"Content-Type":f.enctype},n=rt(h(l))):n=h(l),e[t](w,n,i).then(v).catch(v)}else if("get"===t&&f.ngSse){const t=w,e={withCredentials:"true"===f.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{r.info(`${n}: SSE connection opened to ${t}`),y(f.loading)&&f.$set("loading",!1),y(f.loadingClass)&&f.$removeClass(f.loadingClass)},onMessage:t=>{v({status:200,data:t})},onError:t=>{r.error(`${n}: SSE error`,t),v({status:500,data:t})},onReconnect:t=>{r.info(`ngSse: reconnected ${t} time(s)`),f.onReconnect&&s(f.onReconnect)(a,{$count:t})}},i=c(t,e);a.$on("$destroy",()=>{r.info(`${n}: closing SSE connection`),i.close()})}else e[t](w).then(v).catch(v)}),$&&a.$on("$destroy",()=>clearInterval($)),"load"===d&&l.dispatchEvent(new Event("load"))}}}}(t,e);return i.$inject=[jt.q,jt.T,jt.L,jt.H,jt.X,jt.tt,jt.C],i}const oe=se("get"),ce=se("delete"),ue=se("post"),he=se("put"),ae=se("get","ngSse");function le(t){const n=t.tagName.toLowerCase();return["input","textarea","select"].includes(n)?"change":"form"===n?"submit":"click"}function fe(t,n,e){return{restrict:"A",link(i,r,s){const o=s.ngWorker;if(!o)return void n.warn("ngWorker: missing worker name");const c=s.trigger||le(r);let u,h=!1;y(s.latch)&&s.$observe("latch",St(()=>r.dispatchEvent(new Event(c)))),y(s.interval)&&(r.dispatchEvent(new Event(c)),u=setInterval(()=>r.dispatchEvent(new Event(c)),parseInt(s.interval)||1e3));const a=de(o,{logger:n,err:e,onMessage:n=>{y(s.dataOnResult)?t(s.dataOnResult)(i,{$result:n}):function(t,n,e){switch(n){case"outerHTML":{const n=e.parentNode;if(!n)return;const i=document.createElement("div");i.innerHTML=t,n.replaceChild(i.firstChild,e);break}case"textContent":e.textContent=t;break;case"beforebegin":e.insertAdjacentHTML("beforebegin",t);break;case"afterbegin":e.insertAdjacentHTML("afterbegin",t);break;case"beforeend":e.insertAdjacentHTML("beforeend",t);break;case"afterend":e.insertAdjacentHTML("afterend",t);break;default:e.innerHTML=t}}(n,s.swap||"innerHTML",r)},onError:e=>{n.error(`[ng-worker:${o}]`,e),y(s.dataOnError)?t(s.dataOnError)(i,{$error:e}):r.textContent="Error"}});r.addEventListener(c,async()=>{if(r.hasAttribute("disabled"))return;if(y(s.delay)&&await xt(parseInt(s.delay)||0),h)return;let t;y(s.throttle)&&(h=!0,s.$set("throttled",!0),setTimeout(()=>{s.$set("throttled",!1),h=!1},parseInt(s.throttle)));try{t=s.params?i.$eval(s.params):void 0}catch(e){n.error("ngWorker: failed to evaluate data-params",e),t=void 0}a.post(t)}),u&&i.$on("$destroy",()=>clearInterval(u)),"load"===c&&r.dispatchEvent(new Event("load"))}}}function de(t,n){if(!t)throw new Error("Worker script path required");const e={autoRestart:!1,autoTerminate:!1,onMessage(){},onError(){},transformMessage(t){try{return JSON.parse(t)}catch{return t}}},i=Object.assign({},e,n);let r=new Worker(t,{type:"module"}),s=!1;const o=function(){s||(i.logger.info("Worker: restarting..."),r.terminate(),r=new Worker(t,{type:"module"}),c(r))},c=t=>{t.onmessage=function(t){let{data:n}=t;try{n=i.transformMessage(n)}catch{}i.onMessage(n,t)},t.onerror=function(t){i.onError(t),i.autoRestart&&o()}};return c(r),{post(t){s&&i.logger.warn("Worker already terminated");try{r.postMessage(t)}catch(t){i.logger.log("Worker post failed",t)}},terminate(){s=!0,r.terminate()},restart(){s&&i.logger.warn("Worker cannot restart after terminate"),o()},config:i}}fe.$inject=[jt.H,jt.L,jt.D];class pe{constructor(t,n,e){Mn(S,t,"name"),Mn(k,n,"requires"),this.name=t,this.Ot=n,this.jt=[],this.At=[],this.Ct=[],e&&this.config(e),this.Tt=[],this.Rt=[]}value(t,n){return Mn(S,t,"name"),this.jt.push([jt.dt,"value",[t,n]]),this}constant(t,n){return Mn(S,t,"name"),Mn(y,n,"object"),this.jt.unshift([jt.dt,"constant",[t,n]]),this}config(t){return Mn(jn,t,"configFn"),this.At.push([jt.gt,"invoke",[t]]),this}run(t){return Mn(jn,t,"block"),this.Ct.push(t),this}component(t,n){return Mn(S,t,"name"),Mn(y,n,"object"),this.jt.push([jt.wt,"component",[t,n]]),this}factory(t,n){return Mn(S,t,"name"),Pn(n,"providerFunction"),this.jt.push([jt.dt,"factory",[t,n]]),this}service(t,n){return Mn(S,t,"name"),Pn(n,"serviceFunction"),this.Tt.push(t),this.jt.push([jt.dt,"service",[t,n]]),this}provider(t,n){return Mn(S,t,"name"),Pn(n,"providerType"),this.jt.push([jt.dt,"provider",[t,n]]),this}decorator(t,n){return Mn(S,t,"name"),Pn(n,"decorFn"),this.At.push([jt.dt,"decorator",[t,n]]),this}directive(t,n){return Mn(S,t,"name"),Pn(n,"directiveFactory"),this.jt.push([jt.wt,"directive",[t,n]]),this}animation(t,n){return Mn(S,t,"name"),Pn(n,"animationFactory"),this.jt.push([jt.vt,"register",[t,n]]),this}filter(t,n){return Mn(S,t,"name"),Mn(R,n,"filterFn"),this.jt.push([jt.bt,"register",[t,n]]),this}controller(t,n){return Mn(S,t,"name"),Pn(n,"fictlFnlterFn"),this.jt.push([jt.yt,"register",[t,n]]),this}wasm(t,n,e={},i={}){Mn(S,t,"name"),Mn(S,n,"src");const r=!!i.raw;return this.jt.push([jt.dt,"provider",[t,class{$get(){return Ct(n,e).then(t=>r?t:t.exports)}}]]),this}worker(t,n,e){return Mn(S,t,"name"),Mn(S,n,"scriptPath"),this.jt.push([jt.dt,"provider",[t,class{$get=()=>de(n,e)}]]),this}store(t,n,e,i){return Mn(S,t,"name"),Pn(n,"ctor"),this.jt.push([jt.dt,"store",[t,_(n)?()=>n:n,e,i]]),this}rest(t,n,e,i={}){Mn(S,t,"name"),Mn(S,n,"url"),Mn(R,e,"entityClass");const r={name:t,url:n,entityClass:e,options:i};return this.Rt.push(r),this.jt.push([jt.dt,"factory",[t,[jt.B,t=>t(n,e,i)]]]),this}sse(t,n,e={}){return Mn(S,t,"name"),Mn(S,n,"url"),this.jt.push([jt.dt,"factory",[t,[jt.tt,t=>t(n,e)]]]),this}websocket(t,n,e=[],i={}){return Mn(S,t,"name"),Mn(S,n,"url"),this.jt.push([jt.dt,"factory",[t,[jt.ft,t=>t(n,e,i)]]]),this}}class me{static $nonscope=!0;constructor(t){if(this.Mt=void 0,this.l=void 0,this.Pt=[],this.It=!1,S(t)){const n=un(t);switch(!0){case n instanceof Element:this.element=n;break;case n instanceof Node:this.node=n}}else if(t instanceof NodeList)1===t.length?this.node=t[0]:(this.Pt=Array.from(t),this.It=!0);else if(t instanceof Element)this.element=t;else if(t instanceof Node)this.Mt=t;else{if(!k(t))throw new Error("Invalid element passed to NodeRef");1===t.length?this.node=t[0]:this.nodes=t}}get element(){return this.l}set element(t){this.l=t,this.It=!1}get node(){return this.Mt||this.l}set node(t){this.Mt=t,1===t.nodeType?this.l=t:this.l=void 0}set nodes(t){this.Pt=t,this.It=!0}get nodes(){return this.Pt}get nodelist(){if(0===this.Pt.length)return[];if(this.Pt[0].parentElement)return this.Pt[0].parentElement.childNodes;const t=document.createDocumentFragment();return this.Pt.forEach(n=>t.appendChild(n)),t.childNodes}get dom(){return this.It?this.nodelist:this.node}get size(){return this.It?this.Pt.length:1}Dt(){return this.It?this.Pt[0]:this.l||this.Mt}Nt(){return this.It?this.Pt:this.l||this.Mt}qt(){return this.It?Array.from(this.Pt):[this.l||this.Mt]}Ut(t){return this.It?this.Pt[t]:this.node}Vt(t,n){this.It?this.Pt[t]=n:this.node=n}Ft(){const t=this.It?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new me(t)}Lt(){return void 0!==this.l}}const $e=mt("$controller"),ge=/^(\S+)(\s+as\s+([\w$]+))?$/;function we(t,n){if(S(t)){const n=ge.exec(t);if(n)return n[3]}}class ve{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,n){K(t,"controller"),_(t)?_t(t).forEach(([t,n])=>{this.controllers.set(t,n)}):this.controllers.set(t,n)}$get=[jt.gt,t=>(n,e,i,r)=>{let s,o,c,u=r&&S(r)?r:null;if(i=!0===i,S(n)){if(o=n.match(ge),!o)throw $e("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",n);if(c=o[1],u=u||o[3],!(n=this.controllers.get(c)))throw $e("ctrlreg","The controller with the name '{0}' is not registered.",c);ft(n,c,!0)}if(i){const i=(k(n)?n[n.length-1]:n).prototype;return s=Object.create(i||null),u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name)),s?.constructor?.$scopename&&(e.$scope.$scopename=s.constructor.$scopename),function(){const i=t.invoke(n,s,e,c);return i!==s&&(_(i)||R(i))&&(s=i,u&&(s.$controllerIdentifier=u,this.addIdentifier(e,u,s,c||n.name))),s}.bind(this,{instance:s,identifier:u})}return s=t.instantiate(n,e,c),u&&this.addIdentifier(e,u,s,c||n.name),s}];addIdentifier(t,n,e,i){if(!t||!_(t.$scope))throw mt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);t.$scope[n]=e,t.$scope.$controllerIdentifier=n}}const be=mt("$sce"),ye={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl"};function ke(t){if("self"===t)return t;if(S(t)){if(t.indexOf("***")>-1)throw be("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(n=t,n.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var n;if(M(t))return new RegExp(`^${t.source}$`);throw be("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ee{constructor(){let t=["self"],n=[];this.trustedResourceUrlList=function(n){return arguments.length&&(t=n.map(ke)),t},this.bannedResourceUrlList=function(t){return arguments.length&&(n=t.map(ke)),n},this.$get=[jt.gt,jt.nt,jt.D,function(e,i,r){let s=function(){r(be("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,n){return"self"===t?Ln(n,Vn)||Ln(n,document.baseURI):!!t.exec(n.href)}function c(t){const n=function(t){this.Ht=function(){return t}};return t&&(n.prototype=new t),n.prototype.valueOf=function(){return this.Ht()},n.prototype.toString=function(){return this.Ht().toString()},n}e.has("$sanitize")&&(s=e.get("$sanitize"));const u=c(),h={};return h[ye.HTML]=c(u),h[ye.CSS]=c(u),h[ye.MEDIA_URL]=c(u),h[ye.URL]=c(h[ye.MEDIA_URL]),h[ye.JS]=c(u),h[ye.RESOURCE_URL]=c(h[ye.URL]),{trustAs:function(t,n){const e=y(t)&&kt(h,t)?h[t]:null;return e?null===n||b(n)||""===n?n:"string"!=typeof n?void r(be("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t)):new e(n):void r(be("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,n))},getTrusted:function(e,c){if(null===c||b(c)||""===c)return c;const u=kt(h,e)?h[e]:null;return u&&c instanceof u?c.Ht():(R(c.Ht)&&(c=c.Ht()),e===ye.MEDIA_URL||e===ye.URL?i(c.toString(),e===ye.MEDIA_URL):e===ye.RESOURCE_URL?function(e){const i=Fn(e.toString());let r,s,c=!1;for(r=0,s=t.length;r<s;r++)if(o(t[r],i)){c=!0;break}if(c)for(r=0,s=n.length;r<s;r++)if(o(n[r],i)){c=!1;break}return c}(c)?c:void r(be("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",c.toString())):e===ye.HTML?s():r(be("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof u?t.Ht():t}}}]}}function _e(){let t=!0;this.enabled=function(n){return arguments.length&&(t=!!n),t},this.$get=[jt.H,jt.K,(n,e)=>{const i=ht(ye);i.isEnabled=function(){return t},i.trustAs=e.trustAs,i.getTrusted=e.getTrusted,i.valueOf=e.valueOf,t||(i.trustAs=i.getTrusted=function(t,n){return n},i.valueOf=t=>t),i.parseAs=(t,e)=>{const r=n(e);return r.Bt&&r.constant?r:n(e,n=>i.getTrusted(t,n))};const r=i.parseAs,{getTrusted:s}=i,{trustAs:o}=i;return _t(ye).forEach(([t,n])=>{const e=t.toLowerCase();i[Ft(`parse_as_${e}`)]=function(t){return r(n,t)},i[Ft(`get_trusted_${e}`)]=function(t){return s(n,t)},i[Ft(`trust_as_${e}`)]=function(t){return o(n,t)}}),i}]}const Se={};function xe(t,n,e,i){return{restrict:"A",compile(r,s){const o=t(s[e]);return(t,e)=>{const r=e=>{try{o(t,{$event:e})}catch(t){n(t)}};e.addEventListener(i,r),t.$on("$destroy",()=>e.removeEventListener(i,r))}}}}function Oe(t,n,e,i,r){return{restrict:"A",compile(s,o){const c=t(o[i]);return t=>{const i=e=>{try{c(t,{$event:e})}catch(t){n(t)}};e.addEventListener(r,i),t.$on("$destroy",()=>e.removeEventListener(r,i))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove".split(" ").forEach(t=>{const n=vt(`ng-${t}`);Se[n]=[jt.H,jt.D,(e,i)=>xe(e,i,n,t)]});const Ce=mt("$compile"),je=/^\w/,Ae=document.createElement("div");class Te{static $nonscope=!0;constructor(t,n,e,i,r){if(this.C=t,this.D=n,this.G=e,this.$attr={},r){const t=Object.keys(r),n=this;for(let e=0,i=t.length;e<i;e++){const i=t[e];n[i]=r[i]}}this.zt=i}l(){return this.zt?.Dt()}$normalize=vt;$addClass(t){t&&t.length>0&&(bt(this.l())?this.C.addClass(this.l(),t):this.zt?.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(bt(this.l())?this.C.removeClass(this.l(),t):this.zt?.element.classList.remove(t))}$updateClass(t,n){const e=Re(t,n);e&&e.length&&(bt(this.l())?this.C.addClass(this.l(),e):this.zt?.element.classList.add(...e.trim().split(/\s+/)));const i=Re(n,t);i&&i.length&&(bt(this.l())?this.C.removeClass(this.l(),i):this.zt?.element.classList.remove(...i.trim().split(/\s+/)))}$set(t,n,e,i){const r=sn(this.l(),t),s=l[t];let o=t;r?(this.l()[t]=n,i=r):s&&(this[s]=n,o=s),this[t]=n,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=U(t,"-"));const c=this.zt?.node.nodeName.toLowerCase();let u;if("img"===c&&"srcset"===t?this[t]=u=this.sanitizeSrcset(n,"$set('srcset', value)"):u=n,!1!==e){const t=this.l();O(u)?t.removeAttribute(i):je.test(i)?r&&!1===u?t.removeAttribute(i):r?t.toggleAttribute(i,u):t.setAttribute(i,u):this.setSpecialAttr(this.l(),i,u)}const{Wt:h}=this;h&&h[o]&&h[o].forEach(t=>{try{t(u)}catch(t){this.D(t)}})}$observe(t,n){const e=this.Wt||(this.Wt=Object.create(null)),i=e[t]||(e[t]=[]);return i.push(n),i.Jt||!kt(this,t)||b(this[t])||n(this[t]),function(){J(i,n)}}setSpecialAttr(t,n,e){Ae.innerHTML=`<span ${n}>`;const{attributes:i}=Ae.firstChild,r=i[0];i.removeNamedItem(r.name),r.value=e??"",t.attributes.setNamedItem(r)}sanitizeSrcset(t,n){let e;if(!t)return t;if(!S(t))throw Ce("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',n,t.toString());let i="";const r=q(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=r.split(s),c=Math.floor(o.length/2);for(e=0;e<c;e++){const t=2*e;i+=this.G.getTrustedMediaUrl(q(o[t])),i+=` ${q(o[t+1])}`}const u=q(o[2*e]).split(/\s/);return i+=this.G.getTrustedMediaUrl(q(u[0])),2===u.length&&(i+=` ${q(u[1])}`),i.replace(/unsafe:unsafe/g,"unsafe")}}function Re(t,n){const e=new Set(t.split(/\s+/)),i=new Set(n.split(/\s+/));return Array.from(e).filter(t=>!i.has(t)).join(" ")}function Me(t,n){return{restrict:"A",compile:()=>(e,i)=>{""===n&&(n=t);const r=Vt(n);e[r]||(e[r]=i.getAttribute(t));const s=new MutationObserver(n=>{const i=n[0].target.getAttribute(t);e[r]!==i&&(e[r]=i)});s.observe(i,{attributes:!0,attributeFilter:[t]}),e.$on("$destroy",()=>{s.disconnect()})}}}const Pe=mt("$compile"),Ie=["ngIf","ngRepeat"],De=["ngSrc","ngSrcset","src","srcset"],Ne=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,qe=/^(on[a-z]+|formaction)$/,Ue=t=>()=>t,Ve="Directive";class Fe{static $inject=[jt.dt,jt.et];constructor(t,n){const e={},i=Object.create(null);function r(t,n,e){const r=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,s=Object.create(null);return _t(t).forEach(([t,o])=>{if((o=o.trim())in i)return void(s[t]=i[o]);const c=o.match(r);if(!c)throw Pe("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",n,t,o,e?"controller bindings definition":"isolate scope definition");s[t]={mode:c[1][0],collection:"*"===c[2],optional:"?"===c[3],attrName:c[4]||t},c[4]&&(i[o]=s[t])}),s}function s(t,n){const e={isolateScope:null,bindToController:null};if(_(t.scope)&&(!0===t.bindToController?(e.bindToController=r(t.scope,n,!0),e.isolateScope={}):e.isolateScope=r(t.scope,n,!1)),_(t.bindToController)&&(e.bindToController=r(t.bindToController,n,!0)),e.bindToController&&!t.controller)throw Pe("noctrl","Cannot bind to controller without directive '{0}'s controller.",n);return e}function o(t){const n=t.require||t.controller&&t.name;if(!k(n)&&_(n)){const t=_t(n);for(let e=0,i=t.length;e<i;e++){const[i,r]=t[e],s=r.match(Ne);s&&(r.substring(s[0].length)||(n[i]=s[0]+i))}}return n}function c(t,n){if(t&&(!S(t)||!/[EA]/.test(t)))throw Pe("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,n);return t||"EA"}this.directive=function n(i,r){return lt(i,"name"),K(i,"directive"),S(i)?(function(t){const n=t.charAt(0);if(!n||n!==n.toLowerCase())throw Pe("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Pe("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),lt(r,"directiveFactory"),kt(e,i)||(e[i]=[],t.factory(i+Ve,[jt.gt,jt.D,function(t,n){const r=[];for(let s=0,u=e[i].length;s<u;s++){const u=e[i][s];try{let n=t.invoke(u);R(n)?n={compile:Ue(n)}:!n.compile&&n.link&&(n.compile=Ue(n.link)),n.priority=n.priority||0,n.index=s,n.name=n.name||i,n.require=o(n),n.restrict=c(n.restrict,i),r.push(n)}catch(t){n(t)}}return r}])),e[i].push(r)):_t(i).forEach(([t,e])=>n(t,e)),this},this.component=function(t,n){if(!S(t))return _t(t).forEach(([t,n])=>this.component(t,n)),this;const e=n.controller||function(){};function i(t){function i(n){return R(n)||k(n)?function(e,i){return t.invoke(n,this,{$element:e,$attrs:i})}:n}const r=n.template||n.templateUrl?n.template:"",s={controller:e,controllerAs:we(n.controller)||n.controllerAs||"$ctrl",template:i(r),templateUrl:i(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return _t(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(s[t]=n)}),s}return _t(n).forEach(([t,n])=>{"$"===t.charAt(0)&&(i[t]=n,R(e)&&(e[t]=n))}),i.$inject=[jt.gt],this.directive(t,i)},this.aHrefSanitizationTrustedUrlList=function(t){if(!y(t))return n.aHrefSanitizationTrustedUrlList();n.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!y(t))return n.imgSrcSanitizationTrustedUrlList();n.imgSrcSanitizationTrustedUrlList(t)};let u=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(u=t,this):u};const a=Object.create(null);this.addPropertySecurityContext=function(t,n,e){const i=`${t.toLowerCase()}|${n.toLowerCase()}`;if(i in a&&a[i]!==e)throw Pe("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,n,a[i],e);return a[i]=e,this},function(){function t(t,n){n.forEach(n=>{a[n.toLowerCase()]=t})}t(ye.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(ye.CSS,["*|style"]),t(ye.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(ye.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(ye.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=[jt.gt,jt.V,jt.D,jt.st,jt.H,jt.M,jt.G,jt.C,function(t,n,i,r,o,c,l,f){let d;function m(){for(let t=0,n=d.length;t<n;++t)try{d[t]()}catch(t){i(t)}d=void 0}const $=n.startSymbol(),g=n.endSymbol(),w="{{"===$&&"}}"===g?t=>t:t=>t.replace(/\{\{/g,$).replace(/}}/g,g),v=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return E;function E(t,n,e,i,r){let s=new me(t),o=x(s,n,e,i,r),c=null;return function(t,n,e){if(!s)throw Pe("multilink","This element has already been linked.");lt(t,"scope"),s.l&&Xt(s.l,t),r&&r.needsNewScope&&(t=t.$parent.$new()),e=e||{};let{Zt:i}=e;const{transcludeControllers:u,Gt:h}=e;let a;if(i&&i.Kt&&(i=i.Kt),c||(c=function(t){const n=t;return n&&"foreignobject"!==z(n)&&toString.call(n).match(/SVG/)?"svg":"html"}(h)),"html"!==c){const t=un("<div></div>");t.append(s.node);const n=W(c,t.innerHTML);a=new me(n[0])}else a=n?s.Ft():s;if(u)for(const t in u)lt(a.element,"element"),Zt(a.element,`$${t}Controller`,u[t].instance);return n&&n(a.dom,t),o&&o(t,a,i),n||(s=o=null),a.Nt()}}function x(t,n,e,r,s){const o=[];let c,u=!1;for(let h=0;h<t.size;h++){const a=new Te(f,i,l),d=C(t.Ut(h),a,0===h?e:void 0,r);let p,m;d.length&&(p=A(d,t.Ut(h),a,n,null,[],[],Object.assign({},s,{index:h,parentNodeRef:t,ctxNodeRef:t})));const $=p?.nodeLinkFn,{childNodes:g}=t.Ut(h);if($&&p.terminal||!g||!g.length)m=null;else{const t=$?(p.transcludeOnThisElement||!p.templateOnThisElement)&&p.transclude:n;m=x(new me(g),t)}($||m)&&(o.push({index:h,nodeLinkFnCtx:p,childLinkFn:m}),u=!0,c=c||$),s=null}return u?function(e,i,r){lt(i,"nodeRef");let s=[];if(c){const n=i.It?i.nodes.length:1;s=new Array(n),o.forEach(n=>{const e=n.index;0===e?s[e]=i.It?i.nodes[e]:i.node:t.Ut(e)&&(s[e]=i.nodes[e])})}else i.It?i.nodes.forEach(t=>s.push(t)):s.push(i.node);o.forEach(({index:t,nodeLinkFnCtx:i,childLinkFn:o})=>{const c=s[t];let u,h;c.stable=!0,i?.nodeLinkFn?(u=i.newScope?e.$new():e,h=i.transcludeOnThisElement?O(e,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&n?O(e,n):null,i?.newScope&&Xt(c,u),i.nodeLinkFn(o,u,c,h)):o&&o(e,new me(c.childNodes),r)})}:null}function O(t,n,e){function i(i,r,s,o,c){return i||(i=t.$transcluded(c)),n(i,r,{Zt:e,transcludeControllers:s,Gt:o})}const r=i.Xt=Object.create(null);for(const i in n.Xt)n.Xt[i]?r[i]=O(t,n.Xt[i],e):r[i]=null;return i}function C(t,e,r,s){const c=[],{nodeType:u}=t,a=e.$attr;let l;switch(u){case 1:l=t.nodeName.toLowerCase(),s!==vt(l)&&N(c,vt(l),"E",r);for(let n=0;n<t.attributes?.length;n++){let u=!1,l=!1,f=!1,d=!1,p=!1;const m=t.attributes[n];let{name:$}=m;const{value:g}=m;let w=vt($.toLowerCase());const b=w.match(v);b&&(u="Attr"===b[1],l="Prop"===b[1],f="On"===b[1],d="Observe"===b[1],p="Window"===b[1],$=$.replace(h,"").toLowerCase().substring(4+b[1].length).replace(/_(.)/g,(t,n)=>n.toUpperCase())),l||f||p?(e[w]=g,a[w]=m.name,l?J(t,c,w,$):f?c.push(xe(o,i,w,$)):c.push(Oe(o,i,window,w,$))):d?c.push(Me($,g)):(w=vt($.toLowerCase()),a[w]=$,!u&&kt(e,w)||(e[w]=g,sn(t,w)&&(e[w]=!0)),K(t,c,g,w,u),w!==s&&N(c,w,"A",r))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case 3:!function(t,e){const i=n(e,!0);i&&t.push({priority:0,compile:()=>(t,n)=>{i.expressions.forEach(e=>{t.$watch(e,()=>{const e=i(p(t));1===n.nodeType?n.innerHTML=e:n.nodeValue=e})})}})}(c,t.nodeValue)}return c.sort(L),c}function j(t,n,e,i,r,s){let o;return t?E(n,e,i,r,s):function(){return o||(o=E(n,e,i,r,s),n=e=s=null),o.apply(this,arguments)}}function A(t,n,e,r,s,o,u,h){h=h||{};let a=-Number.MAX_VALUE,d=!1,{Yt:p,Qt:m,tn:$,nn:g,en:v,hasElementTranscludeDirective:y}=h;const{ctxNodeRef:E,parentNodeRef:x}=h;let O=!1,A=!1,T=new me(n);const{index:D}=h;let N,L,H;e.zt=T;let J,Z=s,G=r,K=!1,Q=!1,et=function(t,s,h,a){let d,g,w,v,E,S,x,O,C=s;if(n===h?(x=e,S=e.zt):(S=new me(h),x=new Te(f,i,l,S,e)),v=s,$?w=s.$newIsolate():p&&(v=s.$parent),a){const t=function(t,n,e,i){let r;if(I(t)||(i=e,e=n,n=t,t=void 0),y&&(r=E),e||(e=y?S.node.parentElement:S.node),i){const s=a.Xt[i];if(s)return s(t,n,r,e,C);if(b(s))throw Pe("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,en(S.element));return}return a(t,n,r,e,C)};t.Kt=a,t.isSlotFilled=function(t){return!!a.Xt[t]},r=t}m&&(E=function(t,n,e,i,r,s,o){const u=Object.create(null);for(const h in i){const a=i[h],l={$scope:a===o||a.rn?r:s,$element:t.node,$attrs:n,$transclude:e};let{controller:f}=a;"@"===f&&(f=n[a.name]);const d=c(f,l,!0,a.controllerAs);u[a.name]=d,t.Lt()&&Zt(t.element,`$${a.name}Controller`,d.instance)}return u}(S,x,r,m,w,s,$)),$&&(w.$target.sn=$.sn,O=nt(s,x,w,w.sn,$),O.removeWatches&&w.$on("$destroy",O.removeWatches));for(const t in E){const n=m[t],e=E[t],i=n.cn.bindToController,r=e();e.instance=v.$new(r),Zt(S.node,`$${n.name}Controller`,e.instance),e.bindingInfo=nt(v,x,e.instance,i,n)}for(m&&_t(m).forEach(([t,n])=>{const{require:e}=n;n.bindToController&&!k(e)&&_(e)&&F(E[t].instance,M(t,e,S.element,E))}),E&&Object.values(E).forEach(t=>{const n=t.instance;if(R(n.$onChanges))try{n.$onChanges(t.bindingInfo.initialChanges)}catch(t){i(t)}if(R(n.$onInit))try{n.$target.$onInit()}catch(t){i(t)}R(n.$onDestroy)&&v.$on("$destroy",()=>{n.$onDestroy()})}),d=0,g=o.length;d<g;d++){const t=o[d],n=t.require&&M(t.directiveName,t.require,S.element,E);try{t(t.isolateScope?w:s,S.node,x,n,r)}catch(t){i(t)}}for($&&($.template||null===$.templateUrl)&&(C=w),t&&h&&h.childNodes&&h.childNodes.length&&t(C,new me(h.childNodes),a),d=u.length-1;d>=0;d--){const t=u[d],n=t.require&&M(t.directiveName,t.require,S.node,E);try{t.isolateScope&&Yt(S.element,w),t(t.isolateScope?w:s,S.node,x,n,r)}catch(t){i(t)}}E&&Object.values(E).forEach(t=>{const n=t.instance;R(n.$postLink)&&n.$postLink()})};for(let s=0,c=t.length;s<c&&(N=t[s],!(a>N.priority));s++){J=N.scope,J&&(N.templateUrl||(_(J)?(B("new/isolated scope",$||p,N,T),$=N):B("new/isolated scope",$,N,T)),p=p||N),L=N.name;const l=N.replace&&(N.templateUrl||N.template),f=N.transclude&&!Ie.includes(N.name);if(!K&&(l||f)){let n;for(let e=s+1;n=t[e++];)if(n.transclude&&!Ie.includes(n.name)||n.replace&&(n.templateUrl||n.template)){Q=!0;break}K=!0}if(!N.templateUrl&&N.controller&&(m=m||Object.create(null),B(`'${L}' controller`,m[L],N,T),m[L]=N),J=N.transclude,J)if(O=!0,Ie.includes(N.name)||(B("transclusion",v,N,T),v=N),"element"===J)y=!0,a=N.priority,H=T,T=new me(document.createComment("")),e.zt=T,n=T.node,E.node=n,X(new me(H.l),n,D),G=j(Q,H.l,r,a,Z&&Z.name,{en:v});else{const t=Object.create(null);let e;if(_(J)){e=document.createDocumentFragment();const n=Object.create(null),i=Object.create(null);_t(J).forEach(([e,r])=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,n[r]=e,t[e]=null,i[e]=s}),T.element.childNodes.forEach(r=>{const s=n[vt(z(r))];s?(i[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):e.appendChild(r)}),_t(i).forEach(([t,n])=>{if(!n)throw Pe("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const n in t)if(t[n]){const e=t[n].childNodes;t[n]=j(Q,e,r)}e=e.childNodes}else e=n.cloneNode(!0).childNodes;an(n),G=j(Q,e,r,void 0,void 0,{needsNewScope:N.rn||N.un}),G.Xt=t}if(N.template)if(A=!0,B("template",g,N,T),g=N,J=R(N.template)?N.template(T.node,e):N.template,J=w(J),N.replace){if(Z=N,H=Bt(J)?[]:Le(W(N.templateNamespace,q(J))),S(H)&&(H=Array.from(hn(H)).filter(t=>1===t.nodeType)),n=H[0],1!==H.length||1!==n.nodeType)throw Pe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",L,"");X(T,n),x&&x.Vt(D,n);const i={$attr:{}},r=C(n,i),o=t.splice(s+1,t.length-(s+1));($||p)&&P(r,$,p),t=t.concat(r).concat(o),U(e,i),c=t.length}else T.Lt()&&(T.element.innerHTML=J);if(N.templateUrl)A=!0,B("template",g,N,T),g=N,N.replace&&(Z=N),et=V(t.splice(s,t.length-s),T,e,n,O&&G,o,u,{index:D,Qt:m,Yt:p!==N&&p,tn:$,nn:g,en:v,Gt:h.Gt}),c=t.length;else if(N.compile)try{const t=N.compile(T.Dt(),e,G),n=N.$$originalDirective||N;R(t)?it(null,tt(n,t)):t&&it(tt(n,t.pre),tt(n,t.post))}catch(t){i(t)}N.terminal&&(d=!0,a=Math.max(a,N.priority))}return h.hasElementTranscludeDirective=y,{nodeLinkFn:et,terminal:d,transclude:G,transcludeOnThisElement:O,templateOnThisElement:A,newScope:p&&!0===p.scope};function it(t,n){t&&(t.require=N.require,t.directiveName=L,($===N||N.rn)&&(t=Y(t,{isolateScope:!0})),o.push(t)),n&&(n.require=N.require,n.directiveName=L,($===N||N.rn)&&(n=Y(n,{isolateScope:!0})),u.push(n))}}function M(t,n,e,i){let r;if(S(n)){const s=n.match(Ne),o=n.substring(s[0].length),c=s[1]||s[3],u="?"===s[2];if("^^"===c?e=e.parentElement?e.parentElement:void 0:(r=i&&i[o],r=r&&r.instance),!r){const t=`$${o}Controller`;r="^^"===c&&e&&9===e.nodeType?null:e?c?tn(e,t):Gt(e,t):void 0}if(!r&&!u)throw Pe("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(k(n)){r=[];for(let s=0,o=n.length;s<o;s++)r[s]=M(t,n[s],e,i)}else _(n)&&(r={},_t(n).forEach(([n,s])=>{r[n]=M(t,s,e,i)}));return r||null}function P(t,n,e){for(let i=0,r=t.length;i<r;i++)t[i]=H(t[i],{rn:n,un:e})}function N(n,i,r,o){let c=!1;if(kt(e,i))for(let e,u=t.get(i+Ve),h=0,a=u.length;h<a;h++)if(e=u[h],(b(o)||o>e.priority)&&-1!==e.restrict.indexOf(r)){if(!e.cn){const t=e.cn=s(e,e.name);_(t.isolateScope)&&(e.sn=t.isolateScope)}n.push(e),c=e}return c}function U(t,n){const e=n.$attr,i=t.$attr;_t(t).forEach(([i,r])=>{"$"!==i[0]&&"_"!==i[0]&&(n[i]&&n[i]!==r&&(r.length?r+=("style"===i?";":" ")+n[i]:r=n[i]),t.$set(i,r,!0,e[i]))}),_t(n).forEach(([n,r])=>{kt(t,n)||"$"===n.charAt(0)||(t[n]=r,"class"!==n&&"style"!==n&&(i[n]=e[n]))})}function V(t,n,e,s,o,c,u,h){let a,l,f,d=[];const p=n.Dt(),m=t.shift(),$=H(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m});let g;g=R(m.templateUrl)?m.templateUrl(n.element,e):m.templateUrl;const{templateNamespace:v}=m;return an(n.element),r(g).then(i=>{let r,b,y,k;if(i=w(i),m.replace){if(y=Bt(i)?[]:S(i)?Array.from(hn(i)).filter(t=>8!==t.nodeType&&3!==t.nodeType):Le(W(v,q(i))),r=y[0],1!==y.length||1!==r.nodeType)throw Pe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);b={$attr:{}},X(n,r,h.index);const s=C(r,b);_(m.scope)&&P(s,!0),t=s.concat(t),U(e,b)}else r=p,n.element.innerHTML=i;for(t.unshift($),f=A(t,r,e,o,m,c,u,{...h,ctxNodeRef:n}),a=f?.nodeLinkFn,s&&_t(s).forEach(([t,e])=>{e===r&&(s[t]=n)}),l=x(new me(n.Dt().childNodes),o);d.length;){const t=d.shift(),e=d.shift(),i=d.shift();let s=n.Dt();if(!t.hn){if(e!==p){const t=e.className;h.hasElementTranscludeDirective&&m.replace||(s=r.cloneNode(!0),e.appendChild(s));try{""!==t&&n.element.classList.forEach(t=>e.classList.add(t))}catch{}}k=f.transcludeOnThisElement?O(t,f.transclude,i):i,a(l,t,s,k)}}d=null}).catch(t=>{T(t)?i(t):i(new Error(t))}),function(t,n,e,i,r){let s=r;n.hn||(d?d.push(n,e,i):(a.transcludeOnThisElement&&(s=O(n,a.transclude,r)),a(l,n,e,i,s)))}}function L(t,n){const e=n.priority-t.priority;return 0!==e?e:t.name!==n.name?t.name<n.name?-1:1:t.index-n.index}function B(t,n,e,i){if(n)throw Pe("multidir","Multiple directives [{0}, {1}] asking for {3} on: {4}",n.name,e.name,t,en(i.Dt()))}function W(t,n){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const e=document.createElement("div");return e.innerHTML=`<${t}>${n}</${t}>`,e.childNodes[0].childNodes}default:return n}}function J(t,n,e,i){if(qe.test(i))throw Pe("nodomevents","Property bindings for HTML DOM event properties are disallowed");const r=z(t),s=function(t,n){const e=n.toLowerCase();return a[`${t}|${e}`]||a[`*|${e}`]}(r,i);let c=t=>t;"srcset"!==i||"img"!==r&&"source"!==r?s&&(c=l.getTrusted.bind(l,s)):c=t=>function(t){if(!t)return t;if(!S(t))throw Pe("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',"ng-prop-srcset",t.toString());let n="";const e=q(t),i=/\s/.test(e)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=e.split(i),s=Math.floor(r.length/2);let o;for(o=0;o<s;o++){const t=2*o;n+=l.getTrustedMediaUrl(q(r[t])),n+=` ${q(r[t+1])}`}const c=q(r[2*o]).split(/\s/);return n+=l.getTrustedMediaUrl(q(c[0])),2===c.length&&(n+=` ${q(c[1])}`),n}(l.valueOf(t)),n.push({priority:100,compile:function(t,n){const r=o(n[e]);return{pre:function(t,s){function o(){const n=r(t);s[i]=c(n)}o(),t.$watch(i,o),t.$watch(n[e],t=>{l.valueOf(t),o()})}}}})}function K(t,e,i,r,s){const o=z(t),c=function(t,n){return"srcdoc"===n?l.HTML:"src"===n||"ngSrc"===n?-1===["img","video","audio","source","track"].indexOf(t)?l.RESOURCE_URL:l.MEDIA_URL:"xlinkHref"===n?"image"===t?l.MEDIA_URL:"a"===t?l.URL:l.RESOURCE_URL:"form"===t&&"action"===n||"base"===t&&"href"===n||"link"===t&&"href"===n?l.RESOURCE_URL:"a"!==t||"href"!==n&&"ngHref"!==n?void 0:l.URL}(o,r),u=!s,h=De.includes(r)||s;let a=n(i,u,c,h);if(a){if("multiple"===r&&"select"===o)throw Pe("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",en(t.outerHTML));if(qe.test(r))throw Pe("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:()=>({pre:function(t,e,s){const o=s.Wt||(s.Wt=Object.create(null)),u=s[r];u!==i&&(a=u&&n(u,!0,c,h),i=u),a&&(s[r]=a(t),(o[r]||(o[r]=[])).Jt=!0,a.expressions.forEach(n=>{(s.Wt&&s.Wt[r].h||t).$watch(n,()=>{const n=a(t);"class"===r?s.$updateClass(n,s.l().classList.value):s.$set(r,"srcset"===r?l.getTrustedMediaUrl(n):n)})}),0===a.expressions.length&&s.$set(r,"srcset"===r?l.getTrustedMediaUrl(u):u))}})})}}function X(t,n,e){const i=t.Dt().parentNode;if(i)if(y(e)){const t=i.childNodes[e];t&&i.replaceChild(n,t)}else i.insertBefore(n,i.firstChild);const r=document.createDocumentFragment();t.qt().forEach(t=>{r.appendChild(t)}),t.node=n}function Y(t,n){return F(function(){return t.apply(null,arguments)},t,n)}function Q(t,n){if(u)throw Pe("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,n)}function nt(t,e,i,r,s){const c=[],u={};let h;function a(n,e,r){R(i.$onChanges)&&(d||(t.$postUpdate(m),d=[]),h||(h={},d.push(l)),h[n]={currentValue:e,firstChange:r})}function l(){i.$onChanges&&h&&i.$onChanges(h),h=void 0}return r&&_t(r).forEach(([r,h])=>{const{attrName:f,optional:d,mode:p}=h;let m,$,g,w,v,k=!0,E=!0;switch(p){case"@":d||kt(e,f)||(Q(f,s.name),i[r]=e[f]=void 0),v=e.$observe(f,t=>{(S(t)||D(t))&&(a(r,t,E),i[r]=t,k?k=!1:(l(),E=!1))}),e.Wt[f].h=t,m=e[f],S(m)?i[r]=n(m)(t):D(m)&&(i[r]=m),u[r]={currentValue:i[r],firstChange:!0},c.push(v);break;case"=":{if(!kt(e,f)){if(d)break;Q(f,s.name),e[f]=void 0}if(d&&!e[f])break;const n=e[f];$=n&&o(n),w=$&&$.Bt?G:Z,g=$&&$.an||function(){throw Pe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name)},m=i.$target[r]=$&&$(t.$target);const u=function(n){return w(n,i[r])||(w(n,m)?g(t,n=i[r]):i[r]=n),m=n,m};if(e[f]){const n=e[f];t.$watch(n,n=>{const i=o(e[f],u);n?($.Bt?t.$target[f]=n:t[f]=n,i(t)):t[f]=t[e[f]]},!0)}v=i.$watch(f,n=>{if(n!==m||b(e[f])){if($&&$.ln&&!$.Bt||b(e[f])&&y(n))throw i.$target[f]=m,Pe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",e[f],f,s.name);_(n)?_t(n).forEach(([n,e])=>{t.$target[n]=e}):(g(t.$target,m=n),t.$handler.dn.get(e[f])?.forEach(e=>{e.listenerFn(n,t.$target)}))}},!0),c.push(v);break}case"<":if(!kt(e,f)){if(d)break;Q(f,s.name),e[f]=void 0}if(d&&!e[f])break;$=e[f]&&o(e[f]),i.$target[r]=$&&$(t.$target),u[r]={currentValue:i.$target[r],firstChange:E},t.$target.attrs=e,e[f]&&(v=t.$watch(e[f],t=>{i.$target[r]=t,a(r,t,E),E&&(E=!1)},!0),c.push(v));break;case"&":if(d||kt(e,f)||Q(f,s.name),$=kt(e,f)?o(e[f]):void 0,!$&&d)break;i.$target[r]=function(n){return $(t.$target,n)}}}),{initialChanges:u,removeWatches:c.length&&function(){for(let t=0,n=c.length;t<n;++t)c[t]()}}}}]}}function Le(t){let n=t.length;if(n<=1)return t;for(;n--;){const e=t[n];(8===e.nodeType||3===e.nodeType&&""===e.nodeValue.trim())&&[].splice.call(t,n,1)}return t}const He={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],pn:(t,n)=>{t.$name=n},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},mn:()=>{}},Be="ng-pending",ze="ng-submitted";class We{static $nonscope=!0;static $inject=[jt.l,jt.u,jt.h,jt.C,jt.V];constructor(t,i,r,s,o){this.$n=bt(t),this.gn=[],this.$name=o(i.name||i.ngForm||"")(r),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.wn=He,this.l=t,this.C=s,this.$error={},this.vn={},this.$pending=void 0,this.bn={};const c=this.l.classList.contains(n);this.bn[n]=c,this.bn[e]=!c,this.$target={}}$rollbackViewValue(){this.gn.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.gn.forEach(t=>{t.$commitViewValue()})}$addControl(t){K(t.$name,"input"),this.gn.push(t),t.$name&&(this[t.$name]=t),t.$target.wn=this}$getControls(){return ht(this.gn)}pn(t,n){const e=t.$name;this[e]===t&&delete this[e],this[n]=t,t.$name=n}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(n=>{this.$setValidity(n,null,t)}),this.$error&&Object.keys(this.$error).forEach(n=>{this.$setValidity(n,null,t)}),this.vn&&Object.keys(this.vn).forEach(n=>{this.$setValidity(n,null,t)}),J(this.gn,t),t.$target.wn=He}$setDirty(){bt(this.l)?(this.C.removeClass(this.l,i),this.C.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.$dirty=!0,this.$pristine=!1,this.wn.$setDirty()}$setPristine(){bt(this.l)?this.C.setClass(this.l,i,`${r} ${ze}`):(this.l.classList.remove(r,ze),this.l.classList.add(i)),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.gn.forEach(t=>{t.$setPristine()})}$setUntouched(){this.gn.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.wn&&t.wn!==He;)t=t.wn;t.mn()}mn(){bt(this.l)?this.C.addClass(this.l,ze):this.l.classList.add(ze),this.$submitted=!0,this.gn.forEach(t=>{t.mn&&t.mn()})}set(t,n,e){const i=t[n];i?-1===i.indexOf(e)&&i.push(e):(t=p(t))[n]=[e]}unset(t,n,e){const i=t[n];i&&(-1===J(i,e)&&J(i,e.$target),0===i.length&&delete t[n])}$setValidity(t,i,r){const s=this;let o;function c(t,i,r){i=i?`-${U(i,"-")}`:"",Ke(t,n+i,!0===r),Ke(t,e+i,!1===r)}b(i)?function(t,n,e,i){t[n]||(t[n]={}),s.set(t[n],e,i)}(this,"$pending",t,r):function(t,n,e,i){t[n]&&s.unset(t[n],e,i),yt(t[n])&&(t[n]=void 0)}(this,"$pending",t,r),D(i)?i?(this.unset(this.$error,t,r),this.set(this.vn,t,r)):(this.set(this.$error,t,r),this.unset(this.vn,t,r)):(this.unset(this.$error,t,r),this.unset(this.vn,t,r)),this.$pending?(Ke(this,Be,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(Ke(this,Be,!1),this.$valid=yt(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.vn[t]||null),c(this,t,o),this.wn.$setValidity(t,o,this)}}const Je=function(t){return[jt.H,function(e){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:We,compile:function(r,s){r.classList.add(i,n);const o=s.name?"name":!(!t||!s.ngForm)&&"ngForm";return{pre:function(t,n,i,r){const s=r[0];if(!("action"in i)){const t=function(t){s.$commitViewValue(),s.$setSubmitted(),t.preventDefault()};n.addEventListener("submit",t),n.addEventListener("$destroy",()=>{setTimeout(()=>{n.removeEventListener("submit",t)},0,!1)})}(r[1]||s.wn).$addControl(s);const c=o?""===(u=s.$name)?e('this[""]').an:e(u).an:()=>{};var u;o&&(c(t,s),i.$observe(o,n=>{s.$name!==n&&(t.$target[s.$name]=void 0,s.wn.pn(s,n),t.$target!==s.wn&&s.wn!==He||(t.$target[n]=s))})),n.addEventListener("$destroy",()=>{s.$target.wn.$removeControl(s),c(t,void 0),F(s,He)})}}}}}]},Ze=Je(),Ge=Je("ngForm");function Ke(t,n,e){e&&!t.bn[n]?(t.$n?t.C.addClass(t.l,n):t.l.classList.add(n),t.bn[n]=!0):!e&&t.bn[n]&&(t.$n?t.C.removeClass(t.l,n):t.l.classList.remove(n),t.bn[n]=!1)}const Xe=/(\s+|^)default(\s+|$)/;class Ye{static $nonscope=!0;static $inject=[jt.u,jt.h];constructor(t,n){this.u=t,this.h=n,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:ti,n=this.h.$eval(this.u.ngModelOptions);this.$options=t.createChild(n)}}class Qe{static $nonscope=!0;constructor(t){this.yn=t}getOption(t){return this.yn[t]}createChild(t){let n=!1;return _t(t=Object.assign({},t)).forEach(([e,i])=>{"$inherit"===i?"*"===e?n=!0:(t[e]=this.yn[e],"updateOn"===e&&(t.updateOnDefault=this.yn.updateOnDefault)):"updateOn"===e&&(t.updateOnDefault=!1,t[e]=q(i.replace(Xe,()=>(t.updateOnDefault=!0," "))))},this),n&&(delete t["*"],ei(t,this.yn)),ei(t,ti.yn),new Qe(t)}}const ti=new Qe({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1});function ni(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:Ye}}function ei(t,n){Et(n).forEach(e=>{y(t[e])||(t[e]=n[e])})}const ii=mt("ngModel");class ri{static $nonscope=!0;static $inject=[jt.h,jt.D,jt.u,jt.l,jt.H,jt.C,jt.V];constructor(t,i,r,s,o,c,u){this.$n=bt(s),this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.kn=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.vn={},this.$pending=void 0,this.$name=u(r.name||"",!1)(t),this.wn=He,this.$options=ti,this.En="",this._n=this._n.bind(this),this.Sn=o(r.ngModel),this.xn=this.Sn.an,this.On=this.Sn,this.Cn=this.xn,this.jn=null,this.An=void 0,this.Tn="parse",this.Rn=0,this.h=t,this.Mn=r,this.l=s,this.C=c,this.H=o,this.D=i,this.Pn=!1,this.bn={};const h=this.l.classList.contains(n);var a;this.bn[n]=h,this.bn[e]=!h,this.In=new Set,(a=this).h.$watch("value",()=>{const t=a.On(a.h);t===a.$modelValue||Number.isNaN(a.$modelValue)&&Number.isNaN(t)||a.Dn(t)})}set(t,n){t[n]=!0}unset(t,n){delete t[n]}$setValidity(t,i){const r=this;function s(t,i,r){i=i?`-${U(i,"-")}`:"",Ke(t,n+i,!0===r),Ke(t,e+i,!1===r)}let o;b(i)?function(t,n,e){t[n]||(t[n]={}),r.set(t[n],e)}(this,"$pending",t):function(t,n,e){t[n]&&r.unset(t[n],e),yt(t[n])&&(t[n]=void 0)}(this,"$pending",t),D(i)?i?(delete this.$error[t],this.set(this.vn,t)):(this.set(this.$error,t),delete this.vn[t]):(delete this.$error[t],delete this.vn[t]),this.$pending?(Ke(this,Be,!0),this.$valid=this.$invalid=void 0,s(this,"",null)):(Ke(this,Be,!1),this.$valid=yt(this.$error),this.$invalid=!this.$valid,s(this,"",this.$valid)),o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.vn[t]||null),s(this,t,o),this.wn.$setValidity(t,o,this)}Nn(){if(this.$options.getOption("getterSetter")){const t=this.H(`${this.Mn.ngModel}()`),n=this.H(`${this.Mn.ngModel}(_$p)`);this.On=n=>{let e=this.Sn(n);return R(e)&&(e=t(n)),e},this.Cn=(t,e)=>{R(this.Sn(t))?n(t,{qn:e}):this.xn(t,e)}}else if(!this.Sn.an)throw ii("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.Mn.ngModel,en(this.l))}$render(){}$isEmpty(t){return b(t)||""===t||null===t||Number.isNaN(t)}Un(t){this.$isEmpty(t)?bt(this.l)?(this.C.removeClass(this.l,u),this.C.addClass(this.l,c)):(this.l.classList.remove(u),this.l.classList.add(c)):bt(this.l)?(this.C.removeClass(this.l,c),this.C.addClass(this.l,u)):(this.l.classList.remove(c),this.l.classList.add(u))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.l&&(bt(this.l)?(this.C.removeClass(this.l,c),this.C.addClass(this.l,i)):(this.l.classList.remove(c),this.l.classList.add(i)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,bt(this.l)?(this.C.removeClass(this.l,i),this.C.addClass(this.l,r)):(this.l.classList.remove(i),this.l.classList.add(r)),this.wn.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,bt(this.l)?this.C.setClass(this.l,s,o):(this.l.classList.remove(o),this.l.classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,bt(this.l)?this.C.setClass(this.l,o,s):(this.l.classList.remove(s),this.l.classList.add(o))}$rollbackViewValue(){clearTimeout(this.jn),this.$viewValue=this.Vn,this.$render()}$validate(){if(L(this.$modelValue))return;const t=this.Vn,n=this.kn,e=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),s=this;this.Fn(n,t,t=>{r||e===t||(s.$modelValue=t?n:void 0,s.$modelValue!==i&&s.Ln())})}Fn(t,n,e){this.Rn++;const i=this.Rn,r=this;function s(t,n){i===r.Rn&&r.$setValidity(t,n)}function o(t){i===r.Rn&&e(t)}!function(){const t=r.Tn;return b(r.An)?(s(t,null),!0):(r.An||(Et(r.$validators).forEach(t=>{s(t,null)}),Et(r.$asyncValidators).forEach(t=>{s(t,null)})),s(t,r.An),r.An)}()?o(!1):function(){let e=!0;return _t(r.$validators).forEach(([i,r])=>{const o=Boolean(r(t,n));e=e&&o,s(i,o)}),!!e||(Et(r.$asyncValidators).forEach(t=>{s(t,null)}),!1)}()?function(){const e=[];let i=!0;_t(r.$asyncValidators).forEach(([r,o])=>{const c=o(t,n);if(!N(c))throw ii("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",c);s(r,void 0),e.push(c.then(()=>{s(r,!0)},()=>{i=!1,s(r,!1)}))}),e.length?Promise.all(e).then(()=>{o(i)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.jn),(this.Vn!==this.$viewValue||""===this.$viewValue&&this.Pn)&&(void 0===this.Vn&&Number.isNaN(this.$viewValue)||(this.Un(this.$viewValue),this.Vn=this.$viewValue,this.$pristine&&this.$setDirty(),this.Hn()))}Hn(){let t=this.Vn;const n=this;if(this.An=!b(t)||void 0,this.$setValidity(this.Tn,null),this.Tn="parse",this.An)for(let n=0;n<this.$parsers.length;n++)if(t=this.$parsers[n](t),b(t)){this.An=!1;break}L(this.$modelValue)&&(this.$modelValue=this.On(this.h));const e=this.$modelValue,i=this.$options.getOption("allowInvalid");function r(){if(n.$modelValue!=e){if(x(n.$modelValue)&&""===e)return;n.Ln()}}this.kn=t,i&&(this.$modelValue=t,r()),this.Fn(t,this.Vn,e=>{i||(n.$modelValue=e?t:void 0,r())})}Ln(){this.Cn(this.h,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.D(t)}},this)}$setViewValue(t,n){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.Bn(n)}Bn(t){let n=this.$options.getOption("debounce");j(n[t])?n=n[t]:j(n.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?n=n.default:j(n["*"])&&(n=n["*"]),clearTimeout(this.jn);const e=this;n>0?this.jn=setTimeout(()=>{e.$commitViewValue()},n):this.$commitViewValue()}$overrideModelOptions(t){this.zn(),this.$options=this.$options.createChild(t),this.En=this.$options.yn.updateOn,this.Wn()}$processModelValue(){const t=this.Jn();this.$viewValue!==t&&(this.Un(t),this.$viewValue=this.Vn=t,this.$render(),this.Fn(this.$modelValue,this.$viewValue,()=>{}))}Jn(){const t=this.$formatters;let n=t.length,e=this.$modelValue;for(;n--;)e=t[n](e);return e}Dn(t){this.$modelValue=this.kn=t,this.An=void 0,this.$processModelValue()}zn(){this.In.forEach(t=>t()),this.In.clear()}Wn(){this.En&&this.En.split(" ").forEach(t=>{this.l.addEventListener(t,this._n),this.In.add(()=>this.l.removeEventListener(t,this._n))}),this.En=this.$options.getOption("updateOn"),this.En&&this.En.split(" ").forEach(t=>{this.l.addEventListener(t,this._n),this.In.add(()=>this.l.removeEventListener(t,this._n))})}_n(t){this.Bn(t&&t.type)}}function si(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:ri,priority:1,compile:t=>(t.classList.add(i,s,n),{pre:(t,n,e,i)=>{const r=i[0],s=i[1]||r.wn,o=i[2];o&&(r.$options=o.$options),r.Nn(),s.$addControl(r),e.$observe("name",t=>{r.$name!==t&&r.wn.pn(r,t)});const c=t.$watch(e.ngModel,t=>{r.Dn(p(t))});t.$on("$destroy",()=>{r.wn.$removeControl(r),c()})},post:(t,n,e,i)=>{const r=i[0];r.Wn(),n.addEventListener("blur",()=>{r.$touched||r.$setTouched()}),r.$viewChangeListeners.push(()=>{const{change:e}=n.dataset;e&&t.$eval(e)})}})}}const oi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,ci=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,ui=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,hi="validity",ai=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{ai.set(t,!0)});const li={text:function(t,n,e,i){di(0,n,e,i),fi(i)},date:pi("date",/^(\d{4,})-(\d{2})-(\d{2})$/),"datetime-local":pi("datetimelocal",/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),time:pi("time",/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/),week:pi("week",/^(\d{4,})-W(\d\d)$/),month:pi("month",/^(\d{4,})-(\d\d)$/),number:function(t,n,e,i,r){let s;if(mi(0,n,0,i,"number"),$i(i),di(0,n,e,i),y(e.min)||e.ngMin){let n=e.min||r(e.ngMin)(t);s=gi(n),i.$validators.min=function(t,n){return i.$isEmpty(n)||b(s)||n>=s},e.$observe("min",t=>{t!==n&&(s=gi(t),n=t,i.$validate())})}if(y(e.max)||e.ngMax){let n=e.max||r(e.ngMax)(t),s=gi(n);i.$validators.max=function(t,n){return i.$isEmpty(n)||b(s)||n<=s},e.$observe("max",t=>{t!==n&&(s=gi(t),n=t,i.$validate())})}if(y(e.step)||e.ngStep){let n=e.step||r(e.ngStep)(t),o=gi(n);i.$validators.step=function(t,n){return i.$isEmpty(n)||b(o)||bi(n,s||0,o)},e.$observe("step",t=>{t!==n&&(o=gi(t),n=t,i.$validate())})}},url:function(t,n,e,i){di(0,n,e,i),fi(i),i.$validators.url=function(t,n){const e=t||n;return i.$isEmpty(e)||oi.test(e)}},email:function(t,n,e,i){di(0,n,e,i),fi(i),i.$validators.email=function(t,n){const e=t||n;return i.$isEmpty(e)||ci.test(e)}},radio:function(t,n,e,i){const r=!e.ngTrim||"false"!==q(e.ngTrim);b(e.name)&&n.setAttribute("name",g()),n.addEventListener("change",function(t){if(n.checked){let{value:n}=e;r&&(n=q(n)),i.$setViewValue(n,t&&t.type)}}),i.$render=function(){let{value:t}=e;r&&(t=q(t));const s=d(i.$viewValue)?i.$viewValue.$target:i.$viewValue;n.checked=p(t)===p(s)},e.$observe("value",i.$render)},range:function(t,n,e,i){mi(0,n,0,i,"range"),$i(i),di(0,n,e,i);const r=i.Pn&&"range"===n.type;let s=r?0:void 0,o=r?100:void 0,c=r?1:void 0;const{validity:u}=n,h=y(e.min),a=y(e.max),l=y(e.step),f=i.$render;function d(t,i){n.setAttribute(t,e[t]);let r=e[t];e.$observe(t,t=>{t!==r&&(r=t,i(t))})}i.$render=r&&y(u.rangeUnderflow)&&y(u.rangeOverflow)?function(){f(),i.$setViewValue(n.value)}:f,h&&(s=gi(e.min),i.$validators.min=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||b(s)||n>=s},d("min",function(t){if(s=gi(t),!L(i.$modelValue))if(r){let t=n.value;s>t&&(t=s,n.value=t),i.$setViewValue(t)}else i.$validate()})),a&&(o=gi(e.max),i.$validators.max=r?function(){return!0}:function(t,n){return i.$isEmpty(n)||b(o)||n<=o},d("max",function(t){if(o=gi(t),!L(i.$modelValue))if(r){let t=n.value;o<t&&(n.value=o,t=o<s?s:o),i.$setViewValue(t)}else i.$validate()})),l&&(c=gi(e.step),i.$validators.step=r?function(){return!u.stepMismatch}:function(t,n){return i.$isEmpty(n)||b(c)||bi(n,s||0,c)},d("step",function(t){c=gi(t),L(i.$modelValue)||(r?i.$viewValue!==n.value&&i.$setViewValue(n.value):i.$validate())}))},checkbox:function(t,n,e,i,r){const s=yi(r,t,"ngTrueValue",e.ngTrueValue,!0),o=yi(r,t,"ngFalseValue",e.ngFalseValue,!1);n.addEventListener("change",function(t){i.$setViewValue(n.checked,t&&t.type)}),i.$render=function(){n.checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(t=>G(t,s)),i.$parsers.push(t=>t?s:o)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function fi(t){t.$formatters.push(n=>t.$isEmpty(n)?n:n.toString())}function di(t,n,e,i){const r=n.type.toLowerCase();let s,o=!1;n.addEventListener("compositionstart",()=>{o=!0}),n.addEventListener("compositionend",()=>{o=!1,c()});const c=function(t){if(s&&(clearTimeout(s),s=null),o)return;let{value:c}=n;const u=t&&t.type;"password"===r||e.ngTrim&&"false"===e.ngTrim||(c=q(c)),(i.$viewValue!==c||""===c&&i.Pn)&&i.$target.$setViewValue(c,u)};["input","change","paste","drop","cut"].forEach(t=>{n.addEventListener(t,c)}),ai[r]&&i.Pn&&r===e.type&&n.addEventListener("keydown wheel mousedown",t=>{if(!s){const n=this[hi],e=n.badInput,i=n.typeMismatch;s=setTimeout(()=>{s=null,n.badInput===e&&n.typeMismatch===i||c(t)})}}),i.$render=function(){const t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;n.value!==t&&(n.value=t)}}function pi(t,n){return function(e,i,r,s,o){if(di(0,i,r,s),s.$parsers.push(e=>s.$isEmpty(e)?null:n.test(e)?e:void(s.Tn=t)),s.$formatters.push(t=>{if(s.$isEmpty(t))return"";if(!S(t))throw ii("datefmt","Expected `{0}` to be a string",t);return t}),y(r.min)||r.ngMin){let t=r.min||o?.(r.ngMin)(e);s.$validators.min=(n,e)=>s.$isEmpty(e)||e>=t,r.$observe("min",n=>{t=n,s.$validate()})}if(y(r.max)||r.ngMax){let t=r.max||o?.(r.ngMax)(e);s.$validators.max=(n,e)=>s.$isEmpty(e)||e<=t,r.$observe("max",n=>{t=n,s.$validate()})}}}function mi(t,n,e,i,r){(i.Pn=_(n.validity))&&i.$parsers.push(t=>{const e=n[hi]||{};if(!e.badInput&&!e.typeMismatch)return t;i.Tn=r})}function $i(t){t.$parsers.push(n=>t.$isEmpty(n)?null:ui.test(n)?parseFloat(n):void(t.Tn="number")),t.$formatters.push(n=>{if(!t.$isEmpty(n)){if(!j(n))throw ii("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n})}function gi(t){return y(t)&&!j(t)&&(t=parseFloat(t)),L(t)?void 0:t}function wi(t){return(0|t)===t}function vi(t){const n=t.toString(),e=n.indexOf(".");if(-1===e){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(n);if(t)return Number(t[1])}return 0}return n.length-e-1}function bi(t,n,e){let i=Number(t);const r=!wi(i),s=!wi(n),o=!wi(e);if(r||s||o){const t=r?vi(i):0,c=s?vi(n):0,u=o?vi(e):0,h=10**Math.max(t,c,u);i*=h,n*=h,e*=h,r&&(i=Math.round(i)),s&&(n=Math.round(n)),o&&(e=Math.round(e))}return(i-n)%e===0}function yi(t,n,e,i,r){let s;if(y(i)){if(s=t(i),!s.constant)throw ii("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",e,i);return s(n)}return r}function ki(t){return{restrict:"E",require:["?ngModel"],link:{pre(n,e,i,r){r[0]&&(li[i.type?.toLowerCase()]||li.text)(n,e,i,r[0],t)}}}}function Ei(){return{restrict:"E",compile(t,n){if("hidden"===n.type?.toLowerCase())return{pre(t,n){n.value=n.getAttribute("value")??""}}}}}ki.$inject=[jt.H];const _i=/^(true|false|\d+)$/;function Si(){function t(t,n,e){t.value=p(e??""),n.$set("value",e)}return{restrict:"A",priority:100,compile:(n,e)=>_i.test(e.ngValue)?function(n,e,i){t(e,i,n.$eval(i.ngValue))}:function(n,e,i){n.$watch(i.ngValue,n=>{t(e,i,n)})}}}function xi(t){return{restrict:"E",terminal:!0,compile(n,e){"text/ng-template"===e.type&&t.set(e.id,n.innerText)}}}xi.$inject=[jt.it];class Oi{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap"];static $inject=[jt.l,jt.h];constructor(t,n){this.l=t,this.h=n,this.Zn={},this.Gn={},this.Kn=!1,this.Xn=document.createElement("option"),this.Yn=!1,this.Qn=void 0,this.te=new Map,this.ne=!1,this.ee=!1,n.$on("$destroy",()=>{this.ie=()=>{}})}ie(t){const n=this.re(t);this.Xn.value=n,this.l.prepend(this.Xn),this.Xn.selected=!0,this.Xn.setAttribute("selected","selected"),this.l.value=n}se(t){const n=this.re(t);this.Xn.value=n,this.Xn.selected=!0,this.Xn.setAttribute("selected","selected"),this.l.value=n}re(t){return b(t)?"? undefined:undefined ?":`? ${$t(t)} ?`}oe(){this.Xn.parentElement&&this.Xn.remove()}ce(){this.Qn&&(this.l.value="",this.Qn.selected=!0,this.Qn.setAttribute("selected","selected"))}ue(){this.Yn&&(this.Qn.selected=!1)}he(){const t=this.l.value,n=t in this.Zn?this.Zn[t]:t;return this.ae(n)?n:null}le(t){const n=this.l.options[this.l.selectedIndex];if(n&&(n.selected=!1),this.ae(t)){this.oe();const n=$t(t);this.l.value=n in this.Zn?n:t;const e=this.l.options[this.l.selectedIndex];e?e.selected=!0:this.fe(t)}else this.fe(t)}de(t,n){if(8===n.nodeType)return;K(t,'"option value"'),""===t&&(this.Yn=!0,this.Qn=n);const e=this.te.get(t)||0;this.te.set(t,e+1),this.pe()}me(t){const n=this.te.get(t);n&&(1===n?(this.te.delete(t),""===t&&(this.Yn=!1,this.Qn=void 0)):this.te.set(t,n-1))}ae(t){return!!this.te.get(t)}$hasEmptyOption(){return this.Yn}$isUnknownOptionSelected(){return this.l.options[0]===this.Xn}$isEmptyOptionSelected(){return this.Yn&&this.l.options[this.l.selectedIndex]===this.Qn}fe(t){O(t)&&this.Qn?(this.oe(),this.ce()):this.Xn.parentElement?this.se(t):this.ie(t)}pe(){this.ne||(this.ne=!0,this.h.$postUpdate(()=>{this.ne=!1,this.Gn.$render()}))}$e(t=!1){this.ee||(this.ee=!0,this.h.$postUpdate(()=>{this.h.hn||(this.ee=!1,this.Gn.$setViewValue(this.he()),t&&this.Gn.$render())}))}registerOption(t,n,e,i,r){let s,o;e.$attr.ngValue?e.$observe("value",t=>{let e;const i=n.selected;y(o)&&(this.me(s),delete this.Zn[o],e=!0),o=$t(t),s=t,this.Zn[o]=t,this.de(t,n),n.setAttribute("value",o),e&&i&&this.$e()}):i?e.$observe("value",t=>{let e;this.he();const i=n.selected;y(s)&&(this.me(s),e=!0),s=t,this.de(t,n),e&&i&&this.$e()}):r?(t.value=r(t),e.value||(e.$set("value",t.value),this.de(t.value,n)),t.$watch("value",()=>{const i=r(t);e.value||e.$set("value",i);const o=n.selected;s!==i&&(this.me(s),s=i),this.de(i,n),s&&o&&this.$e()})):this.de(e.value,n),e.$observe("disabled",t=>{("true"===t||t&&n.selected)&&(this.Kn?this.$e(!0):(this.Gn.$setViewValue(null),this.Gn.$render()))}),n.addEventListener("$destroy",()=>{const t=this.he(),n=e.value;this.me(n),this.pe(),(this.Kn&&t&&-1!==t.indexOf(n)||t===n)&&this.$e(!0)})}}function Ci(){return{restrict:"E",require:["select","?ngModel"],controller:Oi,priority:1,link:{pre:function(t,n,e,i){const r=i[0],s=i[1];if(s){if(r.Gn=s,n.addEventListener("change",()=>{r.oe();const t=r.he();s.$setViewValue(t)}),e.multiple){let t;r.Kn=!0,r.he=function(){const t=[],e=n.getElementsByTagName("option");return Array.from(e).forEach(n=>{if(n.selected&&!n.disabled){const e=n.value;t.push(e in r.Zn?r.Zn[e]:e)}}),t},r.le=function(t){const e=n.getElementsByTagName("option");Array.from(e).forEach(n=>{const e=!!t&&(W(t,n.value)||W(t,r.Zn[n.value]));e!==n.selected&&(n.selected=e)})};let e=NaN;e!==s.$viewValue||G(t,s.$viewValue)||(t=ht(s.$viewValue),s.$render()),e=s.$viewValue,s.$isEmpty=function(t){return!t||0===t.length}}}else r.registerOption=()=>{}},post:function(t,n,e,i){const r=i[1];if(!r)return;const s=i[0];r.$render=function(){s.le(r.$viewValue)}}}}}function ji(t){return{restrict:"E",priority:100,compile(n,e){let i,r;return y(e.ngValue)||(y(e.value)?i=t(e.value,!0):(r=t(n.textContent,!0),r||e.$set("value",n.textContent))),function(t,n,e){const s="$selectController",o=n.parentElement,c=Gt(o,s)||Gt(o.parentElement,s);c&&c.registerOption(t,n,e,i,r)}}}}function Ai(){return{link(t,n,e){t.$watch(e.ngBind,t=>{n.textContent=X(p(t))},y(e.lazy))}}}function Ti(){return{link(t,n,e){e.$observe("ngBindTemplate",t=>{n.textContent=O(t)?"":t})}}}function Ri(t){return{restrict:"A",compile:(n,e)=>(t(e.ngBindHtml),(t,n)=>{t.$watch(e.ngBindHtml,t=>{(b(t)||x(t))&&(t=""),n.innerHTML=t})})}}function Mi(t,n){return t=`ngClass${t}`,function(){return{link(e,i,r){let s,o=Gt(i,"$classCounts"),c=!0;function u(t,n){const e=[];return t&&t.forEach(t=>{(n>0||o[t])&&(o[t]=(o[t]||0)+n,o[t]===+(n>0)&&e.push(t))}),e.join(" ")}o||(o=Object.create(null),Zt(i,"$classCounts",o)),"ngClass"!==t&&e.$watch("$index",()=>{var t,o;(t=1&e.$index)===n?(o=u(Ii(o=s),1),bt(i)?r.$addClass(o):e.$postUpdate(()=>{""!==o&&i.classList.add(...o.trim().split(" "))})):function(t){t=u(Ii(t),-1),bt(i)?r.$removeClass(t):e.$postUpdate(()=>{""!==t&&i.classList.remove(...t.trim().split(" "))})}(s),c=t}),e.$watch(r[t],t=>{var e;e=Di(t),c===n&&function(t,n){const e=Ii(t),s=Ii(n),o=Pi(e,s),c=Pi(s,e),h=u(o,-1),a=u(c,1);bt(i)?(r.$addClass(a),r.$removeClass(h)):(""!==a&&i.classList.add(...a.trim().split(" ")),""!==h&&i.classList.remove(...h.trim().split(" ")))}(s,e),s=e})}}}}function Pi(t,n){if(!t||!t.length)return[];if(!n||!n.length)return t;const e=[];t:for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<n.length;t++)if(r===n[t])continue t;e.push(r)}return e}function Ii(t){return t&&t.split(" ")}function Di(t){if(!t)return t;let n=t;return k(t)?n=t.map(Di).join(" "):_(t)?n=Et(t).filter(n=>t[n]).join(" "):S(t)||(n=`${t}`),n}ji.$inject=[jt.V],Ri.$inject=[jt.H];const Ni=Mi("",!0),qi=Mi("Odd",0),Ui=Mi("Even",1);function Vi(){return{compile(t,n){n.$set("ngCloak",null)}}}function Fi(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const Li="ng-hide",Hi="ng-hide-animate";function Bi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngShow,n=>{bt(e)?t[n?"removeClass":"addClass"](e,Li,{tempClasses:Hi}):n?e.classList.remove(Li):e.classList.add(Li)})}}}function zi(t){return{restrict:"A",link(n,e,i){n.$watch(i.ngHide,n=>{bt(e)?t[n?"addClass":"removeClass"](e,Li,{tempClasses:Hi}):n?e.classList.add(Li):e.classList.remove(Li)})}}}function Wi(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(n,e,i,r,s){let o,c,u;n.$watch(i.ngIf,n=>{n?c||s((n,i)=>{c=i,o=n,bt(n)?t.enter(n,e.parentElement,e):e.after(n)}):(u&&(nn(u),u=null),c&&(c.$destroy(),c=null),o&&(u=o,bt(u)?t.leave(u).done(t=>{!1!==t&&(u=null)}):e.nextElementSibling?.remove(),o=null))})}}}function Ji(t,n,e,i){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,s){const o=s.ngInclude||s.src,c=s.onload||"",u=s.autoscroll;return(r,s,h,a,l)=>{function f(){!y(u)||u&&!r.$eval(u)||n()}let d,p,m,$=0;const g=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),m&&(bt(m)?e.leave(m).done(t=>{!1!==t&&(p=null)}):m.remove(),p=m,m=null)};r.$watch(o,async n=>{const o=function(t){!1!==t&&f()},u=++$;n?(r.$emit("$includeContentRequested",n),t(n).then(t=>{if(r.hn)return;if(u!==$)return;const i=r.$new();a.template=t;const h=l(i,t=>{g(),bt(t)?e.enter(t,null,s).done(o):(s.after(t),f())});d=i,m=h,d.$emit("$includeContentLoaded",n),r.$eval(c)}).catch(t=>{r.hn||(u===$&&(g(),r.$emit("$includeContentError",n)),i(new Error(t)))})):(g(),a.template=null)})}}}}function Zi(t){return{priority:-400,require:"ngInclude",link(n,e,i,r){e.innerHTML=r.template,t(e.childNodes)(n)}}}function Gi(){return{priority:450,compile:()=>({pre(t,n,e){const i=Qt(n);i?i.$eval(e.ngInit):t.$eval(e.ngInit)}})}}function Ki(){return{terminal:!0,priority:1e3}}Bi.$inject=[jt.C],zi.$inject=[jt.C],Wi.$inject=[jt.C],Ji.$inject=[jt.st,jt.O,jt.C,jt.D],Zi.$inject=[jt.T];const Xi=mt("ngRef");function Yi(t){return{priority:-1,restrict:"A",compile(n,e){const i=vt(z(n)),r=t(e.ngRef),s=r.an||function(){throw Xi("nonassign",'Expression in ngRef="{0}" is non-assignable!',e.ngRef)};return(t,n,o)=>{let c;if(kt(o,"ngRefRead")){if("$element"===o.ngRefRead)c=n;else if(c=Gt(n,`$${o.ngRefRead}Controller`),!c)throw Xi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,e.ngRef)}else c=Gt(n,`$${i}Controller`);c=c||n,s(t,c),n.addEventListener("$destroy",()=>{r(t)===c&&s(t,null)})}}}}Yi.$inject=[jt.H];const Qi="$$NG_REMOVED",tr=mt("ngRepeat"),nr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function er(t){function n(t,n,e,i,r,s,o){t[e]!==i&&(t[e]=i),r&&(t[r]=s),i&&(t.$target.i=i.i),t.$index=n,t.$first=0===n,t.$last=n===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&n))}function e(t){return t.clone}function i(t){return t.clone}function r(t,n,e){return $t(e)}function s(t,n){return n}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,c)=>{const u=c.ngRepeat,h=!!c.animate;let a=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!a)throw tr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",u);const l=a[1],f=a[2],d=a[3];if(a=l.match(nr),!a)throw tr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",l);const p=a[3]||a[1],m=a[2];if(d&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(d)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(d)))throw tr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",d);const $=function(){let t=!1;return(...n)=>{if(!t)return t=!0,(()=>{y(c.lazy)&&y(c.swap)&&document.querySelectorAll(c.swap).forEach(t=>nn(t))})(...n)}}();return function(o,c,a,l,g){let w=Object.create(null);o.$watch(f,a=>{$();let l,f,b=c;const y=Object.create(null);let k,E,_,S,x,O,C;if(d&&(o[d]=a),v(a))x=a,S=r;else{S=s,x=[];for(const t in a)kt(a,t)&&"$"!==t.charAt(0)&&x.push(t)}const j=x.length,A=new Array(j);for(l=0;l<j;l++)if(k=a===x?l:x[l],E=a[k],_=S(o,k,E),w[_])O=w[_],delete w[_],y[_]=O,A[l]=O;else{if(y[_])throw Object.values(A).forEach(t=>{t&&t.scope&&(w[t.id]=O)}),tr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",u,_,E);A[l]={id:_,scope:void 0,clone:void 0},y[_]=!0}for(const n in w){if(O=w[n],C=O.clone,h?t.leave(C):C.remove(),C.parentNode)for(let t=0,n=C.length;t<n;t++)C[t][Qi]=!0;O.scope.$destroy()}for(l=0;l<j;l++)if(k=a===x?l:x[l],E=a[k],O=A[l],O.scope){f=b;do{f=f.nextSibling}while(f&&f[Qi]);e(O)!==f&&t.move(rn(O.clone),null,b),b=i(O),n(O.scope,l,p,E,m,k,j)}else g((e,i)=>{O.scope=i;const r=e;h?t.enter(e,null,b):b.after(e),b=r,O.clone=e,y[O.id]=O,n(O.scope,l,p,E,m,k,j)});w=y},y(a.lazy))}}}}function ir(){return{restrict:"A",link(t,n,e){let i=null;t.$watch(e.ngStyle,t=>{const e=t?.$target||t;if(i)for(const t in i)n.style.removeProperty(t);if(e){i={};for(const t in e){const r=e[t];n.style.setProperty(t,r),i[t]=r}}else i=null})}}}function rr(t){return{require:"ngSwitch",controller:[jt.h,class{constructor(){this.cases={}}}],link(n,e,i,r){const s=i.ngSwitch||i.on;let o=[];const c=[],u=[],h=[],a=function(t,n){return function(e){!1!==e&&t.splice(n,1)}};n.$watch(s,n=>{let e,i,s;for(;u.length;)t.cancel(u.pop());for(e=0,i=h.length;e<i;++e){const n=c[e].clone;h[e].$destroy(),bt(n)?(s=u[e]=t.leave(n),s.done(a(u,e))):n.remove()}c.length=0,h.length=0,(o=r.cases[`!${n}`]||r.cases["?"])&&Object.values(o).forEach(n=>{n.transclude((e,i)=>{h.push(i);const r=n.element,o={clone:e,comment:document.createComment("")};c.push(o),bt(e)?s?requestAnimationFrame(()=>{t.enter(e,r.parentElement,r)}):t.enter(e,r.parentElement,r):ln(e,r.parentElement,r)})})})}}}function sr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){e.ngSwitchWhen.split(e.ngSwitchWhenSeparator).sort().filter((t,n,e)=>e[n-1]!==t).forEach(t=>{i.cases[`!${t}`]=i.cases[`!${t}`]||[],i.cases[`!${t}`].push({transclude:r,element:n})})}}}function or(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,n,e,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:n})}}}er.$inject=[jt.C],rr.$inject=[jt.C];const cr=mt("ngOptions"),ur=document.createElement("option"),hr=document.createElement("optgroup"),ar=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/;function lr(t,n){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,n,e,i){i[0].registerOption=()=>{}},post:function(e,i,r,s){const o=s[0],c=s[1],{multiple:u}=r;for(let t=0,n=i.childNodes,e=n.length;t<e;t++)if(""===n[t].value){o.hasEmptyOption=!0,o.emptyOption=n[t];break}an(i);const h=!!o.emptyOption;let a;ur.cloneNode(!1).nodeValue="?";const l=function(t,e,i){const r=t.match(ar);if(!r)throw cr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,en(e));const s=r[5]||r[7],o=r[6],c=/ as /.test(r[0])&&r[1],u=r[9],h=n(r[2]?r[1]:s),a=c&&n(c)||h,l=u&&n(u),f=u?function(t,n){return l(i,n)}:function(t){return $t(t)},d=function(t,n){return f(t,b(t,n))},p=n(r[2]||r[1]),m=n(r[3]||""),$=n(r[4]||""),g=n(r[8]),w={},b=o?function(t,n){return w[o]=n,w[s]=t,w}:function(t){return w[s]=t,w};class y{constructor(t,n,e,i,r){this.selectValue=t,this.viewValue=n,this.label=e,this.group=i,this.disabled=r}}return{trackBy:u,getTrackByValue:d,getWatchables:g,getOptions(){const t=[],n={},e=g(i)||[],r=function(t){let n;if(!o&&v(t))n=t;else{n=[];for(const e in t)kt(t,e)&&"$"!==e.charAt(0)&&n.push(e)}return n}(e),s=r.length;for(let o=0;o<s;o++){const s=e===r?o:r[o],c=e[s],u=b(c,s),h=a(i,u),l=f(h,u),d=p(i,u),g=m(i,u),w=$(i,u),v=new y(l,h,d,g,w);t.push(v),n[l]=v}return{items:t,selectValueMap:n,getOptionFromViewValue:t=>n[d(t)],getViewValueFromOption:t=>u?structuredClone(t.viewValue):t.viewValue}}}}(r.ngOptions,i,e),f=document.createDocumentFragment();if(o.re=()=>"?",u?(o.le=function(t){if(!a)return;const n=t&&t.map(m)||[];a.items.forEach(t=>{t.element.selected&&!W(n,t)&&(t.element.selected=!1)})},o.he=function(){const t=[],n=i.options;for(let e=0;e<n.length;e++){const i=n[e];if(i.selected){const n=a.selectValueMap[i.value];n&&!n.disabled&&t.push(a.getViewValueFromOption(n))}}return t}):(o.le=function(t){if(!a)return;const n=i.options[i.selectedIndex],e=a.getOptionFromViewValue(t);n&&n.removeAttribute("selected"),e?(i.value!==e.selectValue&&(o.oe(),i.value=e.selectValue,e.element.selected=!0),e.element.setAttribute("selected","selected")):o.fe(t)},o.he=function(){const t=a.selectValueMap[i.value];return t&&!t.disabled?(o.ue(),o.oe(),a.getViewValueFromOption(t)):null},l.trackBy&&e.$watch(l.getTrackByValue(c.$viewValue),()=>{c.$render()})),h){const n=t(o.emptyOption);i.prepend(o.emptyOption),n(e),8===o.emptyOption.nodeType&&(o.hasEmptyOption=!1,o.registerOption=function(t,n){""===n.value&&(o.hasEmptyOption=!0,o.emptyOption=n,c.$render(),n.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&c.$render()}))})}const d=l.getWatchables.ge.body[0].expression?.name;function p(t,n){const e=ur.cloneNode(!1);n.appendChild(e),function(t,n){t.element=n,n.disabled=t.disabled,t.label!==n.label&&(n.label=t.label,n.textContent=t.label),n.value=t.selectValue}(t,e)}function m(t){const n=a.getOptionFromViewValue(t),e=n&&n.element;return e&&!e.selected&&(e.selected=!0),n}e.$watch(d,function(){const t=a&&o.he();if(a)for(let t=a.items.length-1;t>=0;t--){const n=a.items[t];y(n.group)?nn(n.element.parentNode):nn(n.element)}a=l.getOptions();const n={};if(a.items.forEach(t=>{let e;y(t.group)?(e=n[t.group],e||(e=hr.cloneNode(!1),f.appendChild(e),e.label=null===t.group?"null":t.group,n[t.group]=e),p(t,e)):p(t,f)}),i.appendChild(f),c.$render(),!c.$isEmpty(t)){const n=o.he();(l.trackBy||u?G(t,n):t===n)||(c.$setViewValue(n),c.$render())}})}}}}lr.$inject=[jt.T,jt.H];const fr=mt("ngTransclude");function dr(t){return{compile:function(n){const e=t(n.childNodes);return an(n),function(t,n,i,r,s){if(!s)throw fr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",en(n));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");const o=i.ngTransclude||i.ngTranscludeSlot;function c(){e(t,t=>{n.append(t)})}s(function(t,e){var i;(i=t)instanceof Array||3===i.nodeType&&!i.nodeValue.trim()?(c(),e.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{n.append(t)}):n.append(t)},null,o),o&&!s.isSlotFilled(o)&&c()}}}}dr.$inject=[jt.T];const pr=/^\/(.+)\/([a-z]*)$/,mr={};Nt.forEach(t=>{if("multiple"===t)return;function n(n,i,r){n.$watch(r[e],n=>{r.$set(t,!!n)})}const e=vt(`ng-${t}`);let i=n;"checked"===t&&(i=function(t,i,r){r.ngModel!==r[e]&&n(t,0,r)}),mr[e]=function(){return{restrict:"A",priority:100,link:i}}}),_t(l).forEach(([t])=>{mr[t]=function(){return{priority:100,link(n,e,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){const t=i.ngPattern.match(pr);if(t)return void i.$set("ngPattern",new RegExp(t[1],t[2]).toString())}n.$watch(i[t],n=>{i.$set(t,n)})}}}}),["src","srcset","href"].forEach(t=>{const n=vt(`ng-${t}`);mr[n]=[jt.G,function(e){return{priority:99,link(i,r,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(r.href)&&(o="xlinkHref",s.$attr[o]="href"),s.$set(n,e.getTrustedMediaUrl(s[n])),s.$observe(n,n=>{n?s.$set(o,n):"href"===t&&s.$set(o,null)})}}}]});const $r=[jt.H,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=kt(i,"required")||i.ngRequired&&t(i.ngRequired)(n);i.ngRequired||(i.required="true"),r.$validators.required=(t,n)=>!s||!r.$isEmpty(n),i.$observe("required",t=>{s!==t&&(s=t,r.$validate())})}})],gr=[jt.H,t=>({restrict:"A",require:"?ngModel",compile:(n,e)=>{let i,r;return e.ngPattern&&(i=e.ngPattern,r="/"===e.ngPattern.charAt(0)&&pr.test(e.ngPattern)?function(){return e.ngPattern}:e.ngPattern&&t(e.ngPattern)),function(t,n,e,s){if(!s)return;let o=e.pattern;e.ngPattern?o=r(t):i=e.pattern;let c=br(o,i,n);e.$observe("pattern",t=>{const e=c;c=br(t,i,n),(e&&e.toString())!==(c&&c.toString())&&s.$validate()}),s.$validators.pattern=(t,n)=>s.$isEmpty(n)||b(c)||c.test(n)}}})],wr=[jt.H,t=>({restrict:"A",require:"?ngModel",link:(n,e,i,r)=>{if(!r)return;let s=i.maxlength||i.ngMaxlength&&t(i.ngMaxlength)(n),o=yr(s);i.$observe("maxlength",t=>{s!==t&&(o=yr(t),s=t,r.$validate())}),r.$validators.maxlength=function(t,n){return o<0||r.$isEmpty(n)||n.length<=o}}})],vr=[jt.H,t=>({restrict:"A",require:"?ngModel",link(n,e,i,r){if(!r)return;let s=i.minlength||i.ngMinlength&&t(i.ngMinlength)(n),o=yr(s)||-1;i.$observe("minlength",t=>{s!==t&&(o=yr(t)||-1,s=t,r.$validate())}),r.$validators.minlength=function(t,n){return r.$isEmpty(n)||n.length>=o}}})];function br(t,n,e){if(t){if(d(t)&&(t=t.$target),S(t)){const n=t.match(/^\/(.*)\/([gimsuy]*)$/);t=n?new RegExp(n[1],n[2]):new RegExp(`^${t}$`)}if(!t.test)throw mt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",n,t,en(e));return t}}function yr(t){const n=parseInt(t,10);return L(n)?-1:n}class kr{constructor(){this.autoScrollingEnabled=!0}$get=[jt.F,jt.W,(t,n)=>{function e(t){if(t){const n=t.getBoundingClientRect();t.scrollIntoView();const e=function(){let t=i.yOffset;return R(t)?t=t():t instanceof Element?t="fixed"!==window.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom:j(t)||(t=0),t}();e&&window.scrollBy(0,n.top-e)}else window.scrollTo(0,0)}const i=n=>{let i;(n=S(n)?n:j(n)?n.toString():t.getHash())?(i=document.getElementById(n))||(i=function(t){for(let n=0;n<t.length;n++){const e=t[n];if("a"===z(e))return e}}(document.getElementsByName(n)))?e(i):"top"===n&&e():e()};return this.autoScrollingEnabled&&n.$on("$locationChangeSuccess",(t,n,e)=>{const r=Fn(n),s=Fn(e);if(r.hash===s.hash&&""===r.hash)return;const o=()=>i(r.hash);"complete"===document.readyState?queueMicrotask(()=>o()):window.addEventListener("load",()=>o())}),i}]}const Er="-add",_r="-remove",Sr="-active",xr="ng-animate",Or="$$ngAnimateChildren";function Cr(t,n,e){return(k(t)?t:t&&S(t)?t.trim().split(/\s+/):[]).filter(Boolean).map(t=>e?n+t:t+n).join(" ")}function jr(t){const n=t||{};if(!n.we){let t=n.domOperation||(()=>{});n.domOperation=function(){n.ve=!0,t(),t=()=>{}},n.we=!0}return n}function Ar(t,n){Tr(t,n),Rr(t,n)}function Tr(t,n){n&&n.from&&(Object.assign(t.style,n.from),n.from=void 0)}function Rr(t,n){n&&n.to&&(Object.assign(t.style,n.to),n.to=void 0)}function Mr(t,n,e){const i=n.options||{},r=e.options||{};r.preparationClasses&&(i.preparationClasses=[r.preparationClasses,i.preparationClasses].filter(Boolean).join(" "),delete r.preparationClasses),Object.assign(i,r);const s=`${i.addClass||""} ${r.addClass||""}`.trim().split(/\s+/).filter(Boolean),o=`${i.removeClass||""} ${r.removeClass||""}`.trim().split(/\s+/).filter(Boolean),c=new Set((t.getAttribute("class")||"").split(/\s+/).filter(Boolean)),u=[],h=[];return s.forEach(function(t){c.has(t)||u.push(t)}),o.forEach(function(t){c.has(t)&&h.push(t)}),i.addClass=u.length?u.join(" "):void 0,i.removeClass=h.length?h.join(" "):void 0,n.addClass=i.addClass,n.removeClass=i.removeClass,i}function Pr(t,n){const e=n?"paused":"",i="animationPlayState";return Ir(t,[i,e]),[i,e]}function Ir(t,n){const e=n[0];t.style[e]=n[1]}function Dr(t,n){return[t,n].filter(Boolean).join(" ")}const Nr=mt("$animate");function qr(t){return _(t)?t:{}}function Ur(t){const n=this;let e=null,i=null;this.be=Object.create(null),this.register=function(e,i){if(e&&"."!==e.charAt(0))throw Nr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);const r=`${e}-animation`;n.be[e.substring(1)]=r,t.factory(r,i)},this.customFilter=function(t){return 1===arguments.length&&(i=R(t)?t:null),i},this.classNameFilter=function(t){if(1===arguments.length&&(e=t instanceof RegExp?t:null,e)&&new RegExp(`[(\\s|\\/)]${xr}[(\\s|\\/)]`).test(e.toString()))throw e=null,Nr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',xr);return e},this.$get=[jt.k,function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:(t,n)=>void 0!==n?bt(t):(t.setAttribute("animate",`${n}`),!0),cancel(t){t.cancel&&t.cancel()},enter:(n,e,i,r)=>(e=e||i.parentElement,E(n,HTMLElement)&&E(e,HTMLElement)?fn(n,e,i):ln(n,e,i),t.push(n,"enter",qr(r))),move:(n,e,i,r)=>(e=e||i.parentElement,E(n,HTMLElement)&&E(e,HTMLElement)?fn(n,e,i):ln(n,e,i),t.push(n,"move",qr(r))),leave:(n,e)=>t.push(n,"leave",qr(e),()=>{nn(n)}),addClass:(n,e,i)=>((i=qr(i)).addClass=gt(i.addClass,e),t.push(n,"addClass",i)),removeClass:(n,e,i)=>((i=qr(i)).removeClass=gt(i.removeClass,e),t.push(n,"removeClass",i)),setClass:(n,e,i,r)=>((r=qr(r)).addClass=gt(r.addClass,e),r.removeClass=gt(r.removeClass,i),t.push(n,"setClass",r)),animate:(n,e,i,r,s)=>((s=qr(s)).from=s.from?F(s.from,e):e,s.to=s.to?F(s.to,i):i,r=r||"ng-inline-animate",s.tempClasses=gt(s.tempClasses,r),t.push(n,"animate",s))}}]}Ur.$inject=[jt.dt];class Vr{constructor(){this.cache=new Map}$get(){return this.cache}}class Fr{constructor(){this.handler=t=>{throw t}}$get(){return t=>this.handler(t)}}function Lr(){return function(t,n,e,i){if(!v(t)){if(O(t))return t;throw mt("filter")("notarray","Expected array but received: {0}",t)}let r;switch(i=i||"$",zr(n)){case"function":r=n;break;case"boolean":case"null":case"number":case"string":r=Hr(n,e,i,!0);break;case"object":r=Hr(n,e,i,!1);break;default:return t}return Array.from(t).filter(r)}}function Hr(t,n,e,i){e=e??"$";const r=_(t)&&e in t;return!0===n?n=G:R(n)||(n=function(t,n){return!(b(t)||(null===t||null===n?t!==n:_(n)||_(t)&&!B(t)||(t=`${t}`.toLowerCase(),n=`${n}`.toLowerCase(),-1===t.indexOf(n))))}),function(s){return r&&!_(s)?Br(s,t[e],n,e,!1):Br(s,t,n,e,!!i)}}function Br(t,n,e,i,r,s){const o=zr(t),c=zr(n);if("string"===c&&"!"===n.charAt(0))return!Br(t,n.substring(1),e,i,r);if(k(t))return t.some(t=>Br(t,n,e,i,r));switch(o){case"object":if(r){for(const r in t)if(r.charAt&&"$"!==r.charAt(0)&&Br(t[r],n,e,i,!0))return!0;return!s&&Br(t,n,e,i,!1)}if("object"===c){for(const r in n){const s=n[r];if(R(s)||b(s))continue;const o=r===i;if(!Br(o?t:t[r],s,e,i,o,o))return!1}return!0}return e(t,n);case"function":return!1;default:return e(t,n)}}function zr(t){return null===t?"null":typeof t}function Wr(){return function(t,n){return b(n)&&(n=2),et(t,n)}}function Jr(){return function(t,n,e){return R(t)&&(t=t()),L(n=Math.abs(Number(n))===1/0?Number(n):parseInt(n,10))?t:(j(t)&&(t=t.toString()),v(t)?(e=(e=!e||isNaN(e)?0:parseInt(e,10))<0?Math.max(0,t.length+e):e,n>=0?Zr(t,e,e+n):0===e?Zr(t,n,t.length):Zr(t,Math.max(0,e+n),e)):t)}}function Zr(t,n,e){return S(t)?t.slice(n,e):[].slice.call(t,n,e)}function Gr(t){return function(i,r,s,o){if(O(i))return i;if(R(i))return i();if(!v(i))throw mt("orderBy")("notarray","Expected array but received: {0}",i);k(r)||(r=[r??"+"]),0===r.length&&(r=["+"]);const c=r.map(n=>{let e=1,i=t=>t;if(R(n))i=n;else if(S(n)&&("+"!==n.charAt(0)&&"-"!==n.charAt(0)||(e="-"===n.charAt(0)?-1:1,n=n.substring(1)),""!==n)){const e=t(n);if(e.constant){const t=e();i=n=>n[t]}else i=e}return{get:i,descending:e}}),u=s?-1:1,h=R(o)?o:e,a=Array.prototype.map.call(i,function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:c.map(i=>function(t,e){let i=typeof t;return null===t?i="null":"object"===i&&(t=function(t){return R(t.valueOf)&&n(t=t.valueOf())||B(t)&&n(t=t.toString()),t}(t)),{value:t,type:i,index:e}}(i.get(t),e))}});return a.sort(function(t,n){for(let e=0,i=c.length;e<i;e++){const i=h(t.predicateValues[e],n.predicateValues[e]);if(i)return i*c[e].descending*u}return(h(t.tieBreaker,n.tieBreaker)||e(t.tieBreaker,n.tieBreaker))*u}),a.map(t=>t.value)};function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function e(t,n){let e=0;const i=t.type,r=n.type;if(i===r){let r=t.value,s=n.value;"string"===i?(r=r.toLowerCase(),s=s.toLowerCase()):"object"===i&&(_(r)&&(r=t.index),_(s)&&(s=n.index)),r!==s&&(e=r<s?-1:1)}else e="undefined"===i?1:"undefined"===r?-1:"null"===i?1:"null"===r||i<r?-1:1;return e}}Gr.$inject=[jt.H];const Kr="Filter";class Xr{static $inject=[jt.dt];constructor(t){at(y(t)),this.ye=t,_t({filter:Lr,json:Wr,limitTo:Jr,orderBy:Gr}).forEach(([t,n])=>this.register(t,n))}register(t,n){return In(t,"name"),Mn(R,n,"factory"),this.ye.factory(t+Kr,n),this}$get=[jt.gt,t=>n=>(In(n,"name"),t.get(n+Kr))]}const Yr=mt("$interpolate");function Qr(t,n){throw Yr("interr","Can't interpolate: {0}\n{1}",t,n.toString())}class ts{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[jt.H,jt.G,(t,n)=>{const e=this,i=this.startSymbol.length,r=this.endSymbol.length,s=new RegExp(e.startSymbol.replace(/./g,c),"g"),o=new RegExp(e.endSymbol.replace(/./g,c),"g");function c(t){return`\\\\\\${t}`}function u(t){return t.replace(s,e.startSymbol).replace(o,e.endSymbol)}function h(s,o,c,h){const a=c===n.URL||c===n.MEDIA_URL;if(!s.length||-1===s.indexOf(e.startSymbol)){if(o)return;let t=u(s);a&&(t=n.getTrusted(c,t));const e=()=>t;return e.exp=s,e.expressions=[],e}let l,f;h=!!h;let d=0;const p=[],m=s.length;let $;const g=[],w=[];for(;d<m;){if(-1===(l=s.indexOf(e.startSymbol,d))||-1===(f=s.indexOf(e.endSymbol,l+i))){d!==m&&g.push(u(s.substring(d)));break}d!==l&&g.push(u(s.substring(d,l))),$=s.substring(l+i,f),p.push($),d=f+r,w.push(g.length),g.push("")}const v=1===g.length&&1===w.length,k=a&&v?void 0:function(t){try{return t=c&&!a?n.getTrusted(c,t):n.valueOf(t),h&&!y(t)?t:X(t)}catch(t){return Qr(s,t)}},E=p.map(n=>t(n,k));if(!o||p.length){const t=function(t){for(let n=0,e=p.length;n<e;n++){if(h&&b(t[n]))return;g[w[n]]=t[n]}return a?n.getTrusted(c,v?g[0]:g.join("")):(c&&g.length>1&&function(t){throw Yr("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(s),g.join(""))},e=(n,e)=>{const i=p.length,r=new Array(i);try{for(let s=0;s<i;s++){if(e){const r=p[s].trim();n.$watch(r,()=>{const r=new Array(i);for(let t=0;t<i;t++)r[t]=E[t](n);e(t(r))})}r[s]=E[s](n)}return t(r)}catch(t){return Qr(s,t)}};return e.exp=s,e.expressions=p,e}}return h.startSymbol=function(){return e.startSymbol},h.endSymbol=function(){return e.endSymbol},h}]}const ns=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,es=mt("$location");let is,rs,ss,os=!1;class cs{constructor(t,n,e=!0,i){this.appBase=t,this.appBaseNoFile=n,this.html5=e,this.basePrefix=e?i||"":void 0,this.hashPrefix=e?void 0:i,this.absUrl="",this.ut=void 0,this.ke=void 0}setUrl(t){const n=ns.exec(t);return void 0===n[1]&&""!==t||this.setPath(n[1]||""),void 0===n[2]&&void 0===n[1]&&""!==t||this.setSearch(n[3]||""),this.setHash(n[5]||""),this}getUrl(){return this.ut}setPath(t){const n=null!==t?t.toString():"";return is="/"===n.charAt(0)?n:`/${n}`,this.Ee(),this}getPath(){return is}setHash(t){return ss=null!==t?t.toString():"",this.Ee(),this}getHash(){return ss}setSearch(t,n){if(1===arguments.length)if(S(t)||j(t))t=t.toString(),rs=it(t);else{if(!_(t))throw es("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");_t(t=structuredClone(t,{})).forEach(([n,e])=>{x(e)&&delete t[n]}),rs=t}else b(n)||null===n?delete rs[t]:rs[t]=n;return this.Ee(),this}getSearch(){return rs}Ee(){this.ut=function(t,n,e){const i=rt(n),r=e?`#${ot(e)}`:"";return function(t){const n=t.split("/");let e=n.length;for(;e--;){const t=decodeURIComponent(n[e].replace(/%2F/gi,"/"));n[e]=ot(t)}return n.join("/")}(t)+(i?`?${i}`:"")+r}(is,rs,ss),this.absUrl=this.html5?this.appBaseNoFile+this.ut.substring(1):this.appBase+(this.ut?this.hashPrefix+this.ut:""),os=!0,setTimeout(()=>this.ke&&this.ke())}setState(t){if(!this.html5)throw es("nostate","History API state support is available only in HTML5 mode");return this.X=b(t)?null:t,os=!0,this}getState(){return this.X}parseLinkUrl(t,n){if(this.html5){if(n&&"#"===n[0])return this.setHash(n.slice(1)),!0;let e,i,r;return y(e=as(this.appBase,t))?(i=e,r=this.basePrefix&&y(e=as(this.basePrefix,e))?this.appBaseNoFile+(as("/",e)||e):this.appBase+i):y(e=as(this.appBaseNoFile,t))?r=this.appBaseNoFile+e:this.appBaseNoFile===`${t}/`&&(r=this.appBaseNoFile),r&&this.parse(r),!!r}return ls(this.appBase)===ls(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const n=as(this.appBaseNoFile,t);if(!S(n))throw es("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);hs(n,!0),is||(is="/"),this.Ee()}else{const e=as(this.appBase,t)||as(this.appBaseNoFile,t);let i;function r(t,n,e){const i=/^\/[A-Z]:(\/.*)/;if(Ot(n,e)&&(n=n.replace(e,"")),i.exec(n))return t;const r=i.exec(t);return r?r[1]:t}b(e)||"#"!==e.charAt(0)?this.html5?i=e:(i="",b(e)&&(this.appBase=t)):(i=as(this.hashPrefix,e),b(i)&&(i=e)),hs(i,!1),is=r(is,i,this.appBase),this.Ee()}}}class us{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this._e=[],this.Se=!1,this.xe=null,this.Oe=null,this.Ce=window.location.href,this.cacheState()}setUrl(t,n){if(void 0===n&&(n=null),t){if(t=new URL(t).href,this.Ce===t&&this.Oe===n)return this;this.Ce=t,this.Oe=n,history.pushState(n,"",t),this.cacheState()}return this}getBrowserUrl(){return Hn(window.location.href)}state(){return this.xe}cacheState(){const t=history.state??null;G(t,this.lastCachedState)||(this.xe=t,this.lastCachedState=t,this.Oe=t)}#t(){const t=this.Oe;this.cacheState(),this.Ce===this.getBrowserUrl()&&t===this.xe||(this.Ce=this.getBrowserUrl(),this.Oe=this.xe,this._e.forEach(t=>{t(Hn(window.location.href),this.xe)}))}#n(t){this.Se||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.Se=!0),this._e.push(t)}$get=[jt.W,jt.J,jt.D,(t,n,e)=>{const i=dn(),r=Hn(window.location.href);let s;if(this.html5ModeConf.enabled){if(!i&&this.html5ModeConf.requireBase)throw es("nobase","$location in HTML5 mode requires a <base> tag to be present!");s=function(t){const n=t.indexOf("//")+2,e=t.indexOf("/",n);return-1===e?t:t.substring(0,e)}(r)+(i||"/")}else s=ls(r);const o=(c=s).substring(0,ls(c).lastIndexOf("/")+1);var c;const u=new cs(s,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`);u.parseLinkUrl(r,r),u.X=this.state();const h=/^\s*(javascript|mailto):/i,a=(t,n)=>{const i=u.getUrl(),r=u.X;try{this.setUrl(t,n),u.X=this.state()}catch(t){u.setUrl(i),u.X=r,e(t)}};n.addEventListener("click",t=>{const{rewriteLinks:e}=this.html5ModeConf;if(!e||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let i=t.target;for(;"a"!==i.nodeName.toLowerCase();)if(i===n||!(i=i.parentElement))return;if(S(e)&&b(i.getAttribute(e)))return;let r=i.href;const s=i.getAttribute("href")||i.getAttribute("xlink:href");_(r)&&"[object SVGAnimatedString]"===r.toString()&&(r=new URL(r.animVal).href),h.test(r)||!r||i.getAttribute("target")||t.defaultPrevented||u.parseLinkUrl(r,s)&&t.preventDefault()}),u.absUrl!==r&&this.setUrl(u.absUrl,!0);let l=!0;this.#n((n,e)=>{Ot(n,o)?queueMicrotask(()=>{const i=u.absUrl,r=u.X;u.parse(n),u.X=e;const{defaultPrevented:s}=t.$broadcast("$locationChangeStart",n,i,e,r);u.absUrl===n&&(s?(u.parse(i),u.X=r,a(i,r)):(l=!1,d(i,r)))}):window.location.href=n});const f=()=>{if(l||os){os=!1;const e=this.getBrowserUrl();let i=u.absUrl;const r=this.state(),s=(n=i,!(fs(e)===fs(n))||u.html5&&r!==u.X);(l||s)&&(l=!1,setTimeout(()=>{i=u.absUrl;const{defaultPrevented:n}=t.$broadcast("$locationChangeStart",u.absUrl,e,u.X,r);u.absUrl===i&&(n?(u.parse(e),u.X=r):(s&&a(i,r===u.X?null:u.X),d(e,r)))}))}var n};return u.ke=f,f(),t.$on("$updateBrowser",f),u;function d(n,e){t.$broadcast("$locationChangeSuccess",u.absUrl,n,u.X,e)}}]}function hs(t,n){if(/^\s*[\\/]{2,}/.test(t))throw es("badpath",'Invalid url "{0}".',t);const e="/"!==t.charAt(0);e&&(t=`/${t}`);const i=Fn(t),r=e&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;is=function(t,n){const e=t.split("/");let i=e.length;for(;i--;)e[i]=decodeURIComponent(e[i]),n&&(e[i]=e[i].replace(/\//g,"%2F"));return e.join("/")}(r,n),rs=it(i.search),ss=decodeURIComponent(i.hash),is&&"/"!==is.charAt(0)&&(is=`/${is}`)}function as(t,n){if(Ot(n,t))return n.substring(t.length)}function ls(t){const n=t.indexOf("#");return-1===n?t:t.substring(0,n)}function fs(t){const n=document.createElement("a");n.href=t;let e=n.href;return e.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(e)&&(e=e.slice(0,-1)),e.endsWith("#")&&(e=e.slice(0,-1)),e}class ds{constructor(){this.debug=!1,this.je=null}setLogger(t){this.je=t}Ae(t){return T(t)&&t.stack&&(t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack),t}Te(t){const n=window.console||{},e=n[t]||n.log||(()=>{});return(...t)=>{const i=t.map(t=>this.Ae(t));return e.apply(n,i)}}$get(){return this.je?this.je():{log:this.Te("log"),info:this.Te("info"),warn:this.Te("warn"),error:this.Te("error"),debug:(()=>{const t=this.Te("debug");return(...n)=>{this.debug&&t.apply(this,n)}})()}}}const ps=mt("$parse"),ms={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},$s=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" ")),gs=10,ws=11;class vs{constructor(t){this.Re=t}compile(t){const n=bs(t,this.Re),{body:e}=n,i=function(t){const n=t.body[0];if(1===t.body.length&&n?.expression&&ys(n.expression))return{type:3,left:n.expression,right:{type:17},operator:"="}}(n);let r;i&&(r=this.#e(i));const s=function(t){if(1!==t.length)return;const n=t[0].expression,e=n.toWatch;return 1!==e.length||e[0]!==n?e:void 0}(e);let o;if(s){o=[];for(const[t,n]of _t(s)){const e=this.#e(n);n.input=e,o.push(e),n.watchId=t}}const c=[];e.forEach(t=>{c.push(this.#e(t.expression))});const u=0===e.length?()=>{}:1===e.length?c[0]:function(t,n){let e;for(let i=0;i<c.length;i++)e=c[i](t,n);return e};return r&&(u.an=(t,n,e)=>r(t,e,n)),o&&(u.ln=o),u.ge=n,u}#e(t,n,e){let i,r;const s=this;let o;switch(t.type){case ws:return this.value(t.value,n);case 7:return r=this.#e(t.argument),this[`unary${t.operator}`](r,n);case 6:case 5:return i=this.#e(t.left),r=this.#e(t.right),this[`binary${t.operator}`](i,r,n);case 4:return this["ternary?:"](this.#e(t.test),this.#e(t.alternate),this.#e(t.consequent),n);case gs:return s.identifier(t.name,n,e);case 9:return i=this.#e(t.object,!1,!!e),t.computed||(r=t.property.name),t.computed&&(r=this.#e(t.property)),t.computed?this.#i(i,r,n,e):this.nonComputedMember(i,r,n,e);case 8:return o=[],t.arguments.forEach(t=>{o.push(s.#e(t))}),t.filter&&(r=this.Re(t.callee.name)),t.filter||(r=this.#e(t.callee,!0)),t.filter?(t,e,i)=>{const s=[];for(let n=0;n<o.length;++n){const r=o[n](t&&p(t),e,i);s.push(r)}const c=()=>r.apply(void 0,s);return n?{context:void 0,name:void 0,value:c}:c()}:(t,e,i)=>{const s=r(t.$target?t.$target:t,e,i);let c;if(!O(s.value)&&R(s.value)){const n=[];for(let r=0;r<o.length;++r){const s=o[r](t,e,i);n.push(R(s)?s():s)}c=s.value.apply(s.context,n)}return n?{value:c}:c};case 3:return i=this.#e(t.left,!0,1),r=this.#e(t.right),(t,e,s)=>{const o=i(t,e,s),c=r(t,e,s);return(d(o.context)?o.context:o.context.$proxy??o.context)[o.name]=c,n?{value:c}:c};case 12:return o=[],t.elements.forEach(t=>{o.push(s.#e(t))}),(t,e,i)=>{const r=[];for(let n=0;n<o.length;++n)r.push(o[n](t,e,i));return n?{value:r}:r};case 14:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:s.#e(t.key),computed:!0,value:s.#e(t.value)}):o.push({key:t.key.type===gs?t.key.name:`${t.key.value}`,computed:!1,value:s.#e(t.value)})}),(t,e,i)=>{const r={};for(let n=0;n<o.length;++n)o[n].computed?r[o[n].key(t,e,i)]=o[n].value(t,e,i):r[o[n].key]=o[n].value(t,e,i);return n?{value:r}:r};case 15:return t=>n?{value:t}:t.$proxy;case 16:return(t,e)=>n?{value:e}:e;case 17:return(t,e,i)=>n?{value:i}:i}}"unary+"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=y(s)?+s:0,n?{value:s}:s}}"unary-"(t,n){return(e,i,r)=>{let s=t(e,i,r);return s=y(s)?-s:-0,n?{value:s}:s}}"unary!"(t,n){return(e,i,r)=>{const s=!t(e,i,r);return n?{value:s}:s}}"binary+"(t,n,e){return(i,r,s)=>{const o=function(t,n){return void 0===t||_(t)?n:void 0===n||_(n)?t:t+n}(t(i,r,s),n(i,r,s));return e?{value:o}:o}}"binary-"(t,n,e){return(i,r,s)=>{const o=t(i,r,s),c=n(i,r,s),u=(y(o)?o:0)-(y(c)?c:0);return e?{value:u}:u}}"binary*"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)*n(i,r,s);return e?{value:o}:o}}"binary/"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)/n(i,r,s);return e?{value:o}:o}}"binary%"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)%n(i,r,s);return e?{value:o}:o}}"binary==="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)===n(i,r,s);return e?{value:o}:o}}"binary!=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!==n(i,r,s);return e?{value:o}:o}}"binary=="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)==n(i,r,s);return e?{value:o}:o}}"binary!="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)!=n(i,r,s);return e?{value:o}:o}}"binary<"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<n(i,r,s);return e?{value:o}:o}}"binary>"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>n(i,r,s);return e?{value:o}:o}}"binary<="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)<=n(i,r,s);return e?{value:o}:o}}"binary>="(t,n,e){return(i,r,s)=>{const o=t(i,r,s)>=n(i,r,s);return e?{value:o}:o}}"binary&&"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)&&n(i,r,s);return e?{value:o}:o}}"binary||"(t,n,e){return(i,r,s)=>{const o=t(i,r,s)||n(i,r,s);return e?{value:o}:o}}"ternary?:"(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o)?n(r,s,o):e(r,s,o);return i?{value:c}:c}}value(t,n){return()=>n?{context:void 0,name:void 0,value:t}:t}identifier(t,n,e){return(i,r)=>{const s=r&&t in r?r:(i&&i.$proxy)??i;let o;return e&&1!==e&&s&&O(s[t])&&(s[t]={}),s&&(o=p(s)[t]),n?{context:s,name:t,value:o}:o}}#i(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);let u,h;return O(c)||(u=n(r,s,o),u=function(t){return`${t}`}(u),i&&1!==i&&c&&!c[u]&&(c[u]={}),h=c[u]),e?{context:c,name:u,value:h}:h}}nonComputedMember(t,n,e,i){return(r,s,o)=>{const c=t(r,s,o);i&&1!==i&&c&&O(c[n])&&(c[n]={});const u=O(c)?void 0:c[n];return e?{context:c,name:n,value:u}:u}}}function bs(t,n,e){let i,r,s;const o=t;let c,u,h,a,l,f,d,p;const m=o.isPure=!!function(t,n){switch(t.type){case 9:if(t.computed)return!1;break;case 7:return 1;case 6:return"+"!==t.operator&&1;case 8:return!1}return void 0===n?2:n}(t,e);switch(t.type){case 1:return i=!0,o.body.forEach(t=>{const e=bs(t.expression,n,m);i=i&&e.constant}),o.constant=i,o;case ws:return o.constant=!0,o.toWatch=[],o;case 7:{const t=bs(o.argument,n,m);return o.constant=t.constant,o.toWatch=t.toWatch||[],o}case 6:return c=bs(o.left,n,m),u=bs(o.right,n,m),o.constant=c.constant&&u.constant,o.toWatch=c.toWatch.concat(u.toWatch),o;case 5:return c=bs(o.left,n,m),u=bs(o.right,n,m),o.constant=c.constant&&u.constant,o.toWatch=o.constant?[]:[t],o;case 4:return h=bs(t.test,n,m),a=bs(t.alternate,n,m),l=bs(t.consequent,n,m),o.constant=h.constant&&a.constant&&l.constant,o.toWatch=o.constant?[]:[t],o;case gs:return o.constant=!1,o.toWatch=[t],o;case 9:return f=bs(t.object,n,m),t.computed&&(d=bs(t.property,n,m)),o.constant=f.constant&&(!o.computed||d.constant),o.toWatch=o.constant?[]:[t],o;case 8:return s=t.filter,i=s,r=[],t.arguments.forEach(t=>{const e=bs(t,n,m);i=i&&e.constant,r.push.apply(r,e.toWatch)}),o.constant=i,o.toWatch=s?r:[o],o;case 3:return c=bs(t.left,n,m),u=bs(t.right,n,m),o.constant=c.constant&&u.constant,o.toWatch=[o],o;case 12:return i=!0,r=[],t.elements.forEach(t=>{const e=bs(t,n,m);i=i&&e.constant,r.push.apply(r,e.toWatch)}),o.constant=i,o.toWatch=r,o;case 14:return i=!0,r=[],t.properties.forEach(t=>{const e=bs(t.value,n,m);i=i&&e.constant,r.push.apply(r,e.toWatch),t.computed&&(p=bs(t.key,n,!1),i=i&&p.constant,r.push.apply(r,e.toWatch))}),o.constant=i,o.toWatch=r,o;case 15:case 16:return o.constant=!1,o.toWatch=[],o;default:throw new Error(`Unknown AST node type: ${t.type}`)}}function ys(t){return t.type===gs||9===t.type}const ks=mt("$parse"),Es={true:!0,false:!1,null:null,undefined:void 0};class _s{constructor(t){this.Me=t,this.Pe={this:{type:15},$locals:{type:16}},this.Ie=0}De(t){this.Ne=t,this.qe=this.Me.Ue(t);const n=this.Ve();return this.qe.length>this.Ie&&this.Fe("is an unexpected token",this.qe[this.Ie]),n}Ve(){const t=[];let n=!0;for(;n;)this.qe&&this.qe.length>this.Ie&&!this.Le("}",")",";","]")&&t.push(this.He()),this.Be(";")||(n=!1);return{type:1,body:t}}He(){return{type:2,expression:this.ze()}}ze(){let t=this.We();for(;this.Be("|");)t=this.N(t);return t}We(){let t=this.Je();if(this.Be("=")){if(!ys(t))throw ks("lval","Trying to assign a value to a non l-value");t={type:3,left:t,right:this.We(),operator:"="}}return t}Je(){const t=this.Ze();if(this.Be("?")){const n=this.We();if(this.Ge(":"))return{type:4,test:t,alternate:n,consequent:this.We()}}return t}Ze(){let t=this.Ke();for(;this.Be("||");)t={type:5,operator:"||",left:t,right:this.Ke()};return t}Ke(){let t=this.Xe();for(;this.Be("&&");)t={type:5,operator:"&&",left:t,right:this.Xe()};return t}Xe(){let t,n=this.Ye();for(;t=this.Be("==","!=","===","!==");)n={type:6,operator:t.text,left:n,right:this.Ye()};return n}Ye(){let t,n=this.Qe();for(;t=this.Be("<",">","<=",">=");)n={type:6,operator:t.text,left:n,right:this.Qe()};return n}Qe(){let t,n=this.ti();for(;t=this.Be("+","-");)n={type:6,operator:t.text,left:n,right:this.ti()};return n}ti(){let t,n=this.ni();for(;t=this.Be("*","/","%");)n={type:6,operator:t.text,left:n,right:this.ni()};return n}ni(){let t;return(t=this.Be("+","-","!"))?{type:7,operator:t.text,prefix:!0,argument:this.ni()}:this.ei()}ei(){let t,n;for(this.Be("(")?(t=this.ze(),this.Ge(")")):this.Be("[")?t=this.ii():this.Be("{")?t=this.ri():kt(this.Pe,this.Le().text)?t=structuredClone(this.Pe[this.Ge().text]):kt(Es,this.Le().text)?t={type:ws,value:Es[this.Ge().text]}:this.Le().identifier?t=this.si():this.Le().constant?t=this.oi():this.Fe("not a primary expression",this.Le());n=this.Be("(","[",".");)if("("===n.text)t={type:8,callee:t,arguments:this.ci()},this.Ge(")");else if("["===n.text)t={type:9,object:t,property:this.We(),computed:!0},this.Ge("]");else{if("."!==n.text)throw new Error("IMPOSSIBLE");t={type:9,object:t,property:this.si(),computed:!1}}return t}N(t){const n=[t],e={type:8,callee:this.si(),arguments:n,filter:!0};for(;this.Be(":");)n.push(this.We());return e}ci(){const t=[];if(")"!==this.ui().text)do{t.push(this.ze())}while(this.Be(","));return t}si(){const t=this.Ge();return t.identifier||this.Fe("is not a valid identifier",t),{type:gs,name:t.text}}oi(){return{type:ws,value:this.Ge().value}}ii(){const t=[];if("]"!==this.ui().text)do{if(this.Le("]"))break;t.push(this.We())}while(this.Be(","));return this.Ge("]"),{type:12,elements:t}}ri(){const t=[];let n;if("}"!==this.ui().text)do{if(this.Le("}"))break;n={type:13,kind:"init"},this.Le().constant?(n.key=this.oi(),n.computed=!1,this.Ge(":"),n.value=this.We()):this.Le().identifier?(n.key=this.si(),n.computed=!1,this.Le(":")?(this.Ge(":"),n.value=this.We()):n.value=n.key):this.Le("[")?(this.Ge("["),n.key=this.We(),this.Ge("]"),n.computed=!0,this.Ge(":"),n.value=this.We()):this.Fe("invalid key",this.Le()),t.push(n)}while(this.Be(","));return this.Ge("}"),{type:14,properties:t}}Fe(t,n){throw ks("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",n.text,t,n.index+1,this.Ne,this.Ne?.substring(n.index))}Ge(t){if(this.qe&&this.qe.length===this.Ie)throw ks("ueoe","Unexpected end of expression: {0}",this.Ne);return(y(t)?this.Be(t):this.Be())||void this.Fe(`is unexpected, expecting [${t}]`,this.Le())}ui(){if(this.qe&&this.qe.length!==this.Ie)return this.qe[this.Ie];throw ks("ueoe","Unexpected end of expression: {0}",this.Ne)}Le(...t){const n=this.qe&&this.qe[this.Ie];if(!n)return!1;const e=t.length;if(!e)return n;const i=n.text;if(1===t.length)return t[0]===i&&n;for(let r=0;r<e;r++)if(t[r]===i||!t[r])return n;return!1}Be(...t){const n=this.Le(...t);return!!n&&(this.Ie++,n)}}class Ss{constructor(t,n){this.De=new _s(t),this.hi=new vs(n)}H(t){t=t.trim();const n=this.De.De(t),e=this.hi.compile(n);return e.Bt=function(t){const{body:n}=t;if(!n||1!==n.length)return!0;if(!n||1!==n.length)return!0;switch(n[0].expression?.type){case ws:case 12:case 14:return!0;default:return!1}}(n),e.constant=!!n.constant,e}}const xs=new class{constructor(){this.Ne="",this.Ie=0}Ue(t){for(this.Ne=t,this.Ie=0,this.qe=[];this.Ie<this.Ne.length;){const t=this.Ne.charAt(this.Ie);if('"'===t||"'"===t)this.ai(t);else if(this.li(t)||"."===t&&this.li(this.Le()))this.fi();else if(this.di(this.pi()))this.mi();else if(this.$i(t,"(){}[].,;:?"))this.qe.push({index:this.Ie,text:t}),this.Ie++;else if(this.gi(t))this.Ie++;else{const n=t+this.Le(),e=n+this.Le(2),i=$s.has(t),r=$s.has(n),s=$s.has(e);if(i||r||s){const i=s?e:r?n:t;this.qe.push({index:this.Ie,text:i,operator:!0}),this.Ie+=i.length}else this.Fe("Unexpected next character ",this.Ie,this.Ie+1)}}return this.qe}$i(t,n){return-1!==n.indexOf(t)}Le(t){const n=t||1;return this.Ie+n<this.Ne.length&&this.Ne.charAt(this.Ie+n)}li(t){return t>="0"&&t<="9"&&"string"==typeof t}gi(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}di(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}wi(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}pi(){const t=this.Ne.charAt(this.Ie),n=this.Le();if(!n)return t;const e=t.charCodeAt(0),i=n.charCodeAt(0);return e>=55296&&e<=56319&&i>=56320&&i<=57343?t+n:t}bi(t){return"-"===t||"+"===t||this.li(t)}Fe(t,n,e){e=e||this.Ie;const i=y(n)?`s ${n}-${this.Ie} [${this.Ne.substring(n,e)}]`:` ${e}`;throw ps("lexerr",`Lexer Error: ${t} at column${i} in expression [${this.Ne}].`)}fi(){let t="";const n=this.Ie;for(;this.Ie<this.Ne.length;){const n=this.Ne.charAt(this.Ie).toLowerCase();if("."===n||this.li(n))t+=n;else{const e=this.Le();if("e"===n&&this.bi(e))t+=n;else if(this.bi(n)&&e&&this.li(e)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.bi(n)||e&&this.li(e)||"e"!==t.charAt(t.length-1))break;this.Fe("Invalid exponent")}}this.Ie++}this.qe.push({index:n,text:t,constant:!0,value:Number(t)})}mi(){const t=this.Ie;for(this.Ie+=this.pi().length;this.Ie<this.Ne.length;){const t=this.pi();if(!this.wi(t))break;this.Ie+=t.length}this.qe.push({index:t,text:this.Ne.slice(t,this.Ie),identifier:!0})}ai(t){const n=this.Ie;let e="",i=!1;for(this.Ie++;this.Ie<this.Ne.length;){const r=this.Ne[this.Ie];if(i)e+="u"===r?this.yi():ms[r]||r,i=!1;else if("\\"===r)i=!0;else{if(r===t)return this.qe.push({index:n,text:this.Ne.slice(n,this.Ie+1),constant:!0,value:e}),void this.Ie++;e+=r}this.Ie++}this.Fe("Unterminated quote",n)}yi(){const t=this.Ne.substring(this.Ie+1,this.Ie+5);return t.match(/[\da-f]{4}/i)||this.Fe(`Invalid unicode escape [\\u${t}]`),this.Ie+=4,String.fromCharCode(parseInt(t,16))}};class Os{constructor(){const t=Object.create(null);this.$get=[jt.N,function(n){return function(e,i){let r;return Pn(e,"exp"),e=e.trim(),r=t[e],r||(r=new Ss(xs,n).H(e)),function(t,n){if(!n)return t;const e=function(e,i,r){if(e?.getter)return;const s=t(e,i,r),o=R(s)?s():s;return n(p(o))};return e.ki=n,e.Bt=t.Bt,e.constant=t.constant,e.ge=t.ge,e}(r,i)}}]}}let Cs,js,As=0;const Ts=[];class Rs{constructor(){this.rootScope=Ms()}$get=[jt.D,jt.H,(t,n)=>(js=t,Cs=n,this.rootScope)]}function Ms(t={},n){if(!_(t)||function(t){if(null==t||"number"==typeof t||"string"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t)return!0;if(!0===t.$nonscope||!0===t?.constructor?.$nonscope)return!0;if(t===Ps.window||t===Ps.document||t===Ps.self||t===Ps.frames)return!0;const n=[Window,Document,Element,Node,EventTarget,Promise,HTMLCollection,NodeList,Event,Date,RegExp,Map,Set,WeakMap,WeakSet,ArrayBuffer,DataView,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array,Function,Error,Blob,File,FormData,URL,URLSearchParams];for(const e of n)try{if(t instanceof e)return!0}catch{}try{return Object.prototype.toString.call(t)===Is}catch{return!1}}(t))return t;const e=new Proxy(t,n||new Ds),i=Et(t),r=k(t.constructor?.$nonscope)?t.constructor.$nonscope:null,s=k(t.$nonscope)?t.$nonscope:null;for(let n=0,o=i.length;n<o;n++){const o=i[n];r?.includes(o)||s?.includes(o)||(t[o]=Ms(t[o],e.$handler))}return e}const Ps=globalThis,Is="[object Window]";class Ds{constructor(t,n){this.dn=t?.dn??new Map,this.Ei=new Map,this._i=t?._i??new Map,this.Si=t?.Si??new Set,this.xi=t?.xi??new WeakMap,this.$proxy,this.$handler=this,this.$target=null,this.Oi=[],this.$id=(As+=1,As),this.$root=t?t.$root:this,this.$parent=n||(this.$root===this?void 0:t),this.hn=!1,this.Ci=[],this.$scopename=void 0,this.propertyMap={$apply:this.$apply.bind(this),$broadcast:this.$broadcast.bind(this),Oi:this.Oi,$destroy:this.$destroy.bind(this),$emit:this.$emit.bind(this),$eval:this.$eval.bind(this),$flushQueue:this.$flushQueue.bind(this),$getById:this.$getById.bind(this),$handler:this,$id:this.$id,$isRoot:this.#r.bind(this),$merge:this.$merge.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$on:this.$on.bind(this),$parent:this.$parent,$postUpdate:this.$postUpdate.bind(this),$proxy:this.$proxy,$root:this.$root,$scopename:this.$scopename,$searchByName:this.$searchByName.bind(this),$transcluded:this.$transcluded.bind(this),$watch:this.$watch.bind(this)}}set(t,n,e,i){if("undefined"===n)return!1;if("$scopename"===n)return this.$scopename=e,!0;const r=t.constructor?.$nonscope??t.$nonscope;if(k(r)&&r.includes(n))return t[n]=e,!0;this.$proxy=i,this.$target=t;const s=t[n];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(e))return!0;if(s&&s[f]){if(k(e)){if(s!==e){const t=this.dn.get(n);t&&this.#s(t);const e=this._i.get(n);e&&this.#s(e)}return this.xi.get(t[n])&&this.xi.delete(t[n]),t[n]=Ms(e,this),this.xi.set(t[n],[n]),!0}if(_(e)){if(kt(t,n)){const t=Et(s);for(const n of t)e[n]||delete s[n]}if(s!==e){const t=this.dn.get(n);t&&this.#s(t);const i=this._i.get(n);i&&this.#s(i),this.#o(e)}return t[n]=Ms(e,this),!0}if(b(e)){let e=!1;const i=Et(s.$target),r=s.$target;let o=0;for(;o<i.length;o++){const t=i[o],n=r[t];n&&n[f]&&(e=!0),delete s[t]}if(t[n]=void 0,!e){const t=this.dn.get(n);t&&this.#s(t)}return!0}if(y(e)){t[n]=e;const r=this.dn.get(n);if(r&&this.#s(r),k(t)&&this.xi.has(i)&&"length"!==n){const t=this.xi.get(i);for(let n=0,e=t.length;n<e;n++){const e=this.dn.get(t[n]);e&&this.#s(e)}}return!0}return!0}if(b(t[n])&&d(e)&&(this.Si.add(e),t[n]=e,!this.dn.has(n)))return!0;if(b(e)?t[n]=e:t[n]=Ms(e,this),s!==e){let i=this.$target;const r=[];if(b(s)&&_(t[n])){this.xi.has(t[n])||this.xi.set(t[n],[n]);const s=Et(e);for(let t=0,n=s.length;t<n;t++){const n=s[t],e=this.dn.get(n);if(e)for(let t=0,n=e.length;t<n;t++)r.push(e[t])}i=e}if(k(t)){const t=this.dn.get("length");if(t)for(let n=0,e=t.length;n<e;n++)r.push(t[n])}const o=this.dn.get(n);if(o)for(let t=0,n=o.length;t<n;t++)r.push(o[t]);r.length>0&&this.#s(r,t=>{const n=[];for(let e=0,r=t.length;e<r;e++){const r=t[e];if(!r.watchProp){n.push(r);continue}const s=r.watchProp.split(".").slice(0,-1).join("."),o=Cs(s)(r.originalTarget);i===o?.$target&&n.push(r)}return n});let c=this._i.get(n);if(!c&&this.$parent?._i&&(c=this.$parent._i.get(n)),c){let t=c;const n=this.$target.i;if(n){t=[];for(let e=0,i=c.length;e<i;e++){const i=c[e];i.originalTarget.i===n&&t.push(i)}}t.length>0&&this.#s(t)}}if(this.xi.has(i)&&"length"!==n){const t=this.xi.get(i);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.dn.get(e);i&&this.Ci!==i&&this.#s(i)}}return!0}get(t,n,e){if("$scopename"===n&&this.$scopename)return this.$scopename;if("$$watchersCount"===n)return function(t){const n=function(t){const n=new Set,e=[t];for(;e.length;){const t=e.pop();if(!n.has(t.$id)&&(n.add(t.$id),t.Oi))for(let n=0,i=t.Oi.length;n<i;n++)e.push(t.Oi[n])}return n}(t);let e=0;for(const i of t.dn.values())for(let t=0,r=i.length;t<r;t++)n.has(i[t].scopeId)&&e++;return e}(this);if(n===f)return!0;const i=t[n];if(d(i)?this.$proxy=i:this.$proxy=e,this.propertyMap.$target=t,this.propertyMap.$proxy=e,k(t)&&["pop","shift","unshift"].includes(n)){if(this.xi.has(e)){const t=this.xi.get(e);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.dn.get(e);i&&(this.Ci=i)}}"unshift"===n&&this.#s(this.Ci)}return kt(this.propertyMap,n)?(this.$target=t,this.propertyMap[n]):i}deleteProperty(t,n){if(t[n]&&t[n][f]){t[n]=void 0;const e=this.dn.get(n);if(e&&this.#s(e),this.xi.has(this.$proxy)){const t=this.xi.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.dn.get(e);i&&this.#s(i)}}return this.Ci&&(this.#s(this.Ci),this.Ci=[]),!0}if(delete t[n],this.xi.has(this.$proxy)){const t=this.xi.get(this.$proxy);for(let n=0,e=t.length;n<e;n++){const e=t[n],i=this.dn.get(e);i&&this.#s(i)}}else{const e=this.dn.get(n);e&&this.#s(e,t[n])}return!0}#o(t){b(t)||Et(t).forEach(n=>{const e=this.dn.get(n);e&&this.#s(e),_(t[n])&&this.#o(t[n])})}#s(t,n=t=>t){queueMicrotask(()=>{let e=0;const i=n(t);for(;e<i.length;){const t=i[e];this.#c(t,this.$target),e++}})}$watch(t,n,e=!1){at(S(t),"Watched property required"),t=t.trim();const i=Cs(t);if(i.constant)return n&&queueMicrotask(()=>{let t=i();for(;R(t);)t=t();n(t,this.$target)}),()=>{};const r=i.ge.body[0].expression;if(!n){let t=i(this.$target);for(;R(t);)t=t(this.$target);return}const s={originalTarget:this.$target,listenerFn:n,watchFn:i,scopeId:this.$id,id:g(),property:[]};let o=r.name;const c=[],{type:u}=r;switch(u){case 3:o=r.left?.name;break;case 4:o=(r.toWatch[0]?.test)?.name,s.property.push(o);break;case 5:{const t=[r.left.toWatch[0]?.name,r.right.toWatch[0]?.name];for(let n=0,e=t.length;n<e;n++){const e=t[n];e&&this.#u(e,s)}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];this.#h(e,s.id)}}}case 6:if(r.isPure){const t=r.toWatch[0];if(o=t.property?t.property.name:t.name,!o)throw new Error("Unable to determine key");s.property.push(o);break}{const{toWatch:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;if(!i)throw new Error("Unable to determine key");this.#u(i,s),this.#s([s])}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.property?e.property.name:e.name;this.#h(i,s.id)}}}case 7:{const t=r.toWatch[0];if(o=t.property?t.property.name:t.name,!o)throw new Error("Unable to determine key");s.property.push(o);break}case 8:{const{toWatch:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n];y(e)&&(this.#u(e.name,s),this.#s([s]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n];y(e)&&this.#h(e.name,s.id)}}}case 9:if(o=r.property.name,o||(o=r.object.name),s.property.push(o),t!==o){s.watchProp=t;const n=Cs(t.split(".").slice(0,-1).join("."))(s.originalTarget);if(n&&this.Si.has(n))return n.$handler.ji(o,s),n.$handler.#s([s]),()=>(n.$handler.Ai(o,s.id),n.$handler.#h(o,s.id))}break;case gs:s.property.push(r.name);break;case 12:{const{elements:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ws?e.value:e.toWatch[0]?.name;i&&(this.#u(i,s),this.#s([s]))}return()=>{for(let n=0,e=t.length;n<e;n++){const e=t[n],i=e.type===ws?e.value:e.toWatch[0].name;i&&this.#h(i,s.id)}}}case 14:{const{properties:t}=r;for(let n=0,e=t.length;n<e;n++){const e=t[n];let i;if(!1===e.key.isPure)i=e.key.name;else if(e.value?.name)i=e.value.name;else{const t=r.toWatch[0];i=t.property?t.property.name:t.name}i&&(c.push(i),s.property.push(i))}break}default:throw new Error(`Unsupported type ${u}`)}const h=s.watchFn(this.$target);if(_(h)&&this.xi.set(h,[o]),c.length>0)for(let t=0,n=c.length;t<n;t++)this.#u(c[t],s);else this.#u(o,s);return e||this.#s([s]),()=>{if(c.length>0){let t=!0;for(let n=0,e=c.length;n<e;n++)this.#h(c[n],s.id)||(t=!1);return t}return this.#h(o,s.id)}}$new(t){let n;if(t){const e=Object.getPrototypeOf(t);e===Object.prototype||e===this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(e||t,this.$target),n=t}else n=Object.create(this.$target);const e=new Proxy(n,new Ds(this));return this.Oi.push(e),e}$newIsolate(t){const n=t?Object.create(t):Object.create(null),e=new Proxy(n,new Ds(this,this.$root));return this.Oi.push(e),e}$transcluded(t){const n=Object.create(this.$target),e=new Proxy(n,new Ds(this,t));return this.Oi.push(e),e}#u(t,n){this.dn.has(t)?this.dn.get(t).push(n):this.dn.set(t,[n])}ji(t,n){this._i.has(t)?this._i.get(t).push(n):this._i.set(t,[n])}#h(t,n){const e=this.dn.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this.dn.set(t,e):this.dn.delete(t),!0)}Ai(t,n){const e=this._i.get(t);if(!e)return!1;const i=e.findIndex(t=>t.id===n);return-1!==i&&(e.splice(i,1),e.length?this._i.set(t,e):this._i.delete(t),!0)}$eval(t,n){const e=Cs(t)(this,n);return b(e)||null===e||e.name===Object.hasOwnProperty.name?e:R(e)?e():Number.isNaN(e)?0:e}$merge(t){const n=_t(t);for(let t=0,e=n.length;t<e;t++){const[e,i]=n[t];this.set(this.$target,e,i,this.$proxy)}}$apply(t){try{return Cs(t)(this.$proxy)}catch(t){return js(t)}}$on(t,n){let e=this.Ei.get(t);return e||(e=[],this.Ei.set(t,e)),e.push(n),()=>{const i=e.indexOf(n);-1!==i&&(e.splice(i,1),0===e.length&&this.Ei.delete(t))}}$emit(t,...n){return this.#a({name:t,event:void 0,broadcast:!1},...n)}$broadcast(t,...n){return this.#a({name:t,event:void 0,broadcast:!0},...n)}#a({name:t,event:n,broadcast:e},...i){if(!e&&!this.Ei.has(t))return this.$parent?this.$parent.$handler.#a({name:t,event:n,broadcast:e},...i):void 0;n?n.currentScope=this.$proxy:n=n||{name:t,targetScope:this.$proxy,currentScope:this.$proxy,stopped:!1,stopPropagation(){n.stopped=!0},preventDefault(){n.defaultPrevented=!0},defaultPrevented:!1};const r=Y([n],[n].concat(i),1),s=this.Ei.get(t);if(s){let{length:t}=s;for(let n=0;n<t;n++)try{s[n].apply(null,r);const e=s.length;e!==t&&(e<t&&n--,t=e)}catch(t){js(t)}}return n.currentScope=null,n.stopped?n:e?(this.Oi.length>0&&this.Oi.forEach(r=>{n=r.$handler.#a({name:t,event:n,broadcast:e},...i)}),n):this.$parent?this.$parent.#a({name:t,event:n,broadcast:e},...i):n}#r(){return this.$root===this}$postUpdate(t){Ts.push(t)}$destroy(){if(!this.hn){this.$broadcast("$destroy");for(const[t,n]of this.dn){for(let t=n.length-1;t>=0;t--)n[t].scopeId===this.$id&&n.splice(t,1);0===n.length?this.dn.delete(t):this.dn.set(t,n)}if(this.#r())this.dn.clear();else{const t=this.$parent.Oi;for(let n=0,e=t.length;n<e;n++)if(t[n].$id===this.$id){t.splice(n,1);break}}this.Ei.clear(),this.hn=!0}}#c(t,n){const{originalTarget:e,listenerFn:i,watchFn:r}=t;try{let t=r(e);if(b(t)&&(t=r(n)),R(t)&&(t=t(e)),k(t))for(let n=0,i=t.length;n<i;n++)R(t[n])&&(t[n]=t[n](e));for(i(t,e);Ts.length;)Ts.shift()()}catch(t){js(t)}}$flushQueue(){for(;Ts.length;)Ts.shift()()}$getById(t){if(S(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let n;for(const e of this.Oi){const i=e.$getById(t);if(i){n=i;break}}return n}}$searchByName(t){const n=[this.$root];for(;n.length;){const e=n.pop();if(e.$scopename===t)return e;if(e.Oi?.length)for(let t=e.Oi.length-1;t>=0;t--)n.push(e.Oi[t])}}}class Ns{httpOptions;$get=[jt.it,jt.q,(t,n)=>e=>{let i=n.defaults?.transformResponse??null;k(i)?i=i.filter(t=>t!==Qn):i===Qn&&(i=null);const r=F({cache:t,transformResponse:i},this.httpOptions||{});return n.get(e,r).then(n=>(t.set(e,n.data),n.data),t=>Promise.reject(t))}]}class qs{constructor(){this.Ti=/^\s*(https?|s?ftp|mailto|tel|file):/,this.Ri=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return y(t)?(this.Ti=t,this):this.Ti}imgSrcSanitizationTrustedUrlList(t){return y(t)?(this.Ri=t,this):this.Ri}$get=[jt.lt,t=>(n,e)=>{if(!n)return n;const i=e?this.Ri:this.Ti,r=new URL(n.trim(),t.location.href).href;return""===r||r.match(i)?n:`unsafe:${r}`}]}const Us="ng-active",Vs="ng-inactive";class Fs{constructor(t,n,e,i){this.l=t,this.h=n,this.u=e,this.C=i,this.Mi=0,this.Pi=0,this.Ii={},this.Di=!1,this.Ni=null,this.qi=void 0,this.Ui=void 0,this.h.$watch(this.u.ngMessages||this.u.for,this.Vi.bind(this))}Fi(){return this.Pi++}Vi(t={}){this.Di=!1,this.Ni=t;const n=Hs(this.h,this.u.ngMessagesMultiple)||Hs(this.h,this.u.multiple),e=[],i={};let r=0,s=this.qi,o=!1,c=0;for(;s;){c++;const u=s.message;let h=!1;o||_t(t).forEach(([t,n])=>{if(Bs(n)&&!h&&(r++,u.test(t))){if(i[t])return;i[t]=!0,h=!0,u.attach()}}),h?o=!n:e.push(u),s=s.next}e.forEach(t=>{t.detach()});const u=e.length!==c,h=this.Ui&&!u&&r>0;h?this.Ui.attach():this.Ui&&this.Ui.detach(),u||h?this.C.setClass(this.l,Us,Vs):this.C.setClass(this.l,Vs,Us)}reRender(){this.Di||(this.Di=!0,Promise.resolve().then(()=>{this.Di&&this.Ni&&this.Vi(this.Ni)}))}register(t,n,e){if(e)this.Ui=n;else{const e=this.Mi.toString();this.Ii[e]={message:n},this.insertMessageNode(this.l,t,e),t.Li=e,this.Mi++}this.reRender()}deregister(t,n){if(n)delete this.Ui;else{const n=t.Li;delete t.Li,this.removeMessageNode(this.l,t,n),delete this.Ii[n]}this.reRender()}findPreviousMessage(t,n){let e=n;const i=[];for(;e&&e!==t;){const t=e.Li;if(t&&t.length)return this.Ii[t];e.childNodes.length&&-1===i.indexOf(e)?(i.push(e),e=e.childNodes[e.childNodes.length-1]):e.previousSibling?e=e.previousSibling:(e=e.parentNode,i.push(e))}}insertMessageNode(t,n,e){const i=this.Ii[e];if(this.qi){const e=this.findPreviousMessage(t,n);e?(i.next=e.next,e.next=i):(i.next=this.qi,this.qi=i)}else this.qi=i}removeMessageNode(t,n,e){const i=this.Ii[e];if(!i)return;const r=this.findPreviousMessage(t,n);r?r.next=i.next:this.qi=i.next}}function Ls(t){return{require:"ngMessages",restrict:"AE",controller:(n,e,i)=>new Fs(n,e,i,t)}}function Hs(t,n){return S(n)&&0===n.length||Bs(n&&t.$eval(n))}function Bs(t){return S(t)?t.length:!!t}function zs(t,n){return{restrict:"AE",require:"^^ngMessages",link(e,i,r){const s=r.ngMessagesInclude||r.src;t(s).then(t=>{e.hn||S(t)&&!t.trim()||n(t)(e,t=>{E(t,Node)&&i.after(t)})})}}}Ls.$inject=[jt.C],zs.$inject=[jt.st,jt.T];const Ws=Gs(!1),Js=Gs(!1),Zs=Gs(!0);function Gs(t){function n(n){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(e,i,r,s,o){let c,u,h,a,l,f;if(!t){c=i,h=r.ngMessage||r.when,a=r.ngMessageExp||r.whenExp;const t=function(t){u=t?k(t)?t:t.split(/[\s,]+/):null,s.reRender()};a?(t(e.$eval(a)),e.$watch(a,t)):t(h)}s.register(c,f={test:t=>function(t,n){if(t)return k(t)?t.indexOf(n)>=0:kt(t,n)}(u,t),attach(){l||o((e,r)=>{n.enter(e,null,i),l=e;const o=l.Hi=s.Fi();l.addEventListener("$destroy",()=>{l&&l.Hi===o&&(s.deregister(c,t),f.detach()),r.$destroy()})})},detach(){if(l){const t=l;l=null,n.leave(t)}}},t),e.$on("$destroy",()=>{s.deregister(c,t)})}}}return n.$inject=[jt.C],n}const Ks="ngAriaDisable",Xs=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Ys=function(t,n){return-1!==n.indexOf(t.nodeName)};function Qs(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function n(n,e,i,r){return function(s,o,c){if(kt(c,Ks))return;const u=c.$normalize(e);!t[u]||Ys(o,i)||c[u]||s.$watch(c[n],t=>{t=r?!t:!!t,o.setAttribute(e,t)})}}this.config=function(n){t=F(t,n)},this.$get=function(){return{config:n=>t[n],Bi:n}}}function to(t){return t.Bi("ngDisabled","aria-disabled",Xs,!1)}function no(t){return t.Bi("ngShow","aria-hidden",[],!0)}function eo(){return{restrict:"A",require:"?ngMessages",link(t,n,e){kt(e,Ks)||n.hasAttribute("aria-live")||n.setAttribute("aria-live","assertive")}}}function io(t,n){return{restrict:"A",compile(e,i){if(kt(i,Ks))return;const r=n(i.ngClick);return(n,e,i)=>{Ys(e,Xs)||(t.config("bindRoleForClick")&&!e.hasAttribute("role")&&e.setAttribute("role","button"),t.config("tabindex")&&!e.hasAttribute("tabindex")&&e.setAttribute("tabindex","0"),!t.config("bindKeydown")||i.ngKeydown||i.ngKeypress||i.ngKeyup||e.addEventListener("keydown",t=>{const e=parseInt(t.key,10);13!==e&&32!==e||(-1!==Xs.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),r(n,{$event:t}))}))}}}}function ro(t){return t.Bi("ngRequired","aria-required",Xs,!1)}function so(t){return t.Bi("ngChecked","aria-checked",Xs,!1)}function oo(t){return t.Bi("ngValue","aria-checked",Xs,!1)}function co(t){return t.Bi("ngHide","aria-hidden",[],!1)}function uo(t){return t.Bi("ngReadonly","aria-readonly",Xs,!1)}function ho(t){function n(n,e,i,r){return t.config(e)&&!i.getAttribute(n)&&(r||!Ys(i,Xs))&&("hidden"!==i.getAttribute("type")||"INPUT"!==i.nodeName)}function e(t,n){return!n.getAttribute("role")&&n.getAttribute("type")===t&&!Ys(n,Xs)}return{restrict:"A",require:"ngModel",priority:200,compile(i,r){if(kt(r,Ks))return;const s=function(t){const{type:n}=t,{role:e}=t;return"checkbox"===(n||e)||"menuitemcheckbox"===e?"checkbox":"radio"===(n||e)||"menuitemradio"===e?"radio":"range"===n||"progressbar"===e||"slider"===e?"range":""}(r);return{post(i,r,o,c){const u=n("tabindex","tabindex",r,!1);switch(s){case"radio":case"checkbox":e(s,r)&&r.setAttribute("role",s),n("aria-checked","ariaChecked",r,!1)&&c.$watch("$modelValue","radio"===s?function(){r.setAttribute("aria-checked",(o.value==c.$viewValue).toString())}:function(){r.setAttribute("aria-checked",(!c.$isEmpty(c.$viewValue)).toString())}),u&&r.setAttribute("tabindex",0);break;case"range":if(e(s,r)&&r.setAttribute("role","slider"),t.config("ariaValue")){const t=!r.hasAttribute("aria-valuemin")&&(kt(o,"min")||kt(o,"ngMin")),n=!r.hasAttribute("aria-valuemax")&&(kt(o,"max")||kt(o,"ngMax")),e=!r.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{r.setAttribute("aria-valuemin",t)}),n&&o.$observe("max",t=>{r.setAttribute("aria-valuemax",t)}),e&&c.$watch("$modelValue",t=>{r.setAttribute("aria-valuenow",t)})}u&&r.setAttribute("tabindex",0)}!kt(o,"ngRequired")&&c.$validators.required&&n("aria-required","ariaRequired",r,!1)&&o.$observe("required",()=>{r.setAttribute("aria-required",(!!o.required).toString())}),n("aria-invalid","ariaInvalid",r,!0)&&c.$watch("$invalid",t=>{r.setAttribute("aria-invalid",(!!t).toString())})}}}}}function ao(t){return function(n,e,i){kt(i,Ks)||!t.config("tabindex")||e.hasAttribute("tabindex")||Ys(e,Xs)||e.setAttribute("tabindex",0)}}to.$inject=[jt.A],no.$inject=[jt.A],io.$inject=[jt.A,jt.H],ro.$inject=[jt.A],so.$inject=[jt.A],oo.$inject=[jt.A],co.$inject=[jt.A],uo.$inject=[jt.A],ho.$inject=[jt.A],ao.$inject=[jt.A];let lo=[],fo=!1;function po(){const t=lo;lo=[],fo=!1;for(let n=0;n<t.length;n++)t[n]()}function mo(t){lo.push(t),fo||(fo=!0,requestAnimationFrame(po))}class $o{constructor(t={},n=!1){if(this.zi=t,this.Wi=[],this.X=0,this.Ji=null,n){const t=t=>{requestAnimationFrame(t)},n=t=>{setTimeout(t,0)};this.Zi=e=>{document.hidden?n(e):t(e)}}else this.Zi=mo}setHost(t){this.zi=t||{}}done(t){2===this.X?t(!0):this.Wi.push(t)}progress(...t){this.zi.progress?.(...t)}pause(){this.zi.pause?.()}resume(){this.zi.resume?.()}end(){this.zi.end?.(),this.Gi(!0)}cancel(){this.zi.cancel?.(),this.Gi(!1)}complete(t=!0){0===this.X&&(this.X=1,this.Zi(()=>this.Gi(t)))}Gi(t){if(2===this.X)return;this.X=2;const n=this.Wi;this.Wi=[];for(let e=0;e<n.length;e++)n[e]&&n[e](t)}getPromise(){return this.Ji||(this.Ji=new Promise((t,n)=>{this.done(e=>!1===e?n():t())})),this.Ji}then(t,n){return this.getPromise().then(t,n)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}static Ki(t,n){let e=0;const i=(r=!0)=>{!r||e>=t.length?n(r):t[e++].done(i)};i()}static Xi(t,n){let e=t.length,i=!0;for(const r of t)r.done(t=>{!1===t&&(i=!1),0===--e&&n(i)})}}const go="$animId",wo=new class{#l=new Map;#f=0;Yi(t,n,e,i){const r=t.parentNode??t,s=[r[go]??(r[go]=++this.#f),n,t.getAttribute("class")];return e&&s.push(e),i&&s.push(i),s.join(" ")}Qi(t){const n=this.#l.get(t);return!!n&&!n.isValid}tr(){this.#l.clear()}nr(t){return this.#l.get(t)?.total??0}er(t){return this.#l.get(t)?.value}ir(t,n,e){const i=this.#l.get(t);i?(i.total++,i.value=n):this.#l.set(t,{total:1,value:n,isValid:e})}},vo=new class{constructor(){this.rr=[],this.sr=null}cr(){if(this.rr.length){for(;this.rr.length;)this.rr.shift()();this.sr||(this.sr=window.requestAnimationFrame(()=>{this.sr=null,this.cr()}))}}ur(t){this.rr.push(...t),this.cr()}hr(t){null!==this.sr&&(window.cancelAnimationFrame(this.sr),this.sr=null),this.sr=window.requestAnimationFrame(()=>{this.sr=null,t(),this.cr()})}},bo=jt.j,yo=1e3,ko={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",transitionProperty:"transitionProperty",animationDuration:"animationDuration",animationDelay:"animationDelay",animationIterationCount:"animationIterationCount"},Eo={transitionDuration:"transitionDuration",transitionDelay:"transitionDelay",animationDuration:"animationDuration",animationDelay:"animationDelay"};function _o(t,n){return[n?"animationDelay":"transitionDelay",`${t}s`]}function So(t,n){const e=Object.create(null),i=window.getComputedStyle(t)||{};return _t(n).forEach(([t,n])=>{let r=i[n];if(r){const n=r.charAt(0);("-"===n||"+"===n||n>=0)&&(r=function(t){let n=0;return t.split(/\s*,\s*/).forEach(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,n=n?Math.max(t,n):t}),n}(r)),0===r&&(r=null),e[t]=r}}),e}function xo(t){return 0===t||!O(t)}function Oo(t,n){let e="transition",i=`${t}s`;return n?e+="Duration":i+=" linear all",[e,i]}function Co(t,n,e){e.forEach(e=>{t[e]=y(t[e])?t[e]:n.style.getPropertyValue(e)})}function jo(){let t;this.$get=[function(){const n=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)},e=[];function i(t){e.push(t),vo.hr(()=>{wo.tr(),document.documentElement.getBoundingClientRect();for(let t=0;t<e.length;t++)e[t]();e.length=0})}function r(t,n,e){const i=function(t,n,e,i){let r=wo.er(n);r||(r=So(t,i),"infinite"===r.animationIterationCount&&(r.animationIterationCount=1));const s=e||r.transitionDuration>0||r.animationDuration>0;return wo.ir(n,r,s),r}(t,n,e,ko),r=i.animationDelay,s=i.transitionDelay;return i.maxDelay=r&&s?Math.max(r,s):r||s,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(e,s){let o,c=s||{ar:!1};c.we||(c=jr(structuredClone(c)));const u={},h=e;if(!h||!h.parentNode)return H();const a=[],l=function(t){return t?.to||t?.from?{to:t.to,from:t.from}:{}}(c);let f,d,p,m,$,g,w,v,b,y;const E=[];if(0===c.duration)return H();const _=c.event&&k(c.event)?c.event.join(" "):c.event,S=_&&c.structural;let x="",C="";S?x=Cr(_,"ng-",!0):_&&(x=_),c.addClass&&(C+=Cr(c.addClass,Er)),c.removeClass&&(C.length&&(C+=" "),C+=Cr(c.removeClass,_r)),c.applyClassesEarly&&C.length&&n(e,c);let j=[x,C].join(" ").trim();const A=l.to&&Object.keys(l.to).length>0;if(!((c.keyframeStyle||"").length>0||A||j))return H();let T,R,M=wo.Yi(h,_,c.addClass,c.removeClass);if(wo.Qi(M))return j=null,H();if(c.stagger>0){const t=parseFloat(c.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,n,e,i){let r;const s=`stagger-${e}`;if(wo.nr(e)>0&&(r=wo.er(s),!r)){const e=Cr(n,"-stagger");t.className+=` ${e}`,r=So(t,i),r.animationDuration=Math.max(r.animationDuration,0),r.transitionDuration=Math.max(r.transitionDuration,0),t.classList.remove(e),wo.ir(s,r,!0)}return r||{}}(h,j,M,Eo);if(c.ar||e.classList.add(...j.split(" ").filter(t=>""!==t)),c.transitionStyle){const t=["transition",c.transitionStyle];Ir(h,t),a.push(t)}if(c.duration>=0){R=h.style.transition.length>0;const t=Oo(c.duration,R);Ir(h,t),a.push(t)}if(c.keyframeStyle){const t=["animation",c.keyframeStyle];Ir(h,t),a.push(t)}const P=T?c.staggerIndex>=0?c.staggerIndex:wo.nr(M):0,I=0===P;I&&Ao(h,9999);let D=r(h,M,!S),N=D.maxDelay;g=Math.max(N,0),v=D.maxDuration;const q={};return q.lr=D.transitionDuration>0,q.dr=D.animationDuration>0,q.pr=q.lr&&"all"===D.transitionProperty,q.mr=A&&(q.lr&&!q.pr||q.dr&&!q.lr),q.$r=c.duration&&q.dr,q.gr=xo(c.delay)&&(q.mr||q.lr),q.wr=xo(c.delay)&&q.dr,q.vr=C.length>0,(q.mr||q.$r)&&(v=c.duration?parseFloat(c.duration):v,q.mr&&(q.lr=!0,D.transitionDuration=v,R=h.style.transitionProperty.length>0,a.push(Oo(v,R))),q.$r&&(q.dr=!0,D.animationDuration=v,a.push(["animationDuration",`${v}s`]))),0!==v||q.vr?(t=Cr(j,Sr),O(c.delay)||("boolean"!=typeof c.delay&&(o=parseFloat(c.delay),g=Math.max(o,0)),q.gr&&a.push(_o(o)),q.wr&&a.push(_o(o,!0))),O(c.duration)&&D.transitionDuration>0&&(q.vr=q.vr||I),w=g*yo,b=v*yo,q.br=D.transitionDuration>0,q.yr=D.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration,c.from&&(c.cleanupStyles&&Co(u,h,Object.keys(c.from)),Tr(e,c)),q.br||q.yr?L(v):c.skipBlocking||Ao(h,!1),{kr:!0,end:U,start(){if(!f)return $={end:U,cancel:V,resume:null,pause:null},m=new $o($),i(z),m}}):H();function U(){F()}function V(){F(!0)}function F(i){if(f||p&&d)return;f=!0,d=!1,j&&!c.ar&&e.classList.remove(...j.split(" ")),t=Cr(j,Sr),t&&e.classList.remove(...t.split(" ")),Pr(h,!1),Ao(h,!1),a.forEach(t=>{h.style[t[0]]=""}),n(e,c),Ar(e,c),Et(u).length&&_t(u).forEach(([t,n])=>{n?h.style.setProperty(t,n):h.style.removeProperty(t)}),c.onDone&&c.onDone(),E&&E.length&&E.forEach(t=>e.removeEventListener(t,B));const r=Gt(e,bo);r&&(clearTimeout(r[0].timer),Lt(e,bo)),m&&m.complete(!i)}function L(t){q.br&&Ao(h,t),q.yr&&Pr(h,!!t)}function H(){return m=new $o({end:U,cancel:V}),i(()=>{}),F(),{kr:!1,start:()=>m,end:U}}function B(t){t.stopPropagation();const n=t.originalEvent||t;if(n.target!==h)return;const e=n.$manualTimeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(e-y,0)>=w&&i>=v&&(p=!0,F())}function z(){if(f)return;if(!h.parentNode)return void F();const i=function(t){if(p)d&&t&&(d=!1,F());else if(d=!t,D.animationDuration){const t=Pr(h,d);if(d)a.push(t);else{const n=a.indexOf(t);-1!==n&&a.splice(n,1)}}},s=P>0&&(D.transitionDuration&&0===T.transitionDuration||D.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function l(){if(f)return;if(L(!1),a.forEach(t=>{const n=t[0];h.style[n]=t[1]}),n(e,c),e.classList.add(...t.split(" ").filter(t=>""!==t)),q.vr){if(M=wo.Yi(h,_,c.addClass,c.removeClass),D=r(h,M,!1),N=D.maxDelay,g=Math.max(N,0),v=D.maxDuration,0===v)return void F();q.lr=D.transitionDuration>0,q.dr=D.animationDuration>0}if(q.wr&&(N="boolean"!=typeof c.delay&&xo(c.delay)?parseFloat(c.delay):N,g=Math.max(N,0),D.animationDelay=N,o=_o(N,!0),a.push(o),h.style[o[0]]=o[1]),w=g*yo,b=v*yo,c.easing){let t;const n=c.easing;q.lr&&(t="transitionTimingFunction",a.push([t,n]),h.style[t]=n),q.dr&&(t="animationTimingFunction",a.push([t,n]),h.style[t]=n)}D.transitionDuration&&E.push("transitionend"),D.animationDuration&&E.push("animationend"),y=Date.now();const i=w+1.5*b,s=y+i,l=Gt(e,bo)||[];let d=!0;if(l.length){const t=l[0];d=s>t.expectedEndTime,d?clearTimeout(t.timer):l.push(F)}if(d){const t=setTimeout(m,i,!1);l[0]={timer:t,expectedEndTime:s},l.push(F),Zt(e,bo,l)}E.length&&E.forEach(t=>{e.addEventListener(t,B)}),c.to&&(c.cleanupStyles&&Co(u,h,Object.keys(c.to)),Rr(e,c))}function m(){const t=Gt(e,bo);if(t){for(let n=1;n<t.length;n++)t[n]();Lt(e,bo)}}s?setTimeout(l,Math.floor(s*P*yo),!1):l(),$.resume=function(){i(!0)},$.pause=function(){i(!1)}}}}]}function Ao(t,n){const e=n?`-${n}s`:"";return Ir(t,["transitionDelay",e]),["transitionDelay",e]}const To="data-ng-animate",Ro="$ngAnimatePin";function Mo(t){const n=this.rules={skip:[],cancel:[],join:[]};function e(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const e=function(t){if(!t)return null;const n=t.split(" "),e=Object.create(null);return n.forEach(t=>{e[t]=!0}),e}(n);return t.split(" ").some(t=>e[t])}}function r(t,e,i){return n[t].some(t=>t(e,i))}function s(t,n){const e=(t.addClass||"").length>0,i=(t.removeClass||"").length>0;return n?e&&i:e||i}n.join.push(t=>!t.structural&&s(t)),n.skip.push(t=>!t.structural&&!s(t)),n.skip.push((t,n)=>"leave"===n.event&&t.structural),n.skip.push((t,n)=>n.structural&&2===n.state&&!t.structural),n.cancel.push((t,n)=>n.structural&&t.structural),n.cancel.push((t,n)=>2===n.state&&t.structural),n.cancel.push((t,n)=>{if(n.structural)return!1;const e=t.addClass,r=t.removeClass,s=n.addClass,o=n.removeClass;return!(b(e)&&b(r)||b(s)&&b(o))&&(i(e,o)||i(r,s))}),this.$get=[jt.W,jt.gt,jt._,function(n,i,o){const c=new Map,u=new Map,h=Object.create(null),a=t.customFilter(),l=t.classNameFilter(),f=function(){return!0},d=a||f,p=l?function(t,n){const e=[t.getAttribute("class"),n.addClass,n.removeClass].join(" ");return l.test(e)}:f,m=function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)};function $(t,n){return Mr(t,n,{})}function g(t,n,e){const i=pn(n);return t.filter(t=>!(t.node===i&&(!e||t.callback===e)))}function w(t,n){"close"!==t||n.parentNode||v.off(n)}const v={on(t,n,e){const i=pn(n);h[t]=h[t]||[],h[t].push({node:i,callback:e}),n.addEventListener("$destroy",()=>{c.get(i)||v.off(t,n,e)})},off(t,n,e){if(1===arguments.length&&!S(arguments[0])){n=arguments[0];for(const t in h)h[t]=g(h[t],n);return}const i=h[t];i&&(h[t]=1===arguments.length?null:g(i,n,e))},pin(t,n){Zt(t,Ro,n)},push:(t,a,l,f)=>((l=l||{}).domOperation=f,function(t,a,l){let f=l,g=k(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const v=g,O=v&&v.parentNode;f=jr(f);const C=new $o,j=function(){let t=!1;return function(e){t?e():n.$postUpdate(()=>{t=!0,e()})}}();if(k(f.addClass)&&(f.addClass=f.addClass.join(" ")),f.addClass&&!S(f.addClass)&&(f.addClass=null),k(f.removeClass)&&(f.removeClass=f.removeClass.join(" ")),f.removeClass&&!S(f.removeClass)&&(f.removeClass=null),f.from&&!_(f.from)&&(f.from=null),f.to&&!_(f.to)&&(f.to=null),!v||!d(v,a,l)||!p(v,f))return q(),C;const A=["enter","move","leave"].indexOf(a)>=0;let T=document.hidden||u.get(v);const R=!T&&c.get(v)||{},M=!!R.state;if(T||M&&1===R.state||(T=!function(t,n){const e=document.body,r=i.get("$rootElement");let s,o=t===e||"HTML"===t.nodeName,h=t===r,a=!1,l=u.get(t),f=Jt(t,Ro);for(f&&(n=f);n&&(h||(h=n===r),1===n.nodeType);){const t=c.get(n)||{};if(!a){const e=u.get(n);if(!0===e&&!1!==l){l=!0;break}!1===e&&(l=!1),a=t.structural}if(b(s)||!0===s){const t=Jt(n,Or);y(t)&&(s=t)}if(a&&!1===s)break;if(o||(o=n===e),o&&h)break;n=h||(f=Jt(n,Ro),!f)?n.parentNode:f}return(!a||s)&&!0!==l&&h&&o}(v,O)),T)return document.hidden&&N(C,a,"start",e(f)),q(),document.hidden&&N(C,a,"close",e(f)),C;A&&function(t){t.querySelectorAll(`[${To}]`).forEach(t=>{const n=parseInt(t.getAttribute(To),10),e=c.get(t);if(e)switch(n){case 2:e.runner.end();case 1:c.delete(t)}})}(v);const P={structural:A,element:g,event:a,addClass:f.addClass,removeClass:f.removeClass,close:q,options:f,runner:C};if(M){if(r("skip",P,R))return 2===R.state?(q(),C):(Mr(g,R,P),R.runner);if(r("cancel",P,R))if(2===R.state)R.runner.end();else{if(!R.structural)return Mr(g,R,P),R.runner;R.close()}else if(r("join",P,R)){if(2!==R.state)return function(t,n,e){let i="";n&&(i=Cr(n,"ng-",!0)),e.addClass&&(i=Dr(i,Cr(e.addClass,Er))),e.removeClass&&(i=Dr(i,Cr(e.removeClass,_r))),i.length&&(e.preparationClasses=i,t.className+=` ${i}`)}(g,A?a:null,f),a=P.event=R.event,f=Mr(g,R,P),R.runner;$(g,P)}}else $(g,P);let I=P.structural;if(I||(I="animate"===P.event&&Object.keys(P.options.to||{}).length>0||s(P)),!I)return q(),E(v),C;const D=(R.counter||0)+1;return P.counter=D,x(v,1,P),n.$postUpdate(()=>{g=function(t){return t instanceof NodeList?Array.from(t).filter(t=>1===t.nodeType):1===t.nodeType?t:void 0}(t);let n=c.get(v);const i=!n;n=n||{};const r=(g.parentElement||[])&&("animate"===n.event||n.structural||s(n));if(i||n.counter!==D||!r)return i&&(m(g,f),Ar(g,f)),(i||A&&n.event!==a)&&(f.domOperation(),C.end()),void(r||E(v));a=!n.structural&&s(n,!0)?"setClass":n.event,x(v,2);const u=o(g,a,n.options);C.setHost(u),N(C,a,"start",e(f)),u.done(t=>{q(!t),c.get(v)?.counter===D&&E(v),N(C,a,"close",e(f))})}),setTimeout(n.$flushQueue,0),C;function N(t,n,e,i){j(()=>{const t=function(t,n,e){const i=[],r=h[e];return r&&r.forEach(r=>{(r.node.contains(n)||"leave"===e&&r.node.contains(t))&&i.push(r.callback)}),i}(O,v,n);t.length?(t.forEach(t=>{t(g,e,i)}),w(e,v)):w(e,v)}),t.progress(n,e,i)}function q(t){!function(t,n){n.preparationClasses&&(n.preparationClasses.split(" ").forEach(n=>t.classList.remove(n)),n.preparationClasses=void 0),n.activeClasses&&(n.activeClasses.split(" ").forEach(n=>t.classList.remove(n)),n.activeClasses=void 0)}(g,f),m(g,f),Ar(g,f),f.domOperation(),C.complete(!t)}}(t,a,l))};return v;function E(t){t.removeAttribute(To),c.delete(t)}function x(t,n,e){(e=e||{}).state=n,t.setAttribute(To,n);const i=c.get(t),r=i?F(i,e):e;c.set(t,r)}}]}function Po(t){this.$get=[jt.gt,n=>function(e,i,r,s){3===arguments.length&&_(r)&&(s=r,r=null),s=jr(s),r||(r=e.getAttribute("class")||"",s.addClass&&(r+=` ${s.addClass}`),s.removeClass&&(r+=` ${s.removeClass}`));const o=s.addClass,c=s.removeClass,u=function(e){e=k(e)?e:e.split(" ");const i=[],r={};for(let s=0;s<e.length;s++){const o=e[s],c=t.be[o];c&&!r[o]&&(i.push(n.get(c)),r[o]=!0)}return i}(r);let h,a,l;if(u.length){let t,n;"leave"===i?(t="leave",n="afterLeave"):(t=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,n=i),"enter"!==i&&"move"!==i&&(h=p(e,s,u,t,{add:o,remove:c})),a=p(e,s,u,n,{add:o,remove:c})}if(h||a)return{kr:!0,start(){if(l)return l;function t(t){d(),l.complete(t)}return l=new $o({end:()=>t(!0),cancel:()=>t(!1)}),h?h(l.done.bind(l)):f(),a&&a(l.done.bind(l)),l},end:()=>(l?l.end():(d(),l=new $o,l.complete(!0)),l)};function f(){s.domOperation(),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(e,s)}function d(){f(),Ar(e,s)}function p(t,n,e,i,r){const s=[];if(e.forEach(e=>{const o=e[i];o&&s.push(s=>{if(R(o)){let c;switch(i){case"addClass":c=[t,r.add,s];break;case"removeClass":c=[t,r.remove,s];break;case"setClass":c=[t,r.add,r.remove,s];break;case"animate":c=[t,n.from,n.to,s];break;default:c=[t,s]}const u=o.apply(e,c);u instanceof $o&&u.done(s)}else s()})}),s.length)return t=>{let n=0;const e=s.length;s.forEach(i=>{i(()=>{++n===e&&R(t)&&t()})})}}}]}Mo.$inject=At([jt.C]),Po.$inject=At([jt.C]);const Io="$$animationRunner",Do="$$animatePrepareClasses";function No(){const t="ng-animate-ref",n=this.drivers=[];function e(t){return Gt(t,Io)}this.$get=[jt.W,jt.gt,function(i,r){const s=[];return function(o,c,u){u=jr(u);const h=["enter","move","leave"].indexOf(c)>=0,a=new $o({end(){p()},cancel(){p(!0)}});if(!n.length)return p(),a;let l=gt(o.getAttribute("class"),gt(u.addClass,u.removeClass)),{tempClasses:f}=u;return f&&(l+=` ${f}`,u.tempClasses=null),h&&Zt(o,Do,`ng-${c}-prepare`),function(t,n){Zt(t,Io,n)}(o,a),s.push({element:o,classes:l,event:c,structural:h,options:u,beforeStart:function(){f=(f?`${f} `:"")+xr,o.className+=` ${f}`;let t=Gt(o,Do);t&&(o.classList.remove(t),t=null)},close:p}),o.addEventListener("$destroy",function(){("leave"!==c||!u.ve)&&e(o)?.end()}),s.length>1||i.$postUpdate(()=>{const i=[];s.forEach(t=>{e(t.element)?i.push(t):t.close()}),s.length=0;const o=function(n){const e=[],i={};n.forEach((n,r)=>{const{element:s,event:o}=n,c=s,u=["enter","move"].indexOf(o)>=0,h=n.structural?function(n){const e=`[${t}]`,i=n.hasAttribute(t)?[n]:n.querySelectorAll(e),r=[];return i.forEach(n=>{const e=n.getAttribute(t);e&&e.length&&r.push(n)}),r}(c):[];if(h.length){const n=u?"to":"from";h.forEach(e=>{const s=e.getAttribute(t);i[s]=i[s]||{},i[s][n]={animationID:r,element:e}})}else e.push(n)});const r={},s={};return Object.values(i).forEach(t=>{const{from:i}=t,{to:o}=t;if(!i||!o){const t=i?i.animationID:o.animationID,s=t.toString();return void(r[s]||(r[s]=!0,e.push(n[t])))}const c=n[i.animationID],u=n[o.animationID],h=i.animationID.toString();if(!s[h]){const t=s[h]={structural:!0,beforeStart(){c.beforeStart(),u.beforeStart()},close(){c.close(),u.close()},classes:d(c.classes,u.classes),from:c,to:u,anchors:[]};t.classes.length?e.push(t):(e.push(c),e.push(u))}s[h].anchors.push({out:i.element,in:o.element})}),e}(i),c=[];o.forEach(t=>{const i=t.from?t.from.element:t.element;let s=u.addClass;s=(s?`${s} `:"")+xr;const o=wo.Yi(i,t.event,s,u.removeClass);c.push({element:i,domNode:i,fn:function(){let i;const s=t.close;if(wo.Qi(o))s();else{if(t.beforeStart(),e(t.anchors?t.from.element||t.to.element:t.element)){const e=function(t){for(let e=n.length-1;e>=0;e--){const i=n[e],s=r.get(i)(t);if(s)return s}}(t);e&&(i=e.start)}if(i){const n=i();n.done(t=>{s(!t)}),function(t,n){function i(t){e(t).setHost(n)}t.from&&t.to?(i(t.from.element),i(t.to.element)):i(t.element)}(t,n)}else s()}}})});const h=function(t){const n={children:[]};let e;const i=new Map;for(e=0;e<t.length;e++){const n=t[e];i.set(n.domNode,t[e]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(e=0;e<t.length;e++)r(t[e]);return function(t){const n=[],i=[];for(e=0;e<t.children.length;e++)i.push(t.children[e]);let r=i.length,s=0,o=[];for(let t=0;t<i.length;t++){const e=i[t];r<=0&&(r=s,s=0,n.push(o),o=[]),o.push(e),e.children.forEach(t=>{s++,i.push(t)}),r--}return o.length&&n.push(o),n}(n);function r(t){if(t.processed)return t;t.processed=!0;const e=t.domNode;let s,{parentNode:o}=e;for(i.set(e,t);o;){if(s=i.get(o),s){s.processed||(s=r(s));break}o=o.parentNode}return(s||n).children.push(t),t}}(c);for(let t=0;t<h.length;t++){const n=h[t];for(let e=0;e<n.length;e++){const i=n[e],{element:r}=i;if(h[t][e]=i.fn,0===t){Lt(r,Do);continue}const s=Gt(r,Do);s&&r.classList.add(s)}}const a=h.flat();vo.ur(a)}),a;function d(t,n){t=t.split(" "),n=n.split(" ");const e=[];for(let i=0;i<t.length;i++){const r=t[i];if("ng-"!==r.substring(0,3))for(let t=0;t<n.length;t++)if(r===n[t]){e.push(r);break}}return e.join(" ")}function p(t){(function(t,n){if(zt(t)){const e=Ht(t,!1),i=e?.data;i&&kt(i,Vt(n))&&delete i[Vt(n)]}})(o,Io),function(t,n){n.addClass&&(t.classList.add(...n.addClass.trim().split(" ")),n.addClass=void 0),n.removeClass&&(t.classList.remove(...n.removeClass.trim().split(" ")),n.removeClass=void 0)}(o,u),Ar(o,u),u.domOperation(),f&&f.split(" ").forEach(t=>o.classList.remove(t)),a.complete(!t)}}}]}const qo="ng-animate-shim",Uo="ng-anchor-out";function Vo(t){t.drivers.push(jt.p),this.$get=[jt.j,jt.J,function(t,n){const e=document.body,i=n,r=(s=i).parentNode&&11===s.parentNode.nodeType||e.contains(i)?i:e;var s;return function(n){return n.from&&n.to?function(n,i,s){const c=o(n),u=o(i),h=[];return s.forEach(n=>{const i=function(n,i){const s=n.cloneNode(!0),o=Fo(l(s));let c;n[0].classList.add(qo),i[0].classList.add(qo),s.classList.add("ng-anchor"),r.append(s);const u=function(){const e=t(s,{addClass:Uo,delay:!0,from:a(n)});return e.kr?e:null}();if(!u&&(c=f(),!c))return d();const h=u||c;return{start(){const t=new $o({end:e,cancel:e});let n=h.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,d(),t.complete()}),n;d(),t.complete()}),t;function e(){n&&n.end()}}};function a(t){const n={},i=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let r=i[t];switch(t){case"top":r+=e.scrollTop;break;case"left":r+=e.scrollLeft}n[t]=`${Math.floor(r)}px`}),n}function l(t){return t.getAttribute("class")||""}function f(){const n=Fo(l(i)),e=Lo(n,o),r=Lo(o,n),c=t(s,{to:a(i),addClass:`ng-anchor-in ${e}`,removeClass:`${Uo} ${r}`,delay:!0});return c.kr?c:null}function d(){s.remove(),n[0].classList.remove(qo),i[0].classList.remove(qo)}}(n.out,n.in);i&&h.push(i)}),c||u||0!==h.length?{start(){const t=[];c&&t.push(c.start()),u&&t.push(u.start()),h.forEach(n=>{t.push(n.start())});const n=new $o({end:e,cancel:e});return $o.Xi(t,t=>{n.complete(t)}),n;function e(){t.forEach(t=>{t.end()})}}}:void 0}(n.from,n.to,n.anchors):o(n)};function o(n){const e=n.options||{};n.structural&&(e.event=n.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===n.event&&(e.onDone=e.domOperation)),e.preparationClasses&&(e.event=Dr(e.event,e.preparationClasses));const i=t(n.element,e);return i.kr?i:null}}]}function Fo(t){return t.replace(/\bng-\S+\b/g,"")}function Lo(t,n){return S(t)&&(t=t.split(" ")),S(n)&&(n=n.split(" ")),t.filter(t=>-1===n.indexOf(t)).join(" ")}function Ho(t){t.drivers.push(jt.$),this.$get=[jt.m,function(t){return function(t){if(t.from&&t.to){const e=n(t.from),i=n(t.to);if(!e&&!i)return;return{start(){const t=[];e&&t.push(e.start()),i&&t.push(i.start()),$o.Xi(t,function(t){n.complete(t)});const n=new $o({end:r(),cancel:r()});return n;function r(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(n){const{element:e,event:i,options:r,classes:s}=n;return t(e,i,s,r)}}]}function Bo(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(n,e,i,r,s){let o,c;n.$watch(i.ngAnimateSwap||i.for,n=>{o&&t.leave(o),c&&(c.$destroy(),c=null),n&&s((n,i)=>{o=n,c=i,t.enter(n,null,e)})})}}}function zo(t){return{link(n,e,i){const r=i.ngAnimateChildren;function s(t){Zt(e,Or,"on"===t||"true"===t)}S(r)&&0===r.length?Zt(e,Or,!0):(s(t(r)(n)),i.$observe("ngAnimateChildren",s))}}}function Wo(t,n){if(t===n)return!0;if(null===t||null===n)return!1;if(Number.isNaN(t)&&Number.isNaN(n))return!0;const e=typeof t;if(e!==typeof n||"object"!==e)return!1;const i=[t,n];if(i.every(k))return function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(!Wo(t[e],n[e]))return!1;return!0}(t,n);if(i.every(A))return t.getTime()===n.getTime();if(i.every(M))return t.toString()===n.toString();if(i.every(R))return!0;if([R,k,A,M].some(t=>!!t(i)))return!1;const r={};for(const e in t){if(!Wo(t[e],n[e]))return!1;r[e]=!0}for(const t in n)if(!r[t])return!1;return!0}function Jo(t,n){const e=Object.create(t);return n&&Object.assign(e,n),e}function Zo(t,n){const e=t.indexOf(n);return-1!==e&&t.splice(e,1),t}function Go(t,...n){const e=Object.assign({},...n.reverse());return Object.assign(e,Ko(t||{},Object.keys(e)))}function Ko(t,n){const e={};for(const i in t)-1!==n.indexOf(i)&&(e[i]=t[i]);return e}function Xo(t,n){return Object.keys(t).filter(t=>!n.includes(t)).reduce((n,e)=>(n[e]=t[e],n),{})}function Yo(t,n){const e=k(t),i=e?[]:{},r=e?t=>i.push(t):(t,n)=>i[n]=t;return _t(t).forEach(([t,e])=>{n(e,t)&&r(e,t)}),i}function Qo(t,n){let e;return _t(t).forEach(([t,i])=>{e||n(i,t)&&(e=i)}),e}function tc(t,n,e){return e=e||(k(t)?[]:{}),_t(t).forEach(([t,i])=>{if(k(e)){const r=Number(t);e[r]=n(i,r)}else e[t]=n(i,t)}),e}Vo.$inject=At([jt._]),Ho.$inject=At([jt._]),Bo.$inject=[jt.C],zo.$inject=[jt.V];const nc=(t,n)=>t&&n,ec=(t,n)=>t||n,ic=(t,n)=>t.concat(n);function rc(t,n){return t.push(n),t}const sc=(t,n)=>t.includes(n)?t:rc(t,n),oc=t=>t.reduce(ic,[]);function cc(...t){if(0===t.length)return[];const n=t.reduce((t,n)=>Math.min(n.length,t),Number.MAX_SAFE_INTEGER),e=[];for(let i=0;i<n;i++)switch(t.length){case 1:e.push([t[0][i]]);break;case 2:e.push([t[0][i],t[1][i]]);break;case 3:e.push([t[0][i],t[1][i],t[2][i]]);break;case 4:e.push([t[0][i],t[1][i],t[2][i],t[3][i]]);break;default:e.push(t.map(t=>t[i]))}return e}function uc(t,n){let e,i;if(k(n)&&([e,i]=n),!S(e))throw new Error("invalid parameters to applyPairs");return t[e]=i,t}function hc(t){return t.length>0?t[t.length-1]:void 0}function ac(t,n){return n&&Object.keys(n).forEach(t=>delete n[t]),n||(n={}),Object.assign(n,t)}function lc(t){const n=(...e)=>e.length>=t.length?t(...e):(...t)=>n(...e,...t);return n}const fc=lc((t,n,e)=>e&&e[t]===n),dc=t=>{const n=t.split(".");return t=>n.reduce((t,n)=>t&&t[n],t)};function pc(t){return function(n){return null!=n&&n.constructor===t||n instanceof t}}const mc=t=>()=>t;function $c(t){return function(n){for(let e=0;e<t.length;e++)if(t[e][0](n))return t[e][1](n)}}class gc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,n){return t===n}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,n){if(!t)return this;if("auto"===t&&!n)throw new Error("'auto' array mode is for query parameters only");return new wc(this,t)}}function wc(t,n){function e(t){return k(t)?t:y(t)?[t]:[]}function i(t,i){return function(r){if(k(r)&&0===r.length)return r;const s=tc(e(r),t);return!0===i?0===Yo(s,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===n?t[0]:t;default:return t}}(s)}}function r(t){return function(n,i){const r=e(n),s=e(i);if(r.length!==s.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],s[n]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(n=>{const e=t[n].bind(t),s="equals"===n?r:i;this[n]=s(e)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:i(t.is.bind(t),!0),$arrayMode:n})}class vc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ko(vc.prototype,["hash","string","query","path","int","bool","date","json","any"]),this.types=Jo(tc(this.defaultTypes,(t,n)=>new gc(Object.assign({name:n},t))),{})}type(t,n,e){if(!y(n))return this.types[t];if(kt(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new gc(Object.assign({name:t},n)),e&&(this.typeQueue.push({name:t,def:e}),this.enqueue||this.Er()),this}Er(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],window.angular.$injector.invoke(t.def))}}}!function(){const t=t=>{const n=t=>O(t)?t:t.toString(),e={encode:n,decode:n,is:pc(String),pattern:/.*/,equals:(t,n)=>t===n};return Object.assign({},e,t)};Object.assign(vc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is(t){return!O(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:pc(Boolean),pattern:/[01]/}),date:t({encode(t){return this.is(t)?[t.getFullYear(),`0${t.getMonth()+1}`.slice(-2),`0${t.getDate()}`.slice(-2)].join("-"):void 0},decode(t){if(this.is(t))return t;const n=this.capture.exec(t);return n?new Date(n[1],n[2]-1,n[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,n)=>["getFullYear","getMonth","getDate"].reduce((e,i)=>e&&t[i]()===n[i](),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:pc(Object),equals:Wo,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Wo})})}();class bc{constructor(){this.paramTypes=new vc,this._r=!1,this.Sr=!0,this.Or=!1;const t=this.type("path");t.encode=t=>O(t)?t:t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])),t.decode=t=>O(t)?t:t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])),this.paramTypes.enqueue=!1,this.paramTypes.Er()}$get=()=>this;caseInsensitive(t){return this._r=y(t)?t:this._r}defaultSquashPolicy(t){if(y(t)&&!0!==t&&!1!==t&&!S(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this.Or=y(t)?t:this.Or}strictMode(t){return this.Sr=y(t)?t:this.Sr}type(t,n,e){const i=this.paramTypes.type(t,n,e);return y(n)?this:i}}class yc{constructor(t={}){Object.assign(this,t)}$inherit(t,n,e){const i=function(t,n){const e=[];for(const i in t.path){if(t.path[i]!==n.path[i])break;e.push(t.path[i])}return e}(n,e),r={},s=[];for(const t in i){if(!i[t]||!i[t].params)continue;const n=i[t].params,e=Et(n);if(e.length)for(const t in e)!1===n[e[t]].inherit||s.indexOf(e[t])>=0||(s.push(e[t]),r[e[t]]=this[e[t]])}return Object.assign({},r,t)}}class kc{constructor(t=[],n=null){this.Cr=k(t)?[...t]:[],this.jr=Number.isInteger(n)&&n>0?n:null,this.Ar=[]}onEvict(t){this.Ar.push(t)}enqueue(t){return this.Cr.push(t),null!==this.jr&&this.Cr.length>this.jr&&this.evict(),t}evict(){const t=this.Cr.shift();return void 0!==t&&this.Ar.forEach(n=>n(t)),t}dequeue(){return this.Cr.length>0?this.Cr.shift():void 0}clear(){const t=[...this.Cr];return this.Cr.length=0,t}size(){return this.Cr.length}remove(t){const n=this.Cr.indexOf(t);return-1!==n&&this.Cr.splice(n,1)[0]}peekTail(){return this.Cr[this.Cr.length-1]}peekHead(){return this.Cr[0]}}class Ec{constructor(){this.params=new yc,this.Tr=-1,this.Rr=new kc([],1),this.Mr=new kc([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function _c(t,n){return n.length<=t?n:`${n.substring(0,t-3)}...`}function Sc(t){const n=xc(t),e=n.match(/^(function [^ ]+\([^)]*\))/),i=e?e[1]:n,r=t.name||"";return r&&i.match(/function \(/)?`function ${r}${i.substring(9)}`:i}function xc(t){const n=k(t)?t.slice(-1)[0]:t;return n&&n.toString()||"undefined"}function Oc(t){const n=[],e=$c([[b,mc("undefined")],[x,mc("null")],[An,mc("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"===t.constructor.name,t=>t.Pr.toString()],[t=>_(t)&&!k(t)&&t.constructor!==Object&&R(t.toString),t=>t.toString()],[jn,Sc],[mc(!0),t=>t]]);function i(t){if(_(t)){if(-1!==n.indexOf(t))return"[circular ref]";n.push(t)}return e(t)}return b(t)?i(t):JSON.stringify(t,(t,n)=>i(n)).replace(/\\"/g,'"')}function Cc(t,n){return S(hc(t))&&S(n)?t.slice(0,-1).concat(hc(t)+n):rc(t,n)}function jc(t){if(!t)return"ng-view (defunct)";const n=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${n})]`}function Ac(t){return j(t)?Tc[t]:Tc[Tc[t]]}const Tc={Ir:0,Dr:1,Nr:2,qr:3,Ur:4},Rc=dc("$id"),Mc=dc("router.$id"),Pc=t=>`Transition #${Rc(t)}-${Mc(t)}`,Ic=new class{constructor(){this.Vr={},this.approximateDigests=0,this.$logger=window.angular?.$injector?.get(jt.L)}Fr(t,n){n.length||(n=Et(Tc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>Tc[t])),n.map(Ac).forEach(n=>this.Vr[n]=t)}enable(...t){this.Fr(!0,t)}disable(...t){this.Fr(!1,t)}enabled(t){return!!this.Vr[Ac(t)]}traceTransitionStart(t){this.enabled(Tc.Dr)&&this.$logger.log(`${Pc(t)}: Started -> ${Oc(t)}`)}traceTransitionIgnored(t){this.enabled(Tc.Dr)&&this.$logger.log(`${Pc(t)}: Ignored <> ${Oc(t)}`)}traceHookInvocation(t,n,e){if(!this.enabled(Tc.Nr))return;const i=dc("traceData.hookType")(e)||"internal",r=dc("traceData.context.state.name")(e)||dc("traceData.context")(e)||"unknown",s=Sc(t.registeredHook.callback);this.$logger.log(`${Pc(n)}: Hook -> ${i} context: ${r}, ${_c(200,s)}`)}traceHookResult(t,n){this.enabled(Tc.Nr)&&this.$logger.log(`${Pc(n)}: <- Hook returned: ${_c(200,Oc(t))}`)}traceResolvePath(t,n,e){this.enabled(Tc.Ir)&&this.$logger.log(`${Pc(e)}: Resolving ${t} (${n})`)}traceResolvableResolved(t,n){this.enabled(Tc.Ir)&&this.$logger.log(`${Pc(n)}: <- Resolved ${t} to: ${_c(200,Oc(t.data))}`)}traceError(t,n){this.enabled(Tc.Dr)&&this.$logger.log(`${Pc(n)}: <- Rejected ${Oc(n)}, reason: ${t}`)}traceSuccess(t,n){this.enabled(Tc.Dr)&&this.$logger.log(`${Pc(n)}: <- Success ${Oc(n)}, final state: ${t.name}`)}traceUIViewEvent(t,n,e=""){this.enabled(Tc.qr)&&this.$logger.log(`ng-view: ${function(t,n){for(;n.length<30;)n+=" ";return n}(0,t)} ${jc(n)}${e}`)}traceUIViewConfigUpdated(t,n){this.enabled(Tc.qr)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${n}'`)}traceUIViewFill(t,n){this.enabled(Tc.qr)&&this.traceUIViewEvent("Fill",t,` with: ${_c(200,n)}`)}traceViewSync(t){if(!this.enabled(Tc.Ur))return;const n="uiview component fqn",e="view config state (view name)",i=t.map(({ngView:t,viewConfig:i})=>{const r=t&&t.fqn,s=i&&`${i.viewDecl.$context.name}: (${i.viewDecl.$name})`;return{[n]:r,[e]:s}}).sort((t,e)=>(t[n]||"").localeCompare(e[n]||""));this.$logger.table(i)}traceViewServiceEvent(t,n){this.enabled(Tc.Ur)&&this.$logger.log(`VIEWCONFIG: ${t} ${(t=>{const n=t.viewDecl,e=n.$context.name||"(root)";return`[View#${t.$id} from '${e}' state]: target ng-view: '${n.$ngViewName}@${n.$ngViewContextAnchor}'`})(n)}`)}traceViewServiceUIViewEvent(t,n){this.enabled(Tc.Ur)&&this.$logger.log(`VIEWCONFIG: ${t} ${jc(n)}`)}};class Dc{constructor(t,n,e,i,r){this.resolved=!1,this.promise=void 0,t instanceof Dc?Object.assign(this,t):R(n)?(at(!O(t),"token argument is required"),this.token=t,this.policy=i,this.resolveFn=n,this.deps=e||[],this.data=r,this.resolved=void 0!==r,this.promise=this.resolved?Promise.resolve(this.data):void 0):_(t)&&t.token&&(kt(t,"resolveFn")||kt(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const n=this.policy||{},e=t&&t.resolvePolicy||{};return{when:n.when||e.when||"LAZY",async:n.async||e.async||"WAIT"}}resolve(t,n){const e=t.findNode(this),i=e&&e.state,r=this.getPolicy(i).async,s=R(r)?r:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(e=>e.get(t,n)))).then(t=>this.resolveFn.apply(null,t)).then(s).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Ic.traceResolvableResolved(this,n),this.data)),this.promise}get(t,n){return this.promise||this.resolve(t,n)}toString(){return`Resolvable(token: ${Oc(this.token)}, requires: [${this.deps.map(Oc)}])`}clone(){return new Dc(this)}}Dc.fromData=(t,n)=>new Dc(t,()=>n,null,null,n);class Nc{constructor(t,n,e,i){this.Y=t,this.si=n,this.si=n,this.Lr=Object.assign({},e||{}),this.yn=Object.assign({},i||{}),this.Hr=t.matcher.find(n,this.yn.relative)}name(){return this.Hr&&this.Hr.name||this.si}identifier(){return this.si}params(){return this.Lr}$state(){return this.Hr}state(){return this.Hr&&this.Hr.self}options(){return this.yn}exists(){return!(!this.Hr||!this.Hr.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this.Hr&&t){const n=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${n}'`}return this.Hr?this.Hr.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Oc(this.params())}`}withState(t){return new Nc(this.Y,t,this.Lr,this.yn)}withParams(t,n=!1){const e=n?t:Object.assign({},this.Lr,t);return new Nc(this.Y,this.si,e,this.yn)}withOptions(t,n=!1){const e=n?t:Object.assign({},this.yn,t);return new Nc(this.Y,this.si,this.Lr,e)}}Nc.isDef=t=>t&&t.state&&(S(t.state)||_(t.state)&&S(t.state.name));class qc{constructor(t,n,e,i,r){const s=function(t,n,e){const i=!1===e.reloadOnSearch&&1===n||void 0,r=Qo([e.dynamic,i],y),s=y(r)?{dynamic:r}:{},o=function(t){function n(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,n.Br=!0;const e=jn(t.value)?t.value:n;return Object.assign(t,{zr:e})}(e&&e.params&&e.params[t]);return Object.assign(s,o)}(t,e,r);n=function(t,n,e,i,r){if(t.type&&n&&"string"!==n.name)throw new Error(`Param '${i}' has two type configurations.`);if(t.type&&n&&"string"===n.name&&r.type(t.type))return r.type(t.type);if(n)return n;if(!t.type){const t=2===e?"any":0===e?"path":1===e?"query":"string";return r.type(t)}return t.type instanceof gc?t.type:r.type(t.type)}(s,n,e,t,i.paramTypes);const o=function(){const n={array:1===e&&"auto"},i=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(n,i,s).array}();n=o?n.$asArray(o,1===e):n;const c=void 0!==s.value||1===e,u=y(s.dynamic)?!!s.dynamic:!!n.dynamic,h=y(s.raw)?!!s.raw:!!n.raw,a=function(t,n,e){const{squash:i}=t;if(!n||!1===i)return!1;if(!y(i)||O(i))return e;if(!0===i||S(i))return i;throw new Error(`Invalid squash policy: '${i}'. Valid policies: false, true, or arbitrary string`)}(s,c,i.defaultSquashPolicy()),l=function(t,n,e,i){const r=[{from:"",to:e||n?void 0:""},{from:null,to:e||n?void 0:""}],s=k(t.replace)?t.replace:[];S(i)&&s.push({from:i,to:void 0});const o=tc(s,t=>t.from);return Yo(r,t=>-1===o.indexOf(t.from)).concat(s)}(s,o,c,a),f=y(s.inherit)?!!s.inherit:!!n.inherit;this.isOptional=c,this.type=n,this.location=e,this.id=t,this.dynamic=u,this.raw=h,this.squash=a,this.replace=l,this.inherit=f,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const n of this.replace)if(n.from===t)return n.to;return t})(t),b(t)?(()=>{if(this.Wr)return this.Wr.defaultValue;if(!window.angular.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=window.angular.$injector.invoke(this.config.zr);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.zr.Br&&(this.Wr={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return 1===this.location}validates(t){if((b(t)||null===t)&&this.isOptional)return!0;const n=this.type.$normalize(t);if(!this.type.is(n))return!1;const e=n;return!(S(e)&&!this.type.pattern.exec(e))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,n={}){const e={};for(const i of t)e[i.id]=i.value(n[i.id]);return e}static changed(t,n={},e={}){return t.filter(t=>!t.type.equals(n[t.id],e[t.id]))}static equals(t,n={},e={}){return 0===qc.changed(t,n,e).length}static validates(t,n={}){return t.map(t=>t.validates(n[t.id])).reduce(nc,!0)}}class Uc{constructor(t){if(t instanceof Uc){const n=t;this.state=n.state,this.paramSchema=n.paramSchema.slice(),this.paramValues=Object.assign({},n.paramValues),this.resolvables=n.resolvables.slice(),this.views=n.views&&n.views.slice()}else{const n=t;this.state=n,this.paramSchema=n.parameters({inherit:!1}),this.paramValues={},this.resolvables=n.resolvables.map(t=>t.clone())}}clone(){return new Uc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((n,e)=>{return uc(n,[(i=e).id,i.value(t[i.id])]);var i},{}),this}parameter(t){return Qo(this.paramSchema,fc("id",t))}equals(t,n){const e=this.diff(t,n);return e&&0===e.length}diff(t,n){if(this.state!==t.state)return!1;const e=n?n(this):this.paramSchema;return qc.changed(e,this.paramValues,t.paramValues)}}class Vc{static buildPath(t){const n=t.params();return t.$state().path.map(t=>new Uc(t).applyRawParams(n))}static buildToPath(t,n){const e=Vc.buildPath(n);return n.options().inherit?Vc.inheritParams(t,e,Object.keys(n.params())):e}static applyViewConfigs(t,n,e){n.filter(t=>e.includes(t.state)).forEach(e=>{const i=Object.values(e.state.views||{}),r=Vc.subPath(n,t=>t===e),s=i.map(n=>t.Jr(r,n));e.views=s.reduce(ic,[])})}static inheritParams(t,n,e=[]){const i=t.map(t=>t.paramSchema).reduce(ic,[]).filter(t=>!t.inherit).map(t=>t.id);return n.map(function(n){let r=Object.assign({},n&&n.paramValues);const s=Ko(r,e);r=Xo(r,e);const o=Xo(function(t,n){const e=Qo(t,fc("state",n));return Object.assign({},e&&e.paramValues)}(t,n.state)||{},i),c=Object.assign(r,o,s);return new Uc(n.state).applyRawParams(c)})}static treeChanges(t,n,e){const i=Math.min(t.length,n.length);let r=0;const s=(t,n)=>t.equals(n,Vc.nonDynamicParams);for(;r<i&&t[r].state!==e&&s(t[r],n[r]);)r++;const o=t,c=o.slice(0,r),u=o.slice(r),h=c.map(function(t,e){const i=t.clone();return i.paramValues=n[e].paramValues,i}),a=n.slice(r);return{from:o,to:h.concat(a),retained:c,retainedWithToParams:h,exiting:u,entering:a}}static matching(t,n,e){let i=!1;return cc(t,n).reduce((t,[n,r])=>(i=i||!n.equals(r,e),i?t:t.concat(n)),[])}static equals(t,n,e){return t.length===n.length&&Vc.matching(t,n,e).length===t.length}static subPath(t,n){const e=Qo(t,n),i=t.indexOf(e);return-1===i?void 0:t.slice(0,i+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,n)=>Object.assign(t,n.paramValues),{})}}function Fc(t,n){return new Nc(t,n.at(-1).state,n.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}),{})}const Lc="EAGER",Hc=[Lc,"LAZY"],Bc=[Lc];class zc{constructor(t){this.Et=t}getTokens(){return this.Et.reduce((t,n)=>t.concat(n.resolvables.map(t=>t.token)),[]).reduce(sc,[])}getResolvable(t){return hc(this.Et.map(t=>t.resolvables).reduce(ic,[]).filter(n=>n.token===t))}getPolicy(t){const n=this.findNode(t);return t.getPolicy(n)}subContext(t){return new zc(Vc.subPath(this.Et,n=>n.state===t))}addResolvables(t,n){const e=Qo(this.Et,fc("state",n)),i=t.map(t=>t.token);e.resolvables=e.resolvables.filter(t=>-1===i.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",n){const e=(Hc.includes(t)?t:"LAZY")===Lc?Bc:Hc;Ic.traceResolvePath(this.Et,t,n);const i=(t,n)=>e=>t.includes(this.getPolicy(e)[n]),r=this.Et.reduce((t,r)=>{const s=r.resolvables.filter(i(e,"when")),o=s.filter(i(["NOWAIT"],"async")),c=s.filter(t=>!i(["NOWAIT"],"async")(t)),u=this.subContext(r.state),h=t=>t.get(u,n).then(n=>({token:t.token,value:n}));return o.forEach(h),t.concat(c.map(h))},[]);return Promise.all(r)}findNode(t){return Qo(this.Et,n=>n.resolvables.includes(t))}getDependencies(t){const n=this.findNode(t),e=(Vc.subPath(this.Et,t=>t===n)||this.Et).reduce((t,n)=>t.concat(n.resolvables),[]).filter(n=>n!==t);return t.deps.map(t=>{const n=e.filter(n=>n.token===t);if(n.length)return hc(n);const i=window.angular.$injector.get(t);if(b(i))throw new Error(`Could not find Dependency Injection token: ${Oc(t)}`);return new Dc(t,()=>i,[],i)})}}const Wc=(t,n)=>t.reduce((t,e)=>t||y(n[e]),!1);function Jc(t){if(!t.parent)return{};const n=["component","bindings","componentProvider"],e=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),i=n.concat(e);if(y(t.views)&&Wc(i,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${i.filter(n=>y(t[n])).join(", ")}`);const r={};return _t(t.views||{$default:Ko(t,i)}).forEach(([i,s])=>{if(i=i||"$default",S(s)&&(s={component:s}),s=Object.assign({},s),Wc(n,s)&&Wc(e,s))throw new Error(`Cannot combine: ${n.join("|")} with: ${e.join("|")} in stateview: '${i}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$context=t,s.$name=i;const o=Gc.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,r[i]=s}),r}let Zc=0;class Gc{constructor(t,n,e){this.path=t,this.viewDecl=n,this.factory=e,this.component=void 0,this.template=void 0,this.$id=Zc++,this.loaded=!1,this.getTemplate=(t,n)=>this.component?this.factory.makeComponentTemplate(t,n,this.component,this.viewDecl.bindings):this.template}load(){const t=new zc(this.path),n=this.path.reduce((t,n)=>Object.assign(t,n.paramValues),{}),e=[Promise.resolve(this.factory.fromConfig(this.viewDecl,n,t)),Promise.resolve(this.getController(t))];return Promise.all(e).then(t=>(Ic.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const n=this.viewDecl.controllerProvider;if(!jn(n))return this.viewDecl.controller;const e=yn(n),i=k(n)?hc(n):n;return new Dc("",i,e).get(t)}static normalizeUIViewTarget(t,n=""){const e=n.split("@");let i=e[0]||"$default",r=S(e[1])?e[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(i);if(s&&(r=s[1],i=s[2]),"!"===i.charAt(0)&&(i=i.substring(1),r=""),/^(\^(?:\.\^)*)$/.exec(r)){const n=r.split(".").reduce(t=>t.parent,t);r=n.name}else"."===r&&(r=t.name);return{ngViewName:i,ngViewContextAnchor:r}}}class Kc{constructor(){this.Zr=[],this.Gr=[],this.Ei=[],this.Kr(function(){let t=null;return(n,e)=>(t=t||window.angular.$injector.get("$templateFactory"),new Gc(n,e,t))}())}$get=()=>this;rootViewContext(t){return this.Xr=t||this.Xr}Kr(t){this.Kr=t}Jr(t,n){const e=this.Kr;if(!e)throw new Error(`ViewService: No view config factory registered for type ${n.$type}`);return e(t,n)}deactivateViewConfig(t){Ic.traceViewServiceEvent("<- Removing",t),Zo(this.Gr,t)}activateViewConfig(t){Ic.traceViewServiceEvent("-> Registering",t),this.Gr.push(t)}sync(){const t=this.Zr.map(t=>[t.fqn,t]).reduce(uc,{});function n(t){let n=t.viewDecl.$context,e=0;for(;++e&&n.parent;)n=n.parent;return e}const e=lc((t,n,e,i)=>n*(t(e)-t(i))),i=t=>{-1!==this.Zr.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},r=this.Zr.sort(e(function(t){const n=t=>t&&t.parent?n(t.parent)+1:1;return 1e4*t.fqn.split(".").length+n(t.creationContext)},1)).map(i=>{const r=this.Gr.filter(Kc.matches(t,i));return r.length>1&&r.sort(e(n,-1)),{ngView:i,viewConfig:r[0]}}),s=r.map(t=>t.viewConfig),o=this.Gr.filter(t=>!s.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));r.forEach(t=>{i(t)});const c=r.concat(o);this.Ei.forEach(t=>t(c)),Ic.traceViewSync(c)}registerUIView(t){Ic.traceViewServiceUIViewEvent("-> Registering",t);const n=this.Zr;return n.filter(n=>n.fqn===t.fqn).length&&Ic.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),n.push(t),this.sync(),()=>{-1!==n.indexOf(t)?(Ic.traceViewServiceUIViewEvent("<- Deregistering",t),Zo(n,t)):Ic.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this.Zr.map(t=>t.fqn)}active(){return this.Zr.filter(t=>t.$config).map(t=>t.name)}}Kc.matches=(t,n)=>e=>{if(n.$type!==e.viewDecl.$type)return!1;const i=e.viewDecl,r=i.$ngViewName.split("."),s=n.fqn.split(".");if(!Wo(r,s.slice(0-r.length)))return!1;const o=1-r.length||void 0,c=s.slice(0,o).join("."),u=t[c].creationContext;return i.$ngViewContextAnchor===(u&&u.name)};let Xc=0;class Yc{constructor(t,n,e){this.$id=Xc++,this.type=t,this.message=n,this.detail=e,this.redirected=!1}static superseded(t,n){const e=new Yc(2,"The transition has been superseded by a different transition",t);return n&&n.redirected&&(e.redirected=!0),e}static redirected(t){return Yc.superseded(t,{redirected:!0})}static invalid(t){return new Yc(4,"This transition is invalid",t)}static ignored(t){return new Yc(5,"The transition was ignored",t)}static aborted(t){return new Yc(3,"The transition has been aborted",t)}static errored(t){return new Yc(6,"The transition errored",t)}static normalize(t){return pc(Yc)(t)?t:Yc.errored(t)}toString(){const t=(n=this.detail)&&n.toString!==Object.prototype.toString?n.toString():Oc(n);var n;const{$id:e,type:i,message:r}=this;return`Transition Rejection($id: ${e} type: ${i}, message: ${r}, detail: ${t})`}toPromise(){return Object.assign(((t=Promise.reject(this)).catch(()=>0),t),{Pr:this});var t}}const Qc={current:()=>{},transition:null,traceData:{},bind:null},tu={Dr:0,Yr:1};class nu{static chain(t,n){return t.reduce((t,n)=>t.then(()=>n.invokeHook()),n||Promise.resolve())}static invokeHooks(t,n){for(let e=0;e<t.length;e++){const i=t[e].invokeHook();if(An(i)){const r=t.slice(e+1);return nu.chain(r,i).then(()=>{n()})}}return n()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,n,e,i,r){this.transition=t,this.stateContext=n,this.registeredHook=e,this.options=i,this.isSuperseded=()=>2===this.type.hookPhase&&!this.options.transition.isActive(),this.options=Go(i,Qc),this.type=e.eventType,this.D=r}logError(t){this.D(t)}invokeHook(){const t=this.registeredHook;if(t.Qr)return;const n=this.getNotCurrentRejection();if(n)return n;const{options:e}=this;Ic.traceHookInvocation(this,this.transition,e);const i=()=>t.callback.call(e.bind,this.transition,this.stateContext),r=t=>Yc.normalize(t).toPromise(),s=n=>t.eventType.getErrorHandler(this)(n),o=n=>t.eventType.getResultHandler(this)(n);try{const t=i();return!this.type.synchronous&&An(t)?t.catch(r).then(o,s):o(t)}catch(t){return s(Yc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){return this.getNotCurrentRejection()||(An(t)?t.then(t=>this.handleHookResult(t)):(Ic.traceHookResult(t,this.transition),!1===t?Yc.aborted("Hook aborted transition").toPromise():t instanceof Nc?Yc.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition.ts?Yc.aborted().toPromise():this.isSuperseded()?Yc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:n}=this;return`${dc("traceData.hookType")(t)||"internal"} context: ${dc("traceData.context.state.name")(t)||dc("traceData.context")(t)||"unknown"}, ${_c(200,xc(n.callback))}`}}nu.HANDLE_RESULT=t=>n=>t.handleHookResult(n),nu.LOG_REJECTED_RESULT=t=>n=>{An(n)&&n.catch(n=>t.logError(Yc.normalize(n)))},nu.LOG_ERROR=t=>n=>t.logError(n),nu.REJECT_ERROR=()=>t=>{return(n=Promise.reject(t)).catch(()=>0),n;var n},nu.THROW_ERROR=()=>t=>{throw t};class eu{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new eu(t):null}constructor(t){this.Ne=t;const n=this.Ne.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":`\\.${t}`).join("");this.ns=new RegExp(`^${n}$`)}matches(t){return this.ns.test(`.${t}`)}}function iu(t,n,e){const i=S(n)?[n]:n;return!!(R(i)?i:function(t){const n=i;for(let e=0;e<n.length;e++){const i=new eu(n[e]);if(i&&i.matches(t.name)||!i&&n[e]===t.name)return!0}return!1})(t,e)}class ru{constructor(t,n,e,i,r,s={}){this.tranSvc=t,this.eventType=n,this.callback=e,this.matchCriteria=i,this.removeHookFromRegistry=r,this.invokeCount=0,this.Qr=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}es(t,n,e){if(!0===n)return t;const i=t.filter(t=>iu(t.state,n,e));return i.length?i:null}rs(){return tc(this.tranSvc.ss(),()=>!0)}cs(t,n){const e=Object.assign(this.rs(),this.matchCriteria);return Object.values(this.tranSvc.ss()).reduce((i,r)=>{const s=r.scope===tu.Yr,o=t[r.name]||[],c=s?o:[hc(o)];return i[r.name]=this.es(c,e[r.name],n),i},{})}matches(t,n){const e=this.cs(t,n);return Object.values(e).every(t=>t)?e:null}deregister(){this.removeHookFromRegistry(this),this.Qr=!0}}function su(t,n,e){const i=(t.us=t.us||{})[e.name]=[],r=t=>Zo(i,t);function s(t,s,o={}){const c=new ru(n,e,s,t,r,o);return i.push(c),c.deregister.bind(c)}return t[e.name]=s,s}class ou{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.ls.hs(t).map(t=>this.buildHooks(t)).reduce(ic,[]).filter(Boolean)}buildHooks(t){const{transition:n}=this,e=n.treeChanges(),i=this.getMatchingHooks(t,e,n);if(!i)return[];const r={transition:n,current:n.options().current};return i.map(i=>i.matches(e,n)[t.criteriaMatchPath.name].map(e=>{const s=Object.assign({bind:i.bind,traceData:{hookType:t.name,context:e}},r),o=t.criteriaMatchPath.scope===tu.Yr?e.state.self:null,c=new nu(n,o,i,s,this.transition.ls.D);return{hook:i,node:e,transitionHook:c}})).reduce(ic,[]).sort(function(t=!1){return function(n,e){const i=t?-1:1,r=(n.node.state.path.length-e.node.state.path.length)*i;return 0!==r?r:e.hook.priority-n.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,n,e){const i=0===t.hookPhase,r=this.transition.ls;return(i?[r]:[this.transition,r]).map(n=>n.getHooks(t.name)).filter(function(t,n="assert failure"){return e=>{const i=t(e);if(!i)throw new Error(n);return i}}(k,`broken event named: ${t.name}`)).reduce(ic,[]).filter(t=>t.matches(n,e))}}class cu{constructor(t,n,e,i){if(this.fs=i,this.ls=e,this.ds=Promise.withResolvers(),this.promise=this.ds.promise,this.us={},this.ps=new ou(this),this.isActive=()=>this.fs.transition===this,this.$s=n,!n.valid())throw new Error(n.error());this.yn=Object.assign({current:mc(this)},n.options()),this.$id=e.gs++;const r=Vc.buildToPath(t,n);this.ws=Vc.treeChanges(t,r,this.yn.reloadState),this.createTransitionHookRegFns();const s=this.ps.buildHooksForPhase(0);nu.invokeHooks(s,()=>null),this.applyViewConfigs(),this.onStart=void 0,this.onBefore=void 0,this.onSuccess=void 0,this.onEnter=void 0,this.onRetain=void 0,this.onExit=void 0,this.onFinish=void 0,this.onError=void 0}createTransitionHookRegFns(){this.ls.hs().filter(t=>0!==t.hookPhase).forEach(t=>su(this,this.ls,t))}getHooks(t){return this.us[t]}applyViewConfigs(){const t=this.ws.entering.map(t=>t.state);Vc.applyViewConfigs(this.ls.$view,this.ws.to,t)}$from(){return hc(this.ws.from).state}$to(){return hc(this.ws.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this.$s}is(t){return t instanceof cu?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!iu(this.$to(),t.to,this)||t.from&&!iu(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this.ws[t].map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{}))}getResolveTokens(t="to"){return new zc(this.ws[t]).getTokens()}addResolvable(t,n){void 0===n&&(n=""),t=pc(Dc)(t)?t:new Dc(t);const e="string"==typeof n?n:n.name,i=this.ws.to,r=Qo(i,t=>t.state.name===e);at(!!r,`targetNode not found ${e}`),new zc(i).addResolvables([t],r.state)}redirectedFrom(){return this.yn.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this.yn}entering(){return tc(this.ws.entering,t=>t.state).map(t=>t.self)}exiting(){return tc(this.ws.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return tc(this.ws.retained,t=>t.state).map(t=>t.self)}views(t="entering",n){let e=this.ws[t];return e=n?e.filter(fc("state",n)):e,e.map(t=>t.views).reduce(ic,[])}treeChanges(t){return t?this.ws[t]:this.ws}redirect(t){let n=1,e=this;for(;!O(e=e.redirectedFrom());)if(++n>20)throw new Error("Too many consecutive Transition redirects (20+)");const i={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(i.location="replace");const r=Object.assign({},this.options(),t.options(),i);t=t.withOptions(r,!0);const s=this.ls.create(this.ws.from,t),o=this.ws.entering,c=s.ws.entering;return Vc.matching(c,o,Vc.nonDynamicParams).filter(n=>{return!(e=t.options().reloadState,t=>e&&t.state.includes[e.name])(n);var e}).forEach((t,n)=>{t.resolvables=o[n].resolvables}),s}vs(){const t=this.ws;if(this.yn.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(cc(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(ec,!1))return;const n=t.to.map(t=>t.paramSchema),[e,i]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return cc(n,e,i).map(([t,n,e])=>qc.changed(t,n,e)).reduce(ic,[])}dynamic(){const t=this.vs();return!!t&&t.map(t=>t.dynamic).reduce(ec,!1)}ignored(){return!!this.bs()}bs(){const t=this.fs.transition,{reloadState:n}=this.yn,e=(t,e)=>{if(t.length!==e.length)return!1;const i=Vc.matching(t,e);return t.length===i.filter(t=>!n||!t.state.includes[n.name]).length},i=this.ws,r=t&&t.ws;return r&&e(r.to,i.to)&&e(r.exiting,i.exiting)?"SameAsPending":0===i.exiting.length&&0===i.entering.length&&e(i.from,i.to)?"SameAsCurrent":void 0}run(){const t=t=>this.ps.buildHooksForPhase(t),n=t(1);return nu.invokeHooks(n,()=>{const{fs:t}=this;return t.Tr=this.$id,t.transition=this,t.Rr.enqueue(this),Ic.traceTransitionStart(this),Promise.resolve()}).then(()=>{const n=t(2),e=Promise.resolve();return nu.invokeHooks(n,()=>e)}).then(()=>{Ic.traceSuccess(this.$to(),this),this.success=!0,this.ds.resolve(this.to()),this.ps.buildHooksForPhase(3).forEach(t=>{t.invokeHook()})},n=>{Ic.traceError(n,this),this.success=!1,this.ds.reject(n),this.ys=n,t(4).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){b(this.success)&&(this.ts=!0)}error(){const t=this.$to();if(t.self.abstract)return Yc.invalid(`Cannot transition to abstract state '${t.name}'`);const n=t.parameters(),e=this.params(),i=n.filter(t=>!t.validates(e[t.id]));if(i.length){const n=i.map(t=>`[${t.id}:${Oc(e[t.id])}]`).join(", "),r=`The following parameter values are not valid for state '${t.name}': ${n}`;return Yc.invalid(r)}return!1===this.success?this.ys:void 0}toString(){const t=this.from(),n=this.to(),e=t=>null!==t["#"]&&void 0!==t["#"]?t:Xo(t,["#"]);return`Transition#${this.$id}( '${_(t)?t.name:t}'${Oc(e(this.ws.from.map(t=>t.paramValues).reduce((t,n)=>({...t,...n}),{})))} -> ${this.valid()?"":"(X) "}'${_(n)?n.name:n}'${Oc(e(this.params()))} )`}}cu.diToken=cu;const uu=["$transition$",cu];function hu(t){const n=Object.values(t.treeChanges()).reduce(ic,[]).reduce(sc,[]),e=t=>uu.includes(t.token)?Dc.fromData(t.token,null):t;n.forEach(t=>{t.resolvables=t.resolvables.map(e)})}function au(t){return(n,e)=>(0,e.X()[t])(n,e)}const lu=au("onExit"),fu=au("onRetain"),du=au("onEnter"),pu=1e3,mu=t=>new zc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),$u=(t,n)=>new zc(t.treeChanges().to).subContext(n.X()).resolvePath("LAZY",t).then(()=>{}),gu=t=>new zc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),wu=t=>{const n=t.views("entering");if(n.length)return Promise.all(n.map(t=>Promise.resolve(t.load()))).then(()=>{})},vu=t=>{const n=t.fs,e=()=>{n.transition===t&&(n.transition=null)};t.onSuccess({},()=>{n.Mr.enqueue(t),n.$current=t.$to(),n.current=n.$current.self,ac(t.params(),n.params)},{priority:1e4}),t.promise.then(e,e)};function bu(t,n,e,i){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const r=t.entering().filter(t=>!!t.X().lazyLoad).map(n=>yu(t,n,i));return Promise.all(r).then(function(){if("url"!==t.originalTransition().options().source){const e=t.targetState();return n.target(e.identifier(),e.params(),e.options())}const i=e.match(e.parts()),r=i&&i.rule;if(r&&"STATE"===r.type){const{state:e}=r,s=i.match;return n.target(e,s,t.options())}e.sync()})})}function yu(t,n,e){const i=n.X().lazyLoad;let r=i.Ji;if(!r){const s=t=>(delete n.lazyLoad,delete n.X().lazyLoad,delete i.Ji,t),o=t=>(delete i.Ji,Promise.reject(t));r=i.Ji=Promise.resolve(i(t,n)).then(function(t){return t&&k(t.states)&&t.states.forEach(t=>e.register(t)),t}).then(s,o)}return r}class ku{constructor(t,n,e,i,r=!1,s=nu.HANDLE_RESULT,o=nu.REJECT_ERROR,c=!1){this.name=t,this.hookPhase=n,this.hookOrder=e,this.criteriaMatchPath=i,this.reverseSort=r,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=c}}function Eu(t){const n=t.bs();if(!n)return;Ic.traceTransitionIgnored(t);const e=t.fs.transition;return"SameAsCurrent"===n&&e&&e.abort(),Yc.ignored().toPromise()}function _u(t){if(!t.valid())throw new Error(t.error().toString())}const Su={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class xu{static $inject=At([jt.Z,jt.ht,jt.D]);constructor(t,n,e){this.gs=0,this.ks=[],this.us={},this.Es={},this.globals=t,this.$view=n,this._s={},this.Ss(),this.xs(),this.Os(),this.D=e.handler,t.Mr.onEvict(hu)}$get=[jt.X,jt.ut,jt.Y,jt.ht,(t,n,e,i)=>(this._s.lazyLoad=bu(this,t,n,e),this._s.updateUrl=((t,n,e)=>{this.onSuccess({},t=>{const i=t.options(),r=n;if("url"!==i.source&&i.location&&r.$current.navigable){const t={replace:"replace"===i.location};e.push(r.$current.navigable.url,r.globals.params,t)}e.update(!0)},{priority:9999})})(0,t,n),this._s.redirectTo=((t,n)=>{this.onStart({to:t=>!!t.redirectTo},t=>{const e=t.to().redirectTo;if(!e)return;const i=n;function r(n){if(n)return n instanceof Nc?n:S(n)?i.target(n,t.params(),t.options()):n.state||n.params?i.target(n.state||t.to(),n.params||t.params(),t.options()):void 0}return R(e)?Promise.resolve(e(t)).then(r):r(e)})})(0,t),this._s.activateViews=((t,n)=>{this.onSuccess({},t=>{const e=t.views("entering"),i=t.views("exiting");(e.length||i.length)&&(i.forEach(t=>n.deactivateViewConfig(t)),e.forEach(t=>{n.activateViewConfig(t)}),n.sync())})})(0,i),this)];create(t,n){return new cu(t,n,this,this.globals)}xs(){const t=nu,n=this.Es,e=!1,i=!0;this.Cs("onCreate",0,0,n.to,e,t.LOG_REJECTED_RESULT,t.THROW_ERROR,i),this.Cs("onBefore",1,0,n.to),this.Cs("onStart",2,0,n.to),this.Cs("onExit",2,100,n.exiting,!0),this.Cs("onRetain",2,200,n.retained),this.Cs("onEnter",2,300,n.entering),this.Cs("onFinish",2,400,n.to),this.Cs("onSuccess",3,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i),this.Cs("onError",4,0,n.to,e,t.LOG_REJECTED_RESULT,t.LOG_ERROR,i)}Ss(){const{Yr:t,Dr:n}=tu;this.js("to",n),this.js("from",n),this.js("exiting",t),this.js("retained",t),this.js("entering",t)}Cs(t,n,e,i,r=!1,s=nu.HANDLE_RESULT,o=nu.REJECT_ERROR,c=!1){const u=new ku(t,n,e,i,r,s,o,c);this.ks.push(u),su(this,this,u)}hs(t){return(y(t)?this.ks.filter(n=>n.hookPhase===t):this.ks.slice()).sort((t,n)=>{const e=t.hookPhase-n.hookPhase;return 0===e?t.hookOrder-n.hookOrder:e})}js(t,n){this.Es[t]={name:t,scope:n}}ss(){return this.Es}getHooks(t){return this.us[t]}Os(){const t=this._s;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(Dc.fromData(cu,t),""),t.addResolvable(Dc.fromData("$transition$",t),""),t.addResolvable(Dc.fromData("$stateParams",t.params()),""),t.entering().forEach(n=>{t.addResolvable(Dc.fromData("$state$",n),n)})}),t.ignored=(()=>this.onBefore({},Eu,{priority:-9999}))(),t.invalid=(()=>this.onBefore({},_u,{priority:-1e4}))(),t.onExit=(()=>this.onExit({exiting:t=>!!t.onExit},lu))(),t.onRetain=(()=>this.onRetain({retained:t=>!!t.onRetain},fu))(),t.onEnter=(()=>this.onEnter({entering:t=>!!t.onEnter},du))(),t.eagerResolve=(()=>this.onStart({},mu,{priority:pu}))(),t.lazyResolve=(()=>this.onEnter({entering:mc(!0)},$u,{priority:pu}))(),t.resolveAll=(()=>this.onFinish({},gu,{priority:pu}))(),t.loadViews=(()=>this.onFinish({},wu))(),t.updateGlobals=(()=>this.onCreate({},vu))(),t.lazyLoad=bu(this)}}const Ou=mt("$stateProvider"),Cu=t=>t.catch(()=>0)&&t;class ju{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=At([jt.Z,jt.ot,jt.D]);constructor(t,n,e){this.globals=t,this.transitionService=n,this.stateRegistry=void 0,this.urlService=void 0,this.$injector=void 0,this.invalidCallbacks=[],this.As=e.handler}$get=[jt.gt,jt.ut,(t,n)=>(this.urlService=n,this.$injector=t,this)];decorator(t,n){return this.stateRegistry.decorator(t,n)||this}state(t){if(!t.name)throw Ou("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Ou("stateinvalid",t.message)}return this}Ts(t,n){const e=Fc(this.stateRegistry,t),{globals:i}=this,r=()=>i.Rr.peekTail(),s=r(),o=new kc(this.invalidCallbacks.slice()),c=this.$injector,u=t=>{if(!(t instanceof Nc))return;let n=t;return n=this.target(n.identifier(),n.params(),n.options()),n.valid()?r()!==s?Yc.superseded().toPromise():this.transitionTo(n.identifier(),n.params(),n.options()):Yc.invalid(n.error()).toPromise()};return function t(){const i=o.dequeue();return void 0===i?Yc.invalid(n.error()).toPromise():Promise.resolve(i(n,e,c)).then(u).then(n=>n||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Zo(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!y(t)||t,inherit:!1,notify:!1})}go(t,n,e){const i=Go(e,{relative:this.$current,inherit:!0},Su);return this.transitionTo(t,n,i)}target(t,n,e={}){if(_(e.reload)&&!e.reload.name)throw new Error("Invalid reload state object");const i=this.stateRegistry;if(e.reloadState=!0===e.reload?i.root():i.matcher.find(e.reload,e.relative),e.reload&&!e.reloadState)throw new Error(`No such reload state '${S(e.reload)?e.reload:e.reload.name}'`);return new Nc(this.stateRegistry,t,n,e)}getCurrentPath(){const{globals:t}=this,n=t.Mr.peekTail();return n?n.ws.to:(()=>[new Uc(this.stateRegistry.root())])()}transitionTo(t,n={},e={}){e=Go(e,Su);const i=()=>this.globals.transition;e=Object.assign(e,{current:i});const r=this.target(t,n,e),s=this.getCurrentPath();if(!r.exists())return this.Ts(s,r);if(!r.valid())return o=r.error(),Cu(Promise.reject(o));var o;if(!1===e.supercede&&i())return Yc.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const c=t=>n=>{if(n instanceof Yc){const e=this.globals.Tr<=t.$id;if(5===n.type)return e&&this.urlService.update(),Promise.resolve(this.globals.current);const{detail:i}=n;if(2===n.type&&n.redirected&&i instanceof Nc){const n=t.redirect(i);return n.run().catch(c(n))}if(3===n.type)return e&&this.urlService.update(),Promise.reject(n)}return this.defaultErrorHandler()(n),Promise.reject(n)},u=this.transitionService.create(s,r),h=u.run().catch(c(u));return Cu(h),Object.assign(h,{transition:u})}is(t,n,e){e=Go(e,{relative:this.$current});const i=this.stateRegistry.matcher.find(t,e.relative);if(!y(i))return;if(this.$current!==i)return!1;if(!n)return!0;const r=i.parameters({inherit:!0,matchingKeys:n});return qc.equals(r,qc.values(r,n),this.globals.params)}includes(t,n,e){e=Go(e,{relative:this.$current});const i=S(t)&&eu.fromString(t);if(i){if(!i.matches(this.$current.name))return!1;t=this.$current.name}const r=this.stateRegistry.matcher.find(t,e.relative),s=this.$current.includes;if(!y(r))return;if(!y(s[r.name]))return!1;if(!n)return!0;const o=r.parameters({inherit:!0,matchingKeys:n});return qc.equals(o,qc.values(o,n),this.globals.params)}href(t,n,e){e=Go(e,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),n=n||{};const i=this.stateRegistry.matcher.find(t,e.relative);if(!y(i))return null;e.inherit&&(n=this.globals.params.$inherit(n,this.$current,i));const r=i&&e.lossy?i.navigable:i;return r&&void 0!==r.url&&null!==r.url?this.urlService.href(r.url,n,{absolute:e.absolute}):null}defaultErrorHandler(t){return this.As=t||this.As}get(t,n){const e=this.stateRegistry;return 0===arguments.length?e.get():e.get(t,n||this.$current)}lazyLoad(t,n){const e=this.get(t);if(!e||!e.lazyLoad)throw new Error(`Can not lazy load ${t}`);const i=this.getCurrentPath(),r=Fc(this.stateRegistry,i);return yu(n=n||this.transitionService.create(i,r),e)}}class Au{constructor(){this.Rs=!1}$get=[jt.q,jt.it,jt.st,jt.gt,(t,n,e,i)=>(this.$templateRequest=e,this.$http=t,this.$templateCache=n,this.$injector=i,this)];useHttpService(t){this.Rs=t}fromConfig(t,n,e){const i=t=>Promise.resolve(t).then(t=>({template:t})),r=t=>Promise.resolve(t).then(t=>({component:t}));switch(y((s=t).template)?"template":y(s.templateUrl)?"templateUrl":y(s.templateProvider)?"templateProvider":y(s.component)?"component":y(s.componentProvider)?"componentProvider":"default"){case"template":return i(this.fromString(t.template,n));case"templateUrl":return i(this.fromUrl(t.templateUrl,n));case"templateProvider":return i(this.fromProvider(t.templateProvider,n,e));case"component":return r(t.component);case"componentProvider":return r(this.fromComponentProvider(t.componentProvider,e));default:return i("<ng-view></ng-view>")}var s}fromString(t,n){return R(t)?t(n):t}fromUrl(t,n){return R(t)&&(t=t(n)),O(t)?null:this.Rs?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,n,e){const i=yn(t),r=k(t)?hc(t):t;return new Dc("",r,i).get(e)}fromComponentProvider(t,n){const e=yn(t),i=k(t)?hc(t):t;return new Dc("",i,e).get(n)}makeComponentTemplate(t,n,e,i){i=i||{};const r=t=>{const n=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}(t);return/^(x|data)-/.exec(n)?`x-${n}`:n},s=function(t,n){const e=t.get(n+Ve);if(!e||!e.length)throw new Error(`Unable to find component named '${n}'`);return e.map(Tu).reduce(ic,[])}(this.$injector,e).map(e=>{const{name:s,type:o}=e,c=r(s);if(t.getAttribute(c)&&!i[s])return`${c}='${t.getAttribute(c)}'`;const u=i[s]||s;if("@"===o)return`${c}='{{s$resolve.${u}}}'`;if("&"===o){const t=n.getResolvable(u),e=t&&t.data,i=e&&yn(e)||[];return`${c}='$resolve.${u}${k(e)?`[${e.length-1}]`:""}(${i.join(",")})'`}return`${c}='$resolve.${u}'`}).join(" "),o=r(e);return`<${o} ${s}></${o}>`}}const Tu=t=>_(t.bindToController)?Ru(t.bindToController):Ru(t.scope),Ru=t=>Object.keys(t||{}).map(n=>[n,/^([=<@&])[?]?(.*)/.exec(t[n])]).filter(t=>y(t)&&k(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function Mu(t,n){let e=["",""],i=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!n)return i;switch(n.squash){case!1:e=["(",")"+(n.isOptional?"?":"")];break;case!0:i=i.replace(/\/$/,""),e=["(?:/(",")|/)?"];break;default:e=[`(${n.squash}|`,")?"]}return i+e[0]+n.type.pattern.source+e[1]}const Pu=function(){const t=new RegExp("(/)","g");return n=>n.split(t).filter(Boolean)}(),Iu={state:{params:{}},strict:!0,caseInsensitive:!0};class Du{static pathSegmentsAndParams(t){return cc(t.Ms,t.Lr.filter(t=>0===t.location).concat(void 0)).reduce(ic,[]).filter(t=>""!==t&&y(t))}static queryParams(t){return t.Lr.filter(t=>1===t.location)}static compare(t,n){const e=t=>t.kt.weights=t.kt.weights||(t=>t.kt.segments=t.kt.segments||t.kt.path.map(Du.pathSegmentsAndParams).reduce(ic,[]).reduce(Cc,[]).map(t=>S(t)?Pu(t):t).reduce(ic,[]))(t).map(t=>"/"===t?1:S(t)?2:t instanceof qc?3:void 0),i=e(t),r=e(n);((t,n)=>{const e=Math.max(t.length,n.length);for(;t.length<e;)t.push(0);for(;n.length<e;)n.push(0)})(i,r);const s=cc(i,r);let o;for(let t=0,n=s.length;t<n;t++)if(o=s[t][0]-s[t][1],0!==o)return o;return 0}constructor(t,n,e,i){this.kt={path:[this]},this.Oi=[],this.Lr=[],this.Ms=[],this.Ps=[],this.config=i=Go(i,Iu),this.pattern=t;const r=new RegExp("([:*])([\\w[\\]]+)|\\{([\\w[\\]]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),s=new RegExp("([:]?)([\\w[\\].-]+)|\\{([\\w[\\].-]+)(?::\\s*((?:[^{}\\\\]{1,200}|\\\\.|\\{(?:[^{}\\\\]{1,200}|\\\\.)*\\})+))?\\}","g"),o=[];let c,u=0;const h=n=>{if(!Du.nameValidator.test(n))throw new Error(`Invalid parameter name '${n}' in pattern '${t}'`);if(Qo(this.Lr,fc("id",n)))throw new Error(`Duplicate parameter name '${n}' in pattern '${t}'`)},a=(e,i)=>{const r=e[2]||e[3],s=i?e[4]:e[4]||("*"===e[1]?"[\\s\\S]*":null);return{id:r,regexp:s,segment:t.substring(u,e.index),type:s?n.type(s)||(t=>Jo(n.type(i?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let l,f;for(;(c=r.exec(t))&&(l=a(c,!1),!(l.segment.indexOf("?")>=0));)h(l.id),this.Lr.push(e.fromPath(l.id,l.type,i.state)),this.Ms.push(l.segment),o.push([l.segment,hc(this.Lr)]),u=r.lastIndex;f=t.substring(u);const d=f.indexOf("?");if(d>=0){const t=f.substring(d);if(f=f.substring(0,d),t.length>0)for(u=0;c=s.exec(t);)l=a(c,!0),h(l.id),this.Lr.push(e.fromSearch(l.id,l.type,i.state)),u=r.lastIndex}this.Ms.push(f),this.Ps=o.map(t=>Mu.apply(null,t)).concat(Mu(f))}append(t){return this.Oi.push(t),t.kt={path:this.kt.path.concat(t),parent:this,pattern:null},t}isRoot(){return this.kt.path[0]===this}toString(){return this.pattern}Is(t,n){return n.value(t)}exec(t,n={},e){const i=(r=this.kt,s="pattern",o=()=>new RegExp(["^",oc(this.kt.path.map(t=>t.Ps)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),r[s]=r[s]||o()).exec(t);var r,s,o;if(!i)return null;const c=this.parameters(),u=c.filter(t=>!t.isSearch()),h=c.filter(t=>t.isSearch()),a=this.kt.path.map(t=>t.Ms.length-1).reduce((t,n)=>t+n),l={};if(a!==i.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function f(t){const n=t=>t.split("").reverse().join(""),e=tc(n(t).split(/-(?!\\)/),n);return tc(e,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<a;t++){const n=u[t];let e=i[t+1];for(let t=0;t<n.replace.length;t++)n.replace[t].from===e&&(e=n.replace[t].to);e&&!0===n.array&&(e=f(e)),l[n.id]=this.Is(e,n)}return h.forEach(t=>{let e=n[t.id];for(let n=0;n<t.replace.length;n++)t.replace[n].from===e&&(e=t.replace[n].to);l[t.id]=this.Is(e,t)}),e&&(l["#"]=e),l}parameters(t={}){return!1===t.inherit?this.Lr:oc(this.kt.path.map(t=>t.Lr))}parameter(t,n={}){const{parent:e}=this.kt;return(()=>{for(const n of this.Lr)if(n.id===t)return n})()||!1!==n.inherit&&e&&e.parameter(t,n)||null}validates(t){return t=t||{},this.parameters().filter(n=>kt(t,n.id)).map(n=>((t,n)=>!t||t.validates(n))(n,t[n.id])).reduce(nc,!0)}format(t={}){const n=this.kt.path,e=n.map(Du.pathSegmentsAndParams).reduce(ic,[]).map(t=>S(t)?t:r(t)),i=n.map(Du.queryParams).reduce(ic,[]).map(r);if(e.concat(i).filter(t=>!1===t.isValid).length)return null;function r(n){const e=n.value(t[n.id]),i=n.validates(e),r=n.isDefaultValue(e),s=!!r&&n.squash,o=n.type.encode(e);return{param:n,value:e,isValid:i,isDefaultValue:r,squash:s,encoded:o}}const s=e.reduce((t,n)=>{if(S(n))return t+n;const{squash:e,encoded:i,param:r}=n;return!0===e?t.match(/\/$/)?t.slice(0,-1):t:S(e)?t+e:!1!==e||O(i)?t:k(i)?t+tc(i,Nu).join("-"):r.raw?t+i:t+encodeURIComponent(i)},""),o=i.map(t=>{const{param:n,squash:e,isDefaultValue:i}=t;let{encoded:r}=t;if(!(O(r)||i&&!1!==e)&&(k(r)||(r=[r]),0!==r.length))return n.raw||(r=tc(r,encodeURIComponent)),r.map(t=>`${n.id}=${t}`)}).reduce(ic,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?`#${t["#"]}`:"")}}function Nu(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}Du.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class qu{name;navigable;parent;params;url;includes;constructor(t){Object.assign(this,t),this.X=()=>this,this.self=t;const n=this.name?eu.fromString(this.name):null;this.Ds={nameGlob:n}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?`${t}.${this.name}`:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Go(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(n=>!t.matchingKeys||kt(t.matchingKeys,n.id))}parameter(t,n={}){return this.url&&this.url.parameter(t,n)||Qo(Object.values(this.params),fc("id",t))||n.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}qu.isStateDeclaration=t=>R(t.X),qu.isState=t=>_(t.Ds);class Uu{constructor(t,n,e){this.urlService=t,this.stateService=n,this.routerGlobals=e}create(t,n){const{isState:e,isStateDeclaration:i}=qu,r=$c([[S,t=>r(this.urlService.compile(t))],[pc(Du),t=>this.fromUrlMatcher(t,n)],[(...t)=>e(...t)||i(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[pc(RegExp),t=>this.fromRegExp(t,n)],[R,t=>new Vu(t,n)]]),s=r(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,n){let e=n;S(n)&&(n=this.urlService.compile(n)),pc(Du)(n)&&(e=t=>n.format(t));const i={urlMatcher:t,matchPriority:function(n){const e=t.parameters().filter(t=>t.isOptional);return e.length?e.filter(t=>n[t.id]).length/e.length:1e-6},type:"URLMATCHER"};return Object.assign(new Vu(function(n){const e=t.exec(n.path,n.search,n.hash);return t.validates(e)&&e},e),i)}fromState(t,n,e){const i=qu.isStateDeclaration(t)?t.X():t,r={state:i,type:"STATE"};return Object.assign(this.fromUrlMatcher(i.url,t=>{const r=n;r.href(i,t)!==r.href(e.current,e.params)&&r.transitionTo(i,t,{inherit:!0,source:"url"})}),r)}fromRegExp(t,n){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const e=S(n)?t=>n.replace(/\$(\$|\d{1,2})/,(n,e)=>t["$"===e?0:Number(e)]):n,i={regexp:t,type:"REGEXP"};return Object.assign(new Vu(n=>t.exec(n.path),e),i)}}Uu.isUrlRule=t=>t&&["type","match","handler"].every(n=>y(t[n]));class Vu{constructor(t,n){this.match=t,this.type="RAW",this.$id=-1,this.Ns=void 0,this.handler=n||(t=>t),this.priority=void 0}matchPriority(t){return at(b(t)),0-this.$id}}function Fu(t,n){let e=function(t,n){return(n.priority||0)-(t.priority||0)}(t,n);return 0!==e?e:(e=((t,n)=>{const e={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(e[t.type]||0)-(e[n.type]||0)})(t,n),0!==e?e:(e=((t,n)=>t.urlMatcher&&n.urlMatcher?Du.compare(t.urlMatcher,n.urlMatcher):0)(t,n),0!==e?e:((t,n)=>{const e={STATE:!0,URLMATCHER:!0};return e[t.type]&&e[n.type]?0:(t.$id||0)-(n.$id||0)})(t,n)))}class Lu{constructor(t){this.qs=Fu,this.Us=[],this.Vs=0,this.Fs=t}removeRule(t){Zo(this.Us,t)}rule(t){if(!Uu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this.Vs++,t.priority=t.priority||0,this.Us.push(t),this.Ls=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this.Us}sort(t){const n=this.stableSort(this.Us,this.qs=t||this.qs);let e=0;for(let t=0;t<n.length;t++)n[t].Ns=e,t<n.length-1&&0!==this.qs(n[t],n[t+1])&&e++;this.Us=n,this.Ls=!0}ensureSorted(){this.Ls||this.sort()}stableSort(t,n){const e=t.map((t,n)=>({elem:t,idx:n}));return e.sort((t,e)=>{const i=n(t.elem,e.elem);return 0===i?t.idx-e.idx:i}),e.map(t=>t.elem)}when(t,n,e){const i=this.Fs.create(t,n);return y(e&&e.priority)&&(i.priority=e.priority),this.rule(i),i}}class Hu{constructor(t){this.urlServiceConfig=t}fromConfig(t,n,e){return new qc(t,n,2,this.urlServiceConfig,e)}fromPath(t,n,e){return new qc(t,n,0,this.urlServiceConfig,e)}fromSearch(t,n,e){return new qc(t,n,1,this.urlServiceConfig,e)}}class Bu{static $inject=At([jt.F,jt.X,jt.Z,jt.ct]);$location;constructor(t,n,e,i){this.Hs=t,this.stateService=n,this.Fs=new Uu(this,this.stateService,e),this.Us=new Lu(this.Fs),this.Bs=i,this.zs=new Hu(this.Bs),this.Ws=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[jt.F,jt.W,(t,n)=>(this.$location=t,n.$on("$locationChangeSuccess",t=>{for(let n=0,e=this.Ws.length;n<e;n++)this.Ws[n](t)}),this.listen(!0),this)];baseHref(){return this.Js||(this.Js=dn()||window.location.pathname)}url(t,n){if(y(t)){const n=decodeURIComponent(t);this.$location.setUrl(n)}return n&&this.$location.setState(n),this.$location.getUrl()}onChange(t){return this.Ws.push(t),()=>Zo(this.Ws,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const{stateService:n}=this,e={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},i=this.match(e);$c([[S,t=>this.url(t)],[Nc.isDef,t=>n.go(t.state,t.params,t.options)],[pc(Nc),t=>n.go(t.state(),t.params(),t.options())]])(i&&i.rule.handler(i.match,e))}listen(t){return!1===t?(this.Zs&&this.Zs(),void delete this.Zs):this.Zs=this.Zs||this.onChange(t=>this.sync(t))}match(t){t=Object.assign({path:"",search:{},hash:""},t);const n=this.Us.rules(),e=n=>{const e=n.match(t);return e&&{match:e,rule:n,weight:n.matchPriority(e)}};let i;for(let t=0;t<n.length&&(!i||i.rule.Ns===n[t].Ns);t++){const r=e(n[t]);i=!i||r&&r.weight>i.weight?r:i}return i}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,n,e){const i=e&&!!e.replace;this.url(t.format(n||{}),i)}href(t,n,e){let i=t.format(n);if(x(i))return null;e=e||{absolute:!1};const r=this.Hs.html5ModeConf.enabled;if(r||(i=`#${this.Hs.hashPrefixConf}${i}`),i=function(t,n,e,i){return"/"===i?t:n?i.replace(/\/[^/]*$/,"")+t:e?i.slice(1)+t:t}(i,r,e.absolute,this.baseHref()),!e.absolute||!i)return i;const s=!r&&i?"/":"";return[`${window.location.protocol}//`,window.location.host,s,i].join("")}compile(t,n){const e=this.Bs,i=n&&!n.state&&n.params;n=i?Object.assign({state:{params:i}},n):n;const r={strict:e.Sr,caseInsensitive:e._r};return new Du(t,e.paramTypes,this.zs,Object.assign(r,n))}isMatcher(t){if(!_(t))return!1;let n=!0;return _t(Du.prototype).forEach(([e,i])=>{R(i)&&(n=n&&y(t[e])&&R(t[e]))}),n}}class zu{constructor(t){this.Gs=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,n,e=!0){if(!t&&""!==t)return;const i=S(t);let r=i?t:t.name;this.isRelative(r)&&(r=this.resolvePath(r,n));const s=this.Gs[r];if(s&&(i||!(i||s!==t&&s.self!==t)))return s;if(i&&e){const t=Object.values(this.Gs).filter(t=>t.Ds.nameGlob?.matches(r));if(t.length>1)throw new Error(`stateMatcher.find: Found multiple matches for ${r} using glob: ${t.map(t=>t.name)}`);return t[0]}}resolvePath(t,n){if(!n)throw new Error(`No reference point given for path '${t}'`);const e=this.find(n),i=t.split("."),r=i.length;let s=0,o=e;for(;s<r;s++)if(""!==i[s]||0!==s){if("^"!==i[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${e.name}'`);o=o.parent}else o=e;const c=i.slice(s).join(".");return o.name+(o.name&&c?".":"")+c}}function Wu(t){return t.self.X=()=>t,t.self}function Ju(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Jo(t.parent.data,t.data)),t.data}function Zu(t,n){return function(e){let i=e.self;if(i&&i.url&&i.name&&i.name.match(/\.\*\*$/)){const t={};ac(i,t),t.url+="{remainder:any}",i=t}const{parent:r}=e,s=function(t){if(!S(t))return!1;const n="^"===t.charAt(0);return{val:n?t.substring(1):t,root:n}}(i.url),o=s?t.compile(s.val,{state:i}):i.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${e}'`);return s&&s.root?o:(r&&r.navigable||n()).url.append(o)}}function Gu(t){return t.parent?t.parent.path.concat(t):[t]}function Ku(t){const n=t.parent?Object.assign({},t.parent.includes):{};return n[t.name]=!0,n}function Xu(t){const n=$c([[t=>t.resolveFn,t=>new Dc(th(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Dc(th(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Dc(th(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new Dc(th(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Dc(th(t),t=>t,[t.useExisting],t.policy)]]),e=$c([[t=>S(t.val),t=>new Dc(t.token,t=>t,[t.val],t.policy)],[t=>k(t.val),t=>new Dc(t.token,hc(t.val),t.val.slice(0,-1),t.policy)],[t=>R(t.val),t=>new Dc(t.token,t.val,(t=>{const{$injector:n}=window.angular;return t.$inject||n&&yn(t,n.strictDi)||"deferred"})(t.val),t.policy)]]),i=$c([[pc(Dc),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!!(t&&t.val&&(S(t.val)||k(t.val)||R(t.val))),e],[mc(!0),t=>{throw new Error(`Invalid resolve value: ${Oc(t)}`)}]]),r=t.resolve;var s,o;return(k(r)?r:(s=r,o=t.resolvePolicy||{},Object.keys(s||{}).map(t=>({token:t,val:s[t],deps:void 0,policy:o[t]})))).map(i)}class Yu{constructor(t,n){this.Ks=t,this.Xs=void 0;const e=this,i=()=>t.find("");var r,s;this.Ys={name:[t=>t.name],self:[Wu],parent:[function(n){return Qu(n)?null:t.find(e.parentName(n))||i()}],data:[Ju],url:[Zu(n,i)],navigable:[(s=Qu,function(t){return!s(t)&&t.url?t:t.parent?t.parent.navigable:null})],params:[(r=n.zs,function(t){const n=t.url&&t.url.parameters({inherit:!1})||[],e=Object.values(tc(Xo(t.params||{},n.map(t=>t.id)),(n,e)=>r.fromConfig(e,null,t.self)));return n.concat(e).map(t=>[t.id,t]).reduce(uc,{})})],views:[],path:[Gu],includes:[Ku],resolvables:[Xu]}}builder(t,n){const{Ys:e}=this,i=e[t]||[];return S(t)&&!y(n)?i.length>1?i:i[0]:S(t)&&R(n)?(e[t]=i,e[t].push(n),()=>e[t].splice(e[t].indexOf(n,1))&&null):void 0}build(t){const{Ks:n,Ys:e}=this,i=this.parentName(t);if(i&&!n.find(i,void 0,!1))return null;for(const n in e){if(!kt(e,n))continue;const i=e[n].reduce((t,n)=>e=>n(e,t),()=>{});t[n]=i(t)}return t}parentName(t){const n=t.name||"",e=n.split(".");if("**"===e.pop()&&e.pop(),e.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${n})`);return e.join(".")}return t.parent?S(t.parent)?t.parent:t.parent.name:""}name(t){const{name:n}=t;if(-1!==n.indexOf(".")||!t.parent)return n;const e=S(t.parent)?t.parent:t.parent.name;return e?`${e}.${n}`:n}}function Qu(t){return""===t.name}function th(t){return t.provide||t.token}class nh{constructor(t,n,e,i,r){this.stateRegistry=t,this.urlServiceRules=n,this.states=e,this.builder=i,this.listeners=r,this.queue=[]}register(t){const n=new qu(t);if(!S(name))throw new Error("State must have a valid name");if(kt(this.states,n.name)||this.queue.map(t=>t.name).includes(n.name))throw new Error(`State '${n.name}' is already defined`);return this.queue.push(n),this.flush(),n}flush(){const{queue:t,states:n,builder:e}=this,i=[],r=[],s={},o=t=>kt(this.states,t)&&this.states[t],c=()=>{i.length&&this.listeners.forEach(t=>t("registered",i.map(t=>t.self)))};for(;t.length>0;){const u=t.shift(),{name:h}=u,a=e.build(u),l=r.indexOf(u);if(a){const t=o(h);if(t&&t.name===h)throw new Error(`State '${h}' is already defined`);const e=o(`${h}.**`);e&&this.stateRegistry.deregister(e),n[h]=u,this.attachRoute(u),l>=0&&r.splice(l,1),i.push(u);continue}const f=s[h];if(s[h]=t.length,l>=0&&f===t.length)return t.push(u),c(),n;l<0&&r.push(u),t.push(u)}return c(),n}attachRoute(t){if(t.abstract||!t.url)return;const n=this.urlServiceRules;n.rule(n.Fs.create(t))}}class eh{static $inject=At([jt.ut,jt.X,jt.Z,jt.ht]);constructor(t,n,e,i){this.states={},n.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.Us,this.$injector=void 0,this.listeners=[],this.matcher=new zu(this.states),this.builder=new Yu(this.matcher,t),this.builder.builder("views",Jc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new nh(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),i.rootViewContext(this.root()),e.$current=this.root(),e.current=e.$current.self}$get=[jt.gt,t=>(this.$injector=t,this.builder.Xs=t,this)];getStateHookBuilder(t){const n=this;return function(e){const i=e[t],r="onExit"===t?"from":"to";return i?function(t,e){const s=new zc(t.treeChanges(r)).subContext(e.X()),o=Object.assign(ih(s),{$state$:e,$transition$:t});return n.$injector.invoke(i,n,o)}:void 0}}registerRoot(){this.Qs=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this.Qs.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Zo(this.listeners,t)}.bind(this)}root(){return this.Qs}register(t){return this.stateQueue.register(t)}no(t){const n=this.getAll().map(t=>t.X()),e=t=>{const i=n.filter(n=>-1!==t.indexOf(n.parent));return 0===i.length?i:i.concat(e(i))},i=e([t]),r=[t].concat(i).reverse();return r.forEach(t=>{const n=this.urlServiceRules;n.rules().filter(fc("state",t)).forEach(t=>n.removeRule(t)),delete this.states[t.name]}),r}deregister(t){const n=this.get(t);if(!n)throw new Error(`Can't deregister state; not found: ${t}`);const e=this.no(n.X());return this.listeners.forEach(t=>t("deregistered",e.map(t=>t.self))),e}getAll(){return Et(this.states).map(t=>this.states[t].self)}get(t,n){if(0===arguments.length)return Et(this.states).map(t=>this.states[t].self);const e=this.matcher.find(t,n);return e&&e.self||null}decorator(t,n){return this.builder.builder(t,n)}}const ih=t=>t.getTokens().filter(S).map(n=>{const e=t.getResolvable(n);return[n,"NOWAIT"===t.getPolicy(e).async?e.promise:e.data]}).reduce(uc,{});function rh(t){const n=t.match(/^\s*({[^}]*})\s*$/);n&&(t=`(${n[1]})`);const e=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!e||4!==e.length)throw new Error(`Invalid state ref '${t}'`);return{state:e[1]||null,paramExpr:e[3]||null}}function sh(t){const n=tn(t,"$ngView"),e=dc("$cfg.path")(n);return e?hc(e).state.name:void 0}function oh(t,n,e){const i=e.ngState||t.current.name,r=Object.assign(function(t,n){return{relative:sh(t)||n.$current,inherit:!0,source:"sref"}}(n,t),e.ngStateOpts||{}),s=t.href(i,e.ngStateParams,r);return{ngState:i,ngStateParams:e.ngStateParams,ngStateOpts:r,href:s}}function ch(t){const n="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),e="FORM"===t.nodeName;return{attr:e?"action":n?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!e}}function uh(t,n,e,i,r){return function(s){const o=s.which||s.button,c=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.getAttribute("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=setTimeout(function(){t.getAttribute("disabled")||n.go(c.ngState,c.ngStateParams,c.ngStateOpts).then(()=>{r.$emit("$updateBrowser")})});s.preventDefault();let o=e.isAnchor&&!c.href?1:0;s.preventDefault=function(){o--<=0&&clearTimeout(i)}}}}function hh(t,n,e,i){let r=i?i.events:void 0;k(r)||(r=["click"]);for(const n of r)t.addEventListener(n,e);n.$on("$destroy",function(){for(const n of r)t.removeEventListener(n,e)})}function ah(t,n,e){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,r,s,o)=>{const c=ch(r),u=o[1]||o[0];let h=null;const a={},l=()=>oh(i,r,a),f=rh(s.ngSref);function d(){a.ngStateParams=Object.assign({},f.paramExpr&&t.$eval(f.paramExpr));const n=l();h&&h(),u&&(h=u.eo(n.ngState,n.ngStateParams)),O(n.href)||s.$set(c.attr,n.href)}a.ngState=f.state,a.ngStateOpts=s.ngSrefOpts?t.$eval(s.ngSrefOpts):{},f.paramExpr&&(t.$watch(f.paramExpr,function(t){a.ngStateParams=Object.assign({},t),d()},!0),a.ngStateParams=Object.assign({},t.$eval(f.paramExpr))),d(),t.$on("$destroy",n.onStatesChanged(d)),t.$on("$destroy",e.onSuccess({},d)),c.clickable&&hh(r,t,uh(r,i,c,l,t),a.ngStateOpts)}}}function lh(t,n,e){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link(i,r,s,o){const c=ch(r),u=o[1]||o[0];let h=null;const a={},l=()=>oh(t,r,a),f=["ngState","ngStateParams","ngStateOpts"],d=f.reduce((t,n)=>(t[n]=()=>{},t),{});function p(){const t=l();h&&h(),u&&(h=u.eo(t.ngState,t.ngStateParams)),O(t.href)||s.$set(c.attr,t.href)}if(f.forEach(t=>{a[t]=s[t]?i.$eval(s[t]):null,s.$observe(t,n=>{d[t](),d[t]=i.$watch(n,n=>{a[t]=n,p()})})}),p(),i.$on("$destroy",n.onStatesChanged(p)),i.$on("$destroy",e.onSuccess({},p)),!c.clickable)return;const m=uh(r,t,c,l,i);hh(r,i,m,a.ngStateOpts)}}}function fh(t,n,e,i,r){return{restrict:"A",controller(s,o,c){let u,h=[];const a=e(c.ngSrefActiveEq||"",!1)(s);try{u=s.$eval(c.ngSrefActive)}catch{}function l(t){t.promise.then(m,()=>{})}function f(){d(u)}function d(t){_(t)&&(h=[],_t(t).forEach(([t,n])=>{const e=function(t,n){const e=rh(t);p(e.state,e.paramExpr&&s.$eval(e.paramExpr),n)};S(n)?e(n,t):k(n)&&n.forEach(n=>{e(n,t)})}))}function p(n,e,i){const r={state:t.get(n,sh(o))||{name:n},params:e,activeClass:i};return h.push(r),function(){Zo(h,r)}}function m(){const n=t=>t.split(/\s/).filter(Boolean),e=t=>t.map(t=>t.activeClass).map(n).reduce(ic,[]),i=e(h).concat(n(a)).reduce(sc,[]),r=e(h.filter(n=>t.includes(n.state.name,n.params))),s=h.filter(n=>t.is(n.state.name,n.params)).length?n(a):[],c=r.concat(s).reduce(sc,[]),u=i.filter(t=>!c.includes(t));c.forEach(t=>o.classList.add(t)),u.forEach(t=>o.classList.remove(t))}u=u||e(c.ngSrefActive||"",!1)(s),d(u),this.eo=function(t,n){if(_(u)&&h.length>0)return;const e=p(t,n,u);return m(),e},s.$on("$destroy",function(){const t=i.onStatesChanged(f),n=r.onStart({},l),e=s.$on("$stateChangeSuccess",m);return function(){t(),n(),e()}}()),n.transition&&l(n.transition),m()}}}function dh(t,n,e,i){const r={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},s={count:0,terminal:!0,priority:400,transclude:"element",compile:(o,c,u)=>function(o,c,h){const a=h.onload||"",l=h.autoscroll,f={enter(t,e,i){bt(t)?n.enter(t,null,e).then(i):(e.after(t),i())},leave(t,e){bt(t)?n.leave(t).then(e):(t.parentElement.removeChild(t),e())}},d=tn(c,"$ngView")||r,p=i(h.ngView||h.name||"")(o)||"$default";let m,$,g,w;const v={id:s.count++,name:p,fqn:d.$ngView.fqn?`${d.$ngView.fqn}.${p}`:p,config:null,configUpdated:function(t){(!t||t instanceof Gc)&&w!==t&&(Ic.traceUIViewConfigUpdated(v,t&&t.viewDecl&&t.viewDecl.$context),w=t,k(t))},get creationContext(){const t=dc("$cfg.viewDecl.$context")(d),n=dc("$ngView.creationContext")(d);return t||n}};Ic.traceUIViewEvent("Linking",v),Zt(c,"$ngView",{$ngView:v}),k();const b=t.registerUIView(v);function k(t){const n=o.$new(),i=Promise.withResolvers(),r=Promise.withResolvers(),s={$cfg:t,$ngView:v},h={$animEnter:i.promise,$animLeave:r.promise,$$animLeave:r};n.$emit("$viewContentLoading",p),$=u(n,function(t){Zt(t,"$ngViewAnim",h),Zt(t,"$ngView",s),f.enter(t,c,function(){i.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(y(l)&&!l||l&&o.$eval(l))&&e(t)}),function(){if(m&&(Ic.traceUIViewEvent("Removing (previous) el",Gt(m,"$ngView")),m.remove(),m=null),g&&(Ic.traceUIViewEvent("Destroying scope",v),g.$destroy(),g=null),$){const t=Gt($,"$ngViewAnim");Ic.traceUIViewEvent("Animate out",t),f.leave($,function(){t.$$animLeave.resolve(),m=null}),m=$,$=null}}()}),g=n,g.$emit("$viewContentLoaded",t||w),g.$eval(a)}o.$on("$destroy",function(){Ic.traceUIViewEvent("Destroying/Unregistering",v),b()})}};return s}function ph(t,n,e){const i=dc("viewDecl.controllerAs"),r=dc("viewDecl.resolveAs");return{priority:-400,compile(s){const o=s.innerHTML;return Wt(s,!0),function(s,c){const u=Gt(c,"$ngView");if(!u)return c.innerHTML=o,void t(c.contentDocument||c.childNodes)(s);const h=u.$cfg||{viewDecl:{},getTemplate:()=>{}},a=h.path&&new zc(h.path);c.innerHTML=h.getTemplate(c,a)||o,Ic.traceUIViewFill(u.$ngView,c.innerHTML);const l=t(c.contentDocument||c.childNodes),{controller:f}=h,d=i(h),p=r(h),m=a&&ih(a);if(p&&(s.$target[p]=m),f){const t=n(f,Object.assign({},m,{$scope:s,$element:c}));d&&(s.$target[d]=t,s.$target[d][p]=m),Zt(c,"$ngControllerController",t),Array.from(c.children).forEach(n=>{Zt(n,"$ngControllerController",t)}),function(t,n,e,i){!R(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const r=hc(i.path).state.self,s={bind:n};if(R(n.uiOnParamsChanged)){const o=new zc(i.path).getResolvable("$transition$").data,c=t=>{if(t===o||-1!==t.exiting().indexOf(r))return;const e=t.params("to"),i=t.params("from"),s=t=>t.paramSchema,c=t.treeChanges("to").map(s).reduce(ic,[]),u=t.treeChanges("from").map(s).reduce(ic,[]),h=c.filter(t=>{const n=u.indexOf(t);return-1===n||!u[n].type.equals(e[t.id],i[t.id])});if(h.length){const i=h.map(t=>t.id),r=Yo(e,(t,n)=>-1!==i.indexOf(n));n.uiOnParamsChanged(r,t)}};e.$on("$destroy",t.onSuccess({},c,s))}if(R(n.uiCanExit)){const i=mh++,o="_uiCanExitIds",c=t=>!!t&&(t[o]&&!0===t[o][i]||c(t.redirectedFrom())),u=t=>{let e;const r=t[o]=t[o]||{};return c(t)||(e=Promise.resolve(n.uiCanExit(t)),e.then(t=>r[i]=!1!==t)),e},h={exiting:r.name};e.$on("$destroy",t.onBefore(h,u,s))}}(e,t,s,h)}l(s)}}}}ah.$inject=[jt.X,jt.Y,jt.ot],lh.$inject=[jt.X,jt.Y,jt.ot],fh.$inject=[jt.X,jt.Z,jt.V,jt.Y,jt.ot],dh.$inject=[jt.ht,jt.C,jt.O,jt.V],ph.$inject=[jt.T,jt.M,jt.ot];let mh=0;function $h(t){return{scope:!1,link:(n,e,i)=>{const r=i.ngChannel,s=e.childNodes.length>0,o=t.subscribe(r,t=>{s?_(t)&&n.$merge(t):e.innerHTML=S(t)?t:t.toString()});n.$on("$destroy",()=>o())}}}function gh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngSetter;if(!s)return void n.warn("ng-setter: expression null");const o=t(s).an;if(!o)return void n.warn("ng-setter: expression invalid");const c=t=>{o(e,t.trim())},u=new MutationObserver(t=>{let n=!1;for(const e of t)if("childList"===e.type||"characterData"===e.type){n=!0;break}n&&c(i.innerHTML)});u.observe(i,{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",()=>u.disconnect()),c(i.innerHTML)}}}$h.$inject=[jt.I],gh.$inject=[jt.H,jt.L];class wh{static $inject=At([jt.D,jt.o]);constructor(t,n){this.eventBus=new vh(t.handler),n.$get().$eventBus=this.eventBus}$get=()=>this.eventBus}class vh{constructor(t){this.io=Object.create(null),this.ro=!1,this.$exceptionHandler=t}reset(){this.io=Object.create(null),this.ro=!1}isDisposed(){return this.ro}dispose(){this.ro||(this.ro=!0,this.io=Object.create(null))}subscribe(t,n,e=void 0){if(this.ro)return()=>!1;let i=this.io[t];i||(this.io[t]=i=[]);const r={fn:n,context:e};return i.push(r),()=>this.unsubscribe(t,n,e)}subscribeOnce(t,n,e=void 0){if(this.ro)return()=>!1;let i=!1;const r=this.subscribe(t,(...t)=>{i||(i=!0,r(),n.apply(e,t))});return r}unsubscribe(t,n,e=void 0){if(this.ro)return!1;const i=this.io[t];if(!i||0===i.length)return!1;for(let t=0;t<i.length;t++){const r=i[t];if(r.fn===n&&r.context===e)return i.splice(t,1),!0}return!1}getCount(t){const n=this.io[t];return n?n.length:0}publish(t,...n){if(this.ro)return!1;const e=this.io[t];if(!e||0===e.length)return!1;const i=e.slice();return queueMicrotask(()=>{for(const{fn:t,context:e}of i)try{t.apply(e,n)}catch(t){this.$exceptionHandler(t)}}),!0}}function bh(t,n){return{restrict:"A",link(e,i,r){const s=r.ngInject;if(!s)return;const o=s.split(";").map(t=>t.trim()).filter(Boolean);for(const i of o)n.has(i)?e[i]=n.get(i):t.warn(`Injectable ${i} not found in $injector`)}}}function yh(){return{restrict:"A",link(t,n,e){const i=e.ngEl||n.id;t.$target[i]=n;const r=n.parentNode;if(!r)return;const s=new MutationObserver(e=>{for(const r of e)Array.from(r.removedNodes).forEach(e=>{e===n&&(delete t.$target[i],s.disconnect())})});s.observe(r,{childList:!0})}}}bh.$inject=[jt.L,jt.gt];class kh{constructor(t,n={},e=console){this.so=t,this.Bs={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},...n},this.L=e,this.oo=0,this.co=!1,this.uo=void 0,this.ho=null,this.connect()}connect(){this.co||(this.ho&&"function"==typeof this.ho.close&&this.ho.close(),this.ho=this.so(),this.ao())}send(t){this.ho instanceof WebSocket?this.ho.send(JSON.stringify(t)):this.L.warn("Send is only supported on WebSocket connections")}close(){this.co=!0,clearTimeout(this.uo),this.ho&&this.ho.close&&this.ho.close()}ao(){const t=this.ho;t instanceof EventSource?(t.addEventListener("open",t=>this.lo(t)),t.addEventListener("message",t=>this.fo(t.data,t)),t.addEventListener("error",t=>this.do(t))):t instanceof WebSocket&&(t.onopen=t=>this.lo(t),t.onmessage=t=>this.fo(t.data,t),t.onerror=t=>this.do(t),t.onclose=()=>this.po())}lo(t){this.oo=0,this.Bs.onOpen?.(t),this.mo()}fo(t,n){try{t=this.Bs.transformMessage?.(t)??t}catch{}this.Bs.onMessage?.(t,n),this.mo()}do(t){this.Bs.onError?.(t),this.$o()}po(){this.$o()}$o(){this.co||(this.oo<this.Bs.maxRetries?(this.oo++,this.Bs.onReconnect?.(this.oo),setTimeout(()=>this.connect(),this.Bs.retryDelay)):this.L.warn("StreamConnection: Max retries reached"))}mo(){this.Bs.heartbeatTimeout&&(clearTimeout(this.uo),this.uo=setTimeout(()=>{this.L.warn("StreamConnection: heartbeat timeout, reconnecting..."),this.wo(),this.oo++,this.Bs.onReconnect?.(this.oo),this.connect()},this.Bs.heartbeatTimeout))}wo(){clearTimeout(this.uo),this.ho?.close()}}class Eh{constructor(){this.defaults={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[jt.L,t=>(this.vo=t,(t,n={})=>{const e={...this.defaults,...n},i=this.#d(t,e.params);return new kh(()=>new EventSource(i,{withCredentials:!!e.withCredentials}),{...e,onMessage:(t,n)=>{e.onMessage?.(t,n)}},this.vo)})];#d(t,n){if(!n)return t;const e=_t(n).map(([t,n])=>`${encodeURIComponent(t)}=${encodeURIComponent(n)}`).join("&");return t+(t.includes("?")?"&":"?")+e}}function _h(){return{restrict:"A",link(t,n,e){const i=e.onEnter,r=e.onLeave,s=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting?i&&t.$eval(i):r&&t.$eval(r)})},{root:null,threshold:.1});s.observe(n);const o=n.parentNode;let c;o&&(c=new MutationObserver(t=>{for(const e of t)Array.from(e.removedNodes).forEach(t=>{t===n&&(s.disconnect(),c.disconnect())})}),c.observe(o,{childList:!0})),t.$on("$destroy",()=>{s.disconnect(),c&&c.disconnect()})}}}function Sh(){return{async link(t,n,e){t.$target[e.as||"wasm"]=(await Ct(e.src)).exports}}}function xh(){return{scope:!1,async link(t,n,e){t.$scopename=e.ngScope}}}class Oh{constructor(){this.defaults={}}$get=()=>new Ch(this.defaults)}class Ch{constructor(t){this.bo=Object.freeze({...t})}get(t){return In(t,"key"),Th()[t]||null}getObject(t){In(t,"key");const n=this.get(t);return n?JSON.parse(n):null}getAll(){return Th()}put(t,n,e={}){In(t,"key"),In(n,"value");const i=encodeURIComponent(t),r=encodeURIComponent(n);document.cookie=`${i}=${r}${function(t={}){const n=[];if(y(t.path)){if(!S(t.path))throw new TypeError(`${Tn}:path ${t.path}`);n.push(`path=${t.path}`)}if(y(t.domain)){if(!S(t.domain))throw new TypeError(`${Tn}:domain ${t.domain}`);n.push(`domain=${t.domain}`)}if(!O(t.expires)){let e;if(t.expires instanceof Date)e=t.expires;else{if(!j(t.expires)&&!S(t.expires))throw new TypeError(`${Tn}:expires ${String(t.expires)}`);e=new Date(t.expires)}if(isNaN(e.getTime()))throw new TypeError(`${Tn}:expires ${String(t.expires)}`);n.push(`expires=${e.toUTCString()}`)}if(t.secure&&n.push("secure"),y(t.samesite)){if(!S(t.samesite))throw new TypeError(`${Tn}:samesite ${t.samesite}`);const e=t.samesite.toLowerCase();if(!["lax","strict","none"].includes(e))throw new TypeError(`${Tn}:samesite ${t.samesite}`);n.push(`samesite=${e}`)}return n.length?`;${n.join(";")}`:""}({...this.bo,...e})}`}putObject(t,n,e){In(t,"key"),Pn(n,"value");const i=JSON.stringify(n);this.put(t,i,e)}remove(t,n={}){In(t,"key"),this.put(t,"",{...this.bo,...n,expires:new Date(0)})}}let jh="",Ah=Object.create(null);function Th(){const t=document.cookie;if(t===jh)return Ah;jh=t;const n=Object.create(null);if(!t)return Ah=n,n;const e=t.split("; ");for(const t of e){const e=t.indexOf("=");if(-1===e)continue;const i=decodeURIComponent(t.substring(0,e)),r=decodeURIComponent(t.substring(e+1));n[i]=r}return Ah=n,n}function Rh(t,n){const e=encodeURIComponent(String(t));return n?e.replace(/(%3A|%2F|%3F|%23|%5B|%5D|%40|%21|%24|%26|%27|%28|%29|%2A|%2B|%2C|%3B|%3D)/gi,t=>decodeURIComponent(t)):e}class Mh{static $nonscope=!0;constructor(t,n,e,i={}){at(S(n)&&n.length>0,"baseUrl required"),this.yo=t,this.ko=n,this.Eo=e,this.yn=i}buildUrl(t,n){return function(t,n={}){if("string"!=typeof t)throw new TypeError("template must be a string");return t.replace(/\{([^}]+)\}/g,(t,e)=>function(t,n){const e=/^[+#./;?&]/.test(t)?t[0]:"",i=e?t.slice(1):t,r={"":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!1},"+":{sep:",",prefix:"",named:!1,ifEmpty:"",allowReserved:!0},"#":{sep:",",prefix:"#",named:!1,ifEmpty:"",allowReserved:!0},".":{sep:".",prefix:".",named:!1,ifEmpty:"",allowReserved:!1},"/":{sep:"/",prefix:"/",named:!1,ifEmpty:"",allowReserved:!1},";":{sep:";",prefix:";",named:!0,ifEmpty:"",allowReserved:!1},"?":{sep:"&",prefix:"?",named:!0,ifEmpty:"=",allowReserved:!1},"&":{sep:"&",prefix:"&",named:!0,ifEmpty:"=",allowReserved:!1}}[e];if(!r)throw new Error(`Unsupported operator: ${e}`);const s=i.split(",").map(t=>t.trim()).filter(Boolean),o=[];for(const t of s){const e=/^([A-Za-z0-9_.]+)(\*|(?::(\d+)))?$/.exec(t);if(!e)throw new Error(`Invalid varspec: ${t}`);const i=e[1],s="*"===e[2],c=e[3]?parseInt(e[3],10):void 0,u=n[i];if(null==u)continue;if(k(u)){if(0===u.length){r.named&&("="===r.ifEmpty?o.push(`${Rh(i,r.allowReserved)}${r.ifEmpty}`):o.push(Rh(i,r.allowReserved)));continue}if(s)for(const t of u)null!=t&&(r.named?o.push(`${Rh(i,r.allowReserved)}=${Rh(t,r.allowReserved)}`):o.push(Rh(t,r.allowReserved)));else{const t=u.filter(t=>null!=t).map(t=>Rh(t,r.allowReserved)).join(",");r.named?""===t?o.push(Rh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${Rh(i,r.allowReserved)}=${t}`):o.push(t)}continue}if("object"==typeof u){const t=Object.keys(u);if(0===t.length){r.named&&o.push(Rh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:""));continue}if(s)for(const n of t){const t=u[n];null!=t&&(r.named,o.push(`${Rh(n,r.allowReserved)}=${Rh(t,r.allowReserved)}`))}else{const n=t.map(t=>`${Rh(t,r.allowReserved)},${Rh(u[t],r.allowReserved)}`).join(",");r.named?""===n?o.push(Rh(i,r.allowReserved)+("="===r.ifEmpty?r.ifEmpty:"")):o.push(`${Rh(i,r.allowReserved)}=${n}`):o.push(n)}continue}let h=String(u);"number"==typeof c&&(h=h.substring(0,c)),""!==h?r.named?o.push(`${Rh(i,r.allowReserved)}=${Rh(h,r.allowReserved)}`):o.push(Rh(h,r.allowReserved)):r.named?"="===r.ifEmpty?o.push(`${Rh(i,r.allowReserved)}${r.ifEmpty}`):o.push(Rh(i,r.allowReserved)):o.push(Rh(h,r.allowReserved))}return 0===o.length?"":r.prefix+o.join(r.sep)}(e,n))}(t,n||{})}#p(t){return t&&this.Eo?new this.Eo(t):t}async list(t={}){const n=this.buildUrl(this.ko,t),e=await this.#m("get",n,null,t);return k(e.data)?e.data.map(t=>this.#p(t)):[]}async read(t,n={}){at(!O(t),`${Tn}:id ${t}`);const e=this.buildUrl(`${this.ko}/${t}`,n),i=await this.#m("get",e,null,n);return this.#p(i.data)}async create(t){at(!O(t),`${Tn}:item ${t}`);const n=await this.#m("post",this.ko,t);return this.#p(n.data)}async update(t,n){at(!O(t),`${Tn}:id ${t}`);const e=`${this.ko}/${t}`;try{const t=await this.#m("put",e,n);return this.#p(t.data)}catch{return null}}async delete(t){at(!O(t),`${Tn}:id ${t}`);const n=`${this.ko}/${t}`;try{return await this.#m("delete",n),!0}catch{return!1}}async#m(t,n,e=null,i={}){return this.yo({method:t,url:n,data:e,params:i,...this.yn})}}class Ph{constructor(){this._o=[]}rest(t,n,e,i={}){this._o.push({name:t,url:n,entityClass:e,options:i})}$get=[jt.q,t=>{const n=new Map,e=(n,e,i={})=>new Mh(t,n,e,i);for(const t of this._o){const i=e(t.url,t.entityClass,t.options);n.set(t.name,i)}return e}]}function Ih(){return{scope:!1,link:(t,n,e)=>{const i=e.ngListener||n.id,r=n.childNodes.length,s=e=>{const i=e.detail;r?_(i)&&t.$merge(i):S(i)&&(n.innerHTML=i)};n.addEventListener(i,s),t.$on("$destroy",()=>n.removeEventListener(i,s))}}}class Dh{constructor(){this.defaults={protocols:[],autoReconnect:!0,reconnectInterval:1e3,maxRetries:1/0,heartbeatInterval:0,transformMessage(t){try{return JSON.parse(t)}catch{return t}}}}$get=[jt.L,t=>(this.vo=t,(t,n=[],e={})=>{const i={...this.defaults,...e};return i.protocols=n.length?n:i.protocols,new kh(()=>new WebSocket(t,i.protocols),{...i,onMessage:(t,n)=>{i.onMessage?.(t,n)},onOpen:t=>{i.onOpen?.(t)},onClose:t=>{i.onClose?.(t)},onError:t=>{i.onError?.(t)}},this.vo)})]}const Nh=mt("ng"),qh=mt("$injector"),Uh="strict-di",Vh={};class Fh extends EventTarget{constructor(t=!1){super(),this.So=t,this.xo=[],this.$eventBus,this.$injector,this.version="0.18.0",this.getController=Qt,this.getInjector=cn,this.getScope=Kt,this.errorHandlingConfig=pt,this.$t={},Object.values(jt).forEach(t=>{this.$t[t]=t}),t||(window.angular=this),function(t){t.module("ng",[],[jt.dt,n=>{n.provider({$$sanitizeUri:qs}),n.value(jt.o,t),n.value(jt.lt,window),n.value(jt.P,document),n.provider(jt.T,Fe).directive({input:ki,textarea:ki,form:Ze,script:xi,select:Ci,option:ji,ngBind:Ai,ngBindHtml:Ri,ngBindTemplate:Ti,ngChannel:$h,ngClass:Ni,ngClassEven:Ui,ngClassOdd:qi,ngCloak:Vi,ngController:Fi,ngDelete:ce,ngDisabled:to,ngEl:yh,ngForm:Ge,ngGet:oe,ngHide:zi,ngIf:Wi,ngInclude:Ji,ngInject:bh,ngInit:Gi,ngListener:Ih,ngMessages:Ls,ngMessage:Ws,ngMessageExp:Js,ngMessagesInclude:zs,ngMessageDefault:Zs,ngNonBindable:Ki,ngPost:ue,ngPut:he,ngRef:Yi,ngRepeat:er,ngSetter:gh,ngShow:Bi,ngStyle:ir,ngSse:ae,ngSwitch:rr,ngSwitchWhen:sr,ngSwitchDefault:or,ngOptions:lr,ngTransclude:dr,ngModel:si,pattern:gr,ngPattern:gr,required:$r,ngRequired:$r,ngMinlength:vr,minlength:vr,ngMaxlength:wr,maxlength:wr,ngValue:Si,ngModelOptions:ni,ngViewport:_h,ngWasm:Sh,ngWorker:fe,ngScope:xh}).directive({input:Ei,ngAnimateSwap:Bo,ngAnimateChildren:zo,ngChecked:so,ngClick:io,ngDblclick:ao,ngInclude:Zi,ngHide:co,ngShow:no,ngMessages:eo,ngModel:ho,ngReadonly:uo,ngRequired:ro,ngValue:oo,ngSref:ah,ngSrefActive:fh,ngSrefActiveEq:fh,ngState:lh,ngView:dh}).directive({ngView:ph}).directive(mr).directive(Se),n.provider({$aria:Qs,$anchorScroll:kr,$animate:Ur,$$animation:No,$animateCss:jo,$$animateCssDriver:Vo,$$animateJs:Po,$$animateJsDriver:Ho,$$animateQueue:Mo,$controller:ve,$cookie:Oh,$exceptionHandler:Fr,$filter:Xr,$interpolate:ts,$http:re,$httpParamSerializer:Yn,$location:us,$log:ds,$parse:Os,$rest:Ph,$rootScope:Rs,$router:Ec,$sce:_e,$sceDelegate:Ee,$sse:Eh,$templateCache:Vr,$templateRequest:Ns,$urlConfig:bc,$view:Kc,$transitions:xu,$state:ju,$templateFactory:Au,$url:Bu,$stateRegistry:eh,$eventBus:wh,$websocket:Dh})}]).factory("$stateParams",[jt.Z,t=>t.params]).value("$trace",Ic)}(this)}module(t,n,e){return K(t,"module"),n&&kt(Vh,t)&&(Vh[t]=null),function(t,n,e){return t[n]||(t[n]=e())}(Vh,t,()=>{if(!n)throw qh("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new pe(t,n,e)})}dispatchEvent(t){const n=this.$injector.get(jt.H),e=t.type,i=this.$injector.has(e)?this.$injector.get(e):this.getScopeByName(e);return!!i&&(n(t.detail)(i),!0)}bootstrap(t,n,e){if(e=e||{strictDi:!1},(t instanceof Element||t instanceof Document)&&cn(t))throw Nh("btstrpd","App already bootstrapped");k(n)&&(this.xo=n),this.xo.unshift(["$provide",n=>{n.value("$rootElement",t)}]),this.xo.unshift("ng");const i=qn(this.xo,e.strictDi);return i.invoke([jt.W,jt.J,jt.T,jt.gt,(t,n,e,i)=>{if(this.$rootScope=t,this.$injector=i,Zt(n,"$injector",i),e(n)(t),!kt(i,"strictDi"))try{i.invoke(()=>{})}catch(t){const n=t instanceof Error?t.toString():String(t);i.strictDi=!!/strict mode/.exec(n)}i.get(jt.Y).getAll().map(t=>t.X().resolvables).reduce(ic,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=yn(t.resolveFn,i.strictDi))}]),i}injector(t,n){return this.$injector=qn(t,n),this.$injector}init(t){let n,e;const i={};ut.forEach(i=>{const r=`${i}app`;let s;t.hasAttribute&&t.hasAttribute(r)&&(n=t,e=t.getAttribute(r)),!n&&(s=t.querySelector(`[${r.replace(":","\\:")}]`))&&(n=s,e=s.getAttribute(r))}),n&&(i.strictDi=n.hasAttribute(Uh)||n.hasAttribute(`data-${Uh}`),this.bootstrap(n,e?[e]:[],i))}getScopeByName(t){In(t,"name");const n=this.$injector.get("$rootScope").$searchByName(t);if(n)return n.$proxy}}const Lh=new Fh;document.addEventListener("DOMContentLoaded",()=>Lh.init(document),{once:!0}),t.angular=Lh});
|
|
2
2
|
//# sourceMappingURL=angular-ts.umd.min.js.map
|