@futdevpro/ccap 1.1.3 → 1.1.5

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.
Files changed (105) hide show
  1. package/cli/build/_commands/vault-key.d.ts +2 -2
  2. package/cli/build/_commands/vault-key.js +2 -2
  3. package/cli/build/program.js +1 -0
  4. package/cli/build/program.js.map +1 -1
  5. package/client-dist/{browser/chunk-YV5G3XYV.js → chunk-I3EQOLVU.js} +1 -1
  6. package/client-dist/chunk-NCN3S5MX.js +218 -0
  7. package/client-dist/{browser/index.html → index.html} +5 -3
  8. package/client-dist/main-XGKAOHPV.js +5 -0
  9. package/client-dist/styles-B2BQKIR4.css +1 -0
  10. package/package.json +11 -4
  11. package/server/build/package.json +2 -1
  12. package/server/build/src/_collections/contract-templates/context.contract-template.js +1 -1
  13. package/server/build/src/_collections/contract-templates/execution-summary.contract-template.js +1 -1
  14. package/server/build/src/_collections/contract-templates/history-summary.contract-template.js +1 -1
  15. package/server/build/src/_collections/contract-templates/run.contract-template.js +1 -1
  16. package/server/build/src/_collections/contract-templates/session.contract-template.js +1 -1
  17. package/server/build/src/_models/interfaces/ccap-channel-identifier.interface.js +1 -1
  18. package/server/build/src/_modules/agent/agentic-loop.control-service.js +3 -3
  19. package/server/build/src/_modules/agent/agentic-loop.control-service.js.map +1 -1
  20. package/server/build/src/_modules/agent/analyze.control-service.js +1 -1
  21. package/server/build/src/_modules/agent/assemble-conversation.control-service.js +3 -2
  22. package/server/build/src/_modules/agent/assemble-conversation.control-service.js.map +1 -1
  23. package/server/build/src/_modules/agent/compacting/_collections/compacting.const.js +1 -1
  24. package/server/build/src/_modules/agent/compacting/chat-history-compacting.control-service.js +1 -1
  25. package/server/build/src/_modules/agent/compacting/context-compacting.control-service.js +1 -1
  26. package/server/build/src/_modules/agent/compacting/conversation-full-active-compacting.control-service.js +2 -2
  27. package/server/build/src/_modules/agent/compacting/conversation-full-active-compacting.control-service.js.map +1 -1
  28. package/server/build/src/_modules/agent/compacting/execution-history-compacting.control-service.js +1 -1
  29. package/server/build/src/_modules/agent/compacting/soul-compacting.control-service.js +2 -2
  30. package/server/build/src/_modules/agent/compacting/soul-compacting.control-service.js.map +1 -1
  31. package/server/build/src/_modules/agent/compacting/tool-result-compacting.control-service.js +2 -2
  32. package/server/build/src/_modules/agent/compacting/tool-result-compacting.control-service.js.map +1 -1
  33. package/server/build/src/_modules/agent/execution.control-service.js +2 -2
  34. package/server/build/src/_modules/agent/execution.control-service.js.map +1 -1
  35. package/server/build/src/_modules/agent/history/chat-history.control-service.js +1 -1
  36. package/server/build/src/_modules/agent/history/execution-history.control-service.js +2 -2
  37. package/server/build/src/_modules/agent/history/execution-history.control-service.js.map +1 -1
  38. package/server/build/src/_modules/agent/new-user-message-handling.control-service.js +3 -3
  39. package/server/build/src/_modules/agent/new-user-message-handling.control-service.js.map +1 -1
  40. package/server/build/src/_modules/agent/run-finalization.control-service.js +1 -1
  41. package/server/build/src/_modules/agent/run-flow.control-service.js +6 -6
  42. package/server/build/src/_modules/agent/run-flow.control-service.js.map +1 -1
  43. package/server/build/src/_modules/agent/run-initialization.control-service.js +2 -2
  44. package/server/build/src/_modules/agent/run-initialization.control-service.js.map +1 -1
  45. package/server/build/src/_modules/agent/run.data-service.js +2 -2
  46. package/server/build/src/_modules/agent/run.data-service.js.map +1 -1
  47. package/server/build/src/_modules/agent/session-mutex.control-service.js +2 -2
  48. package/server/build/src/_modules/agent/session-mutex.control-service.js.map +1 -1
  49. package/server/build/src/_modules/agent/tool-calling.control-service.js +3 -3
  50. package/server/build/src/_modules/agent/tool-calling.control-service.js.map +1 -1
  51. package/server/build/src/_modules/context/context-builder.util-service.js +1 -1
  52. package/server/build/src/_modules/context/context-management.control-service.js +13 -13
  53. package/server/build/src/_modules/context/context-management.control-service.js.map +1 -1
  54. package/server/build/src/_modules/context/knowledge.data-service.js +2 -2
  55. package/server/build/src/_modules/context/knowledge.data-service.js.map +1 -1
  56. package/server/build/src/_modules/context/session-info-context.data-service.js +1 -1
  57. package/server/build/src/_modules/error-handling/error-collector.util-service.js +1 -1
  58. package/server/build/src/_modules/error-handling/error-table.data-service.js +1 -1
  59. package/server/build/src/_modules/llm/llm.control-service.js +3 -3
  60. package/server/build/src/_modules/llm/llm.control-service.js.map +1 -1
  61. package/server/build/src/_modules/llm/providers/custom-local-ai-llm.control-service.js +2 -2
  62. package/server/build/src/_modules/llm/providers/custom-local-ai-llm.control-service.js.map +1 -1
  63. package/server/build/src/_modules/llm/providers/openai-llm.control-service.js +2 -2
  64. package/server/build/src/_modules/llm/providers/openai-llm.control-service.js.map +1 -1
  65. package/server/build/src/_modules/llm/system-prompt.data-service.js +1 -1
  66. package/server/build/src/_modules/messaging/messaging-router.control-service.js +10 -8
  67. package/server/build/src/_modules/messaging/messaging-router.control-service.js.map +1 -1
  68. package/server/build/src/_modules/messaging/providers/ccap-client-messaging.control-service.js +4 -4
  69. package/server/build/src/_modules/messaging/providers/ccap-client-messaging.control-service.js.map +1 -1
  70. package/server/build/src/_modules/messaging/providers/ccap-client-socket-server.service.js +7 -2
  71. package/server/build/src/_modules/messaging/providers/ccap-client-socket-server.service.js.map +1 -1
  72. package/server/build/src/_modules/messaging/providers/cli-messaging.control-service.js +2 -2
  73. package/server/build/src/_modules/messaging/providers/cli-messaging.control-service.js.map +1 -1
  74. package/server/build/src/_modules/messaging/providers/discord-messaging.control-service.js +2 -2
  75. package/server/build/src/_modules/messaging/providers/discord-messaging.control-service.js.map +1 -1
  76. package/server/build/src/_modules/monitoring/monitoring.data-service.js +1 -1
  77. package/server/build/src/_modules/monitoring/monitoring.data-service.js.map +1 -1
  78. package/server/build/src/_modules/secrets-vault/secrets-vault.data-service.js +2 -2
  79. package/server/build/src/_modules/secrets-vault/secrets-vault.data-service.js.map +1 -1
  80. package/server/build/src/_modules/session/conversation.data-service.js +1 -1
  81. package/server/build/src/_modules/session/session.data-service.js +1 -1
  82. package/server/build/src/_modules/tools/_collections/tools.const.js +1 -1
  83. package/server/build/src/_modules/tools/fixed-tools/control/context-handling.tool.js +1 -1
  84. package/server/build/src/_modules/tools/fixed-tools/exec/exec.tool.js +1 -1
  85. package/server/build/src/_modules/tools/fixed-tools/file-handling/file-handling.tool.js +1 -1
  86. package/server/build/src/_modules/tools/fixed-tools/net/net.tool.js +1 -1
  87. package/server/build/src/_modules/tools/fixed-tools/tool-handling/tool-handling.tool.js +1 -1
  88. package/server/build/src/_modules/tools/tool-execution.control-service.js +1 -1
  89. package/server/build/src/_modules/tools/tool-execution.control-service.js.map +1 -1
  90. package/server/build/src/_modules/tools/tool-registry.control-service.js +5 -5
  91. package/server/build/src/_modules/tools/tool-registry.control-service.js.map +1 -1
  92. package/server/build/src/_modules/tools/tools-in-context.util-service.js +1 -1
  93. package/server/build/src/_routes/client-static/client-static.controller.js +53 -5
  94. package/server/build/src/_routes/client-static/client-static.controller.js.map +1 -1
  95. package/server/build/src/_routes/root-redirect/root-redirect.controller.js +30 -0
  96. package/server/build/src/_routes/root-redirect/root-redirect.controller.js.map +1 -0
  97. package/server/build/src/_routes/server/server-status/server-status.controller.js +8 -1
  98. package/server/build/src/_routes/server/server-status/server-status.controller.js.map +1 -1
  99. package/server/build/src/app.server.js +20 -9
  100. package/server/build/src/app.server.js.map +1 -1
  101. package/client-dist/3rdpartylicenses.txt +0 -569
  102. package/client-dist/browser/chunk-FMFEMJE7.js +0 -218
  103. package/client-dist/browser/main-ZRSMRE3G.js +0 -2
  104. package/client-dist/browser/styles-TSK27CYC.css +0 -1
  105. /package/client-dist/{browser/polyfills-HGDOEU5L.js → polyfills-HGDOEU5L.js} +0 -0
@@ -0,0 +1,218 @@
1
+ var Kx=Object.create;var Ko=Object.defineProperty,Xx=Object.defineProperties,e1=Object.getOwnPropertyDescriptor,t1=Object.getOwnPropertyDescriptors,n1=Object.getOwnPropertyNames,Sb=Object.getOwnPropertySymbols,r1=Object.getPrototypeOf,Ob=Object.prototype.hasOwnProperty,i1=Object.prototype.propertyIsEnumerable;var Ib=(e,t,n)=>t in e?Ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||={})Ob.call(t,n)&&Ib(e,n,t[n]);if(Sb)for(var n of Sb(t))i1.call(t,n)&&Ib(e,n,t[n]);return e},H=(e,t)=>Xx(e,t1(t));var o1=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s1=(e,t)=>{for(var n in t)Ko(e,n,{get:t[n],enumerable:!0})},Ab=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of n1(t))!Ob.call(e,i)&&i!==n&&Ko(e,i,{get:()=>t[i],enumerable:!(r=e1(t,i))||r.enumerable});return e};var EJ=(e,t,n)=>(n=e!=null?Kx(r1(e)):{},Ab(t||!e||!e.__esModule?Ko(n,"default",{value:e,enumerable:!0}):n,e)),Tb=e=>Ab(Ko({},"__esModule",{value:!0}),e);var we=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});var Km={};s1(Km,{__addDisposableResource:()=>DM,__assign:()=>Nc,__asyncDelegator:()=>hM,__asyncGenerator:()=>fM,__asyncValues:()=>pM,__await:()=>ji,__awaiter:()=>sM,__classPrivateFieldGet:()=>yM,__classPrivateFieldIn:()=>bM,__classPrivateFieldSet:()=>_M,__createBinding:()=>Fc,__decorate:()=>rM,__disposeResources:()=>wM,__esDecorate:()=>Kj,__exportStar:()=>uM,__extends:()=>tM,__generator:()=>aM,__importDefault:()=>vM,__importStar:()=>mM,__makeTemplateObject:()=>gM,__metadata:()=>oM,__param:()=>iM,__propKey:()=>eL,__read:()=>Jm,__rest:()=>nM,__runInitializers:()=>Xj,__setFunctionName:()=>tL,__spread:()=>cM,__spreadArray:()=>dM,__spreadArrays:()=>lM,__values:()=>Pc,default:()=>iL});function tM(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function nM(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function rM(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function iM(e,t){return function(n,r){t(n,r,e)}}function Kj(e,t,n,r,i,o){function s(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,p=!1,g=n.length-1;g>=0;g--){var m={};for(var v in r)m[v]=v==="access"?{}:r[v];for(var v in r.access)m.access[v]=r.access[v];m.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(_||null))};var y=(0,n[g])(a==="accessor"?{get:l.get,set:l.set}:l[u],m);if(a==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(d=s(y.get))&&(l.get=d),(d=s(y.set))&&(l.set=d),(d=s(y.init))&&i.unshift(d)}else(d=s(y))&&(a==="field"?i.unshift(d):l[u]=d)}c&&Object.defineProperty(c,r.name,l),p=!0}function Xj(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function eL(e){return typeof e=="symbol"?e:"".concat(e)}function tL(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function oM(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function sM(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function aM(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function uM(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Fc(t,e,n)}function Pc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Jm(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function cM(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Jm(arguments[t]));return e}function lM(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}function dM(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ji(e){return this instanceof ji?(this.v=e,this):new ji(e)}function fM(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(g){return function(m){return Promise.resolve(m).then(g,d)}}function a(g,m){r[g]&&(i[g]=function(v){return new Promise(function(y,_){o.push([g,v,y,_])>1||u(g,v)})},m&&(i[g]=m(i[g])))}function u(g,m){try{c(r[g](m))}catch(v){p(o[0][3],v)}}function c(g){g.value instanceof ji?Promise.resolve(g.value.v).then(l,d):p(o[0][2],g)}function l(g){u("next",g)}function d(g){u("throw",g)}function p(g,m){g(m),o.shift(),o.length&&u(o[0][0],o[0][1])}}function hM(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:ji(e[i](s)),done:!1}:o?o(s):s}:o}}function pM(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Pc=="function"?Pc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}function gM(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mM(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Fc(t,e,n);return nL(t,e),t}function vM(e){return e&&e.__esModule?e:{default:e}}function yM(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function _M(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function bM(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function DM(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function wM(e){function t(r){e.error=e.hasError?new rL(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(o){return t(o),n()})}catch(o){t(o)}}if(e.hasError)throw e.error}return n()}var Qm,Nc,Fc,nL,rL,iL,Xm=o1(()=>{"use strict";Qm=function(e,t){return Qm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Qm(e,t)};Nc=function(){return Nc=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Nc.apply(this,arguments)};Fc=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};nL=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};rL=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};iL={__extends:tM,__assign:Nc,__rest:nM,__decorate:rM,__param:iM,__metadata:oM,__awaiter:sM,__generator:aM,__createBinding:Fc,__exportStar:uM,__values:Pc,__read:Jm,__spread:cM,__spreadArrays:lM,__spreadArray:dM,__await:ji,__asyncGenerator:fM,__asyncDelegator:hM,__asyncValues:pM,__makeTemplateObject:gM,__importStar:mM,__importDefault:vM,__classPrivateFieldGet:yM,__classPrivateFieldSet:_M,__classPrivateFieldIn:bM,__addDisposableResource:DM,__disposeResources:wM}});var ev=h(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.yottabyte=ie.zettabyte=ie.exabyte=ie.petabyte=ie.terabyte=ie.gigabyte=ie.megabyte=ie.kilobyte=ie.byte=void 0;ie.byte=8;ie.kilobyte=1024;ie.megabyte=ie.kilobyte*1024;ie.gigabyte=ie.megabyte*1024;ie.terabyte=ie.gigabyte*1024;ie.petabyte=ie.terabyte*1024;ie.exabyte=ie.petabyte*1024;ie.zettabyte=ie.exabyte*1024;ie.yottabyte=ie.zettabyte*1024});var tv=h(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.DyFM_error_defaults=void 0;Rc.DyFM_error_defaults={errorCode:"NO-ERROR-CODE",message:"NO-ERROR-MESSAGE",userMessage:"MISSING-ERROR-USER-MESSAGE",issuer:"MISSING-ISSUER",issuerService:"MISSING-ISSUER-SERVICE",issuerSystem:"MISSING-ISSUER-SYSTEM",systemVersion:"MISSING-SYSTEM-VERSION"}});var EM=h(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.DyFM_global_settings=void 0;kc.DyFM_global_settings={systemShortCodeName:"DyFM_UNKNOWN_SYSTEM",baseUrl:"/api",log_settings:{}}});var MM=h(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.trillion=Te.billion=Te.million=Te.kilo=void 0;Te.kilo=1e3;Te.million=Te.kilo*Te.kilo;Te.billion=Te.million*Te.kilo;Te.trillion=Te.billion*Te.kilo});var Ps=h(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.year=ce.month=ce.week=ce.day=ce.hour=ce.minute=ce.second=void 0;ce.second=1e3;ce.minute=ce.second*60;ce.hour=ce.minute*60;ce.day=ce.hour*24;ce.week=ce.day*7;ce.month=ce.day*30.4368499;ce.year=ce.day*365.242199});var Fs=h(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.DyFM_allLogStyles=Li.DyFM_LogStyle=void 0;var nv=function(e){return e.reset="\x1B[0m",e.bold="\x1B[1m",e.dim="\x1B[2m",e.underline="\x1B[4m",e.blink="\x1B[5m",e.reverse="\x1B[7m",e.hidden="\x1B[8m",e.black="\x1B[30m",e.red="\x1B[31m",e.green="\x1B[32m",e.orange="\x1B[38;5;208m",e.brightOrange="\x1B[38;5;214m",e.yellow="\x1B[33m",e.blue="\x1B[34m",e.magenta="\x1B[35m",e.cyan="\x1B[36m",e.white="\x1B[37m",e.BgBlack="\x1B[40m",e.BgRed="\x1B[41m",e.BgGreen="\x1B[42m",e.BgYellow="\x1B[43m",e.BgBlue="\x1B[44m",e.BgMagenta="\x1B[45m",e.BgCyan="\x1B[46m",e.BgWhite="\x1B[47m",e}(nv||(Li.DyFM_LogStyle=nv={}));Li.DyFM_allLogStyles=Object.values(nv)});var Ut=h(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.DyFM_Log=void 0;var le=Fs(),rv=class e{static infoStyle=le.DyFM_LogStyle.cyan;static errorStyle=le.DyFM_LogStyle.red;static warnStyle=le.DyFM_LogStyle.brightOrange;static successStyle=le.DyFM_LogStyle.green;static highlightedStyle=`${le.DyFM_LogStyle.white}${le.DyFM_LogStyle.bold}`;static boldStyle=le.DyFM_LogStyle.bold;static h_test="|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||";static h_before="\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";static h_after="/////////////////////////////////////////////////////////////////////////////";static h_small="-----------------------------------------------------------------------------";static setStyle(t){let n="";t.forEach(r=>{n+=r}),console.log(n)}static resetStyle(){console.log(le.DyFM_LogStyle.reset)}static addStyle(t,n,r){let i="";return n.forEach(o=>{i+=o}),i+=t,r||(i+=le.DyFM_LogStyle.reset),i}static success(t,...n){0<n.length?console.log(`${this.successStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.log(`${this.successStyle}${t}${le.DyFM_LogStyle.reset}`)}static logSuccess=this.success;static error(t,...n){0<n.length?console.error(`${this.errorStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.error(`${this.errorStyle}${t}${le.DyFM_LogStyle.reset}`)}static logError=this.error;static warn(t,...n){0<n.length?console.warn(`${this.warnStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.warn(`${this.warnStyle}${t}${le.DyFM_LogStyle.reset}`)}static warning=this.warn;static logWarning=this.warn;static info(t,...n){0<n.length?console.info(`${this.infoStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.info(`${this.infoStyle}${t}${le.DyFM_LogStyle.reset}`)}static log(t,...n){console.log(t,...n)}static getHighlighted(t,...n){return`${this.highlightedStyle}${t}${le.DyFM_LogStyle.reset}`}static highlighted(t,...n){0<n.length?console.log(`${this.highlightedStyle}${t}`,...n,le.DyFM_LogStyle.reset):console.log(`${this.highlightedStyle}${t}${le.DyFM_LogStyle.reset}`)}static smallLog(t,...n){console.log(this.h_small+`
2
+ `+this.asfel(t,2),...this.asfesop(n,2),`
3
+ `+this.h_small)}static S_log=e.smallLog;static testLog(t,...n){this.log(`
4
+ `+this.h_test+`
5
+
6
+ `+this.asfel(t,4),...this.asfesop(n,4),`
7
+
8
+ `+this.h_test+`
9
+ `)}static test=e.testLog;static T_log=e.testLog;static highlightedLog(t,...n){this.log(`
10
+
11
+ `+this.h_before+`
12
+ `+this.h_before+`
13
+ `+this.h_before+`
14
+
15
+ `+this.asfel(t,4),...this.asfesop(n,4),`
16
+
17
+ `+this.h_after+`
18
+ `+this.h_after+`
19
+ `+this.h_after+`
20
+
21
+ `)}static H_log=e.highlightedLog;static smallInfo(t,...n){this.info(this.h_small+`
22
+ `+this.asfel(t,2),...this.asfesop(n,2),`
23
+ `+this.infoStyle+this.h_small)}static S_info=e.smallInfo;static testInfo(t,...n){this.info(`
24
+ `+this.h_test+`
25
+
26
+ `+this.asfel(t,4),...this.asfesop(n,4),`
27
+
28
+ `+this.infoStyle+this.h_test+`
29
+ `)}static T_info=e.testInfo;static highlightedInfo(t,...n){this.info(`
30
+
31
+ `+this.h_before+`
32
+ `+this.h_before+`
33
+ `+this.h_before+`
34
+
35
+ `+this.asfel(t,4),...this.asfesop(n,4),`
36
+
37
+ `+this.infoStyle+this.h_after+`
38
+ `+this.h_after+`
39
+ `+this.h_after+`
40
+
41
+ `)}static H_info=e.highlightedInfo;static smallError(t,...n){this.error(this.h_small+`
42
+ `+this.asfel(t,2),...this.asfesop(n,2),`
43
+ `+this.errorStyle+this.h_small)}static S_error=e.smallError;static testError(t,...n){this.error(`
44
+ `+this.h_test+`
45
+
46
+ `+this.asfel(t,4),...this.asfesop(n,4),`
47
+
48
+ `+this.errorStyle+this.h_test+`
49
+ `)}static T_error=e.testError;static highlightedError(t,...n){this.error(`
50
+
51
+ `+this.h_before+`
52
+ `+this.h_before+`
53
+ `+this.h_before+`
54
+
55
+ `+this.asfel(t,4),...this.asfesop(n,4),`
56
+
57
+ `+this.errorStyle+this.h_after+`
58
+ `+this.h_after+`
59
+ `+this.h_after+`
60
+
61
+ `)}static H_error=e.highlightedError;static smallWarn(t,...n){this.warn(this.h_small+`
62
+ `+this.asfel(t,2),...this.asfesop(n,2),`
63
+ `+this.warnStyle+this.h_small)}static S_warn=e.smallWarn;static testWarn(t,...n){this.warn(`
64
+ `+this.h_test+`
65
+
66
+ `+this.asfel(t,4),...this.asfesop(n,4),`
67
+
68
+ `+this.warnStyle+this.h_test+`
69
+ `)}static T_warn=e.testWarn;static highlightedWarn(t,...n){this.warn(`
70
+
71
+ `+this.h_before+`
72
+ `+this.h_before+`
73
+ `+this.h_before+`
74
+
75
+ `+this.asfel(t,4),...this.asfesop(n,4),`
76
+
77
+ `+this.warnStyle+this.h_after+`
78
+ `+this.h_after+`
79
+ `+this.h_after+`
80
+
81
+ `)}static H_warn=e.highlightedWarn;static smallSuccess(t,...n){this.success(this.h_small+`
82
+ `+this.asfel(t,2),...this.asfesop(n,2),`
83
+ `+this.successStyle+this.h_small)}static S_success=e.smallSuccess;static testSuccess(t,...n){this.success(`
84
+ `+this.h_test+`
85
+
86
+ `+this.asfel(t,4),...this.asfesop(n,4),`
87
+
88
+ `+this.successStyle+this.h_test+`
89
+ `)}static T_success=e.testSuccess;static highlightedSuccess(t,...n){this.success(`
90
+
91
+ `+this.h_before+`
92
+ `+this.h_before+`
93
+ `+this.h_before+`
94
+
95
+ `+this.asfel(t,4),...this.asfesop(n,4),`
96
+
97
+ `+this.successStyle+this.h_after+`
98
+ `+this.h_after+`
99
+ `+this.h_after+`
100
+
101
+ `)}static H_success=e.highlightedSuccess;static removeLogStyles(t){for(let n of le.DyFM_allLogStyles)t=t.replaceAll(n,"");return t}static silenceLogs(){console.log=()=>{}}static silenceNonErrorLogs(){console.log=()=>{},console.info=()=>{},console.warn=()=>{}}static silenceConsole(){console.log=()=>{},console.info=()=>{},console.warn=()=>{},console.error=()=>{}}static addBreaksAndTabsToStringParams(t){return t.map(n=>typeof n=="string"?`
102
+ `+n:n)}static addSpacesForEachLine(t,n){return t.replaceAll(`
103
+ `,`
104
+ `+" ".repeat(n))}static asfel=this.addSpacesForEachLine;static addSpacesForEachStringOptionalParam(t,n){return t.map(r=>typeof r=="string"?this.addSpacesForEachLine(r,n):r)}static asfesop=this.addSpacesForEachStringOptionalParam};jc.DyFM_Log=rv});var CM=h(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.DyFM_Array=void 0;var oe=Fs(),se=Ut(),iv=class{static asyncForEach(t,n){return we(this,null,function*(){if(!t){console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEach: List is required",[oe.DyFM_LogStyle.red]));return}for(let r=0;r<t.length;r++)yield n(t[r],r,t)})}static asyncForEachReturnToOne(t,n,r){return we(this,null,function*(){if(!n)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEachReturnToOne: List is required",[oe.DyFM_LogStyle.red])),t;let i=t;for(let o=0;o<n.length;o++)i=yield r(n[o],i,o,n);return i})}static asyncForEachReturnToAll(t,n){return we(this,null,function*(){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEachReturnToAll: List is required",[oe.DyFM_LogStyle.red])),[];let r=[];for(let i=0;i<t.length;i++)r.push(yield n(t[i],i,t));return r})}static asyncForEachAllAtOnce(t,n){return we(this,null,function*(){return t?yield Promise.all(t.map(n)):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncForEachAllAtOnce: List is required",[oe.DyFM_LogStyle.red])),[])})}static asyncFilter(t,n){return we(this,null,function*(){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncFilter: List is required",[oe.DyFM_LogStyle.red])),[];let r=[];for(let i=0;i<t.length;i++)(yield n(t[i],i,t))&&r.push(t[i]);return r})}static asyncMap(t,n){return we(this,null,function*(){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.asyncMap: List is required",[oe.DyFM_LogStyle.red])),[];let r=[];for(let i=0;i<t.length;i++)r.push(yield n(t[i],i,t));return r})}static last(t){return t?t.length?t[t.length-1]:null:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.last: Array is required",[oe.DyFM_LogStyle.red])),null)}static isLast(t,n){return n?n.indexOf(t)===n.length-1:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.isLast: Array is required",[oe.DyFM_LogStyle.red])),!1)}static isLastIndex(t,n){return n?t===n.length-1:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.isLastIndex: Array is required",[oe.DyFM_LogStyle.red])),!1)}static isFirst(t,n){return n?n.indexOf(t)===0:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.isFirst: Array is required",[oe.DyFM_LogStyle.red])),!1)}static lastCharacter(t){return t?t.length?t[t.length-1]:null:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.lastCharacter: String is required",[oe.DyFM_LogStyle.red])),null)}static first(t){return t?t.length?t[0]:null:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.first: Array is required",[oe.DyFM_LogStyle.red])),null)}static remove(t,n){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.remove: Array is required",[oe.DyFM_LogStyle.red])),[];let r=t.indexOf(n);return-1<r&&t.splice(r,1),t}static findNRemove(t,n){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.findNRemove: Array is required",[oe.DyFM_LogStyle.red])),[];let r=t.findIndex(n);return-1<r&&t.splice(r,1),t}static shuffle(t){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.shuffle: Array is required",[oe.DyFM_LogStyle.red])),[];let n=t.length,r;for(;0<n;)n--,r=Math.floor(Math.random()*(t.length-1)),this.swap(t,n,r);return t}static page(t,n,r){return t?t.slice(n*r,(n+1)*r):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.page: Array is required",[oe.DyFM_LogStyle.red])),[])}static paged(t,n,r){return t?{pageIndex:n,pageSize:r,total:t.length,totalPageCount:Math.ceil(t.length/r),items:this.page(t,n,r)}:(console.trace(se.DyFM_Log.addStyle("DyFM_Array.paged: Array is required",[oe.DyFM_LogStyle.red])),{pageIndex:0,pageSize:0,total:0,totalPageCount:0,items:[]})}static swap(t,n,r){return t?([t[n],t[r]]=[t[r],t[n]],t):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.swap: Array is required",[oe.DyFM_LogStyle.red])),[])}static stringListHasMultiplications(t){return t?t.some((n,r)=>t.findIndex(i=>i===n)!==r):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.stringListHasMultiplications: String list is required",[oe.DyFM_LogStyle.red])),!1)}static filterStringMultiplications(t){return t?t.filter((n,r)=>t.findIndex(i=>i===n)!==r):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.filterStringMultiplications: String list is required",[oe.DyFM_LogStyle.red])),[])}static gatherStringMultiplications(t){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.gatherStringMultiplications: String list is required",[oe.DyFM_LogStyle.red])),[];let n=[];return t.forEach((r,i)=>{if(n.find(s=>s.includes(r)))return;let o=t.filter(s=>s===r);o.length>1&&n.push(o)}),n}static haveMultiplications(t,n="_id"){return t?t.some((r,i)=>t.findIndex(o=>o[n]===r[n])!==i):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.haveMultiplications: Data list is required",[oe.DyFM_LogStyle.red])),!1)}static filterMultiplications(t,n="_id"){return t?t.filter((r,i)=>t.findIndex(o=>o[n]===r[n])!==i):(console.trace(se.DyFM_Log.addStyle("DyFM_Array.filterMultiplications: Data list is required",[oe.DyFM_LogStyle.red])),[])}static gatherMultiplications(t,n="_id"){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.gatherMultiplications: Data list is required",[oe.DyFM_LogStyle.red])),[];let r=[];return t.forEach((i,o)=>{if(r.find(a=>a.includes(i)))return;let s=t.filter(a=>a[n]===i[n]);s.length>1&&r.push(s)}),r}static findFromEnd(t,n){if(!t)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.findFromEnd: Array is required",[oe.DyFM_LogStyle.red])),null;for(let r=t.length-1;r>=0;r--)if(n(t[r],r,t))return t[r];return null}static getSortForTrueFn(t){return(n,r)=>this.sortForTrue(n,r,t)}static sortForTrue(t,n,r){if(!r)return console.trace(se.DyFM_Log.addStyle("DyFM_Array.sortForTrue: Check is required",[oe.DyFM_LogStyle.red])),0;let i=r(t);return i===r(n)?0:i?-1:1}};Lc.DyFM_Array=iv});var ov=h(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.DyFM_Month=void 0;var SM=function(e){return e.january="january",e.february="february",e.march="march",e.april="april",e.may="may",e.june="june",e.july="july",e.august="august",e.september="september",e.october="october",e.november="november",e.december="december",e}(SM||(Vc.DyFM_Month=SM={}))});var sv=h(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.DyFM_allDaysOfWeekStupid=St.DyFM_allDaysOfWeekAmericanStyle=St.DyFM_allDaysOfWeek=St.DyFM_DayOfWeek=void 0;var $t=function(e){return e.monday="monday",e.tuesday="tuesday",e.wednesday="wednesday",e.thursday="thursday",e.friday="friday",e.saturday="saturday",e.sunday="sunday",e}($t||(St.DyFM_DayOfWeek=$t={}));St.DyFM_allDaysOfWeek=Object.values($t);St.DyFM_allDaysOfWeekAmericanStyle=[$t.sunday,$t.monday,$t.tuesday,$t.wednesday,$t.thursday,$t.friday,$t.saturday];St.DyFM_allDaysOfWeekStupid=St.DyFM_allDaysOfWeekAmericanStyle});var av=h(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.DyFM_RelativeDate=void 0;var IM=function(e){return e.lastDay="lastDay",e.lastWeek="lastWeek",e.lastMonth="lastMonth",e.lastYear="lastYear",e.last10Years="last10Years",e.allTime="allTime",e}(IM||(qc.DyFM_RelativeDate=IM={}))});var Rs=h(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.DyFM_Math=void 0;var uv=class{static between(t,n,r){return n<t&&t<r}static around(t,n,r){return this.between(t,n-r,n+r)}static toFixed=this.round;static round(t,n=2){if(0<=n)return Number(t.toFixed(n));{let r=Math.pow(10,-n);return Math.round(t/r)*r}}static numberWithSpaces(t){return t?.toString()?.replace(/\B(?=(\d{3})+(?!\d))/g," ")}static numberWithShorters(t){return t<1e3?t?.toString():t<1e6?(t/1e3).toFixed(1)+"k":t<1e9?(t/1e6).toFixed(2)+"M":(t/1e9).toFixed(3)+"B"}static numberWithShortersAndSpaces(t){return this.numberWithShorters(t)?.replace(/\B(?=(\d{3})+(?!\d))/g," ")}static floatingNumberWithSpaces(t){let n=t?.toString()?.split(".");return n[0]=n?.[0]?.replace(/\B(?=(\d{3})+(?!\d))/g," "),n?.join(".")}static decimals(t,n=","){let r=t?.toString()?.split(".");return r[0]=r?.[0]?.replace(/\B(?=(\d{3})+(?!\d))/g,n),r?.join(".")}};Uc.DyFM_Math=uv});var dv=h($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.DyFM_Time=void 0;var A=Ps(),rt=ov(),cv=sv(),Vi=av(),Ye=Rs(),lv=class{static second=A.second;static minute=A.minute;static hour=A.hour;static day=A.day;static week=A.week;static month=A.month;static year=A.year;static getAge(t){return this.getYear(+new Date-+new Date(t))}static getYear(t){return typeof t=="string"&&(t=new Date(t)),+t/A.year}static getHour(t){return typeof t=="string"&&(t=new Date(t)),+t/A.hour}static getDateByAge(t){return new Date(+new Date-A.year*t)}static getDateByRelativeDate(t,n){switch(t){case Vi.DyFM_RelativeDate.lastDay:return this.oneDayAgo(n);case Vi.DyFM_RelativeDate.lastWeek:return this.oneWeekAgo(n);case Vi.DyFM_RelativeDate.lastMonth:return this.oneMonthAgo(n);case Vi.DyFM_RelativeDate.lastYear:return this.oneYearAgo(n);case Vi.DyFM_RelativeDate.last10Years:return this.tenYearsAgo(n);case Vi.DyFM_RelativeDate.allTime:return new Date(0);default:return new Date(0)}}static oneHourAgo(t=new Date){return new Date(+t-A.hour)}static oneDayAgo(t=new Date){return new Date(+t-A.day)}static oneWeekAgo(t=new Date){return new Date(+t-A.week)}static oneMonthAgo(t=new Date){return new Date(+t-A.month)}static oneYearAgo(t=new Date){return new Date(+t-A.year)}static tenYearsAgo(t=new Date){return new Date(+t-10*A.year)}static getTodayOfWeek(){return cv.DyFM_DayOfWeek[new Date().toLocaleString("en-us",{weekday:"long"}).toLocaleLowerCase()]}static getDaysOfWeekFromToday(){let t=this.getTodayOfWeek(),n=Object.values(cv.DyFM_DayOfWeek),r=n.indexOf(t);return n.slice(r).concat(n.slice(0,r))}static getDaysOfWeekToToday(){let t=this.getTodayOfWeek(),n=Object.values(cv.DyFM_DayOfWeek),r=n.indexOf(t);return n.slice(0,r).reverse().concat(n.slice(r).reverse())}static getCurrentMonth(){return rt.DyFM_Month[new Date().toLocaleString("en-us",{month:"long"}).toLocaleLowerCase()]}static getMonthLength(t,n){switch(t){case rt.DyFM_Month.january:case rt.DyFM_Month.march:case rt.DyFM_Month.may:case rt.DyFM_Month.june:case rt.DyFM_Month.august:case rt.DyFM_Month.october:return 31;case rt.DyFM_Month.april:case rt.DyFM_Month.july:case rt.DyFM_Month.september:case rt.DyFM_Month.november:case rt.DyFM_Month.december:return 30;case rt.DyFM_Month.february:return this.isLeapYear(n??new Date().getFullYear())?29:28}}static isLeapYear(t){return t%4===0}static getDurationString(t,n){if(t===0)return"0ms";if(!t)return"N/A";if(t<A.second/10)return`${t}ms`;if(t<A.second)return`${Ye.DyFM_Math.round(t/A.second,2)}s`;if(t<A.minute){let o=Ye.DyFM_Math.round(t/A.second,0);if(n){let s=t%A.second;return`${o}s ${s}ms`}return`${o}s`}if(t<A.hour){let o=Ye.DyFM_Math.round(t/A.minute,0),s=Ye.DyFM_Math.round(t%A.minute/A.second,0);return`${o}m ${s}s`}if(t<A.day){let o=Ye.DyFM_Math.round(t/A.hour,0),s=Ye.DyFM_Math.round(t%A.hour/A.minute,0);return`${o}h ${s}m`}if(t<A.week){let o=Ye.DyFM_Math.round(t/A.day,0),s=Ye.DyFM_Math.round(t%A.day/A.hour,0);return`${o}d ${s}h`}if(t<A.month){let o=Ye.DyFM_Math.round(t/A.week,0),s=Ye.DyFM_Math.round(t%A.week/A.day,0);return`${o}w ${s}d`}if(t<A.year){let o=Ye.DyFM_Math.round(t/A.month,0),s=Ye.DyFM_Math.round(t%A.month/A.week,0);return`${o}m ${s}w`}let r=Ye.DyFM_Math.round(t/A.year,0),i=Ye.DyFM_Math.round(t%A.year/A.month,0);return`${r}y ${i}m`}static getTimeInShortestString(t){return t%A.year===0?`${t/A.year}y`:t%A.month===0?`${t/A.month}m`:t%A.week===0?`${t/A.week}w`:t%A.day===0?`${t/A.day}d`:t%A.hour===0?`${t/A.hour}h`:t%A.minute===0?`${t/A.minute}m`:t%A.second===0?`${t/A.second}s`:`${t}ms`}};$c.DyFM_Time=lv});var pv=h(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DyFM_Async=void 0;var qe=Ps(),OM=dv(),fv=Ut(),hv=class e{static wait(t){return new Promise(n=>setTimeout(n,t))}static sleep=this.wait;static delay=this.wait;static waitUntil(t,n=100,r=1e4){let i=new Error("waitUntil timeout");return new Promise((o,s)=>{let a=Date.now(),u=setInterval(()=>{t()?(clearInterval(u),o()):Date.now()-a>r&&(clearInterval(u),s(i))},n)})}static waitUntilAsync(t,n=100,r=1e4){let i=new Error("waitUntilAsync timeout");return new Promise((o,s)=>{let a=Date.now(),u=setInterval(()=>we(this,null,function*(){(yield t())?(clearInterval(u),o()):Date.now()-a>r&&(clearInterval(u),s(i))}),n)})}static takeUntil(t,n){return new Promise(r=>{let i=t.subscribe(o=>{n(o)&&(i.unsubscribe(),r(o))})})}static waitWithCountdownLogging(t,n="Countdown"){return we(this,null,function*(){let r=Date.now(),i=r+t,s=(c=>{let l=c/qe.second,d=l/60,p=d/60,g=p/24;return g/7>=4?qe.week:g>=7?qe.day:g>=3?12*qe.hour:g>=1?6*qe.hour:p>=12?3*qe.hour:p>=6?qe.hour:p>=3?30*qe.minute:p>=1?10*qe.minute:d>=30?5*qe.minute:d>=10?qe.minute:d>=5?30*qe.second:d>=1?10*qe.second:l>=30?5*qe.second:qe.second})(t),a=r,u=c=>OM.DyFM_Time.getTimeInShortestString(c);for(fv.DyFM_Log.info(`\u23F3 ${n} started - Total duration: ${u(t)}`);Date.now()<i;){let c=Date.now(),l=i-c;if(c-a>=s){let d=u(l);fv.DyFM_Log.info(`\u23F3 ${n} - ${d} remaining`),a=c}yield e.wait(Math.min(OM.DyFM_Time.second,l))}fv.DyFM_Log.success(`\u2705 ${n} completed`)})}};Bc.DyFM_Async=hv});var AM=h(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.DyFM_Data=void 0;var Bn=ev(),Hn=Rs(),gv=class{static kilobyte=Bn.kilobyte;static megabyte=Bn.megabyte;static gigabyte=Bn.gigabyte;static terabyte=Bn.terabyte;static petabyte=Bn.petabyte;static exabyte=Bn.exabyte;static zettabyte=Bn.zettabyte;static yottabyte=Bn.yottabyte;static getSizeString(t,n,r){if(t===0)return"0B";if(!t)return"N/A";let i=t<0,o=Math.abs(t);if(o<this.kilobyte)return`${i?"-":""}${Math.floor(o)}B`;if(o<this.megabyte){let u=o/this.kilobyte;if(r){let l=Math.floor(u),d=o-l*this.kilobyte,p=Math.floor(d),g=i?"-":"";return p>0?`${g}${l}KB ${p}B`:`${g}${l}KB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}KB`;return i?`-${c}`:c}if(o<this.gigabyte){let u=o/this.megabyte;if(r){let l=Math.floor(u),d=o-l*this.megabyte,p=Math.floor(d/this.kilobyte),g=i?"-":"";return p>0?`${g}${l}MB ${p}KB`:`${g}${l}MB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}MB`;return i?`-${c}`:c}if(o<this.terabyte){let u=o/this.gigabyte;if(r){let l=Math.floor(u),d=o-l*this.gigabyte,p=Math.floor(d/this.megabyte),g=i?"-":"";return p>0?`${g}${l}GB ${p}MB`:`${g}${l}GB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}GB`;return i?`-${c}`:c}if(o<this.petabyte){let u=o/this.terabyte;if(r){let l=Math.floor(u),d=o-l*this.terabyte,p=Math.floor(d/this.gigabyte),g=i?"-":"";return p>0?`${g}${l}TB ${p}GB`:`${g}${l}TB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}TB`;return i?`-${c}`:c}if(o<this.exabyte){let u=o/this.petabyte;if(r){let l=Math.floor(u),d=o-l*this.petabyte,p=Math.floor(d/this.terabyte),g=i?"-":"";return p>0?`${g}${l}PB ${p}TB`:`${g}${l}PB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}PB`;return i?`-${c}`:c}if(o<this.zettabyte){let u=o/this.exabyte;if(r){let l=Math.floor(u),d=o-l*this.exabyte,p=Math.floor(d/this.petabyte),g=i?"-":"";return p>0?`${g}${l}EB ${p}PB`:`${g}${l}EB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}EB`;return i?`-${c}`:c}if(o<this.yottabyte){let u=o/this.zettabyte;if(r){let l=Math.floor(u),d=o-l*this.zettabyte,p=Math.floor(d/this.exabyte),g=i?"-":"";return p>0?`${g}${l}ZB ${p}EB`:`${g}${l}ZB`}let c=`${Hn.DyFM_Math.round(u,n??(Number.isInteger(u)?0:2))}ZB`;return i?`-${c}`:c}let s=o/this.yottabyte;if(r){let u=Math.floor(s),c=o-u*this.yottabyte,l=Math.floor(c/this.zettabyte),d=i?"-":"";return l>0?`${d}${u}YB ${l}ZB`:`${d}${u}YB`}let a=`${Hn.DyFM_Math.round(s,n??(Number.isInteger(s)?0:2))}YB`;return i?`-${a}`:a}};Hc.DyFM_Data=gv});var vv=h(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.DyFM_JsonErrorHelper=void 0;var mv=class{static extractLineInfoFromJsonError(t,n,r=5){try{let i=t.match(/at position (\d+)/);if(i||(i=t.match(/Unexpected end of JSON input at position (\d+)/)),i||(i=t.match(/position (\d+)/)),!i){let s=t.match(/Unexpected token '(.)'|Unexpected token (.)/);if(s&&n.includes(`
105
+ `)){let a=s[1]||s[2];if(a){let u=n.indexOf(a);if(u!==-1)return this.createLineInfoFromPosition(n,u,r)}}return null}let o=parseInt(i[1],10);return isNaN(o)||o<0||o>n.length?null:this.createLineInfoFromPosition(n,o,r)}catch{return null}}static createLineInfoFromPosition(t,n,r){if(!t||typeof t!="string")return{lineNumber:1,contextLines:["(invalid or empty input)"],characterPosition:0};let i=t.split(`
106
+ `),o=0,s=1,a=0;for(let d=0;d<i.length;d++){let p=i[d].length;if(o+p>=n){s=d+1,a=n-o;break}o+=p+1}a===0&&s===1&&(s=i.length,a=n-o),a<0&&(a=0),s>i.length&&(s=i.length);let u=Math.max(0,s-r-1),c=Math.min(i.length,s+r),l=i.slice(u,c);return{lineNumber:s,contextLines:l,characterPosition:a}}static formatJsonErrorForLogging(t,n){let r=[];r.push(`JSON parsing failed: ${n}`),r.push(`Error at line ${t.lineNumber}, character ${t.characterPosition}:`),r.push(`Context (${t.contextLines.length} lines):`);let i=Math.max(1,t.lineNumber-Math.floor(t.contextLines.length/2));return t.contextLines.forEach((o,s)=>{let a=i+s,u=a===t.lineNumber?">>> ":" ",c=o||"(empty line)";r.push(`${u}${a.toString().padStart(3)}: ${c}`)}),r}static parseJsonWithEnhancedError(t,n,r=2){if(!t||typeof t!="string")throw new Error(`Invalid JSON input: expected string, got ${typeof t}`);try{return JSON.parse(t,n)}catch(i){let o=i instanceof Error?i.message:String(i),s=t,a=this.extractLineInfoFromJsonError(o,s,r);if(!a&&!s.includes(`
107
+ `))try{let u=this.formatJsonForBetterErrors(s);try{JSON.parse(u,n)}catch(c){let l=c instanceof Error?c.message:String(c);a=this.extractLineInfoFromJsonError(l,u,r)}}catch{a=null}if(a){let u=this.formatJsonErrorForLogging(a,o);throw new Error(`JSON parsing failed:
108
+ ${u.join(`
109
+ `)}`)}else throw new Error(`JSON parsing failed: ${o}`)}}static formatJsonForBetterErrors(t){return!t||typeof t!="string"?t||"":t.replace(/,/g,`,
110
+ `).replace(/{/g,`{
111
+ `).replace(/}/g,`
112
+ }`).replace(/\[/g,`[
113
+ `).replace(/\]/g,`
114
+ ]`).replace(/\n\s*\n/g,`
115
+ `).replace(/^\s+|\s+$/gm,function(n,r,i){if(!i||typeof i!="string")return n;let o=i.slice(0,r).split(`
116
+ `),s=(i.slice(0,r).match(/{|\[/g)||[]).length-(i.slice(0,r).match(/}|\]/g)||[]).length;return" ".repeat(Math.max(0,s))})}};zc.DyFM_JsonErrorHelper=mv});var TM=h(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.DyFM_RoundList=void 0;var yv=class{static getOutboundedIndex(t,n){if(!t)throw new Error("roundListPlusIndex failed. list is empty!");return n<0&&(n=n%t,n=t+n),t<=n&&(n=n%t),n}static getIndexOpposite(t,n){let r=n+Math.round(t/2);return this.getOutboundedIndex(t,r)}static getListIndex(t,n){return t[this.getOutboundedIndex(t.length,n)]}static getListOpposite(t,n){return t[this.getIndexOpposite(t.length,t.indexOf(n))]}static getLast(t){return 0<t.length?t[t.length-1]:null}};Wc.DyFM_RoundList=yv});var bv=h(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.DyFM_StringCase=Ui.DyFM_StringCase_Type=void 0;var qi=function(e){return e.camelCase="camel-case",e.PascalCase="pascal-case",e.kebabCase="kebab-case",e.snake_case="snake-case",e}(qi||(Ui.DyFM_StringCase_Type=qi={})),_v=class{static parseWords(t){if(!t||t.trim().length===0)return[];let r=t.replace(/[\s_\-]+/g," ").replace(/[^a-zA-Z0-9\s]/g," ").trim().split(/\s+/).filter(o=>o.length>0),i=[];for(let o of r){if(o.length===0)continue;let s=[0];for(let a=1;a<o.length;a++){let u=o[a],c=o[a-1],l=a<o.length-1?o[a+1]:"",d=/[A-Z]/.test(u),p=/[a-z]/.test(u),g=/[a-zA-Z]/.test(u),m=/[0-9]/.test(u),v=/[A-Z]/.test(c),y=/[a-z]/.test(c),_=/[0-9]/.test(c),C=/[a-z]/.test(l),N=/[A-Z]/.test(l);if(_&&g)s.push(a);else if(y&&d)s.push(a);else if(d&&v&&C){let P=a-1;for(;P>0&&/[A-Z]/.test(o[P-1]);)P--;a-P>=1&&s.push(a)}else if(v&&p){let P=a-1;for(;P>0&&/[A-Z]/.test(o[P-1]);)P--;a-P>1&&(s.includes(a-1)||s.push(a-1))}}for(let a=0;a<s.length;a++){let u=s[a],c=a<s.length-1?s[a+1]:o.length,l=o.substring(u,c);l.length>0&&i.push(l.toLowerCase())}}return i}static toCamelCase(t){let n=this.parseWords(t);return n.length===0?"":n.map((r,i)=>i===0?r.toLowerCase():r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("")}static toPascalCase(t){let n=this.parseWords(t);return n.length===0?"":n.map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join("")}static toKebabCase(t){let n=this.parseWords(t);return n.length===0?"":n.join("-")}static toSnakeCase(t){let n=this.parseWords(t);return n.length===0?"":n.join("_")}static convertTo(t,n){switch(n){case qi.camelCase:return this.toCamelCase(t);case qi.PascalCase:return this.toPascalCase(t);case qi.kebabCase:return this.toKebabCase(t);case qi.snake_case:return this.toSnakeCase(t);default:return t}}static convertToAny(t,n){let r=n.toLowerCase().trim();return r==="camelcase"||r==="camel-case"?this.toCamelCase(t):r==="pascalcase"||r==="pascal-case"?this.toPascalCase(t):r==="kebabcase"||r==="kebab-case"?this.toKebabCase(t):r==="snakecase"||r==="snake-case"||r==="snake_case"?this.toSnakeCase(t):t}static includesIgnoreCase(t,n){if(!t||!n)return!1;let r=[n,this.toCamelCase(n),this.toPascalCase(n),this.toKebabCase(n),this.toSnakeCase(n)],i=this.parseWords(n);if(i.length>1)for(let s=1;s<i.length;s++){let a=i.slice(s).join("");r.push(this.toCamelCase(a)),r.push(this.toKebabCase(a)),r.push(this.toSnakeCase(a))}let o=t.toLowerCase();for(let s of r)if(s&&o.includes(s.toLowerCase()))return!0;return!1}static anyNameToShortCode(t){return!t||t.trim().length===0?"":this.parseWords(t).filter(r=>r.length>0).map(r=>{let i=r.match(/[a-zA-Z]/)?.[0];return i?i.toUpperCase():""}).join("")}};Ui.DyFM_StringCase=_v});var wv=h(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.DyFM_String=void 0;var oL=bv(),Dv=class extends oL.DyFM_StringCase{static breakTrim(t){return t.trim().replace(/(\r\n|\n|\r)/gm,"")}static nestedBracketSplit(t,n,r,i=10,o){return this.nestedBracketSplitDetailed(t,n,r,i,o).map(a=>a.content)}static nestedBracketSplitDetailed(t,n,r,i=10,o){let s=[{opening:n,closing:r}];return this.multiBracketSplitDetailed(t,s,i,o)}static multiBracketSplit(t,n,r=10,i){return this.multiBracketSplitDetailed(t,n,r,i).map(s=>s.content)}static multiBracketSplitDetailed(t,n,r=10,i){if(n.length===0)return[{content:t,level:0,brackets:null}];let o=[],s=[{content:t,level:0,brackets:null}];for(let a=0;a<r;a++){let u=[],c=!1;for(let l of s){let d=this.extractMultipleBracketsFromStringDetailed(l.content,n,i);if(d.extracted.length>0){if(c=!0,a===0)o.push({content:d.modified,level:0,brackets:null});else{let p=o.findIndex(g=>g.content===l.content&&g.brackets===l.brackets);p!==-1&&(o[p].content=d.modified)}for(let p of d.extracted)o.push({content:p.content,level:a+1,brackets:p.brackets});for(let p of d.extracted)u.push({content:p.content,level:a+1,brackets:p.brackets??null})}else a===0&&o.push({content:l.content,level:0,brackets:null})}if(!c)break;s=u}return o}static extractMultipleBracketsFromStringDetailed(t,n,r){let i=[],o=r===void 0,s=o?t:"",a=0,u=1,c=[],l=0,d=null,p=m=>{o||(s+=t.substring(l,m))},g=(m,v,y,_)=>{let C=t.substring(l,m);i.push({content:C,level:0,brackets:y}),o||(s+=r??""),l=m+_,c.length=0,d=null};for(;a<t.length;){let m=!1,v=!1,y=0,_=-1,C=-1;for(let P=0;P<n.length;P++){let L=n[P];if(t.substring(a,a+L.opening.length)===L.opening){let R=L.opening.length;if(L.opening===L.closing){let ve=a>0?t[a-1]:null,Nt=ve===null||/[\s\(\[\{<]/.test(ve),br=c.some(Cb=>Cb.bracket.opening===L.opening&&Cb.bracket.closing===L.closing);(Nt||!br)&&R>y&&(m=!0,v=!0,y=R,_=P,C=P)}else R>y&&(m=!0,v=!0,y=R,_=P)}if(t.substring(a,a+L.closing.length)===L.closing){let R=L.closing.length;if(L.opening===L.closing)c.some(Nt=>Nt.bracket.opening===L.opening&&Nt.bracket.closing===L.closing)&&(R>y||R===y&&C===-1)&&(m=!0,v=!1,y=R,_=P);else{let ve=c.some(br=>br.type===P),Nt=!ve&&c.some(br=>br.bracket.opening===L.opening);(ve||Nt)&&R>y&&(m=!0,v=!1,y=R,_=P)}}}if(!m){a++;continue}let N=n[_];if(v)c.length===0&&(p(a),l=a+y,d=u),c.push({id:u++,openingIndex:a,type:_,bracket:N}),a+=y;else{let P=-1;for(let R=c.length-1;R>=0;R--)if(c[R].type===_){P=R;break}if(P===-1){for(let R=c.length-1;R>=0;R--)if(c[R].bracket.opening===N.opening){P=R;break}}if(P===-1){a+=y;continue}let L=c.splice(P,1)[0];d!==null&&L.id===d&&g(a,L,N,y),a+=y}}return!o&&l<t.length&&(s+=t.substring(l)),o?{modified:t,extracted:i}:{modified:s,extracted:i}}};Gc.DyFM_String=Dv});var Yc=h(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.DyFM_Object=void 0;var Bt=Ut(),$i=vv(),sL=wv(),Ev=class{static defaultErrorMsg=` failed.
117
+ This might be happening because the object you trying to clone, contains object hooks for its own objects, therefore its creating an object loop. See further information in the detailed error:
118
+
119
+ `;static mapObjList(t,n){let r=[...t];return r=r.map(i=>{let o={};return n.forEach(s=>{o[s[s.length-1]]=this.getNestedData(i,s)}),o}),r}static getNestedData(t,n){let r=this.clone(t);return n.forEach(i=>{r&&(r=r[i])}),r}static nestData(t,n,r){let i=this.clone(t);if(n.length>1){let o=[...n],s=o.shift();i[s]=this.nestData(i[s],o,r)}else i[n[0]]=r;return i}static addToNestedData(t,n,r){let i=this.clone(t);if(n.length>1){let o=[...n],s=o.shift();i[s]=this.addToNestedData(i[s],o,r)}else i[n[0]]+=r;return i}static pushToNestedData(t,n,r){let i=this.clone(t);if(n.length>1){let o=[...n],s=o.shift();i[s]=this.pushToNestedData(i[s],o,r)}else Array.isArray(i[n[0]])?i[n[0]].push(r):i[n[0]]=[r];return i}static nestRecursiveListedData(t,n,r,i){let o=this.clone(t);if(r.length>1){let s=[...r],a=s.shift();o[n][a]=this.nestRecursiveListedData(o[n][a],n,s,i)}else o[n][r[0]]=i;return o}static removeCirculation=this.resolveCirculation;static resolveCirculation(t,n=["ROOT;"+t?.constructor?.name],r=[]){if(!t||typeof t!="object")return t;if(r.includes(t))return"CIRCULATION:"+n.join(".");let i;return Array.isArray(t)?i=[]:i={},Object.keys(t).forEach(o=>{i[o]=this.resolveCirculation(t[o],[...n,o],[...r,t])}),i}static findCirculations(t,n=["ROOT;"+t?.constructor?.name],r=[],i=[]){return!t||typeof t!="object"||(r.includes(t)&&i.push({object:t,pathsOfAllDuplications:n}),Object.keys(t).forEach(o=>{this.findCirculations(t[o],[...n,o],[...r,t],i)})),i}static safeCleanObject(t){try{return this.cleanObject(t)}catch(n){return Bt.DyFM_Log.error("Error cleaning object:",n),t}}static cleanObject(t,n=[]){return!t||typeof t!="object"||n.includes(t)||(n.push(t),Object.keys(t).forEach(r=>{t[r]===void 0?delete t[r]:Array.isArray(t[r])?t[r].forEach(i=>{typeof i=="object"&&this.cleanObject(i,n)}):typeof t[r]=="object"&&this.cleanObject(t[r],n)})),t}static mergeObjects(t,n){if(typeof n=="object"){t??={};for(let r in n)n[r]instanceof Object?t[r]=this.mergeObjects(t[r],n[r]):Array.isArray(n[r])?(t[r]??=[],n[r].forEach(i=>{!t[r].includes(i)&&!t[r].some(o=>this.sameObjects(i,o))&&t[r].push(i)})):t[r]=n[r]}return t}static patchObject(t,n){return this.cleanObject(n),this.mergeObjects(t,n)}static safeParseList(t,n){let r=this.safeParseJSON(t,!0);return Array.isArray(r)?r:typeof r=="object"?(n||Bt.DyFM_Log.warn("DyFM_Object.safeParseList result is an object, returning its values",{parsed:r}),Object.values(r)):(n||Bt.DyFM_Log.warn("DyFM_Object.safeParseList result is not an array or object, returning it as a single item",{parsed:r}),[r])}static safeParseJSON(t,n){try{return this.failableSafeParseJSON(t)}catch(r){return n||Bt.DyFM_Log.error("Unable to parse JSON answer:",{unparsedJSON:t,error:r}),{unparsableResult:t}}}static failableSafeParseJSON_old(t){if(!t)throw new Error(`No content provided to JSON parse ("${t}")`);let n=t.match(/```json(.*)```/s),r=t.replaceAll(`
120
+ `,"");return n?$i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(n[1].replaceAll(`
121
+ `,"")):$i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(r.replaceAll("```json","").replaceAll("```",""))}static failableSafeParseJSON(t){if(!t)throw new Error(`No content provided to JSON parse ("${t}")`);if(t.includes("```json")){let n=sL.DyFM_String.multiBracketSplitDetailed(t,[{opening:"```json",closing:"```"},{opening:"{",closing:"}"},{opening:"[",closing:"]"}],1);if(n.length>1&&n[1]&&n[1].brackets?.opening==="```json")return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(n[1].content);if(n.length>0&&n[0])return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(n[0].content);{let r=t.replace(/```json\s*/,"").replace(/\s*```$/,"").trim();return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(r)}}else return $i.DyFM_JsonErrorHelper.parseJsonWithEnhancedError(t.trim())}static clone(t){try{return t&&JSON.parse(JSON.stringify(t))}catch(n){throw Bt.DyFM_Log.error("clone()"+this.defaultErrorMsg,n),n}}static copy=this.clone;static surfaceClone(t){try{let n={};return Object.keys(t).forEach(r=>{n[r]=t[r]}),n}catch(n){throw Bt.DyFM_Log.error("surfaceClone()"+this.defaultErrorMsg,n),n}}static surfaceCopy=this.surfaceClone;static deepClone(t){try{let n={};return t&&Object.keys(t).forEach(r=>{typeof t[r]=="object"?n[r]=this.deepClone(t[r]):Array.isArray(t[r])?n[r]=t[r].map(i=>this.deepClone(i)):n[r]=t[r]}),n}catch(n){throw Bt.DyFM_Log.error("deepClone()"+this.defaultErrorMsg,n),n}}static sameObjects(t,n){try{return JSON.stringify(t)===JSON.stringify(n)}catch(r){throw Bt.DyFM_Log.error("sameObjects()"+this.defaultErrorMsg,r),r}}static orderedSameObject(t,n){try{if(typeof t!="object"||typeof n!="object"||Array.isArray(t)||Array.isArray(n)||t===null||n===null||t===void 0||n===void 0)return JSON.stringify(t)===JSON.stringify(n);let r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;r.sort(),i.sort();for(let o=0;o<r.length;o++)if(JSON.stringify(r[o])!==JSON.stringify(i[o]))return!1;return!0}catch(r){throw Bt.DyFM_Log.error("orderedSameObject()"+this.defaultErrorMsg,r),r}}static orderedSameObject2(t,n){try{return console.log("using orderedSameObject2"),typeof t!="object"||typeof n!="object"||Array.isArray(t)||Array.isArray(n)||t===null||n===null||t===void 0||n===void 0?JSON.stringify(t)===JSON.stringify(n):JSON.stringify(t,Object.keys(t).sort())===JSON.stringify(n,Object.keys(n).sort())}catch(r){throw Bt.DyFM_Log.error("sameObjects()"+this.defaultErrorMsg,r),r}}static sameObjectSurface(t,n){let r=!0;for(let i in t)if(t[i]!==n[i]){r=!1;break}return r}static setExistingValuesOnly(t,n){for(let r in n)n[r]!=null&&(t[r]=n[r])}static JSONListify(t){let n=[];for(let r=0;t[r];r++)n.push(t[r]);return n}static cleanAssign(t,n){return n=this.cleanObject(n),Object.assign(t,n)}static hardParseJSON(t){try{return JSON.parse(t)}catch{try{return this.failableSafeParseJSON(t)}catch{let i=this.safeParseJSON(t);return i.unparsableResult?i.unparsableResult:i}}}};Zc.DyFM_Object=Ev});var Bi=h(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DyFM_getConstructionStackLocation=aL;Jc.DyFM_getLocalStackLocation=uL;var Qc=Ut();function aL(e=0){let t=new Error().stack,n=t?.split(`
122
+ `)?.slice(2),r=n?.find(i=>i&&!i.includes("getStackLocation")&&!i.includes("new")&&!i.includes("node_modules")&&!i.includes("node:"));if(isNaN(e))throw new Error("level must be a number");if(e)for(;e;)n=n?.filter(i=>i!==r),e--,r=n?.find(i=>i&&!i.includes("getConstructionStackLocation")&&!i.includes("new")&&!i.includes("node_modules")&&!i.includes("node:"));return!r&&(r=t?.split(" at ")?.find(i=>i&&!i.includes("getConstructionStackLocation")&&!i.includes("new")&&!i.includes("node_modules")&&!i.includes("node:")),!r)?(Qc.DyFM_Log.warn(`No constructor line found (0)
123
+ ${typeof t}
124
+ ${t?.slice(0,300)?.split(`
125
+ `)+"..."}`,{stack:t}),""):(r?.includes("(")&&(r=r?.split("(")[1]),r?.includes(")")&&(r=r?.split(")")[0]),r||(Qc.DyFM_Log.warn(`No constructor line found (1)
126
+ ${typeof t}
127
+ ${t?.slice(0,300)?.split(`
128
+ `)+"..."}`,{stack:t}),""))}function uL(e=0){let t=new Error().stack,n=t?.split(`
129
+ `)?.slice(2),r=n?.find(i=>i&&!i.includes("node_modules")&&!i.includes("node:"));if(isNaN(e))throw new Error("level must be a number");if(e)for(;e;)n=n?.filter(i=>i!==r),e--,r=n?.find(i=>i&&!i.includes("node_modules")&&!i.includes("node:"));return!r&&(r=t?.split(" at ")?.find(i=>i&&!i.includes("node_modules")&&!i.includes("node:")),!r)?(Qc.DyFM_Log.warn(`No location line found outside of node_modules or node: (0)
130
+ ${typeof t}
131
+ ${t?.slice(0,300)?.split(`
132
+ `)+"..."}`,{stack:t}),""):(r?.includes("(")&&(r=r?.split("(")[1]),r?.includes(")")&&(r=r?.split(")")[0]),r||(Qc.DyFM_Log.warn(`No location line found (1)
133
+ ${typeof t}
134
+ ${t?.slice(0,300)?.split(`
135
+ `)+"..."}`,{stack:t}),""))}});var xM=h(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.DyFM_TypeCloningFacility=void 0;var Mv=class{static clone(t,n=[],r=[],i=!1){let o={};for(let s in t)if(i&&console.log("clone DEBUG; key:",s),t&&typeof t=="object"){let a=typeof t[s];if(n.includes(s))continue;if(a==="object"){let u=r?.find(c=>c.id===t[s]);if(u)o[s]=u.clonedObject;else{let c={id:t[s]};r.push(c),Array.isArray(t[s])?c.clonedObject=this.cloneArray(t[s],n,r,i):t[s]?.clone&&typeof t[s]?.clone=="function"?c.clonedObject=t[s].clone():c.clonedObject=this.clone(t[s],n,r,i),o[s]=c.clonedObject}}else o[s]=t[s]}return o}static cloneArray(t,n=[],r=[],i=!1){let o=[];return t.forEach((s,a)=>{i&&console.log("cloneArrayDEBUG; index",a),typeof s=="object"?o.push(this.clone(s,n,r,i)):o.push(s)}),o}static storeCirculation(t){let n=new Map;return JSON.stringify(t,(i,o)=>{if(typeof o=="object"&&o!==null){if(n.has(o))return`__cycle__${n.get(o)}`;n.set(o,n.size)}return o})}static restoreCirculation(t){let n=new Map;return JSON.parse(t,(i,o)=>typeof o=="string"&&o.startsWith("__cycle__")?n.get(parseInt(o.slice(9),10)):(typeof o=="object"&&o!==null&&n.set(n.size,o),o))}};Kc.DyFM_TypeCloningFacility=Mv});var ks=h(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.DyFM_BasicProperty_Type=void 0;var NM=function(e){return e.string="string",e.number="number",e.boolean="boolean",e.date="date",e.object="object",e.array="array",e.function="function",e}(NM||(Xc.DyFM_BasicProperty_Type=NM={}))});var Cv=h(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.DyFM_notNull=cL;el.DyFM_getBasicPropertyType=lL;var Ue=ks();function cL(e){return e!=null}function lL(e){if(!e)throw new Error("Type is missing");switch(e.toLocaleLowerCase()){case Ue.DyFM_BasicProperty_Type.string:case"string":return Ue.DyFM_BasicProperty_Type.string;case Ue.DyFM_BasicProperty_Type.number:case"number":return Ue.DyFM_BasicProperty_Type.number;case Ue.DyFM_BasicProperty_Type.boolean:case"boolean":return Ue.DyFM_BasicProperty_Type.boolean;case Ue.DyFM_BasicProperty_Type.date:case"date":return Ue.DyFM_BasicProperty_Type.date;case Ue.DyFM_BasicProperty_Type.object:case"object":return Ue.DyFM_BasicProperty_Type.object;case Ue.DyFM_BasicProperty_Type.array:case"array":return Ue.DyFM_BasicProperty_Type.array;default:return e.includes("[]")||e.includes("array")?Ue.DyFM_BasicProperty_Type.array:e.includes("=>")||e.includes("function")?Ue.DyFM_BasicProperty_Type.function:Ue.DyFM_BasicProperty_Type.object}}});var PM=h(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});Sv.default="ffffffff-ffff-ffff-ffff-ffffffffffff"});var FM=h(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});Iv.default="00000000-0000-0000-0000-000000000000"});var RM=h(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});Ov.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i});var js=h(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});var dL=RM();function fL(e){return typeof e=="string"&&dL.default.test(e)}Av.default=fL});var Ls=h(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var hL=js();function pL(e){if(!(0,hL.default)(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,t&255,(t=parseInt(e.slice(9,13),16))>>>8,t&255,(t=parseInt(e.slice(14,18),16))>>>8,t&255,(t=parseInt(e.slice(19,23),16))>>>8,t&255,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255)}Tv.default=pL});var mn=h(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.unsafeStringify=void 0;var gL=js(),Me=[];for(let e=0;e<256;++e)Me.push((e+256).toString(16).slice(1));function kM(e,t=0){return(Me[e[t+0]]+Me[e[t+1]]+Me[e[t+2]]+Me[e[t+3]]+"-"+Me[e[t+4]]+Me[e[t+5]]+"-"+Me[e[t+6]]+Me[e[t+7]]+"-"+Me[e[t+8]]+Me[e[t+9]]+"-"+Me[e[t+10]]+Me[e[t+11]]+Me[e[t+12]]+Me[e[t+13]]+Me[e[t+14]]+Me[e[t+15]]).toLowerCase()}Vs.unsafeStringify=kM;function mL(e,t=0){let n=kM(e,t);if(!(0,gL.default)(n))throw TypeError("Stringified UUID is invalid");return n}Vs.default=mL});var tl=h(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var xv,vL=new Uint8Array(16);function yL(){if(!xv){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xv=crypto.getRandomValues.bind(crypto)}return xv(vL)}Nv.default=yL});var Pv=h(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.updateV1State=void 0;var jM=tl(),_L=mn(),qs={};function bL(e,t,n){let r,i=e?._v6??!1;if(e){let o=Object.keys(e);o.length===1&&o[0]==="_v6"&&(e=void 0)}if(e)r=LM(e.random??e.rng?.()??(0,jM.default)(),e.msecs,e.nsecs,e.clockseq,e.node,t,n);else{let o=Date.now(),s=(0,jM.default)();VM(qs,o,s),r=LM(s,qs.msecs,qs.nsecs,i?void 0:qs.clockseq,i?void 0:qs.node,t,n)}return t??(0,_L.unsafeStringify)(r)}function VM(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=(n[8]<<8|n[9])&16383),e.msecs=t,e}Us.updateV1State=VM;function LM(e,t,n,r,i,o,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!o)o=new Uint8Array(16),s=0;else if(s<0||s+16>o.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);t??=Date.now(),n??=0,r??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16),t+=122192928e5;let a=((t&268435455)*1e4+n)%4294967296;o[s++]=a>>>24&255,o[s++]=a>>>16&255,o[s++]=a>>>8&255,o[s++]=a&255;let u=t/4294967296*1e4&268435455;o[s++]=u>>>8&255,o[s++]=u&255,o[s++]=u>>>24&15|16,o[s++]=u>>>16&255,o[s++]=r>>>8|128,o[s++]=r&255;for(let c=0;c<6;++c)o[s++]=i[c];return o}Us.default=bL});var Rv=h(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var DL=Ls(),wL=mn();function EL(e){let t=typeof e=="string"?(0,DL.default)(e):e,n=ML(t);return typeof e=="string"?(0,wL.unsafeStringify)(n):n}Fv.default=EL;function ML(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}});var UM=h(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});function CL(e){let t=OL(e),n=IL(t,e.length*8);return SL(n)}function SL(e){let t=new Uint8Array(e.length*4);for(let n=0;n<e.length*4;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}function qM(e){return(e+64>>>9<<4)+14+1}function IL(e,t){let n=new Uint32Array(qM(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let r=1732584193,i=-271733879,o=-1732584194,s=271733878;for(let a=0;a<e.length;a+=16){let u=r,c=i,l=o,d=s;r=xe(r,i,o,s,e[a],7,-680876936),s=xe(s,r,i,o,e[a+1],12,-389564586),o=xe(o,s,r,i,e[a+2],17,606105819),i=xe(i,o,s,r,e[a+3],22,-1044525330),r=xe(r,i,o,s,e[a+4],7,-176418897),s=xe(s,r,i,o,e[a+5],12,1200080426),o=xe(o,s,r,i,e[a+6],17,-1473231341),i=xe(i,o,s,r,e[a+7],22,-45705983),r=xe(r,i,o,s,e[a+8],7,1770035416),s=xe(s,r,i,o,e[a+9],12,-1958414417),o=xe(o,s,r,i,e[a+10],17,-42063),i=xe(i,o,s,r,e[a+11],22,-1990404162),r=xe(r,i,o,s,e[a+12],7,1804603682),s=xe(s,r,i,o,e[a+13],12,-40341101),o=xe(o,s,r,i,e[a+14],17,-1502002290),i=xe(i,o,s,r,e[a+15],22,1236535329),r=Ne(r,i,o,s,e[a+1],5,-165796510),s=Ne(s,r,i,o,e[a+6],9,-1069501632),o=Ne(o,s,r,i,e[a+11],14,643717713),i=Ne(i,o,s,r,e[a],20,-373897302),r=Ne(r,i,o,s,e[a+5],5,-701558691),s=Ne(s,r,i,o,e[a+10],9,38016083),o=Ne(o,s,r,i,e[a+15],14,-660478335),i=Ne(i,o,s,r,e[a+4],20,-405537848),r=Ne(r,i,o,s,e[a+9],5,568446438),s=Ne(s,r,i,o,e[a+14],9,-1019803690),o=Ne(o,s,r,i,e[a+3],14,-187363961),i=Ne(i,o,s,r,e[a+8],20,1163531501),r=Ne(r,i,o,s,e[a+13],5,-1444681467),s=Ne(s,r,i,o,e[a+2],9,-51403784),o=Ne(o,s,r,i,e[a+7],14,1735328473),i=Ne(i,o,s,r,e[a+12],20,-1926607734),r=Pe(r,i,o,s,e[a+5],4,-378558),s=Pe(s,r,i,o,e[a+8],11,-2022574463),o=Pe(o,s,r,i,e[a+11],16,1839030562),i=Pe(i,o,s,r,e[a+14],23,-35309556),r=Pe(r,i,o,s,e[a+1],4,-1530992060),s=Pe(s,r,i,o,e[a+4],11,1272893353),o=Pe(o,s,r,i,e[a+7],16,-155497632),i=Pe(i,o,s,r,e[a+10],23,-1094730640),r=Pe(r,i,o,s,e[a+13],4,681279174),s=Pe(s,r,i,o,e[a],11,-358537222),o=Pe(o,s,r,i,e[a+3],16,-722521979),i=Pe(i,o,s,r,e[a+6],23,76029189),r=Pe(r,i,o,s,e[a+9],4,-640364487),s=Pe(s,r,i,o,e[a+12],11,-421815835),o=Pe(o,s,r,i,e[a+15],16,530742520),i=Pe(i,o,s,r,e[a+2],23,-995338651),r=Fe(r,i,o,s,e[a],6,-198630844),s=Fe(s,r,i,o,e[a+7],10,1126891415),o=Fe(o,s,r,i,e[a+14],15,-1416354905),i=Fe(i,o,s,r,e[a+5],21,-57434055),r=Fe(r,i,o,s,e[a+12],6,1700485571),s=Fe(s,r,i,o,e[a+3],10,-1894986606),o=Fe(o,s,r,i,e[a+10],15,-1051523),i=Fe(i,o,s,r,e[a+1],21,-2054922799),r=Fe(r,i,o,s,e[a+8],6,1873313359),s=Fe(s,r,i,o,e[a+15],10,-30611744),o=Fe(o,s,r,i,e[a+6],15,-1560198380),i=Fe(i,o,s,r,e[a+13],21,1309151649),r=Fe(r,i,o,s,e[a+4],6,-145523070),s=Fe(s,r,i,o,e[a+11],10,-1120210379),o=Fe(o,s,r,i,e[a+2],15,718787259),i=Fe(i,o,s,r,e[a+9],21,-343485551),r=zn(r,u),i=zn(i,c),o=zn(o,l),s=zn(s,d)}return Uint32Array.of(r,i,o,s)}function OL(e){if(e.length===0)return new Uint32Array;let t=new Uint32Array(qM(e.length*8)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(e[n]&255)<<n%4*8;return t}function zn(e,t){let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}function AL(e,t){return e<<t|e>>>32-t}function nl(e,t,n,r,i,o){return zn(AL(zn(zn(t,e),zn(r,o)),i),n)}function xe(e,t,n,r,i,o,s){return nl(t&n|~t&r,e,t,i,o,s)}function Ne(e,t,n,r,i,o,s){return nl(t&r|n&~r,e,t,i,o,s)}function Pe(e,t,n,r,i,o,s){return nl(t^n^r,e,t,i,o,s)}function Fe(e,t,n,r,i,o,s){return nl(n^(t|~r),e,t,i,o,s)}kv.default=CL});var $s=h(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.URL=vn.DNS=vn.stringToBytes=void 0;var $M=Ls(),TL=mn();function BM(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}vn.stringToBytes=BM;vn.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8";vn.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function xL(e,t,n,r,i,o){let s=typeof n=="string"?BM(n):n,a=typeof r=="string"?(0,$M.default)(r):r;if(typeof r=="string"&&(r=(0,$M.default)(r)),r?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let u=new Uint8Array(16+s.length);if(u.set(a),u.set(s,a.length),u=t(u),u[6]=u[6]&15|e,u[8]=u[8]&63|128,i){o=o||0;for(let c=0;c<16;++c)i[o+c]=u[c];return i}return(0,TL.unsafeStringify)(u)}vn.default=xL});var zM=h(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.URL=Lr.DNS=void 0;var NL=UM(),jv=$s(),HM=$s();Object.defineProperty(Lr,"DNS",{enumerable:!0,get:function(){return HM.DNS}});Object.defineProperty(Lr,"URL",{enumerable:!0,get:function(){return HM.URL}});function Lv(e,t,n,r){return(0,jv.default)(48,NL.default,e,t,n,r)}Lv.DNS=jv.DNS;Lv.URL=jv.URL;Lr.default=Lv});var WM=h(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var PL=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);Vv.default={randomUUID:PL}});var ZM=h(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var GM=WM(),FL=tl(),RL=mn();function kL(e,t,n){if(GM.default.randomUUID&&!t&&!e)return GM.default.randomUUID();e=e||{};let r=e.random??e.rng?.()??(0,FL.default)();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return(0,RL.unsafeStringify)(r)}qv.default=kL});var YM=h($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});function jL(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function Uv(e,t){return e<<t|e>>>32-t}function LL(e){let t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128,e=r;let i=e.length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let a=0;a<o;++a){let u=new Uint32Array(16);for(let c=0;c<16;++c)u[c]=e[a*64+c*4]<<24|e[a*64+c*4+1]<<16|e[a*64+c*4+2]<<8|e[a*64+c*4+3];s[a]=u}s[o-1][14]=(e.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8&4294967295;for(let a=0;a<o;++a){let u=new Uint32Array(80);for(let m=0;m<16;++m)u[m]=s[a][m];for(let m=16;m<80;++m)u[m]=Uv(u[m-3]^u[m-8]^u[m-14]^u[m-16],1);let c=n[0],l=n[1],d=n[2],p=n[3],g=n[4];for(let m=0;m<80;++m){let v=Math.floor(m/20),y=Uv(c,5)+jL(v,l,d,p)+g+t[v]+u[m]>>>0;g=p,p=d,d=Uv(l,30)>>>0,l=c,c=y}n[0]=n[0]+c>>>0,n[1]=n[1]+l>>>0,n[2]=n[2]+d>>>0,n[3]=n[3]+p>>>0,n[4]=n[4]+g>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}$v.default=LL});var JM=h(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.URL=Vr.DNS=void 0;var VL=YM(),Bv=$s(),QM=$s();Object.defineProperty(Vr,"DNS",{enumerable:!0,get:function(){return QM.DNS}});Object.defineProperty(Vr,"URL",{enumerable:!0,get:function(){return QM.URL}});function Hv(e,t,n,r){return(0,Bv.default)(80,VL.default,e,t,n,r)}Hv.DNS=Bv.DNS;Hv.URL=Bv.URL;Vr.default=Hv});var KM=h(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var qL=mn(),UL=Pv(),$L=Rv();function BL(e,t,n){e??={},n??=0;let r=(0,UL.default)(H(D({},e),{_v6:!0}),new Uint8Array(16));if(r=(0,$L.default)(r),t){for(let i=0;i<16;i++)t[n+i]=r[i];return t}return(0,qL.unsafeStringify)(r)}zv.default=BL});var XM=h(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});var HL=Ls(),zL=mn();function WL(e){let t=typeof e=="string"?(0,HL.default)(e):e,n=GL(t);return typeof e=="string"?(0,zL.unsafeStringify)(n):n}Wv.default=WL;function GL(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}});var rC=h(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.updateV7State=void 0;var eC=tl(),ZL=mn(),Gv={};function YL(e,t,n){let r;if(e)r=tC(e.random??e.rng?.()??(0,eC.default)(),e.msecs,e.seq,t,n);else{let i=Date.now(),o=(0,eC.default)();nC(Gv,i,o),r=tC(o,Gv.msecs,Gv.seq,t,n)}return t??(0,ZL.unsafeStringify)(r)}function nC(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}Bs.updateV7State=nC;function tC(e,t,n,r,i=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw new RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}Bs.default=YL});var iC=h(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});var QL=js();function JL(e){if(!(0,QL.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}Zv.default=JL});var oC=h(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.version=J.validate=J.v7=J.v6ToV1=J.v6=J.v5=J.v4=J.v3=J.v1ToV6=J.v1=J.stringify=J.parse=J.NIL=J.MAX=void 0;var KL=PM();Object.defineProperty(J,"MAX",{enumerable:!0,get:function(){return KL.default}});var XL=FM();Object.defineProperty(J,"NIL",{enumerable:!0,get:function(){return XL.default}});var eV=Ls();Object.defineProperty(J,"parse",{enumerable:!0,get:function(){return eV.default}});var tV=mn();Object.defineProperty(J,"stringify",{enumerable:!0,get:function(){return tV.default}});var nV=Pv();Object.defineProperty(J,"v1",{enumerable:!0,get:function(){return nV.default}});var rV=Rv();Object.defineProperty(J,"v1ToV6",{enumerable:!0,get:function(){return rV.default}});var iV=zM();Object.defineProperty(J,"v3",{enumerable:!0,get:function(){return iV.default}});var oV=ZM();Object.defineProperty(J,"v4",{enumerable:!0,get:function(){return oV.default}});var sV=JM();Object.defineProperty(J,"v5",{enumerable:!0,get:function(){return sV.default}});var aV=KM();Object.defineProperty(J,"v6",{enumerable:!0,get:function(){return aV.default}});var uV=XM();Object.defineProperty(J,"v6ToV1",{enumerable:!0,get:function(){return uV.default}});var cV=rC();Object.defineProperty(J,"v7",{enumerable:!0,get:function(){return cV.default}});var lV=js();Object.defineProperty(J,"validate",{enumerable:!0,get:function(){return lV.default}});var dV=iC();Object.defineProperty(J,"version",{enumerable:!0,get:function(){return dV.default}})});var aC=h(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.DyFM_UUID=void 0;var fV=(Xm(),Tb(Km)),sC=fV.__importStar(oC()),Yv=class{static generate(t){let n=sC.v4();if(t)for(;t.includes(n);)n=sC.v4();return n}};rl.DyFM_UUID=Yv});var Jv=h(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.DyFM_Trigonometry=void 0;var Qv=class{static getClamp(t,n){return n=n!==void 0?n:45,Math.sin(this.angleToRadians(n))*t}static getClampByClampAndHypotenuse(t,n){if(t>n)throw{errorMessage:`getClampByClampAndHypotenuse error hypotenuse is smaller than clamp (a:${t} > c:${n})`};return Math.sqrt(n*n-t*t)}static getHypotenuse(t,n){return n=n!==void 0?n:t,Math.sqrt(t*t+n*n)}static angleToRadians(t){return t*Math.PI/180}static radiansToAngle(t){return t/Math.PI*180}};il.DyFM_Trigonometry=Qv});var Xv=h(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.DyFM_Vector2_Util=void 0;var uC=Rs(),ol=Jv(),Kv=class e{isVector2Util=!0;_x=0;set x(t){this._x=t,this.calcMagnitude()}get x(){return this._x}_y=0;set y(t){this._y=t,this.calcMagnitude()}get y(){return this._y}_magintude=0;get magintude(){return this._magintude}static zero={x:0,y:0};static up={x:0,y:1};static down={x:0,y:-1};static right={x:1,y:0};static left={x:-1,y:0};constructor(t=0,n){typeof t=="object"&&t.x!==void 0&&t.y!==void 0?(this._x=t.x,this._y=t.y):n===void 0?(this._x=t,this._y=t):(this._x=t,this._y=n),this.calcMagnitude()}constructed(){return!0}static distance(t,n){return this.minus(t,n).magintude}distance(t){return e.distance(this,t)}static minus(t,n){return this.plus(t,this.negative(n))}minus(t){return this.plus(e.negative(t)),this}static plus(t,n){return new e(t.x+n.x,t.y+n.y)}plus(t){return this.newValues(e.plus(this,t)),this}static add=this.plus;add=this.plus;static multiply(t,n){return new e(t.x*n,t.y*n)}multiply(t){return this.newValues(e.multiply(this,t))}static divide(t,n){return new e(t.x/n,t.y/n)}divide(t){return this.newValues(e.divide(this,t)),this}static negative(t){return new e(-t.x,-t.y)}getNegative(){return e.negative(this)}negate(){return this.newValues(e.negative(this)),this}static rebase(t,n,r){return this.plus(t,this.minus(r,n))}rebase(t,n){return this.newValues(e.rebase(this,t,n)),this}static rotate(t,n){let r=ol.DyFM_Trigonometry.angleToRadians(n);return this.rotateRad(t,r)}static rotateRad(t,n){let r=Math.cos(n),i=Math.sin(n),o=t.x*r-t.y*i,s=t.x*i+t.y*r;return new e(o,s)}rotate(t){return this.newValues(e.rotate(this,t)),this}rotateRad(t){return this.newValues(e.rotateRad(this,t)),this}newValues(t){return this.newXY(t.x,t.y),this}newXY(t,n){return this._x=t,this._y=n,this.calcMagnitude(),this}static newValues(t,n){return t.x=n.x,t.y=n.y,t}static newXY=this.newValues;static angle(t,n){return ol.DyFM_Trigonometry.radiansToAngle(e.angleRad(t,n))}static angleRad(t,n){return Math.atan2(n.y-t.y,n.x-t.x)}angle(t,n){return e.angle(t,n)}static deg(t){return ol.DyFM_Trigonometry.radiansToAngle(e.rad(t))}static rad(t){return Math.atan2(t.y,t.x)}deg(){return e.deg(this)}static floor(t){return new e(Math.floor(t.x),Math.floor(t.y))}floor(){return e.floor(this)}static direction(t,n){return e.minus(n,t)}direction(t){return e.direction(this,t)}static normalize(t){let n=new e(t);return n.multiply(1/n.magintude)}normalize(){this.newValues(e.normalize(this))}normalized(){return e.normalize(this)}calcMagnitude(){this._magintude=ol.DyFM_Trigonometry.getHypotenuse(this._x,this._y)}clone(){return new e(this._x,this._y)}static isChanged(t,n){return t.x!==n.x||t.y!==n.y}static isEqual(t,n){return t.x===n.x&&t.y===n.y}static vectorChanged(t,n){return t.x!==n.x||t.y!==n.y}static abs(t){return new e(Math.abs(t.x),Math.abs(t.y))}abs(){return this.newXY(Math.abs(this.x),Math.abs(this.y))}static round(t,n=0){return new e(uC.DyFM_Math.round(t.x,n),uC.DyFM_Math.round(t.y,n))}static toVector2(t){return new e(t).get()}get(){return{x:this.x,y:this.y}}getVector2=this.get;toVector2=this.get;static clone(t){return{x:t.x,y:t.y}}};sl.DyFM_Vector2_Util=Kv});var cC=h(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.DyFM_BoxBounds_Util=void 0;var Hs=Xv(),ey=class e{_pos;set pos(t){this._pos.newValues(t),this.calcCenter()}get pos(){return this._pos}_size;set size(t){this._size.newValues(t),this.calcCenter()}get size(){return this._size}_center;get center(){return this._center}_centerMargin;get centerMargin(){return this._centerMargin}constructor(t,n){this._pos=new Hs.DyFM_Vector2_Util(t),this._size=new Hs.DyFM_Vector2_Util(n),this.calcCenter()}constructed(){return!0}newValues(t,n){if(t===void 0)throw new Error("new position is undefined!");if(n===void 0)throw new Error("new size is undefined!");this._pos.newValues(t),this._size.newValues(n),this.calcCenter()}static bounds(t,n){return t.pos.x<=n.x&&n.x<=t.pos.x+t.size.x&&t.pos.y<=n.y&&n.y<=t.pos.y+t.size.y}bounds(t){return e.bounds(this,t)}calcCenter(){let t=Hs.DyFM_Vector2_Util.divide(this.size,2);this._center=Hs.DyFM_Vector2_Util.plus(this.pos,t),this._centerMargin=Hs.DyFM_Vector2_Util.negative(t)}get(){return{pos:this._pos.get(),size:this._size.get(),center:this._center.get(),centerMargin:this._centerMargin.get()}}getBoxBounds=this.get;toBoxBounds=this.get;clone(){return new e(this._pos.clone(),this._size.clone())}};al.DyFM_BoxBounds_Util=ey});var lC=h(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.DyFM_Random=void 0;var hV=Ut(),ty=class{static getRandomWeightedInt(t,n,r){r=r.sort((u,c)=>c.chance-u.chance);let i=0;r.forEach(u=>{i+=u.chance}),1<i&&r.forEach(u=>{u.chance=u.chance/i});let o=Math.random(),s,a=0;for(let u=0;u<r.length&&s===void 0;u++)a+=r[u].chance,o<a&&(s=r[u].result);return s!==void 0?s:this.getRandomInt(t,n)}static getRandomInt(t,n){return t+Math.round((n-t)*Math.random())}static getRandomListElement(t){return 0<t.length?t[this.getRandomInt(0,t.length-1)]:null}static getRandomWeighted(t){if(!t?.length)return null;t=t.sort((s,a)=>a.chance-s.chance);let n=0;t.forEach(s=>{n+=s.chance}),t.forEach(s=>{s.chance=s.chance/n});let r=Math.random(),i,o=0;for(let s=0;s<t.length&&i===void 0;s++)o+=t[s].chance,r<o&&(i=t[s].result);return i===void 0?(hV.DyFM_Log.error("DyFM_Random failed to get a random weighted element from the list"),null):i}};ul.DyFM_Random=ty});var dC=h(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.DyFM_passwordRegex=void 0;zs.DyFM_getPasswordErrors=pV;zs.DyFM_passwordRegex=new RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*]){6,}");function pV(e){let t=[];return gV.forEach(n=>{n.regex.test(e)||t.push(n.message)}),t}var gV=[{regex:new RegExp("^(?=.*[a-z])"),code:"pwErrorLowercase",message:"Password must include at least one lowercase letter."},{regex:new RegExp("^(?=.*[A-Z])"),code:"pwErrorUppercase",message:"Password must include at least one uppercase letter."},{regex:new RegExp("^(?=.*[0-9])"),code:"pwErrorDigit",message:"Password must include at least one digit."},{regex:new RegExp("^(?=.*[!@#$%^&*])"),code:"pwErrorSpecialChar",message:"Password must include at least one of the !@#$%^&* characters."},{regex:new RegExp("^(?=.{6,})"),code:"pwErrorLength",message:"Password must be at least 6 characters long."}]});var fC=h(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.DyFM_emailRegex=void 0;cl.DyFM_emailRegex=new RegExp("^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+.[a-zA-Z0-9-.]+$")});var hC=h(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.DyFM_usernameRegex=void 0;ll.DyFM_usernameRegex=new RegExp("^[a-zA-Z0-9-_#$%&^|*]{6,}$");var Joe=[{regex:new RegExp("^(?=.{6,})"),code:"usernameErrorLength"},{regex:new RegExp("^(?=.*[a-zA-Z0-9-_#$%&^|*])"),code:"usernameErrorSpecialChar"}]});var ry=h(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.DyFM_allDataModelTypes=Hi.DyFM_DataModel_Type=void 0;var ny=function(e){return e.data="data-model",e.control="control-model",e.interface="interface",e}(ny||(Hi.DyFM_DataModel_Type=ny={}));Hi.DyFM_allDataModelTypes=Object.values(ny)});var pC=h(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.DyFM_allEnvironmentFlags=zi.DyFM_EnvironmentFlag=void 0;var iy=function(e){return e.local="local",e.dev="dev",e.test="test",e.prod="prod",e}(iy||(zi.DyFM_EnvironmentFlag=iy={}));zi.DyFM_allEnvironmentFlags=Object.values(iy)});var oy=h(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.DyFM_ErrorLevel=void 0;var gC=function(e){return e.user="user",e.debug="debug",e.info="info",e.known="known",e.warning="warning",e.error="error",e.serious="serious",e.critical="critical",e.fatal="fatal",e}(gC||(dl.DyFM_ErrorLevel=gC={}))});var vC=h(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.DyFM_ServerConnection_Status=void 0;var mC=function(e){return e.accessible="accessible",e.unaccessible="unaccessible",e}(mC||(fl.DyFM_ServerConnection_Status=mC={}))});var bC=h(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.DyFM_HttpEncodeType=Wi.DyFM_HttpCallType=void 0;var yC=function(e){return e.get="get",e.post="post",e.put="put",e.patch="patch",e.delete="delete",e.head="head",e.options="options",e.purge="purge",e.link="link",e.unlink="unlink",e}(yC||(Wi.DyFM_HttpCallType=yC={})),_C=function(e){return e.ascii="ascii",e.ansi="ansi",e.binary="binary",e.base64="base64",e.base64url="base64url",e.hex="hex",e.latin1="latin1",e.ucs2="ucs2",e.utf8="utf8",e.utf16le="utf16le",e}(_C||(Wi.DyFM_HttpEncodeType=_C={}))});var wC=h(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.DyFM_HttpEventType=void 0;var DC=function(e){return e[e.sent=0]="sent",e[e.uploadProgress=1]="uploadProgress",e[e.responseHeader=2]="responseHeader",e[e.downloadProgress=3]="downloadProgress",e[e.response=4]="response",e[e.user=5]="user",e}(DC||(hl.DyFM_HttpEventType=DC={}))});var MC=h(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.DyFM_HttpResponseType=void 0;var EC=function(e){return e.arraybuffer="arraybuffer",e.blob="blob",e.document="document",e.json="json",e.text="text",e.stream="stream",e.formData="formData",e}(EC||(pl.DyFM_HttpResponseType=EC={}))});var Gi=h(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.DyFM_Metadata=void 0;var sy=class{_id;__created;__createdBy;__lastModified;__lastModifiedBy;__v;_deleted;_deletedBy;_archived;_originalId;constructor(t,n){t&&(!t._id&&t._id!==void 0&&(t._id=void 0),this._id=t._id,this.__created=t.__created,this.__createdBy=t.__createdBy,this.__lastModified=t.__lastModified,this.__lastModifiedBy=t.__lastModifiedBy,this.__v=t.__v,t._archived&&(this._archived=t._archived,this._originalId=t._originalId)),this.__created||(this.__created=new Date),this.__lastModified||(this.__lastModified=new Date),this.__v||(this.__v=0),n&&(!this._id&&n?.id&&(this._id=n.id),n?.issuer&&(this.__createdBy||(this.__createdBy=n.issuer),this.__lastModifiedBy||(this.__lastModifiedBy=n.issuer)))}static updateMetadata(t,n,r){if(!t)return t;if(t._deleted)throw new Error("Cannot update metadata of deleted data");return!t._id&&r&&(t._id=r),t.__created||(t.__created=new Date),t.__createdBy||(t.__createdBy=n),t.__lastModified=new Date,t.__lastModifiedBy=n,t.__v=t.__v?t.__v+1:1,t}};gl.DyFM_Metadata=sy});var uy=h(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.DyFM_DataProperty_Params=Qi.DyFM_DataProperty_Settings=void 0;var Zi=Ut(),Yi=Bi(),Ws=ks(),ml=class{key;type;nonBasicType;default;unique;readonly;required;index;forbidden;dependencyDataName;archiveable;archiveListAfter;vectorizedFrom;embeddingModel;vectorizeAlways;vectorizeUseIndex;minlength;maxlength;subObjectParams;additionalValidators};Qi.DyFM_DataProperty_Settings=ml;var ay=class extends ml{additionalValidators=[];constructor(t,n){super(),t?(!t.type&&!t.forbidden&&Zi.DyFM_Log.error("DYNAMO ERROR: ",`
136
+ type is missing from DynamoNTSDataPropertyParams at "${t.key}" in "${n?.dataName}" model.
137
+ stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.dependencyDataName&&(t.required===!1?Zi.DyFM_Log.warn("DYNAMO WARNING: ",`
138
+ required is not recommended to be false if dependency is set at "${t.key}" in "${n?.dataName}" model.
139
+ stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`):t.required===void 0&&(Zi.DyFM_Log.warn("DYNAMO WARNING: ",`
140
+ required is recommended to be set if dependency is set at "${t.key}" in "${n?.dataName}" model.
141
+ (it is required or it is not a dependency)
142
+ It will be set to true by while you are not setting it.
143
+ stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.required=!0)),t.vectorizedFrom&&(t.index&&(Zi.DyFM_Log.warn("DYNAMO WARNING: ",`
144
+ vectorizedFrom and index are not recommended to be set at the same time at "${t.key}" in "${n?.dataName}" model.
145
+ It will be set to false by while you are not setting it.
146
+ stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.index=!1),t.vectorizeUseIndex||(Zi.DyFM_Log.S_warn("DYNAMO WARNING: ",`
147
+ vectorizeUseIndex is required if vectorizedFrom is set at "${t.key}" in "${n?.dataName}" model. (It will be set to "${t.key}" by default)
148
+ stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`),t.vectorizeUseIndex=t.key)),Object.assign(this,t)):Zi.DyFM_Log.error("DYNAMO ERROR: ",`
149
+ MISSING DynamoNTSDataPropertyParams constructor input at "${this.key}"!
150
+ stackLocation: ${(0,Yi.DyFM_getConstructionStackLocation)(2)}`)}constructed(){return!0}getBEType(){switch(this.type){case Ws.DyFM_BasicProperty_Type.string:return String;case Ws.DyFM_BasicProperty_Type.number:return Number;case Ws.DyFM_BasicProperty_Type.boolean:return Boolean;case Ws.DyFM_BasicProperty_Type.date:return Date;case Ws.DyFM_BasicProperty_Type.object:default:return this.type?.includes("[]")?Array:this.type?.includes("=>")||this.type?.includes("function")?Function:Object}}};Qi.DyFM_DataProperty_Params=ay});var ly=h(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.DyFM_HttpHeaders=void 0;var cy=class{headers={};normalizedNames;lazyInit;lazyUpdate;constructor(t){t&&(this.headers=t)}};vl.DyFM_HttpHeaders=cy});var fy=h(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.DyFM_HttpResponseBase=void 0;var mV=ly(),dy=class{headers=new mV.DyFM_HttpHeaders;status=200;statusText="OK";url;ok;type;constructor(t){t&&Object.assign(this,t)}};yl.DyFM_HttpResponseBase=dy});var py=h(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.DyFM_HttpErrorResponse=Wn.DyFM_httpErrorResponse_name=void 0;var vV=fy();Wn.DyFM_httpErrorResponse_name="HttpErrorResponse";var hy=class extends vV.DyFM_HttpResponseBase{name=Wn.DyFM_httpErrorResponse_name;message;error;ok=!1;constructor(t){super(t),t&&Object.assign(this,t)}static isHttpErrorResponse(t){return t?.name===Wn.DyFM_httpErrorResponse_name}};Wn.DyFM_HttpErrorResponse=hy});var _l=h(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.DyFM_Error=Ht.DyFM_error\u0110FlagParts=Ht.DyFM_errorFlag=void 0;var $e=tv(),be=Ut(),yV=Yc(),_V=Bi(),bV=oy(),CC=Fs(),DV=Gi(),SC=py();Ht.DyFM_errorFlag="DYNAMO-ERROR-OBJECT";Ht.DyFM_error\u0110FlagParts=["DyNTS-","DyFM-","DyNX_","DyNM_","DyBu_","DyCLI_"];var gy=class e extends DV.DyFM_Metadata{flag=Ht.DyFM_errorFlag+"-v2";_errorCode;_errorCodes=[];_message;_messages=[];__userMessage;__userMessages=[];__userMessageTranslateCode;___handled;___logged;___status;___issuer;___issuerSystem;___issuerService;___systemVersion;error;errors=[];validationErrors;stack;__localStack;level;levelUpThis;additionalContent={};confidentialContent={};constructor(t){super(t,{issuer:t?.issuerService??t?.error?.___issuerService??$e.DyFM_error_defaults.issuerService});try{if(t||(t={}),this.___handled=!!(t.handled??t.error?.___handled),this.___status=t.status??t.error?.___status,this.___issuer=t.issuer??t.error?.___issuer??$e.DyFM_error_defaults.issuer,this.___issuerSystem=t.issuerSystem??t.error?.___issuerSystem??$e.DyFM_error_defaults.issuerSystem,this.___issuerService=t.issuerService??t.error?.___issuerService??$e.DyFM_error_defaults.issuerService,this.___systemVersion=t.systemVersion??t.error?.___systemVersion??$e.DyFM_error_defaults.systemVersion,this.__localStack=t?.__localStack??t.error?.__localStack??(0,_V.DyFM_getLocalStackLocation)(),this.validationErrors=t.validationErrors??t.error?.validationErrors,this.level=t.level??t.error?.level??bV.DyFM_ErrorLevel.error,this.levelUpThis=t.levelUpThis,t.allowCircular=t.allowCircular??t.additionalContent?.allowCircular??t.error?.additionalContent?.allowCircular??!1,t.allowCircular&&(this.additionalContent.allowCircular=!0),t?.error?.___logged&&(this.___logged=!0),!t.allowCircular&&t.additionalContent&&Object.keys(t.additionalContent)?.length)try{JSON.stringify(t.additionalContent)}catch{be.DyFM_Log.error("Internal Dynamo ERROR: additionalContent is not JSON.stringifyable... (it will be removed!)",`
151
+ errorCode:`,t.errorCode),delete t.additionalContent}if(!t.allowCircular&&!t.additionalContent?.allowCircular&&t.error?.additionalContent&&!t.error?.additionalContent?.allowCircular&&Object.keys(t.error?.additionalContent)?.length)try{JSON.stringify(t.error?.additionalContent)}catch{be.DyFM_Log.error("Internal Dynamo ERROR: additionalContent is not JSON.stringifyable... (it will be removed!)",`
152
+ errorCode:`,t.errorCode),delete t.error?.additionalContent}if(t.error?.additionalContent&&Object.assign(this.additionalContent,t.error?.additionalContent),t.additionalContent&&Object.assign(this.additionalContent,t.additionalContent),t.error?.confidentialContent&&Object.assign(this.confidentialContent,t.error?.confidentialContent),t.confidentialContent&&Object.assign(this.confidentialContent,t.confidentialContent),t.errorCode||(t.errorCode=$e.DyFM_error_defaults.errorCode),!t.error){t.error=new Error;let u=t.error.stack?.split(`
153
+ `);u.splice(1,1),t.error.stack=u.join(`
154
+ `)}t?.stack?this.stack=t?.stack:t.error?.stack?this.stack=t.error?.stack:t.error?.name===SC.DyFM_httpErrorResponse_name&&t.error?.error?.stack?this.stack=t.error?.error?.stack:this.stack=new Error().stack;let n=[];t.error?._errorCodes&&n.push(...t.error?._errorCodes??[]),t.errorCode||(t.errorCode=$e.DyFM_error_defaults.errorCode),n=n.filter(u=>u!==t.errorCode),this._errorCodes=[...n,t.errorCode].filter(Boolean);let r=this._errorCodes.filter(u=>u&&u!==$e.DyFM_error_defaults.errorCode&&!Ht.DyFM_error\u0110FlagParts.some(c=>u.includes(c)));this._errorCode=r[0]??this._errorCodes?.[0];let i=this._errorCodes.findIndex(u=>u===r?.[0]);if(!t.message){if(typeof t.error=="string")t.message=t.error;else if(!t.error?.flag?.includes("DYNAMO")&&t.error?.message)t.message=t.error?.message;else if(t.error.stack){let u=t.error.stack?.split(`
155
+ `)?.[1]?.split("\\");u?.[u?.length-1]?t.message=$e.DyFM_error_defaults.message+"; "+u[u.length-1]:t.message=$e.DyFM_error_defaults.message}}let o=[];t.error?._messages?o.push(...t.error?._messages??[]):t.error?.message&&n.push(t.error?.message),o=o.filter(u=>u!==t.message),this._messages=[...o,t.message].filter(Boolean),-1<i&&this._messages[i]&&this._messages[i]!==$e.DyFM_error_defaults.message?this._message=this._messages[i]:this._message=this._messages?.[0];let s=[];t.error?.__userMessages&&s.push(...t.error?.__userMessages??[]),t.userMessage||(t.userMessage=$e.DyFM_error_defaults.userMessage),t.addECToUserMsg&&t.userMessage!==$e.DyFM_error_defaults.userMessage&&t.errorCode&&(t.userMessage+=`
156
+ ErrorCode: ${t.errorCode}`),s=s.filter(u=>u!==t.userMessage),this.__userMessages=[...s,t.userMessage].filter(Boolean),-1<i&&this.__userMessages[i]&&this.__userMessages[i]!==$e.DyFM_error_defaults.userMessage?this.__userMessage=this.__userMessages[i]:this.__userMessage=this.__userMessages.filter(u=>u&&u!==$e.DyFM_error_defaults.userMessage)?.[0],t.userMessageTranslateCode=t.userMessageTranslateCode??t.error?.__userMessageTranslateCode;let a=[];t.error?.errors?.length?a.push(...t.error.errors):typeof t.error?.errors=="object"&&(this.additionalContent.errors=t.error.errors),a=a.filter(u=>u!==t.error),this.errors=[...a,t.error].filter(Boolean),t.errors&&(0<this.errors.length?this.errors.push(...t.errors??[]):this.errors.push(new Error("there are multiple errors. check errors after this one"),...t.errors??[])),this.error=this.errors?.[0],this.errors=this.errors.map(u=>(u?.errors&&(u=D({},u),delete u.errors,delete u.additionalContent),u.error?.errors&&(u.error=D({},u.error),delete u.error.errors,delete u.error.additionalContent),u)),this.errors=this.errors.filter(u=>!!u&&(u instanceof Error||!!Object.keys(u).length)),yV.DyFM_Object.safeCleanObject(this),t.allowCircular||(this.errors=this.errors.filter(u=>{if(u instanceof Error)return!0;try{return JSON.stringify(u),!0}catch{return be.DyFM_Log.error("Internal Dynamo ERROR: error is not JSON.stringifyable... (it will be removed!)",`
157
+ errorCode:`,u?._errorCode),!1}})),t.modestLog&&console.error(this._message??this.__userMessage??this.error),t.log&&console.error(this)}catch(n){be.DyFM_Log.H_error(`Internal Dynamo ERROR: Failed to create DyFM_Error...error:
158
+ `,n,"stack:",new Error().stack,"set:",t)}}getErrorSimplified(){return{errorCode:this._errorCode,message:this._message,userMessage:this.__userMessage,stack:this.stack}}getErrorsFlat(){let t=D({},this);return t.error?.error&&delete t.error.error,t.error?.errors&&delete t.error.errors,t.errors=t.errors.map(n=>t instanceof Error?t:D({},n)),t.errors.forEach(n=>{n.errors&&delete n.errors,n.error?.errors&&delete n.error.errors,n.error?.error&&delete n.error.error,n.additionalContent&&delete n.additionalContent}),t}logShort(t,n,r){if(this.___logged&&!r){be.DyFM_Log.warn(`logShort: already logged (${this._errorCode})`);return}be.DyFM_Log.testError(t,`
159
+ ErrorCode:`,this._errorCode,`
160
+ Message:`,this._message?.replaceAll?.(`
161
+ `,`
162
+ `)),n&&(this.___logged=!0)}warnShort(t,n,r){if(this.___logged&&!r){be.DyFM_Log.warn(`warnShort: already logged (${this._errorCode})`);return}be.DyFM_Log.testWarn(t,`
163
+ ErrorCode:`,this._errorCode,`
164
+ Message:`,this._message?.replaceAll?.(`
165
+ `,`
166
+ `)),n&&(this.___logged=!0)}logSimple(t,n,r,i){if(this.___logged&&!r){be.DyFM_Log.warn(`logSimple: already logged ${t} (${this._message}; ${this._errorCode})`);return}be.DyFM_Log.H_error(t,`
167
+ ${be.DyFM_Log.errorStyle}ErrorCode:`,this._errorCode,`
168
+ ${be.DyFM_Log.errorStyle}${CC.DyFM_LogStyle.bold}Message:`,this._message?.replaceAll?.(`
169
+ `,`
170
+ `),`
171
+
172
+ ${CC.DyFM_LogStyle.reset}${be.DyFM_Log.errorStyle}UserMessage:`,this.__userMessage?.replaceAll?.(`
173
+ `,`
174
+ `),this.__localStack?`
175
+ ${be.DyFM_Log.errorStyle}LocalStack:
176
+ `+this.__localStack:"",`
177
+
178
+ ${be.DyFM_Log.errorStyle}Stack:`,this.stack?.replaceAll?.(`
179
+ `,`
180
+ `),n&&this.additionalContent?`
181
+
182
+ ${be.DyFM_Log.errorStyle}AdditionalContent:
183
+ `+this.additionalContent:""),this.___logged=!0}getParsable(){try{let t=this.getErrorsFlat();return JSON.stringify(t)}catch(t){return be.DyFM_Log.error("Error getting parsable error",t),JSON.stringify(this.getErrorSimplified())}}static logSimple(t,n){n instanceof e?n.logSimple(t):be.DyFM_Log.T_error(t,n)}static getErrorMessage(t){return t?._message??t?.message??t?.error?._message??t?.error?.message}static getAnyMessage(t){return this.getErrorMessage(t)??this.getUserMessage(t)}static getUserMessage(t){return t?.__userMessage??t?.error?.__userMessage??t?.userMessage}static getAnyUserMessage(t){return this.getUserMessage(t)??this.getErrorMessage(t)}static getErrorStatus(t){return t?.___status??t?.status??t?.error?.___status??500}static getErrorCode(t){return t?._errorCode??t?.error?._errorCode??t?.errorCode??t?.error?.errorCode??t?.code??t?.error?.code}static getErrorStack(t){return t?.stack??t?.error?.stack}static isDyFMError(t){return t?.flag?.includes("DYNAMO")}static isAnyDyFMError(t){return this.isDyFMError(t)||t?.name===SC.DyFM_httpErrorResponse_name||t instanceof Error}static deleteErrorContent(t){delete t.confidentialContent,delete t.additionalContent,delete t.error,delete t.errors,delete t.stack}static getStatusText(t){switch(t){case 100:return"Continue";case 101:return"Switching Protocols";case 102:return"Processing";case 103:return"Early Hints";case 200:return"OK";case 201:return"Created";case 202:return"Accepted";case 203:return"Non-Authoritative Information";case 204:return"No Content";case 205:return"Reset Content";case 206:return"Partial Content";case 207:return"Multi-Status";case 208:return"Already Reported";case 226:return"IM Used";case 300:return"Multiple Choices";case 301:return"Moved Permanently";case 302:return"Found";case 303:return"See Other";case 304:return"Not Modified";case 305:return"Use Proxy";case 306:return"Switch Proxy";case 307:return"Temporary Redirect";case 308:return"Permanent Redirect";case 400:return"Bad Request";case 401:return"Unauthorized";case 402:return"Payment Required";case 403:return"Forbidden";case 404:return"Not Found";case 405:return"Method Not Allowed";case 406:return"Not Acceptable";case 407:return"Proxy Authentication Required";case 408:return"Request Timeout";case 409:return"Conflict";case 410:return"Gone";case 411:return"Length Required";case 412:return"Precondition Failed";case 413:return"Payload Too Large";case 414:return"URI Too Long";case 415:return"Unsupported Media Type";case 416:return"Range Not Satisfiable";case 417:return"Expectation Failed";case 418:return"I'm a teapot";case 421:return"Misdirected Request";case 422:return"Unprocessable Entity";case 423:return"Locked";case 424:return"Failed Dependency";case 425:return"Too Early";case 426:return"Upgrade Required";case 428:return"Precondition Required";case 429:return"Too Many Requests";case 431:return"Request Header Fields Too Large";case 451:return"Unavailable For Legal Reasons";case 500:return"Internal Server Error";case 501:return"Not Implemented";case 502:return"Bad Gateway";case 503:return"Service Unavailable";case 504:return"Gateway Timeout";case 505:return"HTTP Version Not Supported";case 506:return"Variant Also Negotiates";case 507:return"Insufficient Storage";case 508:return"Loop Detected";case 510:return"Not Extended";case 511:return"Network Authentication Required";default:return"Unknown"}}};Ht.DyFM_Error=gy});var vy=h(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.DyFM_DataModel_Params=Ji.DyFM_DataModel_Settings=void 0;var It=Ut(),wV=Yc(),EV=Bi(),IC=Cv(),MV=ks(),OC=ry(),CV=Gi(),SV=uy(),IV=_l(),bl=class extends CV.DyFM_Metadata{dataName;modelType;addArchive;forbidModify;forbidDelete;properties};Ji.DyFM_DataModel_Settings=bl;var my=class extends bl{stackLocation;constructor(t){super(t);try{t&&Object.assign(this,t),this.stackLocation=(0,EV.DyFM_getConstructionStackLocation)(),(!this.properties||typeof this.properties!="object")&&(It.DyFM_Log.error(`DyFM_DataModel_Params.constructor: Properties are missing in "${this.dataName}" model.
184
+ stackLocation: ${this.stackLocation}
185
+ `),this.properties={});let n=Object.keys(this.properties);n.forEach(r=>{r||It.DyFM_Log.error(`DyFM_DataModel_Params.constructor: A property key is missing in "${this.dataName}" model.
186
+ stackLocation: ${this.stackLocation}
187
+ `);let i=new SV.DyFM_DataProperty_Params(H(D({},this.properties[r]),{key:r}),this),o=(0,IC.DyFM_getBasicPropertyType)(i.type);o!==i.type&&(i.nonBasicType=i.type,i.type=o),this.properties[r]=i,i.subObjectParams&&this.setKeysForSubObjectParams(i)}),n.forEach(r=>{let i=this.properties[r];i.vectorizedFrom&&(i.vectorizedFrom.forEach(o=>{this.properties[o]||It.DyFM_Log.error(`Vectorized from property "${o}" is not found in "${this.dataName}" model.
188
+ stackLocation: ${this.stackLocation}
189
+ `)}),i.type!==MV.DyFM_BasicProperty_Type.array&&It.DyFM_Log.error(`Vectorized from property "${i.vectorizedFrom}" is not a number[] property in "${this.dataName}" model.
190
+ stackLocation: ${this.stackLocation}
191
+ `),i.nonBasicType!=="number[]"&&It.DyFM_Log.error(`Vectorized from property "${i.vectorizedFrom}" is not a number[] property in "${this.dataName}" model.
192
+ stackLocation: ${this.stackLocation}
193
+ `),i.vectorizeUseIndex||It.DyFM_Log.error(`vectorizeUseIndex is required if vectorizedFrom is set. "${this.dataName}" model.
194
+ stackLocation: ${this.stackLocation}
195
+ `),i.index&&It.DyFM_Log.warn(`index is not recommended to be set for vectorized properties in "${this.dataName}" model.
196
+ (you should set it in the Atlas and vectorizeUseIndex, more info at DyFM_DataProperty_Params.vectorizeUseIndex))
197
+ stackLocation: ${this.stackLocation}
198
+ `))}),(!this?.modelType||this?.modelType==OC.DyFM_DataModel_Type.data)&&(this.modelType=OC.DyFM_DataModel_Type.data),this.dataName||(It.DyFM_Log.error(`DyFM_DataModel_Params.constructor: dataName is missing in "${this.dataName}" model.
199
+ stackLocation: ${this.stackLocation}
200
+ `),this.dataName="UNNAMED_MODEL"),this.dataName.includes("-")&&It.DyFM_Log.warn(`DyFM_DataModel_Params.constructor: dataName should be in snake_case in "${this.dataName}" model.For future compatibility.
201
+ stackLocation: ${this.stackLocation}
202
+ `),wV.DyFM_Object.cleanObject(this)}catch(n){IV.DyFM_Error.logSimple("DyFM_DataModel_Params.constructor error:",n),It.DyFM_Log.warn(`Due to the error, the Params contruction failed, therefore the model is not constructed properly. ("${this.dataName}" model)
203
+ stackLocation: ${this.stackLocation}`)}}constructed(){return!0}setKeysForSubObjectParams(t){t.subObjectParams&&Object.keys(t.subObjectParams).forEach(n=>{n||It.DyFM_Log.error(`DyFM_DataModel_Params.setKeysForSubObjectParams: A subObjectParams key is missing in "${this.dataName}" model.
204
+ stackLocation: ${this.stackLocation}
205
+ `);let r=t.subObjectParams[n];r.key=n;let i=(0,IC.DyFM_getBasicPropertyType)(r.type);i!==r.type&&(r.nonBasicType=r.type,r.type=i),r.subObjectParams&&this.setKeysForSubObjectParams(r)})}};Ji.DyFM_DataModel_Params=my});var ee=h(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.isFunction=void 0;function OV(e){return typeof e=="function"}Dl.isFunction=OV});var Gn=h(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.createErrorClass=void 0;function AV(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}wl.createErrorClass=AV});var yy=h(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.UnsubscriptionError=void 0;var TV=Gn();El.UnsubscriptionError=TV.createErrorClass(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
206
+ `+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
207
+ `):"",this.name="UnsubscriptionError",this.errors=n}})});var yn=h(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.arrRemove=void 0;function xV(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}Ml.arrRemove=xV});var it=h(Qe=>{"use strict";var AC=Qe&&Qe.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},TC=Qe&&Qe.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},xC=Qe&&Qe.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.isSubscription=Qe.EMPTY_SUBSCRIPTION=Qe.Subscription=void 0;var Gs=ee(),_y=yy(),NC=yn(),by=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=AC(s),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var l=this.initialTeardown;if(Gs.isFunction(l))try{l()}catch(v){o=v instanceof _y.UnsubscriptionError?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=AC(d),g=p.next();!g.done;g=p.next()){var m=g.value;try{PC(m)}catch(v){o=o??[],v instanceof _y.UnsubscriptionError?o=xC(xC([],TC(o)),TC(v.errors)):o.push(v)}}}catch(v){r={error:v}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}if(o)throw new _y.UnsubscriptionError(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)PC(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&NC.arrRemove(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&NC.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();Qe.Subscription=by;Qe.EMPTY_SUBSCRIPTION=by.EMPTY;function NV(e){return e instanceof by||e&&"closed"in e&&Gs.isFunction(e.remove)&&Gs.isFunction(e.add)&&Gs.isFunction(e.unsubscribe)}Qe.isSubscription=NV;function PC(e){Gs.isFunction(e)?e():e.unsubscribe()}});var Ki=h(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.config=void 0;Cl.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Dy=h(zt=>{"use strict";var FC=zt&&zt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},RC=zt&&zt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(zt,"__esModule",{value:!0});zt.timeoutProvider=void 0;zt.timeoutProvider={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=zt.timeoutProvider.delegate;return i?.setTimeout?i.setTimeout.apply(i,RC([e,t],FC(n))):setTimeout.apply(void 0,RC([e,t],FC(n)))},clearTimeout:function(e){var t=zt.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0}});var wy=h(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.reportUnhandledError=void 0;var PV=Ki(),FV=Dy();function RV(e){FV.timeoutProvider.setTimeout(function(){var t=PV.config.onUnhandledError;if(t)t(e);else throw e})}Sl.reportUnhandledError=RV});var Ce=h(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.noop=void 0;function kV(){}Il.noop=kV});var kC=h(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.createNotification=Wt.nextNotification=Wt.errorNotification=Wt.COMPLETE_NOTIFICATION=void 0;Wt.COMPLETE_NOTIFICATION=function(){return Ol("C",void 0,void 0)}();function jV(e){return Ol("E",void 0,e)}Wt.errorNotification=jV;function LV(e){return Ol("N",e,void 0)}Wt.nextNotification=LV;function Ol(e,t,n){return{kind:e,value:t,error:n}}Wt.createNotification=Ol});var Al=h(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.captureError=Xi.errorContext=void 0;var jC=Ki(),qr=null;function VV(e){if(jC.config.useDeprecatedSynchronousErrorHandling){var t=!qr;if(t&&(qr={errorThrown:!1,error:null}),e(),t){var n=qr,r=n.errorThrown,i=n.error;if(qr=null,r)throw i}}else e()}Xi.errorContext=VV;function qV(e){jC.config.useDeprecatedSynchronousErrorHandling&&qr&&(qr.errorThrown=!0,qr.error=e)}Xi.captureError=qV});var eo=h(Ot=>{"use strict";var qC=Ot&&Ot.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Ot,"__esModule",{value:!0});Ot.EMPTY_OBSERVER=Ot.SafeSubscriber=Ot.Subscriber=void 0;var UV=ee(),LC=it(),Sy=Ki(),$V=wy(),VC=Ce(),Ey=kC(),BV=Dy(),HV=Al(),UC=function(e){qC(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,LC.isSubscription(n)&&n.add(r)):r.destination=Ot.EMPTY_OBSERVER,r}return t.create=function(n,r,i){return new $C(n,r,i)},t.prototype.next=function(n){this.isStopped?Cy(Ey.nextNotification(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?Cy(Ey.errorNotification(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?Cy(Ey.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(LC.Subscription);Ot.Subscriber=UC;var zV=Function.prototype.bind;function My(e,t){return zV.call(e,t)}var WV=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Tl(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Tl(r)}else Tl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Tl(n)}},e}(),$C=function(e){qC(t,e);function t(n,r,i){var o=e.call(this)||this,s;if(UV.isFunction(n)||!n)s={next:n??void 0,error:r??void 0,complete:i??void 0};else{var a;o&&Sy.config.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},s={next:n.next&&My(n.next,a),error:n.error&&My(n.error,a),complete:n.complete&&My(n.complete,a)}):s=n}return o.destination=new WV(s),o}return t}(UC);Ot.SafeSubscriber=$C;function Tl(e){Sy.config.useDeprecatedSynchronousErrorHandling?HV.captureError(e):$V.reportUnhandledError(e)}function GV(e){throw e}function Cy(e,t){var n=Sy.config.onStoppedNotification;n&&BV.timeoutProvider.setTimeout(function(){return n(e,t)})}Ot.EMPTY_OBSERVER={closed:!0,next:VC.noop,error:GV,complete:VC.noop}});var Zs=h(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.observable=void 0;xl.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var Se=h(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.identity=void 0;function ZV(e){return e}Nl.identity=ZV});var Ys=h(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.pipeFromArray=to.pipe=void 0;var YV=Se();function QV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return BC(e)}to.pipe=QV;function BC(e){return e.length===0?YV.identity:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}to.pipeFromArray=BC});var ne=h(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.Observable=void 0;var Oy=eo(),JV=it(),KV=Zs(),XV=Ys(),eq=Ki(),Iy=ee(),tq=Al(),nq=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=iq(t)?t:new Oy.SafeSubscriber(t,n,r);return tq.errorContext(function(){var s=i,a=s.operator,u=s.source;o.add(a?a.call(o,u):u?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=HC(n),new n(function(i,o){var s=new Oy.SafeSubscriber({next:function(a){try{t(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[KV.observable]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return XV.pipeFromArray(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=HC(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();Pl.Observable=nq;function HC(e){var t;return(t=e??eq.config.Promise)!==null&&t!==void 0?t:Promise}function rq(e){return e&&Iy.isFunction(e.next)&&Iy.isFunction(e.error)&&Iy.isFunction(e.complete)}function iq(e){return e&&e instanceof Oy.Subscriber||rq(e)&&JV.isSubscription(e)}});var w=h(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.operate=no.hasLift=void 0;var oq=ee();function zC(e){return oq.isFunction(e?.lift)}no.hasLift=zC;function sq(e){return function(t){if(zC(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}no.operate=sq});var I=h(Zn=>{"use strict";var aq=Zn&&Zn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.OperatorSubscriber=Zn.createOperatorSubscriber=void 0;var uq=eo();function cq(e,t,n,r,i){return new WC(e,t,n,r,i)}Zn.createOperatorSubscriber=cq;var WC=function(e){aq(t,e);function t(n,r,i,o,s,a){var u=e.call(this,n)||this;return u.onFinalize=s,u.shouldUnsubscribe=a,u._next=r?function(c){try{r(c)}catch(l){n.error(l)}}:e.prototype._next,u._error=o?function(c){try{o(c)}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(uq.Subscriber);Zn.OperatorSubscriber=WC});var Ay=h(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.refCount=void 0;var lq=w(),dq=I();function fq(){return lq.operate(function(e,t){var n=null;e._refCount++;var r=dq.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount){n=null;return}var i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}Fl.refCount=fq});var Qs=h(ro=>{"use strict";var hq=ro&&ro.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(ro,"__esModule",{value:!0});ro.ConnectableObservable=void 0;var pq=ne(),GC=it(),gq=Ay(),mq=I(),vq=w(),yq=function(e){hq(t,e);function t(n,r){var i=e.call(this)||this;return i.source=n,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,vq.hasLift(n)&&(i.lift=n.lift),i}return t.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},t.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null,n?.unsubscribe()},t.prototype.connect=function(){var n=this,r=this._connection;if(!r){r=this._connection=new GC.Subscription;var i=this.getSubject();r.add(this.source.subscribe(mq.createOperatorSubscriber(i,void 0,function(){n._teardown(),i.complete()},function(o){n._teardown(),i.error(o)},function(){return n._teardown()}))),r.closed&&(this._connection=null,r=GC.Subscription.EMPTY)}return r},t.prototype.refCount=function(){return gq.refCount()(this)},t}(pq.Observable);ro.ConnectableObservable=yq});var ZC=h(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.performanceTimestampProvider=void 0;Js.performanceTimestampProvider={now:function(){return(Js.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Ty=h(At=>{"use strict";var YC=At&&At.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},QC=At&&At.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(At,"__esModule",{value:!0});At.animationFrameProvider=void 0;var _q=it();At.animationFrameProvider={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=At.animationFrameProvider.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t(function(o){n=void 0,e(o)});return new _q.Subscription(function(){return n?.(i)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=At.animationFrameProvider.delegate;return(n?.requestAnimationFrame||requestAnimationFrame).apply(void 0,QC([],YC(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=At.animationFrameProvider.delegate;return(n?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,QC([],YC(e)))},delegate:void 0}});var XC=h(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.animationFrames=void 0;var bq=ne(),Dq=ZC(),JC=Ty();function wq(e){return e?KC(e):Eq}Rl.animationFrames=wq;function KC(e){return new bq.Observable(function(t){var n=e||Dq.performanceTimestampProvider,r=n.now(),i=0,o=function(){t.closed||(i=JC.animationFrameProvider.requestAnimationFrame(function(s){i=0;var a=n.now();t.next({timestamp:e?a:s,elapsed:a-r}),o()}))};return o(),function(){i&&JC.animationFrameProvider.cancelAnimationFrame(i)}})}var Eq=KC()});var xy=h(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.ObjectUnsubscribedError=void 0;var Mq=Gn();kl.ObjectUnsubscribedError=Mq.createErrorClass(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var Ie=h(Gt=>{"use strict";var tS=Gt&&Gt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cq=Gt&&Gt.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.AnonymousSubject=Gt.Subject=void 0;var eS=ne(),Py=it(),Sq=xy(),Iq=yn(),Ny=Al(),nS=function(e){tS(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new Fy(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Sq.ObjectUnsubscribedError},t.prototype.next=function(n){var r=this;Ny.errorContext(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Cq(r.currentObservers),a=s.next();!a.done;a=s.next()){var u=a.value;u.next(n)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Ny.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Ny.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?Py.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(n),new Py.Subscription(function(){r.currentObservers=null,Iq.arrRemove(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new eS.Observable;return n.source=this,n},t.create=function(n,r){return new Fy(n,r)},t}(eS.Observable);Gt.Subject=nS;var Fy=function(e){tS(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Py.EMPTY_SUBSCRIPTION},t}(nS);Gt.AnonymousSubject=Fy});var Ry=h(io=>{"use strict";var Oq=io&&io.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(io,"__esModule",{value:!0});io.BehaviorSubject=void 0;var Aq=Ie(),Tq=function(e){Oq(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,o=n._value;if(r)throw i;return this._throwIfClosed(),o},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Aq.Subject);io.BehaviorSubject=Tq});var jl=h(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.dateTimestampProvider=void 0;Ks.dateTimestampProvider={now:function(){return(Ks.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Ll=h(oo=>{"use strict";var xq=oo&&oo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(oo,"__esModule",{value:!0});oo.ReplaySubject=void 0;var Nq=Ie(),Pq=jl(),Fq=function(e){xq(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Pq.dateTimestampProvider);var o=e.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return t.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,u=r._windowTime;i||(o.push(n),!s&&o.push(a.now()+u)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),u=0;u<a.length&&!n.closed;u+=o?1:2)n.next(a[u]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,s=n._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var u=i.now(),c=0,l=1;l<o.length&&o[l]<=u;l+=2)c=l;c&&o.splice(0,c+1)}},t}(Nq.Subject);oo.ReplaySubject=Fq});var Vl=h(so=>{"use strict";var Rq=so&&so.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(so,"__esModule",{value:!0});so.AsyncSubject=void 0;var kq=Ie(),jq=function(e){Rq(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}return t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r._hasValue,s=r._value,a=r.thrownError,u=r.isStopped,c=r._isComplete;i?n.error(a):(u||c)&&(o&&n.next(s),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var n=this,r=n._hasValue,i=n._value,o=n._isComplete;o||(this._isComplete=!0,r&&e.prototype.next.call(this,i),e.prototype.complete.call(this))},t}(kq.Subject);so.AsyncSubject=jq});var rS=h(ao=>{"use strict";var Lq=ao&&ao.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(ao,"__esModule",{value:!0});ao.Action=void 0;var Vq=it(),qq=function(e){Lq(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),this},t}(Vq.Subscription);ao.Action=qq});var sS=h(Zt=>{"use strict";var iS=Zt&&Zt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},oS=Zt&&Zt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.intervalProvider=void 0;Zt.intervalProvider={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Zt.intervalProvider.delegate;return i?.setInterval?i.setInterval.apply(i,oS([e,t],iS(n))):setInterval.apply(void 0,oS([e,t],iS(n)))},clearInterval:function(e){var t=Zt.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(e)},delegate:void 0}});var co=h(uo=>{"use strict";var Uq=uo&&uo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(uo,"__esModule",{value:!0});uo.AsyncAction=void 0;var $q=rS(),aS=sS(),Bq=yn(),Hq=function(e){Uq(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),aS.intervalProvider.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&aS.intervalProvider.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,o;try{this.work(n)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Bq.arrRemove(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}($q.Action);uo.AsyncAction=Hq});var cS=h(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.TestTools=lo.Immediate=void 0;var zq=1,ky,ql={};function uS(e){return e in ql?(delete ql[e],!0):!1}lo.Immediate={setImmediate:function(e){var t=zq++;return ql[t]=!0,ky||(ky=Promise.resolve()),ky.then(function(){return uS(t)&&e()}),t},clearImmediate:function(e){uS(e)}};lo.TestTools={pending:function(){return Object.keys(ql).length}}});var dS=h(Yt=>{"use strict";var Wq=Yt&&Yt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},Gq=Yt&&Yt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.immediateProvider=void 0;var lS=cS(),Zq=lS.Immediate.setImmediate,Yq=lS.Immediate.clearImmediate;Yt.immediateProvider={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Yt.immediateProvider.delegate;return(n?.setImmediate||Zq).apply(void 0,Gq([],Wq(e)))},clearImmediate:function(e){var t=Yt.immediateProvider.delegate;return(t?.clearImmediate||Yq)(e)},delegate:void 0}});var hS=h(fo=>{"use strict";var Qq=fo&&fo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(fo,"__esModule",{value:!0});fo.AsapAction=void 0;var Jq=co(),fS=dS(),Kq=function(e){Qq(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=fS.immediateProvider.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);var s=n.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(fS.immediateProvider.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},t}(Jq.AsyncAction);fo.AsapAction=Kq});var jy=h(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.Scheduler=void 0;var Xq=jl(),eU=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=Xq.dateTimestampProvider.now,e}();Ul.Scheduler=eU});var po=h(ho=>{"use strict";var tU=ho&&ho.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(ho,"__esModule",{value:!0});ho.AsyncScheduler=void 0;var pS=jy(),nU=function(e){tU(t,e);function t(n,r){r===void 0&&(r=pS.Scheduler.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(pS.Scheduler);ho.AsyncScheduler=nU});var gS=h(go=>{"use strict";var rU=go&&go.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(go,"__esModule",{value:!0});go.AsapScheduler=void 0;var iU=po(),oU=function(e){rU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;n=n||i.shift();do if(o=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw o}},t}(iU.AsyncScheduler);go.AsapScheduler=oU});var mS=h(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.asap=Ur.asapScheduler=void 0;var sU=hS(),aU=gS();Ur.asapScheduler=new aU.AsapScheduler(sU.AsapAction);Ur.asap=Ur.asapScheduler});var Je=h($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.async=$r.asyncScheduler=void 0;var uU=co(),cU=po();$r.asyncScheduler=new cU.AsyncScheduler(uU.AsyncAction);$r.async=$r.asyncScheduler});var vS=h(mo=>{"use strict";var lU=mo&&mo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(mo,"__esModule",{value:!0});mo.QueueAction=void 0;var dU=co(),fU=function(e){lU(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.schedule=function(n,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,n,r):(this.delay=r,this.state=n,this.scheduler.flush(this),this)},t.prototype.execute=function(n,r){return r>0||this.closed?e.prototype.execute.call(this,n,r):this._execute(n,r)},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.flush(this),0)},t}(dU.AsyncAction);mo.QueueAction=fU});var yS=h(vo=>{"use strict";var hU=vo&&vo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(vo,"__esModule",{value:!0});vo.QueueScheduler=void 0;var pU=po(),gU=function(e){hU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(pU.AsyncScheduler);vo.QueueScheduler=gU});var _S=h(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.queue=Br.queueScheduler=void 0;var mU=vS(),vU=yS();Br.queueScheduler=new vU.QueueScheduler(mU.QueueAction);Br.queue=Br.queueScheduler});var DS=h(yo=>{"use strict";var yU=yo&&yo.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(yo,"__esModule",{value:!0});yo.AnimationFrameAction=void 0;var _U=co(),bS=Ty(),bU=function(e){yU(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=bS.animationFrameProvider.requestAnimationFrame(function(){return n.flush(void 0)})))},t.prototype.recycleAsyncId=function(n,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);var s=n.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(bS.animationFrameProvider.cancelAnimationFrame(r),n._scheduled=void 0)},t}(_U.AsyncAction);yo.AnimationFrameAction=bU});var wS=h(_o=>{"use strict";var DU=_o&&_o.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(_o,"__esModule",{value:!0});_o.AnimationFrameScheduler=void 0;var wU=po(),EU=function(e){DU(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;n=n||i.shift();do if(o=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw o}},t}(wU.AsyncScheduler);_o.AnimationFrameScheduler=EU});var ES=h(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.animationFrame=Hr.animationFrameScheduler=void 0;var MU=DS(),CU=wS();Hr.animationFrameScheduler=new CU.AnimationFrameScheduler(MU.AnimationFrameAction);Hr.animationFrame=Hr.animationFrameScheduler});var SS=h(Yn=>{"use strict";var MS=Yn&&Yn.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.VirtualAction=Yn.VirtualTimeScheduler=void 0;var SU=co(),IU=it(),OU=po(),AU=function(e){MS(t,e);function t(n,r){n===void 0&&(n=CS),r===void 0&&(r=1/0);var i=e.call(this,n,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var n=this,r=n.actions,i=n.maxFrames,o,s;(s=r[0])&&s.delay<=i&&(r.shift(),this.frame=s.delay,!(o=s.execute(s.state,s.delay))););if(o){for(;s=r.shift();)s.unsubscribe();throw o}},t.frameTimeFactor=10,t}(OU.AsyncScheduler);Yn.VirtualTimeScheduler=AU;var CS=function(e){MS(t,e);function t(n,r,i){i===void 0&&(i=n.index+=1);var o=e.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.index=i,o.active=!0,o.index=n.index=i,o}return t.prototype.schedule=function(n,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}else return IU.Subscription.EMPTY},t.prototype.requestAsyncId=function(n,r,i){i===void 0&&(i=0),this.delay=n.frame+i;var o=n.actions;return o.push(this),o.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(n,r,i){i===void 0&&(i=0)},t.prototype._execute=function(n,r){if(this.active===!0)return e.prototype._execute.call(this,n,r)},t.sortActions=function(n,r){return n.delay===r.delay?n.index===r.index?0:n.index>r.index?1:-1:n.delay>r.delay?1:-1},t}(SU.AsyncAction);Yn.VirtualAction=CS});var Tt=h(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.empty=zr.EMPTY=void 0;var IS=ne();zr.EMPTY=new IS.Observable(function(e){return e.complete()});function TU(e){return e?xU(e):zr.EMPTY}zr.empty=TU;function xU(e){return new IS.Observable(function(t){return e.schedule(function(){return t.complete()})})}});var Xs=h($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.isScheduler=void 0;var NU=ee();function PU(e){return e&&NU.isFunction(e.schedule)}$l.isScheduler=PU});var Ke=h(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.popNumber=Qn.popScheduler=Qn.popResultSelector=void 0;var FU=ee(),RU=Xs();function Ly(e){return e[e.length-1]}function kU(e){return FU.isFunction(Ly(e))?e.pop():void 0}Qn.popResultSelector=kU;function jU(e){return RU.isScheduler(Ly(e))?e.pop():void 0}Qn.popScheduler=jU;function LU(e,t){return typeof Ly(e)=="number"?e.pop():t}Qn.popNumber=LU});var Hl=h(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.isArrayLike=void 0;Bl.isArrayLike=function(e){return e&&typeof e.length=="number"&&typeof e!="function"}});var Vy=h(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.isPromise=void 0;var VU=ee();function qU(e){return VU.isFunction(e?.then)}zl.isPromise=qU});var qy=h(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.isInteropObservable=void 0;var UU=Zs(),$U=ee();function BU(e){return $U.isFunction(e[UU.observable])}Wl.isInteropObservable=BU});var Uy=h(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.isAsyncIterable=void 0;var HU=ee();function zU(e){return Symbol.asyncIterator&&HU.isFunction(e?.[Symbol.asyncIterator])}Gl.isAsyncIterable=zU});var $y=h(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.createInvalidObservableTypeError=void 0;function WU(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Zl.createInvalidObservableTypeError=WU});var By=h(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.iterator=bo.getSymbolIterator=void 0;function OS(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}bo.getSymbolIterator=OS;bo.iterator=OS()});var Hy=h(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.isIterable=void 0;var GU=By(),ZU=ee();function YU(e){return ZU.isFunction(e?.[GU.iterator])}Yl.isIterable=YU});var Ql=h(ht=>{"use strict";var QU=ht&&ht.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Do=ht&&ht.__await||function(e){return this instanceof Do?(this.v=e,this):new Do(e)},JU=ht&&ht.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(g){return new Promise(function(m,v){o.push([p,g,m,v])>1||a(p,g)})})}function a(p,g){try{u(r[p](g))}catch(m){d(o[0][3],m)}}function u(p){p.value instanceof Do?Promise.resolve(p.value.v).then(c,l):d(o[0][2],p)}function c(p){a("next",p)}function l(p){a("throw",p)}function d(p,g){p(g),o.shift(),o.length&&a(o[0][0],o[0][1])}};Object.defineProperty(ht,"__esModule",{value:!0});ht.isReadableStreamLike=ht.readableStreamLikeToAsyncGenerator=void 0;var KU=ee();function XU(e){return JU(this,arguments,function(){var n,r,i,o;return QU(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Do(n.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,Do(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Do(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}ht.readableStreamLikeToAsyncGenerator=XU;function e2(e){return KU.isFunction(e?.getReader)}ht.isReadableStreamLike=e2});var q=h(ue=>{"use strict";var t2=ue&&ue.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})},n2=ue&&ue.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},r2=ue&&ue.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof zy=="function"?zy(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}},zy=ue&&ue.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ue,"__esModule",{value:!0});ue.fromReadableStreamLike=ue.fromAsyncIterable=ue.fromIterable=ue.fromPromise=ue.fromArrayLike=ue.fromInteropObservable=ue.innerFrom=void 0;var i2=Hl(),o2=Vy(),wo=ne(),s2=qy(),a2=Uy(),u2=$y(),c2=Hy(),AS=Ql(),l2=ee(),d2=wy(),f2=Zs();function h2(e){if(e instanceof wo.Observable)return e;if(e!=null){if(s2.isInteropObservable(e))return TS(e);if(i2.isArrayLike(e))return xS(e);if(o2.isPromise(e))return NS(e);if(a2.isAsyncIterable(e))return Wy(e);if(c2.isIterable(e))return PS(e);if(AS.isReadableStreamLike(e))return FS(e)}throw u2.createInvalidObservableTypeError(e)}ue.innerFrom=h2;function TS(e){return new wo.Observable(function(t){var n=e[f2.observable]();if(l2.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}ue.fromInteropObservable=TS;function xS(e){return new wo.Observable(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}ue.fromArrayLike=xS;function NS(e){return new wo.Observable(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,d2.reportUnhandledError)})}ue.fromPromise=NS;function PS(e){return new wo.Observable(function(t){var n,r;try{for(var i=zy(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}ue.fromIterable=PS;function Wy(e){return new wo.Observable(function(t){p2(e,t).catch(function(n){return t.error(n)})})}ue.fromAsyncIterable=Wy;function FS(e){return Wy(AS.readableStreamLikeToAsyncGenerator(e))}ue.fromReadableStreamLike=FS;function p2(e,t){var n,r,i,o;return t2(this,void 0,void 0,function(){var s,a;return n2(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=r2(e),u.label=1;case 1:return[4,n.next()];case 2:if(r=u.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),i={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}});var _n=h(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.executeSchedule=void 0;function g2(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}Jl.executeSchedule=g2});var ea=h(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.observeOn=void 0;var Gy=_n(),m2=w(),v2=I();function y2(e,t){return t===void 0&&(t=0),m2.operate(function(n,r){n.subscribe(v2.createOperatorSubscriber(r,function(i){return Gy.executeSchedule(r,e,function(){return r.next(i)},t)},function(){return Gy.executeSchedule(r,e,function(){return r.complete()},t)},function(i){return Gy.executeSchedule(r,e,function(){return r.error(i)},t)}))})}Kl.observeOn=y2});var ta=h(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.subscribeOn=void 0;var _2=w();function b2(e,t){return t===void 0&&(t=0),_2.operate(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}Xl.subscribeOn=b2});var RS=h(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.scheduleObservable=void 0;var D2=q(),w2=ea(),E2=ta();function M2(e,t){return D2.innerFrom(e).pipe(E2.subscribeOn(t),w2.observeOn(t))}ed.scheduleObservable=M2});var kS=h(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.schedulePromise=void 0;var C2=q(),S2=ea(),I2=ta();function O2(e,t){return C2.innerFrom(e).pipe(I2.subscribeOn(t),S2.observeOn(t))}td.schedulePromise=O2});var jS=h(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.scheduleArray=void 0;var A2=ne();function T2(e,t){return new A2.Observable(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}nd.scheduleArray=T2});var Zy=h(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.scheduleIterable=void 0;var x2=ne(),N2=By(),P2=ee(),LS=_n();function F2(e,t){return new x2.Observable(function(n){var r;return LS.executeSchedule(n,t,function(){r=e[N2.iterator](),LS.executeSchedule(n,t,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(a){n.error(a);return}s?n.complete():n.next(o)},0,!0)}),function(){return P2.isFunction(r?.return)&&r.return()}})}rd.scheduleIterable=F2});var Yy=h(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.scheduleAsyncIterable=void 0;var R2=ne(),VS=_n();function k2(e,t){if(!e)throw new Error("Iterable cannot be null");return new R2.Observable(function(n){VS.executeSchedule(n,t,function(){var r=e[Symbol.asyncIterator]();VS.executeSchedule(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}id.scheduleAsyncIterable=k2});var qS=h(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.scheduleReadableStreamLike=void 0;var j2=Yy(),L2=Ql();function V2(e,t){return j2.scheduleAsyncIterable(L2.readableStreamLikeToAsyncGenerator(e),t)}od.scheduleReadableStreamLike=V2});var Qy=h(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.scheduled=void 0;var q2=RS(),U2=kS(),$2=jS(),B2=Zy(),H2=Yy(),z2=qy(),W2=Vy(),G2=Hl(),Z2=Hy(),Y2=Uy(),Q2=$y(),J2=Ql(),K2=qS();function X2(e,t){if(e!=null){if(z2.isInteropObservable(e))return q2.scheduleObservable(e,t);if(G2.isArrayLike(e))return $2.scheduleArray(e,t);if(W2.isPromise(e))return U2.schedulePromise(e,t);if(Y2.isAsyncIterable(e))return H2.scheduleAsyncIterable(e,t);if(Z2.isIterable(e))return B2.scheduleIterable(e,t);if(J2.isReadableStreamLike(e))return K2.scheduleReadableStreamLike(e,t)}throw Q2.createInvalidObservableTypeError(e)}sd.scheduled=X2});var bn=h(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.from=void 0;var e$=Qy(),t$=q();function n$(e,t){return t?e$.scheduled(e,t):t$.innerFrom(e)}ad.from=n$});var cd=h(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.of=void 0;var r$=Ke(),i$=bn();function o$(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r$.popScheduler(e);return i$.from(e,n)}ud.of=o$});var Jy=h(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.throwError=void 0;var s$=ne(),a$=ee();function u$(e,t){var n=a$.isFunction(e)?e:function(){return e},r=function(i){return i.error(n())};return new s$.Observable(t?function(i){return t.schedule(r,0,i)}:r)}ld.throwError=u$});var dd=h(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.observeNotification=Dn.Notification=Dn.NotificationKind=void 0;var c$=Tt(),l$=cd(),d$=Jy(),f$=ee(),h$;(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(h$=Dn.NotificationKind||(Dn.NotificationKind={}));var p$=function(){function e(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}return e.prototype.observe=function(t){return US(this,t)},e.prototype.do=function(t,n,r){var i=this,o=i.kind,s=i.value,a=i.error;return o==="N"?t?.(s):o==="E"?n?.(a):r?.()},e.prototype.accept=function(t,n,r){var i;return f$.isFunction((i=t)===null||i===void 0?void 0:i.next)?this.observe(t):this.do(t,n,r)},e.prototype.toObservable=function(){var t=this,n=t.kind,r=t.value,i=t.error,o=n==="N"?l$.of(r):n==="E"?d$.throwError(function(){return i}):n==="C"?c$.EMPTY:0;if(!o)throw new TypeError("Unexpected notification kind "+n);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();Dn.Notification=p$;function US(e,t){var n,r,i,o=e,s=o.kind,a=o.value,u=o.error;if(typeof s!="string")throw new TypeError('Invalid notification, missing "kind"');s==="N"?(n=t.next)===null||n===void 0||n.call(t,a):s==="E"?(r=t.error)===null||r===void 0||r.call(t,u):(i=t.complete)===null||i===void 0||i.call(t)}Dn.observeNotification=US});var BS=h(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.isObservable=void 0;var g$=ne(),$S=ee();function m$(e){return!!e&&(e instanceof g$.Observable||$S.isFunction(e.lift)&&$S.isFunction(e.subscribe))}fd.isObservable=m$});var Jn=h(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.EmptyError=void 0;var v$=Gn();hd.EmptyError=v$.createErrorClass(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}})});var HS=h(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.lastValueFrom=void 0;var y$=Jn();function _$(e,t){var n=typeof t=="object";return new Promise(function(r,i){var o=!1,s;e.subscribe({next:function(a){s=a,o=!0},error:i,complete:function(){o?r(s):n?r(t.defaultValue):i(new y$.EmptyError)}})})}pd.lastValueFrom=_$});var zS=h(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.firstValueFrom=void 0;var b$=Jn(),D$=eo();function w$(e,t){var n=typeof t=="object";return new Promise(function(r,i){var o=new D$.SafeSubscriber({next:function(s){r(s),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new b$.EmptyError)}});e.subscribe(o)})}gd.firstValueFrom=w$});var Ky=h(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.ArgumentOutOfRangeError=void 0;var E$=Gn();md.ArgumentOutOfRangeError=E$.createErrorClass(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})});var Xy=h(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.NotFoundError=void 0;var M$=Gn();vd.NotFoundError=M$.createErrorClass(function(e){return function(n){e(this),this.name="NotFoundError",this.message=n}})});var e_=h(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.SequenceError=void 0;var C$=Gn();yd.SequenceError=C$.createErrorClass(function(e){return function(n){e(this),this.name="SequenceError",this.message=n}})});var bd=h(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.isValidDate=void 0;function S$(e){return e instanceof Date&&!isNaN(e)}_d.isValidDate=S$});var Dd=h(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.timeout=Wr.TimeoutError=void 0;var I$=Je(),O$=bd(),A$=w(),T$=q(),x$=Gn(),N$=I(),P$=_n();Wr.TimeoutError=x$.createErrorClass(function(e){return function(n){n===void 0&&(n=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function F$(e,t){var n=O$.isValidDate(e)?{first:e}:typeof e=="number"?{each:e}:e,r=n.first,i=n.each,o=n.with,s=o===void 0?R$:o,a=n.scheduler,u=a===void 0?t??I$.asyncScheduler:a,c=n.meta,l=c===void 0?null:c;if(r==null&&i==null)throw new TypeError("No timeout provided.");return A$.operate(function(d,p){var g,m,v=null,y=0,_=function(C){m=P$.executeSchedule(p,u,function(){try{g.unsubscribe(),T$.innerFrom(s({meta:l,lastValue:v,seen:y})).subscribe(p)}catch(N){p.error(N)}},C)};g=d.subscribe(N$.createOperatorSubscriber(p,function(C){m?.unsubscribe(),y++,p.next(v=C),i>0&&_(i)},void 0,void 0,function(){m?.closed||m?.unsubscribe(),v=null})),!y&&_(r!=null?typeof r=="number"?r:+r-u.now():i)})}Wr.timeout=F$;function R$(e){throw new Wr.TimeoutError(e)}});var Kn=h(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.map=void 0;var k$=w(),j$=I();function L$(e,t){return k$.operate(function(n,r){var i=0;n.subscribe(j$.createOperatorSubscriber(r,function(o){r.next(e.call(t,o,i++))}))})}wd.map=L$});var er=h(Xn=>{"use strict";var V$=Xn&&Xn.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},q$=Xn&&Xn.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.mapOneOrManyArgs=void 0;var U$=Kn(),$$=Array.isArray;function B$(e,t){return $$(t)?e.apply(void 0,q$([],V$(t))):e(t)}function H$(e){return U$.map(function(t){return B$(e,t)})}Xn.mapOneOrManyArgs=H$});var n_=h(tr=>{"use strict";var z$=tr&&tr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},WS=tr&&tr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(tr,"__esModule",{value:!0});tr.bindCallbackInternals=void 0;var W$=Xs(),G$=ne(),Z$=ta(),Y$=er(),Q$=ea(),J$=Vl();function t_(e,t,n,r){if(n)if(W$.isScheduler(n))r=n;else return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t_(e,t,r).apply(this,i).pipe(Y$.mapOneOrManyArgs(n))};return r?function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t_(e,t).apply(this,i).pipe(Z$.subscribeOn(r),Q$.observeOn(r))}:function(){for(var i=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new J$.AsyncSubject,u=!0;return new G$.Observable(function(c){var l=a.subscribe(c);if(u){u=!1;var d=!1,p=!1;t.apply(i,WS(WS([],z$(o)),[function(){for(var g=[],m=0;m<arguments.length;m++)g[m]=arguments[m];if(e){var v=g.shift();if(v!=null){a.error(v);return}}a.next(1<g.length?g:g[0]),p=!0,d&&a.complete()}])),p&&a.complete(),d=!0}return l})}}tr.bindCallbackInternals=t_});var GS=h(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.bindCallback=void 0;var K$=n_();function X$(e,t,n){return K$.bindCallbackInternals(!1,e,t,n)}Ed.bindCallback=X$});var ZS=h(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.bindNodeCallback=void 0;var eB=n_();function tB(e,t,n){return eB.bindCallbackInternals(!0,e,t,n)}Md.bindNodeCallback=tB});var r_=h(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.argsArgArrayOrObject=void 0;var nB=Array.isArray,rB=Object.getPrototypeOf,iB=Object.prototype,oB=Object.keys;function sB(e){if(e.length===1){var t=e[0];if(nB(t))return{args:t,keys:null};if(aB(t)){var n=oB(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}Cd.argsArgArrayOrObject=sB;function aB(e){return e&&typeof e=="object"&&rB(e)===iB}});var i_=h(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.createObject=void 0;function uB(e,t){return e.reduce(function(n,r,i){return n[r]=t[i],n},{})}Sd.createObject=uB});var Id=h(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.combineLatestInit=Eo.combineLatest=void 0;var cB=ne(),lB=r_(),JS=bn(),KS=Se(),dB=er(),YS=Ke(),fB=i_(),hB=I(),pB=_n();function gB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=YS.popScheduler(e),r=YS.popResultSelector(e),i=lB.argsArgArrayOrObject(e),o=i.args,s=i.keys;if(o.length===0)return JS.from([],n);var a=new cB.Observable(XS(o,n,s?function(u){return fB.createObject(s,u)}:KS.identity));return r?a.pipe(dB.mapOneOrManyArgs(r)):a}Eo.combineLatest=gB;function XS(e,t,n){return n===void 0&&(n=KS.identity),function(r){QS(t,function(){for(var i=e.length,o=new Array(i),s=i,a=i,u=function(l){QS(t,function(){var d=JS.from(e[l],t),p=!1;d.subscribe(hB.createOperatorSubscriber(r,function(g){o[l]=g,p||(p=!0,a--),a||r.next(n(o.slice()))},function(){--s||r.complete()}))},r)},c=0;c<i;c++)u(c)},r)}}Eo.combineLatestInit=XS;function QS(e,t,n){e?pB.executeSchedule(n,e,t):t()}});var Ad=h(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.mergeInternals=void 0;var mB=q(),vB=_n(),eI=I();function yB(e,t,n,r,i,o,s,a){var u=[],c=0,l=0,d=!1,p=function(){d&&!u.length&&!c&&t.complete()},g=function(v){return c<r?m(v):u.push(v)},m=function(v){o&&t.next(v),c++;var y=!1;mB.innerFrom(n(v,l++)).subscribe(eI.createOperatorSubscriber(t,function(_){i?.(_),o?g(_):t.next(_)},function(){y=!0},void 0,function(){if(y)try{c--;for(var _=function(){var C=u.shift();s?vB.executeSchedule(t,s,function(){return m(C)}):m(C)};u.length&&c<r;)_();p()}catch(C){t.error(C)}}))};return e.subscribe(eI.createOperatorSubscriber(t,g,function(){d=!0,p()})),function(){a?.()}}Od.mergeInternals=yB});var wn=h(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.mergeMap=void 0;var _B=Kn(),bB=q(),DB=w(),wB=Ad(),EB=ee();function tI(e,t,n){return n===void 0&&(n=1/0),EB.isFunction(t)?tI(function(r,i){return _B.map(function(o,s){return t(r,o,i,s)})(bB.innerFrom(e(r,i)))},n):(typeof t=="number"&&(n=t),DB.operate(function(r,i){return wB.mergeInternals(r,i,e,n)}))}Td.mergeMap=tI});var na=h(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.mergeAll=void 0;var MB=wn(),CB=Se();function SB(e){return e===void 0&&(e=1/0),MB.mergeMap(CB.identity,e)}xd.mergeAll=SB});var Pd=h(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.concatAll=void 0;var IB=na();function OB(){return IB.mergeAll(1)}Nd.concatAll=OB});var ra=h(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.concat=void 0;var AB=Pd(),TB=Ke(),xB=bn();function NB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return AB.concatAll()(xB.from(e,TB.popScheduler(e)))}Fd.concat=NB});var ia=h(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.defer=void 0;var PB=ne(),FB=q();function RB(e){return new PB.Observable(function(t){FB.innerFrom(e()).subscribe(t)})}Rd.defer=RB});var nI=h(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.connectable=void 0;var kB=Ie(),jB=ne(),LB=ia(),VB={connector:function(){return new kB.Subject},resetOnDisconnect:!0};function qB(e,t){t===void 0&&(t=VB);var n=null,r=t.connector,i=t.resetOnDisconnect,o=i===void 0?!0:i,s=r(),a=new jB.Observable(function(u){return s.subscribe(u)});return a.connect=function(){return(!n||n.closed)&&(n=LB.defer(function(){return e}).subscribe(s),o&&n.add(function(){return s=r()})),n},a}kd.connectable=qB});var rI=h(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.forkJoin=void 0;var UB=ne(),$B=r_(),BB=q(),HB=Ke(),zB=I(),WB=er(),GB=i_();function ZB(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=HB.popResultSelector(e),r=$B.argsArgArrayOrObject(e),i=r.args,o=r.keys,s=new UB.Observable(function(a){var u=i.length;if(!u){a.complete();return}for(var c=new Array(u),l=u,d=u,p=function(m){var v=!1;BB.innerFrom(i[m]).subscribe(zB.createOperatorSubscriber(a,function(y){v||(v=!0,d--),c[m]=y},function(){return l--},void 0,function(){(!l||!v)&&(d||a.next(o?GB.createObject(o,c):c),a.complete())}))},g=0;g<u;g++)p(g)});return n?s.pipe(WB.mapOneOrManyArgs(n)):s}jd.forkJoin=ZB});var oI=h(Mo=>{"use strict";var YB=Mo&&Mo.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.fromEvent=void 0;var QB=q(),JB=ne(),KB=wn(),XB=Hl(),Gr=ee(),eH=er(),tH=["addListener","removeListener"],nH=["addEventListener","removeEventListener"],rH=["on","off"];function o_(e,t,n,r){if(Gr.isFunction(n)&&(r=n,n=void 0),r)return o_(e,t,n).pipe(eH.mapOneOrManyArgs(r));var i=YB(sH(e)?nH.map(function(a){return function(u){return e[a](t,u,n)}}):iH(e)?tH.map(iI(e,t)):oH(e)?rH.map(iI(e,t)):[],2),o=i[0],s=i[1];if(!o&&XB.isArrayLike(e))return KB.mergeMap(function(a){return o_(a,t,n)})(QB.innerFrom(e));if(!o)throw new TypeError("Invalid event target");return new JB.Observable(function(a){var u=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return a.next(1<c.length?c:c[0])};return o(u),function(){return s(u)}})}Mo.fromEvent=o_;function iI(e,t){return function(n){return function(r){return e[n](t,r)}}}function iH(e){return Gr.isFunction(e.addListener)&&Gr.isFunction(e.removeListener)}function oH(e){return Gr.isFunction(e.on)&&Gr.isFunction(e.off)}function sH(e){return Gr.isFunction(e.addEventListener)&&Gr.isFunction(e.removeEventListener)}});var aI=h(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.fromEventPattern=void 0;var aH=ne(),uH=ee(),cH=er();function sI(e,t,n){return n?sI(e,t).pipe(cH.mapOneOrManyArgs(n)):new aH.Observable(function(r){var i=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return r.next(s.length===1?s[0]:s)},o=e(i);return uH.isFunction(t)?function(){return t(i,o)}:void 0})}Ld.fromEventPattern=sI});var cI=h(Co=>{"use strict";var lH=Co&&Co.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(l){c=[6,l],i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Co,"__esModule",{value:!0});Co.generate=void 0;var uI=Se(),dH=Xs(),fH=ia(),hH=Zy();function pH(e,t,n,r,i){var o,s,a,u;arguments.length===1?(o=e,u=o.initialState,t=o.condition,n=o.iterate,s=o.resultSelector,a=s===void 0?uI.identity:s,i=o.scheduler):(u=e,!r||dH.isScheduler(r)?(a=uI.identity,i=r):a=r);function c(){var l;return lH(this,function(d){switch(d.label){case 0:l=u,d.label=1;case 1:return!t||t(l)?[4,a(l)]:[3,4];case 2:d.sent(),d.label=3;case 3:return l=n(l),[3,1];case 4:return[2]}})}return fH.defer(i?function(){return hH.scheduleIterable(c(),i)}:c)}Co.generate=pH});var lI=h(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.iif=void 0;var gH=ia();function mH(e,t,n){return gH.defer(function(){return e()?t:n})}Vd.iif=mH});var nr=h(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.timer=void 0;var vH=ne(),yH=Je(),_H=Xs(),bH=bd();function DH(e,t,n){e===void 0&&(e=0),n===void 0&&(n=yH.async);var r=-1;return t!=null&&(_H.isScheduler(t)?n=t:r=t),new vH.Observable(function(i){var o=bH.isValidDate(e)?+e-n.now():e;o<0&&(o=0);var s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}qd.timer=DH});var s_=h(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.interval=void 0;var wH=Je(),EH=nr();function MH(e,t){return e===void 0&&(e=0),t===void 0&&(t=wH.asyncScheduler),e<0&&(e=0),EH.timer(e,e,t)}Ud.interval=MH});var fI=h($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.merge=void 0;var CH=na(),SH=q(),IH=Tt(),dI=Ke(),OH=bn();function AH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=dI.popScheduler(e),r=dI.popNumber(e,1/0),i=e;return i.length?i.length===1?SH.innerFrom(i[0]):CH.mergeAll(r)(OH.from(i,n)):IH.EMPTY}$d.merge=AH});var a_=h(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.never=Zr.NEVER=void 0;var TH=ne(),xH=Ce();Zr.NEVER=new TH.Observable(xH.noop);function NH(){return Zr.NEVER}Zr.never=NH});var Yr=h(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.argsOrArgArray=void 0;var PH=Array.isArray;function FH(e){return e.length===1&&PH(e[0])?e[0]:e}Bd.argsOrArgArray=FH});var u_=h(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.onErrorResumeNext=void 0;var RH=ne(),kH=Yr(),jH=I(),hI=Ce(),LH=q();function VH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=kH.argsOrArgArray(e);return new RH.Observable(function(r){var i=0,o=function(){if(i<n.length){var s=void 0;try{s=LH.innerFrom(n[i++])}catch{o();return}var a=new jH.OperatorSubscriber(r,void 0,hI.noop,hI.noop);s.subscribe(a),a.add(o)}else r.complete()};o()})}Hd.onErrorResumeNext=VH});var pI=h(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.pairs=void 0;var qH=bn();function UH(e,t){return qH.from(Object.entries(e),t)}zd.pairs=UH});var gI=h(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.not=void 0;function $H(e,t){return function(n,r){return!e.call(t,n,r)}}Wd.not=$H});var Qr=h(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.filter=void 0;var BH=w(),HH=I();function zH(e,t){return BH.operate(function(n,r){var i=0;n.subscribe(HH.createOperatorSubscriber(r,function(o){return e.call(t,o,i++)&&r.next(o)}))})}Gd.filter=zH});var yI=h(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.partition=void 0;var WH=gI(),mI=Qr(),vI=q();function GH(e,t,n){return[mI.filter(t,n)(vI.innerFrom(e)),mI.filter(WH.not(t,n))(vI.innerFrom(e))]}Zd.partition=GH});var c_=h(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.raceInit=So.race=void 0;var ZH=ne(),_I=q(),YH=Yr(),QH=I();function JH(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=YH.argsOrArgArray(e),e.length===1?_I.innerFrom(e[0]):new ZH.Observable(bI(e))}So.race=JH;function bI(e){return function(t){for(var n=[],r=function(o){n.push(_I.innerFrom(e[o]).subscribe(QH.createOperatorSubscriber(t,function(s){if(n){for(var a=0;a<n.length;a++)a!==o&&n[a].unsubscribe();n=null}t.next(s)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}So.raceInit=bI});var DI=h(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.range=void 0;var KH=ne(),XH=Tt();function e3(e,t,n){if(t==null&&(t=e,e=0),t<=0)return XH.EMPTY;var r=t+e;return new KH.Observable(n?function(i){var o=e;return n.schedule(function(){o<r?(i.next(o++),this.schedule()):i.complete()})}:function(i){for(var o=e;o<r&&!i.closed;)i.next(o++);i.complete()})}Yd.range=e3});var wI=h(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.using=void 0;var t3=ne(),n3=q(),r3=Tt();function i3(e,t){return new t3.Observable(function(n){var r=e(),i=t(r),o=i?n3.innerFrom(i):r3.EMPTY;return o.subscribe(n),function(){r&&r.unsubscribe()}})}Qd.using=i3});var Jd=h(rr=>{"use strict";var o3=rr&&rr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},s3=rr&&rr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(rr,"__esModule",{value:!0});rr.zip=void 0;var a3=ne(),u3=q(),c3=Yr(),l3=Tt(),d3=I(),f3=Ke();function h3(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=f3.popResultSelector(e),r=c3.argsOrArgArray(e);return r.length?new a3.Observable(function(i){var o=r.map(function(){return[]}),s=r.map(function(){return!1});i.add(function(){o=s=null});for(var a=function(c){u3.innerFrom(r[c]).subscribe(d3.createOperatorSubscriber(i,function(l){if(o[c].push(l),o.every(function(p){return p.length})){var d=o.map(function(p){return p.shift()});i.next(n?n.apply(void 0,s3([],o3(d))):d),o.some(function(p,g){return!p.length&&s[g]})&&i.complete()}},function(){s[c]=!0,!o[c].length&&i.complete()}))},u=0;!i.closed&&u<r.length;u++)a(u);return function(){o=s=null}}):l3.EMPTY}rr.zip=h3});var MI=h(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0})});var l_=h(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.audit=void 0;var p3=w(),g3=q(),CI=I();function m3(e){return p3.operate(function(t,n){var r=!1,i=null,o=null,s=!1,a=function(){if(o?.unsubscribe(),o=null,r){r=!1;var c=i;i=null,n.next(c)}s&&n.complete()},u=function(){o=null,s&&n.complete()};t.subscribe(CI.createOperatorSubscriber(n,function(c){r=!0,i=c,o||g3.innerFrom(e(c)).subscribe(o=CI.createOperatorSubscriber(n,a,u))},function(){s=!0,(!r||!o||o.closed)&&n.complete()}))})}Kd.audit=m3});var SI=h(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.auditTime=void 0;var v3=Je(),y3=l_(),_3=nr();function b3(e,t){return t===void 0&&(t=v3.asyncScheduler),y3.audit(function(){return _3.timer(e,t)})}Xd.auditTime=b3});var OI=h(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.buffer=void 0;var D3=w(),w3=Ce(),II=I(),E3=q();function M3(e){return D3.operate(function(t,n){var r=[];return t.subscribe(II.createOperatorSubscriber(n,function(i){return r.push(i)},function(){n.next(r),n.complete()})),E3.innerFrom(e).subscribe(II.createOperatorSubscriber(n,function(){var i=r;r=[],n.next(i)},w3.noop)),function(){r=null}})}ef.buffer=M3});var AI=h(Io=>{"use strict";var d_=Io&&Io.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Io,"__esModule",{value:!0});Io.bufferCount=void 0;var C3=w(),S3=I(),I3=yn();function O3(e,t){return t===void 0&&(t=null),t=t??e,C3.operate(function(n,r){var i=[],o=0;n.subscribe(S3.createOperatorSubscriber(r,function(s){var a,u,c,l,d=null;o++%t===0&&i.push([]);try{for(var p=d_(i),g=p.next();!g.done;g=p.next()){var m=g.value;m.push(s),e<=m.length&&(d=d??[],d.push(m))}}catch(_){a={error:_}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}if(d)try{for(var v=d_(d),y=v.next();!y.done;y=v.next()){var m=y.value;I3.arrRemove(i,m),r.next(m)}}catch(_){c={error:_}}finally{try{y&&!y.done&&(l=v.return)&&l.call(v)}finally{if(c)throw c.error}}},function(){var s,a;try{for(var u=d_(i),c=u.next();!c.done;c=u.next()){var l=c.value;r.next(l)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}r.complete()},void 0,function(){i=null}))})}Io.bufferCount=O3});var xI=h(Oo=>{"use strict";var A3=Oo&&Oo.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.bufferTime=void 0;var T3=it(),x3=w(),N3=I(),P3=yn(),F3=Je(),R3=Ke(),TI=_n();function k3(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=(t=R3.popScheduler(r))!==null&&t!==void 0?t:F3.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return x3.operate(function(u,c){var l=[],d=!1,p=function(v){var y=v.buffer,_=v.subs;_.unsubscribe(),P3.arrRemove(l,v),c.next(y),d&&g()},g=function(){if(l){var v=new T3.Subscription;c.add(v);var y=[],_={buffer:y,subs:v};l.push(_),TI.executeSchedule(v,o,function(){return p(_)},e)}};s!==null&&s>=0?TI.executeSchedule(c,o,g,s,!0):d=!0,g();var m=N3.createOperatorSubscriber(c,function(v){var y,_,C=l.slice();try{for(var N=A3(C),P=N.next();!P.done;P=N.next()){var L=P.value,R=L.buffer;R.push(v),a<=R.length&&p(L)}}catch(ve){y={error:ve}}finally{try{P&&!P.done&&(_=N.return)&&_.call(N)}finally{if(y)throw y.error}}},function(){for(;l?.length;)c.next(l.shift().buffer);m?.unsubscribe(),c.complete(),c.unsubscribe()},void 0,function(){return l=null});u.subscribe(m)})}Oo.bufferTime=k3});var FI=h(Ao=>{"use strict";var j3=Ao&&Ao.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ao,"__esModule",{value:!0});Ao.bufferToggle=void 0;var L3=it(),V3=w(),NI=q(),f_=I(),PI=Ce(),q3=yn();function U3(e,t){return V3.operate(function(n,r){var i=[];NI.innerFrom(e).subscribe(f_.createOperatorSubscriber(r,function(o){var s=[];i.push(s);var a=new L3.Subscription,u=function(){q3.arrRemove(i,s),r.next(s),a.unsubscribe()};a.add(NI.innerFrom(t(o)).subscribe(f_.createOperatorSubscriber(r,u,PI.noop)))},PI.noop)),n.subscribe(f_.createOperatorSubscriber(r,function(o){var s,a;try{for(var u=j3(i),c=u.next();!c.done;c=u.next()){var l=c.value;l.push(o)}}catch(d){s={error:d}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}},function(){for(;i.length>0;)r.next(i.shift());r.complete()}))})}Ao.bufferToggle=U3});var kI=h(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.bufferWhen=void 0;var $3=w(),B3=Ce(),RI=I(),H3=q();function z3(e){return $3.operate(function(t,n){var r=null,i=null,o=function(){i?.unsubscribe();var s=r;r=[],s&&n.next(s),H3.innerFrom(e()).subscribe(i=RI.createOperatorSubscriber(n,o,B3.noop))};o(),t.subscribe(RI.createOperatorSubscriber(n,function(s){return r?.push(s)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=i=null}))})}tf.bufferWhen=z3});var LI=h(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.catchError=void 0;var W3=q(),G3=I(),Z3=w();function jI(e){return Z3.operate(function(t,n){var r=null,i=!1,o;r=t.subscribe(G3.createOperatorSubscriber(n,void 0,void 0,function(s){o=W3.innerFrom(e(s,jI(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}nf.catchError=jI});var h_=h(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.scanInternals=void 0;var Y3=I();function Q3(e,t,n,r,i){return function(o,s){var a=n,u=t,c=0;o.subscribe(Y3.createOperatorSubscriber(s,function(l){var d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&function(){a&&s.next(u),s.complete()}))}}rf.scanInternals=Q3});var To=h(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.reduce=void 0;var J3=h_(),K3=w();function X3(e,t){return K3.operate(J3.scanInternals(e,t,arguments.length>=2,!1,!0))}of.reduce=X3});var p_=h(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.toArray=void 0;var e4=To(),t4=w(),n4=function(e,t){return e.push(t),e};function r4(){return t4.operate(function(e,t){e4.reduce(n4,[])(e).subscribe(t)})}sf.toArray=r4});var g_=h(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.joinAllInternals=void 0;var i4=Se(),o4=er(),s4=Ys(),a4=wn(),u4=p_();function c4(e,t){return s4.pipe(u4.toArray(),a4.mergeMap(function(n){return e(n)}),t?o4.mapOneOrManyArgs(t):i4.identity)}af.joinAllInternals=c4});var m_=h(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.combineLatestAll=void 0;var l4=Id(),d4=g_();function f4(e){return d4.joinAllInternals(l4.combineLatest,e)}uf.combineLatestAll=f4});var VI=h(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.combineAll=void 0;var h4=m_();cf.combineAll=h4.combineLatestAll});var BI=h(ir=>{"use strict";var qI=ir&&ir.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},UI=ir&&ir.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(ir,"__esModule",{value:!0});ir.combineLatest=void 0;var p4=Id(),g4=w(),m4=Yr(),v4=er(),y4=Ys(),_4=Ke();function $I(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=_4.popResultSelector(e);return n?y4.pipe($I.apply(void 0,UI([],qI(e))),v4.mapOneOrManyArgs(n)):g4.operate(function(r,i){p4.combineLatestInit(UI([r],qI(m4.argsOrArgArray(e))))(i)})}ir.combineLatest=$I});var HI=h(or=>{"use strict";var b4=or&&or.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},D4=or&&or.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(or,"__esModule",{value:!0});or.combineLatestWith=void 0;var w4=BI();function E4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return w4.combineLatest.apply(void 0,D4([],b4(e)))}or.combineLatestWith=E4});var v_=h(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.concatMap=void 0;var zI=wn(),M4=ee();function C4(e,t){return M4.isFunction(t)?zI.mergeMap(e,t,1):zI.mergeMap(e,1)}lf.concatMap=C4});var GI=h(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.concatMapTo=void 0;var WI=v_(),S4=ee();function I4(e,t){return S4.isFunction(t)?WI.concatMap(function(){return e},t):WI.concatMap(function(){return e})}df.concatMapTo=I4});var ZI=h(sr=>{"use strict";var O4=sr&&sr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},A4=sr&&sr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(sr,"__esModule",{value:!0});sr.concat=void 0;var T4=w(),x4=Pd(),N4=Ke(),P4=bn();function F4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=N4.popScheduler(e);return T4.operate(function(r,i){x4.concatAll()(P4.from(A4([r],O4(e)),n)).subscribe(i)})}sr.concat=F4});var YI=h(ar=>{"use strict";var R4=ar&&ar.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},k4=ar&&ar.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(ar,"__esModule",{value:!0});ar.concatWith=void 0;var j4=ZI();function L4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return j4.concat.apply(void 0,k4([],R4(e)))}ar.concatWith=L4});var QI=h(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.fromSubscribable=void 0;var V4=ne();function q4(e){return new V4.Observable(function(t){return e.subscribe(t)})}ff.fromSubscribable=q4});var pf=h(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.connect=void 0;var U4=Ie(),$4=q(),B4=w(),H4=QI(),z4={connector:function(){return new U4.Subject}};function W4(e,t){t===void 0&&(t=z4);var n=t.connector;return B4.operate(function(r,i){var o=n();$4.innerFrom(e(H4.fromSubscribable(o))).subscribe(i),i.add(r.subscribe(o))})}hf.connect=W4});var JI=h(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.count=void 0;var G4=To();function Z4(e){return G4.reduce(function(t,n,r){return!e||e(n,r)?t+1:t},0)}gf.count=Z4});var XI=h(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.debounce=void 0;var Y4=w(),Q4=Ce(),KI=I(),J4=q();function K4(e){return Y4.operate(function(t,n){var r=!1,i=null,o=null,s=function(){if(o?.unsubscribe(),o=null,r){r=!1;var a=i;i=null,n.next(a)}};t.subscribe(KI.createOperatorSubscriber(n,function(a){o?.unsubscribe(),r=!0,i=a,o=KI.createOperatorSubscriber(n,s,Q4.noop),J4.innerFrom(e(a)).subscribe(o)},function(){s(),n.complete()},void 0,function(){i=o=null}))})}mf.debounce=K4});var eO=h(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.debounceTime=void 0;var X4=Je(),e8=w(),t8=I();function n8(e,t){return t===void 0&&(t=X4.asyncScheduler),e8.operate(function(n,r){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var c=o;o=null,r.next(c)}};function u(){var c=s+e,l=t.now();if(l<c){i=this.schedule(void 0,c-l),r.add(i);return}a()}n.subscribe(t8.createOperatorSubscriber(r,function(c){o=c,s=t.now(),i||(i=t.schedule(u,e),r.add(i))},function(){a(),r.complete()},void 0,function(){o=i=null}))})}vf.debounceTime=n8});var oa=h(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.defaultIfEmpty=void 0;var r8=w(),i8=I();function o8(e){return r8.operate(function(t,n){var r=!1;t.subscribe(i8.createOperatorSubscriber(n,function(i){r=!0,n.next(i)},function(){r||n.next(e),n.complete()}))})}yf.defaultIfEmpty=o8});var sa=h(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.take=void 0;var s8=Tt(),a8=w(),u8=I();function c8(e){return e<=0?function(){return s8.EMPTY}:a8.operate(function(t,n){var r=0;t.subscribe(u8.createOperatorSubscriber(n,function(i){++r<=e&&(n.next(i),e<=r&&n.complete())}))})}_f.take=c8});var y_=h(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.ignoreElements=void 0;var l8=w(),d8=I(),f8=Ce();function h8(){return l8.operate(function(e,t){e.subscribe(d8.createOperatorSubscriber(t,f8.noop))})}bf.ignoreElements=h8});var __=h(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.mapTo=void 0;var p8=Kn();function g8(e){return p8.map(function(){return e})}Df.mapTo=g8});var b_=h(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.delayWhen=void 0;var m8=ra(),tO=sa(),v8=y_(),y8=__(),_8=wn(),b8=q();function nO(e,t){return t?function(n){return m8.concat(t.pipe(tO.take(1),v8.ignoreElements()),n.pipe(nO(e)))}:_8.mergeMap(function(n,r){return b8.innerFrom(e(n,r)).pipe(tO.take(1),y8.mapTo(n))})}wf.delayWhen=nO});var rO=h(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.delay=void 0;var D8=Je(),w8=b_(),E8=nr();function M8(e,t){t===void 0&&(t=D8.asyncScheduler);var n=E8.timer(e,t);return w8.delayWhen(function(){return n})}Ef.delay=M8});var iO=h(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.dematerialize=void 0;var C8=dd(),S8=w(),I8=I();function O8(){return S8.operate(function(e,t){e.subscribe(I8.createOperatorSubscriber(t,function(n){return C8.observeNotification(n,t)}))})}Mf.dematerialize=O8});var sO=h(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.distinct=void 0;var A8=w(),oO=I(),T8=Ce(),x8=q();function N8(e,t){return A8.operate(function(n,r){var i=new Set;n.subscribe(oO.createOperatorSubscriber(r,function(o){var s=e?e(o):o;i.has(s)||(i.add(s),r.next(o))})),t&&x8.innerFrom(t).subscribe(oO.createOperatorSubscriber(r,function(){return i.clear()},T8.noop))})}Cf.distinct=N8});var D_=h(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.distinctUntilChanged=void 0;var P8=Se(),F8=w(),R8=I();function k8(e,t){return t===void 0&&(t=P8.identity),e=e??j8,F8.operate(function(n,r){var i,o=!0;n.subscribe(R8.createOperatorSubscriber(r,function(s){var a=t(s);(o||!e(i,a))&&(o=!1,i=a,r.next(s))}))})}Sf.distinctUntilChanged=k8;function j8(e,t){return e===t}});var aO=h(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.distinctUntilKeyChanged=void 0;var L8=D_();function V8(e,t){return L8.distinctUntilChanged(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}If.distinctUntilKeyChanged=V8});var aa=h(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.throwIfEmpty=void 0;var q8=Jn(),U8=w(),$8=I();function B8(e){return e===void 0&&(e=H8),U8.operate(function(t,n){var r=!1;t.subscribe($8.createOperatorSubscriber(n,function(i){r=!0,n.next(i)},function(){return r?n.complete():n.error(e())}))})}Of.throwIfEmpty=B8;function H8(){return new q8.EmptyError}});var cO=h(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.elementAt=void 0;var uO=Ky(),z8=Qr(),W8=aa(),G8=oa(),Z8=sa();function Y8(e,t){if(e<0)throw new uO.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(r){return r.pipe(z8.filter(function(i,o){return o===e}),Z8.take(1),n?G8.defaultIfEmpty(t):W8.throwIfEmpty(function(){return new uO.ArgumentOutOfRangeError}))}}Af.elementAt=Y8});var lO=h(ur=>{"use strict";var Q8=ur&&ur.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},J8=ur&&ur.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(ur,"__esModule",{value:!0});ur.endWith=void 0;var K8=ra(),X8=cd();function ez(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(n){return K8.concat(n,X8.of.apply(void 0,J8([],Q8(e))))}}ur.endWith=ez});var dO=h(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.every=void 0;var tz=w(),nz=I();function rz(e,t){return tz.operate(function(n,r){var i=0;n.subscribe(nz.createOperatorSubscriber(r,function(o){e.call(t,o,i++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}Tf.every=rz});var w_=h(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.exhaustMap=void 0;var iz=Kn(),fO=q(),oz=w(),hO=I();function pO(e,t){return t?function(n){return n.pipe(pO(function(r,i){return fO.innerFrom(e(r,i)).pipe(iz.map(function(o,s){return t(r,o,i,s)}))}))}:oz.operate(function(n,r){var i=0,o=null,s=!1;n.subscribe(hO.createOperatorSubscriber(r,function(a){o||(o=hO.createOperatorSubscriber(r,void 0,function(){o=null,s&&r.complete()}),fO.innerFrom(e(a,i++)).subscribe(o))},function(){s=!0,!o&&r.complete()}))})}xf.exhaustMap=pO});var E_=h(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.exhaustAll=void 0;var sz=w_(),az=Se();function uz(){return sz.exhaustMap(az.identity)}Nf.exhaustAll=uz});var gO=h(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.exhaust=void 0;var cz=E_();Pf.exhaust=cz.exhaustAll});var mO=h(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.expand=void 0;var lz=w(),dz=Ad();function fz(e,t,n){return t===void 0&&(t=1/0),t=(t||0)<1?1/0:t,lz.operate(function(r,i){return dz.mergeInternals(r,i,e,t,void 0,!0,n)})}Ff.expand=fz});var vO=h(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.finalize=void 0;var hz=w();function pz(e){return hz.operate(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}Rf.finalize=pz});var M_=h(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.createFind=xo.find=void 0;var gz=w(),mz=I();function vz(e,t){return gz.operate(yO(e,t,"value"))}xo.find=vz;function yO(e,t,n){var r=n==="index";return function(i,o){var s=0;i.subscribe(mz.createOperatorSubscriber(o,function(a){var u=s++;e.call(t,a,u,i)&&(o.next(r?u:a),o.complete())},function(){o.next(r?-1:void 0),o.complete()}))}}xo.createFind=yO});var _O=h(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.findIndex=void 0;var yz=w(),_z=M_();function bz(e,t){return yz.operate(_z.createFind(e,t,"index"))}kf.findIndex=bz});var bO=h(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.first=void 0;var Dz=Jn(),wz=Qr(),Ez=sa(),Mz=oa(),Cz=aa(),Sz=Se();function Iz(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?wz.filter(function(i,o){return e(i,o,r)}):Sz.identity,Ez.take(1),n?Mz.defaultIfEmpty(t):Cz.throwIfEmpty(function(){return new Dz.EmptyError}))}}jf.first=Iz});var wO=h(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.groupBy=void 0;var Oz=ne(),Az=q(),Tz=Ie(),xz=w(),DO=I();function Nz(e,t,n,r){return xz.operate(function(i,o){var s;!t||typeof t=="function"?s=t:(n=t.duration,s=t.element,r=t.connector);var a=new Map,u=function(m){a.forEach(m),m(o)},c=function(m){return u(function(v){return v.error(m)})},l=0,d=!1,p=new DO.OperatorSubscriber(o,function(m){try{var v=e(m),y=a.get(v);if(!y){a.set(v,y=r?r():new Tz.Subject);var _=g(v,y);if(o.next(_),n){var C=DO.createOperatorSubscriber(y,function(){y.complete(),C?.unsubscribe()},void 0,void 0,function(){return a.delete(v)});p.add(Az.innerFrom(n(_)).subscribe(C))}}y.next(s?s(m):m)}catch(N){c(N)}},function(){return u(function(m){return m.complete()})},c,function(){return a.clear()},function(){return d=!0,l===0});i.subscribe(p);function g(m,v){var y=new Oz.Observable(function(_){l++;var C=v.subscribe(_);return function(){C.unsubscribe(),--l===0&&d&&p.unsubscribe()}});return y.key=m,y}})}Lf.groupBy=Nz});var EO=h(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.isEmpty=void 0;var Pz=w(),Fz=I();function Rz(){return Pz.operate(function(e,t){e.subscribe(Fz.createOperatorSubscriber(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}Vf.isEmpty=Rz});var C_=h(No=>{"use strict";var kz=No&&No.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(No,"__esModule",{value:!0});No.takeLast=void 0;var jz=Tt(),Lz=w(),Vz=I();function qz(e){return e<=0?function(){return jz.EMPTY}:Lz.operate(function(t,n){var r=[];t.subscribe(Vz.createOperatorSubscriber(n,function(i){r.push(i),e<r.length&&r.shift()},function(){var i,o;try{for(var s=kz(r),a=s.next();!a.done;a=s.next()){var u=a.value;n.next(u)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}n.complete()},void 0,function(){r=null}))})}No.takeLast=qz});var MO=h(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.last=void 0;var Uz=Jn(),$z=Qr(),Bz=C_(),Hz=aa(),zz=oa(),Wz=Se();function Gz(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?$z.filter(function(i,o){return e(i,o,r)}):Wz.identity,Bz.takeLast(1),n?zz.defaultIfEmpty(t):Hz.throwIfEmpty(function(){return new Uz.EmptyError}))}}qf.last=Gz});var CO=h(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.materialize=void 0;var S_=dd(),Zz=w(),Yz=I();function Qz(){return Zz.operate(function(e,t){e.subscribe(Yz.createOperatorSubscriber(t,function(n){t.next(S_.Notification.createNext(n))},function(){t.next(S_.Notification.createComplete()),t.complete()},function(n){t.next(S_.Notification.createError(n)),t.complete()}))})}Uf.materialize=Qz});var SO=h($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.max=void 0;var Jz=To(),Kz=ee();function Xz(e){return Jz.reduce(Kz.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(t,n){return t>n?t:n})}$f.max=Xz});var IO=h(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.flatMap=void 0;var eW=wn();Bf.flatMap=eW.mergeMap});var AO=h(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.mergeMapTo=void 0;var OO=wn(),tW=ee();function nW(e,t,n){return n===void 0&&(n=1/0),tW.isFunction(t)?OO.mergeMap(function(){return e},t,n):(typeof t=="number"&&(n=t),OO.mergeMap(function(){return e},n))}Hf.mergeMapTo=nW});var TO=h(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.mergeScan=void 0;var rW=w(),iW=Ad();function oW(e,t,n){return n===void 0&&(n=1/0),rW.operate(function(r,i){var o=t;return iW.mergeInternals(r,i,function(s,a){return e(o,s,a)},n,function(s){o=s},!1,void 0,function(){return o=null})})}zf.mergeScan=oW});var NO=h(cr=>{"use strict";var sW=cr&&cr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},aW=cr&&cr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(cr,"__esModule",{value:!0});cr.merge=void 0;var uW=w(),cW=Yr(),lW=na(),xO=Ke(),dW=bn();function fW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=xO.popScheduler(e),r=xO.popNumber(e,1/0);return e=cW.argsOrArgArray(e),uW.operate(function(i,o){lW.mergeAll(r)(dW.from(aW([i],sW(e)),n)).subscribe(o)})}cr.merge=fW});var PO=h(lr=>{"use strict";var hW=lr&&lr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},pW=lr&&lr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(lr,"__esModule",{value:!0});lr.mergeWith=void 0;var gW=NO();function mW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gW.merge.apply(void 0,pW([],hW(e)))}lr.mergeWith=mW});var FO=h(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.min=void 0;var vW=To(),yW=ee();function _W(e){return vW.reduce(yW.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(t,n){return t<n?t:n})}Wf.min=_W});var Zf=h(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.multicast=void 0;var bW=Qs(),RO=ee(),DW=pf();function wW(e,t){var n=RO.isFunction(e)?e:function(){return e};return RO.isFunction(t)?DW.connect(t,{connector:n}):function(r){return new bW.ConnectableObservable(r,n)}}Gf.multicast=wW});var jO=h(Qt=>{"use strict";var EW=Qt&&Qt.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},MW=Qt&&Qt.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.onErrorResumeNext=Qt.onErrorResumeNextWith=void 0;var CW=Yr(),SW=u_();function kO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=CW.argsOrArgArray(e);return function(r){return SW.onErrorResumeNext.apply(void 0,MW([r],EW(n)))}}Qt.onErrorResumeNextWith=kO;Qt.onErrorResumeNext=kO});var LO=h(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.pairwise=void 0;var IW=w(),OW=I();function AW(){return IW.operate(function(e,t){var n,r=!1;e.subscribe(OW.createOperatorSubscriber(t,function(i){var o=n;n=i,r&&t.next([o,i]),r=!0}))})}Yf.pairwise=AW});var VO=h(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.pluck=void 0;var TW=Kn();function xW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(n===0)throw new Error("list of properties cannot be empty.");return TW.map(function(r){for(var i=r,o=0;o<n;o++){var s=i?.[e[o]];if(typeof s<"u")i=s;else return}return i})}Qf.pluck=xW});var qO=h(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.publish=void 0;var NW=Ie(),PW=Zf(),FW=pf();function RW(e){return e?function(t){return FW.connect(e)(t)}:function(t){return PW.multicast(new NW.Subject)(t)}}Jf.publish=RW});var UO=h(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.publishBehavior=void 0;var kW=Ry(),jW=Qs();function LW(e){return function(t){var n=new kW.BehaviorSubject(e);return new jW.ConnectableObservable(t,function(){return n})}}Kf.publishBehavior=LW});var $O=h(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.publishLast=void 0;var VW=Vl(),qW=Qs();function UW(){return function(e){var t=new VW.AsyncSubject;return new qW.ConnectableObservable(e,function(){return t})}}Xf.publishLast=UW});var HO=h(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.publishReplay=void 0;var $W=Ll(),BW=Zf(),BO=ee();function HW(e,t,n,r){n&&!BO.isFunction(n)&&(r=n);var i=BO.isFunction(n)?n:void 0;return function(o){return BW.multicast(new $W.ReplaySubject(e,t,r),i)(o)}}eh.publishReplay=HW});var zO=h(dr=>{"use strict";var zW=dr&&dr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},WW=dr&&dr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(dr,"__esModule",{value:!0});dr.raceWith=void 0;var GW=c_(),ZW=w(),YW=Se();function QW(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?ZW.operate(function(n,r){GW.raceInit(WW([n],zW(e)))(r)}):YW.identity}dr.raceWith=QW});var GO=h(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.repeat=void 0;var JW=Tt(),KW=w(),WO=I(),XW=q(),eG=nr();function tG(e){var t,n=1/0,r;return e!=null&&(typeof e=="object"?(t=e.count,n=t===void 0?1/0:t,r=e.delay):n=e),n<=0?function(){return JW.EMPTY}:KW.operate(function(i,o){var s=0,a,u=function(){if(a?.unsubscribe(),a=null,r!=null){var l=typeof r=="number"?eG.timer(r):XW.innerFrom(r(s)),d=WO.createOperatorSubscriber(o,function(){d.unsubscribe(),c()});l.subscribe(d)}else c()},c=function(){var l=!1;a=i.subscribe(WO.createOperatorSubscriber(o,void 0,function(){++s<n?a?u():l=!0:o.complete()})),l&&u()};c()})}th.repeat=tG});var YO=h(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.repeatWhen=void 0;var nG=q(),rG=Ie(),iG=w(),ZO=I();function oG(e){return iG.operate(function(t,n){var r,i=!1,o,s=!1,a=!1,u=function(){return a&&s&&(n.complete(),!0)},c=function(){return o||(o=new rG.Subject,nG.innerFrom(e(o)).subscribe(ZO.createOperatorSubscriber(n,function(){r?l():i=!0},function(){s=!0,u()}))),o},l=function(){a=!1,r=t.subscribe(ZO.createOperatorSubscriber(n,void 0,function(){a=!0,!u()&&c().next()})),i&&(r.unsubscribe(),r=null,i=!1,l())};l()})}nh.repeatWhen=oG});var JO=h(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.retry=void 0;var sG=w(),QO=I(),aG=Se(),uG=nr(),cG=q();function lG(e){e===void 0&&(e=1/0);var t;e&&typeof e=="object"?t=e:t={count:e};var n=t.count,r=n===void 0?1/0:n,i=t.delay,o=t.resetOnSuccess,s=o===void 0?!1:o;return r<=0?aG.identity:sG.operate(function(a,u){var c=0,l,d=function(){var p=!1;l=a.subscribe(QO.createOperatorSubscriber(u,function(g){s&&(c=0),u.next(g)},void 0,function(g){if(c++<r){var m=function(){l?(l.unsubscribe(),l=null,d()):p=!0};if(i!=null){var v=typeof i=="number"?uG.timer(i):cG.innerFrom(i(g,c)),y=QO.createOperatorSubscriber(u,function(){y.unsubscribe(),m()},function(){u.complete()});v.subscribe(y)}else m()}else u.error(g)})),p&&(l.unsubscribe(),l=null,d())};d()})}rh.retry=lG});var XO=h(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.retryWhen=void 0;var dG=q(),fG=Ie(),hG=w(),KO=I();function pG(e){return hG.operate(function(t,n){var r,i=!1,o,s=function(){r=t.subscribe(KO.createOperatorSubscriber(n,void 0,void 0,function(a){o||(o=new fG.Subject,dG.innerFrom(e(o)).subscribe(KO.createOperatorSubscriber(n,function(){return r?s():i=!0}))),o&&o.next(a)})),i&&(r.unsubscribe(),r=null,i=!1,s())};s()})}ih.retryWhen=pG});var I_=h(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.sample=void 0;var gG=q(),mG=w(),vG=Ce(),eA=I();function yG(e){return mG.operate(function(t,n){var r=!1,i=null;t.subscribe(eA.createOperatorSubscriber(n,function(o){r=!0,i=o})),gG.innerFrom(e).subscribe(eA.createOperatorSubscriber(n,function(){if(r){r=!1;var o=i;i=null,n.next(o)}},vG.noop))})}oh.sample=yG});var tA=h(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.sampleTime=void 0;var _G=Je(),bG=I_(),DG=s_();function wG(e,t){return t===void 0&&(t=_G.asyncScheduler),bG.sample(DG.interval(e,t))}sh.sampleTime=wG});var nA=h(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.scan=void 0;var EG=w(),MG=h_();function CG(e,t){return EG.operate(MG.scanInternals(e,t,arguments.length>=2,!0))}ah.scan=CG});var iA=h(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.sequenceEqual=void 0;var SG=w(),IG=I(),OG=q();function AG(e,t){return t===void 0&&(t=function(n,r){return n===r}),SG.operate(function(n,r){var i=rA(),o=rA(),s=function(u){r.next(u),r.complete()},a=function(u,c){var l=IG.createOperatorSubscriber(r,function(d){var p=c.buffer,g=c.complete;p.length===0?g?s(!1):u.buffer.push(d):!t(d,p.shift())&&s(!1)},function(){u.complete=!0;var d=c.complete,p=c.buffer;d&&s(p.length===0),l?.unsubscribe()});return l};n.subscribe(a(i,o)),OG.innerFrom(e).subscribe(a(o,i))})}uh.sequenceEqual=AG;function rA(){return{buffer:[],complete:!1}}});var A_=h(fr=>{"use strict";var TG=fr&&fr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},xG=fr&&fr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(fr,"__esModule",{value:!0});fr.share=void 0;var oA=q(),NG=Ie(),sA=eo(),PG=w();function FG(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new NG.Subject}:t,r=e.resetOnError,i=r===void 0?!0:r,o=e.resetOnComplete,s=o===void 0?!0:o,a=e.resetOnRefCountZero,u=a===void 0?!0:a;return function(c){var l,d,p,g=0,m=!1,v=!1,y=function(){d?.unsubscribe(),d=void 0},_=function(){y(),l=p=void 0,m=v=!1},C=function(){var N=l;_(),N?.unsubscribe()};return PG.operate(function(N,P){g++,!v&&!m&&y();var L=p=p??n();P.add(function(){g--,g===0&&!v&&!m&&(d=O_(C,u))}),L.subscribe(P),!l&&g>0&&(l=new sA.SafeSubscriber({next:function(R){return L.next(R)},error:function(R){v=!0,y(),d=O_(_,i,R),L.error(R)},complete:function(){m=!0,y(),d=O_(_,s),L.complete()}}),oA.innerFrom(N).subscribe(l))})(c)}}fr.share=FG;function O_(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var i=new sA.SafeSubscriber({next:function(){i.unsubscribe(),e()}});return oA.innerFrom(t.apply(void 0,xG([],TG(n)))).subscribe(i)}}});var aA=h(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.shareReplay=void 0;var RG=Ll(),kG=A_();function jG(e,t,n){var r,i,o,s,a=!1;return e&&typeof e=="object"?(r=e.bufferSize,s=r===void 0?1/0:r,i=e.windowTime,t=i===void 0?1/0:i,o=e.refCount,a=o===void 0?!1:o,n=e.scheduler):s=e??1/0,kG.share({connector:function(){return new RG.ReplaySubject(s,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}ch.shareReplay=jG});var uA=h(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.single=void 0;var LG=Jn(),VG=e_(),qG=Xy(),UG=w(),$G=I();function BG(e){return UG.operate(function(t,n){var r=!1,i,o=!1,s=0;t.subscribe($G.createOperatorSubscriber(n,function(a){o=!0,(!e||e(a,s++,t))&&(r&&n.error(new VG.SequenceError("Too many matching values")),r=!0,i=a)},function(){r?(n.next(i),n.complete()):n.error(o?new qG.NotFoundError("No matching values"):new LG.EmptyError)}))})}lh.single=BG});var cA=h(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.skip=void 0;var HG=Qr();function zG(e){return HG.filter(function(t,n){return e<=n})}dh.skip=zG});var lA=h(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.skipLast=void 0;var WG=Se(),GG=w(),ZG=I();function YG(e){return e<=0?WG.identity:GG.operate(function(t,n){var r=new Array(e),i=0;return t.subscribe(ZG.createOperatorSubscriber(n,function(o){var s=i++;if(s<e)r[s]=o;else{var a=s%e,u=r[a];r[a]=o,n.next(u)}})),function(){r=null}})}fh.skipLast=YG});var fA=h(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.skipUntil=void 0;var QG=w(),dA=I(),JG=q(),KG=Ce();function XG(e){return QG.operate(function(t,n){var r=!1,i=dA.createOperatorSubscriber(n,function(){i?.unsubscribe(),r=!0},KG.noop);JG.innerFrom(e).subscribe(i),t.subscribe(dA.createOperatorSubscriber(n,function(o){return r&&n.next(o)}))})}hh.skipUntil=XG});var hA=h(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.skipWhile=void 0;var e6=w(),t6=I();function n6(e){return e6.operate(function(t,n){var r=!1,i=0;t.subscribe(t6.createOperatorSubscriber(n,function(o){return(r||(r=!e(o,i++)))&&n.next(o)}))})}ph.skipWhile=n6});var gA=h(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.startWith=void 0;var pA=ra(),r6=Ke(),i6=w();function o6(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r6.popScheduler(e);return i6.operate(function(r,i){(n?pA.concat(e,r,n):pA.concat(e,r)).subscribe(i)})}gh.startWith=o6});var ua=h(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.switchMap=void 0;var s6=q(),a6=w(),mA=I();function u6(e,t){return a6.operate(function(n,r){var i=null,o=0,s=!1,a=function(){return s&&!i&&r.complete()};n.subscribe(mA.createOperatorSubscriber(r,function(u){i?.unsubscribe();var c=0,l=o++;s6.innerFrom(e(u,l)).subscribe(i=mA.createOperatorSubscriber(r,function(d){return r.next(t?t(u,d,l,c++):d)},function(){i=null,a()}))},function(){s=!0,a()}))})}mh.switchMap=u6});var vA=h(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.switchAll=void 0;var c6=ua(),l6=Se();function d6(){return c6.switchMap(l6.identity)}vh.switchAll=d6});var _A=h(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.switchMapTo=void 0;var yA=ua(),f6=ee();function h6(e,t){return f6.isFunction(t)?yA.switchMap(function(){return e},t):yA.switchMap(function(){return e})}yh.switchMapTo=h6});var bA=h(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.switchScan=void 0;var p6=ua(),g6=w();function m6(e,t){return g6.operate(function(n,r){var i=t;return p6.switchMap(function(o,s){return e(i,o,s)},function(o,s){return i=s,s})(n).subscribe(r),function(){i=null}})}_h.switchScan=m6});var DA=h(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.takeUntil=void 0;var v6=w(),y6=I(),_6=q(),b6=Ce();function D6(e){return v6.operate(function(t,n){_6.innerFrom(e).subscribe(y6.createOperatorSubscriber(n,function(){return n.complete()},b6.noop)),!n.closed&&t.subscribe(n)})}bh.takeUntil=D6});var wA=h(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.takeWhile=void 0;var w6=w(),E6=I();function M6(e,t){return t===void 0&&(t=!1),w6.operate(function(n,r){var i=0;n.subscribe(E6.createOperatorSubscriber(r,function(o){var s=e(o,i++);(s||t)&&r.next(o),!s&&r.complete()}))})}Dh.takeWhile=M6});var EA=h(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.tap=void 0;var C6=ee(),S6=w(),I6=I(),O6=Se();function A6(e,t,n){var r=C6.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return r?S6.operate(function(i,o){var s;(s=r.subscribe)===null||s===void 0||s.call(r);var a=!0;i.subscribe(I6.createOperatorSubscriber(o,function(u){var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},function(){var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},function(u){var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},function(){var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):O6.identity}wh.tap=A6});var T_=h(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.throttle=void 0;var T6=w(),MA=I(),x6=q();function N6(e,t){return T6.operate(function(n,r){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,u=a===void 0?!1:a,c=!1,l=null,d=null,p=!1,g=function(){d?.unsubscribe(),d=null,u&&(y(),p&&r.complete())},m=function(){d=null,p&&r.complete()},v=function(_){return d=x6.innerFrom(e(_)).subscribe(MA.createOperatorSubscriber(r,g,m))},y=function(){if(c){c=!1;var _=l;l=null,r.next(_),!p&&v(_)}};n.subscribe(MA.createOperatorSubscriber(r,function(_){c=!0,l=_,!(d&&!d.closed)&&(s?y():v(_))},function(){p=!0,!(u&&c&&d&&!d.closed)&&r.complete()}))})}Eh.throttle=N6});var CA=h(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.throttleTime=void 0;var P6=Je(),F6=T_(),R6=nr();function k6(e,t,n){t===void 0&&(t=P6.asyncScheduler);var r=R6.timer(e,t);return F6.throttle(function(){return r},n)}Mh.throttleTime=k6});var IA=h(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.TimeInterval=Po.timeInterval=void 0;var j6=Je(),L6=w(),V6=I();function q6(e){return e===void 0&&(e=j6.asyncScheduler),L6.operate(function(t,n){var r=e.now();t.subscribe(V6.createOperatorSubscriber(n,function(i){var o=e.now(),s=o-r;r=o,n.next(new SA(i,s))}))})}Po.timeInterval=q6;var SA=function(){function e(t,n){this.value=t,this.interval=n}return e}();Po.TimeInterval=SA});var OA=h(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.timeoutWith=void 0;var U6=Je(),$6=bd(),B6=Dd();function H6(e,t,n){var r,i,o;if(n=n??U6.async,$6.isValidDate(e)?r=e:typeof e=="number"&&(i=e),t)o=function(){return t};else throw new TypeError("No observable provided to switch to");if(r==null&&i==null)throw new TypeError("No timeout provided.");return B6.timeout({first:r,each:i,scheduler:n,with:o})}Ch.timeoutWith=H6});var AA=h(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.timestamp=void 0;var z6=jl(),W6=Kn();function G6(e){return e===void 0&&(e=z6.dateTimestampProvider),W6.map(function(t){return{value:t,timestamp:e.now()}})}Sh.timestamp=G6});var NA=h(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.window=void 0;var TA=Ie(),Z6=w(),xA=I(),Y6=Ce(),Q6=q();function J6(e){return Z6.operate(function(t,n){var r=new TA.Subject;n.next(r.asObservable());var i=function(o){r.error(o),n.error(o)};return t.subscribe(xA.createOperatorSubscriber(n,function(o){return r?.next(o)},function(){r.complete(),n.complete()},i)),Q6.innerFrom(e).subscribe(xA.createOperatorSubscriber(n,function(){r.complete(),n.next(r=new TA.Subject)},Y6.noop,i)),function(){r?.unsubscribe(),r=null}})}Ih.window=J6});var FA=h(Fo=>{"use strict";var K6=Fo&&Fo.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.windowCount=void 0;var PA=Ie(),X6=w(),e5=I();function t5(e,t){t===void 0&&(t=0);var n=t>0?t:e;return X6.operate(function(r,i){var o=[new PA.Subject],s=[],a=0;i.next(o[0].asObservable()),r.subscribe(e5.createOperatorSubscriber(i,function(u){var c,l;try{for(var d=K6(o),p=d.next();!p.done;p=d.next()){var g=p.value;g.next(u)}}catch(y){c={error:y}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(c)throw c.error}}var m=a-e+1;if(m>=0&&m%n===0&&o.shift().complete(),++a%n===0){var v=new PA.Subject;o.push(v),i.next(v.asObservable())}},function(){for(;o.length>0;)o.shift().complete();i.complete()},function(u){for(;o.length>0;)o.shift().error(u);i.error(u)},function(){s=null,o=null}))})}Fo.windowCount=t5});var kA=h(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.windowTime=void 0;var n5=Ie(),r5=Je(),i5=it(),o5=w(),s5=I(),a5=yn(),u5=Ke(),RA=_n();function c5(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=(t=u5.popScheduler(r))!==null&&t!==void 0?t:r5.asyncScheduler,s=(n=r[0])!==null&&n!==void 0?n:null,a=r[1]||1/0;return o5.operate(function(u,c){var l=[],d=!1,p=function(y){var _=y.window,C=y.subs;_.complete(),C.unsubscribe(),a5.arrRemove(l,y),d&&g()},g=function(){if(l){var y=new i5.Subscription;c.add(y);var _=new n5.Subject,C={window:_,subs:y,seen:0};l.push(C),c.next(_.asObservable()),RA.executeSchedule(y,o,function(){return p(C)},e)}};s!==null&&s>=0?RA.executeSchedule(c,o,g,s,!0):d=!0,g();var m=function(y){return l.slice().forEach(y)},v=function(y){m(function(_){var C=_.window;return y(C)}),y(c),c.unsubscribe()};return u.subscribe(s5.createOperatorSubscriber(c,function(y){m(function(_){_.window.next(y),a<=++_.seen&&p(_)})},function(){return v(function(y){return y.complete()})},function(y){return v(function(_){return _.error(y)})})),function(){l=null}})}Oh.windowTime=c5});var VA=h(Ro=>{"use strict";var l5=Ro&&Ro.__values||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ro,"__esModule",{value:!0});Ro.windowToggle=void 0;var d5=Ie(),f5=it(),h5=w(),jA=q(),x_=I(),LA=Ce(),p5=yn();function g5(e,t){return h5.operate(function(n,r){var i=[],o=function(s){for(;0<i.length;)i.shift().error(s);r.error(s)};jA.innerFrom(e).subscribe(x_.createOperatorSubscriber(r,function(s){var a=new d5.Subject;i.push(a);var u=new f5.Subscription,c=function(){p5.arrRemove(i,a),a.complete(),u.unsubscribe()},l;try{l=jA.innerFrom(t(s))}catch(d){o(d);return}r.next(a.asObservable()),u.add(l.subscribe(x_.createOperatorSubscriber(r,c,LA.noop,o)))},LA.noop)),n.subscribe(x_.createOperatorSubscriber(r,function(s){var a,u,c=i.slice();try{for(var l=l5(c),d=l.next();!d.done;d=l.next()){var p=d.value;p.next(s)}}catch(g){a={error:g}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}},function(){for(;0<i.length;)i.shift().complete();r.complete()},o,function(){for(;0<i.length;)i.shift().unsubscribe()}))})}Ro.windowToggle=g5});var UA=h(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.windowWhen=void 0;var m5=Ie(),v5=w(),qA=I(),y5=q();function _5(e){return v5.operate(function(t,n){var r,i,o=function(a){r.error(a),n.error(a)},s=function(){i?.unsubscribe(),r?.complete(),r=new m5.Subject,n.next(r.asObservable());var a;try{a=y5.innerFrom(e())}catch(u){o(u);return}a.subscribe(i=qA.createOperatorSubscriber(n,s,s,o))};s(),t.subscribe(qA.createOperatorSubscriber(n,function(a){return r.next(a)},function(){r.complete(),n.complete()},o,function(){i?.unsubscribe(),r=null}))})}Ah.windowWhen=_5});var zA=h(hr=>{"use strict";var $A=hr&&hr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},BA=hr&&hr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(hr,"__esModule",{value:!0});hr.withLatestFrom=void 0;var b5=w(),HA=I(),D5=q(),w5=Se(),E5=Ce(),M5=Ke();function C5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=M5.popResultSelector(e);return b5.operate(function(r,i){for(var o=e.length,s=new Array(o),a=e.map(function(){return!1}),u=!1,c=function(d){D5.innerFrom(e[d]).subscribe(HA.createOperatorSubscriber(i,function(p){s[d]=p,!u&&!a[d]&&(a[d]=!0,(u=a.every(w5.identity))&&(a=null))},E5.noop))},l=0;l<o;l++)c(l);r.subscribe(HA.createOperatorSubscriber(i,function(d){if(u){var p=BA([d],$A(s));i.next(n?n.apply(void 0,BA([],$A(p))):p)}}))})}hr.withLatestFrom=C5});var WA=h(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});Th.zipAll=void 0;var S5=Jd(),I5=g_();function O5(e){return I5.joinAllInternals(S5.zip,e)}Th.zipAll=O5});var GA=h(pr=>{"use strict";var A5=pr&&pr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},T5=pr&&pr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(pr,"__esModule",{value:!0});pr.zip=void 0;var x5=Jd(),N5=w();function P5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N5.operate(function(n,r){x5.zip.apply(void 0,T5([n],A5(e))).subscribe(r)})}pr.zip=P5});var ZA=h(gr=>{"use strict";var F5=gr&&gr.__read||function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},R5=gr&&gr.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(gr,"__esModule",{value:!0});gr.zipWith=void 0;var k5=GA();function j5(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k5.zip.apply(void 0,R5([],F5(e)))}gr.zipWith=j5});var tT=h(f=>{"use strict";var L5=f&&f.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),V5=f&&f.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&L5(t,e,n)};Object.defineProperty(f,"__esModule",{value:!0});f.interval=f.iif=f.generate=f.fromEventPattern=f.fromEvent=f.from=f.forkJoin=f.empty=f.defer=f.connectable=f.concat=f.combineLatest=f.bindNodeCallback=f.bindCallback=f.UnsubscriptionError=f.TimeoutError=f.SequenceError=f.ObjectUnsubscribedError=f.NotFoundError=f.EmptyError=f.ArgumentOutOfRangeError=f.firstValueFrom=f.lastValueFrom=f.isObservable=f.identity=f.noop=f.pipe=f.NotificationKind=f.Notification=f.Subscriber=f.Subscription=f.Scheduler=f.VirtualAction=f.VirtualTimeScheduler=f.animationFrameScheduler=f.animationFrame=f.queueScheduler=f.queue=f.asyncScheduler=f.async=f.asapScheduler=f.asap=f.AsyncSubject=f.ReplaySubject=f.BehaviorSubject=f.Subject=f.animationFrames=f.observable=f.ConnectableObservable=f.Observable=void 0;f.filter=f.expand=f.exhaustMap=f.exhaustAll=f.exhaust=f.every=f.endWith=f.elementAt=f.distinctUntilKeyChanged=f.distinctUntilChanged=f.distinct=f.dematerialize=f.delayWhen=f.delay=f.defaultIfEmpty=f.debounceTime=f.debounce=f.count=f.connect=f.concatWith=f.concatMapTo=f.concatMap=f.concatAll=f.combineLatestWith=f.combineLatestAll=f.combineAll=f.catchError=f.bufferWhen=f.bufferToggle=f.bufferTime=f.bufferCount=f.buffer=f.auditTime=f.audit=f.config=f.NEVER=f.EMPTY=f.scheduled=f.zip=f.using=f.timer=f.throwError=f.range=f.race=f.partition=f.pairs=f.onErrorResumeNext=f.of=f.never=f.merge=void 0;f.switchMap=f.switchAll=f.subscribeOn=f.startWith=f.skipWhile=f.skipUntil=f.skipLast=f.skip=f.single=f.shareReplay=f.share=f.sequenceEqual=f.scan=f.sampleTime=f.sample=f.refCount=f.retryWhen=f.retry=f.repeatWhen=f.repeat=f.reduce=f.raceWith=f.publishReplay=f.publishLast=f.publishBehavior=f.publish=f.pluck=f.pairwise=f.onErrorResumeNextWith=f.observeOn=f.multicast=f.min=f.mergeWith=f.mergeScan=f.mergeMapTo=f.mergeMap=f.flatMap=f.mergeAll=f.max=f.materialize=f.mapTo=f.map=f.last=f.isEmpty=f.ignoreElements=f.groupBy=f.first=f.findIndex=f.find=f.finalize=void 0;f.zipWith=f.zipAll=f.withLatestFrom=f.windowWhen=f.windowToggle=f.windowTime=f.windowCount=f.window=f.toArray=f.timestamp=f.timeoutWith=f.timeout=f.timeInterval=f.throwIfEmpty=f.throttleTime=f.throttle=f.tap=f.takeWhile=f.takeUntil=f.takeLast=f.take=f.switchScan=f.switchMapTo=void 0;var q5=ne();Object.defineProperty(f,"Observable",{enumerable:!0,get:function(){return q5.Observable}});var U5=Qs();Object.defineProperty(f,"ConnectableObservable",{enumerable:!0,get:function(){return U5.ConnectableObservable}});var $5=Zs();Object.defineProperty(f,"observable",{enumerable:!0,get:function(){return $5.observable}});var B5=XC();Object.defineProperty(f,"animationFrames",{enumerable:!0,get:function(){return B5.animationFrames}});var H5=Ie();Object.defineProperty(f,"Subject",{enumerable:!0,get:function(){return H5.Subject}});var z5=Ry();Object.defineProperty(f,"BehaviorSubject",{enumerable:!0,get:function(){return z5.BehaviorSubject}});var W5=Ll();Object.defineProperty(f,"ReplaySubject",{enumerable:!0,get:function(){return W5.ReplaySubject}});var G5=Vl();Object.defineProperty(f,"AsyncSubject",{enumerable:!0,get:function(){return G5.AsyncSubject}});var YA=mS();Object.defineProperty(f,"asap",{enumerable:!0,get:function(){return YA.asap}});Object.defineProperty(f,"asapScheduler",{enumerable:!0,get:function(){return YA.asapScheduler}});var QA=Je();Object.defineProperty(f,"async",{enumerable:!0,get:function(){return QA.async}});Object.defineProperty(f,"asyncScheduler",{enumerable:!0,get:function(){return QA.asyncScheduler}});var JA=_S();Object.defineProperty(f,"queue",{enumerable:!0,get:function(){return JA.queue}});Object.defineProperty(f,"queueScheduler",{enumerable:!0,get:function(){return JA.queueScheduler}});var KA=ES();Object.defineProperty(f,"animationFrame",{enumerable:!0,get:function(){return KA.animationFrame}});Object.defineProperty(f,"animationFrameScheduler",{enumerable:!0,get:function(){return KA.animationFrameScheduler}});var XA=SS();Object.defineProperty(f,"VirtualTimeScheduler",{enumerable:!0,get:function(){return XA.VirtualTimeScheduler}});Object.defineProperty(f,"VirtualAction",{enumerable:!0,get:function(){return XA.VirtualAction}});var Z5=jy();Object.defineProperty(f,"Scheduler",{enumerable:!0,get:function(){return Z5.Scheduler}});var Y5=it();Object.defineProperty(f,"Subscription",{enumerable:!0,get:function(){return Y5.Subscription}});var Q5=eo();Object.defineProperty(f,"Subscriber",{enumerable:!0,get:function(){return Q5.Subscriber}});var eT=dd();Object.defineProperty(f,"Notification",{enumerable:!0,get:function(){return eT.Notification}});Object.defineProperty(f,"NotificationKind",{enumerable:!0,get:function(){return eT.NotificationKind}});var J5=Ys();Object.defineProperty(f,"pipe",{enumerable:!0,get:function(){return J5.pipe}});var K5=Ce();Object.defineProperty(f,"noop",{enumerable:!0,get:function(){return K5.noop}});var X5=Se();Object.defineProperty(f,"identity",{enumerable:!0,get:function(){return X5.identity}});var e9=BS();Object.defineProperty(f,"isObservable",{enumerable:!0,get:function(){return e9.isObservable}});var t9=HS();Object.defineProperty(f,"lastValueFrom",{enumerable:!0,get:function(){return t9.lastValueFrom}});var n9=zS();Object.defineProperty(f,"firstValueFrom",{enumerable:!0,get:function(){return n9.firstValueFrom}});var r9=Ky();Object.defineProperty(f,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return r9.ArgumentOutOfRangeError}});var i9=Jn();Object.defineProperty(f,"EmptyError",{enumerable:!0,get:function(){return i9.EmptyError}});var o9=Xy();Object.defineProperty(f,"NotFoundError",{enumerable:!0,get:function(){return o9.NotFoundError}});var s9=xy();Object.defineProperty(f,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return s9.ObjectUnsubscribedError}});var a9=e_();Object.defineProperty(f,"SequenceError",{enumerable:!0,get:function(){return a9.SequenceError}});var u9=Dd();Object.defineProperty(f,"TimeoutError",{enumerable:!0,get:function(){return u9.TimeoutError}});var c9=yy();Object.defineProperty(f,"UnsubscriptionError",{enumerable:!0,get:function(){return c9.UnsubscriptionError}});var l9=GS();Object.defineProperty(f,"bindCallback",{enumerable:!0,get:function(){return l9.bindCallback}});var d9=ZS();Object.defineProperty(f,"bindNodeCallback",{enumerable:!0,get:function(){return d9.bindNodeCallback}});var f9=Id();Object.defineProperty(f,"combineLatest",{enumerable:!0,get:function(){return f9.combineLatest}});var h9=ra();Object.defineProperty(f,"concat",{enumerable:!0,get:function(){return h9.concat}});var p9=nI();Object.defineProperty(f,"connectable",{enumerable:!0,get:function(){return p9.connectable}});var g9=ia();Object.defineProperty(f,"defer",{enumerable:!0,get:function(){return g9.defer}});var m9=Tt();Object.defineProperty(f,"empty",{enumerable:!0,get:function(){return m9.empty}});var v9=rI();Object.defineProperty(f,"forkJoin",{enumerable:!0,get:function(){return v9.forkJoin}});var y9=bn();Object.defineProperty(f,"from",{enumerable:!0,get:function(){return y9.from}});var _9=oI();Object.defineProperty(f,"fromEvent",{enumerable:!0,get:function(){return _9.fromEvent}});var b9=aI();Object.defineProperty(f,"fromEventPattern",{enumerable:!0,get:function(){return b9.fromEventPattern}});var D9=cI();Object.defineProperty(f,"generate",{enumerable:!0,get:function(){return D9.generate}});var w9=lI();Object.defineProperty(f,"iif",{enumerable:!0,get:function(){return w9.iif}});var E9=s_();Object.defineProperty(f,"interval",{enumerable:!0,get:function(){return E9.interval}});var M9=fI();Object.defineProperty(f,"merge",{enumerable:!0,get:function(){return M9.merge}});var C9=a_();Object.defineProperty(f,"never",{enumerable:!0,get:function(){return C9.never}});var S9=cd();Object.defineProperty(f,"of",{enumerable:!0,get:function(){return S9.of}});var I9=u_();Object.defineProperty(f,"onErrorResumeNext",{enumerable:!0,get:function(){return I9.onErrorResumeNext}});var O9=pI();Object.defineProperty(f,"pairs",{enumerable:!0,get:function(){return O9.pairs}});var A9=yI();Object.defineProperty(f,"partition",{enumerable:!0,get:function(){return A9.partition}});var T9=c_();Object.defineProperty(f,"race",{enumerable:!0,get:function(){return T9.race}});var x9=DI();Object.defineProperty(f,"range",{enumerable:!0,get:function(){return x9.range}});var N9=Jy();Object.defineProperty(f,"throwError",{enumerable:!0,get:function(){return N9.throwError}});var P9=nr();Object.defineProperty(f,"timer",{enumerable:!0,get:function(){return P9.timer}});var F9=wI();Object.defineProperty(f,"using",{enumerable:!0,get:function(){return F9.using}});var R9=Jd();Object.defineProperty(f,"zip",{enumerable:!0,get:function(){return R9.zip}});var k9=Qy();Object.defineProperty(f,"scheduled",{enumerable:!0,get:function(){return k9.scheduled}});var j9=Tt();Object.defineProperty(f,"EMPTY",{enumerable:!0,get:function(){return j9.EMPTY}});var L9=a_();Object.defineProperty(f,"NEVER",{enumerable:!0,get:function(){return L9.NEVER}});V5(MI(),f);var V9=Ki();Object.defineProperty(f,"config",{enumerable:!0,get:function(){return V9.config}});var q9=l_();Object.defineProperty(f,"audit",{enumerable:!0,get:function(){return q9.audit}});var U9=SI();Object.defineProperty(f,"auditTime",{enumerable:!0,get:function(){return U9.auditTime}});var $9=OI();Object.defineProperty(f,"buffer",{enumerable:!0,get:function(){return $9.buffer}});var B9=AI();Object.defineProperty(f,"bufferCount",{enumerable:!0,get:function(){return B9.bufferCount}});var H9=xI();Object.defineProperty(f,"bufferTime",{enumerable:!0,get:function(){return H9.bufferTime}});var z9=FI();Object.defineProperty(f,"bufferToggle",{enumerable:!0,get:function(){return z9.bufferToggle}});var W9=kI();Object.defineProperty(f,"bufferWhen",{enumerable:!0,get:function(){return W9.bufferWhen}});var G9=LI();Object.defineProperty(f,"catchError",{enumerable:!0,get:function(){return G9.catchError}});var Z9=VI();Object.defineProperty(f,"combineAll",{enumerable:!0,get:function(){return Z9.combineAll}});var Y9=m_();Object.defineProperty(f,"combineLatestAll",{enumerable:!0,get:function(){return Y9.combineLatestAll}});var Q9=HI();Object.defineProperty(f,"combineLatestWith",{enumerable:!0,get:function(){return Q9.combineLatestWith}});var J9=Pd();Object.defineProperty(f,"concatAll",{enumerable:!0,get:function(){return J9.concatAll}});var K9=v_();Object.defineProperty(f,"concatMap",{enumerable:!0,get:function(){return K9.concatMap}});var X9=GI();Object.defineProperty(f,"concatMapTo",{enumerable:!0,get:function(){return X9.concatMapTo}});var e7=YI();Object.defineProperty(f,"concatWith",{enumerable:!0,get:function(){return e7.concatWith}});var t7=pf();Object.defineProperty(f,"connect",{enumerable:!0,get:function(){return t7.connect}});var n7=JI();Object.defineProperty(f,"count",{enumerable:!0,get:function(){return n7.count}});var r7=XI();Object.defineProperty(f,"debounce",{enumerable:!0,get:function(){return r7.debounce}});var i7=eO();Object.defineProperty(f,"debounceTime",{enumerable:!0,get:function(){return i7.debounceTime}});var o7=oa();Object.defineProperty(f,"defaultIfEmpty",{enumerable:!0,get:function(){return o7.defaultIfEmpty}});var s7=rO();Object.defineProperty(f,"delay",{enumerable:!0,get:function(){return s7.delay}});var a7=b_();Object.defineProperty(f,"delayWhen",{enumerable:!0,get:function(){return a7.delayWhen}});var u7=iO();Object.defineProperty(f,"dematerialize",{enumerable:!0,get:function(){return u7.dematerialize}});var c7=sO();Object.defineProperty(f,"distinct",{enumerable:!0,get:function(){return c7.distinct}});var l7=D_();Object.defineProperty(f,"distinctUntilChanged",{enumerable:!0,get:function(){return l7.distinctUntilChanged}});var d7=aO();Object.defineProperty(f,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return d7.distinctUntilKeyChanged}});var f7=cO();Object.defineProperty(f,"elementAt",{enumerable:!0,get:function(){return f7.elementAt}});var h7=lO();Object.defineProperty(f,"endWith",{enumerable:!0,get:function(){return h7.endWith}});var p7=dO();Object.defineProperty(f,"every",{enumerable:!0,get:function(){return p7.every}});var g7=gO();Object.defineProperty(f,"exhaust",{enumerable:!0,get:function(){return g7.exhaust}});var m7=E_();Object.defineProperty(f,"exhaustAll",{enumerable:!0,get:function(){return m7.exhaustAll}});var v7=w_();Object.defineProperty(f,"exhaustMap",{enumerable:!0,get:function(){return v7.exhaustMap}});var y7=mO();Object.defineProperty(f,"expand",{enumerable:!0,get:function(){return y7.expand}});var _7=Qr();Object.defineProperty(f,"filter",{enumerable:!0,get:function(){return _7.filter}});var b7=vO();Object.defineProperty(f,"finalize",{enumerable:!0,get:function(){return b7.finalize}});var D7=M_();Object.defineProperty(f,"find",{enumerable:!0,get:function(){return D7.find}});var w7=_O();Object.defineProperty(f,"findIndex",{enumerable:!0,get:function(){return w7.findIndex}});var E7=bO();Object.defineProperty(f,"first",{enumerable:!0,get:function(){return E7.first}});var M7=wO();Object.defineProperty(f,"groupBy",{enumerable:!0,get:function(){return M7.groupBy}});var C7=y_();Object.defineProperty(f,"ignoreElements",{enumerable:!0,get:function(){return C7.ignoreElements}});var S7=EO();Object.defineProperty(f,"isEmpty",{enumerable:!0,get:function(){return S7.isEmpty}});var I7=MO();Object.defineProperty(f,"last",{enumerable:!0,get:function(){return I7.last}});var O7=Kn();Object.defineProperty(f,"map",{enumerable:!0,get:function(){return O7.map}});var A7=__();Object.defineProperty(f,"mapTo",{enumerable:!0,get:function(){return A7.mapTo}});var T7=CO();Object.defineProperty(f,"materialize",{enumerable:!0,get:function(){return T7.materialize}});var x7=SO();Object.defineProperty(f,"max",{enumerable:!0,get:function(){return x7.max}});var N7=na();Object.defineProperty(f,"mergeAll",{enumerable:!0,get:function(){return N7.mergeAll}});var P7=IO();Object.defineProperty(f,"flatMap",{enumerable:!0,get:function(){return P7.flatMap}});var F7=wn();Object.defineProperty(f,"mergeMap",{enumerable:!0,get:function(){return F7.mergeMap}});var R7=AO();Object.defineProperty(f,"mergeMapTo",{enumerable:!0,get:function(){return R7.mergeMapTo}});var k7=TO();Object.defineProperty(f,"mergeScan",{enumerable:!0,get:function(){return k7.mergeScan}});var j7=PO();Object.defineProperty(f,"mergeWith",{enumerable:!0,get:function(){return j7.mergeWith}});var L7=FO();Object.defineProperty(f,"min",{enumerable:!0,get:function(){return L7.min}});var V7=Zf();Object.defineProperty(f,"multicast",{enumerable:!0,get:function(){return V7.multicast}});var q7=ea();Object.defineProperty(f,"observeOn",{enumerable:!0,get:function(){return q7.observeOn}});var U7=jO();Object.defineProperty(f,"onErrorResumeNextWith",{enumerable:!0,get:function(){return U7.onErrorResumeNextWith}});var $7=LO();Object.defineProperty(f,"pairwise",{enumerable:!0,get:function(){return $7.pairwise}});var B7=VO();Object.defineProperty(f,"pluck",{enumerable:!0,get:function(){return B7.pluck}});var H7=qO();Object.defineProperty(f,"publish",{enumerable:!0,get:function(){return H7.publish}});var z7=UO();Object.defineProperty(f,"publishBehavior",{enumerable:!0,get:function(){return z7.publishBehavior}});var W7=$O();Object.defineProperty(f,"publishLast",{enumerable:!0,get:function(){return W7.publishLast}});var G7=HO();Object.defineProperty(f,"publishReplay",{enumerable:!0,get:function(){return G7.publishReplay}});var Z7=zO();Object.defineProperty(f,"raceWith",{enumerable:!0,get:function(){return Z7.raceWith}});var Y7=To();Object.defineProperty(f,"reduce",{enumerable:!0,get:function(){return Y7.reduce}});var Q7=GO();Object.defineProperty(f,"repeat",{enumerable:!0,get:function(){return Q7.repeat}});var J7=YO();Object.defineProperty(f,"repeatWhen",{enumerable:!0,get:function(){return J7.repeatWhen}});var K7=JO();Object.defineProperty(f,"retry",{enumerable:!0,get:function(){return K7.retry}});var X7=XO();Object.defineProperty(f,"retryWhen",{enumerable:!0,get:function(){return X7.retryWhen}});var eZ=Ay();Object.defineProperty(f,"refCount",{enumerable:!0,get:function(){return eZ.refCount}});var tZ=I_();Object.defineProperty(f,"sample",{enumerable:!0,get:function(){return tZ.sample}});var nZ=tA();Object.defineProperty(f,"sampleTime",{enumerable:!0,get:function(){return nZ.sampleTime}});var rZ=nA();Object.defineProperty(f,"scan",{enumerable:!0,get:function(){return rZ.scan}});var iZ=iA();Object.defineProperty(f,"sequenceEqual",{enumerable:!0,get:function(){return iZ.sequenceEqual}});var oZ=A_();Object.defineProperty(f,"share",{enumerable:!0,get:function(){return oZ.share}});var sZ=aA();Object.defineProperty(f,"shareReplay",{enumerable:!0,get:function(){return sZ.shareReplay}});var aZ=uA();Object.defineProperty(f,"single",{enumerable:!0,get:function(){return aZ.single}});var uZ=cA();Object.defineProperty(f,"skip",{enumerable:!0,get:function(){return uZ.skip}});var cZ=lA();Object.defineProperty(f,"skipLast",{enumerable:!0,get:function(){return cZ.skipLast}});var lZ=fA();Object.defineProperty(f,"skipUntil",{enumerable:!0,get:function(){return lZ.skipUntil}});var dZ=hA();Object.defineProperty(f,"skipWhile",{enumerable:!0,get:function(){return dZ.skipWhile}});var fZ=gA();Object.defineProperty(f,"startWith",{enumerable:!0,get:function(){return fZ.startWith}});var hZ=ta();Object.defineProperty(f,"subscribeOn",{enumerable:!0,get:function(){return hZ.subscribeOn}});var pZ=vA();Object.defineProperty(f,"switchAll",{enumerable:!0,get:function(){return pZ.switchAll}});var gZ=ua();Object.defineProperty(f,"switchMap",{enumerable:!0,get:function(){return gZ.switchMap}});var mZ=_A();Object.defineProperty(f,"switchMapTo",{enumerable:!0,get:function(){return mZ.switchMapTo}});var vZ=bA();Object.defineProperty(f,"switchScan",{enumerable:!0,get:function(){return vZ.switchScan}});var yZ=sa();Object.defineProperty(f,"take",{enumerable:!0,get:function(){return yZ.take}});var _Z=C_();Object.defineProperty(f,"takeLast",{enumerable:!0,get:function(){return _Z.takeLast}});var bZ=DA();Object.defineProperty(f,"takeUntil",{enumerable:!0,get:function(){return bZ.takeUntil}});var DZ=wA();Object.defineProperty(f,"takeWhile",{enumerable:!0,get:function(){return DZ.takeWhile}});var wZ=EA();Object.defineProperty(f,"tap",{enumerable:!0,get:function(){return wZ.tap}});var EZ=T_();Object.defineProperty(f,"throttle",{enumerable:!0,get:function(){return EZ.throttle}});var MZ=CA();Object.defineProperty(f,"throttleTime",{enumerable:!0,get:function(){return MZ.throttleTime}});var CZ=aa();Object.defineProperty(f,"throwIfEmpty",{enumerable:!0,get:function(){return CZ.throwIfEmpty}});var SZ=IA();Object.defineProperty(f,"timeInterval",{enumerable:!0,get:function(){return SZ.timeInterval}});var IZ=Dd();Object.defineProperty(f,"timeout",{enumerable:!0,get:function(){return IZ.timeout}});var OZ=OA();Object.defineProperty(f,"timeoutWith",{enumerable:!0,get:function(){return OZ.timeoutWith}});var AZ=AA();Object.defineProperty(f,"timestamp",{enumerable:!0,get:function(){return AZ.timestamp}});var TZ=p_();Object.defineProperty(f,"toArray",{enumerable:!0,get:function(){return TZ.toArray}});var xZ=NA();Object.defineProperty(f,"window",{enumerable:!0,get:function(){return xZ.window}});var NZ=FA();Object.defineProperty(f,"windowCount",{enumerable:!0,get:function(){return NZ.windowCount}});var PZ=kA();Object.defineProperty(f,"windowTime",{enumerable:!0,get:function(){return PZ.windowTime}});var FZ=VA();Object.defineProperty(f,"windowToggle",{enumerable:!0,get:function(){return FZ.windowToggle}});var RZ=UA();Object.defineProperty(f,"windowWhen",{enumerable:!0,get:function(){return RZ.windowWhen}});var kZ=zA();Object.defineProperty(f,"withLatestFrom",{enumerable:!0,get:function(){return kZ.withLatestFrom}});var jZ=WA();Object.defineProperty(f,"zipAll",{enumerable:!0,get:function(){return jZ.zipAll}});var LZ=ZA();Object.defineProperty(f,"zipWith",{enumerable:!0,get:function(){return LZ.zipWith}})});var rT=h(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.DyFM_Poll=void 0;var VZ=tT(),xh=_l(),nT=Ps(),qZ=pv(),N_=class{name;poll;running;pollDo;pollWhile;pollEnd;pollDoError;args;pollDelay=0;pollPeriod=3*nT.second;stopOnFail=!1;delayFirst=!1;constructor(t){try{Object.assign(this,t),t.pollPeriod===0&&(console.error("DYNAMO ERROR: creating polls with 0ms period is not supported! (it will reset to 1000ms (1s))"),this.pollPeriod=1*nT.second),this.pollPeriod<300&&console.warn("DYNAMO WARNING: creating polls with less than 300ms period is not recommended!"),this.name=t.name??"Unnamed DyFM_Poll",this.stopOnFail=t.stopOnFail,this.startPoll(this.args)}catch{throw new xh.DyFM_Error({message:"DyFM_Poll construcion failed."})}}startPoll(...t){return we(this,null,function*(){try{this.delayFirst&&(yield qZ.DyFM_Async.wait(this.pollDelay)),this.poll=(0,VZ.timer)(this.pollDelay,this.pollPeriod).subscribe(()=>we(this,null,function*(){yield this.pollDo(...t).then(n=>{this.pollWhile(n)||this.end(n)}).catch(n=>{if(this.stopOnFail&&this.stop(),this.pollDoError)this.pollDoError(n);else throw new xh.DyFM_Error({message:`DYNAMO ERROR:
208
+ DynamoPoll: "${this.name}" pollDo was UNSUCCESSFUL`,error:n})})})),this.running=!0}catch(n){throw new xh.DyFM_Error({message:`DYNAMO ERROR:
209
+ DynamoPoll: startPoll was UNSUCCESSFUL`,error:n})}})}restartPoll(t){try{t?this.startPoll(t):this.startPoll(this.args)}catch(n){throw new xh.DyFM_Error({message:`DYNAMO ERROR:
210
+ DynamoPoll: restartPoll was UNSUCCESSFUL`,error:n})}}stop(){this.poll.unsubscribe(),this.running=!1}end(t){this.poll.unsubscribe(),this.pollEnd?.(t),this.running=!1}};Nh.DyFM_Poll=N_});var iT=h(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.DyFM_RangeValue=void 0;var P_=class e{isRange=!0;from;to;constructor(t,n){if(t?.isRange){this.from=t.from,this.to=t.to;return}else this.from=t,this.to=n??t}constructed(){return!0}newValues(t){this.from=t.from,this.to=t.to}addRange(t){this.from+=t.from,this.to+=t.to}subtractRange(t){this.from-=t.from,this.to-=t.to}multiplyRange(t){this.from*=t.from,this.to*=t.to}divideRange(t){this.from/=t.from,this.to/=t.to}add(t){this.from+=t,this.to+=t}subtract(t){this.from-=t,this.to-=t}multiply(t){this.from*=t,this.to*=t}divide(t){this.from/=t,this.to/=t}clone(){return new e(this.from,this.to)}applyTransform(t){return new e(t(this.from),t(this.to))}toString=this.stringify;stringify(t=!0,n=!0){return n&&this.from===this.to?`${this.from}`:t?`${this.from} - ${this.to}`:`${this.from}-${this.to}`}static reType(t){return new e(t.from,t.to)}static addRange(t,n){return new e(t.from+n.from,t.to+n.to)}static subtractRange(t,n){return new e(t.from-n.from,t.to-n.to)}static multiplyRange(t,n){return new e(t.from*n.from,t.to*n.to)}static divideRange(t,n){return new e(t.from/n.from,t.to/n.to)}static add(t,n){return new e(t.from+n,t.to+n)}static subtract(t,n){return new e(t.from-n,t.to-n)}static multiply(t,n){return new e(t.from*n,t.to*n)}static divide(t,n){return new e(t.from/n,t.to/n)}static isInRange(t,n){return n.from<=t&&t<=n.to}};Ph.DyFM_RangeValue=P_});var oT=h(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.DyFM_serverStatus_dataParams=ko.DyFM_ServerStatus=void 0;var UZ=sT(),$Z=Gi(),F_=class extends $Z.DyFM_Metadata{status;systemName;systemShortCode;clientVersionOk;latestClientVersion;latestClientVersionNumeric;serverVersion;serverNumericVersion;uptime;serverMessage;memoryUsage;cpuUsage;serverConnections;constructor(t){super(t),t&&Object.assign(this,t)}};ko.DyFM_ServerStatus=F_;ko.DyFM_serverStatus_dataParams=new UZ.DyFM_DataModel_Params({dataName:"server_status",properties:{status:{type:"string"},systemName:{type:"string"},systemShortCode:{type:"string"},clientVersionOk:{type:"boolean"},latestClientVersion:{type:"string"},latestClientVersionNumeric:{type:"number"},serverVersion:{type:"string"},serverNumericVersion:{type:"number"},uptime:{type:"number"},serverMessage:{type:"string"},memoryUsage:{type:"object"},cpuUsage:{type:"object"},serverConnections:{type:"object"}}})});var uT=h(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.DyFM_API_Input_Type=mr.DyFM_ServerRoute_SettingsBase=mr.DyFM_Endpoint_SettingsBase=void 0;var BZ=Bi(),Fh=class{name;type;endpoint;pathParamKeys=[];constructor(t){if(!t.endpoint)throw new Error(`endpoint not setted up for this endpoint (${t.name??(0,BZ.DyFM_getConstructionStackLocation)()})`);t.endpoint.includes("{")&&(console.warn(`using {param} brackets in endpoint definitions will be deprecated...
211
+ use :param instead ({pathParam} --> :pathParam) (${t.name})`),t.endpoint=t.endpoint.replace(/{/g,":").replace(/}/g,"")),Object.assign(this,t),this.pathParamKeys=this.endpoint.split("/").filter(n=>n.startsWith(":")).map(n=>n.replace(":",""))}};mr.DyFM_Endpoint_SettingsBase=Fh;var R_=class extends Fh{preProcesses;tasks;simpleTask;constructor(t){super(t),Object.assign(this,t)}};mr.DyFM_ServerRoute_SettingsBase=R_;var aT=function(e){return e.body="body",e.queryParams="queryParams",e}(aT||(mr.DyFM_API_Input_Type=aT={}))});var cT=h(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.DyFM_errors_dataParams=En.DyFM_Errors=En.DyFM_errorsFlag=void 0;var HZ=vy(),zZ=Gi();En.DyFM_errorsFlag="DyFM-ERRORS-OBJECT";var k_=class extends zZ.DyFM_Metadata{flag=En.DyFM_errorsFlag;source;issuer;username;version;localTime;region;message;exception;exceptionObj;stackTrace;error;count=1;d_error;additionalContent;level;priority;duplications=[];constructor(t){super(t),t&&Object.assign(this,t)}};En.DyFM_Errors=k_;En.DyFM_errors_dataParams=new HZ.DyFM_DataModel_Params({dataName:"errors",properties:{flag:{type:"string"},issuer:{type:"string"},username:{type:"string"},version:{type:"string"},localTime:{type:"string"},region:{type:"string"},message:{type:"string"},exception:{type:"string"},exceptionObj:{type:"any"},stackTrace:{type:"string[]"},error:{type:"any"},count:{type:"number"},d_error:{type:"DyFM_Error"},additionalContent:{type:"any"},level:{type:"DyFM_ErrorLevel"},priority:{type:"number"},duplications:{type:"DyNTS_Error[]"}}})});var dT=h(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0})});var hT=h(fT=>{"use strict";Object.defineProperty(fT,"__esModule",{value:!0})});var gT=h(pT=>{"use strict";Object.defineProperty(pT,"__esModule",{value:!0})});var vT=h(mT=>{"use strict";Object.defineProperty(mT,"__esModule",{value:!0})});var _T=h(yT=>{"use strict";Object.defineProperty(yT,"__esModule",{value:!0})});var DT=h(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0})});var ET=h(wT=>{"use strict";Object.defineProperty(wT,"__esModule",{value:!0})});var CT=h(MT=>{"use strict";Object.defineProperty(MT,"__esModule",{value:!0})});var IT=h(ST=>{"use strict";Object.defineProperty(ST,"__esModule",{value:!0})});var AT=h(OT=>{"use strict";Object.defineProperty(OT,"__esModule",{value:!0})});var xT=h(TT=>{"use strict";Object.defineProperty(TT,"__esModule",{value:!0})});var PT=h(NT=>{"use strict";Object.defineProperty(NT,"__esModule",{value:!0})});var RT=h(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0})});var jT=h(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.DyFM_SpecialSearch_Type=void 0;var kT=function(e){return e.stringListSearchAny="stringListSearchAny",e.stringListSearch="stringListSearch",e.stringListSearchOrdered="stringListSearchOrdered",e}(kT||(Rh.DyFM_SpecialSearch_Type=kT={}))});var VT=h(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0})});var sT=h(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});var M=(Xm(),Tb(Km));M.__exportStar(ev(),E);M.__exportStar(tv(),E);M.__exportStar(EM(),E);M.__exportStar(MM(),E);M.__exportStar(Ps(),E);M.__exportStar(CM(),E);M.__exportStar(pv(),E);M.__exportStar(AM(),E);M.__exportStar(vv(),E);M.__exportStar(Ut(),E);M.__exportStar(TM(),E);M.__exportStar(Yc(),E);M.__exportStar(Bi(),E);M.__exportStar(wv(),E);M.__exportStar(bv(),E);M.__exportStar(dv(),E);M.__exportStar(xM(),E);M.__exportStar(Cv(),E);M.__exportStar(aC(),E);M.__exportStar(cC(),E);M.__exportStar(Rs(),E);M.__exportStar(lC(),E);M.__exportStar(Jv(),E);M.__exportStar(Xv(),E);M.__exportStar(dC(),E);M.__exportStar(fC(),E);M.__exportStar(hC(),E);M.__exportStar(ks(),E);M.__exportStar(ry(),E);M.__exportStar(pC(),E);M.__exportStar(oy(),E);M.__exportStar(Fs(),E);M.__exportStar(vC(),E);M.__exportStar(bC(),E);M.__exportStar(wC(),E);M.__exportStar(MC(),E);M.__exportStar(sv(),E);M.__exportStar(ov(),E);M.__exportStar(av(),E);M.__exportStar(vy(),E);M.__exportStar(uy(),E);M.__exportStar(_l(),E);M.__exportStar(rT(),E);M.__exportStar(iT(),E);M.__exportStar(oT(),E);M.__exportStar(uT(),E);M.__exportStar(py(),E);M.__exportStar(ly(),E);M.__exportStar(fy(),E);M.__exportStar(cT(),E);M.__exportStar(Gi(),E);M.__exportStar(dT(),E);M.__exportStar(hT(),E);M.__exportStar(gT(),E);M.__exportStar(vT(),E);M.__exportStar(_T(),E);M.__exportStar(DT(),E);M.__exportStar(ET(),E);M.__exportStar(CT(),E);M.__exportStar(IT(),E);M.__exportStar(AT(),E);M.__exportStar(xT(),E);M.__exportStar(PT(),E);M.__exportStar(RT(),E);M.__exportStar(jT(),E);M.__exportStar(VT(),E)});function xb(e,t){return Object.is(e,t)}var ge=null,Ra=!1,ka=1,Xt=Symbol("SIGNAL");function W(e){let t=ge;return ge=e,t}function Nb(){return ge}var es={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function fp(e){if(Ra)throw new Error("");if(ge===null)return;ge.consumerOnSignalRead(e);let t=ge.nextProducerIndex++;if(qa(ge),t<ge.producerNode.length&&ge.producerNode[t]!==e&&Xo(ge)){let n=ge.producerNode[t];Va(n,ge.producerIndexOfThis[t])}ge.producerNode[t]!==e&&(ge.producerNode[t]=e,ge.producerIndexOfThis[t]=Xo(ge)?kb(e,ge,t):0),ge.producerLastReadVersion[t]=e.version}function a1(){ka++}function Pb(e){if(!(Xo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===ka)){if(!e.producerMustRecompute(e)&&!pp(e)){e.dirty=!1,e.lastCleanEpoch=ka;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=ka}}function Fb(e){if(e.liveConsumerNode===void 0)return;let t=Ra;Ra=!0;try{for(let n of e.liveConsumerNode)n.dirty||u1(n)}finally{Ra=t}}function Rb(){return ge?.consumerAllowSignalWrites!==!1}function u1(e){e.dirty=!0,Fb(e),e.consumerMarkedDirty?.(e)}function La(e){return e&&(e.nextProducerIndex=0),W(e)}function hp(e,t){if(W(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Xo(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Va(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function pp(e){qa(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Pb(n),r!==n.version))return!0}return!1}function gp(e){if(qa(e),Xo(e))for(let t=0;t<e.producerNode.length;t++)Va(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function kb(e,t,n){if(jb(e),e.liveConsumerNode.length===0&&Lb(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=kb(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Va(e,t){if(jb(e),e.liveConsumerNode.length===1&&Lb(e))for(let r=0;r<e.producerNode.length;r++)Va(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];qa(i),i.producerIndexOfThis[r]=t}}function Xo(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function qa(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function jb(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Lb(e){return e.producerNode!==void 0}function Vb(e){let t=Object.create(c1);t.computation=e;let n=()=>{if(Pb(t),fp(t),t.value===ja)throw t.error;return t.value};return n[Xt]=t,n}var lp=Symbol("UNSET"),dp=Symbol("COMPUTING"),ja=Symbol("ERRORED"),c1=H(D({},es),{value:lp,dirty:!0,error:null,equal:xb,producerMustRecompute(e){return e.value===lp||e.value===dp},producerRecomputeValue(e){if(e.value===dp)throw new Error("Detected cycle in computations.");let t=e.value;e.value=dp;let n=La(e),r;try{r=e.computation()}catch(i){r=ja,e.error=i}finally{hp(e,n)}if(t!==lp&&t!==ja&&r!==ja&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function l1(){throw new Error}var qb=l1;function Ub(){qb()}function $b(e){qb=e}var d1=null;function Bb(e){let t=Object.create(zb);t.value=e;let n=()=>(fp(t),t.value);return n[Xt]=t,n}function mp(e,t){Rb()||Ub(),e.equal(e.value,t)||(e.value=t,f1(e))}function Hb(e,t){Rb()||Ub(),mp(e,t(e.value))}var zb=H(D({},es),{equal:xb,value:void 0});function f1(e){e.version++,a1(),Fb(e),d1?.()}function j(e){return typeof e=="function"}function ti(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ua=ti(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
212
+ ${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
213
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n});function ts(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var de=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(j(r))try{r()}catch(o){t=o instanceof Ua?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Wb(o)}catch(s){t=t??[],s instanceof Ua?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Ua(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Wb(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ts(n,t)}remove(t){let{_finalizers:n}=this;n&&ts(n,t),t instanceof e&&t._removeParent(this)}};de.EMPTY=(()=>{let e=new de;return e.closed=!0,e})();var vp=de.EMPTY;function $a(e){return e instanceof de||e&&"closed"in e&&j(e.remove)&&j(e.add)&&j(e.unsubscribe)}function Wb(e){j(e)?e():e.unsubscribe()}var gt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ni={setTimeout(e,t,...n){let{delegate:r}=ni;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=ni;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ba(e){ni.setTimeout(()=>{let{onUnhandledError:t}=gt;if(t)t(e);else throw e})}function ns(){}var Gb=yp("C",void 0,void 0);function Zb(e){return yp("E",void 0,e)}function Yb(e){return yp("N",e,void 0)}function yp(e,t,n){return{kind:e,value:t,error:n}}var Dr=null;function ri(e){if(gt.useDeprecatedSynchronousErrorHandling){let t=!Dr;if(t&&(Dr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Dr;if(Dr=null,n)throw r}}else e()}function Qb(e){gt.useDeprecatedSynchronousErrorHandling&&Dr&&(Dr.errorThrown=!0,Dr.error=e)}var wr=class extends de{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,$a(t)&&t.add(this)):this.destination=g1}static create(t,n,r){return new Sn(t,n,r)}next(t){this.isStopped?bp(Yb(t),this):this._next(t)}error(t){this.isStopped?bp(Zb(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?bp(Gb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},h1=Function.prototype.bind;function _p(e,t){return h1.call(e,t)}var Dp=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ha(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ha(r)}else Ha(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ha(n)}}},Sn=class extends wr{constructor(t,n,r){super();let i;if(j(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&gt.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&_p(t.next,o),error:t.error&&_p(t.error,o),complete:t.complete&&_p(t.complete,o)}):i=t}this.destination=new Dp(i)}};function Ha(e){gt.useDeprecatedSynchronousErrorHandling?Qb(e):Ba(e)}function p1(e){throw e}function bp(e,t){let{onStoppedNotification:n}=gt;n&&ni.setTimeout(()=>n(e,t))}var g1={closed:!0,next:ns,error:p1,complete:ns};var ii=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xe(e){return e}function wp(...e){return Ep(e)}function Ep(e){return e.length===0?Xe:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var Z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=v1(n)?n:new Sn(n,r,i);return ri(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Jb(r),new r((i,o)=>{let s=new Sn({next:a=>{try{n(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[ii](){return this}pipe(...n){return Ep(n)(this)}toPromise(n){return n=Jb(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function Jb(e){var t;return(t=e??gt.Promise)!==null&&t!==void 0?t:Promise}function m1(e){return e&&j(e.next)&&j(e.error)&&j(e.complete)}function v1(e){return e&&e instanceof wr||m1(e)&&$a(e)}function Mp(e){return j(e?.lift)}function Y(e){return t=>{if(Mp(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function G(e,t,n,r,i){return new Cp(e,t,n,r,i)}var Cp=class extends wr{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function oi(){return Y((e,t)=>{let n=null;e._refCount++;let r=G(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let i=e._connection,o=n;n=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var si=class extends Z{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Mp(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new de;let n=this.getSubject();t.add(this.source.subscribe(G(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=de.EMPTY)}return t}refCount(){return oi()(this)}};var Kb=ti(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ye=(()=>{class e extends Z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new za(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Kb}next(n){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ri(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?vp:(this.currentObservers=null,o.push(n),new de(()=>{this.currentObservers=null,ts(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new Z;return n.source=this,n}}return e.create=(t,n)=>new za(t,n),e})(),za=class extends ye{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:vp}};var Ee=class extends ye{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var et=new Z(e=>e.complete());function Xb(e){return e&&j(e.schedule)}function e0(e){return e[e.length-1]}function Wa(e){return j(e0(e))?e.pop():void 0}function In(e){return Xb(e0(e))?e.pop():void 0}function n0(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function t0(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Er(e){return this instanceof Er?(this.v=e,this):new Er(e)}function r0(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(p){r[p]&&(i[p]=function(g){return new Promise(function(m,v){o.push([p,g,m,v])>1||a(p,g)})})}function a(p,g){try{u(r[p](g))}catch(m){d(o[0][3],m)}}function u(p){p.value instanceof Er?Promise.resolve(p.value.v).then(c,l):d(o[0][2],p)}function c(p){a("next",p)}function l(p){a("throw",p)}function d(p,g){p(g),o.shift(),o.length&&a(o[0][0],o[0][1])}}function i0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof t0=="function"?t0(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Ga=e=>e&&typeof e.length=="number"&&typeof e!="function";function Za(e){return j(e?.then)}function Ya(e){return j(e[ii])}function Qa(e){return Symbol.asyncIterator&&j(e?.[Symbol.asyncIterator])}function Ja(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function y1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ka=y1();function Xa(e){return j(e?.[Ka])}function eu(e){return r0(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield Er(n.read());if(i)return yield Er(void 0);yield yield Er(r)}}finally{n.releaseLock()}})}function tu(e){return j(e?.getReader)}function fe(e){if(e instanceof Z)return e;if(e!=null){if(Ya(e))return _1(e);if(Ga(e))return b1(e);if(Za(e))return D1(e);if(Qa(e))return o0(e);if(Xa(e))return w1(e);if(tu(e))return E1(e)}throw Ja(e)}function _1(e){return new Z(t=>{let n=e[ii]();if(j(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function b1(e){return new Z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function D1(e){return new Z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ba)})}function w1(e){return new Z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function o0(e){return new Z(t=>{M1(e,t).catch(n=>t.error(n))})}function E1(e){return o0(eu(e))}function M1(e,t){var n,r,i,o;return n0(this,void 0,void 0,function*(){try{for(n=i0(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Be(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function nu(e,t=0){return Y((n,r)=>{n.subscribe(G(r,i=>Be(r,e,()=>r.next(i),t),()=>Be(r,e,()=>r.complete(),t),i=>Be(r,e,()=>r.error(i),t)))})}function ru(e,t=0){return Y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function s0(e,t){return fe(e).pipe(ru(t),nu(t))}function a0(e,t){return fe(e).pipe(ru(t),nu(t))}function u0(e,t){return new Z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function c0(e,t){return new Z(n=>{let r;return Be(n,t,()=>{r=e[Ka](),Be(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>j(r?.return)&&r.return()})}function iu(e,t){if(!e)throw new Error("Iterable cannot be null");return new Z(n=>{Be(n,t,()=>{let r=e[Symbol.asyncIterator]();Be(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function l0(e,t){return iu(eu(e),t)}function d0(e,t){if(e!=null){if(Ya(e))return s0(e,t);if(Ga(e))return u0(e,t);if(Za(e))return a0(e,t);if(Qa(e))return iu(e,t);if(Xa(e))return c0(e,t);if(tu(e))return l0(e,t)}throw Ja(e)}function ae(e,t){return t?d0(e,t):fe(e)}function F(...e){let t=In(e);return ae(e,t)}function ai(e,t){let n=j(e)?e:()=>e,r=i=>i.error(n());return new Z(t?i=>t.schedule(r,0,i):r)}function Sp(e){return!!e&&(e instanceof Z||j(e.lift)&&j(e.subscribe))}var mt=ti(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function C1(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=new Sn({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new mt)}});e.subscribe(o)})}function V(e,t){return Y((n,r)=>{let i=0;n.subscribe(G(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:S1}=Array;function I1(e,t){return S1(t)?e(...t):e(t)}function ou(e){return V(t=>I1(e,t))}var{isArray:O1}=Array,{getPrototypeOf:A1,prototype:T1,keys:x1}=Object;function su(e){if(e.length===1){let t=e[0];if(O1(t))return{args:t,keys:null};if(N1(t)){let n=x1(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function N1(e){return e&&typeof e=="object"&&A1(e)===T1}function au(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function rs(...e){let t=In(e),n=Wa(e),{args:r,keys:i}=su(e);if(r.length===0)return ae([],t);let o=new Z(P1(r,t,i?s=>au(i,s):Xe));return n?o.pipe(ou(n)):o}function P1(e,t,n=Xe){return r=>{f0(t,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let u=0;u<i;u++)f0(t,()=>{let c=ae(e[u],t),l=!1;c.subscribe(G(r,d=>{o[u]=d,l||(l=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function f0(e,t,n){e?Be(n,e,t):t()}function h0(e,t,n,r,i,o,s,a){let u=[],c=0,l=0,d=!1,p=()=>{d&&!u.length&&!c&&t.complete()},g=v=>c<r?m(v):u.push(v),m=v=>{o&&t.next(v),c++;let y=!1;fe(n(v,l++)).subscribe(G(t,_=>{i?.(_),o?g(_):t.next(_)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;u.length&&c<r;){let _=u.shift();s?Be(t,s,()=>m(_)):m(_)}p()}catch(_){t.error(_)}}))};return e.subscribe(G(t,g,()=>{d=!0,p()})),()=>{a?.()}}function he(e,t,n=1/0){return j(t)?he((r,i)=>V((o,s)=>t(r,o,i,s))(fe(e(r,i))),n):(typeof t=="number"&&(n=t),Y((r,i)=>h0(r,i,e,n)))}function ui(e=1/0){return he(Xe,e)}function p0(){return ui(1)}function ci(...e){return p0()(ae(e,In(e)))}function uu(e){return new Z(t=>{fe(e()).subscribe(t)})}function Ip(...e){let t=Wa(e),{args:n,keys:r}=su(e),i=new Z(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l<s;l++){let d=!1;fe(n[l]).subscribe(G(o,p=>{d||(d=!0,c--),a[l]=p},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(r?au(r,a):a),o.complete())}))}});return t?i.pipe(ou(t)):i}function He(e,t){return Y((n,r)=>{let i=0;n.subscribe(G(r,o=>e.call(t,o,i++)&&r.next(o)))})}function en(e){return Y((t,n)=>{let r=null,i=!1,o;r=t.subscribe(G(n,void 0,void 0,s=>{o=fe(e(s,en(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function g0(e,t,n,r,i){return(o,s)=>{let a=n,u=t,c=0;o.subscribe(G(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function tn(e,t){return j(t)?he(e,t,1):he(e,1)}function On(e){return Y((t,n)=>{let r=!1;t.subscribe(G(n,i=>{r=!0,n.next(i)},()=>{r||n.next(e),n.complete()}))})}function nn(e){return e<=0?()=>et:Y((t,n)=>{let r=0;t.subscribe(G(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Op(e){return V(()=>e)}function cu(e=F1){return Y((t,n)=>{let r=!1;t.subscribe(G(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(e())))})}function F1(){return new mt}function Mr(e){return Y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Pt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?He((i,o)=>e(i,o,r)):Xe,nn(1),n?On(t):cu(()=>new mt))}function li(e){return e<=0?()=>et:Y((t,n)=>{let r=[];t.subscribe(G(n,i=>{r.push(i),e<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Ap(e,t){let n=arguments.length>=2;return r=>r.pipe(e?He((i,o)=>e(i,o,r)):Xe,li(1),n?On(t):cu(()=>new mt))}function Tp(e,t){return Y(g0(e,t,arguments.length>=2,!0))}function xp(...e){let t=In(e);return Y((n,r)=>{(t?ci(e,n,t):ci(e,n)).subscribe(r)})}function ze(e,t){return Y((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(G(r,u=>{i?.unsubscribe();let c=0,l=o++;fe(e(u,l)).subscribe(i=G(r,d=>r.next(t?t(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Np(e){return Y((t,n)=>{fe(e).subscribe(G(n,()=>n.complete(),ns)),!n.closed&&t.subscribe(n)})}function _e(e,t,n){let r=j(e)||t||n?{next:e,error:t,complete:n}:e;return r?Y((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(G(o,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),o.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),o.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),o.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):Xe}var eD="https://g.co/ng/security#xss",O=class extends Error{constructor(t,n){super(Zu(t,n)),this.code=t}};function Zu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function vs(e){return{toString:e}.toString()}var lu="__parameters__";function R1(e){return function(...n){if(e){let r=e(...n);for(let i in r)this[i]=r[i]}}}function tD(e,t,n){return vs(()=>{let r=R1(t);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(lu)?u[lu]:Object.defineProperty(u,lu,{value:[]})[lu];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var bt=globalThis;function re(e){for(let t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function k1(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function We(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(We).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(`
214
+ `);return n===-1?t:t.substring(0,n)}function m0(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var j1=re({__forward_ref__:re});function Nr(e){return e.__forward_ref__=Nr,e.toString=function(){return We(this())},e}function Re(e){return nD(e)?e():e}function nD(e){return typeof e=="function"&&e.hasOwnProperty(j1)&&e.__forward_ref__===Nr}function T(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Et(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yu(e){return v0(e,iD)||v0(e,oD)}function rD(e){return Yu(e)!==null}function v0(e,t){return e.hasOwnProperty(t)?e[t]:null}function L1(e){let t=e&&(e[iD]||e[oD]);return t||null}function y0(e){return e&&(e.hasOwnProperty(_0)||e.hasOwnProperty(V1))?e[_0]:null}var iD=re({\u0275prov:re}),_0=re({\u0275inj:re}),oD=re({ngInjectableDef:re}),V1=re({ngInjectorDef:re}),S=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=T({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function sD(e){return e&&!!e.\u0275providers}var q1=re({\u0275cmp:re}),U1=re({\u0275dir:re}),$1=re({\u0275pipe:re}),B1=re({\u0275mod:re}),bu=re({\u0275fac:re}),os=re({__NG_ELEMENT_ID__:re}),b0=re({__NG_ENV_ID__:re});function yt(e){return typeof e=="string"?e:e==null?"":String(e)}function H1(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():yt(e)}function z1(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new O(-200,e)}function jg(e,t){throw new O(-201,!1)}var z=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(z||{}),Gp;function aD(){return Gp}function at(e){let t=Gp;return Gp=e,t}function uD(e,t,n){let r=Yu(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&z.Optional)return null;if(t!==void 0)return t;jg(e,"Injector")}var W1={},as=W1,Zp="__NG_DI_FLAG__",Du="ngTempTokenPath",G1="ngTokenPath",Z1=/\n/gm,Y1="\u0275",D0="__source",gi;function Q1(){return gi}function An(e){let t=gi;return gi=e,t}function J1(e,t=z.Default){if(gi===void 0)throw new O(-203,!1);return gi===null?uD(e,void 0,t):gi.get(e,t&z.Optional?null:void 0,t)}function x(e,t=z.Default){return(aD()||J1)(Re(e),t)}function b(e,t=z.Default){return x(e,Qu(t))}function Qu(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Yp(e){let t=[];for(let n=0;n<e.length;n++){let r=Re(e[n]);if(Array.isArray(r)){if(r.length===0)throw new O(900,!1);let i,o=z.Default;for(let s=0;s<r.length;s++){let a=r[s],u=K1(a);typeof u=="number"?u===-1?i=a.token:o|=u:i=a}t.push(x(i,o))}else t.push(x(r))}return t}function cD(e,t){return e[Zp]=t,e.prototype[Zp]=t,e}function K1(e){return e[Zp]}function X1(e,t,n,r){let i=e[Du];throw t[D0]&&i.unshift(t[D0]),e.message=eN(`
215
+ `+e.message,i,n,r),e[G1]=i,e[Du]=null,e}function eN(e,t,n,r=null){e=e&&e.charAt(0)===`
216
+ `&&e.charAt(1)==Y1?e.slice(2):e;let i=We(t);if(Array.isArray(t))i=t.map(We).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):We(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Z1,`
217
+ `)}`}var Lg=cD(tD("Optional"),8);var lD=cD(tD("SkipSelf"),4);function vi(e,t){let n=e.hasOwnProperty(bu);return n?e[bu]:null}function Vg(e,t){e.forEach(n=>Array.isArray(n)?Vg(n,t):t(n))}function dD(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function wu(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function tN(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function nN(e,t,n){let r=ys(e,t);return r>=0?e[r|1]=n:(r=~r,tN(e,r,t,n)),r}function Pp(e,t){let n=ys(e,t);if(n>=0)return e[n|1]}function ys(e,t){return rN(e,t,1)}function rN(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var yi={},ut=[],_i=new S(""),fD=new S("",-1),hD=new S(""),Eu=class{get(t,n=as){if(n===as){let r=new Error(`NullInjectorError: No provider for ${We(t)}!`);throw r.name="NullInjectorError",r}return n}},pD=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(pD||{}),kt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(kt||{}),Nn=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Nn||{});function iN(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function Qp(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];oN(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function gD(e){return e===3||e===4||e===6}function oN(e){return e.charCodeAt(0)===64}function us(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?w0(e,n,i,null,t[++r]):w0(e,n,i,null,null))}}return e}function w0(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var mD="ng-template";function sN(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&iN(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(qg(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function qg(e){return e.type===4&&e.value!==mD}function aN(e,t,n){let r=e.type===4&&!n?mD:e.value;return t===r}function uN(e,t,n){let r=4,i=e.attrs,o=i!==null?dN(i):0,s=!1;for(let a=0;a<t.length;a++){let u=t[a];if(typeof u=="number"){if(!s&&!vt(r)&&!vt(u))return!1;if(s&&vt(u))continue;s=!1,r=u|r&1;continue}if(!s)if(r&4){if(r=2|r&1,u!==""&&!aN(e,u,n)||u===""&&t.length===1){if(vt(r))return!1;s=!0}}else if(r&8){if(i===null||!sN(e,i,u,n)){if(vt(r))return!1;s=!0}}else{let c=t[++a],l=cN(u,i,qg(e),n);if(l===-1){if(vt(r))return!1;s=!0;continue}if(c!==""){let d;if(l>o?d="":d=i[l+1].toLowerCase(),r&2&&c!==d){if(vt(r))return!1;s=!0}}}}return vt(r)||s}function vt(e){return(e&1)===0}function cN(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return fN(t,e)}function lN(e,t,n=!1){for(let r=0;r<t.length;r++)if(uN(e,t[r],n))return!0;return!1}function dN(e){for(let t=0;t<e.length;t++){let n=e[t];if(gD(n))return t}return e.length}function fN(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function E0(e,t){return e?":not("+t.trim()+")":t}function hN(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!vt(s)&&(t+=E0(o,i),i=""),r=s,o=o||!vt(r);n++}return i!==""&&(t+=E0(o,i)),t}function pN(e){return e.map(hN).join(",")}function gN(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!vt(i))break;i=o}r++}return{attrs:t,classes:n}}function vD(e){return vs(()=>{let t=wD(e),n=H(D({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===pD.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||ut,_:null,schemas:e.schemas||null,tView:null,id:""});ED(n);let r=e.dependencies;return n.directiveDefs=C0(r,!1),n.pipeDefs=C0(r,!0),n.id=yN(n),n})}function mN(e){return Pn(e)||yD(e)}function vN(e){return e!==null}function Mt(e){return vs(()=>({type:e.type,bootstrap:e.bootstrap||ut,declarations:e.declarations||ut,imports:e.imports||ut,exports:e.exports||ut,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function M0(e,t){if(e==null)return yi;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a=Nn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),t?(n[o]=a!==Nn.None?[r,a]:r,t[o]=s):n[o]=r}return n}function Ve(e){return vs(()=>{let t=wD(e);return ED(t),t})}function Pn(e){return e[q1]||null}function yD(e){return e[U1]||null}function _D(e){return e[$1]||null}function bD(e){let t=Pn(e)||yD(e)||_D(e);return t!==null?t.standalone:!1}function DD(e,t){let n=e[B1]||null;if(!n&&t===!0)throw new Error(`Type ${We(e)} does not have '\u0275mod' property.`);return n}function wD(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||yi,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||ut,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:M0(e.inputs,t),outputs:M0(e.outputs),debugInfo:null}}function ED(e){e.features?.forEach(t=>t(e))}function C0(e,t){if(!e)return null;let n=t?_D:mN;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(vN)}function yN(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let i of n)t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ju(e){return{\u0275providers:e}}function _N(...e){return{\u0275providers:MD(!0,e),\u0275fromNgModule:!0}}function MD(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return Vg(t,s=>{let a=s;Jp(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&CD(i,o),n}function CD(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];Ug(i,o=>{t(o,r)})}}function Jp(e,t,n,r){if(e=Re(e),!e)return!1;let i=null,o=y0(e),s=!o&&Pn(e);if(!o&&!s){let u=e.ngModule;if(o=y0(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Jp(c,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;try{Vg(o.imports,l=>{Jp(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&CD(c,t)}if(!a){let c=vi(i)||(()=>new i);t({provide:i,useFactory:c,deps:ut},i),t({provide:hD,useValue:i,multi:!0},i),t({provide:_i,useValue:()=>x(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=e;Ug(u,l=>{t(l,c)})}}else return!1;return i!==e&&e.providers!==void 0}function Ug(e,t){for(let n of e)sD(n)&&(n=n.\u0275providers),Array.isArray(n)?Ug(n,t):t(n)}var bN=re({provide:String,useValue:re});function SD(e){return e!==null&&typeof e=="object"&&bN in e}function DN(e){return!!(e&&e.useExisting)}function wN(e){return!!(e&&e.useFactory)}function bi(e){return typeof e=="function"}function EN(e){return!!e.useClass}var Ku=new S(""),mu={},MN={},Fp;function $g(){return Fp===void 0&&(Fp=new Eu),Fp}var je=class{},cs=class extends je{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Xp(t,s=>this.processProvider(s)),this.records.set(fD,di(void 0,this)),i.has("environment")&&this.records.set(je,di(void 0,this));let o=this.records.get(Ku);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(hD,ut,z.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=W(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),W(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=An(this),r=at(void 0),i;try{return t()}finally{An(n),at(r)}}get(t,n=as,r=z.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(b0))return t[b0](this);r=Qu(r);let i,o=An(this),s=at(void 0);try{if(!(r&z.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=AN(t)&&Yu(t);c&&this.injectableDefInScope(c)?u=di(Kp(t),mu):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&z.Self?$g():this.parent;return n=r&z.Optional&&n===as?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Du]=a[Du]||[]).unshift(We(t)),o)throw a;return X1(a,t,"R3InjectorError",this.source)}else throw a}finally{at(s),An(o)}}resolveInjectorInitializers(){let t=W(null),n=An(this),r=at(void 0),i;try{let o=this.get(_i,ut,z.Self);for(let s of o)s()}finally{An(n),at(r),W(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(We(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new O(205,!1)}processProvider(t){t=Re(t);let n=bi(t)?t:Re(t&&t.provide),r=SN(t);if(!bi(t)&&t.multi===!0){let i=this.records.get(n);i||(i=di(void 0,mu,!0),i.factory=()=>Yp(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=W(null);try{return n.value===mu&&(n.value=MN,n.value=n.factory()),typeof n.value=="object"&&n.value&&ON(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{W(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Kp(e){let t=Yu(e),n=t!==null?t.factory:vi(e);if(n!==null)return n;if(e instanceof S)throw new O(204,!1);if(e instanceof Function)return CN(e);throw new O(204,!1)}function CN(e){if(e.length>0)throw new O(204,!1);let n=L1(e);return n!==null?()=>n.factory(e):()=>new e}function SN(e){if(SD(e))return di(void 0,e.useValue);{let t=ID(e);return di(t,mu)}}function ID(e,t,n){let r;if(bi(e)){let i=Re(e);return vi(i)||Kp(i)}else if(SD(e))r=()=>Re(e.useValue);else if(wN(e))r=()=>e.useFactory(...Yp(e.deps||[]));else if(DN(e))r=()=>x(Re(e.useExisting));else{let i=Re(e&&(e.useClass||e.provide));if(IN(e))r=()=>new i(...Yp(e.deps));else return vi(i)||Kp(i)}return r}function di(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function IN(e){return!!e.deps}function ON(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function AN(e){return typeof e=="function"||typeof e=="object"&&e instanceof S}function Xp(e,t){for(let n of e)Array.isArray(n)?Xp(n,t):n&&sD(n)?Xp(n.\u0275providers,t):t(n)}function dt(e,t){e instanceof cs&&e.assertNotDestroyed();let n,r=An(e),i=at(void 0);try{return t()}finally{An(r),at(i)}}function OD(){return aD()!==void 0||Q1()!=null}function TN(e){if(!OD())throw new O(-203,!1)}function xN(e){let t=bt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function NN(e){return typeof e=="function"}var sn=0,$=1,k=2,Le=3,_t=4,Ct=5,ls=6,Mu=7,Oe=8,Di=9,jt=10,me=11,ds=12,S0=13,Ni=14,Dt=15,wi=16,fi=17,Ei=18,Xu=19,AD=20,Tn=21,Rp=22,ct=23,wt=25,TD=1;var Sr=7,Cu=8,Su=9,ke=10,Iu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Iu||{});function xn(e){return Array.isArray(e)&&typeof e[TD]=="object"}function an(e){return Array.isArray(e)&&e[TD]===!0}function xD(e){return(e.flags&4)!==0}function ec(e){return e.componentOffset>-1}function Bg(e){return(e.flags&1)===1}function Fn(e){return!!e.template}function eg(e){return(e[k]&512)!==0}var tg=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function ND(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Pr(){return PD}function PD(e){return e.type.prototype.ngOnChanges&&(e.setInput=FN),PN}Pr.ngInherit=!0;function PN(){let e=RD(this),t=e?.current;if(t){let n=e.previous;if(n===yi)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function FN(e,t,n,r,i){let o=this.declaredInputs[r],s=RD(e)||RN(e,{previous:yi,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[o];a[o]=new tg(c&&c.currentValue,n,u===yi),ND(e,t,i,n)}var FD="__ngSimpleChanges__";function RD(e){return e[FD]||null}function RN(e,t){return e[FD]=t}var I0=null;var Ft=function(e,t,n){I0?.(e,t,n)},kD="svg",kN="math";function Lt(e){for(;Array.isArray(e);)e=e[sn];return e}function jD(e,t){return Lt(t[e])}function ft(e,t){return Lt(t[e.index])}function Hg(e,t){return e.data[t]}function kn(e,t){let n=t[e];return xn(n)?n:n[sn]}function zg(e){return(e[k]&128)===128}function jN(e){return an(e[Le])}function Mi(e,t){return t==null?null:e[t]}function LD(e){e[fi]=0}function VD(e){e[k]&1024||(e[k]|=1024,zg(e)&&nc(e))}function LN(e,t){for(;e>0;)t=t[Ni],e--;return t}function tc(e){return!!(e[k]&9216||e[ct]?.dirty)}function ng(e){e[jt].changeDetectionScheduler?.notify(8),e[k]&64&&(e[k]|=1024),tc(e)&&nc(e)}function nc(e){e[jt].changeDetectionScheduler?.notify(0);let t=Ir(e);for(;t!==null&&!(t[k]&8192||(t[k]|=8192,!zg(t)));)t=Ir(t)}function qD(e,t){if((e[k]&256)===256)throw new O(911,!1);e[Tn]===null&&(e[Tn]=[]),e[Tn].push(t)}function VN(e,t){if(e[Tn]===null)return;let n=e[Tn].indexOf(t);n!==-1&&e[Tn].splice(n,1)}function Ir(e){let t=e[Le];return an(t)?t[Le]:t}var B={lFrame:QD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var UD=!1;function qN(){return B.lFrame.elementDepthCount}function UN(){B.lFrame.elementDepthCount++}function $N(){B.lFrame.elementDepthCount--}function $D(){return B.bindingsEnabled}function BN(){return B.skipHydrationRootTNode!==null}function HN(e){return B.skipHydrationRootTNode===e}function zN(){B.skipHydrationRootTNode=null}function Q(){return B.lFrame.lView}function Ge(){return B.lFrame.tView}function yre(e){return B.lFrame.contextLView=e,e[Oe]}function _re(e){return B.lFrame.contextLView=null,e}function Ze(){let e=BD();for(;e!==null&&e.type===64;)e=e.parent;return e}function BD(){return B.lFrame.currentTNode}function WN(){let e=B.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _s(e,t){let n=B.lFrame;n.currentTNode=e,n.isParent=t}function HD(){return B.lFrame.isParent}function GN(){B.lFrame.isParent=!1}function zD(){return UD}function O0(e){UD=e}function rc(){let e=B.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function WD(){return B.lFrame.bindingIndex}function ZN(e){return B.lFrame.bindingIndex=e}function Pi(){return B.lFrame.bindingIndex++}function Wg(e){let t=B.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function YN(){return B.lFrame.inI18n}function QN(e,t){let n=B.lFrame;n.bindingIndex=n.bindingRootIndex=e,rg(t)}function JN(){return B.lFrame.currentDirectiveIndex}function rg(e){B.lFrame.currentDirectiveIndex=e}function KN(e){let t=B.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function GD(e){B.lFrame.currentQueryIndex=e}function XN(e){let t=e[$];return t.type===2?t.declTNode:t.type===1?e[Ct]:null}function ZD(e,t,n){if(n&z.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&z.Host);)if(i=XN(o),i===null||(o=o[Ni],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=B.lFrame=YD();return r.currentTNode=t,r.lView=e,!0}function Gg(e){let t=YD(),n=e[$];B.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function YD(){let e=B.lFrame,t=e===null?null:e.child;return t===null?QD(e):t}function QD(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function JD(){let e=B.lFrame;return B.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var KD=JD;function Zg(){let e=JD();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function eP(e){return(B.lFrame.contextLView=LN(e,B.lFrame.contextLView))[Oe]}function un(){return B.lFrame.selectedIndex}function Or(e){B.lFrame.selectedIndex=e}function Yg(){let e=B.lFrame;return Hg(e.tView,e.selectedIndex)}function bre(){B.lFrame.currentNamespace=kD}function Dre(){tP()}function tP(){B.lFrame.currentNamespace=null}function nP(){return B.lFrame.currentNamespace}var XD=!0;function Qg(){return XD}function Jg(e){XD=e}function rP(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=PD(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function Kg(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:u,ngAfterViewChecked:c,ngOnDestroy:l}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),u&&(e.viewHooks??=[]).push(-n,u),c&&((e.viewHooks??=[]).push(n,c),(e.viewCheckHooks??=[]).push(n,c)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function vu(e,t,n){ew(e,t,3,n)}function yu(e,t,n,r){(e[k]&3)===n&&ew(e,t,n,r)}function kp(e,t){let n=e[k];(n&3)===t&&(n&=16383,n+=1,e[k]=n)}function ew(e,t,n,r){let i=r!==void 0?e[fi]&65535:0,o=r??-1,s=t.length-1,a=0;for(let u=i;u<s;u++)if(typeof t[u+1]=="number"){if(a=t[u],r!=null&&a>=r)break}else t[u]<0&&(e[fi]+=65536),(a<o||o==-1)&&(iP(e,n,t,u),e[fi]=(e[fi]&4294901760)+u+2),u++}function A0(e,t){Ft(4,e,t);let n=W(null);try{t.call(e)}finally{W(n),Ft(5,e,t)}}function iP(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[k]>>14<e[fi]>>16&&(e[k]&3)===t&&(e[k]+=16384,A0(a,o)):A0(a,o)}var mi=-1,Ar=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function oP(e){return e instanceof Ar}function sP(e){return(e.flags&8)!==0}function aP(e){return(e.flags&16)!==0}var jp={},ig=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Qu(r);let i=this.injector.get(t,jp,r);return i!==jp||n===jp?i:this.parentInjector.get(t,n,r)}};function tw(e){return e!==mi}function Ou(e){return e&32767}function uP(e){return e>>16}function Au(e,t){let n=uP(e),r=t;for(;n>0;)r=r[Ni],n--;return r}var og=!0;function T0(e){let t=og;return og=e,t}var cP=256,nw=cP-1,rw=5,lP=0,Rt={};function dP(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(os)&&(r=n[os]),r==null&&(r=n[os]=lP++);let i=r&nw,o=1<<i;t.data[e+(i>>rw)]|=o}function Tu(e,t){let n=iw(e,t);if(n!==-1)return n;let r=t[$];r.firstCreatePass&&(e.injectorIndex=t.length,Lp(r.data,e),Lp(t,null),Lp(r.blueprint,null));let i=Xg(e,t),o=e.injectorIndex;if(tw(i)){let s=Ou(i),a=Au(i,t),u=a[$].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|u[s+c]}return t[o+8]=i,o}function Lp(e,t){e.push(0,0,0,0,0,0,0,0,t)}function iw(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Xg(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=cw(i),r===null)return mi;if(n++,i=i[Ni],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return mi}function sg(e,t,n){dP(e,t,n)}function fP(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,i=0;for(;i<r;){let o=n[i];if(gD(o))break;if(o===0)i=i+2;else if(typeof o=="number")for(i++;i<r&&typeof n[i]=="string";)i++;else{if(o===t)return n[i+1];i=i+2}}}return null}function ow(e,t,n){if(n&z.Optional||e!==void 0)return e;jg(t,"NodeInjector")}function sw(e,t,n,r){if(n&z.Optional&&r===void 0&&(r=null),!(n&(z.Self|z.Host))){let i=e[Di],o=at(void 0);try{return i?i.get(t,r,n&z.Optional):uD(t,r,n&z.Optional)}finally{at(o)}}return ow(r,t,n)}function aw(e,t,n,r=z.Default,i){if(e!==null){if(t[k]&2048&&!(r&z.Self)){let s=vP(e,t,n,r,Rt);if(s!==Rt)return s}let o=uw(e,t,n,r,Rt);if(o!==Rt)return o}return sw(t,n,r,i)}function uw(e,t,n,r,i){let o=gP(n);if(typeof o=="function"){if(!ZD(t,e,r))return r&z.Host?ow(i,n,r):sw(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&z.Optional))jg(n);else return s}finally{KD()}}else if(typeof o=="number"){let s=null,a=iw(e,t),u=mi,c=r&z.Host?t[Dt][Ct]:null;for((a===-1||r&z.SkipSelf)&&(u=a===-1?Xg(e,t):t[a+8],u===mi||!N0(r,!1)?a=-1:(s=t[$],a=Ou(u),t=Au(u,t)));a!==-1;){let l=t[$];if(x0(o,a,l.data)){let d=hP(a,t,n,s,r,c);if(d!==Rt)return d}u=t[a+8],u!==mi&&N0(r,t[$].data[a+8]===c)&&x0(o,a,t)?(s=l,a=Ou(u),t=Au(u,t)):a=-1}}return i}function hP(e,t,n,r,i,o){let s=t[$],a=s.data[e+8],u=r==null?ec(a)&&og:r!=s&&(a.type&3)!==0,c=i&z.Host&&o===a,l=pP(a,s,n,u,c);return l!==null?Ci(t,s,l,a):Rt}function pP(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,u=e.directiveStart,c=e.directiveEnd,l=o>>20,d=r?a:a+l,p=i?a+l:c;for(let g=d;g<p;g++){let m=s[g];if(g<u&&n===m||g>=u&&m.type===n)return g}if(i){let g=s[u];if(g&&Fn(g)&&g.type===n)return u}return null}function Ci(e,t,n,r){let i=e[n],o=t.data;if(oP(i)){let s=i;s.resolving&&z1(H1(o[n]));let a=T0(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?at(s.injectImpl):null,l=ZD(e,r,z.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&rP(n,o[n],t)}finally{c!==null&&at(c),T0(a),s.resolving=!1,KD()}}return i}function gP(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(os)?e[os]:void 0;return typeof t=="number"?t>=0?t&nw:mP:t}function x0(e,t,n){let r=1<<e;return!!(n[t+(e>>rw)]&r)}function N0(e,t){return!(e&z.Self)&&!(e&z.Host&&t)}var Cr=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return aw(this._tNode,this._lView,t,Qu(r),n)}};function mP(){return new Cr(Ze(),Q())}function Fi(e){return vs(()=>{let t=e.prototype.constructor,n=t[bu]||ag(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[bu]||ag(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ag(e){return nD(e)?()=>{let t=ag(Re(e));return t&&t()}:vi(e)}function vP(e,t,n,r,i){let o=e,s=t;for(;o!==null&&s!==null&&s[k]&2048&&!(s[k]&512);){let a=uw(o,s,n,r|z.Self,Rt);if(a!==Rt)return a;let u=o.parent;if(!u){let c=s[AD];if(c){let l=c.get(n,Rt,r);if(l!==Rt)return l}u=cw(s),s=s[Ni]}o=u}return i}function cw(e){let t=e[$],n=t.type;return n===2?t.declTNode:n===1?e[Ct]:null}function em(e){return fP(Ze(),e)}function P0(e,t=null,n=null,r){let i=lw(e,t,n,r);return i.resolveInjectorInitializers(),i}function lw(e,t=null,n=null,r,i=new Set){let o=[n||ut,_N(e)];return r=r||(typeof e=="object"?void 0:We(e)),new cs(o,t||$g(),r||null,i)}var tt=class e{static{this.THROW_IF_NOT_FOUND=as}static{this.NULL=new Eu}static create(t,n){if(Array.isArray(t))return P0({name:""},n,t,"");{let r=t.name??"";return P0({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=T({token:e,providedIn:"any",factory:()=>x(fD)})}static{this.__NG_ELEMENT_ID__=-1}};var yP=new S("");yP.__NG_ELEMENT_ID__=e=>{let t=Ze();if(t===null)throw new O(204,!1);if(t.type&2)return t.value;if(e&z.Optional)return null;throw new O(204,!1)};var _P="ngOriginalError";function Vp(e){return e[_P]}var dw=!0,tm=(()=>{class e{static{this.__NG_ELEMENT_ID__=bP}static{this.__NG_ENV_ID__=n=>n}}return e})(),ug=class extends tm{constructor(t){super(),this._lView=t}onDestroy(t){return qD(this._lView,t),()=>VN(this._lView,t)}};function bP(){return new ug(Q())}var jn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ee(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}}return e})();var cg=class extends ye{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,OD()&&(this.destroyRef=b(tm,{optional:!0})??void 0,this.pendingTasks=b(jn,{optional:!0})??void 0)}emit(t){let n=W(null);try{super.next(t)}finally{W(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof de&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},pe=cg;function xu(...e){}function fw(e){let t,n;function r(){e=xu;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function F0(e){return queueMicrotask(()=>e()),()=>{e=xu}}var nm="isAngularZone",Nu=nm+"_ID",DP=0,te=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=dw}=t;if(typeof Zone>"u")throw new O(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,MP(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(nm)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new O(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new O(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,wP,xu,xu);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},wP={};function rm(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function EP(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){fw(()=>{e.callbackScheduled=!1,lg(e),e.isCheckStableRunning=!0,rm(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),lg(e)}function MP(e){let t=()=>{EP(e)},n=DP++;e._inner=e._inner.fork({name:"angular",properties:{[nm]:!0,[Nu]:n,[Nu+n]:!0},onInvokeTask:(r,i,o,s,a,u)=>{if(CP(u))return r.invokeTask(o,s,a,u);try{return R0(e),r.invokeTask(o,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),k0(e)}},onInvoke:(r,i,o,s,a,u,c)=>{try{return R0(e),r.invoke(o,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!SP(u)&&t(),k0(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,lg(e),rm(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function lg(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function R0(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function k0(e){e._nesting--,rm(e)}var Pu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function CP(e){return hw(e,"__ignore_ng_zone__")}function SP(e){return hw(e,"__scheduler_tick__")}function hw(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function IP(e="zone.js",t){return e==="noop"?new Pu:e==="zone.js"?new te(t):e}var rn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Vp(t);for(;n&&Vp(n);)n=Vp(n);return n||null}},OP=new S("",{providedIn:"root",factory:()=>{let e=b(te),t=b(rn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function AP(){return im(Ze(),Q())}function im(e,t){return new cn(ft(e,t))}var cn=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=AP}}return e})();function pw(e){return(e.flags&128)===128}var gw=new Map,TP=0;function xP(){return TP++}function NP(e){gw.set(e[Xu],e)}function dg(e){gw.delete(e[Xu])}var j0="__ngContext__";function Tr(e,t){xn(t)?(e[j0]=t[Xu],NP(t)):e[j0]=t}function mw(e){return yw(e[ds])}function vw(e){return yw(e[_t])}function yw(e){for(;e!==null&&!an(e);)e=e[_t];return e}var fg;function _w(e){fg=e}function PP(){if(fg!==void 0)return fg;if(typeof document<"u")return document;throw new O(210,!1)}var ic=new S("",{providedIn:"root",factory:()=>FP}),FP="ng",om=new S(""),Vt=new S("",{providedIn:"platform",factory:()=>"unknown"});var sm=new S("",{providedIn:"root",factory:()=>PP().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var RP="h",kP="b";var jP=()=>null;function am(e,t,n=!1){return jP(e,t,n)}var bw=!1,LP=new S("",{providedIn:"root",factory:()=>bw});var du;function VP(){if(du===void 0&&(du=null,bt.trustedTypes))try{du=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return du}function L0(e){return VP()?.createScriptURL(e)||e}var Fu=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${eD})`}};function bs(e){return e instanceof Fu?e.changingThisBreaksApplicationSecurity:e}function um(e,t){let n=qP(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${eD})`)}return n===t}function qP(e){return e instanceof Fu&&e.getTypeName()||null}var UP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Dw(e){return e=String(e),e.match(UP)?e:"unsafe:"+e}var oc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(oc||{});function $P(e){let t=Ew();return t?t.sanitize(oc.URL,e)||"":um(e,"URL")?bs(e):Dw(yt(e))}function BP(e){let t=Ew();if(t)return L0(t.sanitize(oc.RESOURCE_URL,e)||"");if(um(e,"ResourceURL"))return L0(bs(e));throw new O(904,!1)}function HP(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?BP:$P}function ww(e,t,n){return HP(t,n)(e)}function Ew(){let e=Q();return e&&e[jt].sanitizer}function Mw(e){return e instanceof Function?e():e}function zP(e){return(e??b(tt)).get(Vt)==="browser"}var on=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(on||{}),WP;function cm(e,t){return WP(e,t)}function hi(e,t,n,r,i){if(r!=null){let o,s=!1;an(r)?o=r:xn(r)&&(s=!0,r=r[sn]);let a=Lt(r);e===0&&n!==null?i==null?Ow(t,n,a):Ru(t,n,a,i||null,!0):e===1&&n!==null?Ru(t,n,a,i||null,!0):e===2?aF(t,a,s):e===3&&t.destroyNode(a),o!=null&&cF(t,e,o,n,i)}}function GP(e,t){return e.createText(t)}function ZP(e,t,n){e.setValue(t,n)}function Cw(e,t,n){return e.createElement(t,n)}function YP(e,t){Sw(e,t),t[sn]=null,t[Ct]=null}function QP(e,t,n,r,i,o){r[sn]=i,r[Ct]=t,ac(e,r,n,1,i,o)}function Sw(e,t){t[jt].changeDetectionScheduler?.notify(9),ac(e,t,t[me],2,null,null)}function JP(e){let t=e[ds];if(!t)return qp(e[$],e);for(;t;){let n=null;if(xn(t))n=t[ds];else{let r=t[ke];r&&(n=r)}if(!n){for(;t&&!t[_t]&&t!==e;)xn(t)&&qp(t[$],t),t=t[Le];t===null&&(t=e),xn(t)&&qp(t[$],t),n=t&&t[_t]}t=n}}function KP(e,t,n,r){let i=ke+r,o=n.length;r>0&&(n[i-1][_t]=t),r<o-ke?(t[_t]=n[i],dD(n,ke+r,t)):(n.push(t),t[_t]=null),t[Le]=n;let s=t[wi];s!==null&&n!==s&&Iw(s,t);let a=t[Ei];a!==null&&a.insertView(e),ng(t),t[k]|=128}function Iw(e,t){let n=e[Su],r=t[Le];if(xn(r))e[k]|=Iu.HasTransplantedViews;else{let i=r[Le][Dt];t[Dt]!==i&&(e[k]|=Iu.HasTransplantedViews)}n===null?e[Su]=[t]:n.push(t)}function lm(e,t){let n=e[Su],r=n.indexOf(t);n.splice(r,1)}function fs(e,t){if(e.length<=ke)return;let n=ke+t,r=e[n];if(r){let i=r[wi];i!==null&&i!==e&&lm(i,r),t>0&&(e[n-1][_t]=r[_t]);let o=wu(e,ke+t);YP(r[$],r);let s=o[Ei];s!==null&&s.detachView(o[$]),r[Le]=null,r[_t]=null,r[k]&=-129}return r}function sc(e,t){if(!(t[k]&256)){let n=t[me];n.destroyNode&&ac(e,t,n,3,null,null),JP(t)}}function qp(e,t){if(t[k]&256)return;let n=W(null);try{t[k]&=-129,t[k]|=256,t[ct]&&gp(t[ct]),eF(e,t),XP(e,t),t[$].type===1&&t[me].destroy();let r=t[wi];if(r!==null&&an(t[Le])){r!==t[Le]&&lm(r,t);let i=t[Ei];i!==null&&i.detachView(e)}dg(t)}finally{W(n)}}function XP(e,t){let n=e.cleanup,r=t[Mu];if(n!==null)for(let o=0;o<n.length-1;o+=2)if(typeof n[o]=="string"){let s=n[o+3];s>=0?r[s]():r[-s].unsubscribe(),o+=2}else{let s=r[n[o+1]];n[o].call(s)}r!==null&&(t[Mu]=null);let i=t[Tn];if(i!==null){t[Tn]=null;for(let o=0;o<i.length;o++){let s=i[o];s()}}}function eF(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof Ar)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],u=o[s+1];Ft(4,a,u);try{u.call(a)}finally{Ft(5,a,u)}}else{Ft(4,i,o);try{o.call(i)}finally{Ft(5,i,o)}}}}}function tF(e,t,n){return nF(e,t.parent,n)}function nF(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[sn];{let{componentOffset:i}=r;if(i>-1){let{encapsulation:o}=e.data[r.directiveStart+i];if(o===kt.None||o===kt.Emulated)return null}return ft(r,n)}}function Ru(e,t,n,r,i){e.insertBefore(t,n,r,i)}function Ow(e,t,n){e.appendChild(t,n)}function V0(e,t,n,r,i){r!==null?Ru(e,t,n,r,i):Ow(e,t,n)}function Aw(e,t){return e.parentNode(t)}function rF(e,t){return e.nextSibling(t)}function iF(e,t,n){return sF(e,t,n)}function oF(e,t,n){return e.type&40?ft(e,n):null}var sF=oF,q0;function dm(e,t,n,r){let i=tF(e,r,t),o=t[me],s=r.parent||t[Ct],a=iF(s,r,t);if(i!=null)if(Array.isArray(n))for(let u=0;u<n.length;u++)V0(o,i,n[u],a,!1);else V0(o,i,n,a,!1);q0!==void 0&&q0(o,r,t,n,i)}function is(e,t){if(t!==null){let n=t.type;if(n&3)return ft(t,e);if(n&4)return hg(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return is(e,r);{let i=e[t.index];return an(i)?hg(-1,i):Lt(i)}}else{if(n&128)return is(e,t.next);if(n&32)return cm(t,e)()||Lt(e[t.index]);{let r=Tw(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Ir(e[Dt]);return is(i,r)}else return is(e,t.next)}}}return null}function Tw(e,t){if(t!==null){let r=e[Dt][Ct],i=t.projection;return r.projection[i]}return null}function hg(e,t){let n=ke+e+1;if(n<t.length){let r=t[n],i=r[$].firstChild;if(i!==null)return is(r,i)}return t[Sr]}function aF(e,t,n){e.removeChild(null,t,n)}function fm(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],u=n.type;if(s&&t===0&&(a&&Tr(Lt(a),r),n.flags|=2),(n.flags&32)!==32)if(u&8)fm(e,t,n.child,r,i,o,!1),hi(t,e,i,a,o);else if(u&32){let c=cm(n,r),l;for(;l=c();)hi(t,e,i,l,o);hi(t,e,i,a,o)}else u&16?uF(e,t,r,n,i,o):hi(t,e,i,a,o);n=s?n.projectionNext:n.next}}function ac(e,t,n,r,i,o){fm(n,r,e.firstChild,t,i,o,!1)}function uF(e,t,n,r,i,o){let s=n[Dt],u=s[Ct].projection[r.projection];if(Array.isArray(u))for(let c=0;c<u.length;c++){let l=u[c];hi(t,e,i,l,o)}else{let c=u,l=s[Le];pw(r)&&(c.flags|=128),fm(e,t,c,l,i,o,!0)}}function cF(e,t,n,r,i){let o=n[Sr],s=Lt(n);o!==s&&hi(t,e,r,o,i);for(let a=ke;a<n.length;a++){let u=n[a];ac(u[$],u,e,t,r,o)}}function lF(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:on.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=on.Important),e.setStyle(n,r,i,o))}}function dF(e,t,n){e.setAttribute(t,"style",n)}function xw(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Nw(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Qp(e,t,r),i!==null&&xw(e,t,i),o!==null&&dF(e,t,o)}var nt={};function wre(e=1){Pw(Ge(),Q(),un()+e,!1)}function Pw(e,t,n,r){if(!r)if((t[k]&3)===3){let o=e.preOrderCheckHooks;o!==null&&vu(t,o,n)}else{let o=e.preOrderHooks;o!==null&&yu(t,o,0,n)}Or(n)}function X(e,t=z.Default){let n=Q();if(n===null)return x(e,t);let r=Ze();return aw(r,n,Re(e),t)}function Fw(){let e="invalid";throw new Error(e)}function Rw(e,t,n,r,i,o){let s=W(null);try{let a=null;i&Nn.SignalBased&&(a=t[r][Xt]),a!==null&&a.transformFn!==void 0&&(o=a.transformFn(o)),i&Nn.HasDecoratorInputTransform&&(o=e.inputTransforms[r].call(t,o)),e.setInput!==null?e.setInput(t,a,o,n,r):ND(t,a,r,o)}finally{W(s)}}function fF(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Or(~i);else{let o=i,s=n[++r],a=n[++r];QN(s,o);let u=t[o];a(2,u)}}}finally{Or(-1)}}function uc(e,t,n,r,i,o,s,a,u,c,l){let d=t.blueprint.slice();return d[sn]=i,d[k]=r|4|128|8|64,(c!==null||e&&e[k]&2048)&&(d[k]|=2048),LD(d),d[Le]=d[Ni]=e,d[Oe]=n,d[jt]=s||e&&e[jt],d[me]=a||e&&e[me],d[Di]=u||e&&e[Di]||null,d[Ct]=o,d[Xu]=xP(),d[ls]=l,d[AD]=c,d[Dt]=t.type==2?e[Dt]:d,d}function cc(e,t,n,r,i){let o=e.data[t];if(o===null)o=hF(e,t,n,r,i),YN()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=WN();o.injectorIndex=s===null?-1:s.injectorIndex}return _s(o,!0),o}function hF(e,t,n,r,i){let o=BD(),s=HD(),a=s?o:o&&o.parent,u=e.data[t]=yF(e,a,n,t,r,i);return e.firstChild===null&&(e.firstChild=u),o!==null&&(s?o.child==null&&u.parent!==null&&(o.child=u):o.next===null&&(o.next=u,u.prev=o)),u}function kw(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function jw(e,t,n,r,i){let o=un(),s=r&2;try{Or(-1),s&&t.length>wt&&Pw(e,t,wt,!1),Ft(s?2:0,i),n(r,i)}finally{Or(o),Ft(s?3:1,i)}}function Lw(e,t,n){if(xD(t)){let r=W(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let u=n[s];a.contentQueries(1,u,s)}}}finally{W(r)}}}function Vw(e,t,n){$D()&&(MF(e,t,n,ft(n,t)),(n.flags&64)===64&&zw(e,t,n))}function qw(e,t,n=ft){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function Uw(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=hm(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function hm(e,t,n,r,i,o,s,a,u,c,l){let d=wt+r,p=d+i,g=pF(d,p),m=typeof c=="function"?c():c;return g[$]={type:e,blueprint:g,template:n,queries:null,viewQuery:a,declTNode:t,data:g.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:u,consts:m,incompleteFirstPass:!1,ssrId:l}}function pF(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:nt);return n}function gF(e,t,n,r){let o=r.get(LP,bw)||n===kt.ShadowDom,s=e.selectRootElement(t,o);return mF(s),s}function mF(e){vF(e)}var vF=()=>null;function yF(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return BN()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function U0(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a,u=Nn.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=o;if(i!==null){if(!i.hasOwnProperty(o))continue;c=i[o]}e===0?$0(r,n,c,a,u):$0(r,n,c,a)}return r}function $0(e,t,n,r,i){let o;e.hasOwnProperty(n)?(o=e[n]).push(t,r):o=e[n]=[t,r],i!==void 0&&o.push(i)}function _F(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l<i;l++){let d=o[l],p=n?n.get(d):null,g=p?p.inputs:null,m=p?p.outputs:null;u=U0(0,d.inputs,l,u,g),c=U0(1,d.outputs,l,c,m);let v=u!==null&&s!==null&&!qg(t)?RF(u,l,s):null;a.push(v)}u!==null&&(u.hasOwnProperty("class")&&(t.flags|=8),u.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=u,t.outputs=c}function bF(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function $w(e,t,n,r,i,o,s,a){let u=ft(t,n),c=t.inputs,l;!a&&c!=null&&(l=c[r])?(pm(e,n,l,r,i),ec(t)&&DF(n,t.index)):t.type&3?(r=bF(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(u,r,i)):t.type&12}function DF(e,t){let n=kn(t,e);n[k]&16||(n[k]|=64)}function Bw(e,t,n,r){if($D()){let i=r===null?null:{"":-1},o=SF(e,n),s,a;o===null?s=a=null:[s,a]=o,s!==null&&Hw(e,t,n,s,i,a),i&&IF(n,r,i)}n.mergedAttrs=us(n.mergedAttrs,n.attrs)}function Hw(e,t,n,r,i,o){for(let c=0;c<r.length;c++)sg(Tu(n,t),e,r[c].type);AF(n,e.data.length,r.length);for(let c=0;c<r.length;c++){let l=r[c];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,u=kw(e,t,r.length,null);for(let c=0;c<r.length;c++){let l=r[c];n.mergedAttrs=us(n.mergedAttrs,l.hostAttrs),TF(e,n,t,u,l),OF(u,l,i),l.contentQueries!==null&&(n.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(n.flags|=64);let d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),u++}_F(e,n,o)}function wF(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;EF(s)!=a&&s.push(a),s.push(n,r,o)}}function EF(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function MF(e,t,n,r){let i=n.directiveStart,o=n.directiveEnd;ec(n)&&xF(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||Tu(n,t),Tr(r,t);let s=n.initialInputs;for(let a=i;a<o;a++){let u=e.data[a],c=Ci(t,e,a,n);if(Tr(c,t),s!==null&&FF(t,a-i,c,u,n,s),Fn(u)){let l=kn(n.index,t);l[Oe]=Ci(t,e,a,n)}}}function zw(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=JN();try{Or(o);for(let a=r;a<i;a++){let u=e.data[a],c=t[a];rg(a),(u.hostBindings!==null||u.hostVars!==0||u.hostAttrs!==null)&&CF(u,c)}}finally{Or(-1),rg(s)}}function CF(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function SF(e,t){let n=e.directiveRegistry,r=null,i=null;if(n)for(let o=0;o<n.length;o++){let s=n[o];if(lN(t,s.selectors,!1))if(r||(r=[]),Fn(s))if(s.findHostDirectiveDefs!==null){let a=[];i=i||new Map,s.findHostDirectiveDefs(s,a,i),r.unshift(...a,s);let u=a.length;pg(e,t,u)}else r.unshift(s),pg(e,t,0);else i=i||new Map,s.findHostDirectiveDefs?.(s,r,i),r.push(s)}return r===null?null:[r,i]}function pg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function IF(e,t,n){if(t){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new O(-301,!1);r.push(t[i],o)}}}function OF(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Fn(t)&&(n[""]=e)}}function AF(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function TF(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=vi(i.type,!0)),s=new Ar(o,Fn(i),X);e.blueprint[r]=s,n[r]=s,wF(e,t,r,kw(e,n,i.hostVars,nt),i)}function xF(e,t,n){let r=ft(t,e),i=Uw(n),o=e[jt].rendererFactory,s=16;n.signals?s=4096:n.onPush&&(s=64);let a=lc(e,uc(e,i,null,s,r,t,null,o.createRenderer(r,n),null,null,null));e[t.index]=a}function NF(e,t,n,r,i,o){let s=ft(e,t);PF(t[me],s,o,e.value,n,r,i)}function PF(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?yt(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function FF(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;){let u=s[a++],c=s[a++],l=s[a++],d=s[a++];Rw(r,n,u,c,l,d)}}function RF(e,t,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){r===null&&(r=[]);let s=e[o];for(let a=0;a<s.length;a+=3)if(s[a]===t){r.push(o,s[a+1],s[a+2],n[i+1]);break}}i+=2}return r}function Ww(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Gw(e,t){let n=e.contentQueries;if(n!==null){let r=W(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];GD(o),a.contentQueries(2,t[s],s)}}}finally{W(r)}}}function lc(e,t){return e[ds]?e[S0][_t]=t:e[ds]=t,e[S0]=t,t}function gg(e,t,n){GD(0);let r=W(null);try{t(e,n)}finally{W(r)}}function kF(e){return e[Mu]??=[]}function jF(e){return e.cleanup??=[]}function Zw(e,t){let n=e[Di],r=n?n.get(rn,null):null;r&&r.handleError(t)}function pm(e,t,n,r,i){for(let o=0;o<n.length;){let s=n[o++],a=n[o++],u=n[o++],c=t[s],l=e.data[s];Rw(l,c,r,a,u,i)}}function gm(e,t,n){let r=jD(t,e);ZP(e[me],r,n)}function LF(e,t){let n=kn(t,e),r=n[$];VF(r,n);let i=n[sn];i!==null&&n[ls]===null&&(n[ls]=am(i,n[Di])),mm(r,n,n[Oe])}function VF(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function mm(e,t,n){Gg(t);try{let r=e.viewQuery;r!==null&&gg(1,r,n);let i=e.template;i!==null&&jw(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Ei]?.finishViewCreation(e),e.staticContentQueries&&Gw(e,t),e.staticViewQueries&&gg(2,e.viewQuery,n);let o=e.components;o!==null&&qF(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[k]&=-5,Zg()}}function qF(e,t){for(let n=0;n<t.length;n++)LF(e,t[n])}function vm(e,t,n,r){let i=W(null);try{let o=t.tView,a=e[k]&4096?4096:16,u=uc(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=e[t.index];u[wi]=c;let l=e[Ei];return l!==null&&(u[Ei]=l.createEmbeddedView(o)),mm(o,u,n),u}finally{W(i)}}function Yw(e,t){let n=ke+t;if(n<e.length)return e[n]}function hs(e,t){return!t||t.firstChild===null||pw(e)}function dc(e,t,n,r=!0){let i=t[$];if(KP(i,t,e,n),r){let s=hg(n,e),a=t[me],u=Aw(a,e[Sr]);u!==null&&QP(i,e[Ct],a,t,u,s)}let o=t[ls];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Qw(e,t){let n=fs(e,t);return n!==void 0&&sc(n[$],n),n}function ku(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(Lt(o)),an(o)&&UF(o,r);let s=n.type;if(s&8)ku(e,t,n.child,r);else if(s&32){let a=cm(n,t),u;for(;u=a();)r.push(u)}else if(s&16){let a=Tw(t,n);if(Array.isArray(a))r.push(...a);else{let u=Ir(t[Dt]);ku(u[$],u,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function UF(e,t){for(let n=ke;n<e.length;n++){let r=e[n],i=r[$].firstChild;i!==null&&ku(r[$],r,i,t)}e[Sr]!==e[sn]&&t.push(e[Sr])}var Jw=[];function $F(e){return e[ct]??BF(e)}function BF(e){let t=Jw.pop()??Object.create(zF);return t.lView=e,t}function HF(e){e.lView[ct]!==e&&(e.lView=null,Jw.push(e))}var zF=H(D({},es),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{nc(e.lView)},consumerOnSignalRead(){this.lView[ct]=this}});function WF(e){let t=e[ct]??Object.create(GF);return t.lView=e,t}var GF=H(D({},es),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Ir(e.lView);for(;t&&!Kw(t[$]);)t=Ir(t);t&&VD(t)},consumerOnSignalRead(){this.lView[ct]=this}});function Kw(e){return e.type!==2}var ZF=100;function Xw(e,t=!0,n=0){let r=e[jt],i=r.rendererFactory,o=!1;o||i.begin?.();try{YF(e,n)}catch(s){throw t&&Zw(e,s),s}finally{o||(i.end?.(),r.inlineEffectRunner?.flush())}}function YF(e,t){let n=zD();try{O0(!0),mg(e,t);let r=0;for(;tc(e);){if(r===ZF)throw new O(103,!1);r++,mg(e,1)}}finally{O0(n)}}function QF(e,t,n,r){let i=t[k];if((i&256)===256)return;let o=!1,s=!1;!o&&t[jt].inlineEffectRunner?.flush(),Gg(t);let a=!0,u=null,c=null;o||(Kw(e)?(c=$F(t),u=La(c)):Nb()===null?(a=!1,c=WF(t),u=La(c)):t[ct]&&(gp(t[ct]),t[ct]=null));try{LD(t),ZN(e.bindingStartIndex),n!==null&&jw(e,t,n,2,r);let l=(i&3)===3;if(!o)if(l){let g=e.preOrderCheckHooks;g!==null&&vu(t,g,null)}else{let g=e.preOrderHooks;g!==null&&yu(t,g,0,null),kp(t,0)}if(s||JF(t),eE(t,0),e.contentQueries!==null&&Gw(e,t),!o)if(l){let g=e.contentCheckHooks;g!==null&&vu(t,g)}else{let g=e.contentHooks;g!==null&&yu(t,g,1),kp(t,1)}fF(e,t);let d=e.components;d!==null&&nE(t,d,0);let p=e.viewQuery;if(p!==null&&gg(2,p,r),!o)if(l){let g=e.viewCheckHooks;g!==null&&vu(t,g)}else{let g=e.viewHooks;g!==null&&yu(t,g,2),kp(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Rp]){for(let g of t[Rp])g();t[Rp]=null}o||(t[k]&=-73)}catch(l){throw o||nc(t),l}finally{c!==null&&(hp(c,u),a&&HF(c)),Zg()}}function eE(e,t){for(let n=mw(e);n!==null;n=vw(n))for(let r=ke;r<n.length;r++){let i=n[r];tE(i,t)}}function JF(e){for(let t=mw(e);t!==null;t=vw(t)){if(!(t[k]&Iu.HasTransplantedViews))continue;let n=t[Su];for(let r=0;r<n.length;r++){let i=n[r];VD(i)}}}function KF(e,t,n){let r=kn(t,e);tE(r,n)}function tE(e,t){zg(e)&&mg(e,t)}function mg(e,t){let r=e[$],i=e[k],o=e[ct],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&pp(o)),s||=!1,o&&(o.dirty=!1),e[k]&=-9217,s)QF(r,e,r.template,e[Oe]);else if(i&8192){eE(e,1);let a=r.components;a!==null&&nE(e,a,1)}}function nE(e,t,n){for(let r=0;r<t.length;r++)KF(e,t[r],n)}function ym(e,t){let n=zD()?64:1088;for(e[jt].changeDetectionScheduler?.notify(t);e;){e[k]|=n;let r=Ir(e);if(eg(e)&&!r)return e;e=r}return null}var Si=class{get rootNodes(){let t=this._lView,n=t[$];return ku(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Oe]}set context(t){this._lView[Oe]=t}get destroyed(){return(this._lView[k]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Le];if(an(t)){let n=t[Cu],r=n?n.indexOf(this):-1;r>-1&&(fs(t,r),wu(n,r))}this._attachedToViewContainer=!1}sc(this._lView[$],this._lView)}onDestroy(t){qD(this._lView,t)}markForCheck(){ym(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[k]&=-129}reattach(){ng(this._lView),this._lView[k]|=128}detectChanges(){this._lView[k]|=1024,Xw(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new O(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=eg(this._lView),n=this._lView[wi];n!==null&&!t&&lm(n,this._lView),Sw(this._lView[$],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new O(902,!1);this._appRef=t;let n=eg(this._lView),r=this._lView[wi];r!==null&&!n&&Iw(r,this._lView),ng(this._lView)}};var Ere=new RegExp(`^(\\d+)*(${kP}|${RP})*(.*)`);var XF=()=>null;function ps(e,t){return XF(e,t)}var Ii=class{},_m=new S("",{providedIn:"root",factory:()=>!1});var rE=new S(""),iE=new S(""),vg=class{},ju=class{};function eR(e){let t=Error(`No component factory found for ${We(e)}.`);return t[tR]=e,t}var tR="ngComponent";var yg=class{resolveComponentFactory(t){throw eR(t)}},Oi=class{static{this.NULL=new yg}},Ai=class{},Ln=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>nR()}}return e})();function nR(){let e=Q(),t=Ze(),n=kn(t.index,e);return(xn(n)?n:e)[me]}var rR=(()=>{class e{static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>null})}}return e})();function _g(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=m0(i,a);else if(o==2){let u=a,c=t[++s];r=m0(r,u+": "+c+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var Lu=class extends Oi{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Pn(t);return new Ti(n,this.ngModule)}};function B0(e,t){let n=[];for(let r in e){if(!e.hasOwnProperty(r))continue;let i=e[r];if(i===void 0)continue;let o=Array.isArray(i),s=o?i[0]:i,a=o?i[1]:Nn.None;t?n.push({propName:s,templateName:r,isSignal:(a&Nn.SignalBased)!==0}):n.push({propName:s,templateName:r})}return n}function iR(e){let t=e.toLowerCase();return t==="svg"?kD:t==="math"?kN:null}var Ti=class extends ju{get inputs(){let t=this.componentDef,n=t.inputTransforms,r=B0(t.inputs,!0);if(n!==null)for(let i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return B0(this.componentDef.outputs,!1)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=pN(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){let o=W(null);try{i=i||this.ngModule;let s=i instanceof je?i:i?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new ig(t,s):t,u=a.get(Ai,null);if(u===null)throw new O(407,!1);let c=a.get(rR,null),l=a.get(Ii,null),d={rendererFactory:u,sanitizer:c,inlineEffectRunner:null,changeDetectionScheduler:l},p=u.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",m=r?gF(p,r,this.componentDef.encapsulation,a):Cw(p,g,iR(g)),v=512;this.componentDef.signals?v|=4096:this.componentDef.onPush||(v|=16);let y=null;m!==null&&(y=am(m,a,!0));let _=hm(0,null,null,1,0,null,null,null,null,null,null),C=uc(null,_,null,v,null,null,d,p,a,null,y);Gg(C);let N,P,L=null;try{let R=this.componentDef,ve,Nt=null;R.findHostDirectiveDefs?(ve=[],Nt=new Map,R.findHostDirectiveDefs(R,ve,Nt),ve.push(R)):ve=[R];let br=oR(C,m);L=sR(br,m,R,ve,C,d,p),P=Hg(_,wt),m&&cR(p,R,m,r),n!==void 0&&lR(P,this.ngContentSelectors,n),N=uR(L,R,ve,Nt,C,[dR]),mm(_,C,null)}catch(R){throw L!==null&&dg(L),dg(C),R}finally{Zg()}return new bg(this.componentType,N,im(P,C),C,P)}finally{W(o)}}},bg=class extends vg{constructor(t,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Si(i,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;pm(o[$],o,i,t,n),this.previousInputValues.set(t,n);let s=kn(this._tNode.index,o);ym(s,1)}}get injector(){return new Cr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function oR(e,t){let n=e[$],r=wt;return e[r]=t,cc(n,r,2,"#host",null)}function sR(e,t,n,r,i,o,s){let a=i[$];aR(r,e,t,s);let u=null;t!==null&&(u=am(t,i[Di]));let c=o.rendererFactory.createRenderer(t,n),l=16;n.signals?l=4096:n.onPush&&(l=64);let d=uc(i,Uw(n),null,l,i[e.index],e,o,c,null,null,u);return a.firstCreatePass&&pg(a,e,r.length-1),lc(i,d),i[e.index]=d}function aR(e,t,n,r){for(let i of e)t.mergedAttrs=us(t.mergedAttrs,i.hostAttrs);t.mergedAttrs!==null&&(_g(t,t.mergedAttrs,!0),n!==null&&Nw(r,n,t))}function uR(e,t,n,r,i,o){let s=Ze(),a=i[$],u=ft(s,i);Hw(a,i,s,n,null,r);for(let l=0;l<n.length;l++){let d=s.directiveStart+l,p=Ci(i,a,d,s);Tr(p,i)}zw(a,i,s),u&&Tr(u,i);let c=Ci(i,a,s.directiveStart+s.componentOffset,s);if(e[Oe]=i[Oe]=c,o!==null)for(let l of o)l(c,t);return Lw(a,s,i),c}function cR(e,t,n,r){if(r)Qp(e,n,["ng-version","18.2.14"]);else{let{attrs:i,classes:o}=gN(t.selectors[0]);i&&Qp(e,n,i),o&&o.length>0&&xw(e,n,o.join(" "))}}function lR(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null?Array.from(o):null)}}function dR(){let e=Ze();Kg(Q()[$],e)}var fc=(()=>{class e{static{this.__NG_ELEMENT_ID__=fR}}return e})();function fR(){let e=Ze();return pR(e,Q())}var hR=fc,oE=class extends hR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return im(this._hostTNode,this._hostLView)}get injector(){return new Cr(this._hostTNode,this._hostLView)}get parentInjector(){let t=Xg(this._hostTNode,this._hostLView);if(tw(t)){let n=Au(t,this._hostLView),r=Ou(t),i=n[$].data[r+8];return new Cr(i,n)}else return new Cr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=H0(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ke}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ps(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,hs(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!NN(t),a;if(s)a=n;else{let m=n||{};a=m.index,r=m.injector,i=m.projectableNodes,o=m.environmentInjector||m.ngModuleRef}let u=s?t:new Ti(Pn(t)),c=r||this.parentInjector;if(!o&&u.ngModule==null){let v=(s?c:this.parentInjector).get(je,null);v&&(o=v)}let l=Pn(u.componentType??{}),d=ps(this._lContainer,l?.id??null),p=d?.firstChild??null,g=u.create(c,i,p,o);return this.insertImpl(g.hostView,a,hs(this._hostTNode,d)),g}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(jN(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=i[Le],c=new oE(u,u[Ct],u[Le]);c.detach(c.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return dc(s,i,o,r),t.attachToViewContainerRef(),dD(Up(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=H0(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=fs(this._lContainer,n);r&&(wu(Up(this._lContainer),n),sc(r[$],r))}detach(t){let n=this._adjustIndex(t,-1),r=fs(this._lContainer,n);return r&&wu(Up(this._lContainer),n)!=null?new Si(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function H0(e){return e[Cu]}function Up(e){return e[Cu]||(e[Cu]=[])}function pR(e,t){let n,r=t[e.index];return an(r)?n=r:(n=Ww(r,t,null,e),t[e.index]=n,lc(t,n)),mR(n,t,e,r),new oE(n,e,t)}function gR(e,t){let n=e[me],r=n.createComment(""),i=ft(t,e),o=Aw(n,i);return Ru(n,o,r,rF(n,i),!1),r}var mR=_R,vR=()=>!1;function yR(e,t,n){return vR(e,t,n)}function _R(e,t,n,r){if(e[Sr])return;let i;n.type&8?i=Lt(r):i=gR(t,n),e[Sr]=i}var z0=new Set;function Vn(e){z0.has(e)||(z0.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function bR(e){return typeof e=="function"&&e[Xt]!==void 0}function Ds(e,t){Vn("NgSignals");let n=Bb(e),r=n[Xt];return t?.equal&&(r.equal=t.equal),n.set=i=>mp(r,i),n.update=i=>Hb(r,i),n.asReadonly=DR.bind(n),n}function DR(){let e=this[Xt];if(e.readonlyFn===void 0){let t=()=>this();t[Xt]=e,e.readonlyFn=t}return e.readonlyFn}function sE(e){return bR(e)&&typeof e.set=="function"}function wR(e){let t=[],n=new Map;function r(i){let o=n.get(i);if(!o){let s=e(i);n.set(i,o=s.then(SR))}return o}return Vu.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,p)=>{a.push(""),s.push(r(d).then(g=>{a[c+p]=g,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>IR(o));t.push(u)}),MR(),Promise.all(t).then(()=>{})}var Vu=new Map,ER=new Set;function MR(){let e=Vu;return Vu=new Map,e}function CR(){return Vu.size===0}function SR(e){return typeof e=="string"?e:e.text()}function IR(e){ER.delete(e)}function OR(e){return Object.getPrototypeOf(e.prototype).constructor}function ln(e){let t=OR(e.type),n=!0,r=[e];for(;t;){let i;if(Fn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new O(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=fu(e.inputs),s.inputTransforms=fu(e.inputTransforms),s.declaredInputs=fu(e.declaredInputs),s.outputs=fu(e.outputs);let a=i.hostBindings;a&&PR(e,a);let u=i.viewQuery,c=i.contentQueries;if(u&&xR(e,u),c&&NR(e,c),AR(e,i),k1(e.outputs,i.outputs),Fn(i)&&i.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===ln&&(n=!1)}}t=Object.getPrototypeOf(t)}TR(r)}function AR(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];if(r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],t.inputTransforms!==null)){let i=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=t.inputTransforms[i]}}}function TR(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=us(i.hostAttrs,n=us(n,i.hostAttrs))}}function fu(e){return e===yi?{}:e===ut?[]:e}function xR(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function NR(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function PR(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function bm(e){let t=e.inputConfig,n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}var Rn=class{},gs=class{};var qu=class extends Rn{constructor(t,n,r,i=!0){super(),this.ngModuleType=t,this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Lu(this);let o=DD(t);this._bootstrapComponents=Mw(o.bootstrap),this._r3Injector=lw(t,n,[{provide:Rn,useValue:this},{provide:Oi,useValue:this.componentFactoryResolver},...r],We(t),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Uu=class extends gs{constructor(t){super(),this.moduleType=t}create(t){return new qu(this.moduleType,t,[])}};function FR(e,t,n){return new qu(e,t,n,!1)}var Dg=class extends Rn{constructor(t){super(),this.componentFactoryResolver=new Lu(this),this.instance=null;let n=new cs([...t.providers,{provide:Rn,useValue:this},{provide:Oi,useValue:this.componentFactoryResolver}],t.parent||$g(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function hc(e,t,n=null){return new Dg({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function pc(e,t,n){return e[t]=n}function aE(e,t){return e[t]}function lt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function wg(e,t,n,r){let i=lt(e,t,n);return lt(e,t+1,r)||i}function uE(e,t,n,r,i){let o=wg(e,t,n,r);return lt(e,t+2,i)||o}function cE(e,t,n,r,i,o){let s=wg(e,t,n,r);return wg(e,t+2,i,o)||s}function RR(e){return(e.flags&32)===32}function kR(e,t,n,r,i,o,s,a,u){let c=t.consts,l=cc(t,e,4,s||null,a||null);Bw(t,n,l,Mi(c,u)),Kg(t,l);let d=l.tView=hm(2,l,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function Eg(e,t,n,r,i,o,s,a,u,c){let l=n+wt,d=t.firstCreatePass?kR(l,t,e,r,i,o,s,a,u):t.data[l];_s(d,!1);let p=LR(t,e,d,n);Qg()&&dm(t,e,p,d),Tr(p,e);let g=Ww(p,e,p,d);return e[l]=g,lc(e,g),yR(g,d,e),Bg(d)&&Vw(t,e,d),u!=null&&qw(e,d,c),d}function jR(e,t,n,r,i,o,s,a){let u=Q(),c=Ge(),l=Mi(c.consts,o);return Eg(u,c,e,t,n,r,i,l,s,a),jR}var LR=VR;function VR(e,t,n,r){return Jg(!0),t[me].createComment("")}var pi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(pi||{}),lE=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Mg=class e{constructor(){this.ngZone=b(te),this.scheduler=b(Ii),this.errorHandler=b(rn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[pi.EarlyRead,pi.Write,pi.MixedReadWrite,pi.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}},Cg=class{constructor(t,n,r,i){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Dm(e,t){!t?.injector&&TN(Dm);let n=t?.injector??b(tt);return zP(n)?(Vn("NgAfterNextRender"),UR(e,n,t,!0)):$R}function qR(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function UR(e,t,n,r){let i=t.get(lE);i.impl??=t.get(Mg);let o=n?.phase??pi.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(tm):null,a=new Cg(i.impl,qR(e,o),r,s);return i.impl.register(a),a}var $R={destroy(){}};function gc(e,t,n,r){let i=Q(),o=Pi();if(lt(i,o,t)){let s=Ge(),a=Yg();NF(a,i,e,t,n,r)}return gc}function BR(e,t,n,r){return lt(e,Pi(),n)?t+yt(n)+r:nt}function HR(e,t,n,r,i,o,s,a){let u=WD(),c=uE(e,u,n,i,s);return Wg(3),c?t+yt(n)+r+yt(i)+o+yt(s)+a:nt}function zR(e,t,n,r,i,o,s,a,u,c){let l=WD(),d=cE(e,l,n,i,s,u);return Wg(4),d?t+yt(n)+r+yt(i)+o+yt(s)+a+yt(u)+c:nt}function hu(e,t){return e<<17|t<<2}function xr(e){return e>>17&32767}function WR(e){return(e&2)==2}function GR(e,t){return e&131071|t<<17}function Sg(e){return e|2}function xi(e){return(e&131068)>>2}function $p(e,t){return e&-131069|t<<2}function ZR(e){return(e&1)===1}function Ig(e){return e|1}function YR(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=xr(s),u=xi(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||ys(d,l)>0)&&(c=!0)}else l=n;if(i)if(u!==0){let p=xr(e[a+1]);e[r+1]=hu(p,a),p!==0&&(e[p+1]=$p(e[p+1],r)),e[a+1]=GR(e[a+1],r)}else e[r+1]=hu(a,0),a!==0&&(e[a+1]=$p(e[a+1],r)),a=r;else e[r+1]=hu(u,0),a===0?a=r:e[u+1]=$p(e[u+1],r),u=r;c&&(e[r+1]=Sg(e[r+1])),W0(e,l,r,!0),W0(e,l,r,!1),QR(t,l,e,r,o),s=hu(a,u),o?t.classBindings=s:t.styleBindings=s}function QR(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&ys(o,t)>=0&&(n[r+1]=Ig(n[r+1]))}function W0(e,t,n,r){let i=e[n+1],o=t===null,s=r?xr(i):xi(i),a=!1;for(;s!==0&&(a===!1||o);){let u=e[s],c=e[s+1];JR(u,t)&&(a=!0,e[s+1]=r?Ig(c):Sg(c)),s=r?xr(c):xi(c)}a&&(e[n+1]=r?Sg(i):Ig(i))}function JR(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ys(e,t)>=0:!1}function KR(e,t,n){let r=Q(),i=Pi();if(lt(r,i,t)){let o=Ge(),s=Yg();$w(o,s,r,e,t,r[me],n,!1)}return KR}function G0(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";pm(e,n,o[s],s,r)}function mc(e,t){return XR(e,t,null,!0),mc}function XR(e,t,n,r){let i=Q(),o=Ge(),s=Wg(2);if(o.firstUpdatePass&&tk(o,e,s,r),t!==nt&&lt(i,s,t)){let a=o.data[un()];sk(o,a,i,i[me],e,i[s+1]=ak(t,n),r,s)}}function ek(e,t){return t>=e.expandoStartIndex}function tk(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[un()],s=ek(e,n);uk(o,r)&&t===null&&!s&&(t=!1),t=nk(i,o,t,r),YR(i,o,t,n,s,r)}}function nk(e,t,n,r){let i=KN(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Bp(null,e,t,n,r),n=ms(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Bp(i,e,t,n,r),o===null){let u=rk(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Bp(null,e,t,u[1],r),u=ms(u,t.attrs,r),ik(e,t,r,u))}else o=ok(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function rk(e,t,n){let r=n?t.classBindings:t.styleBindings;if(xi(r)!==0)return e[xr(r)]}function ik(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[xr(i)]=r}function ok(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=ms(r,s,n)}return ms(r,t.attrs,n)}function Bp(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=ms(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ms(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),nN(e,s,n?!0:t[++o]))}return e===void 0?null:e}function sk(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let u=e.data,c=u[a+1],l=ZR(c)?Z0(u,t,n,i,xi(c),s):void 0;if(!$u(l)){$u(o)||WR(c)&&(o=Z0(u,null,n,i,a,s));let d=jD(un(),n);lF(r,s,d,i,o)}}function Z0(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let u=e[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,p=n[i+1];p===nt&&(p=d?ut:void 0);let g=d?Pp(p,r):l===r?p:void 0;if(c&&!$u(g)&&(g=Pp(u,r)),$u(g)&&(a=g,s))return a;let m=e[i+1];i=s?xr(m):xi(m)}if(t!==null){let u=o?t.residualClasses:t.residualStyles;u!=null&&(a=Pp(u,r))}return a}function $u(e){return e!==void 0}function ak(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=We(bs(e)))),e}function uk(e,t){return(e.flags&(t?8:16))!==0}var Og=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function Hp(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function ck(e,t,n){let r,i,o=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;o<=s&&o<=u;){let c=e.at(o),l=t[o],d=Hp(o,c,o,l,n);if(d!==0){d<0&&e.updateValue(o,l),o++;continue}let p=e.at(s),g=t[u],m=Hp(s,p,u,g,n);if(m!==0){m<0&&e.updateValue(s,g),s--,u--;continue}let v=n(o,c),y=n(s,p),_=n(o,l);if(Object.is(_,y)){let C=n(u,g);Object.is(C,v)?(e.swap(o,s),e.updateValue(s,g),u--,s--):e.move(s,o),e.updateValue(o,l),o++;continue}if(r??=new Bu,i??=Q0(e,o,s,n),Ag(e,r,o,_))e.updateValue(o,l),o++,s++;else if(i.has(_))r.set(v,e.detach(o)),s--;else{let C=e.create(o,t[o]);e.attach(o,C),o++,s++}}for(;o<=u;)Y0(e,r,n,o,t[o]),o++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&o<=s;){let l=e.at(o),d=c.value,p=Hp(o,l,o,d,n);if(p!==0)p<0&&e.updateValue(o,d),o++,c=u.next();else{r??=new Bu,i??=Q0(e,o,s,n);let g=n(o,d);if(Ag(e,r,o,g))e.updateValue(o,d),o++,s++,c=u.next();else if(!i.has(g))e.attach(o,e.create(o,d)),o++,s++,c=u.next();else{let m=n(o,l);r.set(m,e.detach(o)),s--}}}for(;!c.done;)Y0(e,r,n,e.length,c.value),c=u.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function Ag(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Y0(e,t,n,r,i){if(Ag(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function Q0(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Bu=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function Cre(e,t){Vn("NgControlFlow");let n=Q(),r=Pi(),i=n[r]!==nt?n[r]:-1,o=i!==-1?Hu(n,wt+i):void 0,s=0;if(lt(n,r,e)){let a=W(null);try{if(o!==void 0&&Qw(o,s),e!==-1){let u=wt+e,c=Hu(n,u),l=Pg(n[$],u),d=ps(c,l.tView.ssrId),p=vm(n,l,t,{dehydratedView:d});dc(c,p,s,hs(l,d))}}finally{W(a)}}else if(o!==void 0){let a=Yw(o,s);a!==void 0&&(a[Oe]=t)}}var Tg=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ke}};function Sre(e){return e}function Ire(e,t){return t}var xg=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Ore(e,t,n,r,i,o,s,a,u,c,l,d,p){Vn("NgControlFlow");let g=Q(),m=Ge(),v=u!==void 0,y=Q(),_=a?s.bind(y[Dt][Oe]):s,C=new xg(v,_);y[wt+e]=C,Eg(g,m,e+1,t,n,r,i,Mi(m.consts,o)),v&&Eg(g,m,e+2,u,c,l,d,Mi(m.consts,p))}var Ng=class extends Og{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-ke}at(t){return this.getLView(t)[Oe].$implicit}attach(t,n){let r=n[ls];this.needsIndexUpdate||=t!==this.length,dc(this.lContainer,n,t,hs(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,lk(this.lContainer,t)}create(t,n){let r=ps(this.lContainer,this.templateTNode.tView.ssrId),i=vm(this.hostLView,this.templateTNode,new Tg(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(t){sc(t[$],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Oe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Oe].$index=t}getLView(t){return dk(this.lContainer,t)}};function Are(e){let t=W(null),n=un();try{let r=Q(),i=r[$],o=r[n],s=n+1,a=Hu(r,s);if(o.liveCollection===void 0){let c=Pg(i,s);o.liveCollection=new Ng(a,r,c)}else o.liveCollection.reset();let u=o.liveCollection;if(ck(u,e,o.trackByFn),u.updateIndexes(),o.hasEmptyBlock){let c=Pi(),l=u.length===0;if(lt(r,c,l)){let d=n+2,p=Hu(r,d);if(l){let g=Pg(i,d),m=ps(p,g.tView.ssrId),v=vm(r,g,void 0,{dehydratedView:m});dc(p,v,0,hs(g,m))}else Qw(p,0)}}}finally{W(t)}}function Hu(e,t){return e[t]}function lk(e,t){return fs(e,t)}function dk(e,t){return Yw(e,t)}function Pg(e,t){return Hg(e,t)}function fk(e,t,n,r,i,o){let s=t.consts,a=Mi(s,i),u=cc(t,e,2,r,a);return Bw(t,n,u,Mi(s,o)),u.attrs!==null&&_g(u,u.attrs,!1),u.mergedAttrs!==null&&_g(u,u.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,u),u}function dE(e,t,n,r){let i=Q(),o=Ge(),s=wt+e,a=i[me],u=o.firstCreatePass?fk(s,o,i,t,n,r):o.data[s],c=hk(o,i,u,a,t,e);i[s]=c;let l=Bg(u);return _s(u,!0),Nw(a,c,u),!RR(u)&&Qg()&&dm(o,i,c,u),qN()===0&&Tr(c,i),UN(),l&&(Vw(o,i,u),Lw(o,u,i)),r!==null&&qw(i,u),dE}function fE(){let e=Ze();HD()?GN():(e=e.parent,_s(e,!1));let t=e;HN(t)&&zN(),$N();let n=Ge();return n.firstCreatePass&&(Kg(n,e),xD(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&sP(t)&&G0(n,t,Q(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&aP(t)&&G0(n,t,Q(),t.stylesWithoutHost,!1),fE}function wm(e,t,n,r){return dE(e,t,n,r),fE(),wm}var hk=(e,t,n,r,i,o)=>(Jg(!0),Cw(r,i,nP()));function Tre(){return Q()}var zu="en-US";var pk=zu;function gk(e){typeof e=="string"&&(pk=e.toLowerCase().replace(/_/g,"-"))}var mk=(e,t,n)=>{};function Fr(e,t,n,r){let i=Q(),o=Ge(),s=Ze();return hE(o,i,i[me],s,e,t,r),Fr}function vk(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Mu],u=i[o+2];return a.length>u?a[u]:null}typeof s=="string"&&(o+=2)}return null}function hE(e,t,n,r,i,o,s){let a=Bg(r),c=e.firstCreatePass&&jF(e),l=t[Oe],d=kF(t),p=!0;if(r.type&3||s){let v=ft(r,t),y=s?s(v):v,_=d.length,C=s?P=>s(Lt(P[r.index])):r.index,N=null;if(!s&&a&&(N=vk(e,t,i,r.index)),N!==null){let P=N.__ngLastListenerFn__||N;P.__ngNextListenerFn__=o,N.__ngLastListenerFn__=o,p=!1}else{o=K0(r,t,l,o),mk(v,i,o);let P=n.listen(y,i,o);d.push(o,P),c&&c.push(i,C,_,_+1)}}else o=K0(r,t,l,o);let g=r.outputs,m;if(p&&g!==null&&(m=g[i])){let v=m.length;if(v)for(let y=0;y<v;y+=2){let _=m[y],C=m[y+1],L=t[_][C].subscribe(o),R=d.length;d.push(o,L),c&&c.push(i,r.index,R,-(R+1))}}}function J0(e,t,n,r){let i=W(null);try{return Ft(6,t,n),n(r)!==!1}catch(o){return Zw(e,o),!1}finally{Ft(7,t,n),W(i)}}function K0(e,t,n,r){return function i(o){if(o===Function)return r;let s=e.componentOffset>-1?kn(e.index,t):t;ym(s,5);let a=J0(t,n,r,o),u=i.__ngNextListenerFn__;for(;u;)a=J0(t,n,u,o)&&a,u=u.__ngNextListenerFn__;return a}}function xre(e=1){return eP(e)}function Nre(e,t=""){let n=Q(),r=Ge(),i=e+wt,o=r.firstCreatePass?cc(r,i,1,t,null):r.data[i],s=yk(r,n,o,t,e);n[i]=s,Qg()&&dm(r,n,s,o),_s(o,!1)}var yk=(e,t,n,r,i)=>(Jg(!0),GP(t[me],r));function _k(e){return pE("",e,""),_k}function pE(e,t,n){let r=Q(),i=BR(r,e,t,n);return i!==nt&&gm(r,un(),i),pE}function bk(e,t,n,r,i,o,s){let a=Q(),u=HR(a,e,t,n,r,i,o,s);return u!==nt&&gm(a,un(),u),bk}function Dk(e,t,n,r,i,o,s,a,u){let c=Q(),l=zR(c,e,t,n,r,i,o,s,a,u);return l!==nt&&gm(c,un(),l),Dk}function wk(e,t,n){sE(t)&&(t=t());let r=Q(),i=Pi();if(lt(r,i,t)){let o=Ge(),s=Yg();$w(o,s,r,e,t,r[me],n,!1)}return wk}function Pre(e,t){let n=sE(e);return n&&e.set(t),n}function Ek(e,t){let n=Q(),r=Ge(),i=Ze();return hE(r,n,n[me],i,e,t),Ek}function Mk(e,t,n){let r=Ge();if(r.firstCreatePass){let i=Fn(e);Fg(n,r.data,r.blueprint,i,!0),Fg(t,r.data,r.blueprint,i,!1)}}function Fg(e,t,n,r,i){if(e=Re(e),Array.isArray(e))for(let o=0;o<e.length;o++)Fg(e[o],t,n,r,i);else{let o=Ge(),s=Q(),a=Ze(),u=bi(e)?e:Re(e.provide),c=ID(e),l=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(bi(e)||!e.multi){let g=new Ar(c,i,X),m=Wp(u,t,i?l:l+p,d);m===-1?(sg(Tu(a,s),o,u),zp(o,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(g),s.push(g)):(n[m]=g,s[m]=g)}else{let g=Wp(u,t,l+p,d),m=Wp(u,t,l,l+p),v=g>=0&&n[g],y=m>=0&&n[m];if(i&&!y||!i&&!v){sg(Tu(a,s),o,u);let _=Ik(i?Sk:Ck,n.length,i,r,c);!i&&y&&(n[m].providerFactory=_),zp(o,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=gE(n[i?m:g],c,!i&&r);zp(o,e,g>-1?g:m,_)}!i&&r&&y&&n[m].componentProviders++}}}function zp(e,t,n,r){let i=bi(t),o=EN(t);if(i||o){let u=(o?Re(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function gE(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Wp(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Ck(e,t,n,r){return Rg(this.multi,[])}function Sk(e,t,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=Ci(n,n[$],this.providerFactory.index,r);o=a.slice(0,s),Rg(i,o);for(let u=s;u<a.length;u++)o.push(a[u])}else o=[],Rg(i,o);return o}function Rg(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function Ik(e,t,n,r,i){let o=new Ar(e,n,X);return o.multi=[],o.index=t,o.componentProviders=0,gE(o,i,r&&!n),o}function ws(e,t=[]){return n=>{n.providersResolver=(r,i)=>Mk(r,i?i(e):e,t)}}var Ok=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=MD(!1,n.type),i=r.length>0?hc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(x(je))})}}return e})();function mE(e){Vn("NgStandalone"),e.getStandaloneInjector=t=>t.get(Ok).getOrCreateStandaloneInjector(e)}function Fre(e,t,n){let r=rc()+e,i=Q();return i[r]===nt?pc(i,r,n?t.call(n):t()):aE(i,r)}function Rre(e,t,n,r){return Ak(Q(),rc(),e,t,n,r)}function kre(e,t,n,r,i,o){return Tk(Q(),rc(),e,t,n,r,i,o)}function jre(e,t,n,r,i,o,s,a){let u=rc()+e,c=Q(),l=cE(c,u,n,r,i,o);return lt(c,u+4,s)||l?pc(c,u+5,a?t.call(a,n,r,i,o,s):t(n,r,i,o,s)):aE(c,u+5)}function vE(e,t){let n=e[t];return n===nt?void 0:n}function Ak(e,t,n,r,i,o){let s=t+n;return lt(e,s,i)?pc(e,s+1,o?r.call(o,i):r(i)):vE(e,s+1)}function Tk(e,t,n,r,i,o,s,a){let u=t+n;return uE(e,u,i,o,s)?pc(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):vE(e,u+3)}var pu=null;function xk(e){pu!==null&&(e.defaultEncapsulation!==pu.defaultEncapsulation||e.preserveWhitespaces!==pu.preserveWhitespaces)||(pu=e)}var vc=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var Em=new S(""),Es=new S(""),yc=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Mm||(Nk(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static{this.\u0275fac=function(r){return new(r||e)(x(te),x(_c),x(Es))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),_c=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Mm?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function Nk(e){Mm=e}var Mm;function Rr(e){return!!e&&typeof e.then=="function"}function yE(e){return!!e&&typeof e.subscribe=="function"}var bc=new S(""),_E=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=b(bc,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=i();if(Rr(o))n.push(o);else if(yE(o)){let s=new Promise((a,u)=>{o.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Dc=new S("");function Pk(){$b(()=>{throw new O(600,!1)})}function Fk(e){return e.isBoundToModule}var Rk=10;function kk(e,t,n){try{let r=n();return Rr(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function bE(e,t){return Array.isArray(t)?t.reduce(bE,e):D(D({},e),t)}var dn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(OP),this.afterRenderManager=b(lE),this.zonelessEnabled=b(_m),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ye,this.afterTick=new ye,this.componentTypes=[],this.components=[],this.isStable=b(jn).hasPendingTasks.pipe(V(n=>!n)),this._injector=b(je)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let i=n instanceof ju;if(!this._injector.get(_E).done){let p=!i&&bD(n),g=!1;throw new O(405,g)}let s;i?s=n:s=this._injector.get(Oi).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=Fk(s)?void 0:this._injector.get(Rn),u=r||s.selector,c=s.create(tt.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(Em,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),_u(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new O(101,!1);let n=W(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,W(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(Ai,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++<Rk;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:i,notifyErrorHandler:o}of this._views)jk(i,o,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&7)return}else n?.begin?.(),n?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>tc(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;_u(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Dc,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>_u(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new O(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _u(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function jk(e,t,n,r){if(!n&&!tc(e))return;Xw(e,t,n&&!r?0:1)}var kg=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},wc=(()=>{class e{compileModuleSync(n){return new Uu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=DD(n),o=Mw(i.declarations).reduce((s,a)=>{let u=Pn(a);return u&&s.push(new Ti(u)),s},[]);return new kg(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Lk=new S("");function Vk(e,t,n){let r=new Uu(n);return Promise.resolve(r)}function X0(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var qk=(()=>{class e{constructor(){this.zone=b(te),this.changeDetectionScheduler=b(Ii),this.applicationRef=b(dn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Uk({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new te(H(D({},DE()),{scheduleInRootZone:n})),[{provide:te,useFactory:e},{provide:_i,multi:!0,useFactory:()=>{let r=b(qk,{optional:!0});return()=>r.initialize()}},{provide:_i,multi:!0,useFactory:()=>{let r=b($k);return()=>{r.initialize()}}},t===!0?{provide:rE,useValue:!0}:[],{provide:iE,useValue:n??dw}]}function DE(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var $k=(()=>{class e{constructor(){this.subscription=new de,this.initialized=!1,this.zone=b(te),this.pendingTasks=b(jn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Bk=(()=>{class e{constructor(){this.appRef=b(dn),this.taskService=b(jn),this.ngZone=b(te),this.zonelessEnabled=b(_m),this.disableScheduling=b(rE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new de,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Nu):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(b(iE,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Pu||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?F0:fw;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Nu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,F0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Hk(){return typeof $localize<"u"&&$localize.locale||zu}var Cm=new S("",{providedIn:"root",factory:()=>b(Cm,z.Optional|z.SkipSelf)||Hk()});var Wu=new S("");function gu(e){return!e.moduleRef}function zk(e){let t=gu(e)?e.r3Injector:e.moduleRef.injector,n=t.get(te);return n.run(()=>{gu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(rn,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),gu(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Wu);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Wu);s.add(o),e.moduleRef.onDestroy(()=>{_u(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return kk(r,n,()=>{let o=t.get(_E);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Cm,zu);if(gk(s||zu),gu(e)){let a=t.get(dn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return Wk(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Wk(e,t){let n=e.injector.get(dn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new O(-403,!1);t.push(e)}var wE=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let i=r?.scheduleInRootZone,o=()=>IP(r?.ngZone,H(D({},DE({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),s=r?.ignoreChangesOutsideZone,a=[Uk({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:Ii,useExisting:Bk}],u=FR(n.moduleType,this.injector,a);return zk({moduleRef:u,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let i=bE({},r);return Vk(this.injector,i,n).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new O(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(Wu,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(x(tt))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),ss=null,Gu=new S("");function Gk(e){if(Im())throw new O(400,!1);Pk(),ss=e.get(Gu,!1)?null:e;let n=e.get(wE);return Qk(e),n}function Sm(e,t,n=[]){let r=`Platform: ${t}`,i=new S(r);return(o=[])=>{let s=Im();if(!s||s.injector.get(Gu,!1)){let u=[...n,...o,{provide:i,useValue:!0}];s=e?.(u)??Gk(Zk(u,r))}return s.injector.get(Gu,!1)?s:Yk(i)}}function Zk(e=[],t){return tt.create({name:t,providers:[{provide:Ku,useValue:"platform"},{provide:Wu,useValue:new Set([()=>ss=null])},...e]})}function Yk(e){let t=Im();if(!t)throw new O(401,!1);return t}function Im(){return ss&&ss.get(Gu,!1)?null:ss?.get(wE)??null}function Qk(e){e.get(om,null)?.forEach(n=>n())}var kr=(()=>{class e{static{this.__NG_ELEMENT_ID__=Jk}}return e})();function Jk(e){return Kk(Ze(),Q(),(e&16)===16)}function Kk(e,t,n){if(ec(e)&&!n){let r=kn(e.index,t);return new Si(r,r)}else if(e.type&175){let r=t[Dt];return new Si(r,t)}return null}var EE=Sm(null,"core",[]),ME=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(x(dn))}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Et({})}}return e})();function jr(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function Ms(e,t){Vn("NgSignals");let n=Vb(e);return t?.equal&&(n[Xt].equal=t.equal),n}function fn(e){let t=W(null);try{return e()}finally{W(t)}}function CE(e){let t=Pn(e);if(!t)return null;let n=new Ti(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}var AE=null;function qt(){return AE}function TE(e){AE??=e}var Ec=class{};var Ae=new S(""),Nm=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(ej),providedIn:"platform"})}}return e})(),xE=new S(""),ej=(()=>{class e extends Nm{constructor(){super(),this._doc=b(Ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return qt().getBaseHref(this._doc)}onPopState(n){let r=qt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=qt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function Pm(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function SE(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function hn(e){return e&&e[0]!=="?"?"?"+e:e}var pn=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(Fm),providedIn:"root"})}}return e})(),NE=new S(""),Fm=(()=>{class e extends pn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??b(Ae).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Pm(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+hn(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+hn(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+hn(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(x(Nm),x(NE,8))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),PE=(()=>{class e extends pn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=Pm(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+hn(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+hn(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(x(Nm),x(NE,8))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),ki=(()=>{class e{constructor(n){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=rj(SE(IE(r))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+hn(r))}normalize(n){return e.stripTrailingSlash(nj(this._basePath,IE(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}static{this.normalizeQueryParams=hn}static{this.joinWithSlash=Pm}static{this.stripTrailingSlash=SE}static{this.\u0275fac=function(r){return new(r||e)(x(pn))}}static{this.\u0275prov=T({token:e,factory:()=>tj(),providedIn:"root"})}}return e})();function tj(){return new ki(x(pn))}function nj(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function IE(e){return e.replace(/\/index.html$/,"")}function rj(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}function Mc(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}var Om=/\s+/,OE=[],die=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=OE,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Om):OE}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Om):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Om).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static{this.\u0275fac=function(r){return new(r||e)(X(cn),X(Ln))}}static{this.\u0275dir=Ve({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var FE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Et({})}}return e})(),Rm="browser",ij="server";function oj(e){return e===Rm}function Cc(e){return e===ij}var RE=(()=>{class e{static{this.\u0275prov=T({token:e,providedIn:"root",factory:()=>oj(b(Vt))?new Am(b(Ae),window):new Tm})}}return e})(),Am=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=sj(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function sj(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}i=r.nextNode()}}return null}var Tm=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Ri=class{};var Is=class{},Ic=class{},gn=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
218
+ `).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=i.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var jm=class{encodeKey(t){return jE(t)}encodeValue(t){return jE(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function aj(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var uj=/%(\d[a-f0-9])/gi,cj={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function jE(e){return encodeURIComponent(e).replace(uj,(t,n)=>cj[n]??t)}function Sc(e){return`${e}`}var Un=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new jm,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=aj(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(Sc):[Sc(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Sc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(Sc(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var Lm=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function lj(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function LE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function VE(e){return typeof Blob<"u"&&e instanceof Blob}function qE(e){return typeof FormData<"u"&&e instanceof FormData}function dj(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Ss=class e{constructor(t,n,r,i){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let o;if(lj(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new gn,this.context??=new Lm,!this.params)this.params=new Un,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+u+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||LE(this.body)||VE(this.body)||qE(this.body)||dj(this.body)?this.body:this.body instanceof Un?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||qE(this.body)?null:VE(this.body)?this.body.type||null:LE(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Un?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,u=t.reportProgress??this.reportProgress,c=t.headers||this.headers,l=t.params||this.params,d=t.context??this.context;return t.setHeaders!==void 0&&(c=Object.keys(t.setHeaders).reduce((p,g)=>p.set(g,t.setHeaders[g]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((p,g)=>p.set(g,t.setParams[g]),l)),new e(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:i,withCredentials:a,transferCache:o})}},$n=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}($n||{}),Os=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new gn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},Oc=class e extends Os{constructor(t={}){super(t),this.type=$n.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},As=class e extends Os{constructor(t={}){super(t),this.type=$n.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},qn=class extends Os{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},HE=200,fj=204;function km(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var hj=(()=>{class e{constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof Ss)o=n;else{let u;i.headers instanceof gn?u=i.headers:u=new gn(i.headers);let c;i.params&&(i.params instanceof Un?c=i.params:c=new Un({fromObject:i.params})),o=new Ss(n,r,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=F(o).pipe(tn(u=>this.handler.handle(u)));if(n instanceof Ss||i.observe==="events")return s;let a=s.pipe(He(u=>u instanceof As));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(V(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(V(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(V(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return a.pipe(V(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Un().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,km(i,r))}post(n,r,i={}){return this.request("POST",n,km(i,r))}put(n,r,i={}){return this.request("PUT",n,km(i,r))}static{this.\u0275fac=function(r){return new(r||e)(x(Is))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),pj=/^\)\]\}',?\n/,gj="X-Request-URL";function UE(e){if(e.url)return e.url;let t=gj.toLocaleLowerCase();return e.headers.get(t)}var mj=(()=>{class e{constructor(){this.fetchImpl=b(Vm,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=b(te)}handle(n){return new Z(r=>{let i=new AbortController;return this.doRequest(n,i.signal,r).then(qm,o=>r.error(new qn({error:o}))),()=>i.abort()})}doRequest(n,r,i){return we(this,null,function*(){let o=this.createRequestInit(n),s;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,D({signal:r},o)));vj(g),i.next({type:$n.Sent}),s=yield g}catch(g){i.error(new qn({error:g,status:g.status??0,statusText:g.statusText,url:n.urlWithParams,headers:g.headers}));return}let a=new gn(s.headers),u=s.statusText,c=UE(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&i.next(new Oc({headers:a,status:l,statusText:u,url:c})),s.body){let g=s.headers.get("content-length"),m=[],v=s.body.getReader(),y=0,_,C,N=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>we(this,null,function*(){for(;;){let{done:L,value:R}=yield v.read();if(L)break;if(m.push(R),y+=R.length,n.reportProgress){C=n.responseType==="text"?(C??"")+(_??=new TextDecoder).decode(R,{stream:!0}):void 0;let ve=()=>i.next({type:$n.DownloadProgress,total:g?+g:void 0,loaded:y,partialText:C});N?N.run(ve):ve()}}}));let P=this.concatChunks(m,y);try{let L=s.headers.get("Content-Type")??"";d=this.parseBody(n,P,L)}catch(L){i.error(new qn({error:L,headers:new gn(s.headers),status:s.status,statusText:s.statusText,url:UE(s)??n.urlWithParams}));return}}l===0&&(l=d?HE:0),l>=200&&l<300?(i.next(new As({body:d,headers:a,status:l,statusText:u,url:c})),i.complete()):i.error(new qn({error:d,headers:a,status:l,statusText:u,url:c}))})}parseBody(n,r,i){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(pj,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),Vm=class{};function qm(){}function vj(e){e.then(qm,qm)}function yj(e,t){return t(e)}function _j(e,t,n){return(r,i)=>dt(n,()=>t(r,o=>e(o,i)))}var Um=new S(""),bj=new S(""),Dj=new S("",{providedIn:"root",factory:()=>!0});var $E=(()=>{class e extends Is{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=b(jn),this.contributeToStability=b(Dj)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Um),...this.injector.get(bj,[])]));this.chain=r.reduceRight((i,o)=>_j(i,o,this.injector),yj)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Mr(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(x(Ic),x(je))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();var wj=/^\)\]\}',?\n/;function Ej(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var BE=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new O(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ae(r.\u0275loadImpl()):F(null)).pipe(ze(()=>new Z(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,y)=>s.setRequestHeader(v,y.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),u=null,c=()=>{if(u!==null)return u;let v=s.statusText||"OK",y=new gn(s.getAllResponseHeaders()),_=Ej(s)||n.url;return u=new Oc({headers:y,status:s.status,statusText:v,url:_}),u},l=()=>{let{headers:v,status:y,statusText:_,url:C}=c(),N=null;y!==fj&&(N=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=N?HE:0);let P=y>=200&&y<300;if(n.responseType==="json"&&typeof N=="string"){let L=N;N=N.replace(wj,"");try{N=N!==""?JSON.parse(N):null}catch(R){N=L,P&&(P=!1,N={error:R,text:N})}}P?(o.next(new As({body:N,headers:v,status:y,statusText:_,url:C||void 0})),o.complete()):o.error(new qn({error:N,headers:v,status:y,statusText:_,url:C||void 0}))},d=v=>{let{url:y}=c(),_=new qn({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});o.error(_)},p=!1,g=v=>{p||(o.next(c()),p=!0);let y={type:$n.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),o.next(y)},m=v=>{let y={type:$n.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),o.next(y)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),o.next({type:$n.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(x(Ri))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),zE=new S(""),Mj="XSRF-TOKEN",Cj=new S("",{providedIn:"root",factory:()=>Mj}),Sj="X-XSRF-TOKEN",Ij=new S("",{providedIn:"root",factory:()=>Sj}),Ac=class{},Oj=(()=>{class e{constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mc(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(x(Ae),x(Vt),x(Cj))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function Aj(e,t){let n=e.url.toLowerCase();if(!b(zE)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=b(Ac).getToken(),i=b(Ij);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var WE=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(WE||{});function Tj(e,t){return{\u0275kind:e,\u0275providers:t}}function Cie(...e){let t=[hj,BE,$E,{provide:Is,useExisting:$E},{provide:Ic,useFactory:()=>b(mj,{optional:!0})??b(BE)},{provide:Um,useValue:Aj,multi:!0},{provide:zE,useValue:!0},{provide:Ac,useClass:Oj}];for(let n of e)t.push(...n.\u0275providers);return Ju(t)}function Sie(e){return Tj(WE.Interceptors,e.map(t=>({provide:Um,useValue:t,multi:!0})))}var Hm=class extends Ec{constructor(){super(...arguments),this.supportsDOMEvents=!0}},zm=class e extends Hm{static makeCurrent(){TE(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=xj();return n==null?null:Nj(n)}resetBaseElement(){Ts=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Mc(document.cookie,t)}},Ts=null;function xj(){return Ts=Ts||document.querySelector("base"),Ts?Ts.getAttribute("href"):null}function Nj(e){return new URL(e,document.baseURI).pathname}var Wm=class{addToWindow(t){bt.getAngularTestability=(r,i=!0)=>{let o=t.findTestabilityInTree(r,i);if(o==null)throw new O(5103,!1);return o},bt.getAllAngularTestabilities=()=>t.getAllTestabilities(),bt.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let i=bt.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};bt.frameworkStabilizers||(bt.frameworkStabilizers=[]),bt.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let i=t.getTestability(n);return i??(r?qt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},Pj=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),Gm=new S(""),QE=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new O(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(x(Gm),x(te))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),Tc=class{constructor(t){this._doc=t}},$m="ng-app-id",JE=(()=>{class e{constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Cc(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(i=>i.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${$m}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(i=>{i.textContent!=null&&r.set(i.textContent,i)}),r}return null}changeUsageCount(n,r){let i=this.styleRef;if(i.has(n)){let o=i.get(n);return o.usage+=r,o.usage}return i.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let i=this.styleNodesInDOM,o=i?.get(r);if(o?.parentNode===n)return i.delete(r),o.removeAttribute($m),o;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute($m,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let i=this.getStyleElement(n,r),o=this.styleRef,s=o.get(r)?.elements;s?s.push(i):o.set(r,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(x(Ae),x(ic),x(sm,8),x(Vt))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),Bm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ym=/%COMP%/g,KE="%COMP%",Fj=`_nghost-${KE}`,Rj=`_ngcontent-${KE}`,kj=!0,jj=new S("",{providedIn:"root",factory:()=>kj});function Lj(e){return Rj.replace(Ym,e)}function Vj(e){return Fj.replace(Ym,e)}function XE(e,t){return t.map(n=>n.replace(Ym,e))}var GE=(()=>{class e{constructor(n,r,i,o,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=Cc(a),this.defaultRenderer=new xs(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===kt.ShadowDom&&(r=H(D({},r),{encapsulation:kt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof xc?i.applyToHost(n):i instanceof Ns&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case kt.Emulated:o=new xc(u,c,r,this.appId,l,s,a,d);break;case kt.ShadowDom:return new Zm(u,c,n,r,s,a,this.nonce,d);default:o=new Ns(u,c,r,l,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(x(QE),x(JE),x(ic),x(jj),x(Ae),x(Vt),x(te),x(sm))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),xs=class{constructor(t,n,r,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Bm[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ZE(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ZE(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new O(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=Bm[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=Bm[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(on.DashCase|on.Important)?t.style.setProperty(n,r,i&on.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&on.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=qt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function ZE(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Zm=class extends xs{constructor(t,n,r,i,o,s,a,u){super(t,o,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=XE(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ns=class extends xs{constructor(t,n,r,i,o,s,a,u){super(t,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i,this.styles=u?XE(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},xc=class extends Ns{constructor(t,n,r,i,o,s,a,u){let c=i+"-"+r.id;super(t,n,r,o,s,a,u,c),this.contentAttr=Lj(c),this.hostAttr=Vj(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},qj=(()=>{class e extends Tc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}static{this.\u0275fac=function(r){return new(r||e)(x(Ae))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})(),YE=["alt","control","meta","shift"],Uj={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$j={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Bj=(()=>{class e extends Tc{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i){let o=e.parseEventName(r),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qt().onAndCancel(n,o.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),YE.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let u={};return u.domEventName=i,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let i=Uj[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),YE.forEach(s=>{if(s!==i){let a=$j[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(x(Ae))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function Hj(){zm.makeCurrent()}function zj(){return new rn}function Wj(){return _w(document),document}var Gj=[{provide:Vt,useValue:Rm},{provide:om,useValue:Hj,multi:!0},{provide:Ae,useFactory:Wj,deps:[]}],Gie=Sm(EE,"browser",Gj),Zj=new S(""),Yj=[{provide:Es,useClass:Wm,deps:[]},{provide:Em,useClass:yc,deps:[te,_c,Es]},{provide:yc,useClass:yc,deps:[te,_c,Es]}],Qj=[{provide:Ku,useValue:"root"},{provide:rn,useFactory:zj,deps:[]},{provide:Gm,useClass:qj,multi:!0,deps:[Ae,te,Vt]},{provide:Gm,useClass:Bj,multi:!0,deps:[Ae]},GE,JE,QE,{provide:Ai,useExisting:GE},{provide:Ri,useClass:Pj,deps:[]},[]],Zie=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ic,useValue:n.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(x(Zj,12))}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Et({providers:[...Qj,...Yj],imports:[FE,ME]})}}return e})();var eM=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(x(Ae))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var U="primary",wa=Symbol("RouteTitle"),U_=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function $o(e){return new U_(e)}function WZ(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=e[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}function GZ(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Jt(e[n],t[n]))return!1;return!0}function Jt(e,t){let n=e?$_(e):void 0,r=t?$_(t):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!QT(e[i],t[i]))return!1;return!0}function $_(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function QT(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((i,o)=>r[o]===i)}else return e===t}function JT(e){return e.length>0?e[e.length-1]:null}function _r(e){return Sp(e)?e:Rr(e)?ae(Promise.resolve(e)):F(e)}var ZZ={exact:XT,subset:ex},KT={exact:YZ,subset:QZ,ignored:()=>!0};function qT(e,t,n){return ZZ[n.paths](e.root,t.root,n.matrixParams)&&KT[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function YZ(e,t){return Jt(e,t)}function XT(e,t,n){if(!Kr(e.segments,t.segments)||!Lh(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!XT(e.children[r],t.children[r],n))return!1;return!0}function QZ(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>QT(e[n],t[n]))}function ex(e,t,n){return tx(e,t,t.segments,n)}function tx(e,t,n,r){if(e.segments.length>n.length){let i=e.segments.slice(0,n.length);return!(!Kr(i,n)||t.hasChildren()||!Lh(i,n,r))}else if(e.segments.length===n.length){if(!Kr(e.segments,n)||!Lh(e.segments,n,r))return!1;for(let i in t.children)if(!e.children[i]||!ex(e.children[i],t.children[i],r))return!1;return!0}else{let i=n.slice(0,e.segments.length),o=n.slice(e.segments.length);return!Kr(e.segments,i)||!Lh(e.segments,i,r)||!e.children[U]?!1:tx(e.children[U],t,o,r)}}function Lh(e,t,n){return t.every((r,i)=>KT[n](e[i].parameters,r.parameters))}var Cn=class{constructor(t=new K([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=$o(this.queryParams),this._queryParamMap}toString(){return XZ.serialize(this)}},K=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Vh(this)}},Jr=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=$o(this.parameters),this._parameterMap}toString(){return rx(this)}};function JZ(e,t){return Kr(e,t)&&e.every((n,r)=>Jt(n.parameters,t[r].parameters))}function Kr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function KZ(e,t){let n=[];return Object.entries(e.children).forEach(([r,i])=>{r===U&&(n=n.concat(t(i,r)))}),Object.entries(e.children).forEach(([r,i])=>{r!==U&&(n=n.concat(t(i,r)))}),n}var Ea=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>new Bo,providedIn:"root"})}}return e})(),Bo=class{parse(t){let n=new H_(t);return new Cn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${ca(t.root,!0)}`,r=nY(t.queryParams),i=typeof t.fragment=="string"?`#${eY(t.fragment)}`:"";return`${n}${r}${i}`}},XZ=new Bo;function Vh(e){return e.segments.map(t=>rx(t)).join("/")}function ca(e,t){if(!e.hasChildren())return Vh(e);if(t){let n=e.children[U]?ca(e.children[U],!1):"",r=[];return Object.entries(e.children).forEach(([i,o])=>{i!==U&&r.push(`${i}:${ca(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=KZ(e,(r,i)=>i===U?[ca(e.children[U],!1)]:[`${i}:${ca(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[U]!=null?`${Vh(e)}/${n[0]}`:`${Vh(e)}/(${n.join("//")})`}}function nx(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kh(e){return nx(e).replace(/%3B/gi,";")}function eY(e){return encodeURI(e)}function B_(e){return nx(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qh(e){return decodeURIComponent(e)}function UT(e){return qh(e.replace(/\+/g,"%20"))}function rx(e){return`${B_(e.path)}${tY(e.parameters)}`}function tY(e){return Object.entries(e).map(([t,n])=>`;${B_(t)}=${B_(n)}`).join("")}function nY(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(i=>`${kh(n)}=${kh(i)}`).join("&"):`${kh(n)}=${kh(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var rY=/^[^\/()?;#]+/;function j_(e){let t=e.match(rY);return t?t[0]:""}var iY=/^[^\/()?;=#]+/;function oY(e){let t=e.match(iY);return t?t[0]:""}var sY=/^[^=?&#]+/;function aY(e){let t=e.match(sY);return t?t[0]:""}var uY=/^[^&#]+/;function cY(e){let t=e.match(uY);return t?t[0]:""}var H_=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new K([],{}):new K([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[U]=new K(t,n)),r}parseSegment(){let t=j_(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new O(4009,!1);return this.capture(t),new Jr(qh(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=oY(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=j_(this.remaining);i&&(r=i,this.capture(r))}t[qh(n)]=qh(r)}parseQueryParam(t){let n=aY(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=cY(this.remaining);s&&(r=s,this.capture(r))}let i=UT(n),o=UT(r);if(t.hasOwnProperty(i)){let s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=j_(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new O(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=U);let s=this.parseChildren();n[o]=Object.keys(s).length===1?s[U]:new K([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new O(4011,!1)}};function ix(e){return e.segments.length>0?new K([],{[U]:e}):e}function ox(e){let t={};for(let[r,i]of Object.entries(e.children)){let o=ox(i);if(r===U&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))t[s]=a;else(o.segments.length>0||o.hasChildren())&&(t[r]=o)}let n=new K(e.segments,t);return lY(n)}function lY(e){if(e.numberOfChildren===1&&e.children[U]){let t=e.children[U];return new K(e.segments.concat(t.segments),t.children)}return e}function Xr(e){return e instanceof Cn}function dY(e,t,n=null,r=null){let i=sx(e);return ax(i,t,n,r)}function sx(e){let t;function n(o){let s={};for(let u of o.children){let c=n(u);s[u.outlet]=c}let a=new K(o.url,s);return o===e&&(t=a),a}let r=n(e.root),i=ix(r);return t??i}function ax(e,t,n,r){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return L_(i,i,i,n,r);let o=fY(t);if(o.toRoot())return L_(i,i,new K([],{}),n,r);let s=hY(o,i,e),a=s.processChildren?fa(s.segmentGroup,s.index,o.commands):cx(s.segmentGroup,s.index,o.commands);return L_(i,s.segmentGroup,a,n,r)}function Uh(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ga(e){return typeof e=="object"&&e!=null&&e.outlets}function L_(e,t,n,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=ux(e,t,n);let a=ix(ox(s));return new Cn(a,o,i)}function ux(e,t,n){let r={};return Object.entries(e.children).forEach(([i,o])=>{o===t?r[i]=n:r[i]=ux(o,t,n)}),new K(e.segments,r)}var $h=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Uh(r[0]))throw new O(4003,!1);let i=r.find(ga);if(i&&i!==JT(r))throw new O(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function fY(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new $h(!0,0,e);let t=0,n=!1,r=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?n=!0:a===".."?t++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new $h(n,t,r)}var Vo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function hY(e,t,n){if(e.isAbsolute)return new Vo(t,!0,0);if(!n)return new Vo(t,!1,NaN);if(n.parent===null)return new Vo(n,!0,0);let r=Uh(e.commands[0])?0:1,i=n.segments.length-1+r;return pY(n,i,e.numberOfDoubleDots)}function pY(e,t,n){let r=e,i=t,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new O(4005,!1);i=r.segments.length}return new Vo(r,!1,i-o)}function gY(e){return ga(e[0])?e[0].outlets:{[U]:e}}function cx(e,t,n){if(e??=new K([],{}),e.segments.length===0&&e.hasChildren())return fa(e,t,n);let r=mY(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let o=new K(e.segments.slice(0,r.pathIndex),{});return o.children[U]=new K(e.segments.slice(r.pathIndex),e.children),fa(o,0,i)}else return r.match&&i.length===0?new K(e.segments,{}):r.match&&!e.hasChildren()?z_(e,t,n):r.match?fa(e,0,i):z_(e,t,n)}function fa(e,t,n){if(n.length===0)return new K(e.segments,{});{let r=gY(n),i={};if(Object.keys(r).some(o=>o!==U)&&e.children[U]&&e.numberOfChildren===1&&e.children[U].segments.length===0){let o=fa(e.children[U],t,n);return new K(e.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=cx(e.children[o],t,s))}),Object.entries(e.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new K(e.segments,i)}}function mY(e,t,n){let r=0,i=t,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return o;let s=e.segments[i],a=n[r];if(ga(a))break;let u=`${a}`,c=r<n.length-1?n[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!BT(u,c,s))return o;r+=2}else{if(!BT(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function z_(e,t,n){let r=e.segments.slice(0,t),i=0;for(;i<n.length;){let o=n[i];if(ga(o)){let u=vY(o.outlets);return new K(r,u)}if(i===0&&Uh(n[0])){let u=e.segments[t];r.push(new Jr(u.path,$T(n[0]))),i++;continue}let s=ga(o)?o.outlets[U]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&Uh(a)?(r.push(new Jr(s,$T(a))),i+=2):(r.push(new Jr(s,{})),i++)}return new K(r,{})}function vY(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=z_(new K([],{}),0,r))}),t}function $T(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function BT(e,t,n){return e==n.path&&Jt(t,n.parameters)}var ha="imperative",De=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(De||{}),pt=class{constructor(t,n){this.id=t,this.url=n}},Ho=class extends pt{constructor(t,n,r="imperative",i=null){super(t,n),this.type=De.NavigationStart,this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Kt=class extends pt{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=De.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},st=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(st||{}),Bh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Bh||{}),Mn=class extends pt{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=De.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},vr=class extends pt{constructor(t,n,r,i){super(t,n),this.reason=r,this.code=i,this.type=De.NavigationSkipped}},ma=class extends pt{constructor(t,n,r,i){super(t,n),this.error=r,this.target=i,this.type=De.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hh=class extends pt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},W_=class extends pt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},G_=class extends pt{constructor(t,n,r,i,o){super(t,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o,this.type=De.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Z_=class extends pt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Y_=class extends pt{constructor(t,n,r,i){super(t,n),this.urlAfterRedirects=r,this.state=i,this.type=De.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Q_=class{constructor(t){this.route=t,this.type=De.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},J_=class{constructor(t){this.route=t,this.type=De.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},K_=class{constructor(t){this.snapshot=t,this.type=De.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},X_=class{constructor(t){this.snapshot=t,this.type=De.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},eb=class{constructor(t){this.snapshot=t,this.type=De.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},tb=class{constructor(t){this.snapshot=t,this.type=De.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},zh=class{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=De.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},va=class{},zo=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function yY(e,t){return e.providers&&!e._injector&&(e._injector=hc(e.providers,t,`Route: ${e.path}`)),e._injector??t}function xt(e){return e.outlet||U}function _Y(e,t){let n=e.filter(r=>xt(r)===t);return n.push(...e.filter(r=>xt(r)!==t)),n}function Ma(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var nb=class{get injector(){return Ma(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Ca(this.rootInjector),this.attachRef=null}},Ca=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new nb(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(x(je))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wh=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=rb(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=rb(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ib(t,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==t)}pathFromRoot(t){return ib(t,this._root).map(n=>n.value)}};function rb(e,t){if(e===t.value)return t;for(let n of t.children){let r=rb(e,n);if(r)return r}return null}function ib(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ib(e,n);if(r.length)return r.unshift(t),r}return[]}var ot=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Lo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Gh=class extends Wh{constructor(t,n){super(t),this.snapshot=n,hb(this,t)}toString(){return this.snapshot.toString()}};function lx(e){let t=bY(e),n=new Ee([new Jr("",{})]),r=new Ee({}),i=new Ee({}),o=new Ee({}),s=new Ee(""),a=new ei(n,r,o,s,i,U,e,t.root);return a.snapshot=t.root,new Gh(new ot(a,[]),t)}function bY(e){let t={},n={},r={},i="",o=new qo([],t,r,i,n,U,e,null,{});return new Yh("",new ot(o,[]))}var ei=class{constructor(t,n,r,i,o,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(V(c=>c[wa]))??F(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(V(t=>$o(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>$o(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zh(e,t,n="emptyOnly"){let r,{routeConfig:i}=e;return t!==null&&(n==="always"||i?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:D(D({},t.params),e.params),data:D(D({},t.data),e.data),resolve:D(D(D(D({},e.data),t.data),i?.data),e._resolvedData)}:r={params:D({},e.params),data:D({},e.data),resolve:D(D({},e.data),e._resolvedData??{})},i&&fx(i)&&(r.resolve[wa]=i.title),r}var qo=class{get title(){return this.data?.[wa]}constructor(t,n,r,i,o,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=$o(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=$o(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},Yh=class extends Wh{constructor(t,n){super(n),this.url=t,hb(this,n)}toString(){return dx(this._root)}};function hb(e,t){t.value._routerState=e,t.children.forEach(n=>hb(e,n))}function dx(e){let t=e.children.length>0?` { ${e.children.map(dx).join(", ")} } `:"";return`${e.value}${t}`}function V_(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Jt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Jt(t.params,n.params)||e.paramsSubject.next(n.params),GZ(t.url,n.url)||e.urlSubject.next(n.url),Jt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function ob(e,t){let n=Jt(e.params,t.params)&&JZ(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||ob(e.parent,t.parent))}function fx(e){return typeof e.title=="string"||e.title===null}var DY=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=U,this.activateEvents=new pe,this.deactivateEvents=new pe,this.attachEvents=new pe,this.detachEvents=new pe,this.parentContexts=b(Ca),this.location=b(fc),this.changeDetector=b(kr),this.inputBinder=b(ep,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new O(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new O(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new O(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new O(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new sb(n,a,i.injector);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Ve({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Pr]})}}return e})(),sb=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===ei?this.route:t===Ca?this.childContexts:this.parent.get(t,n)}},ep=new S(""),HT=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:r}=n,i=rs([r.queryParams,r.params,r.data]).pipe(ze(([o,s,a],u)=>(a=D(D(D({},o),s),a),u===0?F(a):Promise.resolve(a)))).subscribe(o=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(n);return}let s=CE(r.component);if(!s){this.unsubscribeFromRouteData(n);return}for(let{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(n,i)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function wY(e,t,n){let r=ya(e,t._root,n?n._root:void 0);return new Gh(r,t)}function ya(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let i=EY(e,t,n);return new ot(r,i)}else{if(e.shouldAttach(t.value)){let o=e.retrieve(t.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ya(e,a)),s}}let r=MY(t.value),i=t.children.map(o=>ya(e,o));return new ot(r,i)}}function EY(e,t,n){return t.children.map(r=>{for(let i of n.children)if(e.shouldReuseRoute(r.value,i.value.snapshot))return ya(e,r,i);return ya(e,r)})}function MY(e){return new ei(new Ee(e.url),new Ee(e.params),new Ee(e.queryParams),new Ee(e.fragment),new Ee(e.data),e.outlet,e.component,e)}var _a=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},hx="ngNavigationCancelingError";function Qh(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Xr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,i=px(!1,st.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function px(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[hx]=!0,n.cancellationCode=t,n}function CY(e){return gx(e)&&Xr(e.url)}function gx(e){return!!e&&e[hx]}var SY=(e,t,n,r)=>V(i=>(new ab(t,i.targetRouterState,i.currentRouterState,n,r).activate(e),i)),ab=class{constructor(t,n,r,i,o){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),V_(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let i=Lo(n);t.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Lo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),i=r&&t.value.component?r.children:n,o=Lo(t);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let i=Lo(n);t.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new tb(o.value.snapshot))}),t.children.length&&this.forwardEvent(new X_(t.value.snapshot))}activateRoutes(t,n,r){let i=t.value,o=n?n.value:null;if(V_(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),V_(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},Jh=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Uo=class{constructor(t,n){this.component=t,this.route=n}};function IY(e,t,n){let r=e._root,i=t?t._root:null;return la(r,i,n,[r.value])}function OY(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Go(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!rD(e)?e:t.get(e):r}function la(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=Lo(t);return e.children.forEach(s=>{AY(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>pa(a,n.getContext(s),i)),i}function AY(e,t,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=TY(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Jh(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?la(e,t,a?a.children:null,r,i):la(e,t,n,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Uo(a.outlet.component,s))}else s&&pa(t,a,i),i.canActivateChecks.push(new Jh(r)),o.component?la(e,null,a?a.children:null,r,i):la(e,null,n,r,i);return i}function TY(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Kr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Kr(e.url,t.url)||!Jt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ob(e,t)||!Jt(e.queryParams,t.queryParams);case"paramsChange":default:return!ob(e,t)}}function pa(e,t,n){let r=Lo(e),i=e.value;Object.entries(r).forEach(([o,s])=>{i.component?t?pa(s,t.children.getContext(o),n):pa(s,null,n):pa(s,t,n)}),i.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Uo(t.outlet.component,i)):n.canDeactivateChecks.push(new Uo(null,i)):n.canDeactivateChecks.push(new Uo(null,i))}function Sa(e){return typeof e=="function"}function xY(e){return typeof e=="boolean"}function NY(e){return e&&Sa(e.canLoad)}function PY(e){return e&&Sa(e.canActivate)}function FY(e){return e&&Sa(e.canActivateChild)}function RY(e){return e&&Sa(e.canDeactivate)}function kY(e){return e&&Sa(e.canMatch)}function mx(e){return e instanceof mt||e?.name==="EmptyError"}var jh=Symbol("INITIAL_VALUE");function Wo(){return ze(e=>rs(e.map(t=>t.pipe(nn(1),xp(jh)))).pipe(V(t=>{for(let n of t)if(n!==!0){if(n===jh)return jh;if(n===!1||jY(n))return n}return!0}),He(t=>t!==jh),nn(1)))}function jY(e){return Xr(e)||e instanceof _a}function LY(e,t){return he(n=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return s.length===0&&o.length===0?F(H(D({},n),{guardsResult:!0})):VY(s,r,i,e).pipe(he(a=>a&&xY(a)?qY(r,o,e,t):F(a)),V(a=>H(D({},n),{guardsResult:a})))})}function VY(e,t,n,r){return ae(e).pipe(he(i=>zY(i.component,i.route,n,t,r)),Pt(i=>i!==!0,!0))}function qY(e,t,n,r){return ae(t).pipe(tn(i=>ci($Y(i.route.parent,r),UY(i.route,r),HY(e,i.path,n),BY(e,i.route,n))),Pt(i=>i!==!0,!0))}function UY(e,t){return e!==null&&t&&t(new eb(e)),F(!0)}function $Y(e,t){return e!==null&&t&&t(new K_(e)),F(!0)}function BY(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return F(!0);let i=r.map(o=>uu(()=>{let s=Ma(t)??n,a=Go(o,s),u=PY(a)?a.canActivate(t,e):dt(s,()=>a(t,e));return _r(u).pipe(Pt())}));return F(i).pipe(Wo())}function HY(e,t,n){let r=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>OY(s)).filter(s=>s!==null).map(s=>uu(()=>{let a=s.guards.map(u=>{let c=Ma(s.node)??n,l=Go(u,c),d=FY(l)?l.canActivateChild(r,e):dt(c,()=>l(r,e));return _r(d).pipe(Pt())});return F(a).pipe(Wo())}));return F(o).pipe(Wo())}function zY(e,t,n,r,i){let o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||o.length===0)return F(!0);let s=o.map(a=>{let u=Ma(t)??i,c=Go(a,u),l=RY(c)?c.canDeactivate(e,t,n,r):dt(u,()=>c(e,t,n,r));return _r(l).pipe(Pt())});return F(s).pipe(Wo())}function WY(e,t,n,r){let i=t.canLoad;if(i===void 0||i.length===0)return F(!0);let o=i.map(s=>{let a=Go(s,e),u=NY(a)?a.canLoad(t,n):dt(e,()=>a(t,n));return _r(u)});return F(o).pipe(Wo(),vx(r))}function vx(e){return wp(_e(t=>{if(typeof t!="boolean")throw Qh(e,t)}),V(t=>t===!0))}function GY(e,t,n,r){let i=t.canMatch;if(!i||i.length===0)return F(!0);let o=i.map(s=>{let a=Go(s,e),u=kY(a)?a.canMatch(t,n):dt(e,()=>a(t,n));return _r(u)});return F(o).pipe(Wo(),vx(r))}var ba=class{constructor(t){this.segmentGroup=t||null}},Da=class extends Error{constructor(t){super(),this.urlTree=t}};function jo(e){return ai(new ba(e))}function ZY(e){return ai(new O(4e3,!1))}function YY(e){return ai(px(!1,st.GuardRejected))}var ub=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return F(r);if(i.numberOfChildren>1||!i.children[U])return ZY(`${t.redirectTo}`);i=i.children[U]}}applyRedirectCommands(t,n,r,i,o){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,params:g,data:m,title:v}=i,y=dt(o,()=>a({params:g,data:m,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:p,title:v}));if(y instanceof Cn)throw new Da(y);n=y}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Da(s);return s}applyRedirectCreateUrlTree(t,n,r,i){let o=this.createSegmentGroup(t,n.root,r,i);return new Cn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(t,n,r,i){let o=this.createSegments(t,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,i)}),new K(o,s)}createSegments(t,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(t,o,i):this.findOrReturn(o,r))}findPosParam(t,n,r){let i=r[n.path.substring(1)];if(!i)throw new O(4001,!1);return i}findOrReturn(t,n){let r=0;for(let i of n){if(i.path===t.path)return n.splice(r),i;r++}return t}},cb={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function QY(e,t,n,r,i){let o=yx(e,t,n);return o.matched?(r=yY(t,r),GY(r,t,n,i).pipe(V(s=>s===!0?o:D({},cb)))):F(o)}function yx(e,t,n){if(t.path==="**")return JY(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?D({},cb):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(t.matcher||WZ)(n,e,t);if(!i)return D({},cb);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?D(D({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function JY(e){return{matched:!0,parameters:e.length>0?JT(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function zT(e,t,n,r){return n.length>0&&eQ(e,n,r)?{segmentGroup:new K(t,XY(r,new K(n,e.children))),slicedSegments:[]}:n.length===0&&tQ(e,n,r)?{segmentGroup:new K(e.segments,KY(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new K(e.segments,e.children),slicedSegments:n}}function KY(e,t,n,r){let i={};for(let o of n)if(tp(e,t,o)&&!r[xt(o)]){let s=new K([],{});i[xt(o)]=s}return D(D({},r),i)}function XY(e,t){let n={};n[U]=t;for(let r of e)if(r.path===""&&xt(r)!==U){let i=new K([],{});n[xt(r)]=i}return n}function eQ(e,t,n){return n.some(r=>tp(e,t,r)&&xt(r)!==U)}function tQ(e,t,n){return n.some(r=>tp(e,t,r))}function tp(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function nQ(e,t,n){return t.length===0&&!e.children[n]}var lb=class{};function rQ(e,t,n,r,i,o,s="emptyOnly"){return new db(e,t,n,r,i,s,o).recognize()}var iQ=31,db=class{constructor(t,n,r,i,o,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new ub(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new O(4002,`'${t.segmentGroup}'`)}recognize(){let t=zT(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(V(({children:n,rootSnapshot:r})=>{let i=new ot(r,n),o=new Yh("",i),s=dY(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(t){let n=new qo([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),U,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,U,n).pipe(V(r=>({children:r,rootSnapshot:n})),en(r=>{if(r instanceof Da)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ba?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,o):this.processSegment(t,n,r,r.segments,i,!0,o).pipe(V(s=>s instanceof ot?[s]:[]))}processChildren(t,n,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return ae(o).pipe(tn(s=>{let a=r.children[s],u=_Y(n,s);return this.processSegmentGroup(t,u,a,s,i)}),Tp((s,a)=>(s.push(...a),s)),On(null),Ap(),he(s=>{if(s===null)return jo(r);let a=_x(s);return oQ(a),F(a)}))}processSegment(t,n,r,i,o,s,a){return ae(n).pipe(tn(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,i,o,s,a).pipe(en(c=>{if(c instanceof ba)return F(null);throw c}))),Pt(u=>!!u),en(u=>{if(mx(u))return nQ(r,i,o)?F(new lb):jo(r);throw u}))}processSegmentAgainstRoute(t,n,r,i,o,s,a,u){return xt(r)!==s&&(s===U||!tp(i,o,r))?jo(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,i,n,r,o,s,u):jo(i)}expandSegmentAgainstRouteUsingRedirect(t,n,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:p}=yx(n,i,o);if(!u)return jo(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>iQ&&(this.allowRedirects=!1));let g=new qo(o,c,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,WT(i),xt(i),i.component??i._loadedComponent??null,i,GT(i)),m=Zh(g,a,this.paramsInheritanceStrategy);g.params=Object.freeze(m.params),g.data=Object.freeze(m.data);let v=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,g,t);return this.applyRedirects.lineralizeSegments(i,v).pipe(he(y=>this.processSegment(t,r,n,y.concat(p),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,i,o,s){let a=QY(n,r,i,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(ze(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,i).pipe(ze(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:p,remainingSegments:g}=u,m=new qo(p,d,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,WT(r),xt(r),r.component??r._loadedComponent??null,r,GT(r)),v=Zh(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(v.params),m.data=Object.freeze(v.data);let{segmentGroup:y,slicedSegments:_}=zT(n,p,g,c);if(_.length===0&&y.hasChildren())return this.processChildren(l,c,y,m).pipe(V(N=>new ot(m,N)));if(c.length===0&&_.length===0)return F(new ot(m,[]));let C=xt(r)===o;return this.processSegment(l,c,y,_,C?U:o,!0,m).pipe(V(N=>new ot(m,N instanceof ot?[N]:[])))}))):jo(n)))}getChildConfig(t,n,r){return n.children?F({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?F({routes:n._loadedRoutes,injector:n._loadedInjector}):WY(t,n,r,this.urlSerializer).pipe(he(i=>i?this.configLoader.loadChildren(t,n).pipe(_e(o=>{n._loadedRoutes=o.routes,n._loadedInjector=o.injector})):YY(n))):F({routes:[],injector:t})}};function oQ(e){e.sort((t,n)=>t.value.outlet===U?-1:n.value.outlet===U?1:t.value.outlet.localeCompare(n.value.outlet))}function sQ(e){let t=e.value.routeConfig;return t&&t.path===""}function _x(e){let t=[],n=new Set;for(let r of e){if(!sQ(r)){t.push(r);continue}let i=t.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):t.push(r)}for(let r of n){let i=_x(r.children);t.push(new ot(r.value,i))}return t.filter(r=>!n.has(r))}function WT(e){return e.data||{}}function GT(e){return e.resolve||{}}function aQ(e,t,n,r,i,o){return he(s=>rQ(e,t,n,r,s.extractedUrl,i,o).pipe(V(({state:a,tree:u})=>H(D({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function uQ(e,t){return he(n=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return F(n);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of bx(u))s.add(c);let a=0;return ae(s).pipe(tn(u=>o.has(u)?cQ(u,r,e,t):(u.data=Zh(u,u.parent,e).resolve,F(void 0))),_e(()=>a++),li(1),he(u=>a===s.size?F(n):et))})}function bx(e){let t=e.children.map(n=>bx(n)).flat();return[e,...t]}function cQ(e,t,n,r){let i=e.routeConfig,o=e._resolve;return i?.title!==void 0&&!fx(i)&&(o[wa]=i.title),lQ(o,e,t,r).pipe(V(s=>(e._resolvedData=s,e.data=Zh(e,e.parent,n).resolve,null)))}function lQ(e,t,n,r){let i=$_(e);if(i.length===0)return F({});let o={};return ae(i).pipe(he(s=>dQ(e[s],t,n,r).pipe(Pt(),_e(a=>{if(a instanceof _a)throw Qh(new Bo,a);o[s]=a}))),li(1),Op(o),en(s=>mx(s)?et:ai(s)))}function dQ(e,t,n,r){let i=Ma(t)??r,o=Go(e,i),s=o.resolve?o.resolve(t,n):dt(i,()=>o(t,n));return _r(s)}function q_(e){return ze(t=>{let n=e(t);return n?ae(n).pipe(V(()=>t)):F(t)})}var Dx=(()=>{class e{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===U);return r}getResolvedTitleForRoute(n){return n.data[wa]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(fQ),providedIn:"root"})}}return e})(),fQ=(()=>{class e extends Dx{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(x(eM))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ia=new S("",{providedIn:"root",factory:()=>({})}),hQ=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=vD({type:e,selectors:[["ng-component"]],standalone:!0,features:[mE],decls:1,vars:0,template:function(r,i){r&1&&wm(0,"router-outlet")},dependencies:[DY],encapsulation:2})}}return e})();function pb(e){let t=e.children&&e.children.map(pb),n=t?H(D({},e),{children:t}):D({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==U&&(n.component=hQ),n}var Kh=new S(""),gb=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(wc)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return F(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=_r(n.loadComponent()).pipe(V(wx),_e(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),Mr(()=>{this.componentLoaders.delete(n)})),i=new si(r,()=>new ye).pipe(oi());return this.componentLoaders.set(n,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return F({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=pQ(r,this.compiler,n,this.onLoadEndListener).pipe(Mr(()=>{this.childrenLoaders.delete(r)})),s=new si(o,()=>new ye).pipe(oi());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pQ(e,t,n,r){return _r(e.loadChildren()).pipe(V(wx),he(i=>i instanceof gs||Array.isArray(i)?F(i):ae(t.compileModuleAsync(i))),V(i=>{r&&r(e);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(n).injector,s=o.get(Kh,[],{optional:!0,self:!0}).flat()),{routes:s.map(pb),injector:o}}))}function gQ(e){return e&&typeof e=="object"&&"default"in e}function wx(e){return gQ(e)?e.default:e}var mb=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(mQ),providedIn:"root"})}}return e})(),mQ=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ex=new S(""),Mx=new S("");function vQ(e,t,n){let r=e.get(Mx),i=e.get(Ae);return e.get(te).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),yQ(e))),{onViewTransitionCreated:u}=r;return u&&dt(e,()=>u({transition:a,from:t,to:n})),s})}function yQ(e){return new Promise(t=>{Dm({read:()=>setTimeout(t)},{injector:e})})}var _Q=new S(""),vb=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye,this.transitionAbortSubject=new ye,this.configLoader=b(gb),this.environmentInjector=b(je),this.urlSerializer=b(Ea),this.rootContexts=b(Ca),this.location=b(ki),this.inputBindingEnabled=b(ep,{optional:!0})!==null,this.titleStrategy=b(Dx),this.options=b(Ia,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(mb),this.createViewTransition=b(Ex,{optional:!0}),this.navigationErrorHandler=b(_Q,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>F(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Q_(i)),r=i=>this.events.next(new J_(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(H(D(D({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,i){return this.transitions=new Ee({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:ha,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(He(o=>o.id!==0),V(o=>H(D({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),ze(o=>{let s=!1,a=!1;return F(o).pipe(ze(u=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",st.SupersededByNewNavigation),et;this.currentTransition=o,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?H(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new vr(u.id,this.urlSerializer.serialize(u.rawUrl),d,Bh.IgnoredSameUrlNavigation)),u.resolve(!1),et}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return F(u).pipe(ze(d=>{let p=this.transitions?.getValue();return this.events.next(new Ho(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),p!==this.transitions?.getValue()?et:Promise.resolve(d)}),aQ(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),_e(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=H(D({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let p=new Hh(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:p,source:g,restoredState:m,extras:v}=u,y=new Ho(d,this.urlSerializer.serialize(p),g,m);this.events.next(y);let _=lx(this.rootComponentType).snapshot;return this.currentTransition=o=H(D({},u),{targetSnapshot:_,urlAfterRedirects:p,extras:H(D({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=p,F(o)}else{let d="";return this.events.next(new vr(u.id,this.urlSerializer.serialize(u.extractedUrl),d,Bh.IgnoredByUrlHandlingStrategy)),u.resolve(!1),et}}),_e(u=>{let c=new W_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),V(u=>(this.currentTransition=o=H(D({},u),{guards:IY(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),o)),LY(this.environmentInjector,u=>this.events.next(u)),_e(u=>{if(o.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Qh(this.urlSerializer,u.guardsResult);let c=new G_(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),He(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",st.GuardRejected),!1)),q_(u=>{if(u.guards.canActivateChecks.length)return F(u).pipe(_e(c=>{let l=new Z_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ze(c=>{let l=!1;return F(c).pipe(uQ(this.paramsInheritanceStrategy,this.environmentInjector),_e({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",st.NoDataFromResolver)}}))}),_e(c=>{let l=new Y_(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),q_(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(_e(p=>{l.component=p}),V(()=>{})));for(let p of l.children)d.push(...c(p));return d};return rs(c(u.targetSnapshot.root)).pipe(On(null),nn(1))}),q_(()=>this.afterPreactivation()),ze(()=>{let{currentSnapshot:u,targetSnapshot:c}=o,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?ae(l).pipe(V(()=>o)):F(o)}),V(u=>{let c=wY(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=o=H(D({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,o}),_e(()=>{this.events.next(new va)}),SY(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),nn(1),_e({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Kt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Np(this.transitionAbortSubject.pipe(_e(u=>{throw u}))),Mr(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",st.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),en(u=>{if(a=!0,gx(u))this.events.next(new Mn(o.id,this.urlSerializer.serialize(o.extractedUrl),u.message,u.cancellationCode)),CY(u)?this.events.next(new zo(u.url,u.navigationBehaviorOptions)):o.resolve(!1);else{let c=new ma(o.id,this.urlSerializer.serialize(o.extractedUrl),u,o.targetSnapshot??void 0);try{let l=dt(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof _a){let{message:d,cancellationCode:p}=Qh(this.urlSerializer,l);this.events.next(new Mn(o.id,this.urlSerializer.serialize(o.extractedUrl),d,p)),this.events.next(new zo(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);o.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(l)}}return et}))}))}cancelNavigationTransition(n,r,i){let o=new Mn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bQ(e){return e!==ha}var DQ=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(wQ),providedIn:"root"})}}return e})(),fb=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},wQ=(()=>{class e extends fb{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Cx=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:()=>b(EQ),providedIn:"root"})}}return e})(),EQ=(()=>{class e extends Cx{constructor(){super(...arguments),this.location=b(ki),this.urlSerializer=b(Ea),this.options=b(Ia,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(mb),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Cn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=lx(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Ho)this.stateMemento=this.createStateMemento();else if(n instanceof vr)this.rawUrlTree=r.initialUrl;else if(n instanceof Hh){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else n instanceof va?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof Mn&&(n.code===st.GuardRejected||n.code===st.NoDataFromResolver)?this.restoreHistory(r):n instanceof ma?this.restoreHistory(r,!0):n instanceof Kt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let i=n instanceof Cn?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=D(D({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=D(D({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),da=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(da||{});function Sx(e,t){e.events.pipe(He(n=>n instanceof Kt||n instanceof Mn||n instanceof ma||n instanceof vr),V(n=>n instanceof Kt||n instanceof vr?da.COMPLETE:(n instanceof Mn?n.code===st.Redirect||n.code===st.SupersededByNewNavigation:!1)?da.REDIRECTING:da.FAILED),He(n=>n!==da.REDIRECTING),nn(1)).subscribe(()=>{t()})}function MQ(e){throw e}var CQ={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SQ={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},yr=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=b(vc),this.stateManager=b(Cx),this.options=b(Ia,{optional:!0})||{},this.pendingTasks=b(jn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(vb),this.urlSerializer=b(Ea),this.location=b(ki),this.urlHandlingStrategy=b(mb),this._events=new ye,this.errorHandler=this.options.errorHandler||MQ,this.navigated=!1,this.routeReuseStrategy=b(DQ),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(Kh,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(ep,{optional:!0}),this.eventsSubscription=new de,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof Mn&&r.code!==st.Redirect&&r.code!==st.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Kt)this.navigated=!0;else if(r instanceof zo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=D({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||bQ(i.source)},s);this.scheduleNavigation(a,ha,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}OQ(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ha,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=D({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(pb),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=D(D({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let p=i?i.snapshot:this.routerState.snapshot.root;d=sx(p)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return ax(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Xr(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ha,null,r)}navigate(n,r={skipLocationChange:!1}){return IQ(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=D({},CQ):r===!1?i=D({},SQ):i=r,Xr(n))return qT(this.currentUrlTree,n,i);let o=this.parseUrl(n);return qT(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,p)=>{a=d,u=p});let l=this.pendingTasks.add();return Sx(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function IQ(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new O(4008,!1)}function OQ(e){return!(e instanceof va)&&!(e instanceof zo)}var cde=(()=>{class e{constructor(n,r,i,o,s,a){this.router=n,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new ye,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(c=>{c instanceof Kt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Xr(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let r=this.href===null?null:ww(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,n,r):i.removeAttribute(o,n)}get urlTree(){return this.routerLinkInput===null?null:Xr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(X(yr),X(ei),em("tabindex"),X(Ln),X(cn),X(pn))}}static{this.\u0275dir=Ve({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&Fr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&gc("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",jr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",jr],replaceUrl:[2,"replaceUrl","replaceUrl",jr],routerLink:"routerLink"},standalone:!0,features:[bm,Pr]})}}return e})();var Xh=class{};var AQ=(()=>{class e{constructor(n,r,i,o,s){this.router=n,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(He(n=>n instanceof Kt),tn(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=hc(o.providers,n,`Route: ${o.path}`));let s=o._injector??n,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ae(i).pipe(ui())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(n,r):i=F(null);let o=i.pipe(he(s=>s===null?F(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return ae([o,s]).pipe(ui())}else return o})}static{this.\u0275fac=function(r){return new(r||e)(x(yr),x(wc),x(je),x(Xh),x(gb))}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ix=new S(""),TQ=(()=>{class e{constructor(n,r,i,o,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Ho?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Kt?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof vr&&n.code===Bh.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof zh&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new zh(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){Fw()}}static{this.\u0275prov=T({token:e,factory:e.\u0275fac})}}return e})();function xQ(e){return e.routerState.root}function Oa(e,t){return{\u0275kind:e,\u0275providers:t}}function NQ(){let e=b(tt);return t=>{let n=e.get(dn);if(t!==n.components[0])return;let r=e.get(yr),i=e.get(Ox);e.get(yb)===1&&r.initialNavigation(),e.get(Ax,null,z.Optional)?.setUpPreloading(),e.get(Ix,null,z.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ox=new S("",{factory:()=>new ye}),yb=new S("",{providedIn:"root",factory:()=>1});function PQ(){return Oa(2,[{provide:yb,useValue:0},{provide:bc,multi:!0,deps:[tt],useFactory:t=>{let n=t.get(xE,Promise.resolve());return()=>n.then(()=>new Promise(r=>{let i=t.get(yr),o=t.get(Ox);Sx(i,()=>{r(!0)}),t.get(vb).afterPreactivation=()=>(r(!0),o.closed?F(void 0):o),i.initialNavigation()}))}}])}function FQ(){return Oa(3,[{provide:bc,multi:!0,useFactory:()=>{let t=b(yr);return()=>{t.setUpLocationChangeListener()}}},{provide:yb,useValue:2}])}var Ax=new S("");function RQ(e){return Oa(0,[{provide:Ax,useExisting:AQ},{provide:Xh,useExisting:e}])}function kQ(){return Oa(8,[HT,{provide:ep,useExisting:HT}])}function jQ(e){let t=[{provide:Ex,useValue:vQ},{provide:Mx,useValue:D({skipNextTransition:!!e?.skipInitialTransition},e)}];return Oa(9,t)}var ZT=new S("ROUTER_FORROOT_GUARD"),LQ=[ki,{provide:Ea,useClass:Bo},yr,Ca,{provide:ei,useFactory:xQ,deps:[yr]},gb,[]],lde=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[LQ,[],{provide:Kh,multi:!0,useValue:n},{provide:ZT,useFactory:$Q,deps:[[yr,new Lg,new lD]]},{provide:Ia,useValue:r||{}},r?.useHash?qQ():UQ(),VQ(),r?.preloadingStrategy?RQ(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?BQ(r):[],r?.bindToComponentInputs?kQ().\u0275providers:[],r?.enableViewTransitions?jQ().\u0275providers:[],HQ()]}}static forChild(n){return{ngModule:e,providers:[{provide:Kh,multi:!0,useValue:n}]}}static{this.\u0275fac=function(r){return new(r||e)(x(ZT,8))}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Et({})}}return e})();function VQ(){return{provide:Ix,useFactory:()=>{let e=b(RE),t=b(te),n=b(Ia),r=b(vb),i=b(Ea);return n.scrollOffset&&e.setOffset(n.scrollOffset),new TQ(i,r,e,t,n)}}}function qQ(){return{provide:pn,useClass:PE}}function UQ(){return{provide:pn,useClass:Fm}}function $Q(e){return"guarded"}function BQ(e){return[e.initialNavigation==="disabled"?FQ().\u0275providers:[],e.initialNavigation==="enabledBlocking"?PQ().\u0275providers:[]]}var YT=new S("");function HQ(){return[{provide:YT,useFactory:NQ},{provide:Dc,multi:!0,useExisting:YT}]}var jx=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(X(Ln),X(cn))}}static{this.\u0275dir=Ve({type:e})}}return e})(),Lx=(()=>{class e extends jx{static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275dir=Ve({type:e,features:[ln]})}}return e})(),bb=new S(""),zQ={provide:bb,useExisting:Nr(()=>WQ),multi:!0},WQ=(()=>{class e extends Lx{writeValue(n){this.setProperty("checked",n)}static{this.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fi(e)))(i||e)}})()}static{this.\u0275dir=Ve({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&Fr("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},features:[ws([zQ]),ln]})}}return e})(),GQ={provide:bb,useExisting:Nr(()=>Vx),multi:!0};function ZQ(){let e=qt()?qt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var YQ=new S(""),Vx=(()=>{class e extends jx{constructor(n,r,i){super(n,r),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ZQ())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(X(Ln),X(cn),X(YQ,8))}}static{this.\u0275dir=Ve({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&Fr("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[ws([GQ]),ln]})}}return e})();var qx=new S(""),Ux=new S("");function $x(e){return e!=null}function Bx(e){return Rr(e)?ae(e):e}function Hx(e){let t={};return e.forEach(n=>{t=n!=null?D(D({},t),n):t}),Object.keys(t).length===0?null:t}function zx(e,t){return t.map(n=>n(e))}function QQ(e){return!e.validate}function Wx(e){return e.map(t=>QQ(t)?t:n=>t.validate(n))}function JQ(e){if(!e)return null;let t=e.filter($x);return t.length==0?null:function(n){return Hx(zx(n,t))}}function Db(e){return e!=null?JQ(Wx(e)):null}function KQ(e){if(!e)return null;let t=e.filter($x);return t.length==0?null:function(n){let r=zx(n,t).map(Bx);return Ip(r).pipe(V(Hx))}}function wb(e){return e!=null?KQ(Wx(e)):null}function Tx(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function XQ(e){return e._rawValidators}function eJ(e){return e._rawAsyncValidators}function _b(e){return e?Array.isArray(e)?e:[e]:[]}function rp(e,t){return Array.isArray(e)?e.includes(t):e===t}function xx(e,t){let n=_b(t);return _b(e).forEach(i=>{rp(n,i)||n.push(i)}),n}function Nx(e,t){return _b(t).filter(n=>!rp(e,n))}var ip=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Db(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=wb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Qo=class extends ip{get formDirective(){return null}get path(){return null}},Fa=class extends ip{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},op=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},tJ={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Ode=H(D({},tJ),{"[class.ng-submitted]":"isSubmitted"}),Ade=(()=>{class e extends op{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(X(Fa,2))}}static{this.\u0275dir=Ve({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&mc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[ln]})}}return e})(),Tde=(()=>{class e extends op{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(X(Qo,10))}}static{this.\u0275dir=Ve({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&mc("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[ln]})}}return e})();var Aa="VALID",np="INVALID",Zo="PENDING",Ta="DISABLED",Jo=class{},sp=class extends Jo{constructor(t,n){super(),this.value=t,this.source=n}},Na=class extends Jo{constructor(t,n){super(),this.pristine=t,this.source=n}},Pa=class extends Jo{constructor(t,n){super(),this.touched=t,this.source=n}},Yo=class extends Jo{constructor(t,n){super(),this.status=t,this.source=n}};function Gx(e){return(cp(e)?e.validators:e)||null}function nJ(e){return Array.isArray(e)?Db(e):e||null}function Zx(e,t){return(cp(t)?t.asyncValidators:e)||null}function rJ(e){return Array.isArray(e)?wb(e):e||null}function cp(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function iJ(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new O(1e3,"");if(!r[n])throw new O(1001,"")}function oJ(e,t,n){e._forEachChild((r,i)=>{if(n[i]===void 0)throw new O(1002,"")})}var ap=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ms(()=>this.statusReactive()),this.statusReactive=Ds(void 0),this._pristine=Ms(()=>this.pristineReactive()),this.pristineReactive=Ds(!0),this._touched=Ms(()=>this.touchedReactive()),this.touchedReactive=Ds(!1),this._events=new ye,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return fn(this.statusReactive)}set status(t){fn(()=>this.statusReactive.set(t))}get valid(){return this.status===Aa}get invalid(){return this.status===np}get pending(){return this.status==Zo}get disabled(){return this.status===Ta}get enabled(){return this.status!==Ta}get pristine(){return fn(this.pristineReactive)}set pristine(t){fn(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return fn(this.touchedReactive)}set touched(t){fn(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(xx(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(xx(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Nx(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Nx(t,this._rawAsyncValidators))}hasValidator(t){return rp(this._rawValidators,t)}hasAsyncValidator(t){return rp(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(H(D({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Pa(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Pa(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(H(D({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Na(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Na(!0,r))}markAsPending(t={}){this.status=Zo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Yo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(H(D({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ta,this.errors=null,this._forEachChild(i=>{i.disable(H(D({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new sp(this.value,r)),this._events.next(new Yo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(D({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Aa,this._forEachChild(r=>{r.enable(H(D({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(H(D({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Aa||this.status===Zo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new sp(this.value,n)),this._events.next(new Yo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(H(D({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ta:Aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Zo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=Bx(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Yo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?Ta:this.errors?np:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zo)?Zo:this._anyControlsHaveStatus(np)?np:Aa}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new Na(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Pa(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){cp(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=nJ(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=rJ(this._rawAsyncValidators)}},up=class extends ap{constructor(t,n,r){super(Gx(n),Zx(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){oJ(this,!0,t),Object.keys(t).forEach(r=>{iJ(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t?t[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Eb=new S("CallSetDisabledState",{providedIn:"root",factory:()=>Mb}),Mb="always";function sJ(e,t){return[...t.path,e]}function Yx(e,t,n=Mb){Qx(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),uJ(e,t),lJ(e,t),cJ(e,t),aJ(e,t)}function Px(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function aJ(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Qx(e,t){let n=XQ(e);t.validator!==null?e.setValidators(Tx(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=eJ(e);t.asyncValidator!==null?e.setAsyncValidators(Tx(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();Px(t._rawValidators,i),Px(t._rawAsyncValidators,i)}function uJ(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Jx(e,t)})}function cJ(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Jx(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Jx(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function lJ(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function dJ(e,t){e==null,Qx(e,t)}function fJ(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function hJ(e){return Object.getPrototypeOf(e.constructor)===Lx}function pJ(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function gJ(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===Vx?n=o:hJ(o)?r=o:i=o}),i||r||n||null}var mJ={provide:Qo,useExisting:Nr(()=>vJ)},xa=Promise.resolve(),vJ=(()=>{class e extends Qo{get submitted(){return fn(this.submittedReactive)}constructor(n,r,i){super(),this.callSetDisabledState=i,this._submitted=Ms(()=>this.submittedReactive()),this.submittedReactive=Ds(!1),this._directives=new Set,this.ngSubmit=new pe,this.form=new up({},Db(n),wb(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){xa.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Yx(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){xa.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){xa.then(()=>{let r=this._findContainer(n.path),i=new up({});dJ(i,n),r.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){xa.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){xa.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),pJ(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}static{this.\u0275fac=function(r){return new(r||e)(X(qx,10),X(Ux,10),X(Eb,8))}}static{this.\u0275dir=Ve({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,i){r&1&&Fr("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ws([mJ]),ln]})}}return e})();function Fx(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Rx(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var yJ=class extends ap{constructor(t=null,n,r){super(Gx(n),Zx(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),cp(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Rx(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Fx(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Fx(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Rx(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var _J={provide:Fa,useExisting:Nr(()=>bJ)},kx=Promise.resolve(),bJ=(()=>{class e extends Fa{constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new yJ,this._registered=!1,this.name="",this.update=new pe,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=gJ(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),fJ(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Yx(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){kx.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&jr(r);kx.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?sJ(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(X(Qo,9),X(qx,10),X(Ux,10),X(bb,10),X(kr,8),X(Eb,8))}}static{this.\u0275dir=Ve({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ws([_J]),ln,Pr]})}}return e})(),Nde=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=Ve({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();var DJ=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Et({})}}return e})();var Pde=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Eb,useValue:n.callSetDisabledState??Mb}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Mt({type:e})}static{this.\u0275inj=Et({imports:[DJ]})}}return e})();var kde={baseUrl:"MISSING",api:{baseUrl:"MISSING"},production:!1};export{s1 as a,EJ as b,we as c,Ee as d,ai as e,C1 as f,en as g,T as h,Et as i,x as j,b as k,vD as l,Mt as m,Pr as n,yre as o,_re as p,bre as q,Dre as r,pe as s,rn as t,$P as u,wre as v,X as w,jR as x,KR as y,mc as z,Cre as A,Sre as B,Ire as C,Ore as D,Are as E,dE as F,fE as G,wm as H,Tre as I,Fr as J,xre as K,Nre as L,_k as M,pE as N,bk as O,Dk as P,wk as Q,Pre as R,Ek as S,mE as T,Fre as U,Rre as V,kre as W,jre as X,die as Y,FE as Z,qn as _,hj as $,Cie as aa,Sie as ba,Gie as ca,Zie as da,sT as ea,ei as fa,DY as ga,yr as ha,cde as ia,lde as ja,WQ as ka,Vx as la,Ade as ma,Tde as na,vJ as oa,bJ as pa,Nde as qa,Pde as ra,kde as sa};