@angular-wave/angular.ts 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/angular-ts.esm.js +1 -1
- package/dist/angular-ts.umd.js +1 -1
- package/package.json +1 -1
- package/rollup.config.js +6 -2
- package/src/animations/animate-css.js +13 -218
- package/src/animations/animate.css.md +263 -0
- package/src/animations/animate.md +933 -0
- package/src/animations/module.js +0 -750
- package/src/animations/shared.js +0 -11
- package/src/core/compile.js +1 -1
- package/src/exts/messages.md +30 -30
- package/src/router/adapter/directives/stateDirectives.js +3 -4
- package/src/router/adapter/directives/viewDirective.js +3 -4
- package/src/router/adapter/services.js +4 -2
- package/src/router/adapter/statebuilders/onEnterExitRetain.js +1 -2
- package/src/router/adapter/statebuilders/views.js +4 -5
- package/src/router/core/common/common.js +10 -22
- package/src/router/core/common/safeConsole.js +1 -2
- package/src/router/core/hooks/resolve.js +3 -4
- package/src/router/core/hooks/views.js +3 -2
- package/src/router/core/params/param.js +5 -5
- package/src/router/core/params/paramType.js +3 -3
- package/src/router/core/params/paramTypes.js +6 -7
- package/src/router/core/params/stateParams.js +3 -3
- package/src/router/core/path/pathNode.js +2 -2
- package/src/router/core/path/pathUtils.js +4 -5
- package/src/router/core/resolve/resolvable.js +2 -2
- package/src/router/core/state/stateBuilder.js +1 -2
- package/src/router/core/state/stateService.js +2 -3
- package/src/router/core/state/targetState.js +8 -5
- package/src/router/core/transition/hookBuilder.js +2 -2
- package/src/router/core/transition/hookRegistry.js +2 -2
- package/src/router/core/transition/rejectFactory.js +2 -3
- package/src/router/core/transition/transition.js +5 -3
- package/src/router/core/url/urlMatcherFactory.js +2 -8
- package/src/router/core/url/urlRule.js +7 -4
- package/src/router/core/url/urlService.js +2 -2
- package/src/router/router.js +11 -10
package/dist/angular-ts.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";const t="ng-valid",e="ng-invalid",n="ng-pristine",r="ng-dirty",i="ng-untouched",s="ng-touched",o="ng-empty",a="ng-not-empty",c=/^((?:x|data)[:\-_])/i,l=/[:\-_]+(.)/g,u={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},h=mt("ng");let d=0;function p(){return d+=1,d}function f(t){return y(t)?t.toLowerCase():t}function $(t){if(null==t||O(t))return!1;if(E(t)||y(t))return!0;const e="length"in Object(t)&&t.length;return w(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function m(t){return void 0===t}function g(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function y(t){return"string"==typeof t}function w(t){return"number"==typeof t}function b(t){return"[object Date]"===toString.call(t)}function E(t){return Array.isArray(t)||t instanceof Array}function C(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function x(t){return"function"==typeof t}function S(t){return"[object RegExp]"===toString.call(t)}function O(t){return t&&t.window===t}function k(t){return t&&t.$evalAsync&&t.$watch}function _(t){return"boolean"==typeof t}function T(t){return t&&x(t.then)}function A(t){return y(t)?t.trim():t}function R(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function V(t,e,n){let r,i;if(t)if(x(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else if(E(t)||$(t)){const s="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==V)t.forEach(e,n,t);else if(null===(s=t)||"object"!=typeof s||Object.getPrototypeOf(s))for(r in t)Object.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else for(r in t)e.call(n,t[r],r,t);var s;return t}function N(t,e,n){const r=Object.keys(t).sort();return r.forEach((r=>e.call(n,t[r],r))),r}function P(t){return function(e,n){t(n,e)}}function D(t,e,n){const r=t.$$hashKey;for(let r=0,i=e.length;r<i;++r){const i=e[r];if(!v(i)&&!x(i))continue;const s=Object.keys(i);for(let e=0,r=s.length;e<r;e++){const r=s[e],o=i[r];n&&v(o)?b(o)?t[r]=new Date(o.valueOf()):S(o)?t[r]=new RegExp(o):o.nodeName?t[r]=o.cloneNode(!0):B(o)?t[r]=o[0].cloneNode(!0):"__proto__"!==r&&(v(t[r])||(t[r]=E(o)?[]:{}),D(t[r],[o],!0)):t[r]=o}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}function j(t){return D(t,[].slice.call(arguments,1),!1)}function M(t){return D(t,Array.prototype.slice.call(arguments,1),!0)}function I(t){return parseInt(t,10)}function L(t){return Number.isNaN(t)}function q(t,e){return j(Object.create(t),e)}function U(t){return t}function H(t){return function(){return t}}function F(t){return x(t.toString)&&t.toString!==toString}function B(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function z(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function W(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function G(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function K(t,e){return t===e||t!=t&&e!=e}function J(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,i,s;if(n===typeof e&&"object"===n){if(!E(t)){if(b(t))return!!b(e)&&K(t.getTime(),e.getTime());if(S(t))return!!S(e)&&t.toString()===e.toString();if(k(t)||k(e)||O(t)||O(e)||E(e)||b(e)||S(e))return!1;for(i in s=Q(),t)if("$"!==i.charAt(0)&&!x(t[i])){if(!J(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&g(e[i])&&!x(e[i]))return!1;return!0}if(!E(e))return!1;if((r=t.length)===e.length){for(i=0;i<r;i++)if(!J(t[i],e[i]))return!1;return!0}}return!1}const Z={};function Y(t,e){if("hasOwnProperty"===t)throw h("badname","hasOwnProperty is not a valid {0} name",e)}function Q(){return Object.create(null)}function X(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!F(t)||E(t)||b(t)?it(t):t.toString()}return t}function tt(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function et(t,e){return Array.prototype.slice.call(t,e||0)}function nt(t,e){const n=arguments.length>2?et(arguments,2):[];return!x(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,tt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function rt(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:O(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":k(e)&&(n="$SCOPE"),n}function it(t,e){if(!m(t))return w(e)||(e=e?2:null),JSON.stringify(t,rt,e)}function st(t){return y(t)?JSON.parse(t):t}function ot(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return L(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(i-r))}function at(t){const e={};return(t||"").split("&").forEach((t=>{let n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=ct(r),g(r)&&(i=!g(i)||ct(i),Object.hasOwnProperty.call(e,r)?E(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function ct(t){try{return decodeURIComponent(t)}catch(t){}}function lt(t){return ut(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ut(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const ht=["ng-","data-ng-","ng:","x-ng-"];function dt(t,e){if(E(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(v(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function pt(t,e,n){if(!t)throw h("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&E(t)&&(t=t[t.length-1]),pt(x(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const $t={};function mt(t){const e='https://errors.angularjs.org/"NG_VERSION_FULL"/',n=`${e.replace(".","\\.")}[\\s\\S]*`,r=new RegExp(n,"g");return function(){const n=arguments[0],i=arguments[1];let s=`[${t?`${t}:`:""}${n}] `;const o=et(arguments,2).map((t=>gt(t)));let a,c;if(s+=i.replace(/\{\d+\}/g,(t=>{const e=+t.slice(1,-1);return e<o.length?o[e].replace(r,""):t})),s+=`\n${e}${t?`${t}/`:""}${n}`,$t.urlErrorParamsEnabled)for(c=0,a="?";c<o.length;c++,a="&")s+=`${a}p${c}=${encodeURIComponent(o[c])}`;return new Error(s)}}function gt(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(m(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=rt(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function vt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${p()}`,t.$$hashKey):`${n}:${t}`}function yt(t,e){return t||e?t?e?(E(t)&&(t=t.join(" ")),E(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function wt(t){return t.replace(c,"").replace(l,((t,e,n)=>n?e.toUpperCase():e))}const bt="ngId",Et=new Proxy(new Map,{get:(t,e,n)=>"size"===e?t.size:"function"==typeof t[e]?function(...n){return t[e].apply(t,n)}:Reflect.get(t,e,n),set:(t,e,n,r)=>Reflect.set(t,e,n,r),deleteProperty:(t,e)=>Reflect.deleteProperty(t,e),has:(t,e)=>Reflect.has(t,e),ownKeys:t=>Reflect.ownKeys(t),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e)});let Ct=1;const xt=/-([a-z])/g,St=/_([a-z])/g,Ot={mouseleave:"mouseout",mouseenter:"mouseover"},kt=mt("jqLite");function _t(t,e){return e.toUpperCase()}function Tt(t){return t.replace(xt,_t)}function At(t){return t.replace(St,_t)}const Rt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Vt=/<([\w:-]+)/,Nt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};function Pt(t){return!/<|&#?\w+;/.test(t)}function Dt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function jt(t,e){let n,r,i,s;const o=e.createDocumentFragment();let a,c=[];if(Pt(t))c.push(e.createTextNode(t));else{for(n=o.appendChild(e.createElement("div")),r=(Vt.exec(t)||["",""])[1].toLowerCase(),s=t,i=Nt[r]||[],a=i.length;--a>-1;)n.appendChild(window.document.createElement(i[a])),n=n.firstChild;n.innerHTML=s,c=tt(c,n.childNodes),n=o.firstChild,n.textContent=""}return o.textContent="",o.innerHTML="",V(c,(t=>{o.appendChild(t)})),o}Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td;const Mt=window.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function It(t){if(t instanceof It)return t;let e;if(y(t)&&(t=A(t),e=!0),!(this instanceof It)){if(e&&"<"!==t.charAt(0))throw kt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new It(t)}if(e){Wt(this,function(t,e){let n;return e=e||window.document,(n=Rt.exec(t))?[e.createElement(n[1])]:(n=jt(t,e))?n.childNodes:[]}(t))}else x(t)?Yt(t):Wt(this,t)}var Lt=It;function qt(t,e){t&&(!e&&Dt(t)&&ee([t]),t.querySelectorAll&&ee(t.querySelectorAll("*")))}function Ut(t){const e=t[bt],{events:n,data:r}=Et.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(Et.delete(e),t[bt]=void 0)}function Ht(t,e,n,r){if(g(r))throw kt("offargs","jqLite#off() does not support the `selector` argument");const i=Bt(t),s=i&&i.events,o=i&&i.handle;if(o){if(e){const r=function(e){const r=s[e];g(n)&&E(r)&&G(r,n),g(n)&&r&&r.length>0||(t.removeEventListener(e,o),delete s[e])};V(e.split(" "),(t=>{r(t),Ot[t]&&r(Ot[t])}))}else for(e in s)"$destroy"!==e&&t.removeEventListener(e,o),delete s[e];Ut(t)}}function Ft(t,e){const n=t[bt],r=n&&Et.get(n);r&&(e?delete r.data[e]:r.data={},Ut(t))}function Bt(t,e=!1){let n=t[bt],r=n&&Et.get(n);return e&&!r&&(t[bt]=n=++Ct,r={events:{},data:{},handle:null},Et.set(n,r)),r}function zt(t,e,n){if(Dt(t)){let r;const i=g(n),s=!i&&e&&!v(e),o=!e,a=Bt(t,!s),c=a&&a.data;if(i)c[Tt(e)]=n;else{if(o)return c;if(s)return c&&c[Tt(e)];for(r in e)c[Tt(r)]=e[r]}}}function Wt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{const{length:n}=e;if("number"==typeof n&&e.window!==e){if(n)for(let r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Gt(t,e){return Kt(t,`$${e||"ngController"}Controller`)}function Kt(t,e,n){t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);const r=E(e)?e:[e];for(;t;){for(let e=0,i=r.length;e<i;e++)if(g(n=zt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Jt(t){for(qt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Zt(t,e){e||qt(t);const n=t.parentNode;n&&n.removeChild(t)}function Yt(t){function e(){window.document.removeEventListener("DOMContentLoaded",e),window.removeEventListener("load",e),t()}"complete"===window.document.readyState?window.setTimeout(t):(window.document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}Lt.CACHE=Et,It.prototype={ready:Yt,toString(){const t=[];return V(this,(e=>{t.push(`${e}`)})),`[${t.join(", ")}]`},eq(t){return Lt(t>=0?this[t]:this[this.length+t])},length:0,push:[].push,sort:[].sort,splice:[].splice};const Qt={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{Qt[f(t)]=t}));const Xt={};function te(t,e){const n=Qt[e.toLowerCase()];return n&&Xt[z(t)]&&n}function ee(t){for(let n=0,r=t.length;n<r;n++){var e=(Et.get(t[n][bt])||{}).events;e&&e.$destroy&&Lt(t[n]).triggerHandler("$destroy"),Ft(t[n]),Ht(t[n])}}function ne(t,e,n){n.call(t,e)}function re(t,e,n){const r=e.relatedTarget;r&&(r===t||Mt.call(t,r))||n.call(t,e)}function ie(t){const e=Lt(t)[0].cloneNode(!0),n=Lt(e).empty();var r=Lt("<div></div>").append(n).html();try{return n[0].nodeType===Node.TEXT_NODE?f(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(r)}}function se(t){let e=t[0];const n=t[t.length-1];let r;for(let i=1;e!==n&&(e=e.nextSibling);i++)(r||t[i]!==e)&&(r||(r=Lt(Array.prototype.slice.call(t,0,i))),r.push(e));return r||t}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{Xt[t]=!0})),V({data:zt,removeData:Ft,cleanData:ee},((t,e)=>{It[e]=t})),V({data:zt,inheritedData:Kt,scope:t=>zt(t,"$scope")||Kt(t.parentNode||t,["$isolateScope","$scope"]),isolateScope:t=>zt(t,"$isolateScope")||zt(t,"$isolateScopeNoTemplate"),controller:Gt,injector:t=>Kt(t,"$injector"),attr(t,e,n){let r;const{nodeType:i}=t;if(i===Node.TEXT_NODE||i===Node.ATTRIBUTE_NODE||i===Node.COMMENT_NODE||!t.getAttribute)return;const s=f(e),o=Qt[s];if(!g(n))return r=t.getAttribute(e),o&&null!==r&&(r=s),null===r?void 0:r;null===n||!1===n&&o?t.removeAttribute(e):t.setAttribute(e,o?s:n)},text:function(){return t.$dv="",t;function t(t,e){if(m(e)){const{nodeType:e}=t;return e===Node.ELEMENT_NODE||e===Node.TEXT_NODE?t.textContent:""}t.textContent=e}}(),val(t,e){if(m(e)){if(t.multiple&&"select"===z(t)){const e=[];return V(t.options,(t=>{t.selected&&e.push(t.value||t.text)})),e}return t.value}t.value=e},html(t,e){if(m(e))return t.innerHTML;qt(t,!0),t.innerHTML=e},empty:Jt},((t,e)=>{It.prototype[e]=function(e,n){let r,i;const s=this.length;if(t!==Jt&&m(2===t.length&&t!==Gt?e:n)){if(v(e)){for(r=0;r<s;r++)if(t===zt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}let o=t.$dv;const a=m(o)?Math.min(s,1):s;for(let r=0;r<a;r++){const i=t(this[r],e,n);o=o?o+i:i}return o}for(r=0;r<s;r++)t(this[r],e,n);return this}})),V({removeData:Ft,on:(t,e,n,r)=>{if(g(r))throw kt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(!Dt(t))return;const i=Bt(t,!0),{events:s}=i;let{handle:o}=i;o||(o=i.handle=function(t,e){const n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(m(n.immediatePropagationStopped)){const t=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),t&&t.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};const o=i.specialHandlerWrapper||ne;s>1&&(i=dt(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])};return n.elem=t,n}(t,s));const a=e.indexOf(" ")>=0?e.split(" "):[e];let c=a.length;const l=function(e,r,i){let a=s[e];a||(a=s[e]=[],a.specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,o)),a.push(n)};for(;c--;)e=a[c],Ot[e]?(l(Ot[e],re),l(e,void 0,!0)):l(e)},off:Ht,replaceWith(t,e){let n;const r=t.parentNode;qt(t),V(new It(e),(e=>{n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:t=>Array.from(t.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE)),append(t,e){const{nodeType:n}=t;if(n===Node.ELEMENT_NODE||n===Node.DOCUMENT_FRAGMENT_NODE)for(let n=0,r=(e=new It(e)).length;n<r;n++){const r=e[n];t.appendChild(r)}},prepend(t,e){if(t.nodeType===Node.ELEMENT_NODE){const n=t.firstChild;V(new It(e),(e=>{t.insertBefore(e,n)}))}},remove:Zt,detach(t){Zt(t,!0)},after(t,e){let n=t;const r=t.parentNode;if(r)for(let t=0,i=(e=new It(e)).length;t<i;t++){const i=e[t];r.insertBefore(i,n.nextSibling),n=i}},parent(t){const e=t.parentNode;return e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e:null},find:(t,e)=>t.getElementsByTagName?t.getElementsByTagName(e):[],triggerHandler(t,e,n){let r,i,s;const o=e.type||e,a=Bt(t),c=a&&a.events,l=c&&c[o];l&&(r={preventDefault(){this.defaultPrevented=!0},isDefaultPrevented(){return!0===this.defaultPrevented},stopImmediatePropagation(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped(){return!0===this.immediatePropagationStopped},stopPropagation:()=>{},type:o,target:t},e.type&&(r=j(r,e)),i=dt(l),s=n?[r].concat(n):[r],V(i,(e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))}},((t,e)=>{It.prototype[e]=function(e,n,r){let i;for(let s=0,o=this.length;s<o;s++)m(i)?(i=t(this[s],e,n,r),g(i)&&(i=Lt(i))):Wt(i,t(this[s],e,n,r));return g(i)?i:this}}));var oe=/^([^(]+?)=>/,ae=/^[^(]*\(\s*([^)]*)\)/m,ce=/,/,le=/^\s*(_?)(\S+?)\1\s*$/,ue=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,he=mt("$injector");function de(t){return Function.prototype.toString.call(t)}function pe(t){var e=de(t).replace(ue,"");return e.match(oe)||e.match(ae)}function fe(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw y(n)&&n||(n=t.name||function(t){var e=pe(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),he("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);V(pe(t)[1].split(ce),(function(t){t.replace(le,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else E(t)?(ft(t[i=t.length-1],"fn"),r=t.slice(0,i)):ft(t,"fn",!0);return r}const $e="Provider",me={};function ge(t,e){if(g(e)&&!_(e))throw he("strictDi must be boolean");e=!!e;const n=[],r=new Map,i={$provide:{provider:u(h),factory:u(p),service:u((function(t,e){return p(t,["$injector",function(t){return t.instantiate(e)}])})),value:u((function(t,e){return p(t,H(e),!1)})),constant:u((function(t,e){Y(t,"constant"),i[t]=e,o[t]=e})),decorator:function(t,e){const n=s.get(t+$e),r=n.$get;n.$get=function(){const t=c.invoke(r,n);return c.invoke(e,null,{$delegate:t})}}}},s=i.$injector=$(i,(function(t,e){throw y(e)&&n.push(e),he("unpr","Unknown provider: {0}",n.join(" <- "))})),o={};let a=$(o,((t,e)=>{const n=s.get(t+$e,e);return c.invoke(n.$get,n,void 0,t)}));i["$injector"+$e]={$get:H(a)};let c=a;c.modules=s.modules=Q();var l=f(t);return c=a.get("$injector"),c.strictDi=e,l.forEach((t=>{t&&c.invoke(t)})),c.loadNewModules=function(t){f(t).forEach((t=>{t&&c.invoke(t)}))},c;function u(t){return function(e,n){if(!v(e))return t(e,n);V(e,P(t))}}function h(t,e){if(Y(t,"service"),(x(e)||E(e))&&(e=s.instantiate(e)),!e.$get)throw he("pget","Provider '{0}' must define $get factory method.",t);return i[t+$e]=e}function d(t,e){return function(){const n=c.invoke(e,this);if(m(n))throw he("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function p(t,e,n){return h(t,{$get:!1!==n?d(t,e):e})}function f(t){pt(m(t)||E(t),"modulesToLoad","not an array");let e,n=[];return V(t,(t=>{if(!r.get(t)){r.set(t,!0);try{y(t)?(e=window.angular.module(t),c.modules[t]=e,n=n.concat(f(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):x(t)||E(t)?n.push(s.invoke(t)):ft(t,"module")}catch(e){throw E(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=`${e.message}\n${e.stack}`),he("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function i(t){t.forEach((t=>{const e=s.get(t[0]);e[t[1]].apply(e,t[2])}))}})),n}function $(t,r){function s(e,i){if(Object.prototype.hasOwnProperty.call(t,e)){if(t[e]===me)throw he("cdep","Circular dependency found: {0}",`${e} <- ${n.join(" <- ")}`);return t[e]}try{return n.unshift(e),t[e]=me,t[e]=r(e,i),t[e]}catch(n){throw t[e]===me&&delete t[e],n}finally{n.shift()}}function o(t,n,r){const i=[],o=fe(t,e,r);for(let t=0,{length:e}=o;t<e;t++){const e=o[t];if("string"!=typeof e)throw he("itkn","Incorrect injection token! Expected service name as string, got {0}",e);i.push(n&&Object.prototype.hasOwnProperty.call(n,e)?n[e]:s(e,r))}return i}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);const i=o(t,n,r);return E(t)&&(t=t[t.length-1]),function(t){let e=t.$$ngIsClass;return _(e)||(e=t.$$ngIsClass=/^class\b/.test(de(t))),e}(t)?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)},instantiate:function(t,e,n){const r=E(t)?t[t.length-1]:t,i=o(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:fe,has:function(e){const n=Object.prototype.hasOwnProperty.call(i,e+$e),r=Object.prototype.hasOwnProperty.call(t,e);return n||r}}}}ge.$$annotate=fe;const ve=mt("ng"),ye={};function we(t){let e,n;const r={};ht.forEach((r=>{const i=`${r}app`;!e&&t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),ht.forEach((r=>{const i=`${r}app`;let s;!e&&(s=t.querySelector(`[${i.replace(":","\\:")}]`))&&(e=s,n=s.getAttribute(i))})),e&&(r.strictDi=null!==function(t,e){let n,r;const i=ht.length;for(r=0;r<i;++r)if(n=ht[r]+e,y(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),window.angular.bootstrap(e,n?[n]:[],r))}function be(t){var e;return v(t)&&(g(t.objectMaxDepth)&&($t.objectMaxDepth=w(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),g(t.urlErrorParamsEnabled)&&_(t.urlErrorParamsEnabled)&&($t.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),$t}const Ee=mt("$controller"),Ce=/^(\S+)(\s+as\s+([\w$]+))?$/;function xe(t,e){if(y(t)){const e=Ce.exec(t);if(e)return e[3]}}function Se(){const t={};this.has=function(e){return Object.prototype.hasOwnProperty.call(t,e)},this.register=function(e,n){Y(e,"controller"),v(e)?j(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,s,o){let a,c,l,u;if(s=!0===s,o&&y(o)&&(u=o),y(r)){if(c=r.match(Ce),!c)throw Ee("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=c[1],u=u||c[3],!(r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:function(t,e,n){if(!e)return t;const r=e.split(".");let i;const s=r.length;for(let e=0;e<s;e++)i=r[e],t&&(t=t[i]);return t}(i.$scope,l)))throw Ee("ctrlreg","The controller with the name '{0}' is not registered.",l);ft(r,l,!0)}if(s){const t=(E(r)?r[r.length-1]:r).prototype;return a=Object.create(t||null),u&&n(i,u,a,l||r.name),j((()=>{const t=e.invoke(r,a,i,l);return t!==a&&(v(t)||x(t))&&(a=t,u&&n(i,u,a,l||r.name)),a}),{instance:a,identifier:u})}return a=e.instantiate(r,i,l),u&&n(i,u,a,l||r.name),a};function n(t,e,n,r){if(!t||!v(t.$scope))throw mt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}const Oe=window.document.createElement("a"),ke=Te(window.location.href);let _e;function Te(t){if(!y(t))return t;const e=t;Oe.setAttribute("href",e);let{hostname:n}=Oe;return!("[::1]"===Oe.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Oe.href,protocol:Oe.protocol?Oe.protocol.replace(/:$/,""):"",host:Oe.host,search:Oe.search?Oe.search.replace(/^\?/,""):"",hash:Oe.hash?Oe.hash.replace(/^#/,""):"",hostname:n,port:Oe.port,pathname:"/"===Oe.pathname.charAt(0)?Oe.pathname:`/${Oe.pathname}`}}function Ae(t){return Re(t,function(){if(window.document.baseURI)return window.document.baseURI;_e||(_e=window.document.createElement("a"),_e.href=".",_e=_e.cloneNode(!1));return _e.href}())}function Re(t,e){return t=Te(t),e=Te(e),t.protocol===e.protocol&&t.host===e.host}Oe.href="http://[::1]";const Ve=mt("$sce"),Ne={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Pe(t){if("self"===t)return t;if(y(t)){if(t.indexOf("***")>-1)throw Ve("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(S(t))return new RegExp(`^${t.source}$`);throw Ve("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function De(){this.SCE_CONTEXTS=Ne;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Pe(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Pe(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw Ve("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?Re(e,ke)||Ae(e):!!t.exec(e.href)}function o(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const a=o(),c={};return c[Ne.HTML]=o(a),c[Ne.CSS]=o(a),c[Ne.MEDIA_URL]=o(a),c[Ne.URL]=o(c[Ne.MEDIA_URL]),c[Ne.JS]=o(a),c[Ne.RESOURCE_URL]=o(c[Ne.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Ve("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||m(e)||""===e)return e;if("string"!=typeof e)throw Ve("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||m(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(x(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ne.MEDIA_URL||n===Ne.URL)return r(o.toString(),n===Ne.MEDIA_URL);if(n===Ne.RESOURCE_URL){if(function(n){const r=Te(n.toString());let i,o,a=!1;for(i=0,o=t.length;i<o;i++)if(s(t[i],r)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(s(e[i],r)){a=!1;break}return a}(o))return o;throw Ve("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ne.HTML)return i(o);throw Ve("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function je(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=dt(Ne);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return V(Ne,((t,e)=>{const n=f(e);r[At(`parse_as_${n}`)]=function(e){return i(t,e)},r[At(`get_trusted_${n}`)]=function(e){return s(t,e)},r[At(`trust_as_${n}`)]=function(e){return o(t,e)}})),r}]}const Me={},Ie={blur:!0,focus:!0};function Le(t,e,n,r,i,s){return{restrict:"A",compile(o,a){const c=t(a[r]);return function(t,r){r.on(i,(r=>{const i=function(){c(t,{$event:r})};if(e.$$phase)if(s)t.$evalAsync(i);else try{i()}catch(t){n(t)}else t.$apply(i)}))}}}}"click dblclick submit focus blur copy cut paste".split(" ").forEach((t=>{const e=wt(`ng-${t}`);Me[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>Le(n,r,i,e,t,Ie[t])]}));const qe=mt("$compile"),Ue=new Object;let He=10;function Fe(t,e){const n={},r="Directive",i={ngSrc:!0,ngSrcset:!0,src:!0,srcset:!0},s=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,o=/^(on[a-z]+|formaction)$/,a=Q();function l(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Q();return V(t,((t,s)=>{if((t=t.trim())in a)return void(i[s]=a[t]);const o=t.match(r);if(!o)throw qe("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,s,t,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||s},o[4]&&(a[t]=i[s])})),i}function h(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=l(t.scope,e,!0),n.isolateScope={}):n.isolateScope=l(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=l(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw qe("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return pt(i,"name"),Y(i,"directive"),y(i)?(!function(t){const e=t.charAt(0);if(!e||e!==f(e))throw qe("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw qe("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),pt(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return V(n[i],((n,o)=>{try{let e=t.invoke(n);x(e)?e={compile:H(e)}:!e.compile&&e.link&&(e.compile=H(e.link)),e.priority=e.priority||0,e.index=o,e.name=e.name||i,e.require=function(t){const e=t.require||t.controller&&t.name;return!E(e)&&v(e)&&V(e,((t,n)=>{const r=t.match(s);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(e),e.restrict=function(t,e){if(t&&(!y(t)||!/[EA]/.test(t)))throw qe("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function t(e,n){if(!y(e))return V(e,P(nt(this,t))),this;const r=n.controller||function(){};function i(t){function e(e){return x(e)||E(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=n.template||n.templateUrl?n.template:"",s={controller:r,controllerAs:xe(n.controller)||n.controllerAs||"$ctrl",template:e(i),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return V(n,((t,e)=>{"$"===e.charAt(0)&&(s[e]=t)})),s}return V(n,((t,e)=>{"$"===e.charAt(0)&&(i[e]=t,x(r)&&(r[e]=t))})),i.$inject=["$injector"],this.directive(e,i)},this.aHrefSanitizationTrustedUrlList=function(t){return g(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let d=!0;this.debugInfoEnabled=function(t){return g(t)?(d=t,this):d};let p=!1;this.strictComponentBindingsEnabled=function(t){return g(t)?(p=t,this):p};const $=Q();this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in $&&$[r]!==n)throw qe("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,$[r],n);return $[r]=n,this},function(){function t(t,e){V(e,(e=>{$[e.toLowerCase()]=t}))}t(Ne.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ne.CSS,["*|style"]),t(Ne.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ne.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ne.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=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,a,l,d,g,w,b,S){const O=/^\w/,T=window.document.createElement("div");let N;function P(){try{if(! --He)throw N=void 0,qe("infchng","{0} $onChanges() iterations reached. Aborting!\n",He);w.$apply((()=>{for(let t=0,e=N.length;t<e;++t)try{N[t]()}catch(t){a(t)}N=void 0}))}finally{He++}}function D(t,e){if(!t)return t;if(!y(t))throw qe("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=A(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=b.getTrustedMediaUrl(A(s[c])),n+=" "+A(s[c+1])}var l=A(s[2*a]).split(/\s/);return n+=b.getTrustedMediaUrl(A(l[0])),2===l.length&&(n+=" "+A(l[1])),n}class M{constructor(t,e){if(e){const t=Object.keys(e);for(let n=0,r=t.length;n<r;n++){const r=t[n];this[r]=e[r]}}else this.$attr={};this.$$element=t}$normalize=wt;$addClass(t){t&&t.length>0&&S.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&S.removeClass(this.$$element,t)}$updateClass(t,e){const n=ze(t,e);n&&n.length&&S.addClass(this.$$element,n);const r=ze(e,t);r&&r.length&&S.removeClass(this.$$element,r)}$set(t,e,n,r){const i=te(this.$$element[0],t),s=u[t];let o=t;i?(this.$$element[0][t]=e,r=i):s&&(this[s]=e,o=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=R(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=D(e,"$set('srcset', value)")),!1!==n&&(null===e||m(e)?this.$$element[0].removeAttribute(r):O.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):function(t,e,n){T.innerHTML=`<span ${e}>`;const{attributes:r}=T.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));const{$$observers:c}=this;c&&V(c[o],(t=>{try{t(e)}catch(t){a(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Q()),r=n[t]||(n[t]=[]);return r.push(e),w.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||m(this[t])||e(this[t])})),function(){G(r,e)}}}const I=e.startSymbol(),L=e.endSymbol(),H="{{"===I&&"}}"===L?U:function(t){return t.replace(/\{\{/g,I).replace(/}}/g,L)},F=/^ng(Attr|Prop|On)([A-Z].*)$/,B=/^(.+)Start$/;return W;function W(t,e,n,r,i){t instanceof Lt||(t=Lt(t));let s=Z(t,e,t,n,r,i),o=null;return function(e,n,r){if(!t)throw qe("multilink","This element has already been linked.");pt(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};let a,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=r;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),o||(o=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==z(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),a="html"!==o?Lt($t(o,Lt("<div></div>").append(t).html())):n?Lt(Array.from(t).map((t=>t.cloneNode(!0)))):t,c)for(const t in c)a.data(`$${t}Controller`,c[t].instance);return n&&n(a,e),s&&s(e,a,a,l),n||(t=s=null),a}}function Z(t,e,n,r,i,s){const o=[];let a,c;var l;let u,h,d,p;for(let f=0;f<t.length;f++)a=new M,c=X(t[f],[],a,0===f?r:void 0,i),h=(l=c.length?st(c,t[f],a,e,n,null,[],[],s):null)&&l.terminal||!(u=t[f].childNodes)||!u.length?null:Z(u,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(o.push(f,l,h),d=!0,p=p||l),s=null;return d?function(t,n,r,i){let s,a,c,l,u,h,d,f,$;if(p)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,f=s.transcludeOnThisElement?Y(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?Y(t,e):null,s(a,l,c,r,f)):a&&a(t,c.childNodes,void 0,i)}:null}function Y(t,e,n){function r(r,i,s,o,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Q();for(const r in e.$$slots)e.$$slots[r]?i[r]=Y(t,e.$$slots[r],n):i[r]=null;return r}function X(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let l;switch(o){case Node.ELEMENT_NODE:l=t.nodeName.toLowerCase(),ct(n,wt(l),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,l=!1,g=!1,v=!1,y=!1;h=(u=$[m]).name,p=u.value,(f=(d=wt(h.toLowerCase())).match(F))?(g="Attr"===f[1],v="Prop"===f[1],y="On"===f[1],h=h.replace(c,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=d.match(B))&<(e[1])&&(o=h,l=`${h.substr(0,h.length-5)}end`,h=h.substr(0,h.length-6)),v||y?(r[d]=p,a[d]=u.name,v?gt(t,n,d,h):vt(n,d,h)):(a[d=wt(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,te(t,d)&&(r[d]=!0)),yt(t,n,p,d,g),ct(n,d,"A",i,s,o,l))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:function(){return function(t,e){t.$watch(r,(t=>{e[0].nodeValue=t}))}}})}(n,t.nodeValue)}return n.sort(dt),n}function tt(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw qe("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return Lt(r)}function rt(t,e,n){return function(r,i,s,o,a){return i=tt(i[0],e,n),t(r,i,s,o,a)}}function it(t,e,n,r,i,s){let o;return t?W(e,n,r,i,s):function(){return o||(o=W(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function st(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,f,$=-Number.MAX_VALUE,{newScopeDirective:y}=l,{controllerDirectives:w}=l,{newIsolateScopeDirective:b}=l,{templateDirective:C}=l,{nonTlbTranscludeDirective:S}=l,O=!1,_=!1,{hasElementTranscludeDirective:T}=l,R=n.$$element=Lt(e),N=s,P=r,D=!1,I=!1;for(let s=0,l=t.length;s<l;s++){u=t[s];const m=u.$$start,g=u.$$end;if(m&&(R=tt(e,m,g)),d=void 0,$>u.priority)break;if(f=u.scope,f&&(u.templateUrl||(v(f)?(ft("new/isolated scope",b||y,u,R),b=u):ft("new/isolated scope",b,u,R)),y=y||u),h=u.name,!D&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!u.$$tlb)){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!e.$$tlb||e.replace&&(e.templateUrl||e.template)){I=!0;break}D=!0}if(!u.templateUrl&&u.controller&&(w=w||Q(),ft(`'${h}' controller`,w[h],u,R),w[h]=u),f=u.transclude,f)if(O=!0,u.$$tlb||(ft("transclusion",S,u,R),S=u),"element"===f)T=!0,$=u.priority,d=R,R=n.$$element=Lt(document.createComment("")),e=R[0],Ct(i,et(d),e),P=it(I,d,r,$,N&&N.name,{nonTlbTranscludeDirective:S});else{const t=Q();if(v(f)){d=window.document.createDocumentFragment();const e=Q(),n=Q();V(f,((r,i)=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,e[r]=i,t[i]=null,n[i]=s})),V(Lt(R[0].childNodes),(r=>{const i=e[wt(z(r))];i?(n[i]=!0,t[i]=t[i]||window.document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),V(n,((t,e)=>{if(!t)throw qe("reqslot","Required transclusion slot `{0}` was not filled.",e)}));for(const e in t)if(t[e]){const n=Lt(t[e].childNodes);t[e]=it(I,n,r)}d=Lt(d.childNodes)}else d=e.cloneNode(!0).childNodes;R.empty(),P=it(I,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),P.$$slots=t}if(u.template)if(_=!0,ft("template",C,u,R),C=u,f=x(u.template)?u.template(R,n):u.template,f=H(f),u.replace){if(N=u,d=Pt(f)?[]:We($t(u.templateNamespace,A(f))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw qe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");Ct(i,R,e);const r={$attr:{}},o=X(e,[],r),a=t.splice(s+1,t.length-(s+1));(b||y)&&at(o,b,y),t=t.concat(o).concat(a),ut(n,r),l=t.length}else R.html(f);if(u.templateUrl)_=!0,ft("template",C,u,R),C=u,u.replace&&(N=u),q=ht(t.splice(s,t.length-s),R,n,i,O&&P,o,c,{controllerDirectives:w,newScopeDirective:y!==u&&y,newIsolateScopeDirective:b,templateDirective:C,nonTlbTranscludeDirective:S}),l=t.length;else if(u.compile)try{p=u.compile(R,n,P);const t=u.$$originalDirective||u;x(p)?L(null,nt(t,p),m,g):p&&L(nt(t,p.pre),nt(t,p.post),m,g)}catch(t){a(t,ie(R))}u.terminal&&(q.terminal=!0,$=Math.max($,u.priority))}return q.scope=y&&!0===y.scope,q.transcludeOnThisElement=O,q.templateOnThisElement=_,q.transclude=P,l.hasElementTranscludeDirective=T,q;function L(t,e,n,r){t&&(n&&(t=rt(t,n,r)),t.require=u.require,t.directiveName=h,(b===u||u.$$isolateScope)&&(t=xt(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=rt(e,n,r)),e.require=u.require,e.directiveName=h,(b===u||u.$$isolateScope)&&(e=xt(e,{isolateScope:!0})),c.push(e))}function q(t,r,i,s,l){let u,h,d,p,f,$,C,S,O,_;e===i?(O=n,S=n.$$element):(S=Lt(i),O=new M(S,n)),f=r,b?p=r.$new(!0):y&&(f=r.$parent),l&&(C=function(t,e,n,r){let i;k(t)||(r=n,n=e,e=t,t=void 0);T&&(i=$);n||(n=T?S.parent():S);if(!r)return l(t,e,i,n,A);{const s=l.$$slots[r];if(s)return s(t,e,i,n,A);if(m(s))throw qe("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ie(S))}},C.$$boundTransclude=l,C.isSlotFilled=function(t){return!!l.$$slots[t]}),w&&($=function(t,e,n,r,i,s,o){const a=Q();for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=g(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(S,O,C,w,p,r,b)),b&&(p.$$isolateBindings=b.$$isolateBindings,_=kt(r,O,p,p.$$isolateBindings,b),_.removeWatches&&p.$on("$destroy",_.removeWatches));for(const t in $){const e=w[t],n=$[t],r=e.$$bindings.bindToController;n.instance=n(),S.data(`$${e.name}Controller`,n.instance),n.bindingInfo=kt(f,O,n.instance,r,e)}for(V(w,((t,e)=>{const{require:n}=t;t.bindToController&&!E(n)&&v(n)&&j($[e].instance,ot(e,n,S,$))})),V($,(t=>{const e=t.instance;if(x(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(x(e.$onInit))try{e.$onInit()}catch(t){a(t)}x(e.$doCheck)&&(f.$watch((()=>{e.$doCheck()})),e.$doCheck()),x(e.$onDestroy)&&f.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],St(d,d.isolateScope?p:r,S,O,d.require&&ot(d.directiveName,d.require,S,$),C);var A=r;for(b&&(b.template||null===b.templateUrl)&&(A=p),t&&t(A,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],St(d,d.isolateScope?p:r,S,O,d.require&&ot(d.directiveName,d.require,S,$),C);V($,(t=>{const e=t.instance;x(e.$postLink)&&e.$postLink()}))}}function ot(t,e,n,r){let i;if(y(e)){const o=e.match(s),a=e.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){const t=`$${a}Controller`;i="^^"===c&&n[0]&&n[0].nodeType===Node.DOCUMENT_NODE?null:c?n.inheritedData(t):n.data(t)}if(!i&&!l)throw qe("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(E(e)){i=[];for(let s=0,o=e.length;s<o;s++)i[s]=ot(t,e[s],n,r)}else v(e)&&(i={},V(e,((e,s)=>{i[s]=ot(t,e,n,r)})));return i||null}function at(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=q(t[r],{$$isolateScope:e,$$newScope:n})}function ct(e,i,s,o,a,c,l){if(i===a)return null;let u=null;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),d=0,p=a.length;d<p;d++)if(n=a[d],(m(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=q(n,{$$start:c,$$end:l})),!n.$$bindings){const t=n.$$bindings=h(n,n.name);v(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),u=n}return u}function lt(e){if(Object.prototype.hasOwnProperty.call(n,e))for(let n,i=t.get(e+r),s=0,o=i.length;s<o;s++)if(n=i[s],n.multiElement)return!0;return!1}function ut(t,e){const n=e.$attr,r=t.$attr;V(t,((r,i)=>{"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),V(e,((e,i)=>{Object.prototype.hasOwnProperty.call(t,i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function ht(t,e,n,r,i,s,o,c){let u,h,d=[];const p=e[0],f=t.shift(),$=q(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=x(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),l(m).then((a=>{let l,y,w,b;if(a=H(a),f.replace){if(w=Pt(a)?[]:We($t(g,A(a))),l=w[0],1!==w.length||l.nodeType!==Node.ELEMENT_NODE)throw qe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},Ct(r,e,l);const i=X(l,[],y);v(f.scope)&&at(i,!0),t=i.concat(t),ut(n,y)}else l=p,e.html(a);for(t.unshift($),u=st(t,l,n,i,e,f,s,o,c),V(r,((t,n)=>{t===l&&(r[n]=e[0])})),h=Z(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;c.hasElementTranscludeDirective&&f.replace||(o=l.cloneNode(!0)),Ct(i,Lt(n),o);try{""!==t&&o.classList.add(t)}catch(t){}}b=u.transcludeOnThisElement?Y(t,u.transclude,s):s,u(h,t,o,r,b)}}d=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=Y(e,u.transclude,i)),u(h,e,n,r,s)))}}function dt(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function ft(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw qe("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,ie(r))}function $t(t,e){switch(t=f(t||"html")){case"svg":case"math":var n=window.document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function mt(t){return D(b.valueOf(t),"ng-prop-srcset")}function gt(t,e,n,r){if(o.test(r))throw qe("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=z(t),s=function(t,e){const n=e.toLowerCase();return $[`${t}|${n}`]||$[`*|${n}`]}(i,r);let a=U;"srcset"!==r||"img"!==i&&"source"!==i?s&&(a=b.getTrusted.bind(b,s)):a=mt,e.push({priority:100,compile:function(t,e){const i=d(e[n]),s=d(e[n],(t=>b.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function vt(t,e,n){t.push(Le(d,w,a,e,n,!1))}function yt(t,n,r,s,a){const c=z(t),l=function(t,e){return"srcdoc"===e?b.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?b.RESOURCE_URL:b.MEDIA_URL:"xlinkHref"===e?"image"===t?b.MEDIA_URL:"a"===t?b.URL:b.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?b.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:b.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw qe("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ie(t.outerHTML));if(o.test(s))throw qe("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Q()),a=i[s];a!==r&&(h=a&&e(a,!0,l,u),r=a),h&&(i[s]=h(t),(o[s]||(o[s]=[])).$$inter=!0,(i.$$observers&&i.$$observers[s].$$scope||t).$watch(h,((t,e)=>{"class"===s&&t!==e?i.$updateClass(t,e):i.$set(s,t)})))}})})}}function Ct(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1,t.context===r&&(t.context=n);break}s&&s.replaceChild(n,r);const c=window.document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(Et.has(r[bt])&&(Lt.data(n,Lt.data(r)),Lt(r).off("$destroy")),Lt.cleanData(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function xt(t,e){return j((function(){return t.apply(null,arguments)}),t,e)}function St(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,ie(n))}}function Ot(t,e){if(p)throw qe("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function kt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){x(r.$onChanges)&&!K(n,i)&&(N||(t.$$postDigest(P),N=[]),c||(c={},N.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new Be(i,n))}function u(){r.$onChanges(c),c=void 0}return V(i,((i,c)=>{const{attrName:u}=i,{optional:h}=i,{mode:p}=i;let f,$,m,g,v;switch(p){case"@":h||hasOwnProperty.call(n,u)||(Ot(u,s.name),r[c]=n[u]=void 0),v=n.$observe(u,(t=>{if(y(t)||_(t)){const e=r[c];l(c,t,e),r[c]=t}})),n.$$observers[u].$$scope=t,f=n[u],y(f)?r[c]=e(f)(t):_(f)&&(r[c]=f),a[c]=new Be(Ue,r[c]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ot(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=d(n[u]),g=$.literal?J:K,m=$.assign||function(){throw f=r[c]=$(t),qe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[c]=$(t);var w=function(e){return g(e,r[c])||(g(e,f)?m(t,e=r[c]):r[c]=e),f=e,f};w.$stateful=!0,v=i.collection?t.$watchCollection(n[u],w):t.$watch(d(n[u],w),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ot(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=d(n[u]);var b=$.literal,E=r[c]=$(t);a[c]=new Be(Ue,r[c]),v=t[i.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||b&&J(e,E))return;e=E}l(c,t,e),r[c]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||Ot(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?d(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[c]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}Fe.$inject=["$provide","$$sanitizeUriProvider"];class Be{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===Ue}}function ze(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}function We(t){let e=(t=Lt(t)).length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}function Ge(){return{restrict:"E",compile:(t,e)=>e.href||e.xlinkHref?()=>{}:(t,e)=>{if("a"!==e[0].nodeName.toLowerCase())return;const n="[object SVGAnimatedString]"===toString.call(e[0].href)?"xlink:href":"href";e.on("click",(t=>{e.attr(n)||t.preventDefault()}))}}}const Ke={$addControl:()=>{},$getControls:H([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},Je="ng-pending",Ze="ng-submitted";function Ye(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Ke,this.$$element=t,this.$$animate=r,en(this)}Ye.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Ye.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){Y(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return dt(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],V(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),V(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),V(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),G(this.$$controls,t),t.$$parentForm=Ke},$setDirty(){this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,n,`${r} ${Ze}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach((t=>{t.$setPristine()}))},$setUntouched(){this.$$controls.forEach((t=>{t.$setUntouched()}))},$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==Ke;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,Ze),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},nn({clazz:Ye,set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset(t,e,n){const r=t[e];r&&(G(r,n),0===r.length&&delete t[e])}});const Qe=function(e){return["$timeout","$parse",function(r,i){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Ye,compile:function(i,o){i[0].classList.add(n,t);const a=o.name?"name":!(!e||!o.ngForm)&&"ngForm";return{pre:function(t,e,n,i){const o=i[0];if(!("action"in n)){const n=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",n),e.on("$destroy",(()=>{r((()=>{e[0].removeEventListener("submit",n)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),n.$observe(a,(e=>{o.$name!==e&&(c(t,void 0),o.$$parentForm.$$renameControl(o,e),c=s(o.$name),c(t,o))}))),e.on("$destroy",(()=>{o.$$parentForm.$removeControl(o),c(t,void 0),j(o,Ke)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},Xe=Qe(),tn=Qe(!0);function en(n){n.$$classCache={},n.$$classCache[e]=!(n.$$classCache[t]=n.$$element[0].classList.contains(t))}function nn(n){const{clazz:r}=n,{set:i}=n,{unset:s}=n;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(n,r,i){r=r?`-${R(r,"-")}`:"",o(n,t+r,!0===i),o(n,e+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;m(e)?function(t,e,n,r){t[e]||(t[e]={});i(t[e],n,r)}(this,"$pending",t,n):function(t,e,n,r){t[e]&&s(t[e],n,r);rn(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),_(e)?e?(s(this.$error,t,n),i(this.$$success,t,n)):(i(this.$error,t,n),s(this.$$success,t,n)):(s(this.$error,t,n),s(this.$$success,t,n)),this.$pending?(o(this,Je,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,Je,!1),this.$valid=rn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}function rn(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}let sn;const on=/(\s+|^)default(\s+|$)/;function an(t){this.$$options=t}an.prototype={getOption(t){return this.$$options[t]},createChild(t){let e=!1;return V(t=j({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=A(n.replace(on,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],ln(t,this.$$options)),ln(t,sn.$$options),new an(t)}},sn=new an({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});const cn=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:sn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function ln(t,e){V(e,((e,n)=>{g(t[n])||(t[n]=e)}))}const un=mt("ngModel");function hn(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=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.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=Ke,this.$options=sn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=s,this.$$timeout=o,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=e,en(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}hn.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],hn.prototype={$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return x(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){x(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw un("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ie(this.$$element))},$render:()=>{},$isEmpty:t=>m(t)||""===t||null===t||t!=t,$$updateEmptyClasses(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,o)):(this.$$animate.removeClass(this.$$element,o),this.$$animate.addClass(this.$$element,a))},$setPristine(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,n)},$setDirty(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r),this.$$parentForm.$setDirty()},$setUntouched(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,i,s)},$setTouched(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,s,i)},$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate(){if(L(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),s=this;this.$$runValidators(e,t,(t=>{i||n===t||(s.$modelValue=t?e:void 0,s.$modelValue!==r&&s.$$writeModelToScope())}))},$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,i=this;function s(t,e){r===i.$$currentValidationRunId&&i.$setValidity(t,e)}function o(t){r===i.$$currentValidationRunId&&n(t)}!function(){const t=i.$$parserName;if(!m(i.$$parserValid))return i.$$parserValid||(V(i.$validators,((t,e)=>{s(e,null)})),V(i.$asyncValidators,((t,e)=>{s(e,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(V(i.$validators,((r,i)=>{const o=Boolean(r(t,e));n=n&&o,s(i,o)})),!n)return V(i.$asyncValidators,((t,e)=>{s(e,null)})),!1;return!0}()?function(){const n=[];let r=!0;V(i.$asyncValidators,((i,o)=>{const a=i(t,e);if(!T(a))throw un("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then((()=>{s(o,!0)}),(()=>{r=!1,s(o,!1)})))})),n.length?i.$$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)},$commitViewValue(){const t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(t)||(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))},$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!m(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),m(t)){this.$$parserValid=!1;break}L(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))},$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),V(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)},$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");w(e[t])?e=e[t]:w(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:w(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))},$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))},$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n},$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}},nn({clazz:hn,set(t,e){t[e]=!0},unset(t,e){delete t[e]}});const dn=["$rootScope",e=>({restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:hn,priority:1,compile:function(r){return r[0].classList.add(n,i,t),{pre:function(t,e,n,r){const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))}))}}}})],pn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,fn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,$n=/^(?=.{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])?)*$/,mn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,gn=/^(\d{4,})-(\d{2})-(\d{2})$/,vn=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,yn=/^(\d{4,})-W(\d\d)$/,wn=/^(\d{4,})-(\d\d)$/,bn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,En="validity",Cn="keydown wheel mousedown",xn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{xn.set(t,!0)}));const Sn={text:function(t,e,n,r,i){kn(t,e,n,r,i),On(r)},date:An("date",gn,_n(gn,["yyyy","MM","dd"])),"datetime-local":An("datetimelocal",vn,_n(vn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:An("time",bn,_n(bn,["HH","mm","ss","sss"])),week:An("week",yn,(function(t,e){if(b(t))return t;if(y(t)){yn.lastIndex=0;const n=yn.exec(t);if(n){const t=+n[1],r=+n[2];let i=0,s=0,o=0,a=0;const c=function(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(i=e.getHours(),s=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,i,s,o,a)}}return NaN})),month:An("month",wn,_n(wn,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Rn(t,e,n,r,"number"),Vn(r),kn(t,e,n,r,i),g(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Nn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||m(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Nn(t),e=t,r.$validate())}))}if(g(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Nn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||m(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Nn(t),e=t,r.$validate())}))}if(g(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Nn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||m(i)||jn(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=Nn(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){kn(t,e,n,r,i),On(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||fn.test(n)}},email:function(t,e,n,r,i){kn(t,e,n,r,i),On(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||$n.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==A(n.ngTrim);m(n.name)&&e.attr("name",p());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=A(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=A(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Rn(t,e,n,r,"range"),Vn(r),kn(t,e,n,r,i);const s=r.$$hasNativeValidators&&"range"===e[0].type;let o=s?0:void 0,a=s?100:void 0,c=s?1:void 0;const{validity:l}=e[0],u=g(n.min),h=g(n.max),d=g(n.step),p=r.$render;r.$render=s&&g(l.rangeUnderflow)&&g(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=Nn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(o)||e>=o},f("min",(function(t){if(o=Nn(t),L(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Nn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(a)||e<=a},f("max",(function(t){if(a=Nn(t),L(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=Nn(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||m(c)||jn(e,o||0,c)},f("step",(function(t){if(c=Nn(t),L(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function f(t,r){e.attr(t,n[t]);let i=n[t];n.$observe(t,(t=>{t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,s,o){const a=Mn(o,t,"ngTrueValue",n.ngTrueValue,!0),c=Mn(o,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((t=>J(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function On(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function kn(t,e,n,r,i){const s=f(e[0].type);let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.defer.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=A(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),xn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Cn,(function(t){if(!o){const e=this[En],n=e.badInput,r=e.typeMismatch;o=i.defer((()=>{o=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function _n(t,e){return function(n,r){let i,s;if(b(n))return n;if(y(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),pn.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n),i){i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},V(i,((t,n)=>{n<e.length&&(s[e[n]]=+t)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Tn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function An(t,e,n){return function(r,i,s,o,a,c,l){if(Rn(r,i,s,o,t),kn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!y(e))throw un("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Tn.test(e))throw un("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!yn.test(e))throw un("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!vn.test(e))throw un("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e})),g(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?m(i)||n(e)>=n(i):!u(e)||m(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(g(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?m(i)||n(e)<=n(i):!u(e)||m(i)||n(e)<=i},s.$observe("max",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}function u(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return g(t)&&!b(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=ot(i,r)),i}}}function Rn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=v(s.validity))&&r.$parsers.push((t=>{const n=e[0][En]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function Vn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:mn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!w(e))throw un("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Nn(t){return g(t)&&!w(t)&&(t=parseFloat(t)),L(t)?void 0:t}function Pn(t){return(0|t)===t}function Dn(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function jn(t,e,n){let r=Number(t);const i=!Pn(r),s=!Pn(e),o=!Pn(n);if(i||s||o){const t=i?Dn(r):0,a=s?Dn(e):0,c=o?Dn(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,i&&(r=Math.round(r)),s&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n==0}function Mn(t,e,n,r,i){let s;if(g(r)){if(s=t(r),!s.constant)throw un("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}const In=["$browser","$filter","$parse",function(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Sn[f(s.type)]||Sn.text)(r,i,s,o[0],t,e,n)}}}}];function Ln(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===f(n.type))return{pre(e,n){const r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}const qn=/^(true|false|\d+)$/;function Un(){function t(t,e,n){const r=g(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>qn.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}const Hn=["$templateCache",t=>({restrict:"E",terminal:!0,compile(e,n){if("text/ng-template"===n.type){const r=n.id,{text:i}=e[0];t.put(r,i)}}})],Fn={$setViewValue:()=>{},$render:()=>{}};function Bn(t,e){t[0].selected=e,t.attr("selected",e)}var zn=["$element","$scope",function(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl=Fn,n.multiple=!1,n.unknownOption=Lt(window.document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),t.prepend(n.unknownOption),Bn(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),Bn(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${vt(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),Bn(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&Bn(n.emptyOption,!1)},e.$on("$destroy",(()=>{n.renderUnknownOption=()=>{}})),n.readValue=function(){const e=t.val(),r=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(r)?r:null},n.writeValue=function(e){const r=t[0].options[t[0].selectedIndex];if(r&&Bn(Lt(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=vt(e);t.val(r in n.selectValueMap?r:e);const i=t[0].options[t[0].selectedIndex];Bn(Lt(i),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;Y(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);const i=r.get(t)||0;r.set(t,i+1),s()},n.removeOption=function(t){const e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):r.set(t,e-1))},n.hasOption=function(t){return!!r.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};let i=!1;function s(){i||(i=!0,e.$$postDigest((()=>{i=!1,n.ngModelCtrl.$render()})))}let o=!1;function a(t){o||(o=!0,e.$$postDigest((()=>{e.$$destroyed||(o=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,r,i,o){let c,l;r.$attr.ngValue?r.$observe("value",(t=>{let r;const i=e[0].selected;g(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=vt(t),c=t,n.selectValueMap[l]=t,n.addOption(t,e),e.attr("value",l),r&&i&&a()})):i?r.$observe("value",(t=>{let r;n.readValue();const i=e[0].selected;g(c)&&(n.removeOption(c),r=!0),c=t,n.addOption(t,e),r&&i&&a()})):o?t.$watch(o,((t,i)=>{r.$set("value",t);const s=e[0].selected;i!==t&&n.removeOption(i),n.addOption(t,e),i&&s&&a()})):n.addOption(r.value,e),r.$observe("disabled",(t=>{("true"===t||t&&e[0].selected)&&(n.multiple?a(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(()=>{const t=n.readValue(),e=r.value;n.removeOption(e),s(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&a(!0)}))}}];const Wn=function(){return{restrict:"E",require:["select","?ngModel"],controller:zn,priority:1,link:{pre:function(t,e,n,r){const i=r[0],s=r[1];if(!s)return void(i.registerOption=()=>{});if(i.ngModelCtrl=s,e.on("change",(()=>{i.removeUnknownOption(),t.$apply((()=>{s.$setViewValue(i.readValue())}))})),n.multiple){let n;i.multiple=!0,i.readValue=function(){const t=[];return Array.from(e[0].getElementsByTagName("option")).forEach((e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){Array.from(e[0].getElementsByTagName("option")).forEach((e=>{const n=!!t&&(W(t,e.value)||W(t,i.selectValueMap[e.value]));n!==e.selected&&Bn(Lt(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||J(n,s.$viewValue)||(n=dt(s.$viewValue),s.$render()),r=s.$viewValue})),s.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const i=r[1];if(!i)return;const s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}}}},Gn=["$interpolate",function(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return g(n.ngValue)||(g(n.value)?r=t(n.value,!0):(i=t(e.text(),!0),i||n.$set("value",e.text()))),function(t,e,n){const s="$selectController",o=e.parent(),a=o.data(s)||o.parent().data(s);a&&a.registerOption(t,e,n,r,i)}}}}];function Kn(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=X(t)}))}}}function Jn(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=m(t)?"":t}))}}}const Zn=["$parse",t=>({restrict:"A",compile:(e,n)=>{var r=t(n.ngBindHtml),i=t(n.ngBindHtml,(t=>t));return(t,e)=>{t.$watch(i,(()=>{e.html(r(t)||"")}))}}})];function Yn(t,e){var n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return V(t,(t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Q(),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),l.$addClass(n)):function(t){t=p(i(t),-1),l.$removeClass(t)}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),a=r(s,n),c=p(o,-1),u=p(a,1);l.$addClass(u),l.$removeClass(c)}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return E(t)?e=t.map(s).join(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):y(t)||(e=`${t}`),e}}const Qn=Yn("",!0),Xn=Yn("Odd",0),tr=Yn("Even",1);function er(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}const nr=[()=>({restrict:"A",scope:!0,controller:"@",priority:500})],rr="ng-hide",ir="ng-hide-animate",sr=["$animate",t=>({restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(e=>{t[e?"removeClass":"addClass"](n,rr,{tempClasses:ir})}))}})],or=["$animate",t=>({restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(e=>{t[e?"addClass":"removeClass"](n,rr,{tempClasses:ir})}))}})],ar=["$animate",t=>({multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},t.enter(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=se(o.clone),t.leave(c).done((t=>{!1!==t&&(c=null)})),o=null))}))}})],cr=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{let h,d,p,f=0;const $=()=>{d&&(d.remove(),d=null),h&&(h.$destroy(),h=null),p&&(n.leave(p).done((t=>{!1!==t&&(d=null)})),d=p,p=null)};r.$watch(s,(s=>{const c=function(t){!1===t||!g(a)||a&&!r.$eval(a)||e()},d=++f;s?(t(s,!0).then((t=>{if(r.$$destroyed)return;if(d!==f)return;const e=r.$new();l.template=t;const a=u(e,(t=>{$(),n.enter(t,null,i).done(c)}));h=e,p=a,h.$emit("$includeContentLoaded",s),r.$eval(o)}),(()=>{r.$$destroyed||d===f&&($(),r.$emit("$includeContentError",s))})),r.$emit("$includeContentRequested",s)):($(),l.template=null)}))}}})],lr=["$compile",t=>({restrict:"ECA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(jt(i.template,window.document).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function ur(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function hr(){return{restrict:"EA",terminal:!0,priority:1e3}}const dr=mt("ngRef"),pr=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=wt(z(e)),i=t(n.ngRef),s=i.assign||function(){throw dr("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,o){let a;if(Object.prototype.hasOwnProperty.call(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=e.data(`$${o.ngRefRead}Controller`),!a)throw dr("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})],fr=document.createComment(""),$r=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=mt("ngRepeat"),i=function(t,e,n,r,i,s,o){t[n]=r,i&&(t[i]=s),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))},s=function(t){return t.clone[0]},o=function(t){return t.clone[t.clone.length-1]},a=function(t,e,n){return vt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],m=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);let w;if(g){var b={$id:vt};const e=t(g);w=function(t,n,r,i){return y&&(b[y]=n),b[v]=r,b.$index=i,e(t,b)}}return function(t,l,u,d,p){let g=Q();t.$watchCollection(f,(u=>{var d,f,E,C,x,S,O,k,_,T,A,R,N=l[0],P=Q();if(m&&(t[m]=u),$(u))_=u,k=w||a;else for(var D in k=w||c,_=[],u)Object.hasOwnProperty.call(u,D)&&"$"!==D.charAt(0)&&_.push(D);for(C=_.length,A=new Array(C),d=0;d<C;d++)if(x=u===_?d:_[d],S=u[x],O=k(t,x,S,d),g[O])T=g[O],delete g[O],P[O]=T,A[d]=T;else{if(P[O])throw V(A,(function(t){t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,O,S);A[d]={id:O,scope:void 0,clone:void 0},P[O]=!0}for(var j in b&&(b[v]=void 0),g){if(R=se((T=g[j]).clone),e.leave(R),R[0].parentNode)for(d=0,f=R.length;d<f;d++)R[d][n]=!0;T.scope.$destroy()}for(d=0;d<C;d++)if(x=u===_?d:_[d],S=u[x],(T=A[d]).scope){E=N;do{E=E.nextSibling}while(E&&E[n]);s(T)!==E&&e.move(se(T.clone),null,N),N=o(T),i(T.scope,d,v,S,y,x,C)}else p(((t,n)=>{T.scope=n;const r=fr.cloneNode(!1);t[t.length++]=r,e.enter(t,null,N),N=r,T.clone=t,P[T.id]=T,i(T.scope,d,v,S,y,x,C)}));g=P}))}}}}];function mr(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}const gr=["$animate",t=>({require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=se(a[n].clone);l[n].$destroy();(c[n]=t.leave(e)).done(u(c,n))}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&V(o,(e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),t.enter(n,i.parent(),i)}))}))}))}})];function vr(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function yr(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}const wr=mt("ngOptions"),br=/^\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]+?))?$/,Er=["$compile","$document","$parse",function(t,e,n){const r=window.document.createElement("option"),i=window.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(s,o,a,c){const l=c[0],u=c[1],{multiple:h}=a,d=o.childNodes;for(let t=0,e=d.length;t<e;t++)if(""===d[t].value){l.hasEmptyOption=!0,l.emptyOption=d[t];break}o.empty();const p=!!l.emptyOption;let f;Lt(r.cloneNode(!1)).val("?");const m=function(t,e,r){const i=t.match(br);if(!i)throw wr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,ie(e));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=n(i[2]?i[1]:s),u=a&&n(a)||l,h=c&&n(c),d=c?function(t,e){return h(r,e)}:function(t){return vt(t)},p=function(t,e){return d(t,w(t,e))},f=n(i[2]||i[1]),m=n(i[3]||""),g=n(i[4]||""),v=n(i[8]),y={};let w=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&$(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:n(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=w(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=w(a,s),l=u(r,c),h=d(l,c),p=new b(h,l,f(r,c),m(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(a.ngOptions,o,s),v=e[0].createDocumentFragment();function y(t,e){const n=r.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function w(t){const e=f.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}l.generateUnknownOptionValue=()=>"?",h?(l.writeValue=function(t){if(!f)return;const e=t&&t.map(w)||[];f.items.forEach((t=>{t.element.selected&&!W(e,t)&&(t.element.selected=!1)}))},l.readValue=function(){const t=o.val()||[],e=[];return V(t,(t=>{const n=f.selectValueMap[t];n&&!n.disabled&&e.push(f.getViewValueFromOption(n))})),e},m.trackBy&&s.$watchCollection((()=>{if(E(u.$viewValue))return u.$viewValue.map((t=>m.getTrackByValue(t)))}),(()=>{u.$render()}))):(l.writeValue=function(t){if(!f)return;const e=o[0].options[o[0].selectedIndex],n=f.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(o[0].value!==n.selectValue&&(l.removeUnknownOption(),o[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(t)},l.readValue=function(){const t=f.selectValueMap[o.val()];return t&&!t.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),f.getViewValueFromOption(t)):null},m.trackBy&&s.$watch((()=>m.getTrackByValue(u.$viewValue)),(()=>{u.$render()}))),p&&(t(l.emptyOption)(s),o.prepend(l.emptyOption),l.emptyOption[0].nodeType===Node.COMMENT_NODE&&(l.hasEmptyOption=!1,l.registerOption=function(t,e){""===e.val()&&(l.hasEmptyOption=!0,l.emptyOption=e,u.$render(),e.on("$destroy",(()=>{const t=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,t&&u.$render()})))})),s.$watchCollection(m.getWatchables,(function(){const t=f&&l.readValue();if(f)for(let t=f.items.length-1;t>=0;t--){const e=f.items[t];g(e.group)?Zt(e.element.parentNode):Zt(e.element)}f=m.getOptions();const e={};if(f.items.forEach((t=>{let n;g(t.group)?(n=e[t.group],n||(n=i.cloneNode(!1),v.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),y(t,n)):y(t,v)})),o[0].appendChild(v),u.$render(),!u.$isEmpty(t)){const e=l.readValue();(m.trackBy||h?J(t,e):t===e)||(u.$setViewValue(e),u.$render())}}))}}}}],Cr=mt("ngTransclude"),xr=["$compile",function(t){return{restrict:"EAC",compile:function(e){const n=t(e[0].childNodes);return e.empty(),function(t,e,r,i,s){if(!s)throw Cr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ie(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(t=>{e.append(t)}))}s((function(t,n){t.length&&function(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.nodeType!==Node.TEXT_NODE||n.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,o),o&&!s.isSlotFilled(o)&&a()}}}}];function Sr(){return{restrict:"A",priority:100,require:"ngModel",link(t,e,n,r){const i=n.ngList||", ",s="false"!==n.ngTrim,o=s?A(i):i;r.$parsers.push((function(t){if(m(t))return;const e=[];return t&&V(t.split(o),(t=>{t&&e.push(s?A(t):t)})),e})),r.$formatters.push((t=>{if(E(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}}function Or(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const kr=/^\/(.+)\/([a-z]*)$/,_r={};V(Qt,((t,e)=>{if("multiple"===t)return;function n(t,n,i){t.$watch(i[r],(t=>{i.$set(e,!!t)}))}let r=wt(`ng-${e}`),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),_r[r]=function(){return{restrict:"A",priority:100,link:i}}})),V(u,((t,e)=>{_r[e]=function(){return{priority:100,link(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(kr);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]))}t.$watch(r[e],(t=>{r.$set(e,t)}))}}}})),V(["src","srcset","href"],(t=>{const e=wt(`ng-${t}`);_r[e]=["$sce",function(n){return{priority:99,link(r,i,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(i[0].href)&&(o="xlinkHref",s.$attr[o]="xlink:href"),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(e=>{e?s.$set(o,e):"href"===t&&s.$set(o,null)}))}}}]}));const Tr=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!s||!i.$isEmpty(e)},r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Ar=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&kr.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,s){if(s){var o=n.pattern;n.ngPattern?o=i(t):r=n.pattern;var a=Nr(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Nr(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||m(a)||a.test(e)}}}}}}],Rr=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Pr(s);r.$observe("maxlength",(t=>{s!==t&&(o=Pr(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Vr=["$parse",function(t){return{restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.minlength||t(r.ngMinlength)(e),o=Pr(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Pr(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Nr(t,e,n){if(t){if(y(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw mt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,ie(n));return t}}function Pr(t){const e=I(t);return L(e)?-1:e}function Dr(){let t=!0;this.disableAutoScrolling=()=>{t=!1},this.$get=["$location","$rootScope",function(e,n){const{document:r}=window;function i(t){if(t){t.scrollIntoView();const e=function(){let t=s.yOffset;if(x(t))t=t();else if(B(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else w(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}function s(t){let n;(t=y(t)?t:w(t)?t.toString():e.hash())?(n=r.getElementById(t))||(n=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===z(t))return e=t,!0})),e}(r.getElementsByName(t)))?i(n):"top"===t&&i(null):i(null)}return t&&n.$watch((()=>e.hash()),((t,e)=>{if(t===e&&""===t)return;const r=()=>n.$evalAsync(s);"complete"===window.document.readyState?window.setTimeout((()=>r())):window.addEventListener("load",(()=>r()))})),s}]}const jr=mt("$animate"),Mr="ng-animate";function Ir(t,e){return t||e?t?e?(E(t)&&(t=t.join(" ")),E(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function Lr(t){return v(t)?t:{}}function qr(){this.$get=()=>{}}function Ur(){const t=new Map,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:()=>{},on:()=>{},off:()=>{},pin:()=>{},push(o,a,c,l){l&&l(),(c=c||{}).from,c.to,(c.addClass||c.removeClass)&&function(n,o,a){const c=t.get(n)||{},l=i(c,o,!0),u=i(c,a,!1);(l||u)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(s))}(o,c.addClass,c.removeClass);const u=new n;return u.complete(),u}};function i(t,e,n){let r=!1;return e&&V(e=y(e)?e.split(" "):E(e)?e:[],(e=>{e&&(r=!0,t[e]=n)})),r}function s(){V(e,(function(e){var n=t.get(e);if(n){var r=function(t){y(t)&&(t=t.split(" "));const e=Q();return V(t,(t=>{t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",s="";V(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:s+=(s.length?" ":"")+e)})),V(e,(function(t){s&&s.split(" ").forEach((e=>t.classList.remove(e))),i&&(t.className+=` ${i}`)})),t.delete(e)}})),e.length=0}}]}const Hr=["$provide",function(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw jr("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=x(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Mr}[(\\s|\\/)]`).test(n.toString()))throw n=null,jr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Mr)}return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(n,r,i,s)=>(r=r&&Lt(r),i=i&&Lt(i),e(n,r=r||i.parent(),i),t.push(n,"enter",Lr(s))),move:(n,r,i,s)=>(r=r&&Lt(r),i=i&&Lt(i),e(n,r=r||i.parent(),i),t.push(n,"move",Lr(s))),leave:(e,n)=>t.push(e,"leave",Lr(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=Lr(r)).addClass=Ir(r.addclass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=Lr(r)).removeClass=Ir(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=Lr(i)).addClass=Ir(i.addClass,n),i.removeClass=Ir(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=Lr(s)).from=s.from?j(s.from,n):n,s.to=s.to?j(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=Ir(s.tempClasses,i),t.push(e,"animate",s))}}]}];let Fr=null;function Br(t,e){const n=this;let{location:r}=window,{history:i}=window;const{setTimeout:s}=window,{clearTimeout:o}=window,a={},c=e(t);let l,u;n.$$completeOutstandingRequest=c.completeTask,n.$$incOutstandingRequestCount=c.incTaskCount,n.notifyWhenNoOutstandingRequests=c.notifyWhenNoPendingTasks;let h=r.href;const d=Lt(Array.from(window.document.getElementsByTagName("base")));let p=null;const f=function(){return i.state};y(),n.url=function(t,e,s){if(m(s)&&(s=null),r!==window.location&&(r=window.location),i!==window.history&&(i=window.history),t){const r=u===s;return t=Te(t).href,h===t&&r?n:(h=t,u=s,i[e?"replaceState":"pushState"](s,"",t),y(),n)}return function(t){return t.replace(/#$/,"")}(p||r.href)},n.state=function(){return l};const $=[];let g=!1;function v(){p=null,w()}function y(){l=f(),l=m(l)?null:l,J(l,Fr)&&(l=Fr),Fr=l,u=l}function w(){const t=u;y(),h===n.url()&&t===l||(h=n.url(),u=l,V($,(t=>{t(n.url(),l)})))}n.onUrlChange=function(t){return g||(Lt(window).on("popstate",v),Lt(window).on("hashchange",v),g=!0),$.push(t),t},n.$$applicationDestroyed=function(){Lt(window).off("hashchange popstate",v)},n.$$checkUrlChange=w,n.baseHref=function(){const t=d.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},n.defer=function(t,e,n){let r;return e=e||0,n=n||c.DEFAULT_TASK_TYPE,c.incTaskCount(n),r=s((()=>{delete a[r],c.completeTask(t,n)}),e),a[r]=n,r},n.defer.cancel=function(t){if(Object.prototype.hasOwnProperty.call(a,t)){const e=a[t];return delete a[t],o(t),c.completeTask((()=>{}),e),!0}return!1}}function zr(){this.$get=["$log","$$taskTrackerFactory",function(t,e){return new Br(t,e)}]}function Wr(){this.$get=["$$AnimateRunner",t=>function(e,n){let r,i=n||{};i.$$prepared||(i=structuredClone(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(i.from=null);const s=new t;return{start:o,end:o};function o(){return requestAnimationFrame((()=>{!function(){i.addClass&&(e[0].classList.add(i.addClass),i.addClass=null);i.removeClass&&(e[0].classList.remove(i.removeClass),i.removeClass=null);i.to&&(i.to=null)}(),r||s.complete(),r=!0})),s}}]}function Gr(t){const e=t[0]||{};let n={},r="";function i(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){let t,s,o,a,c;const l=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(l!==r)for(r=l,t=r.split("; "),n={},o=0;o<t.length;o++)s=t[o],a=s.indexOf("="),a>0&&(c=i(s.substring(0,a)),m(n[c])&&(n[c]=i(s.substring(a+1))));return n}}function Kr(){this.$get=Gr}function Jr(){this.$get=[function(){var t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]}function Zr(){this.$get=["$q","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r){function i(t){this.setHost(t);const i=e();this._doneCallbacks=[],this._tick=function(t){n()?function(t){r(t,0,!1)}(t):i(t)},this._state=0}return i.chain=function(t,e){let n=0;!function r(){if(n===t.length)return void e(!0);t[n]((t=>{!1!==t?(n++,r()):e(!1)}))}()},i.all=function(t,e){let n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}V(t,(t=>{t.done(i)}))},i.prototype={setHost(t){this.host=t||{}},done(t){2===this._state?t():this._doneCallbacks.push(t)},progress:()=>{},getPromise(){if(!this.promise){const e=this;this.promise=t(((t,n)=>{e.done((e=>{!1===e?n():t()}))}))}return this.promise},then(t,e){return this.getPromise().then(t,e)},catch(t){return this.getPromise().catch(t)},finally(t){return this.getPromise().finally(t)},pause(){this.host.pause&&this.host.pause()},resume(){this.host.resume&&this.host.resume()},end(){this.host.end&&this.host.end(),this._resolve(!0)},cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete(t){const e=this;0===e._state&&(e._state=1,e._tick((()=>{e._resolve(t)})))},_resolve(t){2!==this._state&&(V(this._doneCallbacks,(e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}},i}]}function Yr(){this.$get=function(){const t={};function e(e,n){if(e in t)throw mt("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);let r=0,i=j({},n,{id:e}),s=Q();const o=n&&n.capacity||Number.MAX_VALUE;let a=Q(),c=null,l=null;return t[e]={put(t,e){if(!m(e)){if(o<Number.MAX_VALUE){u(a[t]||(a[t]={key:t}))}return t in s||r++,s[t]=e,r>o&&this.remove(l.key),e}},get(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;u(e)}return s[t]},remove(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete a[t]}t in s&&(delete s[t],r--)},removeAll(){s=Q(),r=0,a=Q(),c=l=null},destroy(){s=null,i=null,a=null,delete t[e]},info:()=>j({},i,{size:r})};function u(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),c=t,c.n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){const e={};return V(t,((t,n)=>{e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function Qr(){this.$get=["$cacheFactory",t=>t("templates")]}function Xr(){this.$get=[function(){return Lt(window.document)}]}function ti(){this.$get=["$document","$rootScope",function(t,e){const n=t[0];let r=n&&n.hidden;function i(){r=n.hidden}return t.on("visibilitychange",i),e.$on("$destroy",(()=>{t.off("visibilitychange",i)})),function(){return r}}]}function ei(){this.$get=["$log",function(t){return function(){t.error.apply(t,arguments)}}]}function ni(){return function(t,e,n,r){if(!$(t)){if(null==t)return t;throw mt("filter")("notarray","Expected array but received: {0}",t)}let i,s;switch(r=r||"$",ii(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n,r){const i=v(t)&&n in t;let s;!0===e?e=J:x(e)||(e=function(t,e){return!m(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!F(t))&&(t=f(`${t}`),e=f(`${e}`),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?ri(s,t[n],e,n,!1):ri(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function ri(t,e,n,r,i,s){const o=ii(t),a=ii(e);if("string"===a&&"!"===e.charAt(0))return!ri(t,e.substring(1),n,r,i);if(E(t))return t.some((t=>ri(t,e,n,r,i)));switch(o){case"object":var c;if(i){for(c in t)if(c.charAt&&"$"!==c.charAt(0)&&ri(t[c],e,n,r,!0))return!0;return!s&&ri(t,e,n,r,!1)}if("object"===a){for(c in e){const i=e[c];if(x(i)||m(i))continue;const s=c===r;if(!ri(s?t:t[c],i,n,r,s,s))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function ii(t){return null===t?"null":typeof t}function si(){return function(t,e){return m(e)&&(e=2),it(t,e)}}function oi(){return function(t,e,n){return L(e=Math.abs(Number(e))===1/0?Number(e):I(e))?t:(w(t)&&(t=t.toString()),$(t)?(n=(n=!n||isNaN(n)?0:I(n))<0?Math.max(0,t.length+n):n,e>=0?ai(t,n,n+e):0===n?ai(t,e,t.length):ai(t,Math.max(0,n+e),n)):t)}}function ai(t,e,n){return y(t)?t.slice(e,n):[].slice.call(t,e,n)}function ci(t){return function(r,i,s,o){if(null==r)return r;if(!$(r))throw mt("orderBy")("notarray","Expected array but received: {0}",r);E(i)||(i=[i]),0===i.length&&(i=["+"]);const a=i.map((e=>{let n=1,r=U;if(x(e))r=e;else if(y(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant))){const t=r();r=function(e){return e[t]}}return{get:r,descending:n}}));const c=s?-1:1,l=x(o)?o:n,u=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map((r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(x(t.valueOf)&&e(t=t.valueOf()))return t;if(F(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)))}}));return u.sort((function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=u.map((t=>t.value))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,i=e.type;if(r===i){let i=t.value,s=e.value;"string"===r?(i=i.toLowerCase(),s=s.toLowerCase()):"object"===r&&(v(i)&&(i=t.index),v(s)&&(s=e.index)),i!==s&&(n=i<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function li(t){const e="Filter";function n(r,i){if(v(r)){const t={};return V(r,((e,r)=>{t[r]=n(r,e)})),t}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("filter",ni),n("json",si),n("limitTo",oi),n("orderBy",ci)}function ui(){let t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return di((t=>{e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return g(e)?(t=e,this):t}}function hi(){let t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return di((t=>{e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return g(e)?(t=e,this):t}}function di(t,e,n){const r=mt("$q");let i=0;const s=[];function o(){return new a}function a(){const t=this.promise=new c;this.resolve=function(e){h(t,e)},this.reject=function(e){p(t,e)},this.notify=function(e){$(t,e)}}function c(){this.$$state={status:0}}function l(){for(;!i&&s.length;){const t=s.shift();if(!pi(t)){fi(t);const n=`Possibly unhandled rejection: ${gt(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function u(r){!n||r.pending||2!==r.status||pi(r)||(0===i&&0===s.length&&t(l),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++i,t((()=>{!function(r){let s,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(let t=0,n=a.length;t<n;++t){fi(r),o=a[t][0],s=a[t][r.status];try{x(s)?h(o,s(r.value)):1===r.status?h(o,r.value):p(o,r.value)}catch(t){p(o,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--i,n&&0===i&&t(l)}}(r)})))}function h(t,e){t.$$state.status||(e===t?f(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):d(t,e))}function d(t,e){let n,r=!1;try{(v(e)||x(e))&&(n=e.then),x(n)?(t.$$state.status=-1,n.call(e,(function(e){if(r)return;r=!0,d(t,e)}),i,(function(e){$(t,e)}))):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,f(t,e))}}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(n,r){const i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((()=>{let t,n;for(let s=0,o=i.length;s<o;s++){n=i[s][0],t=i[s][3];try{$(n,x(t)?t(r):r)}catch(t){e(t)}}}))}function g(t){const e=new c;return p(e,t),e}function y(t,e,n){let r=null;try{x(n)&&(r=n())}catch(t){return g(t)}return T(r)?r.then((()=>e(t)),g):e(t)}function w(t,e,n,r){const i=new c;return h(i,t),i.then(e,n,r)}j(c.prototype,{then(t,e,n){if(m(t)&&m(e)&&m(n))return this;const r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r},catch(t){return this.then(null,t)},finally(t,e){return this.then((e=>y(e,b,t)),(e=>y(e,g,t)),e)}});let b=w;function S(t){if(!x(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new c;return t((function(t){h(e,t)}),(function(t){p(e,t)})),e}return S.prototype=c.prototype,S.defer=o,S.reject=g,S.when=w,S.resolve=b,S.all=function(t){const e=new c;let n=0;const r=E(t)?[]:{};return V(t,((t,i)=>{n++,w(t).then((t=>{r[i]=t,--n||h(e,r)}),(t=>{p(e,t)}))})),0===n&&h(e,r),e},S.race=function(t){const e=o();return V(t,(t=>{w(t).then(e.resolve,e.reject)})),e.promise},S}function pi(t){return!!t.pur}function fi(t){t.pur=!0}function $i(t){t.$$state&&fi(t.$$state)}Gr.$inject=["$document"],ci.$inject=["$parse"],li.$inject=["$provide"];const mi=mt("$interval");function gi(){this.$get=["$$intervalFactory",function(t){const e={},n=function(t){window.clearInterval(t),delete e[t]},r=t((function(t,n,r){const i=window.setInterval(t,n);return e[i]=r,i}),n);return r.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw mi("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!Object.prototype.hasOwnProperty.call(e,t.$$intervalId))return!1;const r=t.$$intervalId,i=e[r];return $i(i.promise),i.reject("canceled"),n(r),!0},r}]}const vi=mt("$interpolate");function yi(){let t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){const s=t.length,o=e.length,a=new RegExp(t.replace(/./g,l),"g"),c=new RegExp(e.replace(/./g,l),"g");function l(t){return`\\\\\\${t}`}function u(n){return n.replace(a,t).replace(c,e)}function h(t,e,n,r){const i=t.$watch((t=>(i(),r(t))),e,n);return i}function d(a,c,l,d){const p=l===i.URL||l===i.MEDIA_URL;if(!a.length||-1===a.indexOf(t)){if(c)return;let t=u(a);p&&(t=i.getTrusted(l,t));const e=H(t);return e.exp=a,e.expressions=[],e.$$watchDelegate=h,e}let f,$;d=!!d;let v=0;const y=[];let w;const b=a.length;let E;const C=[],x=[];let S;for(;v<b;){if(-1===(f=a.indexOf(t,v))||-1===($=a.indexOf(e,f+s))){v!==b&&C.push(u(a.substring(v)));break}v!==f&&C.push(u(a.substring(v,f))),E=a.substring(f+s,$),y.push(E),v=$+o,x.push(C.length),C.push("")}S=1===C.length&&1===x.length;const O=p&&S?void 0:function(t){try{return t=l&&!p?i.getTrusted(l,t):i.valueOf(t),d&&!g(t)?t:X(t)}catch(t){r(vi.interr(a,t))}};if(w=y.map((t=>n(t,O))),!c||y.length){const t=function(t){for(let e=0,n=y.length;e<n;e++){if(d&&m(t[e]))return;C[x[e]]=t[e]}return p?i.getTrusted(l,S?C[0]:C.join("")):(l&&C.length>1&&vi.throwNoconcat(a),C.join(""))};return j((e=>{let n=0;const i=y.length,s=new Array(i);try{for(;n<i;n++)s[n]=w[n](e);return t(s)}catch(t){r(vi.interr(a,t))}}),{exp:a,expressions:y,$$watchDelegate(e,n){let r;return e.$watchGroup(w,(function(i,s){const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return d.startSymbol=function(){return t},d.endSymbol=function(){return e},d}]}function wi(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,s){return function(o,a,c,l){const u=arguments.length>4,h=u?et(arguments,4):[];let d=0;const p=g(l)&&!l,f=(p?n:e).defer(),{promise:$}=f;function m(){u?o.apply(null,h):o(d)}return c=g(c)?c:0,$.$$intervalId=i((function(){p?t.defer(m):r.$evalAsync(m),f.notify(d++),c>0&&d>=c&&(f.resolve(d),s($.$$intervalId)),p||r.$apply()}),a,f,p),$}}}]}vi.throwNoconcat=function(t){throw vi("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)},vi.interr=function(t,e){throw vi("interr","Can't interpolate: {0}\n{1}",t,e.toString())};const bi="application/json",Ei={"Content-Type":`${bi};charset=utf-8`},Ci=/^\[|^\{(?!\{)/,xi={"[":/]$/,"{":/}$/},Si=/^\)]\}',?\n/,Oi=mt("$http");function ki(t){return v(t)?b(t)?t.toISOString():it(t):t}function _i(){this.$get=function(){return function(t){if(!t)return"";const e=[];return N(t,((t,n)=>{null===t||m(t)||x(t)||(E(t)?V(t,(t=>{e.push(`${ut(n)}=${ut(ki(t))}`)})):e.push(`${ut(n)}=${ut(ki(t))}`))})),e.join("&")}}}function Ti(){this.$get=function(){return function(t){if(!t)return"";const e=[];return function t(n,r,i){E(n)?V(n,((e,n)=>{t(e,`${r}[${v(e)?n:""}]`)})):v(n)&&!b(n)?N(n,((e,n)=>{t(e,r+(i?"":"[")+n+(i?"":"]"))})):(x(n)&&(n=n()),e.push(`${ut(r)}=${null==n?"":ut(ki(n))}`))}(t,"",!0),e.join("&")}}}function Ai(t,e){if(y(t)){const n=t.replace(Si,"").trim();if(n){const r=e("Content-Type"),i=r&&0===r.indexOf(bi);if(i||function(t){const e=t.match(Ci);return e&&xi[e[0]].test(t)}(n))try{t=st(n)}catch(e){if(!i)return t;throw Oi("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}return t}function Ri(t){const e=Q();let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return y(t)?V(t.split("\n"),(t=>{n=t.indexOf(":"),r(f(A(t.substr(0,n))),A(t.substr(n+1)))})):v(t)&&V(t,((t,e)=>{r(f(e),A(t))})),e}function Vi(t){let e;return function(n){if(e||(e=Ri(t)),n){let t=e[f(n)];return void 0===t&&(t=null),t}return e}}function Ni(t,e,n,r){return x(r)?r(t,e,n):(V(r,(r=>{t=r(t,e,n)})),t)}function Pi(t){return t>=200&&t<300}function Di(){const t=this.defaults={transformResponse:[Ai],transformRequest:[function(t){return!v(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:it(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:dt(Ei),put:dt(Ei),patch:dt(Ei)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return g(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l,u,h){const d=a("$http");t.paramSerializer=y(t.paramSerializer)?u.get(t.paramSerializer):t.paramSerializer;const p=[];V(n,(t=>{p.unshift(y(t)?u.get(t):u.invoke(t))}));const $=function(t){const e=[ke].concat(t.map(Te));return function(t){const n=Te(t);return e.some(Re.bind(null,n))}}(r);function w(n){if(!v(n))throw mt("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!y(h.valueOf(n.url)))throw mt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=j({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var a;r.headers=function(e){let n=t.headers,r=j({},e.headers);return n=j({},n.common,n[f(e.method)]),Object.keys(n).forEach((t=>{r[f(t)]||(r[t]=n[t])})),function(t,e){let n;const r={};return V(t,((t,i)=>{x(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t})),r}(r,dt(e))}(n),r.method=y(a=r.method)?a.toUpperCase():a,r.paramSerializer=y(r.paramSerializer)?u.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const b=[],C=[];let S=l.resolve(r);return V(p,(t=>{(t.request||t.requestError)&&b.unshift(t.request,t.requestError),(t.response||t.responseError)&&C.push(t.response,t.responseError)})),S=O(S,b),S=S.then((function(n){const{headers:r}=n,i=Ni(n.data,Vi(r),void 0,n.transformRequest);m(i)&&V(r,((t,e)=>{"content-type"===f(e)&&delete r[e]}));m(n.withCredentials)&&!m(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=l.defer(),{promise:a}=i;let u,p;const f=n.headers;let{url:b}=n;y(b)||(b=h.valueOf(b));b=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(b,n.paramSerializer(n.params)),w.pendingRequests.push(n),a.then(k,k),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(u=v(n.cache)?n.cache:v(t.cache)?t.cache:d);u&&(p=u.get(b),g(p)?T(p)?p.then(O,O):E(p)?S(p[1],p[0],dt(p[2]),p[3],p[4]):S(p,200,{},"OK","complete"):u.put(b,a));if(m(p)){const e=$(n.url)?o()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&(f[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,b,r,x,f,n.timeout,n.withCredentials,n.responseType,C(n.eventHandlers),C(n.uploadEventHandlers))}return a;function C(t){if(t){const n={};return V(t,((t,r)=>{n[r]=function(n){function r(){t(n)}e?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),n}}function x(t,n,r,i,s){function o(){S(n,t,r,i,s)}u&&(Pi(t)?u.put(b,[t,n,Ri(r),i,s]):u.remove(b)),e?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function S(t,e,r,s,o){(Pi(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:Vi(r),config:n,statusText:s,xhrStatus:o})}function O(t){S(t.data,t.status,dt(t.headers()),t.statusText,t.xhrStatus)}function k(){const t=w.pendingRequests.indexOf(n);-1!==t&&w.pendingRequests.splice(t,1)}}(n,i).then(k,k)})),S=O(S,C),S=S.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),S;function O(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function k(t){const e=j({},t);return e.data=Ni(t.data,t.headers,t.status,r.transformResponse),Pi(t.status)?e:l.reject(e)}}return w.pendingRequests=[],function(...t){t.forEach((t=>{w[t]=function(e,n){return w(j({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{w[t]=function(e,n,r){return w(j({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),w.defaults=t,w}]}function ji(){this.$get=()=>function(){return new window.XMLHttpRequest}}function Mi(){this.$get=["$browser","$xhrFactory",function(t,e){return function(t,e,n){return function(r,i,s,o,a,c,l,u,h,d){i=i||t.url();let p=e(r,i),f=!1;if(p.open(r,i,!0),V(a,((t,e)=>{g(t)&&p.setRequestHeader(e,t)})),p.onload=function(){const t=p.statusText||"",e="response"in p?p.response:p.responseText;let n=p.status;0===n&&(n=e?200:"file"===Te(i).protocol?404:0),y(o,n,e,p.getAllResponseHeaders(),t,"complete")},p.onerror=function(){y(o,-1,null,null,"","error")},p.ontimeout=function(){y(o,-1,null,null,"","timeout")},p.onabort=function(){y(o,-1,null,null,"",f?"timeout":"abort")},V(h,((t,e)=>{p.addEventListener(e,t)})),V(d,((t,e)=>{p.upload.addEventListener(e,t)})),l&&(p.withCredentials=!0),u)try{p.responseType=u}catch(t){if("json"!==u)throw t}if(p.send(m(s)?null:s),c>0)var $=n((()=>{v("timeout")}),c);else T(c)&&c.then((()=>{v(g(c.$$timeoutId)?"timeout":"abort")}));function v(t){f="timeout"===t,p&&p.abort()}function y(t,e,r,i,s,o){g($)&&n.cancel($),p=null,t(e,r,i,s,o)}}}(t,e,t.defer)}]}const Ii=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Li={http:80,https:443,ftp:21},qi=mt("$location");function Ui(t,e,n){const r=function(t){const e=[];return V(t,((t,n)=>{E(t)?V(t,(t=>{e.push(ut(n,!0)+(!0===t?"":`=${ut(t,!0)}`))})):e.push(ut(n,!0)+(!0===t?"":`=${ut(t,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${lt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=lt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?`?${r}`:"")+i}function Hi(t,e){const n=Te(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=I(n.port)||Li[n.protocol]||null}const Fi=/^\s*[\\/]{2,}/;function Bi(t,e,n){if(Fi.test(t))throw qi("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Te(t),s=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,n),e.$$search=at(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function zi(t,e){return t.slice(0,e.length)===e}function Wi(t,e){if(zi(e,t))return e.substr(t.length)}function Gi(t){const e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function Ki(t,e,n){this.$$html5=!0,n=n||"",Hi(t,this),this.$$parse=function(t){const n=Wi(e,t);if(!y(n))throw qi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Bi(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;let s,o,a;return g(s=Wi(t,r))?(o=s,a=n&&g(s=Wi(n,s))?e+(Wi("/",s)||s):t+o):g(s=Wi(e,r))?a=e+s:e===`${r}/`&&(a=e),a&&this.$$parse(a),!!a}}function Ji(t,e,n){Hi(t,this),this.$$parse=function(r){const i=Wi(t,r)||Wi(e,r);let s;m(i)||"#"!==i.charAt(0)?this.$$html5?s=i:(s="",m(i)&&(t=r,this.replace())):(s=Wi(n,i),m(s)&&(s=i)),Bi(s,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;zi(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return i=r.exec(t),i?i[1]:t}(this.$$path,s,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e){return Gi(t)===Gi(e)&&(this.$$parse(e),!0)}}const Zi={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose(){this.$$url=Ui(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:Yi("$$absUrl"),url(t){if(m(t))return this.$$url;const e=Ii.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Yi("$$protocol"),host:Yi("$$host"),port:Yi("$$port"),path:Qi("$$path",(t=>"/"===(t=null!==t?t.toString():"").charAt(0)?t:`/${t}`)),search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(y(t)||w(t))t=t.toString(),this.$$search=at(t);else{if(!v(t))throw qi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");V(t=structuredClone(t,{}),((e,n)=>{null==e&&delete t[n]})),this.$$search=t}break;default:m(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Qi("$$hash",(t=>null!==t?t.toString():"")),replace(){return this.$$replace=!0,this}};function Yi(t){return function(){return this[t]}}function Qi(t,e){return function(n){return m(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Xi(){let t="!";const e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return g(e)?(t=e,this):t},this.html5Mode=function(t){return _(t)?(e.enabled=t,this):v(t)?(_(t.enabled)&&(e.enabled=t.enabled),_(t.requireBase)&&(e.requireBase=t.requireBase),(_(t.rewriteLinks)||y(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$rootElement",function(n,r,i){let s,o;const a=r.baseHref(),c=r.url();let l;if(e.enabled){if(!a&&e.requireBase)throw qi("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(u=c).substring(0,u.indexOf("/",u.indexOf("//")+2))+(a||"/"),o=Ki}else l=Gi(c),o=Ji;var u;const h=function(t){return t.substr(0,Gi(t).lastIndexOf("/")+1)}(l);s=new o(l,h,`#${t}`),s.$$parseLinkUrl(c,c),s.$$state=r.state();const d=/^\s*(javascript|mailto):/i;function p(t,e,n){const i=s.url(),o=s.$$state;try{r.url(t,e,n),s.$$state=r.state()}catch(t){throw s.url(i),s.$$state=o,t}}i.on("click",(t=>{const{rewriteLinks:o}=e;if(!o||t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let a=Lt(t.target);for(;"a"!==a[0].nodeName.toLowerCase();)if(a[0]===i[0]||!(a=a.parent())[0])return;if(y(o)&&m(a.attr(o)))return;let c=a[0].href;const l=a.attr("href")||a.attr("xlink:href");v(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=Te(c.animVal).href),d.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(c,l)&&(t.preventDefault(),s.absUrl()!==r.url()&&n.$apply())})),s.absUrl()!==c&&r.url(s.absUrl(),!0);let f=!0;return r.onUrlChange(((t,e)=>{zi(t,h)?(n.$evalAsync((()=>{const r=s.absUrl(),i=s.$$state;let o;s.$$parse(t),s.$$state=e,o=n.$broadcast("$locationChangeStart",t,r,e,i).defaultPrevented,s.absUrl()===t&&(o?(s.$$parse(r),s.$$state=i,p(r,!1,i)):(f=!1,$(r,i)))})),n.$$phase||n.$digest()):window.location.href=t})),n.$watch((()=>{if(f||s.$$urlUpdatedByLocation){s.$$urlUpdatedByLocation=!1;const i=r.url(),o=s.absUrl(),a=r.state(),c=s.$$replace,l=!((t=i)===(e=o)||Te(t).href===Te(e).href)||s.$$html5&&a!==s.$$state;(f||l)&&(f=!1,n.$evalAsync((()=>{const t=s.absUrl(),{defaultPrevented:e}=n.$broadcast("$locationChangeStart",t,i,s.$$state,a);s.absUrl()===t&&(e?(s.$$parse(i),s.$$state=a):(l&&p(t,c,a===s.$$state?null:s.$$state),$(i,a)))})))}var t,e;s.$$replace=!1})),s;function $(t,e){n.$broadcast("$locationChangeSuccess",s.absUrl(),t,s.$$state,e)}}]}V([function(t,e,n){this.$$html5=!0,Ji.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;let s,o;return t===Gi(r)?s=r:(o=Wi(e,r))?s=t+n+o:e===`${r}/`&&(s=e),s&&this.$$parse(s),!!s},this.$$normalizeUrl=function(e){return t+n+e}},Ji,Ki],(t=>{t.prototype=Object.create(Zi),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ki||!this.$$html5)throw qi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=m(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));class ts{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return C(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map((t=>this.formatError(t)));return n.apply(e,r)}}$get(){return{log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()}}}const es=mt("$parse"),ns={}.constructor.prototype.valueOf;function rs(t){return`${t}`}const is=Q();"+ - * / % === !== == != < > <= >= && || ! = |".split(" ").forEach((t=>is[t]=!0));const ss={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},os=function(t){this.options=t};os.prototype={constructor:os,lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=is[t],i=is[e],s=is[n];if(r||i||s){const r=s?n:i?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:(t,e)=>-1!==e.indexOf(t),peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:t=>t>="0"&&t<="9"&&"string"==typeof t,isWhitespace:t=>" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t,isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:t=>t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t,isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue(t){return this.isValidIdentifierStart(t)||this.isNumber(t)},codePointAt:t=>1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888,peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)},throwError(t,e,n){n=n||this.index;const r=g(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw es("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=f(this.text.charAt(this.index));if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString(t){const e=this.index;this.index++;let n="",r=t,i=!1;for(;this.index<this.text.length;){const s=this.text.charAt(this.index);if(r+=s,i){if("u"===s){const t=this.text.substring(this.index+1,this.index+5);t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,n+=String.fromCharCode(parseInt(t,16))}else{n+=ss[s]||s}i=!1}else if("\\"===s)i=!0;else{if(s===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=s}this.index++}this.throwError("Unterminated quote",e)}};const as={Program:"Program",ExpressionStatement:"ExpressionStatement",AssignmentExpression:"AssignmentExpression",ConditionalExpression:"ConditionalExpression",LogicalExpression:"LogicalExpression",BinaryExpression:"BinaryExpression",UnaryExpression:"UnaryExpression",CallExpression:"CallExpression",MemberExpression:"MemberExpression",Identifier:"Identifier",Literal:"Literal",ArrayExpression:"ArrayExpression",Property:"Property",ObjectExpression:"ObjectExpression",ThisExpression:"ThisExpression",LocalsExpression:"LocalsExpression",NGValueParameter:"NGValueParameter"};function cs(t,e){this.lexer=t,this.options=e}function ls(t,e){return void 0!==t?t:e}function us(t,e){return void 0===t?e:void 0===e?t:t+e}cs.prototype={ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:as.Program,body:t}},expressionStatement(){return{type:as.ExpressionStatement,expression:this.filterChain()}},filterChain(){let t=this.expression();for(;this.expect("|");)t=this.filter(t);return t},expression(){return this.assignment()},assignment(){let t=this.ternary();if(this.expect("=")){if(!$s(t))throw es("lval","Trying to assign a value to a non l-value");t={type:as.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.expression(),this.consume(":"))?(n=this.expression(),{type:as.ConditionalExpression,test:t,alternate:e,consequent:n}):t},logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:as.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:as.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary(){let t;return(t=this.expect("+","-","!"))?{type:as.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():Object.prototype.hasOwnProperty.call(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):Object.prototype.hasOwnProperty.call(this.options.literals,this.peek().text)?t={type:as.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:as.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:as.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:as.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter(t){const e=[t],n={type:as.CallExpression,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.expression());return n},parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:as.Identifier,name:t.text}},constant(){return{type:as.Literal,value:this.consume().value}},arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:as.ArrayExpression,elements:t}},object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:as.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:as.ObjectExpression,properties:t}},throwError(t,e){throw es("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume(t){if(0===this.tokens.length)throw es("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);return e||this.throwError(`is unexpected, expecting [${t}]`,this.peek()),e},peekToken(){if(0===this.tokens.length)throw es("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead(t,e,n,r,i){if(this.tokens.length>t){const s=this.tokens[t],o=s.text;if(o===e||o===n||o===r||o===i||!e&&!n&&!r&&!i)return s}return!1},expect(t,e,n,r){const i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:as.ThisExpression},$locals:{type:as.LocalsExpression}}};const hs=1,ds=2;function ps(t,e,n){let r,i,s;const o=t.isPure=function(t,e){switch(t.type){case as.MemberExpression:if(t.computed)return!1;break;case as.UnaryExpression:return hs;case as.BinaryExpression:return"+"!==t.operator&&hs;case as.CallExpression:return!1}return void 0===e?ds:e}(t,n);switch(t.type){case as.Program:r=!0,V(t.body,(t=>{ps(t.expression,e,o),r=r&&t.expression.constant})),t.constant=r;break;case as.Literal:t.constant=!0,t.toWatch=[];break;case as.UnaryExpression:ps(t.argument,e,o),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case as.BinaryExpression:ps(t.left,e,o),ps(t.right,e,o),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case as.LogicalExpression:ps(t.left,e,o),ps(t.right,e,o),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case as.ConditionalExpression:ps(t.test,e,o),ps(t.alternate,e,o),ps(t.consequent,e,o),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case as.Identifier:t.constant=!1,t.toWatch=[t];break;case as.MemberExpression:ps(t.object,e,o),t.computed&&ps(t.property,e,o),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case as.CallExpression:s=!!t.filter&&function(t,e){return!t(e).$stateful}(e,t.callee.name),r=s,i=[],V(t.arguments,(t=>{ps(t,e,o),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=s?i:[t];break;case as.AssignmentExpression:ps(t.left,e,o),ps(t.right,e,o),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case as.ArrayExpression:r=!0,i=[],V(t.elements,(t=>{ps(t,e,o),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=i;break;case as.ObjectExpression:r=!0,i=[],V(t.properties,(t=>{ps(t.value,e,o),r=r&&t.value.constant,i.push.apply(i,t.value.toWatch),t.computed&&(ps(t.key,e,!1),r=r&&t.key.constant,i.push.apply(i,t.key.toWatch))})),t.constant=r,t.toWatch=i;break;case as.ThisExpression:case as.LocalsExpression:t.constant=!1,t.toWatch=[]}}function fs(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}function $s(t){return t.type===as.Identifier||t.type===as.MemberExpression}function ms(t){if(1===t.body.length&&$s(t.body[0].expression))return{type:as.AssignmentExpression,left:t.body[0].expression,right:{type:as.NGValueParameter},operator:"="}}function gs(t){this.$filter=t}function vs(t){this.$filter=t}gs.prototype={compile(t){const e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},ps(t,e.$filter);let n,r="";if(this.stage="assign",n=ms(t)){this.state.computing="assign";const t=this.nextId();this.recurse(n,t),this.return_(t),r=`fn.assign=${this.generateFunction("assign","s,v,l")}`}const i=fs(t.body);e.stage="inputs",V(i,((t,n)=>{const r=`fn${n}`;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;const i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push({name:r,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);const s=`\n${this.filterPrefix()}let fn=${this.generateFunction("fn","s,l,a,i")}${r}${this.watchFns()}return fn;`,o=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,rs,ls,us);return this.state=this.stage=void 0,o},watchFns(){const t=[],{inputs:e}=this.state,n=this;return V(e,(e=>{t.push(`let ${e.name}=${n.generateFunction(e.name,"s")}`),e.isPure&&t.push(e.name,`.isPure=${JSON.stringify(e.isPure)};`)})),e.length&&t.push(`fn.inputs=[${e.map((t=>t.name)).join(",")}];`),t.join("")},generateFunction(t,e){return`function(${e}){${this.varsPrefix(t)}${this.body(t)}};`},filterPrefix(){const t=[],e=this;return V(this.state.filters,((n,r)=>{t.push(`${n}=$filter(${e.escape(r)})`)})),t.length?`let ${t.join(",")};`:""},varsPrefix(t){return this.state[t].vars.length?`let ${this.state[t].vars.join(",")};`:""},body(t){return this.state[t].body.join("")},recurse(t,e,n,r,i,s){let o,a;const c=this;let l,u,h;if(r=r||(()=>{}),!s&&g(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case as.Program:V(t.body,((e,n)=>{c.recurse(e.expression,void 0,void 0,(t=>{a=t})),n!==t.body.length-1?c.current().body.push(a,";"):c.return_(a)}));break;case as.Literal:u=this.escape(t.value),this.assign(e,u),r(e||u);break;case as.UnaryExpression:this.recurse(t.argument,void 0,void 0,(t=>{a=t})),u=`${t.operator}(${this.ifDefined(a,0)})`,this.assign(e,u),r(u);break;case as.BinaryExpression:this.recurse(t.left,void 0,void 0,(t=>{o=t})),this.recurse(t.right,void 0,void 0,(t=>{a=t})),u="+"===t.operator?this.plus(o,a):"-"===t.operator?this.ifDefined(o,0)+t.operator+this.ifDefined(a,0):`(${o})${t.operator}(${a})`,this.assign(e,u),r(u);break;case as.LogicalExpression:e=e||this.nextId(),c.recurse(t.left,e),c.if_("&&"===t.operator?e:c.not(e),c.lazyRecurse(t.right,e)),r(e);break;case as.ConditionalExpression:e=e||this.nextId(),c.recurse(t.test,e),c.if_(e,c.lazyRecurse(t.alternate,e),c.lazyRecurse(t.consequent,e)),r(e);break;case as.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===c.stage?"s":this.assign(this.nextId(),`${this.getHasOwnProperty("l",t.name)}?l:s`),n.computed=!1,n.name=t.name),c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",t.name)),(()=>{c.if_("inputs"===c.stage||"s",(()=>{i&&1!==i&&c.if_(c.isNull(c.nonComputedMember("s",t.name)),c.lazyAssign(c.nonComputedMember("s",t.name),"{}")),c.assign(e,c.nonComputedMember("s",t.name))}))}),e&&c.lazyAssign(e,c.nonComputedMember("l",t.name))),r(e);break;case as.MemberExpression:o=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),c.recurse(t.object,o,void 0,(()=>{c.if_(c.notNull(o),(()=>{t.computed?(a=c.nextId(),c.recurse(t.property,a),c.getStringValue(a),i&&1!==i&&c.if_(c.not(c.computedMember(o,a)),c.lazyAssign(c.computedMember(o,a),"{}")),u=c.computedMember(o,a),c.assign(e,u),n&&(n.computed=!0,n.name=a)):(i&&1!==i&&c.if_(c.isNull(c.nonComputedMember(o,t.property.name)),c.lazyAssign(c.nonComputedMember(o,t.property.name),"{}")),u=c.nonComputedMember(o,t.property.name),c.assign(e,u),n&&(n.computed=!1,n.name=t.property.name))}),(()=>{c.assign(e,"undefined")})),r(e)}),!!i);break;case as.CallExpression:e=e||this.nextId(),t.filter?(a=c.filter(t.callee.name),l=[],V(t.arguments,(t=>{const e=c.nextId();c.recurse(t,e),l.push(e)})),u=`${a}(${l.join(",")})`,c.assign(e,u),r(e)):(a=c.nextId(),o={},l=[],c.recurse(t.callee,a,o,(()=>{c.if_(c.notNull(a),(()=>{V(t.arguments,(e=>{c.recurse(e,t.constant?void 0:c.nextId(),void 0,(t=>{l.push(t)}))})),u=o.name?`${c.member(o.context,o.name,o.computed)}(${l.join(",")})`:`${a}(${l.join(",")})`,c.assign(e,u)}),(()=>{c.assign(e,"undefined")})),r(e)})));break;case as.AssignmentExpression:a=this.nextId(),o={},this.recurse(t.left,void 0,o,(()=>{c.if_(c.notNull(o.context),(()=>{c.recurse(t.right,a),u=c.member(o.context,o.name,o.computed)+t.operator+a,c.assign(e,u),r(e||u)}))}),1);break;case as.ArrayExpression:l=[],V(t.elements,(e=>{c.recurse(e,t.constant?void 0:c.nextId(),void 0,(t=>{l.push(t)}))})),u=`[${l.join(",")}]`,this.assign(e,u),r(e||u);break;case as.ObjectExpression:l=[],h=!1,V(t.properties,(t=>{t.computed&&(h=!0)})),h?(e=e||this.nextId(),this.assign(e,"{}"),V(t.properties,(t=>{t.computed?(o=c.nextId(),c.recurse(t.key,o)):o=t.key.type===as.Identifier?t.key.name:`${t.key.value}`,a=c.nextId(),c.recurse(t.value,a),c.assign(c.member(e,o,t.computed),a)}))):(V(t.properties,(e=>{c.recurse(e.value,t.constant?void 0:c.nextId(),void 0,(t=>{l.push(`${c.escape(e.key.type===as.Identifier?e.key.name:`${e.key.value}`)}:${t}`)}))})),u=`{${l.join(",")}}`,this.assign(e,u)),r(e||u);break;case as.ThisExpression:this.assign(e,"s"),r(e||"s");break;case as.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case as.NGValueParameter:this.assign(e,"v"),r(e||"v")}},getHasOwnProperty(t,e){const n=`${t}.${e}`,{own:r}=this.current();return Object.prototype.hasOwnProperty.call(r,n)||(r[n]=this.nextId(!1,`${t}&&(${this.escape(e)} in ${t})`)),r[n]},assign(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter(t){return Object.prototype.hasOwnProperty.call(this.state.filters,t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined(t,e){return`ifDefined(${t},${this.escape(e)})`},plus:(t,e)=>`plus(${t},${e})`,return_(t){this.current().body.push("return ",t,";")},if_(t,e,n){if(!0===t)e();else{const{body:r}=this.current();r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:t=>`!(${t})`,isNull:t=>`${t}==null`,notNull:t=>`${t}!=null`,nonComputedMember(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?`${t}.${e}`:`${t}["${e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)}"]`},computedMember:(t,e)=>`${t}[${e}]`,member(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue(t){this.assign(t,`getStringValue(${t})`)},lazyRecurse(t,e,n,r,i,s){const o=this;return function(){o.recurse(t,e,n,r,i,s)}},lazyAssign(t,e){const n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:t=>`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`,escape(t){if(y(t))return`'${t.replace(this.stringEscapeRegex,this.stringEscapeFn)}'`;if(w(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw es("esc","IMPOSSIBLE")},nextId(t,e){const n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?`=${e}`:"")),n},current(){return this.state[this.state.computing]}},vs.prototype={compile(t){const e=this;let n,r;ps(t,e.$filter),(n=ms(t))&&(r=this.recurse(n));const i=fs(t.body);let s;i&&(s=[],V(i,((t,n)=>{const r=e.recurse(t);r.isPure=t.isPure,t.input=r,s.push(r),t.watchId=n})));const o=[];V(t.body,(t=>{o.push(e.recurse(t.expression))}));const a=0===t.body.length?()=>{}:1===t.body.length?o[0]:function(t,e){let n;return V(o,(r=>{n=r(t,e)})),n};return r&&(a.assign=function(t,e,n){return r(t,n,e)}),s&&(a.inputs=s),a},recurse(t,e,n){let r,i;const s=this;let o;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case as.Literal:return this.value(t.value,e);case as.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case as.BinaryExpression:case as.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case as.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case as.Identifier:return s.identifier(t.name,e,n);case as.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case as.CallExpression:return o=[],V(t.arguments,(t=>{o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,s){const a=[];for(let e=0;e<o.length;++e)a.push(o[e](t,n,r,s));const c=i.apply(void 0,a,s);return e?{context:void 0,name:void 0,value:c}:c}:function(t,n,r,s){const a=i(t,n,r,s);let c;if(null!=a.value){const e=[];for(let i=0;i<o.length;++i)e.push(o[i](t,n,r,s));c=a.value.apply(a.context,e)}return e?{value:c}:c};case as.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,s,o){const a=r(t,n,s,o),c=i(t,n,s,o);return a.context[a.name]=c,e?{value:c}:c};case as.ArrayExpression:return o=[],V(t.elements,(t=>{o.push(s.recurse(t))})),function(t,n,r,i){const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r,i));return e?{value:s}:s};case as.ObjectExpression:return o=[],V(t.properties,(t=>{t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===as.Identifier?t.key.name:`${t.key.value}`,computed:!1,value:s.recurse(t.value)})})),function(t,n,r,i){const s={};for(let e=0;e<o.length;++e)o[e].computed?s[o[e].key(t,n,r,i)]=o[e].value(t,n,r,i):s[o[e].key]=o[e].value(t,n,r,i);return e?{value:s}:s};case as.ThisExpression:return function(t){return e?{value:t}:t};case as.LocalsExpression:return function(t,n){return e?{value:n}:n};case as.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,s){let o=t(n,r,i,s);return o=g(o)?+o:0,e?{value:o}:o}},"unary-":function(t,e){return function(n,r,i,s){let o=t(n,r,i,s);return o=g(o)?-o:-0,e?{value:o}:o}},"unary!":function(t,e){return function(n,r,i,s){const o=!t(n,r,i,s);return e?{value:o}:o}},"binary+":function(t,e,n){return function(r,i,s,o){const a=us(t(r,i,s,o),e(r,i,s,o));return n?{value:a}:a}},"binary-":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o),c=e(r,i,s,o),l=(g(a)?a:0)-(g(c)?c:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)*e(r,i,s,o);return n?{value:a}:a}},"binary/":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)/e(r,i,s,o);return n?{value:a}:a}},"binary%":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)%e(r,i,s,o);return n?{value:a}:a}},"binary===":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)===e(r,i,s,o);return n?{value:a}:a}},"binary!==":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)!==e(r,i,s,o);return n?{value:a}:a}},"binary==":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)==e(r,i,s,o);return n?{value:a}:a}},"binary!=":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)!=e(r,i,s,o);return n?{value:a}:a}},"binary<":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)<e(r,i,s,o);return n?{value:a}:a}},"binary>":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)>e(r,i,s,o);return n?{value:a}:a}},"binary<=":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)<=e(r,i,s,o);return n?{value:a}:a}},"binary>=":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)>=e(r,i,s,o);return n?{value:a}:a}},"binary&&":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)&&e(r,i,s,o);return n?{value:a}:a}},"binary||":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)||e(r,i,s,o);return n?{value:a}:a}},"ternary?:":function(t,e,n,r){return function(i,s,o,a){const c=t(i,s,o,a)?e(i,s,o,a):n(i,s,o,a);return r?{value:c}:c}},value:(t,e)=>function(){return e?{context:void 0,name:void 0,value:t}:t},identifier:(t,e,n)=>function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o},computedMember:(t,e,n,r)=>function(i,s,o,a){const c=t(i,s,o,a);let l,u;return null!=c&&(l=e(i,s,o,a),l=rs(l),r&&1!==r&&c&&!c[l]&&(c[l]={}),u=c[l]),n?{context:c,name:l,value:u}:u},nonComputedMember:(t,e,n,r)=>function(i,s,o,a){const c=t(i,s,o,a);r&&1!==r&&c&&null==c[e]&&(c[e]={});const l=null!=c?c[e]:void 0;return n?{context:c,name:e,value:l}:l},inputs:(t,e)=>function(n,r,i,s){return s?s[e]:t(n,r,i)}};class ys{constructor(t,e,n){this.ast=new cs(t,n),this.astCompiler=n.csp?new vs(e):new gs(e)}parse(t){const{ast:e,oneTime:n}=this.getAst(t),r=this.astCompiler.compile(e);return r.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===as.Literal||t.body[0].expression.type===as.ArrayExpression||t.body[0].expression.type===as.ObjectExpression)}(e),r.constant=function(t){return t.constant}(e),r.oneTime=n,r}getAst(t){let e=!1;return(t=t.trim()).startsWith("::")&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}}function ws(t){return x(t.valueOf)?t.valueOf():ns.call(t)}function bs(){const t=Q(),e={true:!0,false:!1,null:null,undefined:void 0};var n,r;this.addLiteral=function(t,n){e[t]=n},this.setIdentifierFns=function(t,e){return n=t,r=e,this},this.$get=["$filter",function(i){var s={csp:function(){if(!g(Z.rules)){const t=window.document.querySelector("[ng-csp]")||window.document.querySelector("[data-ng-csp]");if(t){const e=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Z.rules={noUnsafeEval:!e||-1!==e.indexOf("no-unsafe-eval"),noInlineStyle:!e||-1!==e.indexOf("no-inline-style")}}else Z.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return Z.rules}().noUnsafeEval,literals:structuredClone(e),isIdentifierStart:x(n)&&n,isIdentifierContinue:x(r)&&r};return o.$$getAst=function(t){var e=new os(s);return new ys(e,i,s).getAst(t).ast},o;function o(e,n){var r,o;switch(typeof e){case"string":if(e=e.trim(),!(r=t[o=e])){var a=new os(s);r=new ys(a,i,s).parse(e),t[o]=d(r)}return p(r,n);case"function":return p(e,n);default:return p((()=>{}),n)}}function a(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=ws(t))&&!n)&&(t===e||t!=t&&e!=e)}function c(t,e,n,r){var i,s=r.inputs;if(1===s.length){var o=a;return s=s[0],t.$watch((function(t){var e=s(t);return a(e,o,s.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&ws(e)),i}),e,n)}for(var c=[],l=[],u=0,h=s.length;u<h;u++)c[u]=a,l[u]=null;return t.$watch((function(t){for(var e=!1,n=0,o=s.length;n<o;n++){var u=s[n](t);(e||(e=!a(u,c[n],s[n].isPure)))&&(l[n]=u,c[n]=u&&ws(u))}return e&&(i=r(t,void 0,void 0,l)),i}),e,n)}function l(t,e,n,r){var i,s,o=r.literal?u:g,a=r.$$intercepted||r,c=r.$$interceptor||U,l=r.inputs&&!a.inputs;return p.literal=r.literal,p.constant=r.constant,p.inputs=r.inputs,d(p),i=t.$watch(p,e,n);function h(){o(s)&&i()}function p(t,e,n,r){return s=l&&r?r[0]:a(t,e,n,r),o(s)&&t.$$postDigest(h),c(s)}}function u(t){var e=!0;return V(t,(function(t){g(t)||(e=!1)})),e}function h(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function d(t){return t.constant?t.$$watchDelegate=h:t.oneTime?t.$$watchDelegate=l:t.inputs&&(t.$$watchDelegate=c),t}function p(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,s,o){var a=n&&o?o[0]:t(r,i,s,o);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return t.isPure===ds?function(e){return t(e)}:t})))),d(r)}}]}let Es=10;const Cs=mt("$rootScope"),xs=[],Ss=[],Os=[];let ks,_s,Ts,As=0,Rs=null,Vs=null;function Ns(){this.digestTtl=function(t){return arguments.length&&(Es=t),Es},this.$get=["$exceptionHandler","$parse","$browser",function(t,e,n){Ts=t,ks=e,_s=n;return new Ps}]}class Ps{constructor(){this.$id=p(),this.$$phase=null,this.$parent=null,this.$root=this,this.$$watchers=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null,this.$$ChildScope=null}$new(t,e){let n;return t?(n=new Ps,n.$root=this.$root):(n=Object.create(this),n.$id=p(),n.$$watchers=null,n.$$nextSibling=null,n.$$childHead=null,n.$$childTail=null,n.$$listeners={},n.$$listenerCount={},n.$$watchersCount=0,n.$$ChildScope=null,n.$$suspended=!1),n.$parent=e||this,n.$$prevSibling=n.$parent.$$childTail,n.$parent.$$childHead?(n.$parent.$$childTail.$$nextSibling=n,n.$parent.$$childTail=n):(n.$parent.$$childHead=n,n.$parent.$$childTail=n),(t||e!==this)&&n.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),n}$watch(t,e,n){const r=ks(t),i=x(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s=this;let o=s.$$watchers;const a={fn:i,last:Ds,get:r,exp:t,eq:!!n};Rs=null,o||(o=s.$$watchers=[],o.$$digestWatchIndex=-1),o.unshift(a),o.$$digestWatchIndex++,this.incrementWatchersCount(1);const c=this;return function(){const t=G(o,a);t>=0&&(c.incrementWatchersCount(-1),t<o.$$digestWatchIndex&&o.$$digestWatchIndex--),Rs=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return V(t,((t,e)=>{const n=s.$watch(t,(t=>{r[e]=t,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=ks(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=ks(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!m(r)){if(v(r))if($(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(v(r))if($(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c,l=Es;const u=xs.length?this.$root:this,h=[];let d,p;this.beginPhase("$digest"),_s.$$checkUrlChange(),this===this.$root&&null!==Vs&&(_s.defer.cancel(Vs),js(),Vs=null),Rs=null;do{o=!1,c=u;for(let t=0;t<xs.length;t++){try{p=xs[t],r=p.fn,r(p.scope,p.locals)}catch(t){Ts(t)}Rs=null}xs.length=0;do{if(s=!c.$$suspended&&c.$$watchers)for(s.$$digestWatchIndex=s.length;s.$$digestWatchIndex--;)try{if(t=s[s.$$digestWatchIndex],t)if(i=t.get,(e=i(c))===(n=t.last)||(t.eq?J(e,n):L(e)&&L(n))){if(t===Rs){o=!1;break}}else o=!0,Rs=t,t.last=t.eq?structuredClone(e):e,r=t.fn,r(e,n===Ds?e:n,c),l<5&&(d=4-l,h[d]||(h[d]=[]),h[d].push({msg:x(t.exp)?`fn: ${t.exp.name||t.exp.toString()}`:t.exp,newVal:e,oldVal:n}))}catch(t){Ts(t)}if(!(a=!c.$$suspended&&c.$$watchersCount&&c.$$childHead||c!==u&&c.$$nextSibling))for(;c!==u&&!(a=c.$$nextSibling);)c=c.$parent}while(c=a);if((o||xs.length)&&!l--)throw this.clearPhase(),Cs("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",Es,h)}while(o||xs.length);for(this.clearPhase();As<Ss.length;)try{Ss[As++]()}catch(t){Ts(t)}Ss.length=As=0,_s.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase)throw Cs("inprog","{0} already in progress",this.$root.$$phase);this.$root.$$phase=t}$suspend(){this.$$suspended=!0}$isSuspended(){return this.$$suspended}$resume(){this.$$suspended=!1}$destroy(){if(this.$$destroyed)return;const t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===this.$root&&_s.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners={},this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}$eval(t,e){return ks(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase||xs.length||(n=_s.defer((()=>{xs.length&&this.$root.$digest()}),null,"$evalAsync")),xs.push({scope:this,fn:ks(t),locals:e}),n}$$postDigest(t){Ss.push(t)}$apply(t){try{this.beginPhase("$apply");try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Ts(t)}finally{try{this.$root.$digest()}catch(t){throw Ts(t),t}}}clearPhase(){this.$root.$$phase=null}$applyAsync(t){const e=this;t&&Os.push((()=>e.$eval(t))),t=ks(t),null===Vs&&(Vs=_s.defer(js,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=tt([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners[t]||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Ts(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=tt([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners[t]||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Ts(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function Ds(){}function js(){for(;Os.length;)try{Os.shift()()}catch(t){Ts(t)}Vs=null}function Ms(){this.$get=H((t=>new Is(t)))}function Is(t){const e=this,n={},r=[],i=e.ALL_TASKS_TYPE="$$all$$",s=e.DEFAULT_TASK_TYPE="$$default$$";function o(){const t=r.pop();return t&&t.cb}function a(t){for(let e=r.length-1;e>=0;--e){const n=r[e];if(n.type===t)return r.splice(e,1),n.cb}}e.completeTask=function(e,r){r=r||s;try{e()}finally{!function(t){t=t||s,n[t]&&(n[t]--,n[i]--)}(r);const e=n[r],c=n[i];if(!c||!e){const e=c?a:o;let n;for(;n=e(r);)try{n()}catch(e){t.error(e)}}}},e.incTaskCount=function(t){n[t=t||s]=(n[t]||0)+1,n[i]=(n[i]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||i]?r.push({type:e,cb:t}):t()}}var Ls=mt("$templateRequest");function qs(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,s){function o(a,c){o.totalPendingRequests++,y(a)&&!m(n.get(a))||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return E(l)?l=l.filter((function(t){return t!==Ai})):l===Ai&&(l=null),r.get(a,j({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){c||(t=Ls("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return o.totalPendingRequests=0,o}]}const Us=mt("$timeout");function Hs(t,e,n,r,i){const s={};function o(o,a,c){x(o)||(c=a,a=o,o=()=>{});const l=et(arguments,3),u=g(c)&&!c,h=(u?r:n).defer(),{promise:d}=h;let p;return p=e.defer((()=>{try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[d.$$timeoutId]}u||t.$apply()}),a,"$timeout"),d.$$timeoutId=p,s[p]=h,d}return o.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw Us("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(s,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=s[n];return $i(r.promise),r.reject("canceled"),delete s[n],e.defer.cancel(n)},o}function Fs(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",Hs]}function Bs(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return g(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Te(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const zs="-add",Ws="-remove",Gs="-prepare",Ks="ng-animate",Js="$$ngAnimateChildren";let Zs,Ys,Qs,Xs;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Zs="WebkitTransition",Ys="webkitTransitionEnd transitionend"):(Zs="transition",Ys="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Qs="WebkitAnimation",Xs="webkitAnimationEnd animationend"):(Qs="animation",Xs="animationend");const to="Duration",eo="Delay",no="TimingFunction",ro=Qs+eo,io=Qs+to,so=Zs+eo,oo=mt("ng");function ao(t,e,n){if(!t)throw oo("areq","Argument '{0}' is {1}",e||"?",n);return t}function co(t,e,n){let r="";return(t=E(t)?t:t&&y(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function lo(t){if(t instanceof Lt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return Lt(uo(t))}if(t.nodeType===Node.ELEMENT_NODE)return Lt(t)}function uo(t){if(!t[0])return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function ho(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function po(t,e){fo(t,e),$o(t,e)}function fo(t,e){e.from&&(e.from=null)}function $o(t,e){e.to&&(e.to=null)}function mo(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),V(e,((t,e)=>{s[e]=r})),n=a(n),V(n,((t,e)=>{s[e]=s[e]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){y(t)&&(t=t.split(" "));const e={};return V(t,(t=>{t.length&&(e[t]=!0)})),e}return V(s,(function(e,n){var s,a;e===r?(s="addClass",a=!t[n]||t[n+Ws]):e===i&&(s="removeClass",a=t[n]||t[n+zs]),a&&(o[s].length&&(o[s]+=" "),o[s]+=n)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=wo(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return j(r,i),c&&(r.domOperation=c),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function go(t){return t instanceof Lt?t[0]:t}function vo(t,e){const n=e?"paused":"",r=Qs+"PlayState";return yo(t,[r,n]),[r,n]}function yo(t,e){const n=e[0],r=e[1];t.style[n]=r}function wo(t,e){return t?e?`${t} ${e}`:t:e}const bo=["$interpolate",function(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Js,t)}y(i)&&0===i.length?n.data(Js,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}];function Eo(){const t="ng-animate-ref",e=this.drivers=[],n="$$animationRunner",r="$$animatePrepareClasses";function i(t){return t.data(n)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(s,o,a,c,l){const u=[],h=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(d,p,f){f=ho(f);const $=["enter","move","leave"].indexOf(p)>=0,m=new a({end(){b()},cancel(){b(!0)}});if(!e.length)return b(),m;let g=yt(d.attr("class"),yt(f.addClass,f.removeClass)),{tempClasses:v}=f;return v&&(g+=` ${v}`,f.tempClasses=null),$&&d.data(r,`ng-${p}${Gs}`),function(t,e){t.data(n,e)}(d,m),u.push({element:d,classes:g,event:p,structural:$,options:f,beforeStart:function(){v=(v?`${v} `:"")+Ks,d.className+=` ${v}`;let t=d.data(r);t&&(d[0].classList.remove(t),t=null)},close:b}),d.on("$destroy",w),u.length>1||s.$$postDigest((()=>{const n=[];V(u,(t=>{i(t.element)?n.push(t):t.close()})),u.length=0;const s=function(e){const n=[],r={};V(e,((e,i)=>{const{element:s}=e,o=go(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return V(r,(e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";V(l,(n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:Lt(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:y(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(n),a=[];V(s,(t=>{const n=t.from?t.from.element:t.element;let r=f.addClass;r=(r?`${r} `:"")+Ks;const s=l.cacheKey(n[0],t.event,r,f.removeClass);a.push({element:n,domNode:go(n),fn:function(){let n;const r=t.close;if(l.containsCachedAnimationWithoutDuration(s))return void r();t.beforeStart();if(i(t.anchors?t.from.element||t.to.element:t.element)){const r=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],i=o.get(r)(t);if(i)return i}}(t);r&&(n=r.start)}if(n){const e=n();e.done((t=>{r(!t)})),function(t,e){t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element);function n(t){const n=i(t);n&&n.setHost(e)}}(t,e)}else r()}})}));const h=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)i(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let i=n.length,s=0,o=[];for(r=0;r<n.length;r++){const t=n[r];i<=0&&(i=s,s=0,e.push(o),o=[]),o.push(t),t.children.forEach((t=>{s++,n.push(t)})),i--}return o.length&&e.push(o),e}(e);function i(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let s,{parentNode:o}=n;for(r.set(n,t);o;){if(s=r.get(o),s){s.processed||(s=i(s));break}o=o.parentNode}return(s||e).children.push(t),t}}(a);for(let t=0;t<h.length;t++){const e=h[t];for(let n=0;n<e.length;n++){const i=e[n],{element:s}=i;if(h[t][n]=i.fn,0===t){s.removeData(r);continue}const o=s.data(r);o&&s[0].classList.add(o)}}c(h)})),m;function y(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function w(){const t=i(d);!t||"leave"===p&&f.$$domOperationFired||t.end()}function b(t){d.off("$destroy",w),function(t){t.removeData(n)}(d),h(d,f),po(d,f),f.domOperation(),v&&v.split(" ").forEach((t=>d[0].classList.remove(t))),m.complete(!t)}}}]}const Co=[()=>{let t,e;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e||n()}))}function r(e){t=t.concat(e),n()}return t=r.queue=[],r.waitUntilQuiet=t=>{e&&e(),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},r}],xo=["$animate",function(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),(e||0===e)&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}],So="data-ng-animate",Oo="$ngAnimatePin",ko=["$animateProvider",function(t){const e=" ",n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const r=function(t){if(!t)return null;const n=t.split(e),r=Object.create(null);return V(n,(t=>{r[t]=!0})),r}(n);return t.split(e).some((t=>r[t]))}}function s(t,e,r){return n[t].some((t=>t(e,r)))}function o(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((t=>!t.structural&&o(t))),n.skip.push((t=>!t.structural&&!o(t))),n.skip.push(((t,e)=>"leave"===e.event&&t.structural)),n.skip.push(((t,e)=>e.structural&&2===e.state&&!t.structural)),n.cancel.push(((t,e)=>e.structural&&t.structural)),n.cancel.push(((t,e)=>2===e.state&&t.structural)),n.cancel.push(((t,e)=>{if(e.structural)return!1;const n=t.addClass,r=t.removeClass,s=e.addClass,o=e.removeClass;return!(m(n)&&m(r)||m(s)&&m(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$rootElement","$document","$$animation","$$AnimateRunner","$templateRequest","$$isDocumentHidden",function(e,n,i,a,c,l,u){const h=new Map,d=new Map;let p=null;function f(t){d.delete(t.target)}const $=e.$watch((()=>0===l.totalPendingRequests),(t=>{t&&($(),e.$$postDigest((()=>{e.$$postDigest((()=>{null===p&&(p=!0)}))})))})),w=Object.create(null),b=t.customFilter(),C=t.classNameFilter(),x=function(){return!0},S=b||x,O=C?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return C.test(n)}:x,k=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};function _(t,e){return mo(t,e,{})}const T=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=uo(e);return t.filter((t=>!(t.node===r&&(!n||t.callback===n))))}function R(t,e){"close"!==t||e.parentNode||N.off(e)}let N={on(t,e,n){const r=uo(e);w[t]=w[t]||[],w[t].push({node:r,callback:n}),Lt(e).on("$destroy",(()=>{h.get(r)||N.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!y(arguments[0])){e=arguments[0];for(const t in w)w[t]=A(w[t],e);return}const r=w[t];r&&(w[t]=1===arguments.length?null:A(r,e,n))},pin(t,e){ao(B(t),"element","not an element"),ao(B(e),"parentElement","not an element"),t.data(Oo,e)},push:(t,l,f,$)=>((f=f||{}).domOperation=$,function(t,l,f){let $=structuredClone(f),b=lo(t);const C=go(b),x=C&&C.parentNode;$=ho($);const A=new c,N=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();E($.addClass)&&($.addClass=$.addClass.join(" "));$.addClass&&!y($.addClass)&&($.addClass=null);E($.removeClass)&&($.removeClass=$.removeClass.join(" "));$.removeClass&&!y($.removeClass)&&($.removeClass=null);$.from&&!v($.from)&&($.from=null);$.to&&!v($.to)&&($.to=null);if(!(p&&C&&S(C,l,f)&&O(C,$)))return z(),A;const j=["enter","move","leave"].indexOf(l)>=0,M=u();let I=M||d.get(C);const L=!I&&h.get(C)||{},q=!!L.state;I||q&&1===L.state||(I=!function(t,e){const r=i[0].body,s=go(n);let o,a=t===r||"HTML"===t.nodeName,c=t===s,l=!1,u=d.get(t),p=Lt.data(t,Oo);p&&(e=go(p));for(;e&&(c||(c=e===s),e.nodeType===Node.ELEMENT_NODE);){const t=h.get(e)||{};if(!l){const n=d.get(e);if(!0===n&&!1!==u){u=!0;break}!1===n&&(u=!1),l=t.structural}if(m(o)||!0===o){const t=Lt.data(e,Js);g(t)&&(o=t)}if(l&&!1===o)break;if(a||(a=e===r),a&&c)break;e=c||(p=Lt.data(e,Oo),!p)?e.parentNode:go(p)}return(!l||o)&&!0!==u&&c&&a}(C,x));if(I)return M&&B(A,l,"start",r($)),z(),M&&B(A,l,"close",r($)),A;j&&function(t){const e=t.querySelectorAll(`[${So}]`);V(e,(t=>{const e=parseInt(t.getAttribute(So),10),n=h.get(t);if(n)switch(e){case 2:n.runner.end();case 1:h.delete(t)}}))}(C);const U={structural:j,element:b,event:l,addClass:$.addClass,removeClass:$.removeClass,close:z,options:$,runner:A};if(q){if(s("skip",U,L))return 2===L.state?(z(),A):(mo(b,L,U),L.runner);if(s("cancel",U,L))if(2===L.state)L.runner.end();else{if(!L.structural)return mo(b,L,U),L.runner;L.close()}else{if(s("join",U,L)){if(2!==L.state)return function(t,e,n){let r="";e&&(r=co(e,"ng-",!0)),n.addClass&&(r=wo(r,co(n.addClass,zs))),n.removeClass&&(r=wo(r,co(n.removeClass,Ws))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}(b,j?l:null,$),l=U.event=L.event,$=mo(b,L,U),L.runner;_(b,U)}}}else _(b,U);let H=U.structural;H||(H="animate"===U.event&&Object.keys(U.options.to||{}).length>0||o(U));if(!H)return z(),P(C),A;const F=(L.counter||0)+1;return U.counter=F,D(C,1,U),e.$$postDigest((()=>{b=lo(t);let e=h.get(C);const n=!e;e=e||{};const i=(b.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==F||!i)return n&&(k(b,$),po(b,$)),(n||j&&e.event!==l)&&($.domOperation(),A.end()),void(i||P(C));l=!e.structural&&o(e,!0)?"setClass":e.event,D(C,2);const s=a(b,l,e.options);A.setHost(s),B(A,l,"start",r($)),s.done((t=>{z(!t);const e=h.get(C);e&&e.counter===F&&P(C),B(A,l,"close",r($))}))})),A;function B(t,e,n,r){N((()=>{const t=function(t,e,n){const r=[],i=w[n];return i&&V(i,(i=>{(T.call(i.node,e)||"leave"===n&&T.call(i.node,t))&&r.push(i.callback)})),r}(x,C,e);t.length?(V(t,(t=>{t(b,n,r)})),R(n,C)):R(n,C)})),t.progress(e,n,r)}function z(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}(b,$),k(b,$),po(b,$),$.domOperation(),A.complete(!t)}}(t,l,f)),enabled(t,e){const n=arguments.length;if(0===n)e=!!p;else{if(B(t)){const r=go(t);1===n?e=!d.get(r):(d.has(r)||Lt(t).on("$destroy",f),d.set(r,!e))}else e=p=!!t}return e}};return N;function P(t){t.removeAttribute(So),h.delete(t)}function D(t,e,n){(n=n||{}).state=e,t.setAttribute(So,e);const r=h.get(t),i=r?j(r,n):n;h.set(t,i)}}]}],_o="$$ngAnimateParentKey";let To=0,Ao=Object.create(null);function Ro(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[_o]||(i[_o]=++To),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=Ao[t];return e&&!e.isValid||!1},flush(){Ao=Object.create(null)},count(t){const e=Ao[t];return e?e.total:0},get(t){const e=Ao[t];return e&&e.value},put(t,e,n){Ao[t]?(Ao[t].total++,Ao[t].value=e):Ao[t]={total:1,value:e,isValid:n}}}}function Vo(){this.$get=[Ro]}const No="$$animateCss",Po=1e3;function Do(t,e){return[e?ro:so,`${t}s`]}function jo(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return V(e,((t,e)=>{let i=r[t];if(i){const t=i.charAt(0);("-"===t||"+"===t||t>=0)&&(i=function(t){let e=0;return V(t.split(/\s*,\s*/),(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[e]=i}})),n}function Mo(t){return 0===t||null!=t}function Io(t,e){let n=Zs,r=`${t}s`;return e?n+=to:r+=" linear all",[n,r]}function Lo(t,e,n){V(n,(n=>{t[n]=g(t[n])?t[n]:e.style.getPropertyValue(n)}))}const qo=[function(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r,i){const s=function(t,e,r,i,s){let o=n.get(r);o||(o=jo(window,t),"infinite"===o.animationIterationCount&&(o.animationIterationCount=1));const a=i||o.transitionDuration>0||o.animationDuration>0;return n.put(r,o,a),o}(t,0,r,i),o=s.animationDelay,a=s.transitionDelay;return s.maxDelay=o&&a?Math.max(o,a):o||a,s.maxDuration=Math.max(s.animationDuration*s.animationIterationCount,s.transitionDuration),s}return function(r,o){let l=o||{};l.$$prepared||(l=ho(structuredClone(l)));const u={},h=go(r);if(!h||!h.parentNode||!i.enabled())return J();const d=[],p=r.attr("class"),f=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let $,m,g,v,y,w,b,C,x,S;const O=[];if(0===l.duration)return J();const k=l.event&&E(l.event)?l.event.join(" "):l.event,_=k&&l.structural;let T="",A="";_?T=co(k,"ng-",!0):k&&(T=k),l.addClass&&(A+=co(l.addClass,zs)),l.removeClass&&(A.length&&(A+=" "),A+=co(l.removeClass,Ws)),l.applyClassesEarly&&A.length&&s(r,l);let R=[T,A].join(" ").trim(),N=`${p} ${R}`;const P=f.to&&Object.keys(f.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!P&&!R)return J();let D,j,M=n.cacheKey(h,k,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(M))return R=null,J();if(l.stagger>0){const t=parseFloat(l.stagger);D={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else D=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=co(e,"-stagger");t.className+=` ${r}`,s=jo(window,t),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,R,M);if(l.$$skipPreparationClasses||r[0].classList.add(R),l.transitionStyle){const t=[Zs,l.transitionStyle];yo(h,t),d.push(t)}if(l.duration>=0){j=h.style[Zs].length>0;const t=Io(l.duration,j);yo(h,t),d.push(t)}if(l.keyframeStyle){const t=[Qs,l.keyframeStyle];yo(h,t),d.push(t)}const I=D?l.staggerIndex>=0?l.staggerIndex:n.count(M):0,L=0===I;L&&!l.skipBlocking&&helpers.blockTransitions(h,9999);let q=c(h,0,M,!_),U=q.maxDelay;w=Math.max(U,0),C=q.maxDuration;const H={};if(H.hasTransitions=q.transitionDuration>0,H.hasAnimations=q.animationDuration>0,H.hasTransitionAll=H.hasTransitions&&"all"===q.transitionProperty,H.applyTransitionDuration=P&&(H.hasTransitions&&!H.hasTransitionAll||H.hasAnimations&&!H.hasTransitions),H.applyAnimationDuration=l.duration&&H.hasAnimations,H.applyTransitionDelay=Mo(l.delay)&&(H.applyTransitionDuration||H.hasTransitions),H.applyAnimationDelay=Mo(l.delay)&&H.hasAnimations,H.recalculateTimingStyles=A.length>0,(H.applyTransitionDuration||H.applyAnimationDuration)&&(C=l.duration?parseFloat(l.duration):C,H.applyTransitionDuration&&(H.hasTransitions=!0,q.transitionDuration=C,j=h.style[Zs+"Property"].length>0,d.push(Io(C,j))),H.applyAnimationDuration&&(H.hasAnimations=!0,q.animationDuration=C,d.push([io,`${C}s`]))),0===C&&!H.recalculateTimingStyles)return J();const F=co(R,"-active");var B;null!=l.delay&&("boolean"!=typeof l.delay&&(B=parseFloat(l.delay),w=Math.max(B,0)),H.applyTransitionDelay&&d.push(Do(B)),H.applyAnimationDelay&&d.push(Do(B,!0)));return null==l.duration&&q.transitionDuration>0&&(H.recalculateTimingStyles=H.recalculateTimingStyles||L),b=w*Po,x=C*Po,l.skipBlocking||(H.blockTransition=q.transitionDuration>0,H.blockKeyframeAnimation=q.animationDuration>0&&D.animationDelay>0&&0===D.animationDuration),l.from&&(l.cleanupStyles&&Lo(u,h,Object.keys(l.from)),fo(0,l)),H.blockTransition||H.blockKeyframeAnimation?K(C):l.skipBlocking||helpers.blockTransitions(h,!1),{$$willAnimate:!0,end:z,start(){if(!$)return y={end:z,cancel:W,resume:null,pause:null},v=new t(y),a(Y),v}};function z(){G()}function W(){G(!0)}function G(t){if($||g&&m)return;$=!0,m=!1,R&&!l.$$skipPreparationClasses&&R.split(" ").forEach((t=>r.classList.remove(t))),F&&F.split(" ").forEach((t=>r.classList.remove(t))),vo(h,!1),helpers.blockTransitions(h,!1),V(d,(t=>{h.style[t[0]]=""})),s(r,l),po(r,l),Object.keys(u).length&&V(u,((t,e)=>{t?h.style.setProperty(e,t):h.style.removeProperty(e)})),l.onDone&&l.onDone(),O&&O.length&&r.off(O.join(" "),Z);const n=r.data(No);n&&(e.cancel(n[0].timer),r.removeData(No)),v&&v.complete(!t)}function K(t){H.blockTransition&&helpers.blockTransitions(h,t),H.blockKeyframeAnimation&&vo(h,!!t)}function J(){return v=new t({end:z,cancel:W}),a((()=>{})),G(),{$$willAnimate:!1,start:()=>v,end:z}}function Z(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-S,0)>=b&&r>=C&&(g=!0,G())}function Y(){if($)return;if(!h.parentNode)return void G();const t=function(t){if(g)m&&t&&(m=!1,G());else if(m=!t,q.animationDuration){const t=vo(h,m);m?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=I>0&&(q.transitionDuration&&0===D.transitionDuration||q.animationDuration&&0===D.animationDuration)&&Math.max(D.animationDelay,D.transitionDelay);function o(){if($)return;if(K(!1),V(d,(t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r.className+=` ${F}`,H.recalculateTimingStyles){if(N=`${h.getAttribute("class")} ${R}`,M=n.cacheKey(h,k,l.addClass,l.removeClass),q=c(h,0,M,!1),U=q.maxDelay,w=Math.max(U,0),C=q.maxDuration,0===C)return void G();H.hasTransitions=q.transitionDuration>0,H.hasAnimations=q.animationDuration>0}if(H.applyAnimationDelay&&(U="boolean"!=typeof l.delay&&Mo(l.delay)?parseFloat(l.delay):U,w=Math.max(U,0),q.animationDelay=U,B=Do(U,!0),d.push(B),h.style[B[0]]=B[1]),b=w*Po,x=C*Po,l.easing){let t;const e=l.easing;H.hasTransitions&&(t=Zs+no,d.push([t,e]),h.style[t]=e),H.hasAnimations&&(t=Qs+no,d.push([t,e]),h.style[t]=e)}q.transitionDuration&&O.push(Ys),q.animationDuration&&O.push(Xs),S=Date.now();const t=b+1.5*x,i=S+t,o=r.data(No)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(G)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(G),r.data(No,o)}O.length&&r.on(O.join(" "),Z),l.to&&(l.cleanupStyles&&Lo(u,h,Object.keys(l.to)),$o(0,l))}function a(){const t=r.data(No);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(No)}}i?e(o,Math.floor(i*I*Po),!1):o(),y.resume=function(){t(!0)},y.pause=function(){t(!1)}}}}]}],Uo=["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver");const e="ng-animate-shim",n="ng-anchor",r="ng-anchor-out",i="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document",function(t,s,o,a,c){const l=c[0].body,u=go(a),h=Lt((d=u).parentNode&&11===d.parentNode.nodeType||l.contains(u)?u:l);var d;return function(s){return s.from&&s.to?function(s,a,c,u){const d=$(s),m=$(a),g=[];if(V(u,(s=>{const a=function(s,a,c){const u=Lt(go(a).cloneNode(!0)),d=p(w(u));let $;a.addClass(e),c.addClass(e),u.addClass(n),h.append(u);const m=y();if(!m&&($=b(),!$))return E();const g=m||$;return{start(){let t,e=g.start();return e.done((()=>{if(e=null,!$&&($=b(),$))return e=$.start(),e.done((()=>{e=null,E(),t.complete()})),e;E(),t.complete()})),t=new o({end:n,cancel:n}),t;function n(){e&&e.end()}}};function v(t){const e={},n=go(t).getBoundingClientRect();return V(["width","height","top","left"],(t=>{let r=n[t];switch(t){case"top":r+=l.scrollTop;break;case"left":r+=l.scrollLeft}e[t]=`${Math.floor(r)}px`})),e}function y(){const e=t(u,{addClass:r,delay:!0,from:v(a)});return e.$$willAnimate?e:null}function w(t){return t.attr("class")||""}function b(){const e=p(w(c)),n=f(e,d),s=f(d,e),o=t(u,{to:v(c),addClass:`${i} ${n}`,removeClass:`${r} ${s}`,delay:!0});return o.$$willAnimate?o:null}function E(){u.remove(),a.removeClass(e),c.removeClass(e)}}(0,s.out,s.in);a&&g.push(a)})),!d&&!m&&0===g.length)return;return{start(){const t=[];d&&t.push(d.start()),m&&t.push(m.start()),V(g,(e=>{t.push(e.start())}));const e=new o({end:n,cancel:n});return o.all(t,(t=>{e.complete(t)})),e;function n(){V(t,(t=>{t.end()}))}}}}(s.from,s.to,s.classes,s.anchors):$(s)};function p(t){return t.replace(/\bng-\S+\b/g,"")}function f(t,e){return y(t)&&(t=t.split(" ")),y(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function $(e){const{element:n}=e,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=wo(r.event,r.preparationClasses));const i=t(n,r);return i.$$willAnimate?i:null}}]}],Ho=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=ho(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=E(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substr(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=y(i,s,a,h,e)),p=y(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),po(i,a)}function g(t,e,r,i,s){const o=[];return V(i,(i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(x(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(x(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function y(t,e,r,i,s){let o=g(t,e,r,i,s);if(0===o.length){let e,n;"beforeSetClass"===s?(e=g(t,"removeClass",r,i,"beforeRemoveClass"),n=g(t,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(e=g(t,"removeClass",r,i,"removeClass"),n=g(t,"addClass",r,i,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&V(o,(t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){V(e,(e=>{t?e.cancel():e.end()}))}}}}}]}],Fo=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){V(t,(t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}];function Bo(){function t(t){return["$animate",function(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?E(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return E(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}]}window.angular.module("ngMessages",[]).directive("ngMessages",["$animate",function(t){const e="ng-active",n="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(s,o,a){const c=this;let l=0,u=0;this.getAttachId=function(){return u++};const h=this.messages={};let d,p;function f(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return h[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}this.render=function(l){d=!1,p=l=l||{};const u=r(o,a.ngMessagesMultiple)||r(o,a.multiple),h=[],f={};let $=0,m=c.head,g=!1,v=0;for(;null!=m;){v++;const t=m.message;let e=!1;g||V(l,((n,r)=>{if(i(n)&&!e&&($++,t.test(r))){if(f[r])return;f[r]=!0,e=!0,t.attach()}})),e?g=!u:h.push(t),m=m.next}V(h,(t=>{t.detach()}));const y=h.length!==v,w=c.default&&!y&&$>0;w?c.default.attach():c.default&&c.default.detach(),y||w?t.setClass(s,e,n):t.setClass(s,n,e)},o.$watchCollection(a.ngMessages||a.for,c.render),this.reRender=function(){d||(d=!0,o.$evalAsync((()=>{d&&p&&c.render(p)})))},this.register=function(t,e,n){if(n)c.default=e;else{const n=l.toString();h[n]={message:e},function(t,e,n){const r=h[n];if(c.head){const n=f(t,e);n?(r.next=n.next,n.next=r):(r.next=c.head,c.head=r)}else c.head=r}(s[0],t,n),t.$$ngMessageNode=n,l++}c.reRender()},this.deregister=function(t,e){if(e)delete c.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,function(t,e,n){const r=h[n];if(!r)return;const i=f(t,e);i?i.next=r.next:c.head=r.next}(s[0],t,e),delete h[e]}c.reRender()}}]};function r(t,e){return y(e)&&0===e.length||i(t.$eval(e))}function i(t){return y(t)?t.length:!!t}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(t,e,n){return{restrict:"AE",require:"^^ngMessages",link(e,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{e.$$destroyed||y(t)&&!t.trim()||n(t)(e,(t=>{r.after(t)}))}))}}}]).directive("ngMessage",t(!1)).directive("ngMessageExp",t(!1)).directive("ngMessageDefault",t(!0))}const zo="ngAriaDisable";const Wo=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Go=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Ko(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,i){return function(s,o,a){if(Object.prototype.hasOwnProperty.call(a,zo))return;const c=a.$normalize(n);!t[c]||Go(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=j(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}const Jo=(t,e)=>e.reduce(((e,n)=>{return e[n]=(r=`${t}.${n}()`,()=>{throw new Error(`No implementation for ${r}. The framework specific code did not implement this method.`)}),e;var r}),{}),Zo={$q:void 0,$injector:void 0};function Yo(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Qo(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function Xo(...t){return Qo.apply(null,[].slice.call(arguments).reverse())}const ta=t=>e=>e&&e[t],ea=Yo(((t,e,n)=>n&&n[t]===e)),na=t=>Xo.apply(null,t.split(".").map(ta)),ra=t=>(...e)=>!t.apply(null,e);function ia(t,e){return(...n)=>t.apply(null,n)||e.apply(null,n)}const sa=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),oa=t=>e=>e.reduce(((e,n)=>e||!!t(n)),!1),aa=t=>e=>null!=e&&e.constructor===t||e instanceof t,ca=t=>()=>t;function la(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const ua=Object.prototype.toString,ha=t=>e=>typeof e===t,da=ha("undefined"),pa=ra(da),fa=t=>null===t,$a=ia(fa,da),ma=ha("function"),ga=ha("number"),va=ha("string"),ya=t=>null!==t&&"object"==typeof t,wa=Array.isArray,ba=t=>"[object Date]"===ua.call(t),Ea=t=>"[object RegExp]"===ua.call(t);function Ca(t){if(wa(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(ra(va)).length||n.filter(ra(ma)).length)}return ma(t)}const xa=(Sa=ya,Oa=Xo(ta("then"),ma),(...t)=>Sa.apply(null,t)&&Oa.apply(null,t));var Sa,Oa;const ka=("object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||void 0).angular||{},_a=ka.fromJson||JSON.parse.bind(JSON),Ta=ka.toJson||JSON.stringify.bind(JSON),Aa=ka.forEach||function(t,e,n){if(wa(t))return t.forEach(e,n);Object.keys(t).forEach((n=>e(t[n],n)))},Ra=Object.assign||function(t){for(let e=1;e<arguments.length;e++){const n=arguments[e];if(!n)continue;const r=Object.keys(n);for(let e=0;e<r.length;e++)t[r[e]]=n[r[e]]}return t},Va=ka.equals||oc;function Na(t){return t}function Pa(){}function Da(t,e,n,r,i=!1){const s=e=>t()[e].bind(n());return(r=r||Object.keys(t())).reduce(((t,n)=>{var r;return t[n]=i?(r=n,function(){return e[r]=s(r),e[r].apply(null,arguments)}):s(n),t}),e)}const ja=(t,e)=>Ra(Object.create(t),e),Ma=Yo((function(t,e){return-1!==t.indexOf(e)}));const Ia=Yo((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const La=Yo((function(t,e){return t.push(e),e}));function qa(t,...e){const n=Ra({},...e.reverse());return Ra(n,Ha(t||{},Object.keys(n)))}const Ua=(t,e)=>Ra(t,e);function Ha(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Fa(t,e){return Object.keys(t).filter(ra(Ma(e))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Ba(t,e){const n=wa(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Aa(t,(function(t,n){e(t,n)&&i(t,n)})),r}function za(t,e){let n;return Aa(t,(function(t,r){n||e(t,r)&&(n=t)})),n}let Wa=Ga;function Ga(t,e,n){return n=n||(wa(t)?[]:{}),Aa(t,((t,r)=>n[r]=e(t,r))),n}const Ka=(t,e)=>t&&e,Ja=(t,e)=>t||e,Za=(t,e)=>t.concat(e),Ya=(t,e)=>wa(e)?t.concat(e.reduce(Ya,[])):Qa(t,e);function Qa(t,e){return t.push(e),t}const Xa=(t,e)=>Ma(t,e)?t:Qa(t,e),tc=t=>t.reduce(Za,[]),ec=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(ma(e)?e(n):e);return r}};function nc(...t){if(0===t.length)return[];const e=t.reduce(((t,e)=>Math.min(e.length,t)),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map((t=>t[r])))}return n}function rc(t,e){let n,r;if(wa(e)&&([n,r]=e),!va(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function ic(t){return t.length&&t[t.length-1]||void 0}function sc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Ra(e,t)}function oc(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(sa(wa)(r))return s=e,(i=t).length===s.length&&nc(i,s).reduce(((t,e)=>t&&oc(e[0],e[1])),!0);var i,s;if(sa(ba)(r))return t.getTime()===e.getTime();if(sa(Ea)(r))return t.toString()===e.toString();if(sa(ma)(r))return!0;if([ma,wa,ba,Ea].map(oa).reduce(((t,e)=>t||!!e(r)),!1))return!1;const o={};for(const n in t){if(!oc(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}const ac=t=>t.catch((t=>0))&&t,cc=t=>ac(Zo.$q.reject(t));var lc;!function(t){t[t.SUPERSEDED=2]="SUPERSEDED",t[t.ABORTED=3]="ABORTED",t[t.INVALID=4]="INVALID",t[t.IGNORED=5]="IGNORED",t[t.ERROR=6]="ERROR"}(lc||(lc={}));let uc=0;class hc{static isRejectionPromise(t){return t&&"function"==typeof t.then&&aa(hc)(t._transitionRejection)}static superseded(t,e){const n=new hc(lc.SUPERSEDED,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return hc.superseded(t,{redirected:!0})}static invalid(t){return new hc(lc.INVALID,"This transition is invalid",t)}static ignored(t){return new hc(lc.IGNORED,"The transition was ignored",t)}static aborted(t){return new hc(lc.ABORTED,"The transition has been aborted",t)}static errored(t){return new hc(lc.ERROR,"The transition errored",t)}static normalize(t){return aa(hc)(t)?t:hc.errored(t)}constructor(t,e,n){this.$id=uc++,this.type=t,this.message=e,this.detail=n}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():mc(e);var e;const{$id:n,type:r,message:i}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${i}, detail: ${t})`}toPromise(){return Ra(cc(this),{_transitionRejection:this})}}function dc(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function pc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function fc(t){const e=$c(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function $c(t){const e=wa(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function mc(t){const e=[],n=hc.isRejectionPromise,r=la([[da,ca("undefined")],[fa,ca("null")],[xa,ca("[Promise]")],[n,t=>t._transitionRejection.toString()],[t=>ya(t)&&!wa(t)&&t.constructor!==Object&&ma(t.toString),t=>t.toString()],[Ca,fc],[ca(!0),Na]]);function i(t){if(ya(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return r(t)}return da(t)?i(t):JSON.stringify(t,((t,e)=>i(e))).replace(/\\"/g,'"')}function gc(t,e){return va(ic(t))&&va(e)?t.slice(0,-1).concat(ic(t)+e):Qa(t,e)}const vc={log:Pa,error:Pa,table:Pa};const yc="undefined"!=typeof document&&document.documentMode&&9===document.documentMode?window&&window.console?function(t){const e=e=>Function.prototype.bind.call(e,t);return{log:e(t.log),error:e(t.log),table:e(t.log)}}(window.console):vc:console.table&&console.error?console:function(t){const e=t.log.bind(t);return{log:e,error:t.error?t.error.bind(t):e,table:t.table?t.table.bind(t):e}}(console);function wc(t){if(!t)return"ui-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ui-view#${t.id} ${t.$type}:${t.fqn} (${t.name}@${e})]`}function bc(t){return ga(t)?Ec[t]:Ec[Ec[t]]}var Ec;!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(Ec||(Ec={}));const Cc=na("$id"),xc=na("router.$id"),Sc=t=>`Transition #${Cc(t)}-${xc(t)}`;const Oc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(Ec).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>Ec[t]))),e.map(bc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[bc(t)]}traceTransitionStart(t){this.enabled(Ec.TRANSITION)&&yc.log(`${Sc(t)}: Started -> ${mc(t)}`)}traceTransitionIgnored(t){this.enabled(Ec.TRANSITION)&&yc.log(`${Sc(t)}: Ignored <> ${mc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(Ec.HOOK))return;const r=na("traceData.hookType")(n)||"internal",i=na("traceData.context.state.name")(n)||na("traceData.context")(n)||"unknown",s=fc(t.registeredHook.callback);yc.log(`${Sc(e)}: Hook -> ${r} context: ${i}, ${dc(200,s)}`)}traceHookResult(t,e,n){this.enabled(Ec.HOOK)&&yc.log(`${Sc(e)}: <- Hook returned: ${dc(200,mc(t))}`)}traceResolvePath(t,e,n){this.enabled(Ec.RESOLVE)&&yc.log(`${Sc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(Ec.RESOLVE)&&yc.log(`${Sc(e)}: <- Resolved ${t} to: ${dc(200,mc(t.data))}`)}traceError(t,e){this.enabled(Ec.TRANSITION)&&yc.log(`${Sc(e)}: <- Rejected ${mc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(Ec.TRANSITION)&&yc.log(`${Sc(e)}: <- Success ${mc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(Ec.UIVIEW)&&yc.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${wc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(Ec.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(Ec.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${dc(200,e)}`)}traceViewSync(t){if(!this.enabled(Ec.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map((({uiView:t,viewConfig:r})=>{const i=t&&t.fqn,s=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:i,[n]:s}})).sort(((t,n)=>(t[e]||"").localeCompare(n[e]||"")));yc.table(r)}traceViewServiceEvent(t,e){this.enabled(Ec.VIEWCONFIG)&&yc.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ui-view: '${e.$uiViewName}@${e.$uiViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(Ec.VIEWCONFIG)&&yc.log(`VIEWCONFIG: ${t} ${wc(e)}`)}};class kc{constructor(t){this.pattern=/.*/,this.inherit=!0,Ra(this,t)}is(t,e){return!0}encode(t,e){return t}decode(t,e){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substr(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new _c(this,t)}}function _c(t,e){function n(t){return wa(t)?t:pa(t)?[t]:[]}function r(t,r){return function(i){if(wa(i)&&0===i.length)return i;const s=Ga(n(i),t);return!0===r?0===Ba(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Ra(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}const Tc=Object.prototype.hasOwnProperty,Ac=t=>0===["value","type","squash","array","dynamic"].filter(Tc.bind(t||{})).length;var Rc;function Vc(t,e,n){const r=!1===n.reloadOnSearch&&e===Rc.SEARCH||void 0,i=za([n.dynamic,r],pa),s=pa(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Ac(t)?{value:t}:t,e.__cacheable=!0;const n=Ca(t.value)?t.value:e;return Ra(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Ra(s,o)}!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(Rc||(Rc={}));class Nc{static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter((t=>!t.type.equals(e[t.id],n[t.id])))}static equals(t,e={},n={}){return 0===Nc.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(Ka,!0)}constructor(t,e,n,r,i){const s=Vc(t,n,i);e=function(t,e,n,r,i){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){const t=n===Rc.CONFIG?"any":n===Rc.PATH?"path":n===Rc.SEARCH?"query":"string";return i.type(t)}return t.type instanceof kc?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===Rc.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Ra(e,r,s).array}();e=o?e.$asArray(o,n===Rc.SEARCH):e;const a=void 0!==s.value||n===Rc.SEARCH,c=pa(s.dynamic)?!!s.dynamic:!!e.dynamic,l=pa(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!pa(r)||null==r)return n;if(!0===r||va(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(s,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const i=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],s=wa(t.replace)?t.replace:[];va(r)&&s.push({from:r,to:void 0});const o=Ga(s,ta("from"));return Ba(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=pa(s.inherit)?!!s.inherit:!!e.inherit;Ra(this,{id:t,type:e,location:n,isOptional:a,dynamic:c,raw:l,squash:u,replace:h,inherit:d,array:o,config:s})}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),da(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Zo.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Zo.$injector.invoke(this.config.$$fn);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.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===Rc.SEARCH}validates(t){if((da(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=this.type.encode(e);return!(va(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}}function Pc(t,e){let n=["",""],r=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const Dc=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Na)}("/"),jc={state:{params:{}},strict:!0,caseInsensitive:!0,decodeParams:!0};class Mc{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return nc(t._segments,t._params.filter((t=>t.location===Rc.PATH)).concat(void 0)).reduce(Za,[]).filter((t=>""!==t&&pa(t)))}static queryParams(t){return t._params.filter((t=>t.location===Rc.SEARCH))}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(Mc.pathSegmentsAndParams).reduce(Za,[]).reduce(gc,[]).map((t=>va(t)?Dc(t):t)).reduce(Za,[]))(t).map((t=>"/"===t?1:va(t)?2:t instanceof Nc?3:void 0)),r=n(t),i=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,i,0);const s=nc(r,i);let o,a;for(a=0;a<s.length;a++)if(o=s[a][0]-s[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=qa(r,jc),this.pattern=t;const i=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Mc.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(za(this._params,ea("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const i=n[2]||n[3],s=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:i,regexp:s,segment:t.substring(c,n.index),type:s?e.type(s)||(t=>ja(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,ic(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>Pc.apply(null,t))).concat(Pc(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return pa(t)&&(this.config.decodeParams&&!e.type.raw&&(t=wa(t)?t.map((t=>decodeURIComponent(t))):decodeURIComponent(t)),t=e.type.decode(t)),e.value(t)}exec(t,e={},n,r={}){const i=(s=this._cache,o="pattern",a=()=>new RegExp(["^",tc(this._cache.path.map(ta("_compiled"))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),s[o]=s[o]||a()).exec(t);var s,o,a;if(!i)return null;const c=this.parameters(),l=c.filter((t=>!t.isSearch())),u=c.filter((t=>t.isSearch())),h=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),d={};if(h!==i.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function p(t){const e=t=>t.split("").reverse().join(""),n=Ga(e(t).split(/-(?!\\)/),e);return Ga(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<h;t++){const e=l[t];let n=i[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=p(n)),d[e.id]=this._getDecodedParamValue(n,e)}return u.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);d[t.id]=this._getDecodedParamValue(n,t)})),n&&(d["#"]=n),d}parameters(t={}){return!1===t.inherit?this._params:tc(this._cache.path.map((t=>t._params)))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter((e=>t.hasOwnProperty(e.id))).map((e=>((t,e)=>!t||t.validates(e))(e,t[e.id]))).reduce(Ka,!0)}format(t={}){const e=this._cache.path,n=e.map(Mc.pathSegmentsAndParams).reduce(Za,[]).map((t=>va(t)?t:i(t))),r=e.map(Mc.queryParams).reduce(Za,[]).map(i);if(n.concat(r).filter((t=>!1===t.isValid)).length)return null;function i(e){const n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n),s=!!i&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:s,encoded:o}}const s=n.reduce(((t,e)=>{if(va(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:va(n)?t+n:!1!==n||null==r?t:wa(r)?t+Ga(r,Mc.encodeDashes).join("-"):i.raw?t+r:t+encodeURIComponent(r)}),""),o=r.map((t=>{let{param:e,squash:n,encoded:r,isDefaultValue:i}=t;if(!(null==r||i&&!1!==n)&&(wa(r)||(r=[r]),0!==r.length))return e.raw||(r=Ga(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).filter(Na).reduce(Za,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Mc.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Ic{fromConfig(t,e,n){return new Nc(t,e,Rc.CONFIG,this.router.urlService.config,n)}fromPath(t,e,n){return new Nc(t,e,Rc.PATH,this.router.urlService.config,n)}fromSearch(t,e,n){return new Nc(t,e,Rc.SEARCH,this.router.urlService.config,n)}constructor(t){this.router=t}}class Lc{constructor(t){this.router=t,this.paramFactory=new Ic(this.router),this.UrlMatcher=Mc,this.Param=Nc,this.caseInsensitive=t=>this.router.urlService.config.caseInsensitive(t),this.defaultSquashPolicy=t=>this.router.urlService.config.defaultSquashPolicy(t),this.strictMode=t=>this.router.urlService.config.strictMode(t),this.type=(t,e,n)=>this.router.urlService.config.type(t,e,n)||this}compile(t,e){const n=this.router.urlService.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive,decodeParams:n._decodeParams};return new Mc(t,n.paramTypes,this.paramFactory,j(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return V(Mc.prototype,((n,r)=>{x(n)&&(e=e&&g(t[r])&&x(t[r]))})),e}$get(){const t=this.router.urlService.config;return t.paramTypes.enqueue=!1,t.paramTypes._flushTypeQueue(),this}}class qc{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return qc.is(t)?new qc(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}class Uc{static create(t){t=Uc.isStateClass(t)?new t:t;const e=Object.setPrototypeOf(t,Uc.prototype);return t.$$state=()=>e,e.self=t,e.__stateObjectCache={nameGlob:qc.fromString(e.name)},e}constructor(t){return Uc.create(t||{})}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=qa(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter((e=>!t.matchingKeys||Object.prototype.hasOwnProperty.call(t.matchingKeys,e.id)))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||za(Object.values(this.params),ea("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Uc.isStateClass=t=>ma(t)&&!0===t.__uiRouterState,Uc.isStateDeclaration=t=>ma(t.$$state),Uc.isState=t=>ya(t.__stateObjectCache);class Hc{constructor(t){this.router=t}compile(t){return this.router.urlMatcherFactory.compile(t)}create(t,e){const{isState:n,isStateDeclaration:r}=Uc,i=la([[va,t=>i(this.compile(t))],[aa(Mc),t=>this.fromUrlMatcher(t,e)],[ia(n,r),t=>this.fromState(t,this.router)],[aa(RegExp),t=>this.fromRegExp(t,e)],[ma,t=>new Fc(t,e)]]),s=i(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,e){let n=e;va(e)&&(e=this.router.urlMatcherFactory.compile(e)),aa(Mc)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter((t=>t.isOptional));return n.length?n.filter((t=>e[t.id])).length/n.length:1e-6},type:"URLMATCHER"};return Ra(new Fc((function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),r)}fromState(t,e){const n=Uc.isStateDeclaration(t)?t.$$state():t,r={state:n,type:"STATE"};return Ra(this.fromUrlMatcher(n.url,(t=>{const r=e.stateService,i=e.globals;r.href(n,t)!==r.href(i.current,i.params)&&r.transitionTo(n,t,{inherit:!0,source:"url"})})),r)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=va(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Ra(new Fc((e=>t.exec(e.path)),n),r)}}Hc.isUrlRule=t=>t&&["type","match","handler"].every((e=>pa(t[e])));class Fc{constructor(t,e){this.match=t,this.type="RAW",this.matchPriority=t=>0-this.$id,this.handler=e||Na}}class Bc{constructor(t){this.router=t,this.sync=t=>this.router.urlService.sync(t),this.listen=t=>this.router.urlService.listen(t),this.deferIntercept=t=>this.router.urlService.deferIntercept(t),this.match=t=>this.router.urlService.match(t),this.initial=t=>this.router.urlService.rules.initial(t),this.otherwise=t=>this.router.urlService.rules.otherwise(t),this.removeRule=t=>this.router.urlService.rules.removeRule(t),this.rule=t=>this.router.urlService.rules.rule(t),this.rules=()=>this.router.urlService.rules.rules(),this.sort=t=>this.router.urlService.rules.sort(t),this.when=(t,e,n)=>this.router.urlService.rules.when(t,e,n),this.urlRuleFactory=new Hc(t)}update(t){const e=this.router.locationService;t?this.location=e.url():e.url()!==this.location&&e.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.router.urlService.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.router.urlService.config,s=i.html5Mode();if(s||null===r||(r="#"+i.hashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?r.replace(/\/[^/]*$/,"")+t:n?r.slice(1)+t:t}(r,s,n.absolute,i.baseHref()),!n.absolute||!r)return r;const o=!s&&r?"/":"",a=i.port(),c=80===a||443===a?"":":"+a;return[i.protocol(),"://",i.host(),c,o,r].join("")}get interceptDeferred(){return this.router.urlService.interceptDeferred}}var zc,Wc;!function(t){t[t.CREATE=0]="CREATE",t[t.BEFORE=1]="BEFORE",t[t.RUN=2]="RUN",t[t.SUCCESS=3]="SUCCESS",t[t.ERROR=4]="ERROR"}(zc||(zc={})),function(t){t[t.TRANSITION=0]="TRANSITION",t[t.STATE=1]="STATE"}(Wc||(Wc={}));class Gc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Ra({},n||{}),this._options=Ra({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${mc(this.params())}`}withState(t){return new Gc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Ra({},this._params,t);return new Gc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Ra({},this._options,t);return new Gc(this._stateRegistry,this._identifier,this._params,n)}}Gc.isDef=t=>t&&t.state&&(va(t.state)||ya(t.state)&&va(t.state.name));const Kc={current:Pa,transition:null,traceData:{},bind:null};class Jc{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Zo.$q.when())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(xa(r)){const i=t.slice(n+1);return Jc.chain(i,r).then(e)}}return e()}static runAllHooks(t){t.forEach((t=>t.invokeHook()))}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===zc.RUN&&!this.options.transition.isActive(),this.options=qa(r,Kc),this.type=n.eventType}logError(t){this.transition.router.stateService.defaultErrorHandler()(t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;Oc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>hc.normalize(t).toPromise(),s=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&xa(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(hc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();if(e)return e;if(xa(t))return t.then((t=>this.handleHookResult(t)));if(Oc.traceHookResult(t,this.transition,this.options),!1===t)return hc.aborted("Hook aborted transition").toPromise();return aa(Gc)(t)?hc.redirected(t).toPromise():void 0}getNotCurrentRejection(){const t=this.transition.router;return t._disposed?hc.aborted(`UIRouter instance #${t.$id} has been stopped (disposed)`).toPromise():this.transition._aborted?hc.aborted().toPromise():this.isSuperseded()?hc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${na("traceData.hookType")(t)||"internal"} context: ${na("traceData.context.state.name")(t)||na("traceData.context")(t)||"unknown"}, ${dc(200,$c(e.callback))}`}}function Zc(t,e,n){const r=va(e)?[e]:e;return!!(ma(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new qc(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}Jc.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Jc.LOG_REJECTED_RESULT=t=>e=>{xa(e)&&e.catch((e=>t.logError(hc.normalize(e))))},Jc.LOG_ERROR=t=>e=>t.logError(e),Jc.REJECT_ERROR=t=>t=>cc(t),Jc.THROW_ERROR=t=>t=>{throw t};class Yc{constructor(t,e,n,r,i,s={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter((t=>Zc(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return Wa(this.tranSvc._pluginapi._getPathTypes(),(()=>!0))}_getMatchingNodes(t,e){const n=Ra(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._pluginapi._getPathTypes()).reduce(((r,i)=>{const s=i.scope===Wc.STATE,o=t[i.name]||[],a=s?o:[ic(o)];return r[i.name]=this._matchingNodes(a,n[i.name],e),r}),{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every(Na)?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function Qc(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=Ia(r);function s(t,s,o={}){const a=new Yc(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class Xc{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.router.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(Za,[]).filter(Na)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const i={transition:e,current:e.options().current};return r.map((r=>r.matches(n,e)[t.criteriaMatchPath.name].map((n=>{const s=Ra({bind:r.bind,traceData:{hookType:t.name,context:n}},i),o=t.criteriaMatchPath.scope===Wc.STATE?n.state.self:null,a=new Jc(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(Za,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}(t.reverseSort)).map((t=>t.transitionHook))}getMatchingHooks(t,e,n){const r=t.hookPhase===zc.CREATE,i=this.transition.router.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(ec(wa,`broken event named: ${t.name}`)).reduce(Za,[]).filter((t=>t.matches(e,n)))}}class tl{constructor(t){if(t instanceof tl){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Ra({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map((t=>t.clone()))}}clone(){return new tl(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return rc(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return za(this.paramSchema,ea("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Nc.changed(n,this.paramValues,t.paramValues)}}tl.clone=t=>t.clone();class el{static makeTargetState(t,e){const n=ic(e).state;return new Gc(t,n,e.map(ta("paramValues")).reduce(Ua,{}),{})}static buildPath(t){const e=t.params();return t.$state().path.map((t=>new tl(t).applyRawParams(e)))}static buildToPath(t,e){const n=el.buildPath(e);return e.options().inherit?el.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>Ma(n,t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=el.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(Za,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(Za,[]).filter((t=>!t.inherit)).map(ta("id"));return e.map((function(e){let i=Ra({},e&&e.paramValues);const s=Ha(i,n);i=Fa(i,n);const o=Fa(function(t,e){const n=za(t,ea("state",e));return Ra({},n&&n.paramValues)}(t,e.state)||{},r),a=Ra(i,o,s);return new tl(e.state).applyRawParams(a)}))}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let i=0;for(;i<r&&t[i].state!==n&&(s=t[i],o=e[i],s.equals(o,el.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return nc(t,e).reduce(((t,[e,i])=>(r=r||!e.equals(i,n),r?t:t.concat(e))),[])}static equals(t,e,n){return t.length===e.length&&el.matching(t,e,n).length===t.length}static subPath(t,e){const n=za(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}}el.nonDynamicParams=t=>t.state.parameters({inherit:!1}).filter((t=>!t.dynamic)),el.paramValues=t=>t.reduce(((t,e)=>Ra(t,e.paramValues)),{});let nl="LAZY",rl="WAIT";class il{constructor(t,e,n,r,i){if(this.resolved=!1,this.promise=void 0,t instanceof il)j(this,t);else if(ma(e)){if($a(t))throw new Error("new Resolvable(): token argument is required");if(!ma(e))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Zo.$q.when(this.data):void 0}else if(ya(t)&&t.token&&(t.hasOwnProperty("resolveFn")||t.hasOwnProperty("data"))){const e=t;return new il(e.token,e.resolveFn,e.deps,e.policy,e.data)}}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||nl,async:e.async||n.async||rl}}resolve(t,e){const n=Zo.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=ma(s)?s:U;return this.promise=n.when().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Oc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${mc(this.token)}, requires: [${this.deps.map(mc)}])`}clone(){return new il(this)}}il.fromData=(t,e)=>new il(t,(()=>e),null,null,e);let sl={LAZY:"LAZY",EAGER:"EAGER"};const ol=sl,al=[ol.EAGER,ol.LAZY],cl=[ol.EAGER];class ll{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(Xa,[])}getResolvable(t){return ic(this._path.map((t=>t.resolvables)).reduce(Za,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e.state)}subContext(t){return new ll(el.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=za(this._path,ea("state",e)),r=t.map((t=>t.token));n.resolvables=n.resolvables.filter((t=>-1===r.indexOf(t.token))).concat(t)}resolvePath(t="LAZY",e){const n=(Ma(al,t)?t:"LAZY")===sl.EAGER?cl:al;Oc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>Ma(t,this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter(ra(r(["NOWAIT"],"async"))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Zo.$q.all(i)}injector(){return this._injector||(this._injector=new ul(this))}findNode(t){return za(this._path,(e=>Ma(e.resolvables,t)))}getDependencies(t){const e=this.findNode(t),n=(el.subPath(this._path,(t=>t===e))||this._path).reduce(((t,e)=>t.concat(e.resolvables)),[]).filter((e=>e!==t));return t.deps.map((t=>{const e=n.filter((e=>e.token===t));if(e.length)return ic(e);const r=this.injector().getNative(t);if(m(r))throw new Error("Could not find Dependency Injection token: "+mc(t));return new il(t,(()=>r),[],r)}))}}class ul{constructor(t){this.context=t,this.native=this.get("Native Injector")||Zo.$injector}get(t){const e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+mc(e.token));return e.data}return this.getNative(t)}getAsync(t){const e=this.context.getResolvable(t);return e?e.get(this.context):Zo.$q.when(this.native.get(t))}getNative(t){return this.native&&this.native.get(t)}}const hl=ta("self");class dl{onBefore(t,e,n){}onStart(t,e,n){}onExit(t,e,n){}onRetain(t,e,n){}onEnter(t,e,n){}onFinish(t,e,n){}onSuccess(t,e,n){}onError(t,e,n){}createTransitionHookRegFns(){this.router.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==zc.CREATE)).forEach((t=>Qc(this,this.router.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}constructor(t,e,n){if(this._deferred=Zo.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new Xc(this),this.isActive=()=>this.router.globals.transition===this,this.router=n,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Ra({current:ca(this)},e.options()),this.$id=n.transitionService._transitionCount++;const r=el.buildToPath(t,e);this._treeChanges=el.treeChanges(t,r,this._options.reloadState),this.createTransitionHookRegFns();const i=this._hookBuilder.buildHooksForPhase(zc.CREATE);Jc.invokeHooks(i,(()=>null)),this.applyViewConfigs(n)}applyViewConfigs(t){const e=this._treeChanges.entering.map((t=>t.state));el.applyViewConfigs(t.transitionService.$view,this._treeChanges.to,e)}$from(){return ic(this._treeChanges.from).state}$to(){return ic(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof dl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!Zc(this.$to(),t.to,this)||t.from&&!Zc(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(ta("paramValues")).reduce(Ua,{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(Ya,[]).reduce(Xa,[]);return Nc.changed(n,t,e).reduce(((t,n)=>(t[n.id]=e[n.id],t)),{})}injector(t,e="to"){let n=this._treeChanges[e];return t&&(n=el.subPath(n,(e=>e.state===t||e.state.name===t))),new ll(n).injector()}getResolveTokens(t="to"){return new ll(this._treeChanges[t]).getTokens()}addResolvable(t,e=""){t=aa(il)(t)?t:new il(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=za(r,(t=>t.state.name===n));new ll(r).addResolvables([t],i.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return Ga(this._treeChanges.entering,ta("state")).map(hl)}exiting(){return Ga(this._treeChanges.exiting,ta("state")).map(hl).reverse()}retained(){return Ga(this._treeChanges.retained,ta("state")).map(hl)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(ea("state",e)):n,n.map(ta("views")).filter(Na).reduce(Za,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Ra({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.router.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;var c;return el.matching(a,o,el.nonDynamicParams).filter(ra((c=t.options().reloadState,t=>c&&t.state.includes[c.name]))).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(nc(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(Ja,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return nc(e,n,r).map((([t,e,n])=>Nc.changed(t,e,n))).reduce(Za,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(Ja,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.router.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=el.matching(t,n);return t.length===r.filter((t=>!e||!t.state.includes[e.name])).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=Jc.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(zc.BEFORE);return Jc.invokeHooks(n,(()=>{const t=this.router.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Oc.traceTransitionStart(this),Zo.$q.when(void 0)})).then((()=>{const t=e(zc.RUN);return Jc.invokeHooks(t,(()=>Zo.$q.when(void 0)))})).then((()=>{Oc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(zc.SUCCESS))}),(n=>{Oc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(zc.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){da(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return hc.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter((t=>!t.validates(n[t.id])));if(r.length){const e=r.map((t=>`[${t.id}:${mc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return hc.invalid(i)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:Fa(t,["#"]);return`Transition#${this.$id}( '${ya(t)?t.name:t}'${mc(n(this._treeChanges.from.map(ta("paramValues")).reduce(Ua,{})))} -> ${this.valid()?"":"(X) "}'${ya(e)?e.name:e}'${mc(n(this.params()))} )`}}function pl(t){t.addResolvable(il.fromData(cu,t.router),""),t.addResolvable(il.fromData(dl,t),""),t.addResolvable(il.fromData("$transition$",t),""),t.addResolvable(il.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(il.fromData("$state$",e),e)}))}dl.diToken=dl;const fl=Ma(["$transition$",dl]),$l=t=>{const e=Object.values(t.treeChanges()).reduce(Za,[]).reduce(Xa,[]),n=t=>fl(t.token)?il.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))},ml=t=>{const e=t.to().redirectTo;if(!e)return;const n=t.router.stateService;function r(e){if(e)return e instanceof Gc?e:va(e)?n.target(e,t.params(),t.options()):e.state||e.params?n.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return ma(e)?Zo.$q.when(e(t)).then(r):r(e)};function gl(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const vl=gl("onExit"),yl=gl("onRetain"),wl=gl("onEnter"),bl=1e3,El=t=>new ll(t.treeChanges().to).resolvePath("EAGER",t).then(Pa),Cl=(t,e)=>new ll(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(Pa),xl=t=>new ll(t.treeChanges().to).resolvePath("LAZY",t).then(Pa),Sl=t=>{const e=Zo.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.when(t.load())))).then(Pa)},Ol=t=>{const e=t.views("entering"),n=t.views("exiting");if(!e.length&&!n.length)return;const r=t.router.viewService;n.forEach((t=>r.deactivateViewConfig(t))),e.forEach((t=>r.activateViewConfig(t))),r.sync()},kl=t=>{const e=t.router.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},(()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,sc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)},_l=t=>{const e=t.options(),n=t.router.stateService,r=t.router.urlRouter;if("url"!==e.source&&e.location&&n.$current.navigable){const t={replace:"replace"===e.location};r.push(n.$current.navigable.url,n.params,t)}r.update(!0)},Tl=t=>{const e=t.router;const n=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Al(t,e)));return Zo.$q.all(n).then((function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.stateService.target(n.identifier(),n.params(),n.options())}const n=e.urlService,r=n.match(n.parts()),i=r&&r.rule;if(i&&"STATE"===i.type){const n=i.state,s=r.match;return e.stateService.target(n,s,t.options())}e.urlService.sync()}))};function Al(t,e){const n=e.$$state().lazyLoad;let r=n._promise;if(!r){const i=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete n._promise,t),s=t=>(delete n._promise,Zo.$q.reject(t));r=n._promise=Zo.$q.when(n(t,e)).then((function(e){e&&Array.isArray(e.states)&&e.states.forEach((e=>t.router.stateRegistry.register(e)));return e})).then(i,s)}return r}class Rl{constructor(t,e,n,r,i=!1,s=Jc.HANDLE_RESULT,o=Jc.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=a}}function Vl(t){const e=t._ignoredReason();if(!e)return;Oc.traceTransitionIgnored(t);const n=t.router.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),hc.ignored().toPromise()}function Nl(t){if(!t.valid())throw new Error(t.error().toString())}let Pl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Dl{constructor(t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=t,this.$view=t.viewService,this._deregisterHookFns={},this._pluginapi=Da(ca(this),{},ca(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.globals.successfulTransitions.onEvict($l)}onCreate(t,e,n){}onBefore(t,e,n){}onStart(t,e,n){}onExit(t,e,n){}onRetain(t,e,n){}onEnter(t,e,n){}onFinish(t,e,n){}onSuccess(t,e,n){}onError(t,e,n){}dispose(t){Object.values(this._registeredHooks).forEach((t=>t.forEach((e=>{e._deregistered=!0,Ia(t,e)}))))}create(t,e){return new dl(t,e,this._router)}_defineCoreEvents(){const t=zc,e=Jc,n=this._criteriaPaths,r=!1,i=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=Wc;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,i=!1,s=Jc.HANDLE_RESULT,o=Jc.REJECT_ERROR,a=!1){const c=new Rl(t,e,n,r,i,s,o,a);this._eventTypes.push(c),Qc(this,this,c)}_getEvents(t){return(pa(t)?this._eventTypes.filter((e=>e.hookPhase===t)):this._eventTypes.slice()).sort(((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=this.onCreate({},pl),t.ignored=(t=>t.onBefore({},Vl,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Nl,{priority:-1e4}))(this),t.redirectTo=(t=>t.onStart({to:t=>!!t.redirectTo},ml))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},vl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},yl))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},wl))(this),t.eagerResolve=(t=>t.onStart({},El,{priority:bl}))(this),t.lazyResolve=(t=>t.onEnter({entering:ca(!0)},Cl,{priority:bl}))(this),t.resolveAll=(t=>t.onFinish({},xl,{priority:bl}))(this),t.loadViews=(t=>t.onFinish({},Sl))(this),t.activateViews=(t=>t.onSuccess({},Ol))(this),t.updateGlobals=(t=>t.onCreate({},kl))(this),t.updateUrl=(t=>t.onSuccess({},_l,{priority:9999}))(this),t.lazyLoad=(t=>t.onBefore({entering:t=>!!t.lazyLoad},Tl))(this)}}class jl{static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=va(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce(((t,e)=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{uiViewName:r,uiViewContextAnchor:i}}constructor(t){this.router=t,this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>za(this._uiViews,(e=>`${this.router.$id}.${e.id}`===t)),_registeredUIViews:()=>this._uiViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>Ia(this._listeners,t))}}_rootViewContext(t){return this._rootContext=t||this._rootContext}_viewConfigFactory(t,e){this._viewConfigFactories[t]=e}createViewConfig(t,e){const n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);const r=n(t,e);return wa(r)?r:[r]}deactivateViewConfig(t){Oc.traceViewServiceEvent("<- Removing",t),Ia(this._viewConfigs,t)}activateViewConfig(t){Oc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._uiViews.map((t=>[t.fqn,t])).reduce(rc,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=Yo(((t,e,n,r)=>e*(t(n)-t(r)))),r=this._uiViews.sort(n((function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((r=>{const i=this._viewConfigs.filter(jl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{uiView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!Ma(i,t))).map((t=>({uiView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._uiViews.indexOf(t.uiView)&&t.uiView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Oc.traceViewSync(o)}registerUIView(t){Oc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._uiViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Oc.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Oc.traceViewServiceUIViewEvent("<- Deregistering",t),Ia(e)(t)):Oc.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t)}}available(){return this._uiViews.map(ta("fqn"))}active(){return this._uiViews.filter(ta("$config")).map(ta("name"))}}jl.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,i=r.$uiViewName.split("."),s=e.fqn.split(".");if(!Va(i,s.slice(0-i.length)))return!1;const o=1-i.length||void 0,a=s.slice(0,o).join("."),c=t[a].creationContext;return r.$uiViewContextAnchor===(c&&c.name)};class Ml{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=va(t);let i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));const s=this._states[i];if(s&&(r||!(r||s!==t&&s.self!==t)))return s;if(r&&n){const t=Object.values(this._states).filter((t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)));return t.length>1&&yc.error(`stateMatcher.find: Found multiple matches for ${i} using glob: `,t.map((t=>t.name))),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),i=r.length;let s=0,o=n;for(;s<i;s++)if(""!==r[s]||0!==s){if("^"!==r[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(s).join(".");return o.name+(o.name&&a?".":"")+a}}function Il(t){return t.name}function Ll(t){return t.self.$$state=()=>t,t.self}function ql(t){return t.parent&&t.parent.data&&(t.data=t.self.data=ja(t.parent.data,t.data)),t.data}const Ul=(t,e)=>function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};sc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=(t=>{if(!va(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}})(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)},Hl=t=>function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null};function Fl(t){return t.parent?t.parent.path.concat(t):[t]}function Bl(t){const e=t.parent?Ra({},t.parent.includes):{};return e[t.name]=!0,e}function zl(t){const e=t=>t.provide||t.token,n=la([[ta("resolveFn"),t=>new il(e(t),t.resolveFn,t.deps,t.policy)],[ta("useFactory"),t=>new il(e(t),t.useFactory,t.deps||t.dependencies,t.policy)],[ta("useClass"),t=>new il(e(t),(()=>new t.useClass),[],t.policy)],[ta("useValue"),t=>new il(e(t),(()=>t.useValue),[],t.policy,t.useValue)],[ta("useExisting"),t=>new il(e(t),Na,[t.useExisting],t.policy)]]),r=la([[Xo(ta("val"),va),t=>new il(t.token,Na,[t.val],t.policy)],[Xo(ta("val"),wa),t=>new il(t.token,ic(t.val),t.val.slice(0,-1),t.policy)],[Xo(ta("val"),ma),t=>new il(t.token,t.val,(t=>{const e=Zo.$injector;return t.$inject||e&&e.annotate(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),i=la([[aa(il),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass)),n],[t=>!!(t&&t.val&&(va(t.val)||wa(t.val)||ma(t.val))),r],[ca(!0),t=>{throw new Error("Invalid resolve value: "+mc(t))}]]),s=t.resolve,o=wa(s)?s:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(s,t.resolvePolicy||{});return o.map(i)}class Wl{constructor(t,e){this.matcher=t;const n=this,r=()=>t.find(""),i=t=>""===t.name;var s;this.builders={name:[Il],self:[Ll],parent:[function(e){return i(e)?null:t.find(n.parentName(e))||r()}],data:[ql],url:[Ul(e,r)],navigable:[Hl(i)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(Wa(Fa(t.params||{},e.map(ta("id"))),((e,n)=>s.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(rc,{})})],views:[],path:[Fl],includes:[Bl],resolvables:[zl]}}builder(t,e){const n=this.builders,r=n[t]||[];return va(t)&&!pa(e)?r.length>1?r:r[0]:va(t)&&ma(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e].reduce(((t,e)=>n=>e(n,t)),Pa);t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?va(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=va(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}class Gl{constructor(t,e,n,r){this.router=t,this.states=e,this.builder=n,this.listeners=r,this.queue=[]}dispose(){this.queue=[]}register(t){const e=this.queue,n=Uc.create(t),r=n.name;if(!va(r))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,r)||Ma(e.map(ta("name")),r))throw new Error(`State '${r}' is already defined`);return e.push(n),this.flush(),n}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>this.states.hasOwnProperty(t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.router.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.router.urlService.rules;e.rule(e.urlRuleFactory.create(t))}}class Kl{constructor(t){this.router=t,this.states={},this.listeners=[],this.matcher=new Ml(this.states),this.builder=new Wl(this.matcher,t.urlMatcherFactory),this.stateQueue=new Gl(t,this.states,this.builder,this.listeners),this._registerRoot()}_registerRoot(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}dispose(){this.stateQueue.dispose(),this.listeners=[],this.get().forEach((t=>this.get(t)&&this.deregister(t)))}onStatesChanged(t){return this.listeners.push(t),function(){Ia(this.listeners)(t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map((t=>t.$$state())),n=t=>{const r=e.filter((e=>-1!==t.indexOf(e.parent)));return 0===r.length?r:r.concat(n(r))},r=n([t]),i=[t].concat(r).reverse();return i.forEach((t=>{const e=this.router.urlService.rules;e.rules().filter(ea("state",t)).forEach((t=>e.removeRule(t))),delete this.states[t.name]})),i}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach((t=>t("deregistered",n.map((t=>t.self))))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map((t=>this.states[t].self));const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}class Jl{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=La(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Zl{get transition(){return this.router.globals.transition}get params(){return this.router.globals.params}get current(){return this.router.globals.current}get $current(){return this.router.globals.$current}constructor(t){this.router=t,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof hc?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};const e=Object.keys(Zl.prototype).filter(ra(Ma(["current","$current","params","transition"])));Da(ca(Zl.prototype),this,ca(this),e)}dispose(){this.defaultErrorHandler(Pa),this.invalidCallbacks=[]}_handleInvalidTargetState(t,e){const n=el.makeTargetState(this.router.stateRegistry,t),r=this.router.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Jl(this.invalidCallbacks.slice()),a=new ll(t).injector(),c=t=>{if(!(t instanceof Gc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?hc.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):hc.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?hc.invalid(e.error()).toPromise():Zo.$q.when(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ia(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.current,this.params,{reload:!pa(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=qa(n,{relative:this.$current,inherit:!0},Pl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(ya(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${va(n.reload)?n.reload:n.reload.name}'`);return new Gc(this.router.stateRegistry,t,e,n)}getCurrentPath(){const t=this.router.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new tl(this.router.stateRegistry.root())])()}transitionTo(t,e={},n={}){const r=this.router,i=r.globals;n=qa(n,Pl);const s=()=>i.transition;n=Ra(n,{current:s});const o=this.target(t,e,n),a=this.getCurrentPath();if(!o.exists())return this._handleInvalidTargetState(a,o);if(!o.valid())return cc(o.error());if(!1===n.supercede&&s())return hc.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=>e=>{if(e instanceof hc){const n=r.globals.lastStartedTransitionId<=t.$id;if(e.type===lc.IGNORED)return n&&r.urlRouter.update(),Zo.$q.when(i.current);const s=e.detail;if(e.type===lc.SUPERSEDED&&e.redirected&&s instanceof Gc){const e=t.redirect(s);return e.run().catch(c(e))}if(e.type===lc.ABORTED)return n&&r.urlRouter.update(),Zo.$q.reject(e)}return this.defaultErrorHandler()(e),Zo.$q.reject(e)},l=this.router.transitionService.create(a,o),u=l.run().catch(c(l));return ac(u),Ra(u,{transition:l})}is(t,e,n){n=qa(n,{relative:this.$current});const r=this.router.stateRegistry.matcher.find(t,n.relative);if(!pa(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return Nc.equals(i,Nc.values(i,e),this.params)}includes(t,e,n){n=qa(n,{relative:this.$current});const r=va(t)&&qc.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const i=this.router.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(!pa(i))return;if(!pa(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return Nc.equals(o,Nc.values(o,e),this.params)}href(t,e,n){n=qa(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.router.stateRegistry.matcher.find(t,n.relative);if(!pa(r))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,r));const i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.router.urlRouter.href(i.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),i=el.makeTargetState(this.router.stateRegistry,r);return Al(e=e||this.router.transitionService.create(r,i),n)}}class Yl{constructor(t={}){Ra(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),i={},s=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||s.indexOf(n[t])>=0||(s.push(n[t]),i[n[t]]=this[n[t]])}return Ra({},i,t)}}class Ql{constructor(){this.params=new Yl,this.lastStartedTransitionId=-1,this.transitionHistory=new Jl([],1),this.successfulTransitions=new Jl([],1)}dispose(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null}}let Xl;function tu(t){if(!(ma(t)||va(t)||aa(Gc)(t)||Gc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return ma(t)?t:ca(t)}Xl=(t,e)=>{let n=((t,e)=>(e.priority||0)-(t.priority||0))(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?Mc.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))};class eu{constructor(t){this.router=t,this._sortFn=Xl,this._rules=[],this._id=0,this.urlRuleFactory=new Hc(t)}dispose(t){this._rules=[],delete this._otherwiseFn}initial(t){const e=tu(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=tu(t);this._otherwiseFn=this.urlRuleFactory.create(ca(!0),e),this._sorted=!1}removeRule(t){Ia(this._rules,t)}rule(t){if(!Hc.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map(((t,e)=>({elem:t,idx:e})));return n.sort(((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((t=>t.elem))}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return pa(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class nu{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ha(nu.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=ja(Ga(this.defaultTypes,((t,e)=>new kc(Ra({name:e},t)))),{})}dispose(){this.types={}}type(t,e,n){if(!pa(e))return this.types[t];if(this.types.hasOwnProperty(t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new kc(Ra({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Ra(this.types[t.name],Zo.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:aa(String),pattern:/.*/,equals:(t,e)=>t==e};return Ra({},n,t)};Ra(nu.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!$a(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:aa(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!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:Ta,decode:_a,is:aa(Object),equals:Va,pattern:/[^/]*/}),any:t({encode:Na,decode:Na,is:()=>!0,equals:Va})})}();class ru{constructor(t){this.router=t,this.paramTypes=new nu,this._decodeParams=!0,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this.dispose=()=>this.paramTypes.dispose(),this.baseHref=()=>this.router.locationConfig.baseHref(),this.hashPrefix=t=>this.router.locationConfig.hashPrefix(t),this.host=()=>this.router.locationConfig.host(),this.html5Mode=()=>this.router.locationConfig.html5Mode(),this.port=()=>this.router.locationConfig.port(),this.protocol=()=>this.router.locationConfig.protocol()}caseInsensitive(t){return this._isCaseInsensitive=g(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(g(t)&&!0!==t&&!1!==t&&!y(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=g(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=g(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return g(e)?this:r}}class iu{constructor(t){this.router=t,this.interceptDeferred=!1,this.rules=new eu(this.router),this.config=new ru(this.router),this.url=(t,e,n)=>this.router.locationService.url(t,e,n),this.path=()=>this.router.locationService.path(),this.search=()=>this.router.locationService.search(),this.hash=()=>this.router.locationService.hash(),this.onChange=t=>this.router.locationService.onChange(t)}dispose(){this.listen(!1),this.rules.dispose()}parts(){return{path:this.path(),search:this.search(),hash:this.hash()}}sync(t){if(t&&t.defaultPrevented)return;const{urlService:e,stateService:n}=this.router,r={path:e.path(),search:e.search(),hash:e.hash()},i=this.match(r);la([[y,t=>e.url(t,!0)],[Gc.isDef,t=>n.go(t.state,t.params,t.options)],[aa(Gc),t=>n.go(t.state(),t.params(),t.options())]])(i&&i.rule.handler(i.match,r,this.router))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.router.urlService.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}deferIntercept(t){void 0===t&&(t=!0),this.interceptDeferred=t}match(t){t=j({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t,this.router);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}}let su=0;const ou=Jo("LocationServices",["url","path","search","hash","onChange"]),au=Jo("LocationConfig",["port","protocol","host","baseHref","html5Mode","hashPrefix"]);class cu{constructor(t=ou,e=au){this.locationService=t,this.locationConfig=e,this.$id=su++,this._disposed=!1,this._disposables=[],this.trace=Oc,this.viewService=new jl(this),this.globals=new Ql,this.transitionService=new Dl(this),this.urlMatcherFactory=new Lc(this),this.urlRouter=new Bc(this),this.urlService=new iu(this),this.stateRegistry=new Kl(this),this.stateService=new Zl(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlService),this.disposable(t),this.disposable(e)}disposable(t){this._disposables.push(t)}dispose(t){t&&ma(t.dispose)?t.dispose(this):(this._disposed=!0,this._disposables.slice().forEach((t=>{try{"function"==typeof t.dispose&&t.dispose(this),Ia(this._disposables,t)}catch(t){}})))}plugin(t,e={}){const n=new t(this,e);if(!n.name)throw new Error("Required property `name` missing on plugin: "+n);return this._disposables.push(n),this._plugins[n.name]=n}getPlugin(t){return t?this._plugins[t]:Object.values(this._plugins)}}const lu=(t,e)=>t.reduce(((t,n)=>t||g(e[n])),!1);function uu(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(g(t.views)&&lu(r,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): ${r.filter((e=>g(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Ha(t,r)};return Aa(s,(function(r,s){if(s=s||"$default",y(r)&&(r={component:r}),r=Ra({},r),lu(e,r)&&lu(n,r))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${s}@${t.name}'`);r.resolveAs=r.resolveAs||"$resolve",r.$type="ng1",r.$context=t,r.$name=s;const o=jl.normalizeUIViewTarget(r.$context,r.$name);r.$uiViewName=o.uiViewName,r.$uiViewContextAnchor=o.uiViewContextAnchor,i[s]=r})),i}let hu=0;class du{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.$id=hu++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Zo.$q,e=new ll(this.path),n=this.path.reduce(((t,e)=>Ra(t,e.paramValues)),{}),r={template:t.when(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.when(this.getController(e))};return t.all(r).then((t=>(Oc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Ra(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!Ca(e))return this.viewDecl.controller;const n=Zo.$injector.annotate(e),r=E(e)?ic(e):e;return new il("",r,n).get(t)}}class pu{constructor(t,e){this.stateRegistry=t,this.stateService=e,Da(ca(pu.prototype),this,ca(this))}decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t,e){return v(t)?e=t:e.name=t,this.stateRegistry.register(e),this}onInvalid(t){return this.stateService.onInvalid(t)}}const fu=t=>function(e){const n=e[t],r="onExit"===t?"from":"to";return n?function(t,e){const i=new ll(t.treeChanges(r)).subContext(e.$$state()),s=j(Eu(i),{$state$:e,$transition$:t});return Zo.$injector.invoke(n,this,s)}:void 0};class $u{static monkeyPatchPathParameterType(t){const e=t.urlMatcherFactory.type("path");e.encode=t=>null!=t?t.toString().replace(/(~|\/)/g,(t=>({"~":"~~","/":"~2F"}[t]))):t,e.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,(t=>({"~~":"~","~2F":"/"}[t]))):t}dispose(){}constructor(t){this._urlListeners=[],this.$locationProvider=t;const e=ca(t);Da(e,this,e,["hashPrefix"])}onChange(t){return this._urlListeners.push(t),()=>Ia(this._urlListeners)(t)}html5Mode(){let t=this.$locationProvider.html5Mode();return t=v(t)?t.enabled:t,t&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)}url(t,e=!1,n){return g(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}_runtimeServices(t,e,n){this.$location=e,this.$browser=n,this.$window=window,t.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t)))));const r=ca(e);Da(r,this,r,["replace","path","search","hash"]),Da(r,this,r,["port","protocol","host"])}}let mu=null;function gu(t){mu=this.router=new cu,mu.stateProvider=new pu(mu.stateRegistry,mu.stateService),mu.stateRegistry.decorator("views",uu),mu.stateRegistry.decorator("onExit",fu("onExit")),mu.stateRegistry.decorator("onRetain",fu("onRetain")),mu.stateRegistry.decorator("onEnter",fu("onEnter")),mu.viewService._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Zo.$injector.get("$templateFactory"),[new du(e,n,t)])}()),mu.urlService.config._decodeParams=!1;const e=mu.locationService=mu.locationConfig=new $u(t);function n(t,n,r){return e._runtimeServices(r,t,n),delete mu.router,delete mu.$get,mu}return $u.monkeyPatchPathParameterType(mu),mu.router=mu,mu.$get=n,n.$inject=["$location","$browser","$rootScope"],mu}gu.$inject=["$locationProvider"];const vu=t=>["$uiRouterProvider",function(e){const n=e.router[t];return n.$get=()=>n,n}];function yu(t,e,n){if(Zo.$injector=t,Zo.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke((function(t){}))}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.stateRegistry.get().map((t=>t.$$state().resolvables)).reduce(Za,[]).filter((t=>"deferred"===t.deps)).forEach((e=>e.deps=t.annotate(e.resolveFn,t.strictDi)))}function wu(){return j(mu.stateProvider,{$get:()=>mu.stateService})}function bu(t){t.$watch((function(){Oc.approximateDigests++}))}yu.$inject=["$injector","$q","$uiRouter"],bu.$inject=["$rootScope"];const Eu=t=>t.getTokens().filter(y).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(rc,{});class Cu{constructor(){this._useHttp=!0,this.$get=["$http","$templateCache","$injector",(t,e,n)=>(this.$templateRequest=n.has&&n.has("$templateRequest")&&n.get("$templateRequest"),this.$http=t,this.$templateCache=e,this)]}useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>Zo.$q.when(t).then((t=>({template:t}))),i=t=>Zo.$q.when(t).then((t=>({component:t})));return pa(t.template)?r(this.fromString(t.template,e)):pa(t.templateUrl)?r(this.fromUrl(t.templateUrl,e)):pa(t.templateProvider)?r(this.fromProvider(t.templateProvider,e,n)):pa(t.component)?i(t.component):pa(t.componentProvider)?i(this.fromComponentProvider(t.componentProvider,e,n)):r("<ui-view></ui-view>")}fromString(t,e){return ma(t)?t(e):t}fromUrl(t,e){return ma(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)}fromProvider(t,e,n){const r=Zo.$injector.annotate(t),i=wa(t)?ic(t):t;return new il("",i,r).get(n)}fromComponentProvider(t,e,n){const r=Zo.$injector.annotate(t),i=wa(t)?ic(t):t;return new il("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=pc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Zo.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(xu).reduce(Za,[])}(n).map((n=>{const{name:s,type:o}=n,a=i(s);if(t.attr(a)&&!r[s])return`${a}='${t.attr(a)}'`;const c=r[s]||s;if("@"===o)return`${a}='{{::$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&Zo.$injector.annotate(n)||[];return`${a}='$resolve.${c}${wa(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='::$resolve.${c}'`})).join(" "),o=i(n);return`<${o} ${s}></${o}>`}}const xu=t=>ya(t.bindToController)?Su(t.bindToController):Su(t.scope),Su=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>pa(t)&&wa(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Ou(){let t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}}]}function ku(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function _u(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function Tu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function Au(t){const e=t.parent().inheritedData("$uiView"),n=na("$cfg.path")(e);return n?ic(n).state.name:void 0}function Ru(t,e,n){const r=n.uiState||t.current.name,i=Ra(function(t,e){return{relative:Au(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.uiStateOpts||{}),s=t.href(r,n.uiStateParams,i);return{uiState:r,uiStateParams:n.uiStateParams,uiStateOpts:i,href:s}}function Vu(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t[0].getAttribute("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t[0].nodeName,clickable:!n}}function Nu(t,e,n,r,i){return function(s){const o=s.which||s.button,a=i();if(!(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.attr("target"))){const i=n((function(){t.attr("disabled")||e.go(a.uiState,a.uiStateParams,a.uiStateOpts)}));s.preventDefault();let o=r.isAnchor&&!a.href?1:0;s.preventDefault=function(){o--<=0&&n.cancel(i)}}}}function Pu(t,e,n,r){let i;r&&(i=r.events),wa(i)||(i=["click"]);const s=t.on?"on":"bind";for(const e of i)t[s](e,n);e.$on("$destroy",(function(){const e=t.off?"off":"unbind";for(const r of i)t[e](r,n)}))}ku.$inject=["$state"],_u.$inject=["$state"];let Du=["$uiRouter","$timeout",function(t,e){const n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,s,o){const a=Vu(i),c=o[1]||o[0];let l=null;const u={},h=()=>Ru(n,i,u),d=Tu(s.uiSref);function p(){const t=h();l&&l(),c&&(l=c.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&s.$set(a.attr,t.href)}if(u.uiState=d.state,u.uiStateOpts=s.uiSrefOpts?r.$eval(s.uiSrefOpts):{},d.paramExpr&&(r.$watch(d.paramExpr,(function(t){u.uiStateParams=Ra({},t),p()}),!0),u.uiStateParams=Ra({},r.$eval(d.paramExpr))),p(),r.$on("$destroy",t.stateRegistry.onStatesChanged(p)),r.$on("$destroy",t.transitionService.onSuccess({},p)),!a.clickable)return;const f=Nu(i,n,e,a,h);Pu(i,r,f,u.uiStateOpts)}}}],ju=["$uiRouter","$timeout",function(t,e){const n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,s,o){const a=Vu(i),c=o[1]||o[0];let l,u=null;const h={},d=()=>Ru(n,i,h),p=["uiState","uiStateParams","uiStateOpts"],f=p.reduce(((t,e)=>(t[e]=Pa,t)),{});function $(){const t=d();u&&u(),c&&(u=c.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&s.$set(a.attr,t.href)}p.forEach((t=>{h[t]=s[t]?r.$eval(s[t]):null,s.$observe(t,(e=>{f[t](),f[t]=r.$watch(e,(e=>{h[t]=e,$()}),!0)}))})),$(),r.$on("$destroy",t.stateRegistry.onStatesChanged($)),r.$on("$destroy",t.transitionService.onSuccess({},$)),a.clickable&&(l=Nu(i,n,e,a,d),Pu(i,r,l,h.uiStateOpts))}}}],Mu=["$state","$stateParams","$interpolate","$uiRouter",function(t,e,n,r){return{restrict:"A",controller:["$scope","$element","$attrs",function(e,i,s){let o,a,c=[];o=n(s.uiSrefActiveEq||"",!1)(e);try{a=e.$eval(s.uiSrefActive)}catch(t){}function l(t){t.promise.then(p,Pa)}function u(){h(a)}function h(t){ya(t)&&(c=[],Aa(t,(function(t,n){const r=function(t,n){const r=Tu(t);d(r.state,e.$eval(r.paramExpr),n)};va(t)?r(t,n):wa(t)&&Aa(t,(function(t){r(t,n)}))})))}function d(e,n,r){const s={state:t.get(e,Au(i))||{name:e},params:n,activeClass:r};return c.push(s),function(){Ia(c)(s)}}function p(){const n=t=>t.split(/\s/).filter(Na),r=t=>t.map((t=>t.activeClass)).map(n).reduce(Za,[]),s=r(c).concat(n(o)).reduce(Xa,[]),a=r(c.filter((e=>t.includes(e.state.name,e.params)))),l=!!c.filter((e=>t.is(e.state.name,e.params))).length?n(o):[],u=a.concat(l).reduce(Xa,[]),h=s.filter((t=>!Ma(u,t)));e.$evalAsync((()=>{u.forEach((t=>i[0].classList.add(t))),h.forEach((t=>i[0].classList.remove(t)))}))}a=a||n(s.uiSrefActive||"",!1)(e),h(a),this.$$addStateInfo=function(t,e){if(ya(a)&&c.length>0)return;const n=d(t,e,a);return p(),n},e.$on("$destroy",function(){const t=r.stateRegistry.onStatesChanged(u),n=r.transitionService.onStart({},l),i=e.$on("$stateChangeSuccess",p);return function(){t(),n(),i()}}()),r.globals.transition&&l(r.globals.transition),p()}]}}],Iu=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$uiView:{}},o={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n,r)},leave:function(t,n){e.leave(t,n)}},f=c.inheritedData("$uiView")||s,$=r(u.uiView||u.name||"")(a)||"$default";let m,g,v,y;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$uiView.fqn?f.$uiView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof du))return;if(e=y,n=t,e===n)return;var e,n;Oc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),y=t,E(t)},get creationContext(){const t=na("$cfg.viewDecl.$context")(f),e=na("$uiView.creationContext")(f);return t||e}};Oc.traceUIViewEvent("Linking",w),c.data("$uiView",{$uiView:w}),E();const b=t.registerUIView(w);function E(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$uiView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$uiViewAnim",u),t.data("$uiView",o),p.enter(t,c,(function(){r.resolve(),v&&v.$emit("$viewContentAnimationEnded"),(pa(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Oc.traceUIViewEvent("Removing (previous) el",m.data("$uiView")),m.remove(),m=null),v&&(Oc.traceUIViewEvent("Destroying scope",w),v.$destroy(),v=null),g){const t=g.data("$uiViewAnim");Oc.traceUIViewEvent("Animate out",t),p.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,v=e,v.$emit("$viewContentLoaded",t||y),v.$eval(h)}a.$on("$destroy",(function(){Oc.traceUIViewEvent("Destroying/Unregistering",w),b()}))}}};return o}];function Lu(t,e,n,r,i){const s=na("viewDecl.controllerAs"),o=na("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$uiView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:Pa},h=u.path&&new ll(u.path);c.html(u.getTemplate(c,h)||a),Oc.traceUIViewFill(l.$uiView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&Eu(h);if(r[$]=m,p){const t=e(p,Ra({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Uu(i,n,t,r,u)}if(va(u.component)){const t=pc(u.component),e=new RegExp(`^(x-|data-)?${t}$`,"i"),s=()=>{const t=[].slice.call(c[0].children).filter((t=>t&&t.tagName&&e.exec(t.tagName)));return t&&Lt(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Uu(i,n,t,r,u),o())}))}d(r)}}}}Lu.$inject=["$compile","$controller","$transitions","$view","$q"];let qu=0;function Uu(t,e,n,r,i){!ma(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=ic(i.path).state.self,o={bind:n};if(ma(n.uiOnParamsChanged)){const t=new ll(i.path).getResolvable("$transition$").data,a=e=>{if(e===t||-1!==e.exiting().indexOf(s))return;const r=e.params("to"),i=e.params("from"),o=t=>t.paramSchema,a=e.treeChanges("to").map(o).reduce(Za,[]),c=e.treeChanges("from").map(o).reduce(Za,[]),l=a.filter((t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(r[t.id],i[t.id])}));if(l.length){const t=l.map((t=>t.id)),i=Ba(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(ma(n.uiCanExit)){const i=qu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.when(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}window.angular=new class{constructor(){this.cache=Et,this.element=void 0,this.version={full:"",major:0,minor:0,dot:0,codeName:""},this.bind=nt,this.equals=J,this.element=Lt,this.extend=j,this.forEach=V,this.fromJson=st,this.toJson=it,this.identity=U,this.isArray=E,this.isDate=b,this.isDefined=g,this.isElement=B,this.isFunction=x,this.isNumber=w,this.isObject=v,this.isString=y,this.isUndefined=m,this.merge=M,this.noop=()=>{},this.errorHandlingConfig=be}bootstrap(t,e,n){v(n)||(n={});n=j({strictDi:!1},n),this.doBootstrap=function(){if((t=Lt(t)).injector()){const e=t[0]===window.document?"document":ie(t);throw ve("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"<").replace(/>/,">"))}this.bootsrappedModules=e||[],this.bootsrappedModules.unshift(["$provide",e=>{e.value("$rootElement",t)}]),n.debugInfoEnabled&&this.bootsrappedModules.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),this.bootsrappedModules.unshift("ng");const r=ge(this.bootsrappedModules,n.strictDi);return r.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((()=>{e.data("$injector",r),n(e)(t)}))}]),r};const r=/^NG_ENABLE_DEBUG_INFO!/,i=/^NG_DEFER_BOOTSTRAP!/;if(window&&r.test(window.name)&&(n.debugInfoEnabled=!0,window.name=window.name.replace(r,"")),window&&!i.test(window.name))return this.doBootstrap();window.name=window.name.replace(i,""),this.resumeBootstrap=function(t){return V(t,(function(t){e.push(t)})),this.doBootstrap()},x(this.resumeDeferredBootstrap)&&this.resumeDeferredBootstrap()}injector(t,e){return ge(t,e)}resumeBootstrap(t){return V(t,(t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}module(t,e,n){const r=mt("$injector");let i={};return Y(t,"module"),e&&Object.prototype.hasOwnProperty.call(ye,t)&&(ye[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(ye,t,(()=>{if(!e)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);const s=[],o=[],a=[],c=u("$injector","invoke","push",o),l={_invokeQueue:s,_configBlocks:o,_runBlocks:a,info(t){if(g(t)){if(!v(t))throw ve("aobj","Argument '{0}' must be an object","value");return i=t,this}return i},requires:e,name:t,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:h("$provide","decorator",o),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:c,run(t){return a.push(t),this}};return n&&c(n),l;function u(t,e,n,r){return r||(r=s),function(){return r[n||"push"]([t,e,arguments]),l}}function h(e,n,r){return r||(r=s),function(i,s){return s&&x(s)&&(s.$$moduleName=t),r.push([e,n,arguments]),l}}}))}reloadWithDebugInfo(){window.name=`NG_ENABLE_DEBUG_INFO!${window.name}`,window.location.reload()}},function(){const t=function(t){const e=mt("$injector");function n(t,e,n){return t[e]||(t[e]=n())}const r=n(t,"angular",Object);return r.$$minErr=r.$$minErr||mt,n(r,"module",(()=>{const t={};return function(r,i,s){let o={};return Y(r,"module"),i&&Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=null),n(t,r,(()=>{if(!i)throw e("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);const t=[],n=[],a=[],c=u("$injector","invoke","push",n),l={_invokeQueue:t,_configBlocks:n,_runBlocks:a,info(t){if(g(t)){if(!v(t))throw ve("aobj","Argument '{0}' must be an object","value");return o=t,this}return o},requires:i,name:r,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:h("$provide","decorator",n),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:c,run(t){return a.push(t),this}};return s&&c(s),l;function u(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),l}}function h(e,n,i){return i||(i=t),function(t,s){return s&&x(s)&&(s.$$moduleName=r),i.push([e,n,arguments]),l}}}))}}))}(window),e=t("ng",[],["$provide",function(t){t.provider({$$sanitizeUri:Bs}),t.provider("$compile",Fe).directive({a:Ge,input:In,textarea:In,form:Xe,script:Hn,select:Wn,option:Gn,ngBind:Kn,ngBindHtml:Zn,ngBindTemplate:Jn,ngClass:Qn,ngClassEven:tr,ngClassOdd:Xn,ngCloak:er,ngController:nr,ngForm:tn,ngHide:or,ngIf:ar,ngInclude:cr,ngInit:ur,ngNonBindable:hr,ngRef:pr,ngRepeat:$r,ngShow:sr,ngStyle:mr,ngSwitch:gr,ngSwitchWhen:vr,ngSwitchDefault:yr,ngOptions:Er,ngTransclude:xr,ngModel:dn,ngList:Sr,ngChange:Or,pattern:Ar,ngPattern:Ar,required:Tr,ngRequired:Tr,ngMinlength:Vr,minlength:Vr,ngMaxlength:Rr,maxlength:Rr,ngValue:Un,ngModelOptions:cn}).directive({ngInclude:lr,input:Ln}).directive(_r).directive(Me),t.provider({$anchorScroll:Dr,$animate:Hr,$animateCss:Wr,$$animateJs:qr,$$animateQueue:Ur,$$AnimateRunner:Zr,$$animateAsyncRun:Jr,$browser:zr,$cacheFactory:Yr,$controller:Se,$document:Xr,$$isDocumentHidden:ti,$exceptionHandler:ei,$filter:li,$interpolate:yi,$interval:gi,$$intervalFactory:wi,$http:Di,$httpParamSerializer:_i,$httpParamSerializerJQLike:Ti,$httpBackend:Mi,$xhrFactory:ji,$location:Xi,$log:ts,$parse:bs,$rootScope:Ns,$q:ui,$$q:hi,$sce:je,$sceDelegate:De,$$taskTrackerFactory:Ms,$templateCache:Qr,$templateRequest:qs,$timeout:Fs,$$cookieReader:Kr})}]).info({angularVersion:'"NG_VERSION_FULL"'});window.angular.module("ngAnimate",[]).directive("ngAnimateSwap",xo).directive("ngAnimateChildren",bo).factory("$$rAFScheduler",Co).provider("$$animateQueue",ko).provider("$$animateCache",Vo).provider("$$animation",Eo).provider("$animateCss",qo).provider("$$animateCssDriver",Uo).provider("$$animateJs",Ho).provider("$$animateJsDriver",Fo),Bo(),window.angular.module("ngAria",["ng"]).provider("$aria",Ko).directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",Wo,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",Wo,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",Wo,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",Wo,!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Go(r,Wo))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Go(e,Wo)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,zo))return;const s=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(i);return{post(r,i,o,a){const c=e("tabindex","tabindex",i,!1);function l(){return a.$modelValue}switch(s){case"radio":case"checkbox":n(s,i)&&i.attr("role",s),e("aria-checked","ariaChecked",i,!1)&&r.$watch(l,"radio"===s?function(){i[0].setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){i.attr("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&i.attr("tabindex",0);break;case"range":if(n(s,i)&&i.attr("role","slider"),t.config("ariaValue")){const t=!i.attr("aria-valuemin")&&(Object.prototype.hasOwnProperty.call(o,"min")||Object.prototype.hasOwnProperty.call(o,"ngMin")),e=!i.attr("aria-valuemax")&&(Object.prototype.hasOwnProperty.call(o,"max")||Object.prototype.hasOwnProperty.call(o,"ngMax")),n=!i.attr("aria-valuenow");t&&o.$observe("min",(t=>{i.attr("aria-valuemin",t)})),e&&o.$observe("max",(t=>{i.attr("aria-valuemax",t)})),n&&r.$watch(l,(t=>{i.attr("aria-valuenow",t)}))}c&&i.attr("tabindex",0)}!Object.prototype.hasOwnProperty.call(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",(()=>{i.attr("aria-required",(!!o.required).toString())})),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch((()=>a.$invalid),(t=>{i.attr("aria-invalid",(!!t).toString())}))}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",Wo,!1)}]).directive("ngMessages",(()=>({restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,zo)||e.attr("aria-live")||e.attr("aria-live","assertive")}}))).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,zo))return;const i=e(r.ngClick);return function(e,n,r){Go(n,Wo)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on("keydown",(t=>{const n=t.which||t.keyCode;13!==n&&32!==n||(-1!==Wo.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,zo)||!t.config("tabindex")||n.attr("tabindex")||Go(n,Wo)||n.attr("tabindex",0)}}]),function(){window.angular.module("ui.router.angular1",[]);const t=window.angular.module("ui.router.init",["ng"]),e=window.angular.module("ui.router.util",["ui.router.init"]),n=window.angular.module("ui.router.state",["ui.router.util","ui.router.angular1"]),r=window.angular.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]);t.provider("$uiRouter",gu),e.provider("$urlService",vu("urlService")),e.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return mu.urlMatcherFactory}]),e.provider("$templateFactory",(function(){return new Cu})),n.provider("$stateRegistry",vu("stateRegistry")).provider("$uiRouterGlobals",vu("globals")).provider("$transitions",vu("transitionService")).provider("$state",["$uiRouterProvider",wu]).provider("$uiViewScroll",Ou).factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]).filter("isState",ku).filter("includedByState",_u).directive("uiSref",Du).directive("uiSrefActive",Mu).directive("uiSrefActiveEq",Mu).directive("uiState",ju).directive("uiView",Iu).directive("uiView",Lu),r.factory("$view",(function(){return mu.viewService})),r.service("$trace",(function(){return Oc})),r.run(bu),e.run(["$urlMatcherFactory",function(){}]),n.run(["$state",function(){}]),t.run(yu)}()}(),document.addEventListener("DOMContentLoaded",(()=>{we(document)}))}));
|
|
1
|
+
!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";const t="ng-valid",e="ng-invalid",n="ng-pristine",r="ng-dirty",i="ng-untouched",s="ng-touched",o="ng-empty",a="ng-not-empty",c=/^((?:x|data)[:\-_])/i,l=/[:\-_]+(.)/g,u={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},h=mt("ng");let d=0;function p(){return d+=1,d}function f(t){return y(t)?t.toLowerCase():t}function $(t){if(null==t||O(t))return!1;if(E(t)||y(t))return!0;const e="length"in Object(t)&&t.length;return w(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function m(t){return void 0===t}function g(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function y(t){return"string"==typeof t}function w(t){return"number"==typeof t}function b(t){return"[object Date]"===toString.call(t)}function E(t){return Array.isArray(t)||t instanceof Array}function C(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function x(t){return"function"==typeof t}function S(t){return"[object RegExp]"===toString.call(t)}function O(t){return t&&t.window===t}function k(t){return t&&t.$evalAsync&&t.$watch}function _(t){return"boolean"==typeof t}function T(t){return t&&x(t.then)}function A(t){return y(t)?t.trim():t}function R(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function V(t,e,n){let r,i;if(t)if(x(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else if(E(t)||$(t)){const s="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==V)t.forEach(e,n,t);else if(null===(s=t)||"object"!=typeof s||Object.getPrototypeOf(s))for(r in t)Object.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else for(r in t)e.call(n,t[r],r,t);var s;return t}function N(t,e,n){const r=Object.keys(t).sort();return r.forEach((r=>e.call(n,t[r],r))),r}function P(t){return function(e,n){t(n,e)}}function j(t,e,n){const r=t.$$hashKey;for(let r=0,i=e.length;r<i;++r){const i=e[r];if(!v(i)&&!x(i))continue;const s=Object.keys(i);for(let e=0,r=s.length;e<r;e++){const r=s[e],o=i[r];n&&v(o)?b(o)?t[r]=new Date(o.valueOf()):S(o)?t[r]=new RegExp(o):o.nodeName?t[r]=o.cloneNode(!0):B(o)?t[r]=o[0].cloneNode(!0):"__proto__"!==r&&(v(t[r])||(t[r]=E(o)?[]:{}),j(t[r],[o],!0)):t[r]=o}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}function D(t){return j(t,[].slice.call(arguments,1),!1)}function M(t){return j(t,Array.prototype.slice.call(arguments,1),!0)}function I(t){return parseInt(t,10)}function L(t){return Number.isNaN(t)}function q(t,e){return D(Object.create(t),e)}function U(t){return t}function H(t){return function(){return t}}function F(t){return x(t.toString)&&t.toString!==toString}function B(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function z(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function W(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function G(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function K(t,e){return t===e||t!=t&&e!=e}function J(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,i,s;if(n===typeof e&&"object"===n){if(!E(t)){if(b(t))return!!b(e)&&K(t.getTime(),e.getTime());if(S(t))return!!S(e)&&t.toString()===e.toString();if(k(t)||k(e)||O(t)||O(e)||E(e)||b(e)||S(e))return!1;for(i in s=Q(),t)if("$"!==i.charAt(0)&&!x(t[i])){if(!J(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&g(e[i])&&!x(e[i]))return!1;return!0}if(!E(e))return!1;if((r=t.length)===e.length){for(i=0;i<r;i++)if(!J(t[i],e[i]))return!1;return!0}}return!1}const Z={};function Y(t,e){if("hasOwnProperty"===t)throw h("badname","hasOwnProperty is not a valid {0} name",e)}function Q(){return Object.create(null)}function X(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!F(t)||E(t)||b(t)?it(t):t.toString()}return t}function tt(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function et(t,e){return Array.prototype.slice.call(t,e||0)}function nt(t,e){const n=arguments.length>2?et(arguments,2):[];return!x(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,tt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function rt(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:O(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":k(e)&&(n="$SCOPE"),n}function it(t,e){if(!m(t))return w(e)||(e=e?2:null),JSON.stringify(t,rt,e)}function st(t){return y(t)?JSON.parse(t):t}function ot(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return L(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(i-r))}function at(t){const e={};return(t||"").split("&").forEach((t=>{let n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=ct(r),g(r)&&(i=!g(i)||ct(i),Object.hasOwnProperty.call(e,r)?E(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function ct(t){try{return decodeURIComponent(t)}catch(t){}}function lt(t){return ut(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ut(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const ht=["ng-","data-ng-","ng:","x-ng-"];function dt(t,e){if(E(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(v(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function pt(t,e,n){if(!t)throw h("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ft(t,e,n){return n&&E(t)&&(t=t[t.length-1]),pt(x(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const $t={};function mt(t){const e='https://errors.angularjs.org/"NG_VERSION_FULL"/',n=`${e.replace(".","\\.")}[\\s\\S]*`,r=new RegExp(n,"g");return function(){const n=arguments[0],i=arguments[1];let s=`[${t?`${t}:`:""}${n}] `;const o=et(arguments,2).map((t=>gt(t)));let a,c;if(s+=i.replace(/\{\d+\}/g,(t=>{const e=+t.slice(1,-1);return e<o.length?o[e].replace(r,""):t})),s+=`\n${e}${t?`${t}/`:""}${n}`,$t.urlErrorParamsEnabled)for(c=0,a="?";c<o.length;c++,a="&")s+=`${a}p${c}=${encodeURIComponent(o[c])}`;return new Error(s)}}function gt(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(m(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=rt(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function vt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${p()}`,t.$$hashKey):`${n}:${t}`}function yt(t,e){return t||e?t?e?(E(t)&&(t=t.join(" ")),E(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function wt(t){return t.replace(c,"").replace(l,((t,e,n)=>n?e.toUpperCase():e))}const bt="ngId",Et=new Proxy(new Map,{get:(t,e,n)=>"size"===e?t.size:"function"==typeof t[e]?function(...n){return t[e].apply(t,n)}:Reflect.get(t,e,n),set:(t,e,n,r)=>Reflect.set(t,e,n,r),deleteProperty:(t,e)=>Reflect.deleteProperty(t,e),has:(t,e)=>Reflect.has(t,e),ownKeys:t=>Reflect.ownKeys(t),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e)});let Ct=1;const xt=/-([a-z])/g,St=/_([a-z])/g,Ot={mouseleave:"mouseout",mouseenter:"mouseover"},kt=mt("jqLite");function _t(t,e){return e.toUpperCase()}function Tt(t){return t.replace(xt,_t)}function At(t){return t.replace(St,_t)}const Rt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Vt=/<([\w:-]+)/,Nt={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};function Pt(t){return!/<|&#?\w+;/.test(t)}function jt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Dt(t,e){let n,r,i,s;const o=e.createDocumentFragment();let a,c=[];if(Pt(t))c.push(e.createTextNode(t));else{for(n=o.appendChild(e.createElement("div")),r=(Vt.exec(t)||["",""])[1].toLowerCase(),s=t,i=Nt[r]||[],a=i.length;--a>-1;)n.appendChild(window.document.createElement(i[a])),n=n.firstChild;n.innerHTML=s,c=tt(c,n.childNodes),n=o.firstChild,n.textContent=""}return o.textContent="",o.innerHTML="",V(c,(t=>{o.appendChild(t)})),o}Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td;const Mt=window.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function It(t){if(t instanceof It)return t;let e;if(y(t)&&(t=A(t),e=!0),!(this instanceof It)){if(e&&"<"!==t.charAt(0))throw kt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new It(t)}if(e){Wt(this,function(t,e){let n;return e=e||window.document,(n=Rt.exec(t))?[e.createElement(n[1])]:(n=Dt(t,e))?n.childNodes:[]}(t))}else x(t)?Yt(t):Wt(this,t)}var Lt=It;function qt(t,e){t&&(!e&&jt(t)&&ee([t]),t.querySelectorAll&&ee(t.querySelectorAll("*")))}function Ut(t){const e=t[bt],{events:n,data:r}=Et.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(Et.delete(e),t[bt]=void 0)}function Ht(t,e,n,r){if(g(r))throw kt("offargs","jqLite#off() does not support the `selector` argument");const i=Bt(t),s=i&&i.events,o=i&&i.handle;if(o){if(e){const r=function(e){const r=s[e];g(n)&&E(r)&&G(r,n),g(n)&&r&&r.length>0||(t.removeEventListener(e,o),delete s[e])};V(e.split(" "),(t=>{r(t),Ot[t]&&r(Ot[t])}))}else for(e in s)"$destroy"!==e&&t.removeEventListener(e,o),delete s[e];Ut(t)}}function Ft(t,e){const n=t[bt],r=n&&Et.get(n);r&&(e?delete r.data[e]:r.data={},Ut(t))}function Bt(t,e=!1){let n=t[bt],r=n&&Et.get(n);return e&&!r&&(t[bt]=n=++Ct,r={events:{},data:{},handle:null},Et.set(n,r)),r}function zt(t,e,n){if(jt(t)){let r;const i=g(n),s=!i&&e&&!v(e),o=!e,a=Bt(t,!s),c=a&&a.data;if(i)c[Tt(e)]=n;else{if(o)return c;if(s)return c&&c[Tt(e)];for(r in e)c[Tt(r)]=e[r]}}}function Wt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{const{length:n}=e;if("number"==typeof n&&e.window!==e){if(n)for(let r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Gt(t,e){return Kt(t,`$${e||"ngController"}Controller`)}function Kt(t,e,n){t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);const r=E(e)?e:[e];for(;t;){for(let e=0,i=r.length;e<i;e++)if(g(n=zt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Jt(t){for(qt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Zt(t,e){e||qt(t);const n=t.parentNode;n&&n.removeChild(t)}function Yt(t){function e(){window.document.removeEventListener("DOMContentLoaded",e),window.removeEventListener("load",e),t()}"complete"===window.document.readyState?window.setTimeout(t):(window.document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}Lt.CACHE=Et,It.prototype={ready:Yt,toString(){const t=[];return V(this,(e=>{t.push(`${e}`)})),`[${t.join(", ")}]`},eq(t){return Lt(t>=0?this[t]:this[this.length+t])},length:0,push:[].push,sort:[].sort,splice:[].splice};const Qt={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{Qt[f(t)]=t}));const Xt={};function te(t,e){const n=Qt[e.toLowerCase()];return n&&Xt[z(t)]&&n}function ee(t){for(let n=0,r=t.length;n<r;n++){var e=(Et.get(t[n][bt])||{}).events;e&&e.$destroy&&Lt(t[n]).triggerHandler("$destroy"),Ft(t[n]),Ht(t[n])}}function ne(t,e,n){n.call(t,e)}function re(t,e,n){const r=e.relatedTarget;r&&(r===t||Mt.call(t,r))||n.call(t,e)}function ie(t){const e=Lt(t)[0].cloneNode(!0),n=Lt(e).empty();var r=Lt("<div></div>").append(n).html();try{return n[0].nodeType===Node.TEXT_NODE?f(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(r)}}function se(t){let e=t[0];const n=t[t.length-1];let r;for(let i=1;e!==n&&(e=e.nextSibling);i++)(r||t[i]!==e)&&(r||(r=Lt(Array.prototype.slice.call(t,0,i))),r.push(e));return r||t}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{Xt[t]=!0})),V({data:zt,removeData:Ft,cleanData:ee},((t,e)=>{It[e]=t})),V({data:zt,inheritedData:Kt,scope:t=>zt(t,"$scope")||Kt(t.parentNode||t,["$isolateScope","$scope"]),isolateScope:t=>zt(t,"$isolateScope")||zt(t,"$isolateScopeNoTemplate"),controller:Gt,injector:t=>Kt(t,"$injector"),attr(t,e,n){let r;const{nodeType:i}=t;if(i===Node.TEXT_NODE||i===Node.ATTRIBUTE_NODE||i===Node.COMMENT_NODE||!t.getAttribute)return;const s=f(e),o=Qt[s];if(!g(n))return r=t.getAttribute(e),o&&null!==r&&(r=s),null===r?void 0:r;null===n||!1===n&&o?t.removeAttribute(e):t.setAttribute(e,o?s:n)},text:function(){return t.$dv="",t;function t(t,e){if(m(e)){const{nodeType:e}=t;return e===Node.ELEMENT_NODE||e===Node.TEXT_NODE?t.textContent:""}t.textContent=e}}(),val(t,e){if(m(e)){if(t.multiple&&"select"===z(t)){const e=[];return V(t.options,(t=>{t.selected&&e.push(t.value||t.text)})),e}return t.value}t.value=e},html(t,e){if(m(e))return t.innerHTML;qt(t,!0),t.innerHTML=e},empty:Jt},((t,e)=>{It.prototype[e]=function(e,n){let r,i;const s=this.length;if(t!==Jt&&m(2===t.length&&t!==Gt?e:n)){if(v(e)){for(r=0;r<s;r++)if(t===zt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}let o=t.$dv;const a=m(o)?Math.min(s,1):s;for(let r=0;r<a;r++){const i=t(this[r],e,n);o=o?o+i:i}return o}for(r=0;r<s;r++)t(this[r],e,n);return this}})),V({removeData:Ft,on:(t,e,n,r)=>{if(g(r))throw kt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(!jt(t))return;const i=Bt(t,!0),{events:s}=i;let{handle:o}=i;o||(o=i.handle=function(t,e){const n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(m(n.immediatePropagationStopped)){const t=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),t&&t.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};const o=i.specialHandlerWrapper||ne;s>1&&(i=dt(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])};return n.elem=t,n}(t,s));const a=e.indexOf(" ")>=0?e.split(" "):[e];let c=a.length;const l=function(e,r,i){let a=s[e];a||(a=s[e]=[],a.specialHandlerWrapper=r,"$destroy"===e||i||t.addEventListener(e,o)),a.push(n)};for(;c--;)e=a[c],Ot[e]?(l(Ot[e],re),l(e,void 0,!0)):l(e)},off:Ht,replaceWith(t,e){let n;const r=t.parentNode;qt(t),V(new It(e),(e=>{n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))},children:t=>Array.from(t.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE)),append(t,e){const{nodeType:n}=t;if(n===Node.ELEMENT_NODE||n===Node.DOCUMENT_FRAGMENT_NODE)for(let n=0,r=(e=new It(e)).length;n<r;n++){const r=e[n];t.appendChild(r)}},prepend(t,e){if(t.nodeType===Node.ELEMENT_NODE){const n=t.firstChild;V(new It(e),(e=>{t.insertBefore(e,n)}))}},remove:Zt,detach(t){Zt(t,!0)},after(t,e){let n=t;const r=t.parentNode;if(r)for(let t=0,i=(e=new It(e)).length;t<i;t++){const i=e[t];r.insertBefore(i,n.nextSibling),n=i}},parent(t){const e=t.parentNode;return e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e:null},find:(t,e)=>t.getElementsByTagName?t.getElementsByTagName(e):[],triggerHandler(t,e,n){let r,i,s;const o=e.type||e,a=Bt(t),c=a&&a.events,l=c&&c[o];l&&(r={preventDefault(){this.defaultPrevented=!0},isDefaultPrevented(){return!0===this.defaultPrevented},stopImmediatePropagation(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped(){return!0===this.immediatePropagationStopped},stopPropagation:()=>{},type:o,target:t},e.type&&(r=D(r,e)),i=dt(l),s=n?[r].concat(n):[r],V(i,(e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))}},((t,e)=>{It.prototype[e]=function(e,n,r){let i;for(let s=0,o=this.length;s<o;s++)m(i)?(i=t(this[s],e,n,r),g(i)&&(i=Lt(i))):Wt(i,t(this[s],e,n,r));return g(i)?i:this}}));var oe=/^([^(]+?)=>/,ae=/^[^(]*\(\s*([^)]*)\)/m,ce=/,/,le=/^\s*(_?)(\S+?)\1\s*$/,ue=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,he=mt("$injector");function de(t){return Function.prototype.toString.call(t)}function pe(t){var e=de(t).replace(ue,"");return e.match(oe)||e.match(ae)}function fe(t,e,n){var r,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw y(n)&&n||(n=t.name||function(t){var e=pe(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),he("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);V(pe(t)[1].split(ce),(function(t){t.replace(le,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else E(t)?(ft(t[i=t.length-1],"fn"),r=t.slice(0,i)):ft(t,"fn",!0);return r}const $e="Provider",me={};function ge(t,e){if(g(e)&&!_(e))throw he("strictDi must be boolean");e=!!e;const n=[],r=new Map,i={$provide:{provider:u(h),factory:u(p),service:u((function(t,e){return p(t,["$injector",function(t){return t.instantiate(e)}])})),value:u((function(t,e){return p(t,H(e),!1)})),constant:u((function(t,e){Y(t,"constant"),i[t]=e,o[t]=e})),decorator:function(t,e){const n=s.get(t+$e),r=n.$get;n.$get=function(){const t=c.invoke(r,n);return c.invoke(e,null,{$delegate:t})}}}},s=i.$injector=$(i,(function(t,e){throw y(e)&&n.push(e),he("unpr","Unknown provider: {0}",n.join(" <- "))})),o={};let a=$(o,((t,e)=>{const n=s.get(t+$e,e);return c.invoke(n.$get,n,void 0,t)}));i["$injector"+$e]={$get:H(a)};let c=a;c.modules=s.modules=Q();var l=f(t);return c=a.get("$injector"),c.strictDi=e,l.forEach((t=>{t&&c.invoke(t)})),c.loadNewModules=function(t){f(t).forEach((t=>{t&&c.invoke(t)}))},c;function u(t){return function(e,n){if(!v(e))return t(e,n);V(e,P(t))}}function h(t,e){if(Y(t,"service"),(x(e)||E(e))&&(e=s.instantiate(e)),!e.$get)throw he("pget","Provider '{0}' must define $get factory method.",t);return i[t+$e]=e}function d(t,e){return function(){const n=c.invoke(e,this);if(m(n))throw he("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function p(t,e,n){return h(t,{$get:!1!==n?d(t,e):e})}function f(t){pt(m(t)||E(t),"modulesToLoad","not an array");let e,n=[];return V(t,(t=>{if(!r.get(t)){r.set(t,!0);try{y(t)?(e=window.angular.module(t),c.modules[t]=e,n=n.concat(f(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):x(t)||E(t)?n.push(s.invoke(t)):ft(t,"module")}catch(e){throw E(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=`${e.message}\n${e.stack}`),he("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function i(t){t.forEach((t=>{const e=s.get(t[0]);e[t[1]].apply(e,t[2])}))}})),n}function $(t,r){function s(e,i){if(Object.prototype.hasOwnProperty.call(t,e)){if(t[e]===me)throw he("cdep","Circular dependency found: {0}",`${e} <- ${n.join(" <- ")}`);return t[e]}try{return n.unshift(e),t[e]=me,t[e]=r(e,i),t[e]}catch(n){throw t[e]===me&&delete t[e],n}finally{n.shift()}}function o(t,n,r){const i=[],o=fe(t,e,r);for(let t=0,{length:e}=o;t<e;t++){const e=o[t];if("string"!=typeof e)throw he("itkn","Incorrect injection token! Expected service name as string, got {0}",e);i.push(n&&Object.prototype.hasOwnProperty.call(n,e)?n[e]:s(e,r))}return i}return{invoke:function(t,e,n,r){"string"==typeof n&&(r=n,n=null);const i=o(t,n,r);return E(t)&&(t=t[t.length-1]),function(t){let e=t.$$ngIsClass;return _(e)||(e=t.$$ngIsClass=/^class\b/.test(de(t))),e}(t)?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)},instantiate:function(t,e,n){const r=E(t)?t[t.length-1]:t,i=o(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))},get:s,annotate:fe,has:function(e){const n=Object.prototype.hasOwnProperty.call(i,e+$e),r=Object.prototype.hasOwnProperty.call(t,e);return n||r}}}}ge.$$annotate=fe;const ve=mt("ng"),ye={};function we(t){let e,n;const r={};ht.forEach((r=>{const i=`${r}app`;!e&&t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),ht.forEach((r=>{const i=`${r}app`;let s;!e&&(s=t.querySelector(`[${i.replace(":","\\:")}]`))&&(e=s,n=s.getAttribute(i))})),e&&(r.strictDi=null!==function(t,e){let n,r;const i=ht.length;for(r=0;r<i;++r)if(n=ht[r]+e,y(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),window.angular.bootstrap(e,n?[n]:[],r))}function be(t){var e;return v(t)&&(g(t.objectMaxDepth)&&($t.objectMaxDepth=w(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),g(t.urlErrorParamsEnabled)&&_(t.urlErrorParamsEnabled)&&($t.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),$t}const Ee=mt("$controller"),Ce=/^(\S+)(\s+as\s+([\w$]+))?$/;function xe(t,e){if(y(t)){const e=Ce.exec(t);if(e)return e[3]}}function Se(){const t={};this.has=function(e){return Object.prototype.hasOwnProperty.call(t,e)},this.register=function(e,n){Y(e,"controller"),v(e)?D(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,s,o){let a,c,l,u;if(s=!0===s,o&&y(o)&&(u=o),y(r)){if(c=r.match(Ce),!c)throw Ee("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=c[1],u=u||c[3],!(r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:function(t,e,n){if(!e)return t;const r=e.split(".");let i;const s=r.length;for(let e=0;e<s;e++)i=r[e],t&&(t=t[i]);return t}(i.$scope,l)))throw Ee("ctrlreg","The controller with the name '{0}' is not registered.",l);ft(r,l,!0)}if(s){const t=(E(r)?r[r.length-1]:r).prototype;return a=Object.create(t||null),u&&n(i,u,a,l||r.name),D((()=>{const t=e.invoke(r,a,i,l);return t!==a&&(v(t)||x(t))&&(a=t,u&&n(i,u,a,l||r.name)),a}),{instance:a,identifier:u})}return a=e.instantiate(r,i,l),u&&n(i,u,a,l||r.name),a};function n(t,e,n,r){if(!t||!v(t.$scope))throw mt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}const Oe=window.document.createElement("a"),ke=Te(window.location.href);let _e;function Te(t){if(!y(t))return t;const e=t;Oe.setAttribute("href",e);let{hostname:n}=Oe;return!("[::1]"===Oe.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Oe.href,protocol:Oe.protocol?Oe.protocol.replace(/:$/,""):"",host:Oe.host,search:Oe.search?Oe.search.replace(/^\?/,""):"",hash:Oe.hash?Oe.hash.replace(/^#/,""):"",hostname:n,port:Oe.port,pathname:"/"===Oe.pathname.charAt(0)?Oe.pathname:`/${Oe.pathname}`}}function Ae(t){return Re(t,function(){if(window.document.baseURI)return window.document.baseURI;_e||(_e=window.document.createElement("a"),_e.href=".",_e=_e.cloneNode(!1));return _e.href}())}function Re(t,e){return t=Te(t),e=Te(e),t.protocol===e.protocol&&t.host===e.host}Oe.href="http://[::1]";const Ve=mt("$sce"),Ne={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Pe(t){if("self"===t)return t;if(y(t)){if(t.indexOf("***")>-1)throw Ve("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(S(t))return new RegExp(`^${t.source}$`);throw Ve("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function je(){this.SCE_CONTEXTS=Ne;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Pe(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Pe(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw Ve("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?Re(e,ke)||Ae(e):!!t.exec(e.href)}function o(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const a=o(),c={};return c[Ne.HTML]=o(a),c[Ne.CSS]=o(a),c[Ne.MEDIA_URL]=o(a),c[Ne.URL]=o(c[Ne.MEDIA_URL]),c[Ne.JS]=o(a),c[Ne.RESOURCE_URL]=o(c[Ne.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Ve("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||m(e)||""===e)return e;if("string"!=typeof e)throw Ve("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||m(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(x(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ne.MEDIA_URL||n===Ne.URL)return r(o.toString(),n===Ne.MEDIA_URL);if(n===Ne.RESOURCE_URL){if(function(n){const r=Te(n.toString());let i,o,a=!1;for(i=0,o=t.length;i<o;i++)if(s(t[i],r)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(s(e[i],r)){a=!1;break}return a}(o))return o;throw Ve("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ne.HTML)return i(o);throw Ve("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function De(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=dt(Ne);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return V(Ne,((t,e)=>{const n=f(e);r[At(`parse_as_${n}`)]=function(e){return i(t,e)},r[At(`get_trusted_${n}`)]=function(e){return s(t,e)},r[At(`trust_as_${n}`)]=function(e){return o(t,e)}})),r}]}const Me={},Ie={blur:!0,focus:!0};function Le(t,e,n,r,i,s){return{restrict:"A",compile(o,a){const c=t(a[r]);return function(t,r){r.on(i,(r=>{const i=function(){c(t,{$event:r})};if(e.$$phase)if(s)t.$evalAsync(i);else try{i()}catch(t){n(t)}else t.$apply(i)}))}}}}"click dblclick submit focus blur copy cut paste".split(" ").forEach((t=>{const e=wt(`ng-${t}`);Me[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>Le(n,r,i,e,t,Ie[t])]}));const qe=mt("$compile"),Ue=new Object;let He=10;function Fe(t,e){const n={},r="Directive",i={ngSrc:!0,ngSrcset:!0,src:!0,srcset:!0},s=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,o=/^(on[a-z]+|formaction)$/,a=Q();function l(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Q();return V(t,((t,s)=>{if((t=t.trim())in a)return void(i[s]=a[t]);const o=t.match(r);if(!o)throw qe("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,s,t,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||s},o[4]&&(a[t]=i[s])})),i}function h(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=l(t.scope,e,!0),n.isolateScope={}):n.isolateScope=l(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=l(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw qe("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return pt(i,"name"),Y(i,"directive"),y(i)?(!function(t){const e=t.charAt(0);if(!e||e!==f(e))throw qe("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw qe("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),pt(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return V(n[i],((n,o)=>{try{let e=t.invoke(n);x(e)?e={compile:H(e)}:!e.compile&&e.link&&(e.compile=H(e.link)),e.priority=e.priority||0,e.index=o,e.name=e.name||i,e.require=function(t){const e=t.require||t.controller&&t.name;return!E(e)&&v(e)&&V(e,((t,n)=>{const r=t.match(s);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(e),e.restrict=function(t,e){if(t&&(!y(t)||!/[EA]/.test(t)))throw qe("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function t(e,n){if(!y(e))return V(e,P(nt(this,t))),this;const r=n.controller||function(){};function i(t){function e(e){return x(e)||E(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=n.template||n.templateUrl?n.template:"",s={controller:r,controllerAs:xe(n.controller)||n.controllerAs||"$ctrl",template:e(i),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return V(n,((t,e)=>{"$"===e.charAt(0)&&(s[e]=t)})),s}return V(n,((t,e)=>{"$"===e.charAt(0)&&(i[e]=t,x(r)&&(r[e]=t))})),i.$inject=["$injector"],this.directive(e,i)},this.aHrefSanitizationTrustedUrlList=function(t){return g(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let d=!0;this.debugInfoEnabled=function(t){return g(t)?(d=t,this):d};let p=!1;this.strictComponentBindingsEnabled=function(t){return g(t)?(p=t,this):p};const $=Q();this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in $&&$[r]!==n)throw qe("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,$[r],n);return $[r]=n,this},function(){function t(t,e){V(e,(e=>{$[e.toLowerCase()]=t}))}t(Ne.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ne.CSS,["*|style"]),t(Ne.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ne.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ne.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=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,a,l,d,g,w,b,S){const O=/^\w/,T=window.document.createElement("div");let N;function P(){try{if(! --He)throw N=void 0,qe("infchng","{0} $onChanges() iterations reached. Aborting!\n",He);w.$apply((()=>{for(let t=0,e=N.length;t<e;++t)try{N[t]()}catch(t){a(t)}N=void 0}))}finally{He++}}function j(t,e){if(!t)return t;if(!y(t))throw qe("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=A(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=b.getTrustedMediaUrl(A(s[c])),n+=" "+A(s[c+1])}var l=A(s[2*a]).split(/\s/);return n+=b.getTrustedMediaUrl(A(l[0])),2===l.length&&(n+=" "+A(l[1])),n}class M{constructor(t,e){if(e){const t=Object.keys(e);for(let n=0,r=t.length;n<r;n++){const r=t[n];this[r]=e[r]}}else this.$attr={};this.$$element=t}$normalize=wt;$addClass(t){t&&t.length>0&&S.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&S.removeClass(this.$$element,t)}$updateClass(t,e){const n=ze(t,e);n&&n.length&&S.addClass(this.$$element,n);const r=ze(e,t);r&&r.length&&S.removeClass(this.$$element,r)}$set(t,e,n,r){const i=te(this.$$element[0],t),s=u[t];let o=t;i?(this.$$element[0][t]=e,r=i):s&&(this[s]=e,o=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=R(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=j(e,"$set('srcset', value)")),!1!==n&&(null===e||m(e)?this.$$element[0].removeAttribute(r):O.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):function(t,e,n){T.innerHTML=`<span ${e}>`;const{attributes:r}=T.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));const{$$observers:c}=this;c&&V(c[o],(t=>{try{t(e)}catch(t){a(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Q()),r=n[t]||(n[t]=[]);return r.push(e),w.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||m(this[t])||e(this[t])})),function(){G(r,e)}}}const I=e.startSymbol(),L=e.endSymbol(),H="{{"===I&&"}}"===L?U:function(t){return t.replace(/\{\{/g,I).replace(/}}/g,L)},F=/^ng(Attr|Prop|On)([A-Z].*)$/,B=/^(.+)Start$/;return W;function W(t,e,n,r,i){t instanceof Lt||(t=Lt(t));let s=Z(t,e,t,n,r,i),o=null;return function(e,n,r){if(!t)throw qe("multilink","This element has already been linked.");pt(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};let a,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=r;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),o||(o=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==z(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),a="html"!==o?Lt($t(o,Lt("<div></div>").append(t).html())):n?Lt(Array.from(t).map((t=>t.cloneNode(!0)))):t,c)for(const t in c)a.data(`$${t}Controller`,c[t].instance);return n&&n(a,e),s&&s(e,a,a,l),n||(t=s=null),a}}function Z(t,e,n,r,i,s){const o=[];let a,c;var l;let u,h,d,p;for(let f=0;f<t.length;f++)a=new M,c=X(t[f],[],a,0===f?r:void 0,i),h=(l=c.length?st(c,t[f],a,e,n,null,[],[],s):null)&&l.terminal||!(u=t[f].childNodes)||!u.length?null:Z(u,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(o.push(f,l,h),d=!0,p=p||l),s=null;return d?function(t,n,r,i){let s,a,c,l,u,h,d,f,$;if(p)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,f=s.transcludeOnThisElement?Y(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?Y(t,e):null,s(a,l,c,r,f)):a&&a(t,c.childNodes,void 0,i)}:null}function Y(t,e,n){function r(r,i,s,o,a){return r||((r=t.$new(!1,a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Q();for(const r in e.$$slots)e.$$slots[r]?i[r]=Y(t,e.$$slots[r],n):i[r]=null;return r}function X(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let l;switch(o){case Node.ELEMENT_NODE:l=t.nodeName.toLowerCase(),ct(n,wt(l),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,l=!1,g=!1,v=!1,y=!1;h=(u=$[m]).name,p=u.value,(f=(d=wt(h.toLowerCase())).match(F))?(g="Attr"===f[1],v="Prop"===f[1],y="On"===f[1],h=h.replace(c,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=d.match(B))&<(e[1])&&(o=h,l=`${h.substr(0,h.length-5)}end`,h=h.substr(0,h.length-6)),v||y?(r[d]=p,a[d]=u.name,v?gt(t,n,d,h):vt(n,d,h)):(a[d=wt(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,te(t,d)&&(r[d]=!0)),yt(t,n,p,d,g),ct(n,d,"A",i,s,o,l))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:function(){return function(t,e){t.$watch(r,(t=>{e[0].nodeValue=t}))}}})}(n,t.nodeValue)}return n.sort(dt),n}function tt(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw qe("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return Lt(r)}function rt(t,e,n){return function(r,i,s,o,a){return i=tt(i[0],e,n),t(r,i,s,o,a)}}function it(t,e,n,r,i,s){let o;return t?W(e,n,r,i,s):function(){return o||(o=W(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function st(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,f,$=-Number.MAX_VALUE,{newScopeDirective:y}=l,{controllerDirectives:w}=l,{newIsolateScopeDirective:b}=l,{templateDirective:C}=l,{nonTlbTranscludeDirective:S}=l,O=!1,_=!1,{hasElementTranscludeDirective:T}=l,R=n.$$element=Lt(e),N=s,P=r,j=!1,D=!1;for(let s=0,l=t.length;s<l;s++){u=t[s];const m=u.$$start,g=u.$$end;if(m&&(R=tt(e,m,g)),d=void 0,$>u.priority)break;if(f=u.scope,f&&(u.templateUrl||(v(f)?(ft("new/isolated scope",b||y,u,R),b=u):ft("new/isolated scope",b,u,R)),y=y||u),h=u.name,!j&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!u.$$tlb)){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!e.$$tlb||e.replace&&(e.templateUrl||e.template)){D=!0;break}j=!0}if(!u.templateUrl&&u.controller&&(w=w||Q(),ft(`'${h}' controller`,w[h],u,R),w[h]=u),f=u.transclude,f)if(O=!0,u.$$tlb||(ft("transclusion",S,u,R),S=u),"element"===f)T=!0,$=u.priority,d=R,R=n.$$element=Lt(document.createComment("")),e=R[0],Ct(i,et(d),e),P=it(D,d,r,$,N&&N.name,{nonTlbTranscludeDirective:S});else{const t=Q();if(v(f)){d=window.document.createDocumentFragment();const e=Q(),n=Q();V(f,((r,i)=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,e[r]=i,t[i]=null,n[i]=s})),V(Lt(R[0].childNodes),(r=>{const i=e[wt(z(r))];i?(n[i]=!0,t[i]=t[i]||window.document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),V(n,((t,e)=>{if(!t)throw qe("reqslot","Required transclusion slot `{0}` was not filled.",e)}));for(const e in t)if(t[e]){const n=Lt(t[e].childNodes);t[e]=it(D,n,r)}d=Lt(d.childNodes)}else d=e.cloneNode(!0).childNodes;R.empty(),P=it(D,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),P.$$slots=t}if(u.template)if(_=!0,ft("template",C,u,R),C=u,f=x(u.template)?u.template(R,n):u.template,f=H(f),u.replace){if(N=u,d=Pt(f)?[]:We($t(u.templateNamespace,A(f))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw qe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");Ct(i,R,e);const r={$attr:{}},o=X(e,[],r),a=t.splice(s+1,t.length-(s+1));(b||y)&&at(o,b,y),t=t.concat(o).concat(a),ut(n,r),l=t.length}else R.html(f);if(u.templateUrl)_=!0,ft("template",C,u,R),C=u,u.replace&&(N=u),L=ht(t.splice(s,t.length-s),R,n,i,O&&P,o,c,{controllerDirectives:w,newScopeDirective:y!==u&&y,newIsolateScopeDirective:b,templateDirective:C,nonTlbTranscludeDirective:S}),l=t.length;else if(u.compile)try{p=u.compile(R,n,P);const t=u.$$originalDirective||u;x(p)?I(null,nt(t,p),m,g):p&&I(nt(t,p.pre),nt(t,p.post),m,g)}catch(t){a(t,ie(R))}u.terminal&&(L.terminal=!0,$=Math.max($,u.priority))}return L.scope=y&&!0===y.scope,L.transcludeOnThisElement=O,L.templateOnThisElement=_,L.transclude=P,l.hasElementTranscludeDirective=T,L;function I(t,e,n,r){t&&(n&&(t=rt(t,n,r)),t.require=u.require,t.directiveName=h,(b===u||u.$$isolateScope)&&(t=xt(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=rt(e,n,r)),e.require=u.require,e.directiveName=h,(b===u||u.$$isolateScope)&&(e=xt(e,{isolateScope:!0})),c.push(e))}function L(t,r,i,s,l){let u,h,d,p,f,$,C,S,O,_;e===i?(O=n,S=n.$$element):(S=Lt(i),O=new M(S,n)),f=r,b?p=r.$new(!0):y&&(f=r.$parent),l&&(C=function(t,e,n,r){let i;k(t)||(r=n,n=e,e=t,t=void 0);T&&(i=$);n||(n=T?S.parent():S);if(!r)return l(t,e,i,n,A);{const s=l.$$slots[r];if(s)return s(t,e,i,n,A);if(m(s))throw qe("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ie(S))}},C.$$boundTransclude=l,C.isSlotFilled=function(t){return!!l.$$slots[t]}),w&&($=function(t,e,n,r,i,s,o){const a=Q();for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=g(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(S,O,C,w,p,r,b)),b&&(p.$$isolateBindings=b.$$isolateBindings,_=kt(r,O,p,p.$$isolateBindings,b),_.removeWatches&&p.$on("$destroy",_.removeWatches));for(const t in $){const e=w[t],n=$[t],r=e.$$bindings.bindToController;n.instance=n(),S.data(`$${e.name}Controller`,n.instance),n.bindingInfo=kt(f,O,n.instance,r,e)}for(V(w,((t,e)=>{const{require:n}=t;t.bindToController&&!E(n)&&v(n)&&Object.assign($[e].instance,ot(e,n,S,$))})),V($,(t=>{const e=t.instance;if(x(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(x(e.$onInit))try{e.$onInit()}catch(t){a(t)}x(e.$doCheck)&&(f.$watch((()=>{e.$doCheck()})),e.$doCheck()),x(e.$onDestroy)&&f.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],St(d,d.isolateScope?p:r,S,O,d.require&&ot(d.directiveName,d.require,S,$),C);var A=r;for(b&&(b.template||null===b.templateUrl)&&(A=p),t&&t(A,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],St(d,d.isolateScope?p:r,S,O,d.require&&ot(d.directiveName,d.require,S,$),C);V($,(t=>{const e=t.instance;x(e.$postLink)&&e.$postLink()}))}}function ot(t,e,n,r){let i;if(y(e)){const o=e.match(s),a=e.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){const t=`$${a}Controller`;i="^^"===c&&n[0]&&n[0].nodeType===Node.DOCUMENT_NODE?null:c?n.inheritedData(t):n.data(t)}if(!i&&!l)throw qe("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(E(e)){i=[];for(let s=0,o=e.length;s<o;s++)i[s]=ot(t,e[s],n,r)}else v(e)&&(i={},V(e,((e,s)=>{i[s]=ot(t,e,n,r)})));return i||null}function at(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=q(t[r],{$$isolateScope:e,$$newScope:n})}function ct(e,i,s,o,a,c,l){if(i===a)return null;let u=null;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),d=0,p=a.length;d<p;d++)if(n=a[d],(m(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=q(n,{$$start:c,$$end:l})),!n.$$bindings){const t=n.$$bindings=h(n,n.name);v(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),u=n}return u}function lt(e){if(Object.prototype.hasOwnProperty.call(n,e))for(let n,i=t.get(e+r),s=0,o=i.length;s<o;s++)if(n=i[s],n.multiElement)return!0;return!1}function ut(t,e){const n=e.$attr,r=t.$attr;V(t,((r,i)=>{"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),V(e,((e,i)=>{Object.prototype.hasOwnProperty.call(t,i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function ht(t,e,n,r,i,s,o,c){let u,h,d=[];const p=e[0],f=t.shift(),$=q(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=x(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),l(m).then((a=>{let l,y,w,b;if(a=H(a),f.replace){if(w=Pt(a)?[]:We($t(g,A(a))),l=w[0],1!==w.length||l.nodeType!==Node.ELEMENT_NODE)throw qe("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},Ct(r,e,l);const i=X(l,[],y);v(f.scope)&&at(i,!0),t=i.concat(t),ut(n,y)}else l=p,e.html(a);for(t.unshift($),u=st(t,l,n,i,e,f,s,o,c),V(r,((t,n)=>{t===l&&(r[n]=e[0])})),h=Z(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;c.hasElementTranscludeDirective&&f.replace||(o=l.cloneNode(!0)),Ct(i,Lt(n),o);try{""!==t&&o.classList.add(t)}catch(t){}}b=u.transcludeOnThisElement?Y(t,u.transclude,s):s,u(h,t,o,r,b)}}d=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=Y(e,u.transclude,i)),u(h,e,n,r,s)))}}function dt(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function ft(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw qe("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,ie(r))}function $t(t,e){switch(t=f(t||"html")){case"svg":case"math":var n=window.document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function mt(t){return j(b.valueOf(t),"ng-prop-srcset")}function gt(t,e,n,r){if(o.test(r))throw qe("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=z(t),s=function(t,e){const n=e.toLowerCase();return $[`${t}|${n}`]||$[`*|${n}`]}(i,r);let a=U;"srcset"!==r||"img"!==i&&"source"!==i?s&&(a=b.getTrusted.bind(b,s)):a=mt,e.push({priority:100,compile:function(t,e){const i=d(e[n]),s=d(e[n],(t=>b.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function vt(t,e,n){t.push(Le(d,w,a,e,n,!1))}function yt(t,n,r,s,a){const c=z(t),l=function(t,e){return"srcdoc"===e?b.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?b.RESOURCE_URL:b.MEDIA_URL:"xlinkHref"===e?"image"===t?b.MEDIA_URL:"a"===t?b.URL:b.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?b.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:b.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw qe("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ie(t.outerHTML));if(o.test(s))throw qe("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Q()),a=i[s];a!==r&&(h=a&&e(a,!0,l,u),r=a),h&&(i[s]=h(t),(o[s]||(o[s]=[])).$$inter=!0,(i.$$observers&&i.$$observers[s].$$scope||t).$watch(h,((t,e)=>{"class"===s&&t!==e?i.$updateClass(t,e):i.$set(s,t)})))}})})}}function Ct(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1,t.context===r&&(t.context=n);break}s&&s.replaceChild(n,r);const c=window.document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(Et.has(r[bt])&&(Lt.data(n,Lt.data(r)),Lt(r).off("$destroy")),Lt.cleanData(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function xt(t,e){return D((function(){return t.apply(null,arguments)}),t,e)}function St(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,ie(n))}}function Ot(t,e){if(p)throw qe("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function kt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){x(r.$onChanges)&&!K(n,i)&&(N||(t.$$postDigest(P),N=[]),c||(c={},N.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new Be(i,n))}function u(){r.$onChanges(c),c=void 0}return V(i,((i,c)=>{const{attrName:u}=i,{optional:h}=i,{mode:p}=i;let f,$,m,g,v;switch(p){case"@":h||hasOwnProperty.call(n,u)||(Ot(u,s.name),r[c]=n[u]=void 0),v=n.$observe(u,(t=>{if(y(t)||_(t)){const e=r[c];l(c,t,e),r[c]=t}})),n.$$observers[u].$$scope=t,f=n[u],y(f)?r[c]=e(f)(t):_(f)&&(r[c]=f),a[c]=new Be(Ue,r[c]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ot(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=d(n[u]),g=$.literal?J:K,m=$.assign||function(){throw f=r[c]=$(t),qe("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[c]=$(t);var w=function(e){return g(e,r[c])||(g(e,f)?m(t,e=r[c]):r[c]=e),f=e,f};w.$stateful=!0,v=i.collection?t.$watchCollection(n[u],w):t.$watch(d(n[u],w),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ot(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=d(n[u]);var b=$.literal,E=r[c]=$(t);a[c]=new Be(Ue,r[c]),v=t[i.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||b&&J(e,E))return;e=E}l(c,t,e),r[c]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||Ot(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?d(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[c]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}Fe.$inject=["$provide","$$sanitizeUriProvider"];class Be{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===Ue}}function ze(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}function We(t){let e=(t=Lt(t)).length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}function Ge(){return{restrict:"E",compile:(t,e)=>e.href||e.xlinkHref?()=>{}:(t,e)=>{if("a"!==e[0].nodeName.toLowerCase())return;const n="[object SVGAnimatedString]"===toString.call(e[0].href)?"xlink:href":"href";e.on("click",(t=>{e.attr(n)||t.preventDefault()}))}}}const Ke={$addControl:()=>{},$getControls:H([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},Je="ng-pending",Ze="ng-submitted";function Ye(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Ke,this.$$element=t,this.$$animate=r,en(this)}Ye.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Ye.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){Y(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return dt(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],V(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),V(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),V(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),G(this.$$controls,t),t.$$parentForm=Ke},$setDirty(){this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,n,`${r} ${Ze}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach((t=>{t.$setPristine()}))},$setUntouched(){this.$$controls.forEach((t=>{t.$setUntouched()}))},$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==Ke;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,Ze),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},nn({clazz:Ye,set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset(t,e,n){const r=t[e];r&&(G(r,n),0===r.length&&delete t[e])}});const Qe=function(e){return["$timeout","$parse",function(r,i){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Ye,compile:function(i,o){i[0].classList.add(n,t);const a=o.name?"name":!(!e||!o.ngForm)&&"ngForm";return{pre:function(t,e,n,i){const o=i[0];if(!("action"in n)){const n=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",n),e.on("$destroy",(()=>{r((()=>{e[0].removeEventListener("submit",n)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),n.$observe(a,(e=>{o.$name!==e&&(c(t,void 0),o.$$parentForm.$$renameControl(o,e),c=s(o.$name),c(t,o))}))),e.on("$destroy",(()=>{o.$$parentForm.$removeControl(o),c(t,void 0),D(o,Ke)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},Xe=Qe(),tn=Qe(!0);function en(n){n.$$classCache={},n.$$classCache[e]=!(n.$$classCache[t]=n.$$element[0].classList.contains(t))}function nn(n){const{clazz:r}=n,{set:i}=n,{unset:s}=n;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(n,r,i){r=r?`-${R(r,"-")}`:"",o(n,t+r,!0===i),o(n,e+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;m(e)?function(t,e,n,r){t[e]||(t[e]={});i(t[e],n,r)}(this,"$pending",t,n):function(t,e,n,r){t[e]&&s(t[e],n,r);rn(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),_(e)?e?(s(this.$error,t,n),i(this.$$success,t,n)):(i(this.$error,t,n),s(this.$$success,t,n)):(s(this.$error,t,n),s(this.$$success,t,n)),this.$pending?(o(this,Je,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,Je,!1),this.$valid=rn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}function rn(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}let sn;const on=/(\s+|^)default(\s+|$)/;function an(t){this.$$options=t}an.prototype={getOption(t){return this.$$options[t]},createChild(t){let e=!1;return V(t=D({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=A(n.replace(on,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],ln(t,this.$$options)),ln(t,sn.$$options),new an(t)}},sn=new an({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});const cn=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:sn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function ln(t,e){V(e,((e,n)=>{g(t[n])||(t[n]=e)}))}const un=mt("ngModel");function hn(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=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.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=Ke,this.$options=sn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=s,this.$$timeout=o,this.$$parse=i,this.$$q=a,this.$$exceptionHandler=e,en(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}hn.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],hn.prototype={$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return x(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){x(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw un("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ie(this.$$element))},$render:()=>{},$isEmpty:t=>m(t)||""===t||null===t||t!=t,$$updateEmptyClasses(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,o)):(this.$$animate.removeClass(this.$$element,o),this.$$animate.addClass(this.$$element,a))},$setPristine(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,n)},$setDirty(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r),this.$$parentForm.$setDirty()},$setUntouched(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,i,s)},$setTouched(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,s,i)},$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate(){if(L(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),s=this;this.$$runValidators(e,t,(t=>{i||n===t||(s.$modelValue=t?e:void 0,s.$modelValue!==r&&s.$$writeModelToScope())}))},$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,i=this;function s(t,e){r===i.$$currentValidationRunId&&i.$setValidity(t,e)}function o(t){r===i.$$currentValidationRunId&&n(t)}!function(){const t=i.$$parserName;if(!m(i.$$parserValid))return i.$$parserValid||(V(i.$validators,((t,e)=>{s(e,null)})),V(i.$asyncValidators,((t,e)=>{s(e,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(V(i.$validators,((r,i)=>{const o=Boolean(r(t,e));n=n&&o,s(i,o)})),!n)return V(i.$asyncValidators,((t,e)=>{s(e,null)})),!1;return!0}()?function(){const n=[];let r=!0;V(i.$asyncValidators,((i,o)=>{const a=i(t,e);if(!T(a))throw un("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then((()=>{s(o,!0)}),(()=>{r=!1,s(o,!1)})))})),n.length?i.$$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)},$commitViewValue(){const t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(t)||(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))},$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!m(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),m(t)){this.$$parserValid=!1;break}L(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))},$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),V(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)},$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");w(e[t])?e=e[t]:w(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:w(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))},$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))},$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n},$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}},nn({clazz:hn,set(t,e){t[e]=!0},unset(t,e){delete t[e]}});const dn=["$rootScope",e=>({restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:hn,priority:1,compile:function(r){return r[0].classList.add(n,i,t),{pre:function(t,e,n,r){const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:function(t,n,r,i){const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))}))}}}})],pn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,fn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,$n=/^(?=.{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])?)*$/,mn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,gn=/^(\d{4,})-(\d{2})-(\d{2})$/,vn=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,yn=/^(\d{4,})-W(\d\d)$/,wn=/^(\d{4,})-(\d\d)$/,bn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,En="validity",Cn="keydown wheel mousedown",xn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{xn.set(t,!0)}));const Sn={text:function(t,e,n,r,i){kn(t,e,n,r,i),On(r)},date:An("date",gn,_n(gn,["yyyy","MM","dd"])),"datetime-local":An("datetimelocal",vn,_n(vn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:An("time",bn,_n(bn,["HH","mm","ss","sss"])),week:An("week",yn,(function(t,e){if(b(t))return t;if(y(t)){yn.lastIndex=0;const n=yn.exec(t);if(n){const t=+n[1],r=+n[2];let i=0,s=0,o=0,a=0;const c=function(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(i=e.getHours(),s=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,i,s,o,a)}}return NaN})),month:An("month",wn,_n(wn,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Rn(t,e,n,r,"number"),Vn(r),kn(t,e,n,r,i),g(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Nn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||m(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Nn(t),e=t,r.$validate())}))}if(g(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Nn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||m(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Nn(t),e=t,r.$validate())}))}if(g(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Nn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||m(i)||Dn(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=Nn(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){kn(t,e,n,r,i),On(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||fn.test(n)}},email:function(t,e,n,r,i){kn(t,e,n,r,i),On(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||$n.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==A(n.ngTrim);m(n.name)&&e.attr("name",p());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=A(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=A(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Rn(t,e,n,r,"range"),Vn(r),kn(t,e,n,r,i);const s=r.$$hasNativeValidators&&"range"===e[0].type;let o=s?0:void 0,a=s?100:void 0,c=s?1:void 0;const{validity:l}=e[0],u=g(n.min),h=g(n.max),d=g(n.step),p=r.$render;r.$render=s&&g(l.rangeUnderflow)&&g(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=Nn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(o)||e>=o},f("min",(function(t){if(o=Nn(t),L(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Nn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(a)||e<=a},f("max",(function(t){if(a=Nn(t),L(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=Nn(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||m(c)||Dn(e,o||0,c)},f("step",(function(t){if(c=Nn(t),L(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function f(t,r){e.attr(t,n[t]);let i=n[t];n.$observe(t,(t=>{t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,s,o){const a=Mn(o,t,"ngTrueValue",n.ngTrueValue,!0),c=Mn(o,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((t=>J(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function On(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function kn(t,e,n,r,i){const s=f(e[0].type);let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.defer.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=A(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),xn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Cn,(function(t){if(!o){const e=this[En],n=e.badInput,r=e.typeMismatch;o=i.defer((()=>{o=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function _n(t,e){return function(n,r){let i,s;if(b(n))return n;if(y(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),pn.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n),i){i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},V(i,((t,n)=>{n<e.length&&(s[e[n]]=+t)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Tn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function An(t,e,n){return function(r,i,s,o,a,c,l){if(Rn(r,i,s,o,t),kn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!y(e))throw un("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Tn.test(e))throw un("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!yn.test(e))throw un("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!vn.test(e))throw un("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e})),g(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?m(i)||n(e)>=n(i):!u(e)||m(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(g(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?m(i)||n(e)<=n(i):!u(e)||m(i)||n(e)<=i},s.$observe("max",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}function u(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return g(t)&&!b(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=ot(i,r)),i}}}function Rn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=v(s.validity))&&r.$parsers.push((t=>{const n=e[0][En]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function Vn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:mn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!w(e))throw un("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Nn(t){return g(t)&&!w(t)&&(t=parseFloat(t)),L(t)?void 0:t}function Pn(t){return(0|t)===t}function jn(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function Dn(t,e,n){let r=Number(t);const i=!Pn(r),s=!Pn(e),o=!Pn(n);if(i||s||o){const t=i?jn(r):0,a=s?jn(e):0,c=o?jn(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,i&&(r=Math.round(r)),s&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n==0}function Mn(t,e,n,r,i){let s;if(g(r)){if(s=t(r),!s.constant)throw un("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}const In=["$browser","$filter","$parse",function(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Sn[f(s.type)]||Sn.text)(r,i,s,o[0],t,e,n)}}}}];function Ln(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===f(n.type))return{pre(e,n){const r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}const qn=/^(true|false|\d+)$/;function Un(){function t(t,e,n){const r=g(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>qn.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}const Hn=["$templateCache",t=>({restrict:"E",terminal:!0,compile(e,n){if("text/ng-template"===n.type){const r=n.id,{text:i}=e[0];t.put(r,i)}}})],Fn={$setViewValue:()=>{},$render:()=>{}};function Bn(t,e){t[0].selected=e,t.attr("selected",e)}var zn=["$element","$scope",function(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl=Fn,n.multiple=!1,n.unknownOption=Lt(window.document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),t.prepend(n.unknownOption),Bn(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),Bn(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${vt(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),Bn(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&Bn(n.emptyOption,!1)},e.$on("$destroy",(()=>{n.renderUnknownOption=()=>{}})),n.readValue=function(){const e=t.val(),r=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(r)?r:null},n.writeValue=function(e){const r=t[0].options[t[0].selectedIndex];if(r&&Bn(Lt(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=vt(e);t.val(r in n.selectValueMap?r:e);const i=t[0].options[t[0].selectedIndex];Bn(Lt(i),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;Y(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);const i=r.get(t)||0;r.set(t,i+1),s()},n.removeOption=function(t){const e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):r.set(t,e-1))},n.hasOption=function(t){return!!r.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};let i=!1;function s(){i||(i=!0,e.$$postDigest((()=>{i=!1,n.ngModelCtrl.$render()})))}let o=!1;function a(t){o||(o=!0,e.$$postDigest((()=>{e.$$destroyed||(o=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,r,i,o){let c,l;r.$attr.ngValue?r.$observe("value",(t=>{let r;const i=e[0].selected;g(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=vt(t),c=t,n.selectValueMap[l]=t,n.addOption(t,e),e.attr("value",l),r&&i&&a()})):i?r.$observe("value",(t=>{let r;n.readValue();const i=e[0].selected;g(c)&&(n.removeOption(c),r=!0),c=t,n.addOption(t,e),r&&i&&a()})):o?t.$watch(o,((t,i)=>{r.$set("value",t);const s=e[0].selected;i!==t&&n.removeOption(i),n.addOption(t,e),i&&s&&a()})):n.addOption(r.value,e),r.$observe("disabled",(t=>{("true"===t||t&&e[0].selected)&&(n.multiple?a(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(()=>{const t=n.readValue(),e=r.value;n.removeOption(e),s(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&a(!0)}))}}];const Wn=function(){return{restrict:"E",require:["select","?ngModel"],controller:zn,priority:1,link:{pre:function(t,e,n,r){const i=r[0],s=r[1];if(!s)return void(i.registerOption=()=>{});if(i.ngModelCtrl=s,e.on("change",(()=>{i.removeUnknownOption(),t.$apply((()=>{s.$setViewValue(i.readValue())}))})),n.multiple){let n;i.multiple=!0,i.readValue=function(){const t=[];return Array.from(e[0].getElementsByTagName("option")).forEach((e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){Array.from(e[0].getElementsByTagName("option")).forEach((e=>{const n=!!t&&(W(t,e.value)||W(t,i.selectValueMap[e.value]));n!==e.selected&&Bn(Lt(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||J(n,s.$viewValue)||(n=dt(s.$viewValue),s.$render()),r=s.$viewValue})),s.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const i=r[1];if(!i)return;const s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}}}},Gn=["$interpolate",function(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return g(n.ngValue)||(g(n.value)?r=t(n.value,!0):(i=t(e.text(),!0),i||n.$set("value",e.text()))),function(t,e,n){const s="$selectController",o=e.parent(),a=o.data(s)||o.parent().data(s);a&&a.registerOption(t,e,n,r,i)}}}}];function Kn(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=X(t)}))}}}function Jn(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=m(t)?"":t}))}}}const Zn=["$parse",t=>({restrict:"A",compile:(e,n)=>{var r=t(n.ngBindHtml),i=t(n.ngBindHtml,(t=>t));return(t,e)=>{t.$watch(i,(()=>{e.html(r(t)||"")}))}}})];function Yn(t,e){var n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return V(t,(t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Q(),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),l.$addClass(n)):function(t){t=p(i(t),-1),l.$removeClass(t)}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),a=r(s,n),c=p(o,-1),u=p(a,1);l.$addClass(u),l.$removeClass(c)}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return E(t)?e=t.map(s).join(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):y(t)||(e=`${t}`),e}}const Qn=Yn("",!0),Xn=Yn("Odd",0),tr=Yn("Even",1);function er(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}const nr=[()=>({restrict:"A",scope:!0,controller:"@",priority:500})],rr="ng-hide",ir="ng-hide-animate",sr=["$animate",t=>({restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(e=>{t[e?"removeClass":"addClass"](n,rr,{tempClasses:ir})}))}})],or=["$animate",t=>({restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(e=>{t[e?"addClass":"removeClass"](n,rr,{tempClasses:ir})}))}})],ar=["$animate",t=>({multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},t.enter(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=se(o.clone),t.leave(c).done((t=>{!1!==t&&(c=null)})),o=null))}))}})],cr=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{let h,d,p,f=0;const $=()=>{d&&(d.remove(),d=null),h&&(h.$destroy(),h=null),p&&(n.leave(p).done((t=>{!1!==t&&(d=null)})),d=p,p=null)};r.$watch(s,(s=>{const c=function(t){!1===t||!g(a)||a&&!r.$eval(a)||e()},d=++f;s?(t(s,!0).then((t=>{if(r.$$destroyed)return;if(d!==f)return;const e=r.$new();l.template=t;const a=u(e,(t=>{$(),n.enter(t,null,i).done(c)}));h=e,p=a,h.$emit("$includeContentLoaded",s),r.$eval(o)}),(()=>{r.$$destroyed||d===f&&($(),r.$emit("$includeContentError",s))})),r.$emit("$includeContentRequested",s)):($(),l.template=null)}))}}})],lr=["$compile",t=>({restrict:"ECA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Dt(i.template,window.document).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function ur(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function hr(){return{restrict:"EA",terminal:!0,priority:1e3}}const dr=mt("ngRef"),pr=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=wt(z(e)),i=t(n.ngRef),s=i.assign||function(){throw dr("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,o){let a;if(Object.prototype.hasOwnProperty.call(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=e.data(`$${o.ngRefRead}Controller`),!a)throw dr("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})],fr=document.createComment(""),$r=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=mt("ngRepeat"),i=function(t,e,n,r,i,s,o){t[n]=r,i&&(t[i]=s),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))},s=function(t){return t.clone[0]},o=function(t){return t.clone[t.clone.length-1]},a=function(t,e,n){return vt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],m=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);let w;if(g){var b={$id:vt};const e=t(g);w=function(t,n,r,i){return y&&(b[y]=n),b[v]=r,b.$index=i,e(t,b)}}return function(t,l,u,d,p){let g=Q();t.$watchCollection(f,(u=>{var d,f,E,C,x,S,O,k,_,T,A,R,N=l[0],P=Q();if(m&&(t[m]=u),$(u))_=u,k=w||a;else for(var j in k=w||c,_=[],u)Object.hasOwnProperty.call(u,j)&&"$"!==j.charAt(0)&&_.push(j);for(C=_.length,A=new Array(C),d=0;d<C;d++)if(x=u===_?d:_[d],S=u[x],O=k(t,x,S,d),g[O])T=g[O],delete g[O],P[O]=T,A[d]=T;else{if(P[O])throw V(A,(function(t){t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,O,S);A[d]={id:O,scope:void 0,clone:void 0},P[O]=!0}for(var D in b&&(b[v]=void 0),g){if(R=se((T=g[D]).clone),e.leave(R),R[0].parentNode)for(d=0,f=R.length;d<f;d++)R[d][n]=!0;T.scope.$destroy()}for(d=0;d<C;d++)if(x=u===_?d:_[d],S=u[x],(T=A[d]).scope){E=N;do{E=E.nextSibling}while(E&&E[n]);s(T)!==E&&e.move(se(T.clone),null,N),N=o(T),i(T.scope,d,v,S,y,x,C)}else p(((t,n)=>{T.scope=n;const r=fr.cloneNode(!1);t[t.length++]=r,e.enter(t,null,N),N=r,T.clone=t,P[T.id]=T,i(T.scope,d,v,S,y,x,C)}));g=P}))}}}}];function mr(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}const gr=["$animate",t=>({require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=se(a[n].clone);l[n].$destroy();(c[n]=t.leave(e)).done(u(c,n))}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&V(o,(e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),t.enter(n,i.parent(),i)}))}))}))}})];function vr(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function yr(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}const wr=mt("ngOptions"),br=/^\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]+?))?$/,Er=["$compile","$document","$parse",function(t,e,n){const r=window.document.createElement("option"),i=window.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(s,o,a,c){const l=c[0],u=c[1],{multiple:h}=a,d=o.childNodes;for(let t=0,e=d.length;t<e;t++)if(""===d[t].value){l.hasEmptyOption=!0,l.emptyOption=d[t];break}o.empty();const p=!!l.emptyOption;let f;Lt(r.cloneNode(!1)).val("?");const m=function(t,e,r){const i=t.match(br);if(!i)throw wr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,ie(e));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=n(i[2]?i[1]:s),u=a&&n(a)||l,h=c&&n(c),d=c?function(t,e){return h(r,e)}:function(t){return vt(t)},p=function(t,e){return d(t,w(t,e))},f=n(i[2]||i[1]),m=n(i[3]||""),g=n(i[4]||""),v=n(i[8]),y={};let w=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&$(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:n(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=w(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=w(a,s),l=u(r,c),h=d(l,c),p=new b(h,l,f(r,c),m(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(a.ngOptions,o,s),v=e[0].createDocumentFragment();function y(t,e){const n=r.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function w(t){const e=f.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}l.generateUnknownOptionValue=()=>"?",h?(l.writeValue=function(t){if(!f)return;const e=t&&t.map(w)||[];f.items.forEach((t=>{t.element.selected&&!W(e,t)&&(t.element.selected=!1)}))},l.readValue=function(){const t=o.val()||[],e=[];return V(t,(t=>{const n=f.selectValueMap[t];n&&!n.disabled&&e.push(f.getViewValueFromOption(n))})),e},m.trackBy&&s.$watchCollection((()=>{if(E(u.$viewValue))return u.$viewValue.map((t=>m.getTrackByValue(t)))}),(()=>{u.$render()}))):(l.writeValue=function(t){if(!f)return;const e=o[0].options[o[0].selectedIndex],n=f.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(o[0].value!==n.selectValue&&(l.removeUnknownOption(),o[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):l.selectUnknownOrEmptyOption(t)},l.readValue=function(){const t=f.selectValueMap[o.val()];return t&&!t.disabled?(l.unselectEmptyOption(),l.removeUnknownOption(),f.getViewValueFromOption(t)):null},m.trackBy&&s.$watch((()=>m.getTrackByValue(u.$viewValue)),(()=>{u.$render()}))),p&&(t(l.emptyOption)(s),o.prepend(l.emptyOption),l.emptyOption[0].nodeType===Node.COMMENT_NODE&&(l.hasEmptyOption=!1,l.registerOption=function(t,e){""===e.val()&&(l.hasEmptyOption=!0,l.emptyOption=e,u.$render(),e.on("$destroy",(()=>{const t=l.$isEmptyOptionSelected();l.hasEmptyOption=!1,l.emptyOption=void 0,t&&u.$render()})))})),s.$watchCollection(m.getWatchables,(function(){const t=f&&l.readValue();if(f)for(let t=f.items.length-1;t>=0;t--){const e=f.items[t];g(e.group)?Zt(e.element.parentNode):Zt(e.element)}f=m.getOptions();const e={};if(f.items.forEach((t=>{let n;g(t.group)?(n=e[t.group],n||(n=i.cloneNode(!1),v.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),y(t,n)):y(t,v)})),o[0].appendChild(v),u.$render(),!u.$isEmpty(t)){const e=l.readValue();(m.trackBy||h?J(t,e):t===e)||(u.$setViewValue(e),u.$render())}}))}}}}],Cr=mt("ngTransclude"),xr=["$compile",function(t){return{restrict:"EAC",compile:function(e){const n=t(e[0].childNodes);return e.empty(),function(t,e,r,i,s){if(!s)throw Cr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ie(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(t=>{e.append(t)}))}s((function(t,n){t.length&&function(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.nodeType!==Node.TEXT_NODE||n.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,o),o&&!s.isSlotFilled(o)&&a()}}}}];function Sr(){return{restrict:"A",priority:100,require:"ngModel",link(t,e,n,r){const i=n.ngList||", ",s="false"!==n.ngTrim,o=s?A(i):i;r.$parsers.push((function(t){if(m(t))return;const e=[];return t&&V(t.split(o),(t=>{t&&e.push(s?A(t):t)})),e})),r.$formatters.push((t=>{if(E(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}}function Or(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const kr=/^\/(.+)\/([a-z]*)$/,_r={};V(Qt,((t,e)=>{if("multiple"===t)return;function n(t,n,i){t.$watch(i[r],(t=>{i.$set(e,!!t)}))}let r=wt(`ng-${e}`),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),_r[r]=function(){return{restrict:"A",priority:100,link:i}}})),V(u,((t,e)=>{_r[e]=function(){return{priority:100,link(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(kr);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]))}t.$watch(r[e],(t=>{r.$set(e,t)}))}}}})),V(["src","srcset","href"],(t=>{const e=wt(`ng-${t}`);_r[e]=["$sce",function(n){return{priority:99,link(r,i,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(i[0].href)&&(o="xlinkHref",s.$attr[o]="xlink:href"),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(e=>{e?s.$set(o,e):"href"===t&&s.$set(o,null)}))}}}]}));const Tr=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=function(t,e){return!s||!i.$isEmpty(e)},r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Ar=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&kr.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,s){if(s){var o=n.pattern;n.ngPattern?o=i(t):r=n.pattern;var a=Nr(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Nr(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||m(a)||a.test(e)}}}}}}],Rr=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Pr(s);r.$observe("maxlength",(t=>{s!==t&&(o=Pr(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Vr=["$parse",function(t){return{restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.minlength||t(r.ngMinlength)(e),o=Pr(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Pr(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Nr(t,e,n){if(t){if(y(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw mt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,ie(n));return t}}function Pr(t){const e=I(t);return L(e)?-1:e}function jr(){let t=!0;this.disableAutoScrolling=()=>{t=!1},this.$get=["$location","$rootScope",function(e,n){const{document:r}=window;function i(t){if(t){t.scrollIntoView();const e=function(){let t=s.yOffset;if(x(t))t=t();else if(B(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else w(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}function s(t){let n;(t=y(t)?t:w(t)?t.toString():e.hash())?(n=r.getElementById(t))||(n=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===z(t))return e=t,!0})),e}(r.getElementsByName(t)))?i(n):"top"===t&&i(null):i(null)}return t&&n.$watch((()=>e.hash()),((t,e)=>{if(t===e&&""===t)return;const r=()=>n.$evalAsync(s);"complete"===window.document.readyState?window.setTimeout((()=>r())):window.addEventListener("load",(()=>r()))})),s}]}const Dr=mt("$animate"),Mr="ng-animate";function Ir(t,e){return t||e?t?e?(E(t)&&(t=t.join(" ")),E(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function Lr(t){return v(t)?t:{}}function qr(){this.$get=()=>{}}function Ur(){const t=new Map,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:()=>{},on:()=>{},off:()=>{},pin:()=>{},push(o,a,c,l){l&&l(),(c=c||{}).from,c.to,(c.addClass||c.removeClass)&&function(n,o,a){const c=t.get(n)||{},l=i(c,o,!0),u=i(c,a,!1);(l||u)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(s))}(o,c.addClass,c.removeClass);const u=new n;return u.complete(),u}};function i(t,e,n){let r=!1;return e&&V(e=y(e)?e.split(" "):E(e)?e:[],(e=>{e&&(r=!0,t[e]=n)})),r}function s(){V(e,(function(e){var n=t.get(e);if(n){var r=function(t){y(t)&&(t=t.split(" "));const e=Q();return V(t,(t=>{t.length&&(e[t]=!0)})),e}(e.attr("class")),i="",s="";V(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:s+=(s.length?" ":"")+e)})),V(e,(function(t){s&&s.split(" ").forEach((e=>t.classList.remove(e))),i&&(t.className+=` ${i}`)})),t.delete(e)}})),e.length=0}}]}const Hr=["$provide",function(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Dr("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=x(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Mr}[(\\s|\\/)]`).test(n.toString()))throw n=null,Dr("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Mr)}return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(n,r,i,s)=>(r=r&&Lt(r),i=i&&Lt(i),e(n,r=r||i.parent(),i),t.push(n,"enter",Lr(s))),move:(n,r,i,s)=>(r=r&&Lt(r),i=i&&Lt(i),e(n,r=r||i.parent(),i),t.push(n,"move",Lr(s))),leave:(e,n)=>t.push(e,"leave",Lr(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=Lr(r)).addClass=Ir(r.addclass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=Lr(r)).removeClass=Ir(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=Lr(i)).addClass=Ir(i.addClass,n),i.removeClass=Ir(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=Lr(s)).from=s.from?D(s.from,n):n,s.to=s.to?D(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=Ir(s.tempClasses,i),t.push(e,"animate",s))}}]}];let Fr=null;function Br(t,e){const n=this;let{location:r}=window,{history:i}=window;const{setTimeout:s}=window,{clearTimeout:o}=window,a={},c=e(t);let l,u;n.$$completeOutstandingRequest=c.completeTask,n.$$incOutstandingRequestCount=c.incTaskCount,n.notifyWhenNoOutstandingRequests=c.notifyWhenNoPendingTasks;let h=r.href;const d=Lt(Array.from(window.document.getElementsByTagName("base")));let p=null;const f=function(){return i.state};y(),n.url=function(t,e,s){if(m(s)&&(s=null),r!==window.location&&(r=window.location),i!==window.history&&(i=window.history),t){const r=u===s;return t=Te(t).href,h===t&&r?n:(h=t,u=s,i[e?"replaceState":"pushState"](s,"",t),y(),n)}return function(t){return t.replace(/#$/,"")}(p||r.href)},n.state=function(){return l};const $=[];let g=!1;function v(){p=null,w()}function y(){l=f(),l=m(l)?null:l,J(l,Fr)&&(l=Fr),Fr=l,u=l}function w(){const t=u;y(),h===n.url()&&t===l||(h=n.url(),u=l,V($,(t=>{t(n.url(),l)})))}n.onUrlChange=function(t){return g||(Lt(window).on("popstate",v),Lt(window).on("hashchange",v),g=!0),$.push(t),t},n.$$applicationDestroyed=function(){Lt(window).off("hashchange popstate",v)},n.$$checkUrlChange=w,n.baseHref=function(){const t=d.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},n.defer=function(t,e,n){let r;return e=e||0,n=n||c.DEFAULT_TASK_TYPE,c.incTaskCount(n),r=s((()=>{delete a[r],c.completeTask(t,n)}),e),a[r]=n,r},n.defer.cancel=function(t){if(Object.prototype.hasOwnProperty.call(a,t)){const e=a[t];return delete a[t],o(t),c.completeTask((()=>{}),e),!0}return!1}}function zr(){this.$get=["$log","$$taskTrackerFactory",function(t,e){return new Br(t,e)}]}function Wr(){this.$get=["$$AnimateRunner",t=>function(e,n){let r,i=n||{};i.$$prepared||(i=structuredClone(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(i.from=null);const s=new t;return{start:o,end:o};function o(){return requestAnimationFrame((()=>{!function(){i.addClass&&(e[0].classList.add(i.addClass),i.addClass=null);i.removeClass&&(e[0].classList.remove(i.removeClass),i.removeClass=null);i.to&&(i.to=null)}(),r||s.complete(),r=!0})),s}}]}function Gr(t){const e=t[0]||{};let n={},r="";function i(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){let t,s,o,a,c;const l=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(l!==r)for(r=l,t=r.split("; "),n={},o=0;o<t.length;o++)s=t[o],a=s.indexOf("="),a>0&&(c=i(s.substring(0,a)),m(n[c])&&(n[c]=i(s.substring(a+1))));return n}}function Kr(){this.$get=Gr}function Jr(){this.$get=[function(){var t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]}function Zr(){this.$get=["$q","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,r){function i(t){this.setHost(t);const i=e();this._doneCallbacks=[],this._tick=function(t){n()?function(t){r(t,0,!1)}(t):i(t)},this._state=0}return i.chain=function(t,e){let n=0;!function r(){if(n===t.length)return void e(!0);t[n]((t=>{!1!==t?(n++,r()):e(!1)}))}()},i.all=function(t,e){let n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}V(t,(t=>{t.done(i)}))},i.prototype={setHost(t){this.host=t||{}},done(t){2===this._state?t():this._doneCallbacks.push(t)},progress:()=>{},getPromise(){if(!this.promise){const e=this;this.promise=t(((t,n)=>{e.done((e=>{!1===e?n():t()}))}))}return this.promise},then(t,e){return this.getPromise().then(t,e)},catch(t){return this.getPromise().catch(t)},finally(t){return this.getPromise().finally(t)},pause(){this.host.pause&&this.host.pause()},resume(){this.host.resume&&this.host.resume()},end(){this.host.end&&this.host.end(),this._resolve(!0)},cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete(t){const e=this;0===e._state&&(e._state=1,e._tick((()=>{e._resolve(t)})))},_resolve(t){2!==this._state&&(V(this._doneCallbacks,(e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}},i}]}function Yr(){this.$get=function(){const t={};function e(e,n){if(e in t)throw mt("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);let r=0,i=D({},n,{id:e}),s=Q();const o=n&&n.capacity||Number.MAX_VALUE;let a=Q(),c=null,l=null;return t[e]={put(t,e){if(!m(e)){if(o<Number.MAX_VALUE){u(a[t]||(a[t]={key:t}))}return t in s||r++,s[t]=e,r>o&&this.remove(l.key),e}},get(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;u(e)}return s[t]},remove(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete a[t]}t in s&&(delete s[t],r--)},removeAll(){s=Q(),r=0,a=Q(),c=l=null},destroy(){s=null,i=null,a=null,delete t[e]},info:()=>D({},i,{size:r})};function u(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),c=t,c.n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){const e={};return V(t,((t,n)=>{e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function Qr(){this.$get=["$cacheFactory",t=>t("templates")]}function Xr(){this.$get=[function(){return Lt(window.document)}]}function ti(){this.$get=["$document","$rootScope",function(t,e){const n=t[0];let r=n&&n.hidden;function i(){r=n.hidden}return t.on("visibilitychange",i),e.$on("$destroy",(()=>{t.off("visibilitychange",i)})),function(){return r}}]}function ei(){this.$get=["$log",function(t){return function(){t.error.apply(t,arguments)}}]}function ni(){return function(t,e,n,r){if(!$(t)){if(null==t)return t;throw mt("filter")("notarray","Expected array but received: {0}",t)}let i,s;switch(r=r||"$",ii(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n,r){const i=v(t)&&n in t;let s;!0===e?e=J:x(e)||(e=function(t,e){return!m(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!F(t))&&(t=f(`${t}`),e=f(`${e}`),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?ri(s,t[n],e,n,!1):ri(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function ri(t,e,n,r,i,s){const o=ii(t),a=ii(e);if("string"===a&&"!"===e.charAt(0))return!ri(t,e.substring(1),n,r,i);if(E(t))return t.some((t=>ri(t,e,n,r,i)));switch(o){case"object":var c;if(i){for(c in t)if(c.charAt&&"$"!==c.charAt(0)&&ri(t[c],e,n,r,!0))return!0;return!s&&ri(t,e,n,r,!1)}if("object"===a){for(c in e){const i=e[c];if(x(i)||m(i))continue;const s=c===r;if(!ri(s?t:t[c],i,n,r,s,s))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function ii(t){return null===t?"null":typeof t}function si(){return function(t,e){return m(e)&&(e=2),it(t,e)}}function oi(){return function(t,e,n){return L(e=Math.abs(Number(e))===1/0?Number(e):I(e))?t:(w(t)&&(t=t.toString()),$(t)?(n=(n=!n||isNaN(n)?0:I(n))<0?Math.max(0,t.length+n):n,e>=0?ai(t,n,n+e):0===n?ai(t,e,t.length):ai(t,Math.max(0,n+e),n)):t)}}function ai(t,e,n){return y(t)?t.slice(e,n):[].slice.call(t,e,n)}function ci(t){return function(r,i,s,o){if(null==r)return r;if(!$(r))throw mt("orderBy")("notarray","Expected array but received: {0}",r);E(i)||(i=[i]),0===i.length&&(i=["+"]);const a=i.map((e=>{let n=1,r=U;if(x(e))r=e;else if(y(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(r=t(e),r.constant))){const t=r();r=function(e){return e[t]}}return{get:r,descending:n}}));const c=s?-1:1,l=x(o)?o:n,u=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map((r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(x(t.valueOf)&&e(t=t.valueOf()))return t;if(F(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)))}}));return u.sort((function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=u.map((t=>t.value))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,i=e.type;if(r===i){let i=t.value,s=e.value;"string"===r?(i=i.toLowerCase(),s=s.toLowerCase()):"object"===r&&(v(i)&&(i=t.index),v(s)&&(s=e.index)),i!==s&&(n=i<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function li(t){const e="Filter";function n(r,i){if(v(r)){const t={};return V(r,((e,r)=>{t[r]=n(r,e)})),t}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("filter",ni),n("json",si),n("limitTo",oi),n("orderBy",ci)}function ui(){let t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return di((t=>{e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return g(e)?(t=e,this):t}}function hi(){let t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return di((t=>{e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return g(e)?(t=e,this):t}}function di(t,e,n){const r=mt("$q");let i=0;const s=[];function o(){return new a}function a(){const t=this.promise=new c;this.resolve=function(e){h(t,e)},this.reject=function(e){p(t,e)},this.notify=function(e){$(t,e)}}function c(){this.$$state={status:0}}function l(){for(;!i&&s.length;){const t=s.shift();if(!pi(t)){fi(t);const n=`Possibly unhandled rejection: ${gt(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function u(r){!n||r.pending||2!==r.status||pi(r)||(0===i&&0===s.length&&t(l),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++i,t((()=>{!function(r){let s,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(let t=0,n=a.length;t<n;++t){fi(r),o=a[t][0],s=a[t][r.status];try{x(s)?h(o,s(r.value)):1===r.status?h(o,r.value):p(o,r.value)}catch(t){p(o,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--i,n&&0===i&&t(l)}}(r)})))}function h(t,e){t.$$state.status||(e===t?f(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):d(t,e))}function d(t,e){let n,r=!1;try{(v(e)||x(e))&&(n=e.then),x(n)?(t.$$state.status=-1,n.call(e,(function(e){if(r)return;r=!0,d(t,e)}),i,(function(e){$(t,e)}))):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,f(t,e))}}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(n,r){const i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((()=>{let t,n;for(let s=0,o=i.length;s<o;s++){n=i[s][0],t=i[s][3];try{$(n,x(t)?t(r):r)}catch(t){e(t)}}}))}function g(t){const e=new c;return p(e,t),e}function y(t,e,n){let r=null;try{x(n)&&(r=n())}catch(t){return g(t)}return T(r)?r.then((()=>e(t)),g):e(t)}function w(t,e,n,r){const i=new c;return h(i,t),i.then(e,n,r)}D(c.prototype,{then(t,e,n){if(m(t)&&m(e)&&m(n))return this;const r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r},catch(t){return this.then(null,t)},finally(t,e){return this.then((e=>y(e,b,t)),(e=>y(e,g,t)),e)}});let b=w;function S(t){if(!x(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new c;return t((function(t){h(e,t)}),(function(t){p(e,t)})),e}return S.prototype=c.prototype,S.defer=o,S.reject=g,S.when=w,S.resolve=b,S.all=function(t){const e=new c;let n=0;const r=E(t)?[]:{};return V(t,((t,i)=>{n++,w(t).then((t=>{r[i]=t,--n||h(e,r)}),(t=>{p(e,t)}))})),0===n&&h(e,r),e},S.race=function(t){const e=o();return V(t,(t=>{w(t).then(e.resolve,e.reject)})),e.promise},S}function pi(t){return!!t.pur}function fi(t){t.pur=!0}function $i(t){t.$$state&&fi(t.$$state)}Gr.$inject=["$document"],ci.$inject=["$parse"],li.$inject=["$provide"];const mi=mt("$interval");function gi(){this.$get=["$$intervalFactory",function(t){const e={},n=function(t){window.clearInterval(t),delete e[t]},r=t((function(t,n,r){const i=window.setInterval(t,n);return e[i]=r,i}),n);return r.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw mi("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!Object.prototype.hasOwnProperty.call(e,t.$$intervalId))return!1;const r=t.$$intervalId,i=e[r];return $i(i.promise),i.reject("canceled"),n(r),!0},r}]}const vi=mt("$interpolate");function yi(){let t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){const s=t.length,o=e.length,a=new RegExp(t.replace(/./g,l),"g"),c=new RegExp(e.replace(/./g,l),"g");function l(t){return`\\\\\\${t}`}function u(n){return n.replace(a,t).replace(c,e)}function h(t,e,n,r){const i=t.$watch((t=>(i(),r(t))),e,n);return i}function d(a,c,l,d){const p=l===i.URL||l===i.MEDIA_URL;if(!a.length||-1===a.indexOf(t)){if(c)return;let t=u(a);p&&(t=i.getTrusted(l,t));const e=H(t);return e.exp=a,e.expressions=[],e.$$watchDelegate=h,e}let f,$;d=!!d;let v=0;const y=[];let w;const b=a.length;let E;const C=[],x=[];let S;for(;v<b;){if(-1===(f=a.indexOf(t,v))||-1===($=a.indexOf(e,f+s))){v!==b&&C.push(u(a.substring(v)));break}v!==f&&C.push(u(a.substring(v,f))),E=a.substring(f+s,$),y.push(E),v=$+o,x.push(C.length),C.push("")}S=1===C.length&&1===x.length;const O=p&&S?void 0:function(t){try{return t=l&&!p?i.getTrusted(l,t):i.valueOf(t),d&&!g(t)?t:X(t)}catch(t){r(vi.interr(a,t))}};if(w=y.map((t=>n(t,O))),!c||y.length){const t=function(t){for(let e=0,n=y.length;e<n;e++){if(d&&m(t[e]))return;C[x[e]]=t[e]}return p?i.getTrusted(l,S?C[0]:C.join("")):(l&&C.length>1&&vi.throwNoconcat(a),C.join(""))};return D((e=>{let n=0;const i=y.length,s=new Array(i);try{for(;n<i;n++)s[n]=w[n](e);return t(s)}catch(t){r(vi.interr(a,t))}}),{exp:a,expressions:y,$$watchDelegate(e,n){let r;return e.$watchGroup(w,(function(i,s){const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return d.startSymbol=function(){return t},d.endSymbol=function(){return e},d}]}function wi(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,s){return function(o,a,c,l){const u=arguments.length>4,h=u?et(arguments,4):[];let d=0;const p=g(l)&&!l,f=(p?n:e).defer(),{promise:$}=f;function m(){u?o.apply(null,h):o(d)}return c=g(c)?c:0,$.$$intervalId=i((function(){p?t.defer(m):r.$evalAsync(m),f.notify(d++),c>0&&d>=c&&(f.resolve(d),s($.$$intervalId)),p||r.$apply()}),a,f,p),$}}}]}vi.throwNoconcat=function(t){throw vi("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)},vi.interr=function(t,e){throw vi("interr","Can't interpolate: {0}\n{1}",t,e.toString())};const bi="application/json",Ei={"Content-Type":`${bi};charset=utf-8`},Ci=/^\[|^\{(?!\{)/,xi={"[":/]$/,"{":/}$/},Si=/^\)]\}',?\n/,Oi=mt("$http");function ki(t){return v(t)?b(t)?t.toISOString():it(t):t}function _i(){this.$get=function(){return function(t){if(!t)return"";const e=[];return N(t,((t,n)=>{null===t||m(t)||x(t)||(E(t)?V(t,(t=>{e.push(`${ut(n)}=${ut(ki(t))}`)})):e.push(`${ut(n)}=${ut(ki(t))}`))})),e.join("&")}}}function Ti(){this.$get=function(){return function(t){if(!t)return"";const e=[];return function t(n,r,i){E(n)?V(n,((e,n)=>{t(e,`${r}[${v(e)?n:""}]`)})):v(n)&&!b(n)?N(n,((e,n)=>{t(e,r+(i?"":"[")+n+(i?"":"]"))})):(x(n)&&(n=n()),e.push(`${ut(r)}=${null==n?"":ut(ki(n))}`))}(t,"",!0),e.join("&")}}}function Ai(t,e){if(y(t)){const n=t.replace(Si,"").trim();if(n){const r=e("Content-Type"),i=r&&0===r.indexOf(bi);if(i||function(t){const e=t.match(Ci);return e&&xi[e[0]].test(t)}(n))try{t=st(n)}catch(e){if(!i)return t;throw Oi("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}return t}function Ri(t){const e=Q();let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return y(t)?V(t.split("\n"),(t=>{n=t.indexOf(":"),r(f(A(t.substr(0,n))),A(t.substr(n+1)))})):v(t)&&V(t,((t,e)=>{r(f(e),A(t))})),e}function Vi(t){let e;return function(n){if(e||(e=Ri(t)),n){let t=e[f(n)];return void 0===t&&(t=null),t}return e}}function Ni(t,e,n,r){return x(r)?r(t,e,n):(V(r,(r=>{t=r(t,e,n)})),t)}function Pi(t){return t>=200&&t<300}function ji(){const t=this.defaults={transformResponse:[Ai],transformRequest:[function(t){return!v(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:it(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:dt(Ei),put:dt(Ei),patch:dt(Ei)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return g(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l,u,h){const d=a("$http");t.paramSerializer=y(t.paramSerializer)?u.get(t.paramSerializer):t.paramSerializer;const p=[];V(n,(t=>{p.unshift(y(t)?u.get(t):u.invoke(t))}));const $=function(t){const e=[ke].concat(t.map(Te));return function(t){const n=Te(t);return e.some(Re.bind(null,n))}}(r);function w(n){if(!v(n))throw mt("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!y(h.valueOf(n.url)))throw mt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=D({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var a;r.headers=function(e){let n=t.headers,r=D({},e.headers);return n=D({},n.common,n[f(e.method)]),Object.keys(n).forEach((t=>{r[f(t)]||(r[t]=n[t])})),function(t,e){let n;const r={};return V(t,((t,i)=>{x(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t})),r}(r,dt(e))}(n),r.method=y(a=r.method)?a.toUpperCase():a,r.paramSerializer=y(r.paramSerializer)?u.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const b=[],C=[];let S=l.resolve(r);return V(p,(t=>{(t.request||t.requestError)&&b.unshift(t.request,t.requestError),(t.response||t.responseError)&&C.push(t.response,t.responseError)})),S=O(S,b),S=S.then((function(n){const{headers:r}=n,i=Ni(n.data,Vi(r),void 0,n.transformRequest);m(i)&&V(r,((t,e)=>{"content-type"===f(e)&&delete r[e]}));m(n.withCredentials)&&!m(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=l.defer(),{promise:a}=i;let u,p;const f=n.headers;let{url:b}=n;y(b)||(b=h.valueOf(b));b=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(b,n.paramSerializer(n.params)),w.pendingRequests.push(n),a.then(k,k),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(u=v(n.cache)?n.cache:v(t.cache)?t.cache:d);u&&(p=u.get(b),g(p)?T(p)?p.then(O,O):E(p)?S(p[1],p[0],dt(p[2]),p[3],p[4]):S(p,200,{},"OK","complete"):u.put(b,a));if(m(p)){const e=$(n.url)?o()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&(f[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,b,r,x,f,n.timeout,n.withCredentials,n.responseType,C(n.eventHandlers),C(n.uploadEventHandlers))}return a;function C(t){if(t){const n={};return V(t,((t,r)=>{n[r]=function(n){function r(){t(n)}e?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}})),n}}function x(t,n,r,i,s){function o(){S(n,t,r,i,s)}u&&(Pi(t)?u.put(b,[t,n,Ri(r),i,s]):u.remove(b)),e?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function S(t,e,r,s,o){(Pi(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:Vi(r),config:n,statusText:s,xhrStatus:o})}function O(t){S(t.data,t.status,dt(t.headers()),t.statusText,t.xhrStatus)}function k(){const t=w.pendingRequests.indexOf(n);-1!==t&&w.pendingRequests.splice(t,1)}}(n,i).then(k,k)})),S=O(S,C),S=S.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),S;function O(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function k(t){const e=D({},t);return e.data=Ni(t.data,t.headers,t.status,r.transformResponse),Pi(t.status)?e:l.reject(e)}}return w.pendingRequests=[],function(...t){t.forEach((t=>{w[t]=function(e,n){return w(D({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{w[t]=function(e,n,r){return w(D({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),w.defaults=t,w}]}function Di(){this.$get=()=>function(){return new window.XMLHttpRequest}}function Mi(){this.$get=["$browser","$xhrFactory",function(t,e){return function(t,e,n){return function(r,i,s,o,a,c,l,u,h,d){i=i||t.url();let p=e(r,i),f=!1;if(p.open(r,i,!0),V(a,((t,e)=>{g(t)&&p.setRequestHeader(e,t)})),p.onload=function(){const t=p.statusText||"",e="response"in p?p.response:p.responseText;let n=p.status;0===n&&(n=e?200:"file"===Te(i).protocol?404:0),y(o,n,e,p.getAllResponseHeaders(),t,"complete")},p.onerror=function(){y(o,-1,null,null,"","error")},p.ontimeout=function(){y(o,-1,null,null,"","timeout")},p.onabort=function(){y(o,-1,null,null,"",f?"timeout":"abort")},V(h,((t,e)=>{p.addEventListener(e,t)})),V(d,((t,e)=>{p.upload.addEventListener(e,t)})),l&&(p.withCredentials=!0),u)try{p.responseType=u}catch(t){if("json"!==u)throw t}if(p.send(m(s)?null:s),c>0)var $=n((()=>{v("timeout")}),c);else T(c)&&c.then((()=>{v(g(c.$$timeoutId)?"timeout":"abort")}));function v(t){f="timeout"===t,p&&p.abort()}function y(t,e,r,i,s,o){g($)&&n.cancel($),p=null,t(e,r,i,s,o)}}}(t,e,t.defer)}]}const Ii=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Li={http:80,https:443,ftp:21},qi=mt("$location");function Ui(t,e,n){const r=function(t){const e=[];return V(t,((t,n)=>{E(t)?V(t,(t=>{e.push(ut(n,!0)+(!0===t?"":`=${ut(t,!0)}`))})):e.push(ut(n,!0)+(!0===t?"":`=${ut(t,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${lt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=lt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?`?${r}`:"")+i}function Hi(t,e){const n=Te(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=I(n.port)||Li[n.protocol]||null}const Fi=/^\s*[\\/]{2,}/;function Bi(t,e,n){if(Fi.test(t))throw qi("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Te(t),s=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,n),e.$$search=at(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function zi(t,e){return t.slice(0,e.length)===e}function Wi(t,e){if(zi(e,t))return e.substr(t.length)}function Gi(t){const e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function Ki(t,e,n){this.$$html5=!0,n=n||"",Hi(t,this),this.$$parse=function(t){const n=Wi(e,t);if(!y(n))throw qi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Bi(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;let s,o,a;return g(s=Wi(t,r))?(o=s,a=n&&g(s=Wi(n,s))?e+(Wi("/",s)||s):t+o):g(s=Wi(e,r))?a=e+s:e===`${r}/`&&(a=e),a&&this.$$parse(a),!!a}}function Ji(t,e,n){Hi(t,this),this.$$parse=function(r){const i=Wi(t,r)||Wi(e,r);let s;m(i)||"#"!==i.charAt(0)?this.$$html5?s=i:(s="",m(i)&&(t=r,this.replace())):(s=Wi(n,i),m(s)&&(s=i)),Bi(s,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;zi(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return i=r.exec(t),i?i[1]:t}(this.$$path,s,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e){return Gi(t)===Gi(e)&&(this.$$parse(e),!0)}}const Zi={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose(){this.$$url=Ui(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:Yi("$$absUrl"),url(t){if(m(t))return this.$$url;const e=Ii.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Yi("$$protocol"),host:Yi("$$host"),port:Yi("$$port"),path:Qi("$$path",(t=>"/"===(t=null!==t?t.toString():"").charAt(0)?t:`/${t}`)),search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(y(t)||w(t))t=t.toString(),this.$$search=at(t);else{if(!v(t))throw qi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");V(t=structuredClone(t,{}),((e,n)=>{null==e&&delete t[n]})),this.$$search=t}break;default:m(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Qi("$$hash",(t=>null!==t?t.toString():"")),replace(){return this.$$replace=!0,this}};function Yi(t){return function(){return this[t]}}function Qi(t,e){return function(n){return m(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Xi(){let t="!";const e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return g(e)?(t=e,this):t},this.html5Mode=function(t){return _(t)?(e.enabled=t,this):v(t)?(_(t.enabled)&&(e.enabled=t.enabled),_(t.requireBase)&&(e.requireBase=t.requireBase),(_(t.rewriteLinks)||y(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$rootElement",function(n,r,i){let s,o;const a=r.baseHref(),c=r.url();let l;if(e.enabled){if(!a&&e.requireBase)throw qi("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(u=c).substring(0,u.indexOf("/",u.indexOf("//")+2))+(a||"/"),o=Ki}else l=Gi(c),o=Ji;var u;const h=function(t){return t.substr(0,Gi(t).lastIndexOf("/")+1)}(l);s=new o(l,h,`#${t}`),s.$$parseLinkUrl(c,c),s.$$state=r.state();const d=/^\s*(javascript|mailto):/i;function p(t,e,n){const i=s.url(),o=s.$$state;try{r.url(t,e,n),s.$$state=r.state()}catch(t){throw s.url(i),s.$$state=o,t}}i.on("click",(t=>{const{rewriteLinks:o}=e;if(!o||t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let a=Lt(t.target);for(;"a"!==a[0].nodeName.toLowerCase();)if(a[0]===i[0]||!(a=a.parent())[0])return;if(y(o)&&m(a.attr(o)))return;let c=a[0].href;const l=a.attr("href")||a.attr("xlink:href");v(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=Te(c.animVal).href),d.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(c,l)&&(t.preventDefault(),s.absUrl()!==r.url()&&n.$apply())})),s.absUrl()!==c&&r.url(s.absUrl(),!0);let f=!0;return r.onUrlChange(((t,e)=>{zi(t,h)?(n.$evalAsync((()=>{const r=s.absUrl(),i=s.$$state;let o;s.$$parse(t),s.$$state=e,o=n.$broadcast("$locationChangeStart",t,r,e,i).defaultPrevented,s.absUrl()===t&&(o?(s.$$parse(r),s.$$state=i,p(r,!1,i)):(f=!1,$(r,i)))})),n.$$phase||n.$digest()):window.location.href=t})),n.$watch((()=>{if(f||s.$$urlUpdatedByLocation){s.$$urlUpdatedByLocation=!1;const i=r.url(),o=s.absUrl(),a=r.state(),c=s.$$replace,l=!((t=i)===(e=o)||Te(t).href===Te(e).href)||s.$$html5&&a!==s.$$state;(f||l)&&(f=!1,n.$evalAsync((()=>{const t=s.absUrl(),{defaultPrevented:e}=n.$broadcast("$locationChangeStart",t,i,s.$$state,a);s.absUrl()===t&&(e?(s.$$parse(i),s.$$state=a):(l&&p(t,c,a===s.$$state?null:s.$$state),$(i,a)))})))}var t,e;s.$$replace=!1})),s;function $(t,e){n.$broadcast("$locationChangeSuccess",s.absUrl(),t,s.$$state,e)}}]}V([function(t,e,n){this.$$html5=!0,Ji.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;let s,o;return t===Gi(r)?s=r:(o=Wi(e,r))?s=t+n+o:e===`${r}/`&&(s=e),s&&this.$$parse(s),!!s},this.$$normalizeUrl=function(e){return t+n+e}},Ji,Ki],(t=>{t.prototype=Object.create(Zi),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ki||!this.$$html5)throw qi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=m(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));class ts{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return C(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map((t=>this.formatError(t)));return n.apply(e,r)}}$get(){return{log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()}}}const es=mt("$parse"),ns={}.constructor.prototype.valueOf;function rs(t){return`${t}`}const is=Q();"+ - * / % === !== == != < > <= >= && || ! = |".split(" ").forEach((t=>is[t]=!0));const ss={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},os=function(t){this.options=t};os.prototype={constructor:os,lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=is[t],i=is[e],s=is[n];if(r||i||s){const r=s?n:i?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:(t,e)=>-1!==e.indexOf(t),peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:t=>t>="0"&&t<="9"&&"string"==typeof t,isWhitespace:t=>" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t,isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:t=>t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t,isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue(t){return this.isValidIdentifierStart(t)||this.isNumber(t)},codePointAt:t=>1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888,peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t},isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)},throwError(t,e,n){n=n||this.index;const r=g(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw es("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=f(this.text.charAt(this.index));if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString(t){const e=this.index;this.index++;let n="",r=t,i=!1;for(;this.index<this.text.length;){const s=this.text.charAt(this.index);if(r+=s,i){if("u"===s){const t=this.text.substring(this.index+1,this.index+5);t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,n+=String.fromCharCode(parseInt(t,16))}else{n+=ss[s]||s}i=!1}else if("\\"===s)i=!0;else{if(s===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=s}this.index++}this.throwError("Unterminated quote",e)}};const as={Program:"Program",ExpressionStatement:"ExpressionStatement",AssignmentExpression:"AssignmentExpression",ConditionalExpression:"ConditionalExpression",LogicalExpression:"LogicalExpression",BinaryExpression:"BinaryExpression",UnaryExpression:"UnaryExpression",CallExpression:"CallExpression",MemberExpression:"MemberExpression",Identifier:"Identifier",Literal:"Literal",ArrayExpression:"ArrayExpression",Property:"Property",ObjectExpression:"ObjectExpression",ThisExpression:"ThisExpression",LocalsExpression:"LocalsExpression",NGValueParameter:"NGValueParameter"};function cs(t,e){this.lexer=t,this.options=e}function ls(t,e){return void 0!==t?t:e}function us(t,e){return void 0===t?e:void 0===e?t:t+e}cs.prototype={ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:as.Program,body:t}},expressionStatement(){return{type:as.ExpressionStatement,expression:this.filterChain()}},filterChain(){let t=this.expression();for(;this.expect("|");)t=this.filter(t);return t},expression(){return this.assignment()},assignment(){let t=this.ternary();if(this.expect("=")){if(!$s(t))throw es("lval","Trying to assign a value to a non l-value");t={type:as.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.expression(),this.consume(":"))?(n=this.expression(),{type:as.ConditionalExpression,test:t,alternate:e,consequent:n}):t},logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:as.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:as.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:as.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary(){let t;return(t=this.expect("+","-","!"))?{type:as.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():Object.prototype.hasOwnProperty.call(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):Object.prototype.hasOwnProperty.call(this.options.literals,this.peek().text)?t={type:as.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:as.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:as.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:as.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter(t){const e=[t],n={type:as.CallExpression,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.expression());return n},parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:as.Identifier,name:t.text}},constant(){return{type:as.Literal,value:this.consume().value}},arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:as.ArrayExpression,elements:t}},object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:as.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:as.ObjectExpression,properties:t}},throwError(t,e){throw es("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume(t){if(0===this.tokens.length)throw es("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);return e||this.throwError(`is unexpected, expecting [${t}]`,this.peek()),e},peekToken(){if(0===this.tokens.length)throw es("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead(t,e,n,r,i){if(this.tokens.length>t){const s=this.tokens[t],o=s.text;if(o===e||o===n||o===r||o===i||!e&&!n&&!r&&!i)return s}return!1},expect(t,e,n,r){const i=this.peek(t,e,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:as.ThisExpression},$locals:{type:as.LocalsExpression}}};const hs=1,ds=2;function ps(t,e,n){let r,i,s;const o=t.isPure=function(t,e){switch(t.type){case as.MemberExpression:if(t.computed)return!1;break;case as.UnaryExpression:return hs;case as.BinaryExpression:return"+"!==t.operator&&hs;case as.CallExpression:return!1}return void 0===e?ds:e}(t,n);switch(t.type){case as.Program:r=!0,V(t.body,(t=>{ps(t.expression,e,o),r=r&&t.expression.constant})),t.constant=r;break;case as.Literal:t.constant=!0,t.toWatch=[];break;case as.UnaryExpression:ps(t.argument,e,o),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case as.BinaryExpression:ps(t.left,e,o),ps(t.right,e,o),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case as.LogicalExpression:ps(t.left,e,o),ps(t.right,e,o),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case as.ConditionalExpression:ps(t.test,e,o),ps(t.alternate,e,o),ps(t.consequent,e,o),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case as.Identifier:t.constant=!1,t.toWatch=[t];break;case as.MemberExpression:ps(t.object,e,o),t.computed&&ps(t.property,e,o),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case as.CallExpression:s=!!t.filter&&function(t,e){return!t(e).$stateful}(e,t.callee.name),r=s,i=[],V(t.arguments,(t=>{ps(t,e,o),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=s?i:[t];break;case as.AssignmentExpression:ps(t.left,e,o),ps(t.right,e,o),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case as.ArrayExpression:r=!0,i=[],V(t.elements,(t=>{ps(t,e,o),r=r&&t.constant,i.push.apply(i,t.toWatch)})),t.constant=r,t.toWatch=i;break;case as.ObjectExpression:r=!0,i=[],V(t.properties,(t=>{ps(t.value,e,o),r=r&&t.value.constant,i.push.apply(i,t.value.toWatch),t.computed&&(ps(t.key,e,!1),r=r&&t.key.constant,i.push.apply(i,t.key.toWatch))})),t.constant=r,t.toWatch=i;break;case as.ThisExpression:case as.LocalsExpression:t.constant=!1,t.toWatch=[]}}function fs(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}function $s(t){return t.type===as.Identifier||t.type===as.MemberExpression}function ms(t){if(1===t.body.length&&$s(t.body[0].expression))return{type:as.AssignmentExpression,left:t.body[0].expression,right:{type:as.NGValueParameter},operator:"="}}function gs(t){this.$filter=t}function vs(t){this.$filter=t}gs.prototype={compile(t){const e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},ps(t,e.$filter);let n,r="";if(this.stage="assign",n=ms(t)){this.state.computing="assign";const t=this.nextId();this.recurse(n,t),this.return_(t),r=`fn.assign=${this.generateFunction("assign","s,v,l")}`}const i=fs(t.body);e.stage="inputs",V(i,((t,n)=>{const r=`fn${n}`;e.state[r]={vars:[],body:[],own:{}},e.state.computing=r;const i=e.nextId();e.recurse(t,i),e.return_(i),e.state.inputs.push({name:r,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);const s=`\n${this.filterPrefix()}let fn=${this.generateFunction("fn","s,l,a,i")}${r}${this.watchFns()}return fn;`,o=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,rs,ls,us);return this.state=this.stage=void 0,o},watchFns(){const t=[],{inputs:e}=this.state,n=this;return V(e,(e=>{t.push(`let ${e.name}=${n.generateFunction(e.name,"s")}`),e.isPure&&t.push(e.name,`.isPure=${JSON.stringify(e.isPure)};`)})),e.length&&t.push(`fn.inputs=[${e.map((t=>t.name)).join(",")}];`),t.join("")},generateFunction(t,e){return`function(${e}){${this.varsPrefix(t)}${this.body(t)}};`},filterPrefix(){const t=[],e=this;return V(this.state.filters,((n,r)=>{t.push(`${n}=$filter(${e.escape(r)})`)})),t.length?`let ${t.join(",")};`:""},varsPrefix(t){return this.state[t].vars.length?`let ${this.state[t].vars.join(",")};`:""},body(t){return this.state[t].body.join("")},recurse(t,e,n,r,i,s){let o,a;const c=this;let l,u,h;if(r=r||(()=>{}),!s&&g(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,r,i,!0));switch(t.type){case as.Program:V(t.body,((e,n)=>{c.recurse(e.expression,void 0,void 0,(t=>{a=t})),n!==t.body.length-1?c.current().body.push(a,";"):c.return_(a)}));break;case as.Literal:u=this.escape(t.value),this.assign(e,u),r(e||u);break;case as.UnaryExpression:this.recurse(t.argument,void 0,void 0,(t=>{a=t})),u=`${t.operator}(${this.ifDefined(a,0)})`,this.assign(e,u),r(u);break;case as.BinaryExpression:this.recurse(t.left,void 0,void 0,(t=>{o=t})),this.recurse(t.right,void 0,void 0,(t=>{a=t})),u="+"===t.operator?this.plus(o,a):"-"===t.operator?this.ifDefined(o,0)+t.operator+this.ifDefined(a,0):`(${o})${t.operator}(${a})`,this.assign(e,u),r(u);break;case as.LogicalExpression:e=e||this.nextId(),c.recurse(t.left,e),c.if_("&&"===t.operator?e:c.not(e),c.lazyRecurse(t.right,e)),r(e);break;case as.ConditionalExpression:e=e||this.nextId(),c.recurse(t.test,e),c.if_(e,c.lazyRecurse(t.alternate,e),c.lazyRecurse(t.consequent,e)),r(e);break;case as.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===c.stage?"s":this.assign(this.nextId(),`${this.getHasOwnProperty("l",t.name)}?l:s`),n.computed=!1,n.name=t.name),c.if_("inputs"===c.stage||c.not(c.getHasOwnProperty("l",t.name)),(()=>{c.if_("inputs"===c.stage||"s",(()=>{i&&1!==i&&c.if_(c.isNull(c.nonComputedMember("s",t.name)),c.lazyAssign(c.nonComputedMember("s",t.name),"{}")),c.assign(e,c.nonComputedMember("s",t.name))}))}),e&&c.lazyAssign(e,c.nonComputedMember("l",t.name))),r(e);break;case as.MemberExpression:o=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),c.recurse(t.object,o,void 0,(()=>{c.if_(c.notNull(o),(()=>{t.computed?(a=c.nextId(),c.recurse(t.property,a),c.getStringValue(a),i&&1!==i&&c.if_(c.not(c.computedMember(o,a)),c.lazyAssign(c.computedMember(o,a),"{}")),u=c.computedMember(o,a),c.assign(e,u),n&&(n.computed=!0,n.name=a)):(i&&1!==i&&c.if_(c.isNull(c.nonComputedMember(o,t.property.name)),c.lazyAssign(c.nonComputedMember(o,t.property.name),"{}")),u=c.nonComputedMember(o,t.property.name),c.assign(e,u),n&&(n.computed=!1,n.name=t.property.name))}),(()=>{c.assign(e,"undefined")})),r(e)}),!!i);break;case as.CallExpression:e=e||this.nextId(),t.filter?(a=c.filter(t.callee.name),l=[],V(t.arguments,(t=>{const e=c.nextId();c.recurse(t,e),l.push(e)})),u=`${a}(${l.join(",")})`,c.assign(e,u),r(e)):(a=c.nextId(),o={},l=[],c.recurse(t.callee,a,o,(()=>{c.if_(c.notNull(a),(()=>{V(t.arguments,(e=>{c.recurse(e,t.constant?void 0:c.nextId(),void 0,(t=>{l.push(t)}))})),u=o.name?`${c.member(o.context,o.name,o.computed)}(${l.join(",")})`:`${a}(${l.join(",")})`,c.assign(e,u)}),(()=>{c.assign(e,"undefined")})),r(e)})));break;case as.AssignmentExpression:a=this.nextId(),o={},this.recurse(t.left,void 0,o,(()=>{c.if_(c.notNull(o.context),(()=>{c.recurse(t.right,a),u=c.member(o.context,o.name,o.computed)+t.operator+a,c.assign(e,u),r(e||u)}))}),1);break;case as.ArrayExpression:l=[],V(t.elements,(e=>{c.recurse(e,t.constant?void 0:c.nextId(),void 0,(t=>{l.push(t)}))})),u=`[${l.join(",")}]`,this.assign(e,u),r(e||u);break;case as.ObjectExpression:l=[],h=!1,V(t.properties,(t=>{t.computed&&(h=!0)})),h?(e=e||this.nextId(),this.assign(e,"{}"),V(t.properties,(t=>{t.computed?(o=c.nextId(),c.recurse(t.key,o)):o=t.key.type===as.Identifier?t.key.name:`${t.key.value}`,a=c.nextId(),c.recurse(t.value,a),c.assign(c.member(e,o,t.computed),a)}))):(V(t.properties,(e=>{c.recurse(e.value,t.constant?void 0:c.nextId(),void 0,(t=>{l.push(`${c.escape(e.key.type===as.Identifier?e.key.name:`${e.key.value}`)}:${t}`)}))})),u=`{${l.join(",")}}`,this.assign(e,u)),r(e||u);break;case as.ThisExpression:this.assign(e,"s"),r(e||"s");break;case as.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case as.NGValueParameter:this.assign(e,"v"),r(e||"v")}},getHasOwnProperty(t,e){const n=`${t}.${e}`,{own:r}=this.current();return Object.prototype.hasOwnProperty.call(r,n)||(r[n]=this.nextId(!1,`${t}&&(${this.escape(e)} in ${t})`)),r[n]},assign(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter(t){return Object.prototype.hasOwnProperty.call(this.state.filters,t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined(t,e){return`ifDefined(${t},${this.escape(e)})`},plus:(t,e)=>`plus(${t},${e})`,return_(t){this.current().body.push("return ",t,";")},if_(t,e,n){if(!0===t)e();else{const{body:r}=this.current();r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:t=>`!(${t})`,isNull:t=>`${t}==null`,notNull:t=>`${t}!=null`,nonComputedMember(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?`${t}.${e}`:`${t}["${e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)}"]`},computedMember:(t,e)=>`${t}[${e}]`,member(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue(t){this.assign(t,`getStringValue(${t})`)},lazyRecurse(t,e,n,r,i,s){const o=this;return function(){o.recurse(t,e,n,r,i,s)}},lazyAssign(t,e){const n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:t=>`\\u${`0000${t.charCodeAt(0).toString(16)}`.slice(-4)}`,escape(t){if(y(t))return`'${t.replace(this.stringEscapeRegex,this.stringEscapeFn)}'`;if(w(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw es("esc","IMPOSSIBLE")},nextId(t,e){const n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?`=${e}`:"")),n},current(){return this.state[this.state.computing]}},vs.prototype={compile(t){const e=this;let n,r;ps(t,e.$filter),(n=ms(t))&&(r=this.recurse(n));const i=fs(t.body);let s;i&&(s=[],V(i,((t,n)=>{const r=e.recurse(t);r.isPure=t.isPure,t.input=r,s.push(r),t.watchId=n})));const o=[];V(t.body,(t=>{o.push(e.recurse(t.expression))}));const a=0===t.body.length?()=>{}:1===t.body.length?o[0]:function(t,e){let n;return V(o,(r=>{n=r(t,e)})),n};return r&&(a.assign=function(t,e,n){return r(t,n,e)}),s&&(a.inputs=s),a},recurse(t,e,n){let r,i;const s=this;let o;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case as.Literal:return this.value(t.value,e);case as.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case as.BinaryExpression:case as.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case as.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case as.Identifier:return s.identifier(t.name,e,n);case as.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case as.CallExpression:return o=[],V(t.arguments,(t=>{o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r,s){const a=[];for(let e=0;e<o.length;++e)a.push(o[e](t,n,r,s));const c=i.apply(void 0,a,s);return e?{context:void 0,name:void 0,value:c}:c}:function(t,n,r,s){const a=i(t,n,r,s);let c;if(null!=a.value){const e=[];for(let i=0;i<o.length;++i)e.push(o[i](t,n,r,s));c=a.value.apply(a.context,e)}return e?{value:c}:c};case as.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,s,o){const a=r(t,n,s,o),c=i(t,n,s,o);return a.context[a.name]=c,e?{value:c}:c};case as.ArrayExpression:return o=[],V(t.elements,(t=>{o.push(s.recurse(t))})),function(t,n,r,i){const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r,i));return e?{value:s}:s};case as.ObjectExpression:return o=[],V(t.properties,(t=>{t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===as.Identifier?t.key.name:`${t.key.value}`,computed:!1,value:s.recurse(t.value)})})),function(t,n,r,i){const s={};for(let e=0;e<o.length;++e)o[e].computed?s[o[e].key(t,n,r,i)]=o[e].value(t,n,r,i):s[o[e].key]=o[e].value(t,n,r,i);return e?{value:s}:s};case as.ThisExpression:return function(t){return e?{value:t}:t};case as.LocalsExpression:return function(t,n){return e?{value:n}:n};case as.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,s){let o=t(n,r,i,s);return o=g(o)?+o:0,e?{value:o}:o}},"unary-":function(t,e){return function(n,r,i,s){let o=t(n,r,i,s);return o=g(o)?-o:-0,e?{value:o}:o}},"unary!":function(t,e){return function(n,r,i,s){const o=!t(n,r,i,s);return e?{value:o}:o}},"binary+":function(t,e,n){return function(r,i,s,o){const a=us(t(r,i,s,o),e(r,i,s,o));return n?{value:a}:a}},"binary-":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o),c=e(r,i,s,o),l=(g(a)?a:0)-(g(c)?c:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)*e(r,i,s,o);return n?{value:a}:a}},"binary/":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)/e(r,i,s,o);return n?{value:a}:a}},"binary%":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)%e(r,i,s,o);return n?{value:a}:a}},"binary===":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)===e(r,i,s,o);return n?{value:a}:a}},"binary!==":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)!==e(r,i,s,o);return n?{value:a}:a}},"binary==":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)==e(r,i,s,o);return n?{value:a}:a}},"binary!=":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)!=e(r,i,s,o);return n?{value:a}:a}},"binary<":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)<e(r,i,s,o);return n?{value:a}:a}},"binary>":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)>e(r,i,s,o);return n?{value:a}:a}},"binary<=":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)<=e(r,i,s,o);return n?{value:a}:a}},"binary>=":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)>=e(r,i,s,o);return n?{value:a}:a}},"binary&&":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)&&e(r,i,s,o);return n?{value:a}:a}},"binary||":function(t,e,n){return function(r,i,s,o){const a=t(r,i,s,o)||e(r,i,s,o);return n?{value:a}:a}},"ternary?:":function(t,e,n,r){return function(i,s,o,a){const c=t(i,s,o,a)?e(i,s,o,a):n(i,s,o,a);return r?{value:c}:c}},value:(t,e)=>function(){return e?{context:void 0,name:void 0,value:t}:t},identifier:(t,e,n)=>function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o},computedMember:(t,e,n,r)=>function(i,s,o,a){const c=t(i,s,o,a);let l,u;return null!=c&&(l=e(i,s,o,a),l=rs(l),r&&1!==r&&c&&!c[l]&&(c[l]={}),u=c[l]),n?{context:c,name:l,value:u}:u},nonComputedMember:(t,e,n,r)=>function(i,s,o,a){const c=t(i,s,o,a);r&&1!==r&&c&&null==c[e]&&(c[e]={});const l=null!=c?c[e]:void 0;return n?{context:c,name:e,value:l}:l},inputs:(t,e)=>function(n,r,i,s){return s?s[e]:t(n,r,i)}};class ys{constructor(t,e,n){this.ast=new cs(t,n),this.astCompiler=n.csp?new vs(e):new gs(e)}parse(t){const{ast:e,oneTime:n}=this.getAst(t),r=this.astCompiler.compile(e);return r.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===as.Literal||t.body[0].expression.type===as.ArrayExpression||t.body[0].expression.type===as.ObjectExpression)}(e),r.constant=function(t){return t.constant}(e),r.oneTime=n,r}getAst(t){let e=!1;return(t=t.trim()).startsWith("::")&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}}function ws(t){return x(t.valueOf)?t.valueOf():ns.call(t)}function bs(){const t=Q(),e={true:!0,false:!1,null:null,undefined:void 0};var n,r;this.addLiteral=function(t,n){e[t]=n},this.setIdentifierFns=function(t,e){return n=t,r=e,this},this.$get=["$filter",function(i){var s={csp:function(){if(!g(Z.rules)){const t=window.document.querySelector("[ng-csp]")||window.document.querySelector("[data-ng-csp]");if(t){const e=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Z.rules={noUnsafeEval:!e||-1!==e.indexOf("no-unsafe-eval"),noInlineStyle:!e||-1!==e.indexOf("no-inline-style")}}else Z.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return Z.rules}().noUnsafeEval,literals:structuredClone(e),isIdentifierStart:x(n)&&n,isIdentifierContinue:x(r)&&r};return o.$$getAst=function(t){var e=new os(s);return new ys(e,i,s).getAst(t).ast},o;function o(e,n){var r,o;switch(typeof e){case"string":if(e=e.trim(),!(r=t[o=e])){var a=new os(s);r=new ys(a,i,s).parse(e),t[o]=d(r)}return p(r,n);case"function":return p(e,n);default:return p((()=>{}),n)}}function a(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=ws(t))&&!n)&&(t===e||t!=t&&e!=e)}function c(t,e,n,r){var i,s=r.inputs;if(1===s.length){var o=a;return s=s[0],t.$watch((function(t){var e=s(t);return a(e,o,s.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&ws(e)),i}),e,n)}for(var c=[],l=[],u=0,h=s.length;u<h;u++)c[u]=a,l[u]=null;return t.$watch((function(t){for(var e=!1,n=0,o=s.length;n<o;n++){var u=s[n](t);(e||(e=!a(u,c[n],s[n].isPure)))&&(l[n]=u,c[n]=u&&ws(u))}return e&&(i=r(t,void 0,void 0,l)),i}),e,n)}function l(t,e,n,r){var i,s,o=r.literal?u:g,a=r.$$intercepted||r,c=r.$$interceptor||U,l=r.inputs&&!a.inputs;return p.literal=r.literal,p.constant=r.constant,p.inputs=r.inputs,d(p),i=t.$watch(p,e,n);function h(){o(s)&&i()}function p(t,e,n,r){return s=l&&r?r[0]:a(t,e,n,r),o(s)&&t.$$postDigest(h),c(s)}}function u(t){var e=!0;return V(t,(function(t){g(t)||(e=!1)})),e}function h(t,e,n,r){var i=t.$watch((function(t){return i(),r(t)}),e,n);return i}function d(t){return t.constant?t.$$watchDelegate=h:t.oneTime?t.$$watchDelegate=l:t.inputs&&(t.$$watchDelegate=c),t}function p(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,s,o){var a=n&&o?o[0]:t(r,i,s,o);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return t.isPure===ds?function(e){return t(e)}:t})))),d(r)}}]}let Es=10;const Cs=mt("$rootScope"),xs=[],Ss=[],Os=[];let ks,_s,Ts,As=0,Rs=null,Vs=null;function Ns(){this.digestTtl=function(t){return arguments.length&&(Es=t),Es},this.$get=["$exceptionHandler","$parse","$browser",function(t,e,n){Ts=t,ks=e,_s=n;return new Ps}]}class Ps{constructor(){this.$id=p(),this.$$phase=null,this.$parent=null,this.$root=this,this.$$watchers=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null,this.$$ChildScope=null}$new(t,e){let n;return t?(n=new Ps,n.$root=this.$root):(n=Object.create(this),n.$id=p(),n.$$watchers=null,n.$$nextSibling=null,n.$$childHead=null,n.$$childTail=null,n.$$listeners={},n.$$listenerCount={},n.$$watchersCount=0,n.$$ChildScope=null,n.$$suspended=!1),n.$parent=e||this,n.$$prevSibling=n.$parent.$$childTail,n.$parent.$$childHead?(n.$parent.$$childTail.$$nextSibling=n,n.$parent.$$childTail=n):(n.$parent.$$childHead=n,n.$parent.$$childTail=n),(t||e!==this)&&n.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),n}$watch(t,e,n){const r=ks(t),i=x(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s=this;let o=s.$$watchers;const a={fn:i,last:js,get:r,exp:t,eq:!!n};Rs=null,o||(o=s.$$watchers=[],o.$$digestWatchIndex=-1),o.unshift(a),o.$$digestWatchIndex++,this.incrementWatchersCount(1);const c=this;return function(){const t=G(o,a);t>=0&&(c.incrementWatchersCount(-1),t<o.$$digestWatchIndex&&o.$$digestWatchIndex--),Rs=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return V(t,((t,e)=>{const n=s.$watch(t,(t=>{r[e]=t,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=ks(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=ks(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!m(r)){if(v(r))if($(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(v(r))if($(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c,l=Es;const u=xs.length?this.$root:this,h=[];let d,p;this.beginPhase("$digest"),_s.$$checkUrlChange(),this===this.$root&&null!==Vs&&(_s.defer.cancel(Vs),Ds(),Vs=null),Rs=null;do{o=!1,c=u;for(let t=0;t<xs.length;t++){try{p=xs[t],r=p.fn,r(p.scope,p.locals)}catch(t){Ts(t)}Rs=null}xs.length=0;do{if(s=!c.$$suspended&&c.$$watchers)for(s.$$digestWatchIndex=s.length;s.$$digestWatchIndex--;)try{if(t=s[s.$$digestWatchIndex],t)if(i=t.get,(e=i(c))===(n=t.last)||(t.eq?J(e,n):L(e)&&L(n))){if(t===Rs){o=!1;break}}else o=!0,Rs=t,t.last=t.eq?structuredClone(e):e,r=t.fn,r(e,n===js?e:n,c),l<5&&(d=4-l,h[d]||(h[d]=[]),h[d].push({msg:x(t.exp)?`fn: ${t.exp.name||t.exp.toString()}`:t.exp,newVal:e,oldVal:n}))}catch(t){Ts(t)}if(!(a=!c.$$suspended&&c.$$watchersCount&&c.$$childHead||c!==u&&c.$$nextSibling))for(;c!==u&&!(a=c.$$nextSibling);)c=c.$parent}while(c=a);if((o||xs.length)&&!l--)throw this.clearPhase(),Cs("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",Es,h)}while(o||xs.length);for(this.clearPhase();As<Ss.length;)try{Ss[As++]()}catch(t){Ts(t)}Ss.length=As=0,_s.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase)throw Cs("inprog","{0} already in progress",this.$root.$$phase);this.$root.$$phase=t}$suspend(){this.$$suspended=!0}$isSuspended(){return this.$$suspended}$resume(){this.$$suspended=!1}$destroy(){if(this.$$destroyed)return;const t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===this.$root&&_s.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners={},this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}$eval(t,e){return ks(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase||xs.length||(n=_s.defer((()=>{xs.length&&this.$root.$digest()}),null,"$evalAsync")),xs.push({scope:this,fn:ks(t),locals:e}),n}$$postDigest(t){Ss.push(t)}$apply(t){try{this.beginPhase("$apply");try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Ts(t)}finally{try{this.$root.$digest()}catch(t){throw Ts(t),t}}}clearPhase(){this.$root.$$phase=null}$applyAsync(t){const e=this;t&&Os.push((()=>e.$eval(t))),t=ks(t),null===Vs&&(Vs=_s.defer(Ds,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=tt([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners[t]||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Ts(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=tt([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners[t]||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Ts(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function js(){}function Ds(){for(;Os.length;)try{Os.shift()()}catch(t){Ts(t)}Vs=null}function Ms(){this.$get=H((t=>new Is(t)))}function Is(t){const e=this,n={},r=[],i=e.ALL_TASKS_TYPE="$$all$$",s=e.DEFAULT_TASK_TYPE="$$default$$";function o(){const t=r.pop();return t&&t.cb}function a(t){for(let e=r.length-1;e>=0;--e){const n=r[e];if(n.type===t)return r.splice(e,1),n.cb}}e.completeTask=function(e,r){r=r||s;try{e()}finally{!function(t){t=t||s,n[t]&&(n[t]--,n[i]--)}(r);const e=n[r],c=n[i];if(!c||!e){const e=c?a:o;let n;for(;n=e(r);)try{n()}catch(e){t.error(e)}}}},e.incTaskCount=function(t){n[t=t||s]=(n[t]||0)+1,n[i]=(n[i]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||i]?r.push({type:e,cb:t}):t()}}var Ls=mt("$templateRequest");function qs(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,s){function o(a,c){o.totalPendingRequests++,y(a)&&!m(n.get(a))||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return E(l)?l=l.filter((function(t){return t!==Ai})):l===Ai&&(l=null),r.get(a,D({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){c||(t=Ls("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return o.totalPendingRequests=0,o}]}const Us=mt("$timeout");function Hs(t,e,n,r,i){const s={};function o(o,a,c){x(o)||(c=a,a=o,o=()=>{});const l=et(arguments,3),u=g(c)&&!c,h=(u?r:n).defer(),{promise:d}=h;let p;return p=e.defer((()=>{try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[d.$$timeoutId]}u||t.$apply()}),a,"$timeout"),d.$$timeoutId=p,s[p]=h,d}return o.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw Us("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(s,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=s[n];return $i(r.promise),r.reject("canceled"),delete s[n],e.defer.cancel(n)},o}function Fs(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",Hs]}function Bs(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return g(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Te(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const zs="-add",Ws="-remove",Gs="-prepare",Ks="ng-animate",Js="$$ngAnimateChildren";let Zs,Ys,Qs,Xs;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Zs="WebkitTransition",Ys="webkitTransitionEnd transitionend"):(Zs="transition",Ys="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Qs="WebkitAnimation",Xs="webkitAnimationEnd animationend"):(Qs="animation",Xs="animationend");const to="Duration",eo="Delay",no="TimingFunction",ro=Qs+eo,io=Qs+to,so=Zs+eo,oo=mt("ng");function ao(t,e,n){if(!t)throw oo("areq","Argument '{0}' is {1}",e||"?",n);return t}function co(t,e,n){let r="";return(t=E(t)?t:t&&y(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function lo(t){if(t instanceof Lt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return Lt(uo(t))}if(t.nodeType===Node.ELEMENT_NODE)return Lt(t)}function uo(t){if(!t[0])return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function ho(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function po(t,e){fo(t,e),$o(t,e)}function fo(t,e){e.from&&(e.from=null)}function $o(t,e){e.to&&(e.to=null)}function mo(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),V(e,((t,e)=>{s[e]=r})),n=a(n),V(n,((t,e)=>{s[e]=s[e]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){y(t)&&(t=t.split(" "));const e={};return V(t,(t=>{t.length&&(e[t]=!0)})),e}return V(s,(function(e,n){var s,a;e===r?(s="addClass",a=!t[n]||t[n+Ws]):e===i&&(s="removeClass",a=t[n]||t[n+zs]),a&&(o[s].length&&(o[s]+=" "),o[s]+=n)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=wo(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return D(r,i),c&&(r.domOperation=c),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function go(t){return t instanceof Lt?t[0]:t}function vo(t,e){const n=e?"paused":"",r=Qs+"PlayState";return yo(t,[r,n]),[r,n]}function yo(t,e){const n=e[0],r=e[1];t.style[n]=r}function wo(t,e){return t?e?`${t} ${e}`:t:e}const bo=["$interpolate",function(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Js,t)}y(i)&&0===i.length?n.data(Js,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}];function Eo(){const t="ng-animate-ref",e=this.drivers=[],n="$$animationRunner",r="$$animatePrepareClasses";function i(t){return t.data(n)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(s,o,a,c,l){const u=[],h=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(d,p,f){f=ho(f);const $=["enter","move","leave"].indexOf(p)>=0,m=new a({end(){b()},cancel(){b(!0)}});if(!e.length)return b(),m;let g=yt(d.attr("class"),yt(f.addClass,f.removeClass)),{tempClasses:v}=f;return v&&(g+=` ${v}`,f.tempClasses=null),$&&d.data(r,`ng-${p}${Gs}`),function(t,e){t.data(n,e)}(d,m),u.push({element:d,classes:g,event:p,structural:$,options:f,beforeStart:function(){v=(v?`${v} `:"")+Ks,d.className+=` ${v}`;let t=d.data(r);t&&(d[0].classList.remove(t),t=null)},close:b}),d.on("$destroy",w),u.length>1||s.$$postDigest((()=>{const n=[];V(u,(t=>{i(t.element)?n.push(t):t.close()})),u.length=0;const s=function(e){const n=[],r={};V(e,((e,i)=>{const{element:s}=e,o=go(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return V(r,(e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";V(l,(n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:Lt(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:y(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(n),a=[];V(s,(t=>{const n=t.from?t.from.element:t.element;let r=f.addClass;r=(r?`${r} `:"")+Ks;const s=l.cacheKey(n[0],t.event,r,f.removeClass);a.push({element:n,domNode:go(n),fn:function(){let n;const r=t.close;if(l.containsCachedAnimationWithoutDuration(s))return void r();t.beforeStart();if(i(t.anchors?t.from.element||t.to.element:t.element)){const r=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],i=o.get(r)(t);if(i)return i}}(t);r&&(n=r.start)}if(n){const e=n();e.done((t=>{r(!t)})),function(t,e){t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element);function n(t){const n=i(t);n&&n.setHost(e)}}(t,e)}else r()}})}));const h=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)i(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let i=n.length,s=0,o=[];for(r=0;r<n.length;r++){const t=n[r];i<=0&&(i=s,s=0,e.push(o),o=[]),o.push(t),t.children.forEach((t=>{s++,n.push(t)})),i--}return o.length&&e.push(o),e}(e);function i(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let s,{parentNode:o}=n;for(r.set(n,t);o;){if(s=r.get(o),s){s.processed||(s=i(s));break}o=o.parentNode}return(s||e).children.push(t),t}}(a);for(let t=0;t<h.length;t++){const e=h[t];for(let n=0;n<e.length;n++){const i=e[n],{element:s}=i;if(h[t][n]=i.fn,0===t){s.removeData(r);continue}const o=s.data(r);o&&s[0].classList.add(o)}}c(h)})),m;function y(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function w(){const t=i(d);!t||"leave"===p&&f.$$domOperationFired||t.end()}function b(t){d.off("$destroy",w),function(t){t.removeData(n)}(d),h(d,f),po(d,f),f.domOperation(),v&&v.split(" ").forEach((t=>d[0].classList.remove(t))),m.complete(!t)}}}]}const Co=[()=>{let t,e;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e||n()}))}function r(e){t=t.concat(e),n()}return t=r.queue=[],r.waitUntilQuiet=t=>{e&&e(),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},r}],xo=["$animate",function(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),(e||0===e)&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}],So="data-ng-animate",Oo="$ngAnimatePin",ko=["$animateProvider",function(t){const e=" ",n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const r=function(t){if(!t)return null;const n=t.split(e),r=Object.create(null);return V(n,(t=>{r[t]=!0})),r}(n);return t.split(e).some((t=>r[t]))}}function s(t,e,r){return n[t].some((t=>t(e,r)))}function o(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((t=>!t.structural&&o(t))),n.skip.push((t=>!t.structural&&!o(t))),n.skip.push(((t,e)=>"leave"===e.event&&t.structural)),n.skip.push(((t,e)=>e.structural&&2===e.state&&!t.structural)),n.cancel.push(((t,e)=>e.structural&&t.structural)),n.cancel.push(((t,e)=>2===e.state&&t.structural)),n.cancel.push(((t,e)=>{if(e.structural)return!1;const n=t.addClass,r=t.removeClass,s=e.addClass,o=e.removeClass;return!(m(n)&&m(r)||m(s)&&m(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$rootElement","$document","$$animation","$$AnimateRunner","$templateRequest","$$isDocumentHidden",function(e,n,i,a,c,l,u){const h=new Map,d=new Map;let p=null;function f(t){d.delete(t.target)}const $=e.$watch((()=>0===l.totalPendingRequests),(t=>{t&&($(),e.$$postDigest((()=>{e.$$postDigest((()=>{null===p&&(p=!0)}))})))})),w=Object.create(null),b=t.customFilter(),C=t.classNameFilter(),x=function(){return!0},S=b||x,O=C?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return C.test(n)}:x,k=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};function _(t,e){return mo(t,e,{})}const T=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=uo(e);return t.filter((t=>!(t.node===r&&(!n||t.callback===n))))}function R(t,e){"close"!==t||e.parentNode||N.off(e)}let N={on(t,e,n){const r=uo(e);w[t]=w[t]||[],w[t].push({node:r,callback:n}),Lt(e).on("$destroy",(()=>{h.get(r)||N.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!y(arguments[0])){e=arguments[0];for(const t in w)w[t]=A(w[t],e);return}const r=w[t];r&&(w[t]=1===arguments.length?null:A(r,e,n))},pin(t,e){ao(B(t),"element","not an element"),ao(B(e),"parentElement","not an element"),t.data(Oo,e)},push:(t,l,f,$)=>((f=f||{}).domOperation=$,function(t,l,f){let $=structuredClone(f),b=lo(t);const C=go(b),x=C&&C.parentNode;$=ho($);const A=new c,N=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();E($.addClass)&&($.addClass=$.addClass.join(" "));$.addClass&&!y($.addClass)&&($.addClass=null);E($.removeClass)&&($.removeClass=$.removeClass.join(" "));$.removeClass&&!y($.removeClass)&&($.removeClass=null);$.from&&!v($.from)&&($.from=null);$.to&&!v($.to)&&($.to=null);if(!(p&&C&&S(C,l,f)&&O(C,$)))return z(),A;const D=["enter","move","leave"].indexOf(l)>=0,M=u();let I=M||d.get(C);const L=!I&&h.get(C)||{},q=!!L.state;I||q&&1===L.state||(I=!function(t,e){const r=i[0].body,s=go(n);let o,a=t===r||"HTML"===t.nodeName,c=t===s,l=!1,u=d.get(t),p=Lt.data(t,Oo);p&&(e=go(p));for(;e&&(c||(c=e===s),e.nodeType===Node.ELEMENT_NODE);){const t=h.get(e)||{};if(!l){const n=d.get(e);if(!0===n&&!1!==u){u=!0;break}!1===n&&(u=!1),l=t.structural}if(m(o)||!0===o){const t=Lt.data(e,Js);g(t)&&(o=t)}if(l&&!1===o)break;if(a||(a=e===r),a&&c)break;e=c||(p=Lt.data(e,Oo),!p)?e.parentNode:go(p)}return(!l||o)&&!0!==u&&c&&a}(C,x));if(I)return M&&B(A,l,"start",r($)),z(),M&&B(A,l,"close",r($)),A;D&&function(t){const e=t.querySelectorAll(`[${So}]`);V(e,(t=>{const e=parseInt(t.getAttribute(So),10),n=h.get(t);if(n)switch(e){case 2:n.runner.end();case 1:h.delete(t)}}))}(C);const U={structural:D,element:b,event:l,addClass:$.addClass,removeClass:$.removeClass,close:z,options:$,runner:A};if(q){if(s("skip",U,L))return 2===L.state?(z(),A):(mo(b,L,U),L.runner);if(s("cancel",U,L))if(2===L.state)L.runner.end();else{if(!L.structural)return mo(b,L,U),L.runner;L.close()}else{if(s("join",U,L)){if(2!==L.state)return function(t,e,n){let r="";e&&(r=co(e,"ng-",!0)),n.addClass&&(r=wo(r,co(n.addClass,zs))),n.removeClass&&(r=wo(r,co(n.removeClass,Ws))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}(b,D?l:null,$),l=U.event=L.event,$=mo(b,L,U),L.runner;_(b,U)}}}else _(b,U);let H=U.structural;H||(H="animate"===U.event&&Object.keys(U.options.to||{}).length>0||o(U));if(!H)return z(),P(C),A;const F=(L.counter||0)+1;return U.counter=F,j(C,1,U),e.$$postDigest((()=>{b=lo(t);let e=h.get(C);const n=!e;e=e||{};const i=(b.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==F||!i)return n&&(k(b,$),po(b,$)),(n||D&&e.event!==l)&&($.domOperation(),A.end()),void(i||P(C));l=!e.structural&&o(e,!0)?"setClass":e.event,j(C,2);const s=a(b,l,e.options);A.setHost(s),B(A,l,"start",r($)),s.done((t=>{z(!t);const e=h.get(C);e&&e.counter===F&&P(C),B(A,l,"close",r($))}))})),A;function B(t,e,n,r){N((()=>{const t=function(t,e,n){const r=[],i=w[n];return i&&V(i,(i=>{(T.call(i.node,e)||"leave"===n&&T.call(i.node,t))&&r.push(i.callback)})),r}(x,C,e);t.length?(V(t,(t=>{t(b,n,r)})),R(n,C)):R(n,C)})),t.progress(e,n,r)}function z(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}(b,$),k(b,$),po(b,$),$.domOperation(),A.complete(!t)}}(t,l,f)),enabled(t,e){const n=arguments.length;if(0===n)e=!!p;else{if(B(t)){const r=go(t);1===n?e=!d.get(r):(d.has(r)||Lt(t).on("$destroy",f),d.set(r,!e))}else e=p=!!t}return e}};return N;function P(t){t.removeAttribute(So),h.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(So,e);const r=h.get(t),i=r?D(r,n):n;h.set(t,i)}}]}],_o="$$ngAnimateParentKey";let To=0,Ao=Object.create(null);function Ro(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[_o]||(i[_o]=++To),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=Ao[t];return e&&!e.isValid||!1},flush(){Ao=Object.create(null)},count(t){const e=Ao[t];return e?e.total:0},get(t){const e=Ao[t];return e&&e.value},put(t,e,n){Ao[t]?(Ao[t].total++,Ao[t].value=e):Ao[t]={total:1,value:e,isValid:n}}}}function Vo(){this.$get=[Ro]}const No="$$animateCss",Po=1e3;function jo(t,e){return[e?ro:so,`${t}s`]}function Do(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return V(e,((t,e)=>{let i=r[t];if(i){const t=i.charAt(0);("-"===t||"+"===t||t>=0)&&(i=function(t){let e=0;return V(t.split(/\s*,\s*/),(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[e]=i}})),n}function Mo(t){return 0===t||null!=t}function Io(t,e){let n=Zs,r=`${t}s`;return e?n+=to:r+=" linear all",[n,r]}function Lo(t,e,n){V(n,(n=>{t[n]=g(t[n])?t[n]:e.style.getPropertyValue(n)}))}const qo=[function(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r,i){const s=function(t,e,r,i,s){let o=n.get(r);o||(o=Do(window,t),"infinite"===o.animationIterationCount&&(o.animationIterationCount=1));const a=i||o.transitionDuration>0||o.animationDuration>0;return n.put(r,o,a),o}(t,0,r,i),o=s.animationDelay,a=s.transitionDelay;return s.maxDelay=o&&a?Math.max(o,a):o||a,s.maxDuration=Math.max(s.animationDuration*s.animationIterationCount,s.transitionDuration),s}return function(r,o){let l=o||{};l.$$prepared||(l=ho(structuredClone(l)));const u={},h=go(r);if(!h||!h.parentNode||!i.enabled())return J();const d=[],p=r.attr("class"),f=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let $,m,g,v,y,w,b,C,x,S;const O=[];if(0===l.duration)return J();const k=l.event&&E(l.event)?l.event.join(" "):l.event,_=k&&l.structural;let T="",A="";_?T=co(k,"ng-",!0):k&&(T=k),l.addClass&&(A+=co(l.addClass,zs)),l.removeClass&&(A.length&&(A+=" "),A+=co(l.removeClass,Ws)),l.applyClassesEarly&&A.length&&s(r,l);let R=[T,A].join(" ").trim(),N=`${p} ${R}`;const P=f.to&&Object.keys(f.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!P&&!R)return J();let j,D,M=n.cacheKey(h,k,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(M))return R=null,J();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=co(e,"-stagger");t.className+=` ${r}`,s=Do(window,t),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,R,M);if(l.$$skipPreparationClasses||r[0].classList.add(R),l.transitionStyle){const t=[Zs,l.transitionStyle];yo(h,t),d.push(t)}if(l.duration>=0){D=h.style[Zs].length>0;const t=Io(l.duration,D);yo(h,t),d.push(t)}if(l.keyframeStyle){const t=[Qs,l.keyframeStyle];yo(h,t),d.push(t)}const I=j?l.staggerIndex>=0?l.staggerIndex:n.count(M):0,L=0===I;L&&!l.skipBlocking&&Uo(h,9999);let q=c(h,0,M,!_),U=q.maxDelay;w=Math.max(U,0),C=q.maxDuration;const H={};if(H.hasTransitions=q.transitionDuration>0,H.hasAnimations=q.animationDuration>0,H.hasTransitionAll=H.hasTransitions&&"all"===q.transitionProperty,H.applyTransitionDuration=P&&(H.hasTransitions&&!H.hasTransitionAll||H.hasAnimations&&!H.hasTransitions),H.applyAnimationDuration=l.duration&&H.hasAnimations,H.applyTransitionDelay=Mo(l.delay)&&(H.applyTransitionDuration||H.hasTransitions),H.applyAnimationDelay=Mo(l.delay)&&H.hasAnimations,H.recalculateTimingStyles=A.length>0,(H.applyTransitionDuration||H.applyAnimationDuration)&&(C=l.duration?parseFloat(l.duration):C,H.applyTransitionDuration&&(H.hasTransitions=!0,q.transitionDuration=C,D=h.style[Zs+"Property"].length>0,d.push(Io(C,D))),H.applyAnimationDuration&&(H.hasAnimations=!0,q.animationDuration=C,d.push([io,`${C}s`]))),0===C&&!H.recalculateTimingStyles)return J();const F=co(R,"-active");var B;null!=l.delay&&("boolean"!=typeof l.delay&&(B=parseFloat(l.delay),w=Math.max(B,0)),H.applyTransitionDelay&&d.push(jo(B)),H.applyAnimationDelay&&d.push(jo(B,!0)));return null==l.duration&&q.transitionDuration>0&&(H.recalculateTimingStyles=H.recalculateTimingStyles||L),b=w*Po,x=C*Po,l.skipBlocking||(H.blockTransition=q.transitionDuration>0,H.blockKeyframeAnimation=q.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&Lo(u,h,Object.keys(l.from)),fo(0,l)),H.blockTransition||H.blockKeyframeAnimation?K(C):l.skipBlocking||Uo(h,!1),{$$willAnimate:!0,end:z,start(){if(!$)return y={end:z,cancel:W,resume:null,pause:null},v=new t(y),a(Y),v}};function z(){G()}function W(){G(!0)}function G(t){if($||g&&m)return;$=!0,m=!1,R&&!l.$$skipPreparationClasses&&R.split(" ").forEach((t=>r.classList.remove(t))),F&&F.split(" ").forEach((t=>r.classList.remove(t))),vo(h,!1),Uo(h,!1),V(d,(t=>{h.style[t[0]]=""})),s(r,l),po(r,l),Object.keys(u).length&&V(u,((t,e)=>{t?h.style.setProperty(e,t):h.style.removeProperty(e)})),l.onDone&&l.onDone(),O&&O.length&&r.off(O.join(" "),Z);const n=r.data(No);n&&(e.cancel(n[0].timer),r.removeData(No)),v&&v.complete(!t)}function K(t){H.blockTransition&&Uo(h,t),H.blockKeyframeAnimation&&vo(h,!!t)}function J(){return v=new t({end:z,cancel:W}),a((()=>{})),G(),{$$willAnimate:!1,start:()=>v,end:z}}function Z(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-S,0)>=b&&r>=C&&(g=!0,G())}function Y(){if($)return;if(!h.parentNode)return void G();const t=function(t){if(g)m&&t&&(m=!1,G());else if(m=!t,q.animationDuration){const t=vo(h,m);m?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=I>0&&(q.transitionDuration&&0===j.transitionDuration||q.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if($)return;if(K(!1),V(d,(t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r.className+=` ${F}`,H.recalculateTimingStyles){if(N=`${h.getAttribute("class")} ${R}`,M=n.cacheKey(h,k,l.addClass,l.removeClass),q=c(h,0,M,!1),U=q.maxDelay,w=Math.max(U,0),C=q.maxDuration,0===C)return void G();H.hasTransitions=q.transitionDuration>0,H.hasAnimations=q.animationDuration>0}if(H.applyAnimationDelay&&(U="boolean"!=typeof l.delay&&Mo(l.delay)?parseFloat(l.delay):U,w=Math.max(U,0),q.animationDelay=U,B=jo(U,!0),d.push(B),h.style[B[0]]=B[1]),b=w*Po,x=C*Po,l.easing){let t;const e=l.easing;H.hasTransitions&&(t=Zs+no,d.push([t,e]),h.style[t]=e),H.hasAnimations&&(t=Qs+no,d.push([t,e]),h.style[t]=e)}q.transitionDuration&&O.push(Ys),q.animationDuration&&O.push(Xs),S=Date.now();const t=b+1.5*x,i=S+t,o=r.data(No)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(G)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(G),r.data(No,o)}O.length&&r.on(O.join(" "),Z),l.to&&(l.cleanupStyles&&Lo(u,h,Object.keys(l.to)),$o(0,l))}function a(){const t=r.data(No);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(No)}}i?e(o,Math.floor(i*I*Po),!1):o(),y.resume=function(){t(!0)},y.pause=function(){t(!1)}}}}]}];function Uo(t,e){const n=e?`-${e}s`:"";return yo(t,[so,n]),[so,n]}const Ho=["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver");const e="ng-animate-shim",n="ng-anchor",r="ng-anchor-out",i="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document",function(t,s,o,a,c){const l=c[0].body,u=go(a),h=Lt((d=u).parentNode&&11===d.parentNode.nodeType||l.contains(u)?u:l);var d;return function(s){return s.from&&s.to?function(s,a,c,u){const d=$(s),m=$(a),g=[];if(V(u,(s=>{const a=function(s,a,c){const u=Lt(go(a).cloneNode(!0)),d=p(w(u));let $;a.addClass(e),c.addClass(e),u.addClass(n),h.append(u);const m=y();if(!m&&($=b(),!$))return E();const g=m||$;return{start(){let t,e=g.start();return e.done((()=>{if(e=null,!$&&($=b(),$))return e=$.start(),e.done((()=>{e=null,E(),t.complete()})),e;E(),t.complete()})),t=new o({end:n,cancel:n}),t;function n(){e&&e.end()}}};function v(t){const e={},n=go(t).getBoundingClientRect();return V(["width","height","top","left"],(t=>{let r=n[t];switch(t){case"top":r+=l.scrollTop;break;case"left":r+=l.scrollLeft}e[t]=`${Math.floor(r)}px`})),e}function y(){const e=t(u,{addClass:r,delay:!0,from:v(a)});return e.$$willAnimate?e:null}function w(t){return t.attr("class")||""}function b(){const e=p(w(c)),n=f(e,d),s=f(d,e),o=t(u,{to:v(c),addClass:`${i} ${n}`,removeClass:`${r} ${s}`,delay:!0});return o.$$willAnimate?o:null}function E(){u.remove(),a.removeClass(e),c.removeClass(e)}}(0,s.out,s.in);a&&g.push(a)})),!d&&!m&&0===g.length)return;return{start(){const t=[];d&&t.push(d.start()),m&&t.push(m.start()),V(g,(e=>{t.push(e.start())}));const e=new o({end:n,cancel:n});return o.all(t,(t=>{e.complete(t)})),e;function n(){V(t,(t=>{t.end()}))}}}}(s.from,s.to,s.classes,s.anchors):$(s)};function p(t){return t.replace(/\bng-\S+\b/g,"")}function f(t,e){return y(t)&&(t=t.split(" ")),y(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function $(e){const{element:n}=e,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=wo(r.event,r.preparationClasses));const i=t(n,r);return i.$$willAnimate?i:null}}]}],Fo=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=ho(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=E(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substr(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=y(i,s,a,h,e)),p=y(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),po(i,a)}function g(t,e,r,i,s){const o=[];return V(i,(i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(x(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(x(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function y(t,e,r,i,s){let o=g(t,e,r,i,s);if(0===o.length){let e,n;"beforeSetClass"===s?(e=g(t,"removeClass",r,i,"beforeRemoveClass"),n=g(t,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(e=g(t,"removeClass",r,i,"removeClass"),n=g(t,"addClass",r,i,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&V(o,(t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){V(e,(e=>{t?e.cancel():e.end()}))}}}}}]}],Bo=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){V(t,(t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}];function zo(){function t(t){return["$animate",function(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?E(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return E(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}]}window.angular.module("ngMessages",[]).directive("ngMessages",["$animate",function(t){const e="ng-active",n="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(s,o,a){const c=this;let l=0,u=0;this.getAttachId=function(){return u++};const h=this.messages={};let d,p;function f(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return h[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}this.render=function(l){d=!1,p=l=l||{};const u=r(o,a.ngMessagesMultiple)||r(o,a.multiple),h=[],f={};let $=0,m=c.head,g=!1,v=0;for(;null!=m;){v++;const t=m.message;let e=!1;g||V(l,((n,r)=>{if(i(n)&&!e&&($++,t.test(r))){if(f[r])return;f[r]=!0,e=!0,t.attach()}})),e?g=!u:h.push(t),m=m.next}V(h,(t=>{t.detach()}));const y=h.length!==v,w=c.default&&!y&&$>0;w?c.default.attach():c.default&&c.default.detach(),y||w?t.setClass(s,e,n):t.setClass(s,n,e)},o.$watchCollection(a.ngMessages||a.for,c.render),this.reRender=function(){d||(d=!0,o.$evalAsync((()=>{d&&p&&c.render(p)})))},this.register=function(t,e,n){if(n)c.default=e;else{const n=l.toString();h[n]={message:e},function(t,e,n){const r=h[n];if(c.head){const n=f(t,e);n?(r.next=n.next,n.next=r):(r.next=c.head,c.head=r)}else c.head=r}(s[0],t,n),t.$$ngMessageNode=n,l++}c.reRender()},this.deregister=function(t,e){if(e)delete c.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,function(t,e,n){const r=h[n];if(!r)return;const i=f(t,e);i?i.next=r.next:c.head=r.next}(s[0],t,e),delete h[e]}c.reRender()}}]};function r(t,e){return y(e)&&0===e.length||i(t.$eval(e))}function i(t){return y(t)?t.length:!!t}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(t,e,n){return{restrict:"AE",require:"^^ngMessages",link(e,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{e.$$destroyed||y(t)&&!t.trim()||n(t)(e,(t=>{r.after(t)}))}))}}}]).directive("ngMessage",t(!1)).directive("ngMessageExp",t(!1)).directive("ngMessageDefault",t(!0))}const Wo="ngAriaDisable";const Go=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Ko=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Jo(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,i){return function(s,o,a){if(Object.prototype.hasOwnProperty.call(a,Wo))return;const c=a.$normalize(n);!t[c]||Ko(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=D(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}const Zo=(t,e)=>e.reduce(((e,n)=>{return e[n]=(r=`${t}.${n}()`,()=>{throw new Error(`No implementation for ${r}. The framework specific code did not implement this method.`)}),e;var r}),{}),Yo={$q:void 0,$injector:void 0};function Qo(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Xo(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function ta(...t){return Xo.apply(null,[].slice.call(arguments).reverse())}const ea=t=>e=>e&&e[t],na=Qo(((t,e,n)=>n&&n[t]===e)),ra=t=>ta.apply(null,t.split(".").map(ea)),ia=t=>(...e)=>!t.apply(null,e);function sa(t,e){return(...n)=>t.apply(null,n)||e.apply(null,n)}const oa=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),aa=t=>e=>e.reduce(((e,n)=>e||!!t(n)),!1),ca=t=>e=>null!=e&&e.constructor===t||e instanceof t,la=t=>()=>t;function ua(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const ha=Object.prototype.toString,da=t=>e=>typeof e===t,pa=da("undefined"),fa=ia(pa),$a=t=>null===t,ma=sa($a,pa),ga=da("function"),va=da("number"),ya=da("string"),wa=t=>null!==t&&"object"==typeof t,ba=Array.isArray,Ea=t=>"[object Date]"===ha.call(t),Ca=t=>"[object RegExp]"===ha.call(t);function xa(t){if(ba(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(ia(ya)).length||n.filter(ia(ga)).length)}return ga(t)}const Sa=(Oa=wa,ka=ta(ea("then"),ga),(...t)=>Oa.apply(null,t)&&ka.apply(null,t));var Oa,ka;const _a=JSON.parse.bind(JSON),Ta=JSON.stringify.bind(JSON),Aa=function(t,e,n){if(ba(t))return t.forEach(e,n);Object.keys(t).forEach((n=>e(t[n],n)))},Ra=sc;function Va(t){return t}function Na(){}function Pa(t,e,n,r,i=!1){const s=e=>t()[e].bind(n());return(r=r||Object.keys(t())).reduce(((t,n)=>{var r;return t[n]=i?(r=n,function(){return e[r]=s(r),e[r].apply(null,arguments)}):s(n),t}),e)}const ja=(t,e)=>Object.setPrototypeOf(t,e),Da=Qo((function(t,e){return-1!==t.indexOf(e)}));const Ma=Qo((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const Ia=Qo((function(t,e){return t.push(e),e}));function La(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Ua(t||{},Object.keys(n)))}const qa=(t,e)=>Object.assign(t,e);function Ua(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Ha(t,e){return Object.keys(t).filter(ia(Da(e))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Fa(t,e){const n=ba(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Aa(t,(function(t,n){e(t,n)&&i(t,n)})),r}function Ba(t,e){let n;return Aa(t,(function(t,r){n||e(t,r)&&(n=t)})),n}let za=Wa;function Wa(t,e,n){return n=n||(ba(t)?[]:{}),Aa(t,((t,r)=>n[r]=e(t,r))),n}const Ga=(t,e)=>t&&e,Ka=(t,e)=>t||e,Ja=(t,e)=>t.concat(e),Za=(t,e)=>ba(e)?t.concat(e.reduce(Za,[])):Ya(t,e);function Ya(t,e){return t.push(e),t}const Qa=(t,e)=>Da(t,e)?t:Ya(t,e),Xa=t=>t.reduce(Ja,[]),tc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(ga(e)?e(n):e);return r}};function ec(...t){if(0===t.length)return[];const e=t.reduce(((t,e)=>Math.min(e.length,t)),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map((t=>t[r])))}return n}function nc(t,e){let n,r;if(ba(e)&&([n,r]=e),!ya(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function rc(t){return t.length&&t[t.length-1]||void 0}function ic(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}function sc(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(oa(ba)(r))return s=e,(i=t).length===s.length&&ec(i,s).reduce(((t,e)=>t&&sc(e[0],e[1])),!0);var i,s;if(oa(Ea)(r))return t.getTime()===e.getTime();if(oa(Ca)(r))return t.toString()===e.toString();if(oa(ga)(r))return!0;if([ga,ba,Ea,Ca].map(aa).reduce(((t,e)=>t||!!e(r)),!1))return!1;const o={};for(const n in t){if(!sc(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}const oc=t=>t.catch((t=>0))&&t,ac=t=>oc(Yo.$q.reject(t));var cc;!function(t){t[t.SUPERSEDED=2]="SUPERSEDED",t[t.ABORTED=3]="ABORTED",t[t.INVALID=4]="INVALID",t[t.IGNORED=5]="IGNORED",t[t.ERROR=6]="ERROR"}(cc||(cc={}));let lc=0;class uc{static isRejectionPromise(t){return t&&"function"==typeof t.then&&ca(uc)(t._transitionRejection)}static superseded(t,e){const n=new uc(cc.SUPERSEDED,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return uc.superseded(t,{redirected:!0})}static invalid(t){return new uc(cc.INVALID,"This transition is invalid",t)}static ignored(t){return new uc(cc.IGNORED,"The transition was ignored",t)}static aborted(t){return new uc(cc.ABORTED,"The transition has been aborted",t)}static errored(t){return new uc(cc.ERROR,"The transition errored",t)}static normalize(t){return ca(uc)(t)?t:uc.errored(t)}constructor(t,e,n){this.$id=lc++,this.type=t,this.message=e,this.detail=n}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():$c(e);var e;const{$id:n,type:r,message:i}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${i}, detail: ${t})`}toPromise(){return Object.assign(ac(this),{_transitionRejection:this})}}function hc(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function dc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function pc(t){const e=fc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function fc(t){const e=ba(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function $c(t){const e=[],n=uc.isRejectionPromise,r=ua([[pa,la("undefined")],[$a,la("null")],[Sa,la("[Promise]")],[n,t=>t._transitionRejection.toString()],[t=>wa(t)&&!ba(t)&&t.constructor!==Object&&ga(t.toString),t=>t.toString()],[xa,pc],[la(!0),Va]]);function i(t){if(wa(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return r(t)}return pa(t)?i(t):JSON.stringify(t,((t,e)=>i(e))).replace(/\\"/g,'"')}function mc(t,e){return ya(rc(t))&&ya(e)?t.slice(0,-1).concat(rc(t)+e):Ya(t,e)}const gc={log:()=>{},error:()=>{},table:()=>{}};const vc="undefined"!=typeof document&&document.documentMode&&9===document.documentMode?window&&window.console?function(t){const e=e=>Function.prototype.bind.call(e,t);return{log:e(t.log),error:e(t.log),table:e(t.log)}}(window.console):gc:console.table&&console.error?console:function(t){const e=t.log.bind(t);return{log:e,error:t.error?t.error.bind(t):e,table:t.table?t.table.bind(t):e}}(console);function yc(t){if(!t)return"ui-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ui-view#${t.id} ${t.$type}:${t.fqn} (${t.name}@${e})]`}function wc(t){return va(t)?bc[t]:bc[bc[t]]}var bc;!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(bc||(bc={}));const Ec=ra("$id"),Cc=ra("router.$id"),xc=t=>`Transition #${Ec(t)}-${Cc(t)}`;const Sc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(bc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>bc[t]))),e.map(wc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[wc(t)]}traceTransitionStart(t){this.enabled(bc.TRANSITION)&&vc.log(`${xc(t)}: Started -> ${$c(t)}`)}traceTransitionIgnored(t){this.enabled(bc.TRANSITION)&&vc.log(`${xc(t)}: Ignored <> ${$c(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(bc.HOOK))return;const r=ra("traceData.hookType")(n)||"internal",i=ra("traceData.context.state.name")(n)||ra("traceData.context")(n)||"unknown",s=pc(t.registeredHook.callback);vc.log(`${xc(e)}: Hook -> ${r} context: ${i}, ${hc(200,s)}`)}traceHookResult(t,e,n){this.enabled(bc.HOOK)&&vc.log(`${xc(e)}: <- Hook returned: ${hc(200,$c(t))}`)}traceResolvePath(t,e,n){this.enabled(bc.RESOLVE)&&vc.log(`${xc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(bc.RESOLVE)&&vc.log(`${xc(e)}: <- Resolved ${t} to: ${hc(200,$c(t.data))}`)}traceError(t,e){this.enabled(bc.TRANSITION)&&vc.log(`${xc(e)}: <- Rejected ${$c(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(bc.TRANSITION)&&vc.log(`${xc(e)}: <- Success ${$c(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(bc.UIVIEW)&&vc.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${yc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(bc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(bc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${hc(200,e)}`)}traceViewSync(t){if(!this.enabled(bc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map((({uiView:t,viewConfig:r})=>{const i=t&&t.fqn,s=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:i,[n]:s}})).sort(((t,n)=>(t[e]||"").localeCompare(n[e]||"")));vc.table(r)}traceViewServiceEvent(t,e){this.enabled(bc.VIEWCONFIG)&&vc.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ui-view: '${e.$uiViewName}@${e.$uiViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(bc.VIEWCONFIG)&&vc.log(`VIEWCONFIG: ${t} ${yc(e)}`)}};class Oc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t)}is(t,e){return!0}encode(t,e){return t}decode(t,e){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substr(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new kc(this,t)}}function kc(t,e){function n(t){return ba(t)?t:fa(t)?[t]:[]}function r(t,r){return function(i){if(ba(i)&&0===i.length)return i;const s=Wa(n(i),t);return!0===r?0===Fa(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}const _c=Object.prototype.hasOwnProperty,Tc=t=>0===["value","type","squash","array","dynamic"].filter(_c.bind(t||{})).length;var Ac;function Rc(t,e,n){const r=!1===n.reloadOnSearch&&e===Ac.SEARCH||void 0,i=Ba([n.dynamic,r],fa),s=fa(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Tc(t)?{value:t}:t,e.__cacheable=!0;const n=xa(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(s,o)}!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(Ac||(Ac={}));class Vc{static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter((t=>!t.type.equals(e[t.id],n[t.id])))}static equals(t,e={},n={}){return 0===Vc.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(Ga,!0)}constructor(t,e,n,r,i){const s=Rc(t,n,i);e=function(t,e,n,r,i){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){const t=n===Ac.CONFIG?"any":n===Ac.PATH?"path":n===Ac.SEARCH?"query":"string";return i.type(t)}return t.type instanceof Oc?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===Ac.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===Ac.SEARCH):e;const a=void 0!==s.value||n===Ac.SEARCH,c=fa(s.dynamic)?!!s.dynamic:!!e.dynamic,l=fa(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!fa(r)||null==r)return n;if(!0===r||ya(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(s,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const i=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],s=ba(t.replace)?t.replace:[];ya(r)&&s.push({from:r,to:void 0});const o=Wa(s,ea("from"));return Fa(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=fa(s.inherit)?!!s.inherit:!!e.inherit;Object.assign(this,{id:t,type:e,location:n,isOptional:a,dynamic:c,raw:l,squash:u,replace:h,inherit:d,array:o,config:s})}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),pa(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Yo.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Yo.$injector.invoke(this.config.$$fn);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.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===Ac.SEARCH}validates(t){if((pa(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=this.type.encode(e);return!(ya(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}}function Nc(t,e){let n=["",""],r=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const Pc=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Va)}("/"),jc={state:{params:{}},strict:!0,caseInsensitive:!0,decodeParams:!0};class Dc{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return ec(t._segments,t._params.filter((t=>t.location===Ac.PATH)).concat(void 0)).reduce(Ja,[]).filter((t=>""!==t&&fa(t)))}static queryParams(t){return t._params.filter((t=>t.location===Ac.SEARCH))}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(Dc.pathSegmentsAndParams).reduce(Ja,[]).reduce(mc,[]).map((t=>ya(t)?Pc(t):t)).reduce(Ja,[]))(t).map((t=>"/"===t?1:ya(t)?2:t instanceof Vc?3:void 0)),r=n(t),i=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,i,0);const s=ec(r,i);let o,a;for(a=0;a<s.length;a++)if(o=s[a][0]-s[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=La(r,jc),this.pattern=t;const i=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Dc.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Ba(this._params,na("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const i=n[2]||n[3],s=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:i,regexp:s,segment:t.substring(c,n.index),type:s?e.type(s)||(t=>ja(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,rc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>Nc.apply(null,t))).concat(Nc(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return fa(t)&&(this.config.decodeParams&&!e.type.raw&&(t=ba(t)?t.map((t=>decodeURIComponent(t))):decodeURIComponent(t)),t=e.type.decode(t)),e.value(t)}exec(t,e={},n,r={}){const i=(s=this._cache,o="pattern",a=()=>new RegExp(["^",Xa(this._cache.path.map(ea("_compiled"))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),s[o]=s[o]||a()).exec(t);var s,o,a;if(!i)return null;const c=this.parameters(),l=c.filter((t=>!t.isSearch())),u=c.filter((t=>t.isSearch())),h=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),d={};if(h!==i.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function p(t){const e=t=>t.split("").reverse().join(""),n=Wa(e(t).split(/-(?!\\)/),e);return Wa(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<h;t++){const e=l[t];let n=i[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=p(n)),d[e.id]=this._getDecodedParamValue(n,e)}return u.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);d[t.id]=this._getDecodedParamValue(n,t)})),n&&(d["#"]=n),d}parameters(t={}){return!1===t.inherit?this._params:Xa(this._cache.path.map((t=>t._params)))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter((e=>t.hasOwnProperty(e.id))).map((e=>((t,e)=>!t||t.validates(e))(e,t[e.id]))).reduce(Ga,!0)}format(t={}){const e=this._cache.path,n=e.map(Dc.pathSegmentsAndParams).reduce(Ja,[]).map((t=>ya(t)?t:i(t))),r=e.map(Dc.queryParams).reduce(Ja,[]).map(i);if(n.concat(r).filter((t=>!1===t.isValid)).length)return null;function i(e){const n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n),s=!!i&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:s,encoded:o}}const s=n.reduce(((t,e)=>{if(ya(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:ya(n)?t+n:!1!==n||null==r?t:ba(r)?t+Wa(r,Dc.encodeDashes).join("-"):i.raw?t+r:t+encodeURIComponent(r)}),""),o=r.map((t=>{let{param:e,squash:n,encoded:r,isDefaultValue:i}=t;if(!(null==r||i&&!1!==n)&&(ba(r)||(r=[r]),0!==r.length))return e.raw||(r=Wa(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).filter(Va).reduce(Ja,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Dc.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Mc{fromConfig(t,e,n){return new Vc(t,e,Ac.CONFIG,this.router.urlService.config,n)}fromPath(t,e,n){return new Vc(t,e,Ac.PATH,this.router.urlService.config,n)}fromSearch(t,e,n){return new Vc(t,e,Ac.SEARCH,this.router.urlService.config,n)}constructor(t){this.router=t}}class Ic{constructor(t){this.router=t,this.paramFactory=new Mc(this.router),this.UrlMatcher=Dc,this.Param=Vc,this.caseInsensitive=t=>this.router.urlService.config.caseInsensitive(t),this.defaultSquashPolicy=t=>this.router.urlService.config.defaultSquashPolicy(t),this.strictMode=t=>this.router.urlService.config.strictMode(t),this.type=(t,e,n)=>this.router.urlService.config.type(t,e,n)||this}compile(t,e){const n=this.router.urlService.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive,decodeParams:n._decodeParams};return new Dc(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return V(Dc.prototype,((n,r)=>{x(n)&&(e=e&&g(t[r])&&x(t[r]))})),e}$get(){const t=this.router.urlService.config;return t.paramTypes.enqueue=!1,t.paramTypes._flushTypeQueue(),this}}class Lc{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return Lc.is(t)?new Lc(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}class qc{static create(t){t=qc.isStateClass(t)?new t:t;const e=Object.setPrototypeOf(t,qc.prototype);return t.$$state=()=>e,e.self=t,e.__stateObjectCache={nameGlob:Lc.fromString(e.name)},e}constructor(t){return qc.create(t||{})}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=La(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter((e=>!t.matchingKeys||Object.prototype.hasOwnProperty.call(t.matchingKeys,e.id)))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||Ba(Object.values(this.params),na("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}qc.isStateClass=t=>ga(t)&&!0===t.__uiRouterState,qc.isStateDeclaration=t=>ga(t.$$state),qc.isState=t=>wa(t.__stateObjectCache);class Uc{constructor(t){this.router=t}compile(t){return this.router.urlMatcherFactory.compile(t)}create(t,e){const{isState:n,isStateDeclaration:r}=qc,i=ua([[ya,t=>i(this.compile(t))],[ca(Dc),t=>this.fromUrlMatcher(t,e)],[sa(n,r),t=>this.fromState(t,this.router)],[ca(RegExp),t=>this.fromRegExp(t,e)],[ga,t=>new Hc(t,e)]]),s=i(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,e){let n=e;ya(e)&&(e=this.router.urlMatcherFactory.compile(e)),ca(Dc)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter((t=>t.isOptional));return n.length?n.filter((t=>e[t.id])).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new Hc((function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),r)}fromState(t,e){const n=qc.isStateDeclaration(t)?t.$$state():t,r={state:n,type:"STATE"};return Object.assign(this.fromUrlMatcher(n.url,(t=>{const r=e.stateService,i=e.globals;r.href(n,t)!==r.href(i.current,i.params)&&r.transitionTo(n,t,{inherit:!0,source:"url"})})),r)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=ya(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Hc((e=>t.exec(e.path)),n),r)}}Uc.isUrlRule=t=>t&&["type","match","handler"].every((e=>fa(t[e])));class Hc{constructor(t,e){this.match=t,this.type="RAW",this.matchPriority=t=>0-this.$id,this.handler=e||Va}}class Fc{constructor(t){this.router=t,this.sync=t=>this.router.urlService.sync(t),this.listen=t=>this.router.urlService.listen(t),this.deferIntercept=t=>this.router.urlService.deferIntercept(t),this.match=t=>this.router.urlService.match(t),this.initial=t=>this.router.urlService.rules.initial(t),this.otherwise=t=>this.router.urlService.rules.otherwise(t),this.removeRule=t=>this.router.urlService.rules.removeRule(t),this.rule=t=>this.router.urlService.rules.rule(t),this.rules=()=>this.router.urlService.rules.rules(),this.sort=t=>this.router.urlService.rules.sort(t),this.when=(t,e,n)=>this.router.urlService.rules.when(t,e,n),this.urlRuleFactory=new Uc(t)}update(t){const e=this.router.locationService;t?this.location=e.url():e.url()!==this.location&&e.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.router.urlService.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.router.urlService.config,s=i.html5Mode();if(s||null===r||(r="#"+i.hashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?r.replace(/\/[^/]*$/,"")+t:n?r.slice(1)+t:t}(r,s,n.absolute,i.baseHref()),!n.absolute||!r)return r;const o=!s&&r?"/":"",a=i.port(),c=80===a||443===a?"":":"+a;return[i.protocol(),"://",i.host(),c,o,r].join("")}get interceptDeferred(){return this.router.urlService.interceptDeferred}}var Bc,zc;!function(t){t[t.CREATE=0]="CREATE",t[t.BEFORE=1]="BEFORE",t[t.RUN=2]="RUN",t[t.SUCCESS=3]="SUCCESS",t[t.ERROR=4]="ERROR"}(Bc||(Bc={})),function(t){t[t.TRANSITION=0]="TRANSITION",t[t.STATE=1]="STATE"}(zc||(zc={}));class Wc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${$c(this.params())}`}withState(t){return new Wc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Wc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Wc(this._stateRegistry,this._identifier,this._params,n)}}Wc.isDef=t=>t&&t.state&&(ya(t.state)||wa(t.state)&&ya(t.state.name));const Gc={current:Na,transition:null,traceData:{},bind:null};class Kc{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Yo.$q.when())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(Sa(r)){const i=t.slice(n+1);return Kc.chain(i,r).then(e)}}return e()}static runAllHooks(t){t.forEach((t=>t.invokeHook()))}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===Bc.RUN&&!this.options.transition.isActive(),this.options=La(r,Gc),this.type=n.eventType}logError(t){this.transition.router.stateService.defaultErrorHandler()(t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;Sc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>uc.normalize(t).toPromise(),s=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&Sa(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(uc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();if(e)return e;if(Sa(t))return t.then((t=>this.handleHookResult(t)));if(Sc.traceHookResult(t,this.transition,this.options),!1===t)return uc.aborted("Hook aborted transition").toPromise();return ca(Wc)(t)?uc.redirected(t).toPromise():void 0}getNotCurrentRejection(){const t=this.transition.router;return t._disposed?uc.aborted(`UIRouter instance #${t.$id} has been stopped (disposed)`).toPromise():this.transition._aborted?uc.aborted().toPromise():this.isSuperseded()?uc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${ra("traceData.hookType")(t)||"internal"} context: ${ra("traceData.context.state.name")(t)||ra("traceData.context")(t)||"unknown"}, ${hc(200,fc(e.callback))}`}}function Jc(t,e,n){const r=ya(e)?[e]:e;return!!(ga(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new Lc(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}Kc.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Kc.LOG_REJECTED_RESULT=t=>e=>{Sa(e)&&e.catch((e=>t.logError(uc.normalize(e))))},Kc.LOG_ERROR=t=>e=>t.logError(e),Kc.REJECT_ERROR=t=>t=>ac(t),Kc.THROW_ERROR=t=>t=>{throw t};class Zc{constructor(t,e,n,r,i,s={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter((t=>Jc(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return za(this.tranSvc._pluginapi._getPathTypes(),(()=>!0))}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._pluginapi._getPathTypes()).reduce(((r,i)=>{const s=i.scope===zc.STATE,o=t[i.name]||[],a=s?o:[rc(o)];return r[i.name]=this._matchingNodes(a,n[i.name],e),r}),{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every(Va)?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function Yc(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=Ma(r);function s(t,s,o={}){const a=new Zc(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class Qc{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.router.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(Ja,[]).filter(Va)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const i={transition:e,current:e.options().current};return r.map((r=>r.matches(n,e)[t.criteriaMatchPath.name].map((n=>{const s=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},i),o=t.criteriaMatchPath.scope===zc.STATE?n.state.self:null,a=new Kc(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(Ja,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}(t.reverseSort)).map((t=>t.transitionHook))}getMatchingHooks(t,e,n){const r=t.hookPhase===Bc.CREATE,i=this.transition.router.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(tc(ba,`broken event named: ${t.name}`)).reduce(Ja,[]).filter((t=>t.matches(e,n)))}}class Xc{constructor(t){if(t instanceof Xc){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map((t=>t.clone()))}}clone(){return new Xc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return nc(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return Ba(this.paramSchema,na("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Vc.changed(n,this.paramValues,t.paramValues)}}Xc.clone=t=>t.clone();class tl{static makeTargetState(t,e){const n=rc(e).state;return new Wc(t,n,e.map(ea("paramValues")).reduce(qa,{}),{})}static buildPath(t){const e=t.params();return t.$state().path.map((t=>new Xc(t).applyRawParams(e)))}static buildToPath(t,e){const n=tl.buildPath(e);return e.options().inherit?tl.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>Da(n,t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=tl.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(Ja,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(Ja,[]).filter((t=>!t.inherit)).map(ea("id"));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=Ua(i,n);i=Ha(i,n);const o=Ha(function(t,e){const n=Ba(t,na("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new Xc(e.state).applyRawParams(a)}))}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let i=0;for(;i<r&&t[i].state!==n&&(s=t[i],o=e[i],s.equals(o,tl.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return ec(t,e).reduce(((t,[e,i])=>(r=r||!e.equals(i,n),r?t:t.concat(e))),[])}static equals(t,e,n){return t.length===e.length&&tl.matching(t,e,n).length===t.length}static subPath(t,e){const n=Ba(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}}tl.nonDynamicParams=t=>t.state.parameters({inherit:!1}).filter((t=>!t.dynamic)),tl.paramValues=t=>t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{});let el="LAZY",nl="WAIT";class rl{constructor(t,e,n,r,i){if(this.resolved=!1,this.promise=void 0,t instanceof rl)Object.assign(this,t);else if(ga(e)){if(ma(t))throw new Error("new Resolvable(): token argument is required");if(!ga(e))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Yo.$q.when(this.data):void 0}else if(wa(t)&&t.token&&(t.hasOwnProperty("resolveFn")||t.hasOwnProperty("data"))){const e=t;return new rl(e.token,e.resolveFn,e.deps,e.policy,e.data)}}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||el,async:e.async||n.async||nl}}resolve(t,e){const n=Yo.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=ga(s)?s:U;return this.promise=n.when().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Sc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${$c(this.token)}, requires: [${this.deps.map($c)}])`}clone(){return new rl(this)}}rl.fromData=(t,e)=>new rl(t,(()=>e),null,null,e);let il={LAZY:"LAZY",EAGER:"EAGER"};const sl=il,ol=[sl.EAGER,sl.LAZY],al=[sl.EAGER];class cl{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(Qa,[])}getResolvable(t){return rc(this._path.map((t=>t.resolvables)).reduce(Ja,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e.state)}subContext(t){return new cl(tl.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Ba(this._path,na("state",e)),r=t.map((t=>t.token));n.resolvables=n.resolvables.filter((t=>-1===r.indexOf(t.token))).concat(t)}resolvePath(t="LAZY",e){const n=(Da(ol,t)?t:"LAZY")===il.EAGER?al:ol;Sc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>Da(t,this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter(ia(r(["NOWAIT"],"async"))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Yo.$q.all(i)}injector(){return this._injector||(this._injector=new ll(this))}findNode(t){return Ba(this._path,(e=>Da(e.resolvables,t)))}getDependencies(t){const e=this.findNode(t),n=(tl.subPath(this._path,(t=>t===e))||this._path).reduce(((t,e)=>t.concat(e.resolvables)),[]).filter((e=>e!==t));return t.deps.map((t=>{const e=n.filter((e=>e.token===t));if(e.length)return rc(e);const r=this.injector().getNative(t);if(m(r))throw new Error("Could not find Dependency Injection token: "+$c(t));return new rl(t,(()=>r),[],r)}))}}class ll{constructor(t){this.context=t,this.native=this.get("Native Injector")||Yo.$injector}get(t){const e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+$c(e.token));return e.data}return this.getNative(t)}getAsync(t){const e=this.context.getResolvable(t);return e?e.get(this.context):Yo.$q.when(this.native.get(t))}getNative(t){return this.native&&this.native.get(t)}}const ul=ea("self");class hl{onBefore(t,e,n){}onStart(t,e,n){}onExit(t,e,n){}onRetain(t,e,n){}onEnter(t,e,n){}onFinish(t,e,n){}onSuccess(t,e,n){}onError(t,e,n){}createTransitionHookRegFns(){this.router.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==Bc.CREATE)).forEach((t=>Yc(this,this.router.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}constructor(t,e,n){if(this._deferred=Yo.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new Qc(this),this.isActive=()=>this.router.globals.transition===this,this.router=n,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:la(this)},e.options()),this.$id=n.transitionService._transitionCount++;const r=tl.buildToPath(t,e);this._treeChanges=tl.treeChanges(t,r,this._options.reloadState),this.createTransitionHookRegFns();const i=this._hookBuilder.buildHooksForPhase(Bc.CREATE);Kc.invokeHooks(i,(()=>null)),this.applyViewConfigs(n)}applyViewConfigs(t){const e=this._treeChanges.entering.map((t=>t.state));tl.applyViewConfigs(t.transitionService.$view,this._treeChanges.to,e)}$from(){return rc(this._treeChanges.from).state}$to(){return rc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof hl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!Jc(this.$to(),t.to,this)||t.from&&!Jc(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(ea("paramValues")).reduce(qa,{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(Za,[]).reduce(Qa,[]);return Vc.changed(n,t,e).reduce(((t,n)=>(t[n.id]=e[n.id],t)),{})}injector(t,e="to"){let n=this._treeChanges[e];return t&&(n=tl.subPath(n,(e=>e.state===t||e.state.name===t))),new cl(n).injector()}getResolveTokens(t="to"){return new cl(this._treeChanges[t]).getTokens()}addResolvable(t,e=""){t=ca(rl)(t)?t:new rl(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Ba(r,(t=>t.state.name===n));new cl(r).addResolvables([t],i.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return Wa(this._treeChanges.entering,ea("state")).map(ul)}exiting(){return Wa(this._treeChanges.exiting,ea("state")).map(ul).reverse()}retained(){return Wa(this._treeChanges.retained,ea("state")).map(ul)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(na("state",e)):n,n.map(ea("views")).filter(Va).reduce(Ja,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.router.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;var c;return tl.matching(a,o,tl.nonDynamicParams).filter(ia((c=t.options().reloadState,t=>c&&t.state.includes[c.name]))).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(ec(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(Ka,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return ec(e,n,r).map((([t,e,n])=>Vc.changed(t,e,n))).reduce(Ja,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(Ka,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.router.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=tl.matching(t,n);return t.length===r.filter((t=>!e||!t.state.includes[e.name])).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=Kc.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(Bc.BEFORE);return Kc.invokeHooks(n,(()=>{const t=this.router.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Sc.traceTransitionStart(this),Yo.$q.when(void 0)})).then((()=>{const t=e(Bc.RUN);return Kc.invokeHooks(t,(()=>Yo.$q.when(void 0)))})).then((()=>{Sc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(Bc.SUCCESS))}),(n=>{Sc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(Bc.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){pa(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return uc.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter((t=>!t.validates(n[t.id])));if(r.length){const e=r.map((t=>`[${t.id}:${$c(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return uc.invalid(i)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:Ha(t,["#"]);return`Transition#${this.$id}( '${wa(t)?t.name:t}'${$c(n(this._treeChanges.from.map(ea("paramValues")).reduce(qa,{})))} -> ${this.valid()?"":"(X) "}'${wa(e)?e.name:e}'${$c(n(this.params()))} )`}}function dl(t){t.addResolvable(rl.fromData(au,t.router),""),t.addResolvable(rl.fromData(hl,t),""),t.addResolvable(rl.fromData("$transition$",t),""),t.addResolvable(rl.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(rl.fromData("$state$",e),e)}))}hl.diToken=hl;const pl=Da(["$transition$",hl]),fl=t=>{const e=Object.values(t.treeChanges()).reduce(Ja,[]).reduce(Qa,[]),n=t=>pl(t.token)?rl.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))},$l=t=>{const e=t.to().redirectTo;if(!e)return;const n=t.router.stateService;function r(e){if(e)return e instanceof Wc?e:ya(e)?n.target(e,t.params(),t.options()):e.state||e.params?n.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return ga(e)?Yo.$q.when(e(t)).then(r):r(e)};function ml(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const gl=ml("onExit"),vl=ml("onRetain"),yl=ml("onEnter"),wl=1e3,bl=t=>new cl(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),El=(t,e)=>new cl(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Cl=t=>new cl(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),xl=t=>{const e=Yo.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.when(t.load())))).then((()=>{}))},Sl=t=>{const e=t.views("entering"),n=t.views("exiting");if(!e.length&&!n.length)return;const r=t.router.viewService;n.forEach((t=>r.deactivateViewConfig(t))),e.forEach((t=>r.activateViewConfig(t))),r.sync()},Ol=t=>{const e=t.router.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},(()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,ic(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)},kl=t=>{const e=t.options(),n=t.router.stateService,r=t.router.urlRouter;if("url"!==e.source&&e.location&&n.$current.navigable){const t={replace:"replace"===e.location};r.push(n.$current.navigable.url,n.params,t)}r.update(!0)},_l=t=>{const e=t.router;const n=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Tl(t,e)));return Yo.$q.all(n).then((function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.stateService.target(n.identifier(),n.params(),n.options())}const n=e.urlService,r=n.match(n.parts()),i=r&&r.rule;if(i&&"STATE"===i.type){const n=i.state,s=r.match;return e.stateService.target(n,s,t.options())}e.urlService.sync()}))};function Tl(t,e){const n=e.$$state().lazyLoad;let r=n._promise;if(!r){const i=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete n._promise,t),s=t=>(delete n._promise,Yo.$q.reject(t));r=n._promise=Yo.$q.when(n(t,e)).then((function(e){e&&Array.isArray(e.states)&&e.states.forEach((e=>t.router.stateRegistry.register(e)));return e})).then(i,s)}return r}class Al{constructor(t,e,n,r,i=!1,s=Kc.HANDLE_RESULT,o=Kc.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=a}}function Rl(t){const e=t._ignoredReason();if(!e)return;Sc.traceTransitionIgnored(t);const n=t.router.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),uc.ignored().toPromise()}function Vl(t){if(!t.valid())throw new Error(t.error().toString())}let Nl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Pl{constructor(t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this._router=t,this.$view=t.viewService,this._deregisterHookFns={},this._pluginapi=Pa(la(this),{},la(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.globals.successfulTransitions.onEvict(fl)}onCreate(t,e,n){}onBefore(t,e,n){}onStart(t,e,n){}onExit(t,e,n){}onRetain(t,e,n){}onEnter(t,e,n){}onFinish(t,e,n){}onSuccess(t,e,n){}onError(t,e,n){}dispose(t){Object.values(this._registeredHooks).forEach((t=>t.forEach((e=>{e._deregistered=!0,Ma(t,e)}))))}create(t,e){return new hl(t,e,this._router)}_defineCoreEvents(){const t=Bc,e=Kc,n=this._criteriaPaths,r=!1,i=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=zc;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,i=!1,s=Kc.HANDLE_RESULT,o=Kc.REJECT_ERROR,a=!1){const c=new Al(t,e,n,r,i,s,o,a);this._eventTypes.push(c),Yc(this,this,c)}_getEvents(t){return(fa(t)?this._eventTypes.filter((e=>e.hookPhase===t)):this._eventTypes.slice()).sort(((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=this.onCreate({},dl),t.ignored=(t=>t.onBefore({},Rl,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Vl,{priority:-1e4}))(this),t.redirectTo=(t=>t.onStart({to:t=>!!t.redirectTo},$l))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},gl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},vl))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},yl))(this),t.eagerResolve=(t=>t.onStart({},bl,{priority:wl}))(this),t.lazyResolve=(t=>t.onEnter({entering:la(!0)},El,{priority:wl}))(this),t.resolveAll=(t=>t.onFinish({},Cl,{priority:wl}))(this),t.loadViews=(t=>t.onFinish({},xl))(this),t.activateViews=(t=>t.onSuccess({},Sl))(this),t.updateGlobals=(t=>t.onCreate({},Ol))(this),t.updateUrl=(t=>t.onSuccess({},kl,{priority:9999}))(this),t.lazyLoad=(t=>t.onBefore({entering:t=>!!t.lazyLoad},_l))(this)}}class jl{static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=ya(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substr(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce(((t,e)=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{uiViewName:r,uiViewContextAnchor:i}}constructor(t){this.router=t,this._uiViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Ba(this._uiViews,(e=>`${this.router.$id}.${e.id}`===t)),_registeredUIViews:()=>this._uiViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>Ma(this._listeners,t))}}_rootViewContext(t){return this._rootContext=t||this._rootContext}_viewConfigFactory(t,e){this._viewConfigFactories[t]=e}createViewConfig(t,e){const n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);const r=n(t,e);return ba(r)?r:[r]}deactivateViewConfig(t){Sc.traceViewServiceEvent("<- Removing",t),Ma(this._viewConfigs,t)}activateViewConfig(t){Sc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._uiViews.map((t=>[t.fqn,t])).reduce(nc,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=Qo(((t,e,n,r)=>e*(t(n)-t(r)))),r=this._uiViews.sort(n((function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((r=>{const i=this._viewConfigs.filter(jl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{uiView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!Da(i,t))).map((t=>({uiView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._uiViews.indexOf(t.uiView)&&t.uiView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Sc.traceViewSync(o)}registerUIView(t){Sc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._uiViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Sc.traceViewServiceUIViewEvent("!!!! duplicate uiView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Sc.traceViewServiceUIViewEvent("<- Deregistering",t),Ma(e)(t)):Sc.traceViewServiceUIViewEvent("Tried removing non-registered uiView",t)}}available(){return this._uiViews.map(ea("fqn"))}active(){return this._uiViews.filter(ea("$config")).map(ea("name"))}}jl.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,i=r.$uiViewName.split("."),s=e.fqn.split(".");if(!Ra(i,s.slice(0-i.length)))return!1;const o=1-i.length||void 0,a=s.slice(0,o).join("."),c=t[a].creationContext;return r.$uiViewContextAnchor===(c&&c.name)};class Dl{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=ya(t);let i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));const s=this._states[i];if(s&&(r||!(r||s!==t&&s.self!==t)))return s;if(r&&n){const t=Object.values(this._states).filter((t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)));return t.length>1&&vc.error(`stateMatcher.find: Found multiple matches for ${i} using glob: `,t.map((t=>t.name))),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),i=r.length;let s=0,o=n;for(;s<i;s++)if(""!==r[s]||0!==s){if("^"!==r[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(s).join(".");return o.name+(o.name&&a?".":"")+a}}function Ml(t){return t.name}function Il(t){return t.self.$$state=()=>t,t.self}function Ll(t){return t.parent&&t.parent.data&&(t.data=t.self.data=ja(t.parent.data,t.data)),t.data}const ql=(t,e)=>function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};ic(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=(t=>{if(!ya(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}})(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)},Ul=t=>function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null};function Hl(t){return t.parent?t.parent.path.concat(t):[t]}function Fl(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Bl(t){const e=t=>t.provide||t.token,n=ua([[ea("resolveFn"),t=>new rl(e(t),t.resolveFn,t.deps,t.policy)],[ea("useFactory"),t=>new rl(e(t),t.useFactory,t.deps||t.dependencies,t.policy)],[ea("useClass"),t=>new rl(e(t),(()=>new t.useClass),[],t.policy)],[ea("useValue"),t=>new rl(e(t),(()=>t.useValue),[],t.policy,t.useValue)],[ea("useExisting"),t=>new rl(e(t),Va,[t.useExisting],t.policy)]]),r=ua([[ta(ea("val"),ya),t=>new rl(t.token,Va,[t.val],t.policy)],[ta(ea("val"),ba),t=>new rl(t.token,rc(t.val),t.val.slice(0,-1),t.policy)],[ta(ea("val"),ga),t=>new rl(t.token,t.val,(t=>{const e=Yo.$injector;return t.$inject||e&&e.annotate(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),i=ua([[ca(rl),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass)),n],[t=>!!(t&&t.val&&(ya(t.val)||ba(t.val)||ga(t.val))),r],[la(!0),t=>{throw new Error("Invalid resolve value: "+$c(t))}]]),s=t.resolve,o=ba(s)?s:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(s,t.resolvePolicy||{});return o.map(i)}class zl{constructor(t,e){this.matcher=t;const n=this,r=()=>t.find(""),i=t=>""===t.name;var s;this.builders={name:[Ml],self:[Il],parent:[function(e){return i(e)?null:t.find(n.parentName(e))||r()}],data:[Ll],url:[ql(e,r)],navigable:[Ul(i)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(za(Ha(t.params||{},e.map(ea("id"))),((e,n)=>s.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(nc,{})})],views:[],path:[Hl],includes:[Fl],resolvables:[Bl]}}builder(t,e){const n=this.builders,r=n[t]||[];return ya(t)&&!fa(e)?r.length>1?r:r[0]:ya(t)&&ga(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e].reduce(((t,e)=>n=>e(n,t)),Na);t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?ya(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=ya(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}class Wl{constructor(t,e,n,r){this.router=t,this.states=e,this.builder=n,this.listeners=r,this.queue=[]}dispose(){this.queue=[]}register(t){const e=this.queue,n=qc.create(t),r=n.name;if(!ya(r))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,r)||Da(e.map(ea("name")),r))throw new Error(`State '${r}' is already defined`);return e.push(n),this.flush(),n}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>this.states.hasOwnProperty(t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.router.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.router.urlService.rules;e.rule(e.urlRuleFactory.create(t))}}class Gl{constructor(t){this.router=t,this.states={},this.listeners=[],this.matcher=new Dl(this.states),this.builder=new zl(this.matcher,t.urlMatcherFactory),this.stateQueue=new Wl(t,this.states,this.builder,this.listeners),this._registerRoot()}_registerRoot(){(this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0})).navigable=null}dispose(){this.stateQueue.dispose(),this.listeners=[],this.get().forEach((t=>this.get(t)&&this.deregister(t)))}onStatesChanged(t){return this.listeners.push(t),function(){Ma(this.listeners)(t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map((t=>t.$$state())),n=t=>{const r=e.filter((e=>-1!==t.indexOf(e.parent)));return 0===r.length?r:r.concat(n(r))},r=n([t]),i=[t].concat(r).reverse();return i.forEach((t=>{const e=this.router.urlService.rules;e.rules().filter(na("state",t)).forEach((t=>e.removeRule(t))),delete this.states[t.name]})),i}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach((t=>t("deregistered",n.map((t=>t.self))))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map((t=>this.states[t].self));const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}class Kl{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=Ia(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Jl{get transition(){return this.router.globals.transition}get params(){return this.router.globals.params}get current(){return this.router.globals.current}get $current(){return this.router.globals.$current}constructor(t){this.router=t,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){t instanceof Error&&t.stack?(console.error(t),console.error(t.stack)):t instanceof uc?(console.error(t.toString()),t.detail&&t.detail.stack&&console.error(t.detail.stack)):console.error(t)};const e=Object.keys(Jl.prototype).filter(ia(Da(["current","$current","params","transition"])));Pa(la(Jl.prototype),this,la(this),e)}dispose(){this.defaultErrorHandler(Na),this.invalidCallbacks=[]}_handleInvalidTargetState(t,e){const n=tl.makeTargetState(this.router.stateRegistry,t),r=this.router.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Kl(this.invalidCallbacks.slice()),a=new cl(t).injector(),c=t=>{if(!(t instanceof Wc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?uc.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):uc.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?uc.invalid(e.error()).toPromise():Yo.$q.when(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ma(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.current,this.params,{reload:!fa(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=La(n,{relative:this.$current,inherit:!0},Nl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(wa(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.router.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${ya(n.reload)?n.reload:n.reload.name}'`);return new Wc(this.router.stateRegistry,t,e,n)}getCurrentPath(){const t=this.router.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new Xc(this.router.stateRegistry.root())])()}transitionTo(t,e={},n={}){const r=this.router,i=r.globals;n=La(n,Nl);const s=()=>i.transition;n=Object.assign(n,{current:s});const o=this.target(t,e,n),a=this.getCurrentPath();if(!o.exists())return this._handleInvalidTargetState(a,o);if(!o.valid())return ac(o.error());if(!1===n.supercede&&s())return uc.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=>e=>{if(e instanceof uc){const n=r.globals.lastStartedTransitionId<=t.$id;if(e.type===cc.IGNORED)return n&&r.urlRouter.update(),Yo.$q.when(i.current);const s=e.detail;if(e.type===cc.SUPERSEDED&&e.redirected&&s instanceof Wc){const e=t.redirect(s);return e.run().catch(c(e))}if(e.type===cc.ABORTED)return n&&r.urlRouter.update(),Yo.$q.reject(e)}return this.defaultErrorHandler()(e),Yo.$q.reject(e)},l=this.router.transitionService.create(a,o),u=l.run().catch(c(l));return oc(u),Object.assign(u,{transition:l})}is(t,e,n){n=La(n,{relative:this.$current});const r=this.router.stateRegistry.matcher.find(t,n.relative);if(!fa(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return Vc.equals(i,Vc.values(i,e),this.params)}includes(t,e,n){n=La(n,{relative:this.$current});const r=ya(t)&&Lc.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const i=this.router.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(!fa(i))return;if(!fa(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return Vc.equals(o,Vc.values(o,e),this.params)}href(t,e,n){n=La(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.router.stateRegistry.matcher.find(t,n.relative);if(!fa(r))return null;n.inherit&&(e=this.params.$inherit(e,this.$current,r));const i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.router.urlRouter.href(i.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.router.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),i=tl.makeTargetState(this.router.stateRegistry,r);return Tl(e=e||this.router.transitionService.create(r,i),n)}}class Zl{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),i={},s=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||s.indexOf(n[t])>=0||(s.push(n[t]),i[n[t]]=this[n[t]])}return Object.assign({},i,t)}}class Yl{constructor(){this.params=new Zl,this.lastStartedTransitionId=-1,this.transitionHistory=new Kl([],1),this.successfulTransitions=new Kl([],1)}dispose(){this.transitionHistory.clear(),this.successfulTransitions.clear(),this.transition=null}}let Ql;function Xl(t){if(!(ga(t)||ya(t)||ca(Wc)(t)||Wc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return ga(t)?t:la(t)}Ql=(t,e)=>{let n=((t,e)=>(e.priority||0)-(t.priority||0))(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?Dc.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))};class tu{constructor(t){this.router=t,this._sortFn=Ql,this._rules=[],this._id=0,this.urlRuleFactory=new Uc(t)}dispose(t){this._rules=[],delete this._otherwiseFn}initial(t){const e=Xl(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=Xl(t);this._otherwiseFn=this.urlRuleFactory.create(la(!0),e),this._sorted=!1}removeRule(t){Ma(this._rules,t)}rule(t){if(!Uc.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map(((t,e)=>({elem:t,idx:e})));return n.sort(((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((t=>t.elem))}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return fa(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class eu{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ua(eu.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=ja(Wa(this.defaultTypes,((t,e)=>new Oc(Object.assign({name:e},t)))),{})}dispose(){this.types={}}type(t,e,n){if(!fa(e))return this.types[t];if(Object.prototype.hasOwnProperty.call(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new Oc(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){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],Yo.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:ca(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(eu.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!ma(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:ca(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!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:Ta,decode:_a,is:ca(Object),equals:Ra,pattern:/[^/]*/}),any:t({encode:Va,decode:Va,is:()=>!0,equals:Ra})})}();class nu{constructor(t){this.router=t,this.paramTypes=new eu,this._decodeParams=!0,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1,this.dispose=()=>this.paramTypes.dispose(),this.baseHref=()=>this.router.locationConfig.baseHref(),this.hashPrefix=t=>this.router.locationConfig.hashPrefix(t),this.host=()=>this.router.locationConfig.host(),this.html5Mode=()=>this.router.locationConfig.html5Mode(),this.port=()=>this.router.locationConfig.port(),this.protocol=()=>this.router.locationConfig.protocol()}caseInsensitive(t){return this._isCaseInsensitive=g(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(g(t)&&!0!==t&&!1!==t&&!y(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=g(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=g(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return g(e)?this:r}}class ru{constructor(t){this.router=t,this.interceptDeferred=!1,this.rules=new tu(this.router),this.config=new nu(this.router),this.url=(t,e,n)=>this.router.locationService.url(t,e,n),this.path=()=>this.router.locationService.path(),this.search=()=>this.router.locationService.search(),this.hash=()=>this.router.locationService.hash(),this.onChange=t=>this.router.locationService.onChange(t)}dispose(){this.listen(!1),this.rules.dispose()}parts(){return{path:this.path(),search:this.search(),hash:this.hash()}}sync(t){if(t&&t.defaultPrevented)return;const{urlService:e,stateService:n}=this.router,r={path:e.path(),search:e.search(),hash:e.hash()},i=this.match(r);ua([[y,t=>e.url(t,!0)],[Wc.isDef,t=>n.go(t.state,t.params,t.options)],[ca(Wc),t=>n.go(t.state(),t.params(),t.options())]])(i&&i.rule.handler(i.match,r,this.router))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.router.urlService.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}deferIntercept(t){void 0===t&&(t=!0),this.interceptDeferred=t}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t,this.router);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}}let iu=0;const su=Zo("LocationServices",["url","path","search","hash","onChange"]),ou=Zo("LocationConfig",["port","protocol","host","baseHref","html5Mode","hashPrefix"]);class au{constructor(t=su,e=ou){this.locationService=t,this.locationConfig=e,this.$id=iu++,this._disposed=!1,this._disposables=[],this.trace=Sc,this.viewService=new jl(this),this.globals=new Yl,this.transitionService=new Pl(this),this.urlMatcherFactory=new Ic(this),this.urlRouter=new Fc(this),this.urlService=new ru(this),this.stateRegistry=new Gl(this),this.stateService=new Jl(this),this._plugins={},this.viewService._pluginapi._rootViewContext(this.stateRegistry.root()),this.globals.$current=this.stateRegistry.root(),this.globals.current=this.globals.$current.self,this.disposable(this.globals),this.disposable(this.stateService),this.disposable(this.stateRegistry),this.disposable(this.transitionService),this.disposable(this.urlService),this.disposable(t),this.disposable(e)}disposable(t){this._disposables.push(t)}dispose(t){t&&ga(t.dispose)?t.dispose(this):(this._disposed=!0,this._disposables.slice().forEach((t=>{try{"function"==typeof t.dispose&&t.dispose(this),Ma(this._disposables,t)}catch(t){}})))}plugin(t,e={}){const n=new t(this,e);if(!n.name)throw new Error("Required property `name` missing on plugin: "+n);return this._disposables.push(n),this._plugins[n.name]=n}getPlugin(t){return t?this._plugins[t]:Object.values(this._plugins)}}const cu=(t,e)=>t.reduce(((t,n)=>t||g(e[n])),!1);function lu(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(g(t.views)&&cu(r,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): ${r.filter((e=>g(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Ua(t,r)};return Aa(s,(function(r,s){if(s=s||"$default",y(r)&&(r={component:r}),r=Object.assign({},r),cu(e,r)&&cu(n,r))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${s}@${t.name}'`);r.resolveAs=r.resolveAs||"$resolve",r.$type="ng1",r.$context=t,r.$name=s;const o=jl.normalizeUIViewTarget(r.$context,r.$name);r.$uiViewName=o.uiViewName,r.$uiViewContextAnchor=o.uiViewContextAnchor,i[s]=r})),i}let uu=0;class hu{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.$id=uu++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Yo.$q,e=new cl(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.when(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.when(this.getController(e))};return t.all(r).then((t=>(Sc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!xa(e))return this.viewDecl.controller;const n=Yo.$injector.annotate(e),r=E(e)?rc(e):e;return new rl("",r,n).get(t)}}class du{constructor(t,e){this.stateRegistry=t,this.stateService=e,Pa(la(du.prototype),this,la(this))}decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t,e){return v(t)?e=t:e.name=t,this.stateRegistry.register(e),this}onInvalid(t){return this.stateService.onInvalid(t)}}const pu=t=>function(e){const n=e[t],r="onExit"===t?"from":"to";return n?function(t,e){const i=new cl(t.treeChanges(r)).subContext(e.$$state()),s=Object.assign(bu(i),{$state$:e,$transition$:t});return Yo.$injector.invoke(n,this,s)}:void 0};class fu{static monkeyPatchPathParameterType(t){const e=t.urlMatcherFactory.type("path");e.encode=t=>null!=t?t.toString().replace(/(~|\/)/g,(t=>({"~":"~~","/":"~2F"}[t]))):t,e.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,(t=>({"~~":"~","~2F":"/"}[t]))):t}dispose(){}constructor(t){this._urlListeners=[],this.$locationProvider=t;const e=la(t);Pa(e,this,e,["hashPrefix"])}onChange(t){return this._urlListeners.push(t),()=>Ma(this._urlListeners)(t)}html5Mode(){let t=this.$locationProvider.html5Mode();return t=v(t)?t.enabled:t,t&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||this.$window.location.pathname)}url(t,e=!1,n){return g(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}_runtimeServices(t,e,n){this.$location=e,this.$browser=n,this.$window=window,t.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t)))));const r=la(e);Pa(r,this,r,["replace","path","search","hash"]),Pa(r,this,r,["port","protocol","host"])}}let $u=null;function mu(t){$u=this.router=new au,$u.stateProvider=new du($u.stateRegistry,$u.stateService),$u.stateRegistry.decorator("views",lu),$u.stateRegistry.decorator("onExit",pu("onExit")),$u.stateRegistry.decorator("onRetain",pu("onRetain")),$u.stateRegistry.decorator("onEnter",pu("onEnter")),$u.viewService._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Yo.$injector.get("$templateFactory"),[new hu(e,n,t)])}()),$u.urlService.config._decodeParams=!1;const e=$u.locationService=$u.locationConfig=new fu(t);function n(t,n,r){return e._runtimeServices(r,t,n),delete $u.router,delete $u.$get,$u}return fu.monkeyPatchPathParameterType($u),$u.router=$u,$u.$get=n,n.$inject=["$location","$browser","$rootScope"],$u}mu.$inject=["$locationProvider"];const gu=t=>["$uiRouterProvider",function(e){const n=e.router[t];return n.$get=()=>n,n}];function vu(t,e,n){if(Yo.$injector=t,Yo.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke((function(t){}))}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.stateRegistry.get().map((t=>t.$$state().resolvables)).reduce(Ja,[]).filter((t=>"deferred"===t.deps)).forEach((e=>e.deps=t.annotate(e.resolveFn,t.strictDi)))}function yu(){return Object.assign($u.stateProvider,{$get:()=>$u.stateService})}function wu(t){t.$watch((function(){Sc.approximateDigests++}))}vu.$inject=["$injector","$q","$uiRouter"],wu.$inject=["$rootScope"];const bu=t=>t.getTokens().filter(y).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(nc,{});class Eu{constructor(){this._useHttp=!0,this.$get=["$http","$templateCache","$injector",(t,e,n)=>(this.$templateRequest=n.has&&n.has("$templateRequest")&&n.get("$templateRequest"),this.$http=t,this.$templateCache=e,this)]}useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>Yo.$q.when(t).then((t=>({template:t}))),i=t=>Yo.$q.when(t).then((t=>({component:t})));return fa(t.template)?r(this.fromString(t.template,e)):fa(t.templateUrl)?r(this.fromUrl(t.templateUrl,e)):fa(t.templateProvider)?r(this.fromProvider(t.templateProvider,e,n)):fa(t.component)?i(t.component):fa(t.componentProvider)?i(this.fromComponentProvider(t.componentProvider,e,n)):r("<ui-view></ui-view>")}fromString(t,e){return ga(t)?t(e):t}fromUrl(t,e){return ga(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)}fromProvider(t,e,n){const r=Yo.$injector.annotate(t),i=ba(t)?rc(t):t;return new rl("",i,r).get(n)}fromComponentProvider(t,e,n){const r=Yo.$injector.annotate(t),i=ba(t)?rc(t):t;return new rl("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=dc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Yo.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(Cu).reduce(Ja,[])}(n).map((n=>{const{name:s,type:o}=n,a=i(s);if(t.attr(a)&&!r[s])return`${a}='${t.attr(a)}'`;const c=r[s]||s;if("@"===o)return`${a}='{{::$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&Yo.$injector.annotate(n)||[];return`${a}='$resolve.${c}${ba(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='::$resolve.${c}'`})).join(" "),o=i(n);return`<${o} ${s}></${o}>`}}const Cu=t=>wa(t.bindToController)?xu(t.bindToController):xu(t.scope),xu=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>fa(t)&&ba(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Su(){let t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}}]}function Ou(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function ku(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function _u(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function Tu(t){const e=t.parent().inheritedData("$uiView"),n=ra("$cfg.path")(e);return n?rc(n).state.name:void 0}function Au(t,e,n){const r=n.uiState||t.current.name,i=Object.assign(function(t,e){return{relative:Tu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.uiStateOpts||{}),s=t.href(r,n.uiStateParams,i);return{uiState:r,uiStateParams:n.uiStateParams,uiStateOpts:i,href:s}}function Ru(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t[0].getAttribute("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t[0].nodeName,clickable:!n}}function Vu(t,e,n,r,i){return function(s){const o=s.which||s.button,a=i();if(!(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.attr("target"))){const i=n((function(){t.attr("disabled")||e.go(a.uiState,a.uiStateParams,a.uiStateOpts)}));s.preventDefault();let o=r.isAnchor&&!a.href?1:0;s.preventDefault=function(){o--<=0&&n.cancel(i)}}}}function Nu(t,e,n,r){let i;r&&(i=r.events),ba(i)||(i=["click"]);const s=t.on?"on":"bind";for(const e of i)t[s](e,n);e.$on("$destroy",(function(){const e=t.off?"off":"unbind";for(const r of i)t[e](r,n)}))}Ou.$inject=["$state"],ku.$inject=["$state"];let Pu=["$uiRouter","$timeout",function(t,e){const n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,s,o){const a=Ru(i),c=o[1]||o[0];let l=null;const u={},h=()=>Au(n,i,u),d=_u(s.uiSref);function p(){const t=h();l&&l(),c&&(l=c.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&s.$set(a.attr,t.href)}if(u.uiState=d.state,u.uiStateOpts=s.uiSrefOpts?r.$eval(s.uiSrefOpts):{},d.paramExpr&&(r.$watch(d.paramExpr,(function(t){u.uiStateParams=Object.assign({},t),p()}),!0),u.uiStateParams=Object.assign({},r.$eval(d.paramExpr))),p(),r.$on("$destroy",t.stateRegistry.onStatesChanged(p)),r.$on("$destroy",t.transitionService.onSuccess({},p)),!a.clickable)return;const f=Vu(i,n,e,a,h);Nu(i,r,f,u.uiStateOpts)}}}],ju=["$uiRouter","$timeout",function(t,e){const n=t.stateService;return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,s,o){const a=Ru(i),c=o[1]||o[0];let l,u=null;const h={},d=()=>Au(n,i,h),p=["uiState","uiStateParams","uiStateOpts"],f=p.reduce(((t,e)=>(t[e]=Na,t)),{});function $(){const t=d();u&&u(),c&&(u=c.$$addStateInfo(t.uiState,t.uiStateParams)),null!=t.href&&s.$set(a.attr,t.href)}p.forEach((t=>{h[t]=s[t]?r.$eval(s[t]):null,s.$observe(t,(e=>{f[t](),f[t]=r.$watch(e,(e=>{h[t]=e,$()}),!0)}))})),$(),r.$on("$destroy",t.stateRegistry.onStatesChanged($)),r.$on("$destroy",t.transitionService.onSuccess({},$)),a.clickable&&(l=Vu(i,n,e,a,d),Nu(i,r,l,h.uiStateOpts))}}}],Du=["$state","$stateParams","$interpolate","$uiRouter",function(t,e,n,r){return{restrict:"A",controller:["$scope","$element","$attrs",function(e,i,s){let o,a,c=[];o=n(s.uiSrefActiveEq||"",!1)(e);try{a=e.$eval(s.uiSrefActive)}catch(t){}function l(t){t.promise.then(p,Na)}function u(){h(a)}function h(t){wa(t)&&(c=[],Aa(t,(function(t,n){const r=function(t,n){const r=_u(t);d(r.state,e.$eval(r.paramExpr),n)};ya(t)?r(t,n):ba(t)&&Aa(t,(function(t){r(t,n)}))})))}function d(e,n,r){const s={state:t.get(e,Tu(i))||{name:e},params:n,activeClass:r};return c.push(s),function(){Ma(c)(s)}}function p(){const n=t=>t.split(/\s/).filter(Va),r=t=>t.map((t=>t.activeClass)).map(n).reduce(Ja,[]),s=r(c).concat(n(o)).reduce(Qa,[]),a=r(c.filter((e=>t.includes(e.state.name,e.params)))),l=!!c.filter((e=>t.is(e.state.name,e.params))).length?n(o):[],u=a.concat(l).reduce(Qa,[]),h=s.filter((t=>!Da(u,t)));e.$evalAsync((()=>{u.forEach((t=>i[0].classList.add(t))),h.forEach((t=>i[0].classList.remove(t)))}))}a=a||n(s.uiSrefActive||"",!1)(e),h(a),this.$$addStateInfo=function(t,e){if(wa(a)&&c.length>0)return;const n=d(t,e,a);return p(),n},e.$on("$destroy",function(){const t=r.stateRegistry.onStatesChanged(u),n=r.transitionService.onStart({},l),i=e.$on("$stateChangeSuccess",p);return function(){t(),n(),i()}}()),r.globals.transition&&l(r.globals.transition),p()}]}}],Mu=["$view","$animate","$uiViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$uiView:{}},o={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n,r)},leave:function(t,n){e.leave(t,n)}},f=c.inheritedData("$uiView")||s,$=r(u.uiView||u.name||"")(a)||"$default";let m,g,v,y;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$uiView.fqn?f.$uiView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof hu))return;if(e=y,n=t,e===n)return;var e,n;Sc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),y=t,E(t)},get creationContext(){const t=ra("$cfg.viewDecl.$context")(f),e=ra("$uiView.creationContext")(f);return t||e}};Sc.traceUIViewEvent("Linking",w),c.data("$uiView",{$uiView:w}),E();const b=t.registerUIView(w);function E(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$uiView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$uiViewAnim",u),t.data("$uiView",o),p.enter(t,c,(function(){r.resolve(),v&&v.$emit("$viewContentAnimationEnded"),(fa(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Sc.traceUIViewEvent("Removing (previous) el",m.data("$uiView")),m.remove(),m=null),v&&(Sc.traceUIViewEvent("Destroying scope",w),v.$destroy(),v=null),g){const t=g.data("$uiViewAnim");Sc.traceUIViewEvent("Animate out",t),p.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,v=e,v.$emit("$viewContentLoaded",t||y),v.$eval(h)}a.$on("$destroy",(function(){Sc.traceUIViewEvent("Destroying/Unregistering",w),b()}))}}};return o}];function Iu(t,e,n,r,i){const s=ra("viewDecl.controllerAs"),o=ra("viewDecl.resolveAs");return{restrict:"ECA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$uiView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new cl(u.path);c.html(u.getTemplate(c,h)||a),Sc.traceUIViewFill(l.$uiView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&bu(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),qu(i,n,t,r,u)}if(ya(u.component)){const t=dc(u.component),e=new RegExp(`^(x-|data-)?${t}$`,"i"),s=()=>{const t=[].slice.call(c[0].children).filter((t=>t&&t.tagName&&e.exec(t.tagName)));return t&&Lt(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(qu(i,n,t,r,u),o())}))}d(r)}}}}Iu.$inject=["$compile","$controller","$transitions","$view","$q"];let Lu=0;function qu(t,e,n,r,i){!ga(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=rc(i.path).state.self,o={bind:n};if(ga(n.uiOnParamsChanged)){const t=new cl(i.path).getResolvable("$transition$").data,a=e=>{if(e===t||-1!==e.exiting().indexOf(s))return;const r=e.params("to"),i=e.params("from"),o=t=>t.paramSchema,a=e.treeChanges("to").map(o).reduce(Ja,[]),c=e.treeChanges("from").map(o).reduce(Ja,[]),l=a.filter((t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(r[t.id],i[t.id])}));if(l.length){const t=l.map((t=>t.id)),i=Fa(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(ga(n.uiCanExit)){const i=Lu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.when(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}window.angular=new class{constructor(){this.cache=Et,this.element=void 0,this.version={full:"",major:0,minor:0,dot:0,codeName:""},this.bind=nt,this.equals=J,this.element=Lt,this.extend=D,this.forEach=V,this.fromJson=st,this.toJson=it,this.identity=U,this.isArray=E,this.isDate=b,this.isDefined=g,this.isElement=B,this.isFunction=x,this.isNumber=w,this.isObject=v,this.isString=y,this.isUndefined=m,this.merge=M,this.noop=()=>{},this.errorHandlingConfig=be}bootstrap(t,e,n){v(n)||(n={});n=D({strictDi:!1},n),this.doBootstrap=function(){if((t=Lt(t)).injector()){const e=t[0]===window.document?"document":ie(t);throw ve("btstrpd","App already bootstrapped with this element '{0}'",e.replace(/</,"<").replace(/>/,">"))}this.bootsrappedModules=e||[],this.bootsrappedModules.unshift(["$provide",e=>{e.value("$rootElement",t)}]),n.debugInfoEnabled&&this.bootsrappedModules.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),this.bootsrappedModules.unshift("ng");const r=ge(this.bootsrappedModules,n.strictDi);return r.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((()=>{e.data("$injector",r),n(e)(t)}))}]),r};const r=/^NG_ENABLE_DEBUG_INFO!/,i=/^NG_DEFER_BOOTSTRAP!/;if(window&&r.test(window.name)&&(n.debugInfoEnabled=!0,window.name=window.name.replace(r,"")),window&&!i.test(window.name))return this.doBootstrap();window.name=window.name.replace(i,""),this.resumeBootstrap=function(t){return V(t,(function(t){e.push(t)})),this.doBootstrap()},x(this.resumeDeferredBootstrap)&&this.resumeDeferredBootstrap()}injector(t,e){return ge(t,e)}resumeBootstrap(t){return V(t,(t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}module(t,e,n){const r=mt("$injector");let i={};return Y(t,"module"),e&&Object.prototype.hasOwnProperty.call(ye,t)&&(ye[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(ye,t,(()=>{if(!e)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);const s=[],o=[],a=[],c=u("$injector","invoke","push",o),l={_invokeQueue:s,_configBlocks:o,_runBlocks:a,info(t){if(g(t)){if(!v(t))throw ve("aobj","Argument '{0}' must be an object","value");return i=t,this}return i},requires:e,name:t,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:h("$provide","decorator",o),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:c,run(t){return a.push(t),this}};return n&&c(n),l;function u(t,e,n,r){return r||(r=s),function(){return r[n||"push"]([t,e,arguments]),l}}function h(e,n,r){return r||(r=s),function(i,s){return s&&x(s)&&(s.$$moduleName=t),r.push([e,n,arguments]),l}}}))}reloadWithDebugInfo(){window.name=`NG_ENABLE_DEBUG_INFO!${window.name}`,window.location.reload()}},function(){const t=function(t){const e=mt("$injector");function n(t,e,n){return t[e]||(t[e]=n())}const r=n(t,"angular",Object);return r.$$minErr=r.$$minErr||mt,n(r,"module",(()=>{const t={};return function(r,i,s){let o={};return Y(r,"module"),i&&Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=null),n(t,r,(()=>{if(!i)throw e("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);const t=[],n=[],a=[],c=u("$injector","invoke","push",n),l={_invokeQueue:t,_configBlocks:n,_runBlocks:a,info(t){if(g(t)){if(!v(t))throw ve("aobj","Argument '{0}' must be an object","value");return o=t,this}return o},requires:i,name:r,provider:h("$provide","provider"),factory:h("$provide","factory"),service:h("$provide","service"),value:u("$provide","value"),constant:u("$provide","constant","unshift"),decorator:h("$provide","decorator",n),animation:h("$animateProvider","register"),filter:h("$filterProvider","register"),controller:h("$controllerProvider","register"),directive:h("$compileProvider","directive"),component:h("$compileProvider","component"),config:c,run(t){return a.push(t),this}};return s&&c(s),l;function u(e,n,r,i){return i||(i=t),function(){return i[r||"push"]([e,n,arguments]),l}}function h(e,n,i){return i||(i=t),function(t,s){return s&&x(s)&&(s.$$moduleName=r),i.push([e,n,arguments]),l}}}))}}))}(window),e=t("ng",[],["$provide",function(t){t.provider({$$sanitizeUri:Bs}),t.provider("$compile",Fe).directive({a:Ge,input:In,textarea:In,form:Xe,script:Hn,select:Wn,option:Gn,ngBind:Kn,ngBindHtml:Zn,ngBindTemplate:Jn,ngClass:Qn,ngClassEven:tr,ngClassOdd:Xn,ngCloak:er,ngController:nr,ngForm:tn,ngHide:or,ngIf:ar,ngInclude:cr,ngInit:ur,ngNonBindable:hr,ngRef:pr,ngRepeat:$r,ngShow:sr,ngStyle:mr,ngSwitch:gr,ngSwitchWhen:vr,ngSwitchDefault:yr,ngOptions:Er,ngTransclude:xr,ngModel:dn,ngList:Sr,ngChange:Or,pattern:Ar,ngPattern:Ar,required:Tr,ngRequired:Tr,ngMinlength:Vr,minlength:Vr,ngMaxlength:Rr,maxlength:Rr,ngValue:Un,ngModelOptions:cn}).directive({ngInclude:lr,input:Ln}).directive(_r).directive(Me),t.provider({$anchorScroll:jr,$animate:Hr,$animateCss:Wr,$$animateJs:qr,$$animateQueue:Ur,$$AnimateRunner:Zr,$$animateAsyncRun:Jr,$browser:zr,$cacheFactory:Yr,$controller:Se,$document:Xr,$$isDocumentHidden:ti,$exceptionHandler:ei,$filter:li,$interpolate:yi,$interval:gi,$$intervalFactory:wi,$http:ji,$httpParamSerializer:_i,$httpParamSerializerJQLike:Ti,$httpBackend:Mi,$xhrFactory:Di,$location:Xi,$log:ts,$parse:bs,$rootScope:Ns,$q:ui,$$q:hi,$sce:De,$sceDelegate:je,$$taskTrackerFactory:Ms,$templateCache:Qr,$templateRequest:qs,$timeout:Fs,$$cookieReader:Kr})}]).info({angularVersion:'"NG_VERSION_FULL"'});window.angular.module("ngAnimate",[]).directive("ngAnimateSwap",xo).directive("ngAnimateChildren",bo).factory("$$rAFScheduler",Co).provider("$$animateQueue",ko).provider("$$animateCache",Vo).provider("$$animation",Eo).provider("$animateCss",qo).provider("$$animateCssDriver",Ho).provider("$$animateJs",Fo).provider("$$animateJsDriver",Bo),zo(),window.angular.module("ngAria",["ng"]).provider("$aria",Jo).directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",Go,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",Go,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",Go,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",Go,!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Ko(r,Go))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Ko(e,Go)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Wo))return;const s=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(i);return{post(r,i,o,a){const c=e("tabindex","tabindex",i,!1);function l(){return a.$modelValue}switch(s){case"radio":case"checkbox":n(s,i)&&i.attr("role",s),e("aria-checked","ariaChecked",i,!1)&&r.$watch(l,"radio"===s?function(){i[0].setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){i.attr("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&i.attr("tabindex",0);break;case"range":if(n(s,i)&&i.attr("role","slider"),t.config("ariaValue")){const t=!i.attr("aria-valuemin")&&(Object.prototype.hasOwnProperty.call(o,"min")||Object.prototype.hasOwnProperty.call(o,"ngMin")),e=!i.attr("aria-valuemax")&&(Object.prototype.hasOwnProperty.call(o,"max")||Object.prototype.hasOwnProperty.call(o,"ngMax")),n=!i.attr("aria-valuenow");t&&o.$observe("min",(t=>{i.attr("aria-valuemin",t)})),e&&o.$observe("max",(t=>{i.attr("aria-valuemax",t)})),n&&r.$watch(l,(t=>{i.attr("aria-valuenow",t)}))}c&&i.attr("tabindex",0)}!Object.prototype.hasOwnProperty.call(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",(()=>{i.attr("aria-required",(!!o.required).toString())})),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch((()=>a.$invalid),(t=>{i.attr("aria-invalid",(!!t).toString())}))}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",Go,!1)}]).directive("ngMessages",(()=>({restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Wo)||e.attr("aria-live")||e.attr("aria-live","assertive")}}))).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Wo))return;const i=e(r.ngClick);return function(e,n,r){Ko(n,Go)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on("keydown",(t=>{const n=t.which||t.keyCode;13!==n&&32!==n||(-1!==Go.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Wo)||!t.config("tabindex")||n.attr("tabindex")||Ko(n,Go)||n.attr("tabindex",0)}}]),function(){window.angular.module("ui.router.angular1",[]);const t=window.angular.module("ui.router.init",["ng"]),e=window.angular.module("ui.router.util",["ui.router.init"]),n=window.angular.module("ui.router.state",["ui.router.util","ui.router.angular1"]),r=window.angular.module("ui.router",["ui.router.init","ui.router.state","ui.router.angular1"]);t.provider("$uiRouter",mu),e.provider("$urlService",gu("urlService")),e.provider("$urlMatcherFactory",["$uiRouterProvider",function(){return $u.urlMatcherFactory}]),e.provider("$templateFactory",(function(){return new Eu})),n.provider("$stateRegistry",gu("stateRegistry")).provider("$uiRouterGlobals",gu("globals")).provider("$transitions",gu("transitionService")).provider("$state",["$uiRouterProvider",yu]).provider("$uiViewScroll",Su).factory("$stateParams",["$uiRouter",function(t){return t.globals.params}]).filter("isState",Ou).filter("includedByState",ku).directive("uiSref",Pu).directive("uiSrefActive",Du).directive("uiSrefActiveEq",Du).directive("uiState",ju).directive("uiView",Mu).directive("uiView",Iu).run(["$state",function(){}]),r.factory("$view",(function(){return $u.viewService})).service("$trace",(function(){return Sc})),r.run(wu),e.run(["$urlMatcherFactory",function(){}]),t.run(vu)}()}(),document.addEventListener("DOMContentLoaded",(()=>{we(document)}))}));
|