@cc-openmrs/cc-esm-active-prescriptions 1.0.65 → 1.0.67

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 (63) hide show
  1. package/dist/116.js +1 -0
  2. package/dist/184.js +2 -1
  3. package/dist/{311.js.LICENSE.txt → 184.js.LICENSE.txt} +0 -37
  4. package/dist/197.js +1 -1
  5. package/dist/225.js +1 -1
  6. package/dist/282.js +2 -0
  7. package/dist/282.js.LICENSE.txt +32 -0
  8. package/dist/300.js +1 -1
  9. package/dist/311.js +1 -2
  10. package/dist/319.js +1 -1
  11. package/dist/335.js +1 -1
  12. package/dist/353.js +1 -0
  13. package/dist/41.js +1 -1
  14. package/dist/422.js +2 -1
  15. package/dist/478.js +2 -0
  16. package/dist/499.js +1 -0
  17. package/dist/537.js +1 -1
  18. package/dist/540.js +1 -1
  19. package/dist/55.js +1 -1
  20. package/dist/606.js +2 -1
  21. package/dist/{618.js.LICENSE.txt → 606.js.LICENSE.txt} +2 -2
  22. package/dist/652.js +1 -1
  23. package/dist/679.js +1 -1
  24. package/dist/765.js +2 -0
  25. package/dist/765.js.LICENSE.txt +19 -0
  26. package/dist/779.js +2 -0
  27. package/dist/{31.js.LICENSE.txt → 779.js.LICENSE.txt} +11 -0
  28. package/dist/845.js +1 -0
  29. package/dist/961.js +1 -1
  30. package/dist/966.js +1 -1
  31. package/dist/99.js +1 -1
  32. package/dist/993.js +1 -0
  33. package/dist/main.js +1 -2
  34. package/dist/openmrs-esm-patient-lists-app.js +1 -0
  35. package/dist/{openmrs-esm-template-app.js.buildmanifest.json → openmrs-esm-patient-lists-app.js.buildmanifest.json} +158 -227
  36. package/dist/routes.json +1 -1
  37. package/package.json +61 -51
  38. package/src/declarations.d.ts +4 -5
  39. package/src/prescriptions-actions/prescriptions-action-button.component.tsx +7 -13
  40. package/src/prescriptions-actions/prescriptions-action-menu-item.component.tsx +29 -0
  41. package/src/prescriptions-actions/prescriptions-action-menu-item.scss +12 -0
  42. package/src/root.component.tsx +117 -117
  43. package/src/routes.json +12 -11
  44. package/dist/177.js +0 -2
  45. package/dist/237.js +0 -2
  46. package/dist/237.js.LICENSE.txt +0 -9
  47. package/dist/31.js +0 -2
  48. package/dist/437.js +0 -1
  49. package/dist/533.js +0 -1
  50. package/dist/618.js +0 -2
  51. package/dist/635.js +0 -1
  52. package/dist/647.js +0 -2
  53. package/dist/647.js.LICENSE.txt +0 -9
  54. package/dist/692.js +0 -2
  55. package/dist/761.js +0 -2
  56. package/dist/761.js.LICENSE.txt +0 -29
  57. package/dist/875.js +0 -2
  58. package/dist/875.js.LICENSE.txt +0 -5
  59. package/dist/main.js.LICENSE.txt +0 -9
  60. package/dist/openmrs-esm-template-app.js +0 -1
  61. package/src/carbon-react.d.ts +0 -9
  62. /package/dist/{177.js.LICENSE.txt → 422.js.LICENSE.txt} +0 -0
  63. /package/dist/{692.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
package/dist/184.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[184],{9184:(e,t,r)=>{r.d(t,{IF:()=>g,JG:()=>x,MG:()=>a,NW:()=>o,Sc:()=>n,Vg:()=>f,_j:()=>s,bm:()=>u,cR:()=>c,c_:()=>d,nb:()=>m,yQ:()=>p});var l=r(428),h=r(6072),i=r.n(h),w=r(4848);const n=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"}),e)}),o=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"}),(0,w.jsx)("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"}),e)}),a=i().forwardRef(function({children:e,size:t=16,...r},h){return 20===t||"20"===t||"20px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"}),(0,w.jsx)("path",{d:"M15.6 5.6 8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"}),e):24===t||"24"===t||"24px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M10 15.9 4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"}),e):i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"}),e)}),s=i().forwardRef(function({children:e,size:t=16,...r},h){return 16===t||"16"===t||"16px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"}),(0,w.jsx)("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"}),e):20===t||"20"===t||"20px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"}),(0,w.jsx)("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"}),e):24===t||"24"===t||"24px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"}),(0,w.jsx)("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"}),e):i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"}),(0,w.jsx)("path",{fill:"none",d:"M14 21.591 9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"}),e)}),c=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M14 21.414 9 16.413 10.413 15 14 18.586 21.585 11 23 12.415 14 21.414z"}),(0,w.jsx)("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,26A12,12,0,1,1,28,16,12,12,0,0,1,16,28Z"}),e)}),p=i().forwardRef(function({children:e,size:t=16,...r},h){return"glyph"===t||"glyph"===t||"glyphpx"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M5 6 0 1 .7.3 5 4.6 9.3.3 10 1z"}),e):16===t||"16"===t||"16px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M8 11 3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"}),e):i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M16 22 6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"}),e)}),x=i().forwardRef(function({children:e,size:t=16,...r},h){return"glyph"===t||"glyph"===t||"glyphpx"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M0 5 5 0 5.7.7 1.4 5 5.7 9.3 5 10z"}),e):16===t||"16"===t||"16px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M5 8 10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"}),e):i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M10 16 20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"}),e)}),d=i().forwardRef(function({children:e,size:t=16,...r},h){return"glyph"===t||"glyph"===t||"glyphpx"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M6 5 1 10 .3 9.3 4.6 5 .3.7 1 0z"}),e):16===t||"16"===t||"16px"===t?i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M11 8 6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"}),e):i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"}),e)}),f=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M7.7,4.7a14.7,14.7,0,0,0-3,3.1L6.3,9A13.26,13.26,0,0,1,8.9,6.3Z"}),(0,w.jsx)("path",{d:"M4.6,12.3l-1.9-.6A12.51,12.51,0,0,0,2,16H4A11.48,11.48,0,0,1,4.6,12.3Z"}),(0,w.jsx)("path",{d:"M2.7,20.4a14.4,14.4,0,0,0,2,3.9l1.6-1.2a12.89,12.89,0,0,1-1.7-3.3Z"}),(0,w.jsx)("path",{d:"M7.8,27.3a14.4,14.4,0,0,0,3.9,2l.6-1.9A12.89,12.89,0,0,1,9,25.7Z"}),(0,w.jsx)("path",{d:"M11.7,2.7l.6,1.9A11.48,11.48,0,0,1,16,4V2A12.51,12.51,0,0,0,11.7,2.7Z"}),(0,w.jsx)("path",{d:"M24.2,27.3a15.18,15.18,0,0,0,3.1-3.1L25.7,23A11.53,11.53,0,0,1,23,25.7Z"}),(0,w.jsx)("path",{d:"M27.4,19.7l1.9.6A15.47,15.47,0,0,0,30,16H28A11.48,11.48,0,0,1,27.4,19.7Z"}),(0,w.jsx)("path",{d:"M29.2,11.6a14.4,14.4,0,0,0-2-3.9L25.6,8.9a12.89,12.89,0,0,1,1.7,3.3Z"}),(0,w.jsx)("path",{d:"M24.1,4.6a14.4,14.4,0,0,0-3.9-2l-.6,1.9a12.89,12.89,0,0,1,3.3,1.7Z"}),(0,w.jsx)("path",{d:"M20.3,29.3l-.6-1.9A11.48,11.48,0,0,1,16,28v2A21.42,21.42,0,0,0,20.3,29.3Z"}),e)}),g=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},(0,w.jsx)("circle",{cx:"8",cy:"8",r:"6"}),e)}),m=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M8,4A4,4,0,1,1,4,8,4.0045,4.0045,0,0,1,8,4M8,2a6,6,0,1,0,6,6A6,6,0,0,0,8,2Z"}),e)}),u=i().forwardRef(function({children:e,size:t=16,...r},h){return i().createElement(l.A,{width:t,height:t,ref:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...r},(0,w.jsx)("path",{d:"M17.4141 16 24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"}),e)})}}]);
1
+ /*! For license information please see 184.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[184],{3184(t,e,r){r.r(e),r.d(e,{ArgumentOutOfRangeError:()=>St,AsyncSubject:()=>ot,BehaviorSubject:()=>Y,ConnectableObservable:()=>C,EMPTY:()=>W,EmptyError:()=>It,GroupedObservable:()=>V,NEVER:()=>me,Notification:()=>tt,NotificationKind:()=>G,ObjectUnsubscribedError:()=>I,Observable:()=>E,ReplaySubject:()=>nt,Scheduler:()=>q,Subject:()=>N,Subscriber:()=>v,Subscription:()=>p,TimeoutError:()=>Tt,UnsubscriptionError:()=>f,VirtualAction:()=>xt,VirtualTimeScheduler:()=>_t,animationFrame:()=>wt,animationFrameScheduler:()=>mt,asap:()=>pt,asapScheduler:()=>ft,async:()=>bt,asyncScheduler:()=>dt,bindCallback:()=>kt,bindNodeCallback:()=>Pt,combineLatest:()=>Bt,concat:()=>ie,config:()=>u,defer:()=>oe,empty:()=>z,forkJoin:()=>se,from:()=>Qt,fromEvent:()=>ce,fromEventPattern:()=>ae,generate:()=>le,identity:()=>_,iif:()=>pe,interval:()=>be,isObservable:()=>Et,merge:()=>ye,never:()=>we,noop:()=>gt,observable:()=>w,of:()=>X,onErrorResumeNext:()=>_e,pairs:()=>xe,partition:()=>je,pipe:()=>x,queue:()=>L,queueScheduler:()=>H,race:()=>Ne,range:()=>Ae,scheduled:()=>Kt,throwError:()=>Z,timer:()=>Pe,using:()=>Fe,zip:()=>Ye});var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function o(t){return"function"==typeof t}var s=!1,u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack,s=t},get useDeprecatedSynchronousErrorHandling(){return s}};function c(t){setTimeout(function(){throw t},0)}var h={closed:!0,next:function(t){},error:function(t){if(u.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete:function(){}},a=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function l(t){return null!==t&&"object"==typeof t}var f=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),p=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,u=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(o(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof f?d(t.errors):[t]}}if(a(u)){c=-1;for(var h=u.length;++c<h;){var p=u[c];if(l(p))try{p.unsubscribe()}catch(t){e=e||[],t instanceof f?e=e.concat(d(t.errors)):e.push(t)}}}if(e)throw new f(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function d(t){return t.reduce(function(t,e){return t.concat(e instanceof f?e.errors:e)},[])}var b=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=h;break;case 1:if(!r){o.destination=h;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new y(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new y(o,r,n,i)}return o}return i(e,t),e.prototype[b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(p),y=function(t){function e(e,r,n,i){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return o(r)?s=r:r&&(s=r.next,n=r.error,i=r.complete,r!==h&&(o((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=n,u._complete=i,u}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=u.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):c(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;c(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};u.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.useDeprecatedSynchronousErrorHandling)throw t;c(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return u.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(c(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function m(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var w=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function _(t){return t}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return g(t)}function g(t){return 0===t.length?_:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var E=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[b])return t[b]()}return t||e||r?new v(t,e,r):new v(h)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||u.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){u.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),m(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=S(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[w]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:g(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=S(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function S(t){if(t||(t=u.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var I=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),T=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(p),j=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return i(e,t),e}(v),N=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[b]=function(){return new j(this)},e.prototype.lift=function(t){var e=new O(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new I;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new I;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new I;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new I;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new I;return this.hasError?(t.error(this.thrownError),p.EMPTY):this.isStopped?(t.complete(),p.EMPTY):(this.observers.push(t),new T(this,t))},e.prototype.asObservable=function(){var t=new E;return t.source=this,t},e.create=function(t,e){return new O(t,e)},e}(E),O=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):p.EMPTY},e}(N),k=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new A(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),A=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var r=this.connection,n=t._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},e}(v),C=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new p).add(this.source.subscribe(new P(this.getSubject(),this))),t.closed&&(this._connection=null,t=p.EMPTY)),t},e.prototype.refCount=function(){return(t=this).lift(new k(t));var t},e}(E),P=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(j),V=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return i(e,t),e.prototype._subscribe=function(t){var e=new p,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new F(r)),e.add(n.subscribe(t)),e},e}(E),F=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(p),Y=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new I;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(N),M=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||new Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(p)),R=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.schedule=function(e,r){return void 0===r&&(r=0),r>0?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(M),q=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),D=function(t){function e(r,n){void 0===n&&(n=q.now);var i=t.call(this,r,function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i(e,t),e.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var r;this.active=!0;do{if(r=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}}},e}(q),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(D),H=new U(R),L=H,W=new E(function(t){return t.complete()});function z(t){return t?function(t){return new E(function(e){return t.schedule(function(){return e.complete()})})}(t):W}function B(t){return t&&"function"==typeof t.schedule}var G,J=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function K(t,e){return new E(function(r){var n=new p,i=0;return n.add(e.schedule(function(){i!==t.length?(r.next(t[i++]),r.closed||n.add(this.schedule())):r.complete()})),n})}function Q(t,e){return e?K(t,e):new E(J(t))}function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return B(r)?(t.pop(),K(t,r)):Q(t)}function Z(t,e){return new E(e?function(r){return e.schedule($,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function $(t){var e=t.error;t.subscriber.error(e)}G||(G={});var tt=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return X(this.value);case"E":return Z(this.error);case"C":return z()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),et=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return i(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new rt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(tt.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(tt.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(tt.createComplete()),this.unsubscribe()},e}(v),rt=function(){return function(t,e){this.notification=t,this.destination=e}}(),nt=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new it(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?e=p.EMPTY:(this.observers.push(t),e=new T(this,t)),i&&t.add(t=new et(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||L).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(N),it=function(){return function(t,e){this.time=t,this.value=e}}(),ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),p.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),p.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(N),st=1,ut=function(){return Promise.resolve()}(),ct={};function ht(t){return t in ct&&(delete ct[t],!0)}var at=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=st++,ct[o]=!0,ut.then(function(){return ht(o)&&i()}),o)));var i,o},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ht(r),e.scheduled=void 0)},e}(M),lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D),ft=new lt(at),pt=ft,dt=new D(M),bt=dt,vt=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return i(e,t),e.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),null!==n&&n>0?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(M),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(D),mt=new yt(vt),wt=mt,_t=function(t){function e(e,r){void 0===e&&(e=xt),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(D),xt=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return i(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(M);function gt(){}function Et(t){return!!t&&(t instanceof E||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var St=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),It=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Tt=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function jt(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Nt(t,e))}}var Nt=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Ot(t,this.project,this.thisArg))},t}(),Ot=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v);function kt(t,e,r){if(e){if(!B(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return kt(t,r).apply(void 0,n).pipe(jt(function(t){return a(t)?e.apply(void 0,t):e(t)}))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i,o=this,s={context:o,subject:i,callbackFunc:t,scheduler:r};return new E(function(n){if(r){var u={args:e,subscriber:n,params:s};return r.schedule(At,0,u)}if(!i){i=new ot;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.next(t.length<=1?t[0]:t),i.complete()}]))}catch(t){m(i)?i.error(t):console.warn(t)}}return i.subscribe(n)})}}function At(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new ot;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(Ct,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function Ct(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Pt(t,e,r){if(e){if(!B(e))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return Pt(t,r).apply(void 0,n).pipe(jt(function(t){return a(t)?e.apply(void 0,t):e(t)}))};r=e}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i={subject:void 0,args:e,callbackFunc:t,scheduler:r,context:this};return new E(function(n){var o=i.context,s=i.subject;if(r)return r.schedule(Vt,0,{params:i,subscriber:n,context:o});if(!s){s=i.subject=new ot;try{t.apply(o,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){m(s)?s.error(t):console.warn(t)}}return s.subscribe(n)})}}function Vt(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new ot;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(Yt,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(Ft,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(Yt,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function Ft(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function Yt(t){var e=t.err;t.subject.error(e)}var Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),Rt=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v);function qt(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Dt=qt(),Ut=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function Ht(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Lt=function(t){if(t&&"function"==typeof t[w])return n=t,function(t){var e=n[w]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Ut(t))return J(t);if(Ht(t))return r=t,function(t){return r.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,c),t};if(t&&"function"==typeof t[Dt])return e=t,function(t){for(var r=e[Dt]();;){var n=void 0;try{n=r.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof r.return&&t.add(function(){r.return&&r.return()}),t};var e,r,n,i=l(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Wt(t,e,r,n,i){if(void 0===i&&(i=new Rt(t,r,n)),!i.closed)return e instanceof E?e.subscribe(i):Lt(e)(i)}var zt={};function Bt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return B(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&a(t[0])&&(t=t[0]),Q(t,n).lift(new Gt(r))}var Gt=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t,this.resultSelector))},t}(),Jt=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return i(e,t),e.prototype._next=function(t){this.values.push(zt),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(Wt(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===zt?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Mt);function Kt(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[w]}(t))return function(t,e){return new E(function(r){var n=new p;return n.add(e.schedule(function(){var i=t[w]();n.add(i.subscribe({next:function(t){n.add(e.schedule(function(){return r.next(t)}))},error:function(t){n.add(e.schedule(function(){return r.error(t)}))},complete:function(){n.add(e.schedule(function(){return r.complete()}))}}))})),n})}(t,e);if(Ht(t))return function(t,e){return new E(function(r){var n=new p;return n.add(e.schedule(function(){return t.then(function(t){n.add(e.schedule(function(){r.next(t),n.add(e.schedule(function(){return r.complete()}))}))},function(t){n.add(e.schedule(function(){return r.error(t)}))})})),n})}(t,e);if(Ut(t))return K(t,e);if(function(t){return t&&"function"==typeof t[Dt]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new E(function(r){var n,i=new p;return i.add(function(){n&&"function"==typeof n.return&&n.return()}),i.add(e.schedule(function(){n=t[Dt](),i.add(e.schedule(function(){if(!r.closed){var t,e;try{var i=n.next();t=i.value,e=i.done}catch(t){return void r.error(t)}e?r.complete():(r.next(t),this.schedule())}}))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function Qt(t,e){return e?Kt(t,e):t instanceof E?t:new E(Lt(t))}var Xt=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function $t(t,e){if(!e.closed){if(t instanceof E)return t.subscribe(e);var r;try{r=Lt(t)(e)}catch(t){e.error(t)}return r}}function te(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(te(function(r,n){return Qt(t(r,n)).pipe(jt(function(t,i){return e(r,t,n,i)}))},r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new ee(t,r))})}var ee=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new re(t,this.project,this.concurrent))},t}(),re=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new Xt(this),r=this.destination;r.add(e);var n=$t(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Zt);function ne(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),te(_,t)}function ie(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ne(1)(X.apply(void 0,t))}function oe(t){return new E(function(e){var r;try{r=t()}catch(t){return void e.error(t)}return(r?Qt(r):z()).subscribe(e)})}function se(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(a(r))return ue(r,null);if(l(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return ue(n.map(function(t){return r[t]}),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return ue(t=1===t.length&&a(t[0])?t[0]:t,null).pipe(jt(function(t){return i.apply(void 0,t)}))}return ue(t,null)}function ue(t,e){return new E(function(r){var n=t.length;if(0!==n)for(var i=new Array(n),o=0,s=0,u=function(u){var c=Qt(t[u]),h=!1;r.add(c.subscribe({next:function(t){h||(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce(function(t,e,r){return t[e]=i[r],t},{}):i),r.complete())}}))},c=0;c<n;c++)u(c);else r.complete()})}function ce(t,e,r,n){return o(r)&&(n=r,r=void 0),n?ce(t,e,r).pipe(jt(function(t){return a(t)?n.apply(void 0,t):n(t)})):new E(function(n){he(t,e,function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)},n,r)})}function he(t,e,r,n,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,r,i),o=function(){return s.removeEventListener(e,r,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var u=t;t.on(e,r),o=function(){return u.off(e,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var c=t;t.addListener(e,r),o=function(){return c.removeListener(e,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var h=0,a=t.length;h<a;h++)he(t[h],e,r,n,i)}n.add(o)}function ae(t,e,r){return r?ae(t,e).pipe(jt(function(t){return a(t)?r.apply(void 0,t):r(t)})):new E(function(r){var n,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(1===t.length?t[0]:t)};try{n=t(i)}catch(t){return void r.error(t)}if(o(e))return function(){return e(i,n)}})}function le(t,e,r,n,i){var o,s;if(1==arguments.length){var u=t;s=u.initialState,e=u.condition,r=u.iterate,o=u.resultSelector||_,i=u.scheduler}else void 0===n||B(n)?(s=t,o=_,i=n):(s=t,o=n);return new E(function(t){var n=s;if(i)return i.schedule(fe,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){return void t.error(e)}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){return void t.error(e)}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){return void t.error(e)}}})}function fe(t){var e=t.subscriber,r=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(r){var n=void 0;try{n=r(t.state)}catch(t){return void e.error(t)}if(!n)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function pe(t,e,r){return void 0===e&&(e=W),void 0===r&&(r=W),oe(function(){return t()?e:r})}function de(t){return!a(t)&&t-parseFloat(t)+1>=0}function be(t,e){return void 0===t&&(t=0),void 0===e&&(e=bt),(!de(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=bt),new E(function(r){return r.add(e.schedule(ve,t,{subscriber:r,counter:0,period:t})),r})}function ve(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return B(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof E?t[0]:ne(r)(Q(t,n))}var me=new E(gt);function we(){return me}function _e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return W;var r=t[0],n=t.slice(1);return 1===t.length&&a(r)?_e.apply(void 0,r):new E(function(t){var e=function(){return t.add(_e.apply(void 0,n).subscribe(t))};return Qt(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function xe(t,e){return new E(e?function(r){var n=Object.keys(t),i=new p;return i.add(e.schedule(ge,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function ge(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function Ee(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}function Se(t,e){return function(r){return r.lift(new Ie(t,e))}}var Ie=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Te(t,this.predicate,this.thisArg))},t}(),Te=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(v);function je(t,e,r){return[Se(e,r)(new E(Lt(t))),Se(Ee(e,r))(new E(Lt(t)))]}function Ne(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!a(t[0]))return t[0];t=t[0]}return Q(t,void 0).lift(new Oe)}var Oe=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new ke(t))},t}(),ke=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=Wt(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(Mt);function Ae(t,e,r){return void 0===t&&(t=0),new E(function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(Ce,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}})}function Ce(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function Pe(t,e,r){void 0===t&&(t=0);var n=-1;return de(e)?n=Number(e)<1?1:Number(e):B(e)&&(r=e),B(r)||(r=bt),new E(function(e){var i=de(t)?t:+t-r.now();return r.schedule(Ve,i,{index:0,period:n,subscriber:e})})}function Ve(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function Fe(t,e){return new E(function(r){var n,i;try{n=t()}catch(t){return void r.error(t)}try{i=e(n)}catch(t){return void r.error(t)}var o=(i?Qt(i):W).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}})}function Ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),Q(t,void 0).lift(new Me(r))}var Me=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Re(t,this.resultSelector))},t}(),Re=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return i(e,t),e.prototype._next=function(t){var e=this.iterators;a(t)?e.push(new De(t)):"function"==typeof t[Dt]?e.push(new qe(t[Dt]())):e.push(new Ue(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++)if("function"==typeof(s=t[n]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(n=0;n<e;n++){var s,u=(s=t[n]).next();if(s.hasCompleted()&&(i=!0),u.done)return void r.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),i&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(v),qe=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),De=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[Dt]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),Ue=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return i(e,t),e.prototype[Dt]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return $t(this.observable,new Xt(this))},e}(Zt)}}]);
@@ -1,18 +1,3 @@
1
- /*!
2
- * decimal.js v10.6.0
3
- * An arbitrary-precision Decimal type for JavaScript.
4
- * https://github.com/MikeMcl/decimal.js
5
- * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
6
- * MIT Licence
7
- */
8
-
9
- /*!
10
- * Determine if an object is a Buffer
11
- *
12
- * @author Feross Aboukhadijeh <https://feross.org>
13
- * @license MIT
14
- */
15
-
16
1
  /*! *****************************************************************************
17
2
  Copyright (c) Microsoft Corporation.
18
3
 
@@ -27,25 +12,3 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
13
  PERFORMANCE OF THIS SOFTWARE.
29
14
  ***************************************************************************** */
30
-
31
- /**
32
- * @remix-run/router v1.23.2
33
- *
34
- * Copyright (c) Remix Software Inc.
35
- *
36
- * This source code is licensed under the MIT license found in the
37
- * LICENSE.md file in the root directory of this source tree.
38
- *
39
- * @license MIT
40
- */
41
-
42
- /**
43
- * React Router v6.30.3
44
- *
45
- * Copyright (c) Remix Software Inc.
46
- *
47
- * This source code is licensed under the MIT license found in the
48
- * LICENSE.md file in the root directory of this source tree.
49
- *
50
- * @license MIT
51
- */
package/dist/197.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[197],{1197:e=>{e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"የማዋቀር ስርዓት","configSystemExplainer":"ከዚህ በታች የሚታየው ሰላምታ የሚመራው በማዋቀር ስርዓቱ ነው። የማዋቀር ባህሪያቱን ለመቀየር በአሳሹ ውስጥ ያለውን የስፓነር አዶ ጠቅ ያድርጉ የአስፈፃሚ መሳሪያዎች ፓነልን ለመሳብ። በመቀጠል በ <4>የፍለጋ ውቅረት</4> ግቤት ውስጥ <2>አብነት</2>ን ይተይቡ። ይህ ለዚህ ሞጁል ተዛማጅ የሆኑትን ብቻ ለማሳየት የማዋቀሪያ ባህሪያትን ማጣራት አለበት. በUI ውስጥ የሚንፀባረቁትን ለውጦች ለማየት የእነዚህን ንብረቶች እሴቶች መለወጥ እና <6>አስቀምጥ</6>ን ጠቅ ማድረግ ይችላሉ","connect":"ተገናኝ","connectExplainer":"ከማህበረሰቡ ጋር ይገናኙ","dataFetching":"ውሂብ ማምጣት","designDocs":"የንድፍ መመሪያ","designDocsExplainer":"የ O3 ንድፍ ሰነድ ያንብቡ","explainer":"የሚከተሉት ምሳሌዎች የ O3 ማዕቀፍ አንዳንድ ቁልፍ ባህሪያትን ያሳያሉ","extensionExplainer":"አንዳንድ ባለቀለም ሳጥኖች እዚህ አሉ። በአንድ ማስገቢያ ውስጥ እንደ ቅጥያ ስለተያያዙ፣ አስተዳዳሪው ውቅረትን ተጠቅሞ የሚታዩትን ሳጥኖች መለወጥ ይችላል። እነዚህ ሳጥኖች በዚህ ሞጁል ውስጥ ይገለጻሉ, ነገር ግን በተለየ ሞጁል ውስጥ ቢሆኑም እንኳ ከዚህ ማስገቢያ ጋር ማያያዝ ይችላሉ","extensionSystem":"የኤክስቴንሽን ስርዓት","formalGreeting":"ሀሎ","frontendDocs":"የፊት-መጨረሻ መመሪያ","getPatient":"የተሰየመ ታካሚ ያግኙ","getStarted":"እንጀምር","getStartedExplainer":"ከዚህ አብነት የፊት ለፊት ሞጁል ይፍጠሩ","learnExplainer":"የ O3 ማዕቀፍን እንዴት መጠቀም እንደሚችሉ ይወቁ","loading":"በመጫን ላይ","patientGetterExplainer":"በሽተኛውን ከኤፒአይ ለማውጣት ከታች ያለውን አዝራር ጠቅ ያድርጉ","resources":"መርጃዎች","usefulLinks":"ከዚህ በታች ወደ ጠቃሚ ሀብቶች አንዳንድ አገናኞች አሉ","welcomeText":"ወደ O3 አብነት መተግበሪያ እንኳን በደህና መጡ"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[197],{1197(e){e.exports=JSON.parse('{"casualGreeting":"hey","configSystem":"የማዋቀር ስርዓት","configSystemExplainer":"ከዚህ በታች የሚታየው ሰላምታ የሚመራው በማዋቀር ስርዓቱ ነው። የማዋቀር ባህሪያቱን ለመቀየር በአሳሹ ውስጥ ያለውን የስፓነር አዶ ጠቅ ያድርጉ የአስፈፃሚ መሳሪያዎች ፓነልን ለመሳብ። በመቀጠል በ <4>የፍለጋ ውቅረት</4> ግቤት ውስጥ <2>አብነት</2>ን ይተይቡ። ይህ ለዚህ ሞጁል ተዛማጅ የሆኑትን ብቻ ለማሳየት የማዋቀሪያ ባህሪያትን ማጣራት አለበት. በUI ውስጥ የሚንፀባረቁትን ለውጦች ለማየት የእነዚህን ንብረቶች እሴቶች መለወጥ እና <6>አስቀምጥ</6>ን ጠቅ ማድረግ ይችላሉ","connect":"ተገናኝ","connectExplainer":"ከማህበረሰቡ ጋር ይገናኙ","dataFetching":"ውሂብ ማምጣት","designDocs":"የንድፍ መመሪያ","designDocsExplainer":"የ O3 ንድፍ ሰነድ ያንብቡ","explainer":"የሚከተሉት ምሳሌዎች የ O3 ማዕቀፍ አንዳንድ ቁልፍ ባህሪያትን ያሳያሉ","extensionExplainer":"አንዳንድ ባለቀለም ሳጥኖች እዚህ አሉ። በአንድ ማስገቢያ ውስጥ እንደ ቅጥያ ስለተያያዙ፣ አስተዳዳሪው ውቅረትን ተጠቅሞ የሚታዩትን ሳጥኖች መለወጥ ይችላል። እነዚህ ሳጥኖች በዚህ ሞጁል ውስጥ ይገለጻሉ, ነገር ግን በተለየ ሞጁል ውስጥ ቢሆኑም እንኳ ከዚህ ማስገቢያ ጋር ማያያዝ ይችላሉ","extensionSystem":"የኤክስቴንሽን ስርዓት","formalGreeting":"ሀሎ","frontendDocs":"የፊት-መጨረሻ መመሪያ","getPatient":"የተሰየመ ታካሚ ያግኙ","getStarted":"እንጀምር","getStartedExplainer":"ከዚህ አብነት የፊት ለፊት ሞጁል ይፍጠሩ","learnExplainer":"የ O3 ማዕቀፍን እንዴት መጠቀም እንደሚችሉ ይወቁ","loading":"በመጫን ላይ","patientGetterExplainer":"በሽተኛውን ከኤፒአይ ለማውጣት ከታች ያለውን አዝራር ጠቅ ያድርጉ","resources":"መርጃዎች","usefulLinks":"ከዚህ በታች ወደ ጠቃሚ ሀብቶች አንዳንድ አገናኞች አሉ","welcomeText":"ወደ O3 አብነት መተግበሪያ እንኳን በደህና መጡ"}')}}]);
package/dist/225.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[225,606],{4225:(e,c,a)=>{a.r(c),a.d(c,{default:()=>i,immutable:()=>r});var s=a(2177),t=a(4993);const r=e=>(c,a,s)=>(s.revalidateOnFocus=!1,s.revalidateIfStale=!1,s.revalidateOnReconnect=!1,s.refreshInterval=0,e(c,a,s)),i=(0,t.Ht)(s.Ay,r)}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[225],{4225(e,n,t){t.r(n),t.d(n,{default:()=>c,immutable:()=>o});var r=t(6072),i=t(9888),s=t(8465);const a=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)}),d={dedupe:!0};s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig});const u=(0,s.withArgs)((e,n,t)=>{const{cache:u,compare:o,suspense:c,fallbackData:l,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:R,keepPreviousData:h}=t,[_,p,U,T]=s.SWRGlobalState.get(u),[V,m]=(0,s.serialize)(e),b=(0,r.useRef)(!1),C=(0,r.useRef)(!1),S=(0,r.useRef)(V),L=(0,r.useRef)(n),O=(0,r.useRef)(t),I=()=>O.current,k=()=>I().isVisible()&&I().isOnline(),[w,D,y,A]=(0,s.createCacheHelper)(u,V),N=(0,r.useRef)({}).current,F=(0,s.isUndefined)(l)?t.fallback[V]:l,P=(e,n)=>{for(const t in N){const r=t;if("data"===r){if(!o(e[r],n[r])){if(!(0,s.isUndefined)(e[r]))return!1;if(!o(z,n[r]))return!1}}else if(n[r]!==e[r])return!1}return!0},M=(0,r.useMemo)(()=>{const e=!!V&&!!n&&((0,s.isUndefined)(f)?!I().isPaused()&&!c&&(!!(0,s.isUndefined)(E)||E):f),t=n=>{const t=(0,s.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},r=w(),i=A(),a=t(r),d=r===i?a:t(i);let u=a;return[()=>{const e=t(w());return P(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>d]},[u,V]),W=(0,i.useSyncExternalStore)((0,r.useCallback)(e=>y(V,(n,t)=>{P(t,n)||e()}),[u,V]),M[0],M[1]),j=!b.current,G=_[V]&&_[V].length>0,H=W.data,Y=(0,s.isUndefined)(H)?F:H,q=W.error,x=(0,r.useRef)(Y),z=h?(0,s.isUndefined)(H)?x.current:H:Y,B=!(G&&!(0,s.isUndefined)(q))&&(j&&!(0,s.isUndefined)(f)?f:!I().isPaused()&&(c?!(0,s.isUndefined)(Y)&&E:(0,s.isUndefined)(Y)||E)),J=!!(V&&n&&j&&B),K=(0,s.isUndefined)(W.isValidating)?J:W.isValidating,Q=(0,s.isUndefined)(W.isLoading)?J:W.isLoading,X=(0,r.useCallback)(async e=>{const n=L.current;if(!V||!n||C.current||I().isPaused())return!1;let r,i,a=!0;const d=e||{},u=!U[V]||!d.dedupe,c=()=>s.IS_REACT_LEGACY?!C.current&&V===S.current&&b.current:V===S.current,l={isValidating:!1,isLoading:!1},f=()=>{D(l)},E=()=>{const e=U[V];e&&e[1]===i&&delete U[V]},g={isValidating:!0};(0,s.isUndefined)(w().data)&&(g.isLoading=!0);try{if(u&&(D(g),t.loadingTimeout&&(0,s.isUndefined)(w().data)&&setTimeout(()=>{a&&c()&&I().onLoadingSlow(V,t)},t.loadingTimeout),U[V]=[n(m),(0,s.getTimestamp)()]),[r,i]=U[V],r=await r,u&&setTimeout(E,t.dedupingInterval),!U[V]||U[V][1]!==i)return u&&c()&&I().onDiscarded(V),!1;l.error=s.UNDEFINED;const e=p[V];if(!(0,s.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),u&&c()&&I().onDiscarded(V),!1;const d=w().data;l.data=o(d,r)?d:r,u&&c()&&I().onSuccess(r,V,t)}catch(e){E();const n=I(),{shouldRetryOnError:t}=n;n.isPaused()||(l.error=e,u&&c()&&(n.onError(e,V,n),(!0===t||(0,s.isFunction)(t)&&t(e))&&(I().revalidateOnFocus&&I().revalidateOnReconnect&&!k()||n.onErrorRetry(e,V,n,e=>{const n=_[V];n&&n[0]&&n[0](s.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(d.retryCount||0)+1,dedupe:!0}))))}return a=!1,f(),!0},[V,u]),Z=(0,r.useCallback)((...e)=>(0,s.internalMutate)(u,S.current,...e),[]);if((0,s.useIsomorphicLayoutEffect)(()=>{L.current=n,O.current=t,(0,s.isUndefined)(H)||(x.current=H)}),(0,s.useIsomorphicLayoutEffect)(()=>{if(!V)return;const e=X.bind(s.UNDEFINED,d);let n=0;const t=(0,s.subscribeCallback)(V,_,(t,r={})=>{if(t==s.revalidateEvents.FOCUS_EVENT){const t=Date.now();I().revalidateOnFocus&&t>n&&k()&&(n=t+I().focusThrottleInterval,e())}else if(t==s.revalidateEvents.RECONNECT_EVENT)I().revalidateOnReconnect&&k()&&e();else{if(t==s.revalidateEvents.MUTATE_EVENT)return X();if(t==s.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(r)}});return C.current=!1,S.current=V,b.current=!0,D({_k:m}),B&&((0,s.isUndefined)(Y)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{C.current=!0,t()}},[V]),(0,s.useIsomorphicLayoutEffect)(()=>{let e;function n(){const n=(0,s.isFunction)(g)?g(w().data):g;n&&-1!==e&&(e=setTimeout(t,n))}function t(){w().error||!v&&!I().isVisible()||!R&&!I().isOnline()?n():X(d).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}},[g,v,R,V]),(0,r.useDebugValue)(z),c&&(0,s.isUndefined)(Y)&&V){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");L.current=n,O.current=t,C.current=!1;const e=T[V];if(!(0,s.isUndefined)(e)){const n=Z(e);a(n)}if(!(0,s.isUndefined)(q))throw q;{const e=X(d);(0,s.isUndefined)(z)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:Z,get data(){return N.data=!0,z},get error(){return N.error=!0,q},get isValidating(){return N.isValidating=!0,K},get isLoading(){return N.isLoading=!0,Q}}}),o=e=>(n,t,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(n,t,r)),c=(0,s.withMiddleware)(u,o)}}]);
package/dist/282.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 282.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[282],{282(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>q,Await:()=>tr,BrowserRouter:()=>Or,Form:()=>Wr,HashRouter:()=>Fr,Link:()=>zr,MemoryRouter:()=>Yt,NavLink:()=>Hr,Navigate:()=>Xt,NavigationType:()=>n,Outlet:()=>Gt,Route:()=>Qt,Router:()=>Zt,RouterProvider:()=>Ur,Routes:()=>er,ScrollRestoration:()=>Kr,UNSAFE_DataRouterContext:()=>nt,UNSAFE_DataRouterStateContext:()=>at,UNSAFE_ErrorResponseImpl:()=>te,UNSAFE_FetchersContext:()=>Lr,UNSAFE_LocationContext:()=>st,UNSAFE_NavigationContext:()=>it,UNSAFE_RouteContext:()=>lt,UNSAFE_ViewTransitionContext:()=>Cr,UNSAFE_useRouteId:()=>Mt,UNSAFE_useScrollRestoration:()=>on,createBrowserRouter:()=>Sr,createHashRouter:()=>Rr,createMemoryRouter:()=>ur,createPath:()=>y,createRoutesFromChildren:()=>ir,createRoutesFromElements:()=>ir,createSearchParams:()=>mr,defer:()=>G,generatePath:()=>A,isRouteErrorResponse:()=>re,json:()=>J,matchPath:()=>U,matchRoutes:()=>R,parsePath:()=>g,redirect:()=>Q,redirectDocument:()=>Z,renderMatches:()=>sr,replace:()=>ee,resolvePath:()=>F,unstable_HistoryRouter:()=>Nr,unstable_usePrompt:()=>ln,useActionData:()=>It,useAsyncError:()=>Wt,useAsyncValue:()=>Ht,useBeforeUnload:()=>sn,useBlocker:()=>$t,useFetcher:()=>tn,useFetchers:()=>rn,useFormAction:()=>en,useHref:()=>ct,useInRouterContext:()=>dt,useLinkClickHandler:()=>Yr,useLoaderData:()=>Nt,useLocation:()=>ht,useMatch:()=>pt,useMatches:()=>Ft,useNavigate:()=>vt,useNavigation:()=>jt,useNavigationType:()=>ft,useOutlet:()=>bt,useOutletContext:()=>gt,useParams:()=>wt,useResolvedPath:()=>Et,useRevalidator:()=>Ot,useRouteError:()=>zt,useRouteLoaderData:()=>Bt,useRoutes:()=>St,useSearchParams:()=>Xr,useSubmit:()=>Zr,useViewTransitionState:()=>un});var n,a=r(6072),o=r.t(a,2),i=r(961),s=r.t(i,2);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const u="popstate";function c(e){void 0===e&&(e={});let t,{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>d(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),s=n.Pop,l=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[i]}function d(e,r,n){void 0===r&&(r=null);let a=v(t?c().pathname:"/",e,r,n);return p("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function h(e){return"string"==typeof e?e:y(e)}return{get index(){return i},get action(){return s},get location(){return c()},createHref:h,createURL:e=>new URL(h(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?g(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){s=n.Push;let a=d(e,r);i+=1,t.splice(i,t.length,a),o&&l&&l({action:s,location:a,delta:1})},replace(e,r){s=n.Replace;let a=d(e,r);t[i]=a,o&&l&&l({action:s,location:a,delta:0})},go(e){s=n.Pop;let r=u(i+e),a=t[r];i=r,l&&l({action:s,location:a,delta:e})},listen:e=>(l=e,()=>{l=null})}}function d(e){return void 0===e&&(e={}),b(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return v("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:y(t)},null,e)}function h(e){return void 0===e&&(e={}),b(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=g(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),v("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:y(t))},function(e,t){p("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function f(e,t){if(!1===e||null==e)throw new Error(t)}function p(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function v(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function y(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function g(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function b(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,s=o.history,c=n.Pop,d=null,h=p();function p(){return(s.state||{idx:null}).idx}function g(){c=n.Pop;let e=p(),t=null==e?null:e-h;h=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:y(e);return r=r.replace(/ $/,"%20"),f(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==h&&(h=0,s.replaceState(l({},s.state,{idx:h}),""));let w={get action(){return c},get location(){return e(o,s)},listen(e){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(u,g),d=e,()=>{o.removeEventListener(u,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=v(w.location,e,t);r&&r(a,e),h=p()+1;let l=m(a,h),u=w.createHref(a);try{s.pushState(l,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(u)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=v(w.location,e,t);r&&r(a,e),h=p();let o=m(a,h),l=w.createHref(a);s.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>s.go(e)};return w}var w;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(w||(w={}));const E=new Set(["lazy","caseSensitive","path","id","index","children"]);function S(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(f(!0!==e.index||!e.children,"Cannot specify children on an index route"),f(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=S(e.children,t,o,n)),r}})}function R(e,t,r){return void 0===r&&(r="/"),x(e,t,r,!1)}function x(e,t,r,n){let a=j(("string"==typeof t?g(t):t).pathname||"/",r);if(null==a)return null;let o=C(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let i=null;for(let e=0;null==i&&e<o.length;++e){let t=M(a);i=_(o[e],t,n)}return i}function D(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function C(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,o)=>{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(f(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=W([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),C(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:T(s,e.index),routesMeta:l})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of L(e.path))a(e,t,r);else a(e,t)}),t}function L(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=L(n.join("/")),s=[];return s.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&s.push(...i),s.map(t=>e.startsWith("/")&&""===t?"/":t)}const P=/^:[\w-]+$/,k=e=>"*"===e;function T(e,t){let r=e.split("/"),n=r.length;return r.some(k)&&(n+=-2),t&&(n+=2),r.filter(e=>!k(e)).reduce((e,t)=>e+(P.test(t)?3:""===t?1:10),n)}function _(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let s=n[e],l=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u),d=s.route;if(!c&&l&&r&&!n[n.length-1].route.index&&(c=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:W([o,c.pathname]),pathnameBase:K(W([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=W([o,c.pathnameBase]))}return i}function A(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(p(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return f("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function U(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),p("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=s[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function M(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return p(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function j(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}const O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function F(e,t){void 0===t&&(t="/");let r,{pathname:n,search:a="",hash:o=""}="string"==typeof e?g(e):e;if(n)if(i=n,O.test(i))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),p(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+n)}r=n.startsWith("/")?N(n.substring(1),"/"):N(n,t)}else r=t;var i;return{pathname:r,search:$(a),hash:V(o)}}function N(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function B(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function z(e,t){let r=I(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function H(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=g(e):(a=l({},e),f(!a.pathname||!a.pathname.includes("?"),B("?","pathname","search",a)),f(!a.pathname||!a.pathname.includes("#"),B("#","pathname","hash",a)),f(!a.search||!a.search.includes("#"),B("#","search","hash",a)));let o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=F(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return u.pathname.endsWith("/")||!c&&!d||(u.pathname+="/"),u}const W=e=>e.join("/").replace(/\/\/+/g,"/"),K=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",V=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",J=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class q extends Error{}class Y{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],f(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return f(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:X(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function X(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const G=function(e,t){return void 0===t&&(t={}),new Y(e,"number"==typeof t?{status:t}:t)},Q=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},Z=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},ee=(e,t)=>{let r=Q(e,t);return r.headers.set("X-Remix-Replace","true"),r};class te{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function re(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const ne=["post","put","patch","delete"],ae=new Set(ne),oe=["get",...ne],ie=new Set(oe),se=new Set([301,302,303,307,308]),le=new Set([307,308]),ue={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ce={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},de={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},he=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fe=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),pe="remix-router-transitions";function me(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,a=!r;let o;if(f(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=fe;let i,s,u,c={},d=S(e.routes,o,void 0,c),h=e.basename||"/",m=e.dataStrategy||De,y=e.patchRoutesOnNavigation,g=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,C=new Set,L=null,P=null,k=null,T=null!=e.hydrationData,_=R(d,e.history.location,h),A=!1,U=null;if(null==_&&!y){let t=Fe(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=Oe(d);_=r,U={[n.id]:t}}if(_&&!e.hydrationData&&ct(_,d,e.history.location.pathname).active&&(_=null),_)if(_.some(e=>e.route.lazy))s=!1;else if(_.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=_.findIndex(e=>void 0!==r[e.route.id]);s=_.slice(0,e+1).every(e=>!we(e.route,t,r))}else s=_.every(e=>!we(e.route,t,r))}else s=null!=e.hydrationData;else s=!0;else if(s=!1,_=[],g.v7_partialHydration){let t=ct(null,d,e.history.location.pathname);t.active&&t.matches&&(A=!0,_=t.matches)}let M,O,F={historyAction:e.history.action,location:e.history.location,matches:_,initialized:s,navigation:ue,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||U,fetchers:new Map,blockers:new Map},N=n.Pop,B=!1,I=!1,z=new Map,H=null,W=!1,K=!1,$=[],V=new Set,J=new Map,q=0,Y=-1,X=new Map,G=new Set,Q=new Map,Z=new Map,ee=new Set,te=new Map,ne=new Map;function ae(e,t){void 0===t&&(t={}),F=l({},F,e);let r=[],n=[];g.v7_fetcherPersist&&F.fetchers.forEach((e,t)=>{"idle"===e.state&&(ee.has(t)?n.push(t):r.push(t))}),ee.forEach(e=>{F.fetchers.has(e)||J.has(e)||n.push(e)}),[...C].forEach(e=>e(F,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>F.fetchers.delete(e)),n.forEach(e=>Be(e))):n.forEach(e=>ee.delete(e))}function oe(t,r,a){var o,s;let u,{flushSync:c}=void 0===a?{}:a,h=null!=F.actionData&&null!=F.navigation.formMethod&&Ve(F.navigation.formMethod)&&"loading"===F.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:h?F.actionData:null;let f=r.loaderData?Ue(F.loaderData,r.loaderData,r.matches||[],r.errors):F.loaderData,p=F.blockers;p.size>0&&(p=new Map(p),p.forEach((e,t)=>p.set(t,de)));let m,v=!0===B||null!=F.navigation.formMethod&&Ve(F.navigation.formMethod)&&!0!==(null==(s=t.state)?void 0:s._isRedirect);if(i&&(d=i,i=void 0),W||N===n.Pop||(N===n.Push?e.history.push(t,t.state):N===n.Replace&&e.history.replace(t,t.state)),N===n.Pop){let e=z.get(F.location.pathname);e&&e.has(t.pathname)?m={currentLocation:F.location,nextLocation:t}:z.has(t.pathname)&&(m={currentLocation:t,nextLocation:F.location})}else if(I){let e=z.get(F.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(F.location.pathname,e)),m={currentLocation:F.location,nextLocation:t}}ae(l({},r,{actionData:u,loaderData:f,historyAction:N,location:t,initialized:!0,navigation:ue,revalidation:"idle",restoreScrollPosition:ut(t,r.matches||F.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),N=n.Pop,B=!1,I=!1,W=!1,K=!1,$=[]}async function ie(t,r,a){M&&M.abort(),M=null,N=t,W=!0===(a&&a.startUninterruptedRevalidation),function(e,t){if(L&&k){let r=lt(e,t);L[r]=k()}}(F.location,F.matches),B=!0===(a&&a.preventScrollReset),I=!0===(a&&a.enableViewTransition);let o=i||d,s=a&&a.overrideNavigation,u=null!=a&&a.initialHydration&&F.matches&&F.matches.length>0&&!A?F.matches:R(o,r,h),c=!0===(a&&a.flushSync);if(u&&F.initialized&&!K&&(f=F.location,p=r,f.pathname===p.pathname&&f.search===p.search&&(""===f.hash?""!==p.hash:f.hash===p.hash||""!==p.hash))&&!(a&&a.submission&&Ve(a.submission.formMethod)))return void oe(r,{matches:u},{flushSync:c});var f,p;let m=ct(u,o,r.pathname);if(m.active&&m.matches&&(u=m.matches),!u){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return void oe(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c})}M=new AbortController;let v,y=ke(e.history,r,M.signal,a&&a.submission);if(a&&a.pendingError)v=[je(u).route.id,{type:w.error,error:a.pendingError}];else if(a&&a.submission&&Ve(a.submission.formMethod)){let t=await async function(t,r,a,o,i,s){void 0===s&&(s={}),Se();let l,u=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(r,a);if(ae({navigation:u},{flushSync:!0===s.flushSync}),i){let e=await dt(o,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=je(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:w.error,error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:n}=it(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:w.error,error:t}]}}o=e.matches}let c=Ge(o,r);if(c.route.action||c.route.lazy){if(l=(await ge("action",F,t,[c],o,null))[c.route.id],t.signal.aborted)return{shortCircuited:!0}}else l={type:w.error,error:Fe(405,{method:t.method,pathname:r.pathname,routeId:c.route.id})};if(We(l)){let r;return r=s&&null!=s.replace?s.replace:Pe(l.response.headers.get("Location"),new URL(t.url),h,e.history)===F.location.pathname+F.location.search,await me(t,l,!0,{submission:a,replace:r}),{shortCircuited:!0}}if(ze(l))throw Fe(400,{type:"defer-action"});if(He(l)){let e=je(o,c.route.id);return!0!==(s&&s.replace)&&(N=n.Push),{matches:o,pendingActionResult:[e.route.id,l]}}return{matches:o,pendingActionResult:[c.route.id,l]}}(y,r,a.submission,u,m.active,{replace:a.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(He(n)&&re(n.error)&&404===n.error.status)return M=null,void oe(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}u=t.matches||u,v=t.pendingActionResult,s=Ze(r,a.submission),c=!1,m.active=!1,y=ke(e.history,y.url,y.signal)}let{shortCircuited:b,matches:E,loaderData:S,errors:x}=await async function(t,r,n,a,o,s,u,c,f,p,m){let v=o||Ze(r,s),y=s||u||Qe(v),b=!(W||g.v7_partialHydration&&f);if(a){if(b){let e=se(m);ae(l({navigation:v},void 0!==e?{actionData:e}:{}),{flushSync:p})}let e=await dt(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=je(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=it(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}n=e.matches}let w=i||d,[E,S]=be(e.history,F,n,y,r,g.v7_partialHydration&&!0===f,g.v7_skipActionErrorRevalidation,K,$,V,ee,Q,G,w,h,m);if(st(e=>!(n&&n.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),Y=++q,0===E.length&&0===S.length){let e=Xe();return oe(r,l({matches:n,loaderData:{},errors:m&&He(m[1])?{[m[0]]:m[1].error}:null},Me(m),e?{fetchers:new Map(F.fetchers)}:{}),{flushSync:p}),{shortCircuited:!0}}if(b){let e={};if(!a){e.navigation=v;let t=se(m);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=F.fetchers.get(e.key),r=et(void 0,t?t.data:void 0);F.fetchers.set(e.key,r)}),new Map(F.fetchers)}(S)),ae(e,{flushSync:p})}S.forEach(e=>{Ke(e.key),e.controller&&J.set(e.key,e.controller)});let R=()=>S.forEach(e=>Ke(e.key));M&&M.signal.addEventListener("abort",R);let{loaderResults:x,fetcherResults:D}=await Ee(F,n,E,S,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",R),S.forEach(e=>J.delete(e.key));let C=Ne(x);if(C)return await me(t,C.result,!0,{replace:c}),{shortCircuited:!0};if(C=Ne(D),C)return G.add(C.key),await me(t,C.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:P}=Ae(F,n,x,m,S,D,te);te.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&te.delete(t)})}),g.v7_partialHydration&&f&&F.errors&&(P=l({},F.errors,P));let k=Xe(),T=rt(Y),_=k||T||S.length>0;return l({matches:n,loaderData:L,errors:P},_?{fetchers:new Map(F.fetchers)}:{})}(y,r,u,m.active,s,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,c,v);b||(M=null,oe(r,l({matches:E||u},Me(v),{loaderData:S,errors:x})))}function se(e){return e&&!He(e[1])?{[e[0]]:e[1].data}:F.actionData?0===Object.keys(F.actionData).length?null:F.actionData:void 0}async function me(a,o,i,s){let{submission:u,fetcherSubmission:c,preventScrollReset:d,replace:p}=void 0===s?{}:s;o.response.headers.has("X-Remix-Revalidate")&&(K=!0);let m=o.response.headers.get("Location");f(m,"Expected a Location header on the redirect Response"),m=Pe(m,new URL(a.url),h,e.history);let y=v(F.location,m,{_isRedirect:!0});if(r){let r=!1;if(o.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(he.test(m)){const n=e.history.createURL(m);r=n.origin!==t.location.origin||null==j(n.pathname,h)}if(r)return void(p?t.location.replace(m):t.location.assign(m))}M=null;let g=!0===p||o.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:b,formAction:w,formEncType:E}=F.navigation;!u&&!c&&b&&w&&E&&(u=Qe(F.navigation));let S=u||c;if(le.has(o.response.status)&&S&&Ve(S.formMethod))await ie(g,y,{submission:l({},S,{formAction:m}),preventScrollReset:d||B,enableViewTransition:i?I:void 0});else{let e=Ze(y,u);await ie(g,y,{overrideNavigation:e,fetcherSubmission:c,preventScrollReset:d||B,enableViewTransition:i?I:void 0})}}async function ge(e,t,r,n,a,i){let s,u={};try{s=await async function(e,t,r,n,a,o,i,s,u,c){let d=o.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];f(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;p(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||E.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}(e.route,u,s):void 0),h=o.map((e,r)=>{let o=d[r],i=a.some(t=>t.route.id===e.route.id);return l({},e,{shouldLoad:i,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?async function(e,t,r,n,a,o){let i,s,l=n=>{let i,l=new Promise((e,t)=>i=t);s=()=>i(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]),c=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([c,l])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else{if(await n,a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Fe(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:w.data,result:void 0}}i=await l(a)}else{if(!a){let e=new URL(t.url);throw Fe(404,{pathname:e.pathname+e.search})}i=await l(a)}f(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:w.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return i}(t,n,e,o,r,c):Promise.resolve({type:w.data,result:void 0}))})}),m=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:c});try{await Promise.all(d)}catch(e){}return m}(m,e,0,r,n,a,i,c,o)}catch(e){return n.forEach(t=>{u[t.route.id]={type:w.error,error:e}}),u}for(let[e,t]of Object.entries(s))if(Ie(t)){let n=t.result;u[e]={type:w.redirect,response:Le(n,r,e,a,h,g.v7_relativeSplatPath)}}else u[e]=await Ce(t);return u}async function Ee(t,r,n,a,o){let i=t.matches,s=ge("loader",0,o,n,r,null),l=Promise.all(a.map(async t=>{if(t.matches&&t.match&&t.controller){let r=(await ge("loader",0,ke(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:r}}return Promise.resolve({[t.key]:{type:w.error,error:Fe(404,{pathname:t.path})}})})),u=await s,c=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Je(r,u,o.signal,i,t.loaderData),qe(r,c,a)]),{loaderResults:u,fetcherResults:c}}function Se(){K=!0,$.push(...st()),Q.forEach((e,t)=>{J.has(t)&&V.add(t),Ke(t)})}function xe(e,t,r){void 0===r&&(r={}),F.fetchers.set(e,t),ae({fetchers:new Map(F.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Te(e,t,r,n){void 0===n&&(n={});let a=je(F.matches,t);Be(e),ae({errors:{[a.route.id]:r},fetchers:new Map(F.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function _e(e){return Z.set(e,(Z.get(e)||0)+1),ee.has(e)&&ee.delete(e),F.fetchers.get(e)||ce}function Be(e){let t=F.fetchers.get(e);!J.has(e)||t&&"loading"===t.state&&X.has(e)||Ke(e),Q.delete(e),X.delete(e),G.delete(e),g.v7_fetcherPersist&&ee.delete(e),V.delete(e),F.fetchers.delete(e)}function Ke(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function $e(e){for(let t of e){let e=tt(_e(t).data);F.fetchers.set(t,e)}}function Xe(){let e=[],t=!1;for(let r of G){let n=F.fetchers.get(r);f(n,"Expected fetcher: "+r),"loading"===n.state&&(G.delete(r),e.push(r),t=!0)}return $e(e),t}function rt(e){let t=[];for(let[r,n]of X)if(n<e){let e=F.fetchers.get(r);f(e,"Expected fetcher: "+r),"loading"===e.state&&(Ke(r),X.delete(r),t.push(r))}return $e(t),t.length>0}function nt(e){F.blockers.delete(e),ne.delete(e)}function at(e,t){let r=F.blockers.get(e)||de;f("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(F.blockers);n.set(e,t),ae({blockers:n})}function ot(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ne.size)return;ne.size>1&&p(!1,"A router only supports one blocker at a time");let a=Array.from(ne.entries()),[o,i]=a[a.length-1],s=F.blockers.get(o);return s&&"proceeding"===s.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function it(e){let t=Fe(404,{pathname:e}),r=i||d,{matches:n,route:a}=Oe(r);return st(),{notFoundMatches:n,route:a,error:t}}function st(e){let t=[];return te.forEach((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),te.delete(n))}),t}function lt(e,t){return P&&P(e,t.map(e=>D(e,F.loaderData)))||e.key}function ut(e,t){if(L){let r=lt(e,t),n=L[r];if("number"==typeof n)return n}return null}function ct(e,t,r){if(y){if(!e)return{active:!0,matches:x(t,r,h,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:x(t,r,h,!0)}}return{active:!1,matches:null}}async function dt(e,t,r,n){if(!y)return{type:"success",matches:e};let a=e;for(;;){let e=null==i,s=i||d,l=c;try{await y({signal:r,path:t,matches:a,fetcherKey:n,patch:(e,t)=>{r.aborted||Re(e,t,s,l,o)}})}catch(e){return{type:"error",error:e,partialMatches:a}}finally{e&&!r.aborted&&(d=[...d])}if(r.aborted)return{type:"aborted"};let u=R(s,t,h);if(u)return{type:"success",matches:u};let f=x(s,t,h,!0);if(!f||a.length===f.length&&a.every((e,t)=>e.route.id===f[t].route.id))return{type:"success",matches:null};a=f}}return u={get basename(){return h},get future(){return g},get state(){return F},get routes(){return d},get window(){return t},initialize:function(){if(b=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(O)return O(),void(O=void 0);p(0===ne.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ot({currentLocation:F.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{O=e});return e.history.go(-1*a),void at(o,{state:"blocked",location:n,proceed(){at(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(F.blockers);e.set(o,de),ae({blockers:e})}})}return ie(r,n)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(pe);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,z);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(pe,JSON.stringify(r))}catch(e){p(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,z);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return F.initialized||ie(n.Pop,F.location,{initialHydration:!0}),u},subscribe:function(e){return C.add(e),()=>C.delete(e)},enableScrollRestoration:function(e,t,r){if(L=e,k=t,P=r||null,!T&&F.navigation===ue){T=!0;let e=ut(F.location,F.matches);null!=e&&ae({restoreScrollPosition:e})}return()=>{L=null,k=null,P=null}},navigate:async function t(r,a){if("number"==typeof r)return void e.history.go(r);let o=ve(F.location,F.matches,h,g.v7_prependBasename,r,g.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),{path:i,submission:s,error:u}=ye(g.v7_normalizeFormMethod,!1,o,a),c=F.location,d=v(F.location,i,a&&a.state);d=l({},d,e.history.encodeLocation(d));let f=a&&null!=a.replace?a.replace:void 0,p=n.Push;!0===f?p=n.Replace:!1===f||null!=s&&Ve(s.formMethod)&&s.formAction===F.location.pathname+F.location.search&&(p=n.Replace);let m=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,y=!0===(a&&a.flushSync),b=ot({currentLocation:c,nextLocation:d,historyAction:p});if(!b)return await ie(p,d,{submission:s,pendingError:u,preventScrollReset:m,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:y});at(b,{state:"blocked",location:d,proceed(){at(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(r,a)},reset(){let e=new Map(F.blockers);e.set(b,de),ae({blockers:e})}})},fetch:function(t,r,n,o){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ke(t);let s=!0===(o&&o.flushSync),l=i||d,u=ve(F.location,F.matches,h,g.v7_prependBasename,n,g.v7_relativeSplatPath,r,null==o?void 0:o.relative),c=R(l,u,h),p=ct(c,l,u);if(p.active&&p.matches&&(c=p.matches),!c)return void Te(t,r,Fe(404,{pathname:u}),{flushSync:s});let{path:m,submission:v,error:y}=ye(g.v7_normalizeFormMethod,!0,u,o);if(y)return void Te(t,r,y,{flushSync:s});let b=Ge(c,m),w=!0===(o&&o.preventScrollReset);v&&Ve(v.formMethod)?async function(t,r,n,a,o,s,l,u,c){function p(e){if(!e.route.action&&!e.route.lazy){let e=Fe(405,{method:c.formMethod,pathname:n,routeId:r});return Te(t,r,e,{flushSync:l}),!0}return!1}if(Se(),Q.delete(t),!s&&p(a))return;let m=F.fetchers.get(t);xe(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(c,m),{flushSync:l});let v=new AbortController,y=ke(e.history,n,v.signal,c);if(s){let e=await dt(o,new URL(y.url).pathname,y.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,r,e.error,{flushSync:l});if(!e.matches)return void Te(t,r,Fe(404,{pathname:n}),{flushSync:l});if(p(a=Ge(o=e.matches,n)))return}J.set(t,v);let b=q,w=(await ge("action",0,y,[a],o,t))[a.route.id];if(y.signal.aborted)return void(J.get(t)===v&&J.delete(t));if(g.v7_fetcherPersist&&ee.has(t)){if(We(w)||He(w))return void xe(t,tt(void 0))}else{if(We(w))return J.delete(t),Y>b?void xe(t,tt(void 0)):(G.add(t),xe(t,et(c)),me(y,w,!1,{fetcherSubmission:c,preventScrollReset:u}));if(He(w))return void Te(t,r,w.error)}if(ze(w))throw Fe(400,{type:"defer-action"});let E=F.navigation.location||F.location,S=ke(e.history,E,v.signal),x=i||d,D="idle"!==F.navigation.state?R(x,F.navigation.location,h):F.matches;f(D,"Didn't find any matches after fetcher action");let C=++q;X.set(t,C);let L=et(c,w.data);F.fetchers.set(t,L);let[P,k]=be(e.history,F,D,c,E,!1,g.v7_skipActionErrorRevalidation,K,$,V,ee,Q,G,x,h,[a.route.id,w]);k.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=F.fetchers.get(t),n=et(void 0,r?r.data:void 0);F.fetchers.set(t,n),Ke(t),e.controller&&J.set(t,e.controller)}),ae({fetchers:new Map(F.fetchers)});let T=()=>k.forEach(e=>Ke(e.key));v.signal.addEventListener("abort",T);let{loaderResults:_,fetcherResults:A}=await Ee(F,D,P,k,S);if(v.signal.aborted)return;v.signal.removeEventListener("abort",T),X.delete(t),J.delete(t),k.forEach(e=>J.delete(e.key));let U=Ne(_);if(U)return me(S,U.result,!1,{preventScrollReset:u});if(U=Ne(A),U)return G.add(U.key),me(S,U.result,!1,{preventScrollReset:u});let{loaderData:j,errors:O}=Ae(F,D,_,void 0,k,A,te);if(F.fetchers.has(t)){let e=tt(w.data);F.fetchers.set(t,e)}rt(C),"loading"===F.navigation.state&&C>Y?(f(N,"Expected pending action"),M&&M.abort(),oe(F.navigation.location,{matches:D,loaderData:j,errors:O,fetchers:new Map(F.fetchers)})):(ae({errors:O,loaderData:Ue(F.loaderData,j,D,O),fetchers:new Map(F.fetchers)}),K=!1)}(t,r,m,b,c,p.active,s,w,v):(Q.set(t,{routeId:r,path:m}),async function(t,r,n,a,o,i,s,l,u){let c=F.fetchers.get(t);xe(t,et(u,c?c.data:void 0),{flushSync:s});let d=new AbortController,h=ke(e.history,n,d.signal);if(i){let e=await dt(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void Te(t,r,e.error,{flushSync:s});if(!e.matches)return void Te(t,r,Fe(404,{pathname:n}),{flushSync:s});a=Ge(o=e.matches,n)}J.set(t,d);let p=q,m=(await ge("loader",0,h,[a],o,t))[a.route.id];if(ze(m)&&(m=await Ye(m,h.signal,!0)||m),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(!ee.has(t))return We(m)?Y>p?void xe(t,tt(void 0)):(G.add(t),void await me(h,m,!1,{preventScrollReset:l})):void(He(m)?Te(t,r,m.error):(f(!ze(m),"Unhandled fetcher deferred data"),xe(t,tt(m.data))));xe(t,tt(void 0))}}(t,r,m,b,c,p.active,s,w,v))},revalidate:function(){Se(),ae({revalidation:"loading"}),"submitting"!==F.navigation.state&&("idle"!==F.navigation.state?ie(N||F.historyAction,F.navigation.location,{overrideNavigation:F.navigation,enableViewTransition:!0===I}):ie(F.historyAction,F.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:_e,deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),ee.add(e),g.v7_fetcherPersist||Be(e)):Z.set(e,t),ae({fetchers:new Map(F.fetchers)})},dispose:function(){b&&b(),H&&H(),C.clear(),M&&M.abort(),F.fetchers.forEach((e,t)=>Be(t)),F.blockers.forEach((e,t)=>nt(t))},getBlocker:function(e,t){let r=F.blockers.get(e)||de;return ne.get(e)!==t&&ne.set(e,t),r},deleteBlocker:nt,patchRoutes:function(e,t){let r=null==i;Re(e,t,i||d,c,o),r&&(d=[...d],ae({}))},_internalFetchControllers:J,_internalActiveDeferreds:te,_internalSetRoutes:function(e){c={},i=S(e,o,void 0,c)}},u}function ve(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let e of t)if(l.push(e),e.route.id===i){u=e;break}}else l=t,u=t[t.length-1];let c=H(a||".",z(l,o),j(e.pathname,r)||e.pathname,"path"===s);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=Xe(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:W([r,c.pathname])),y(c)}function ye(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!ie.has(a.toLowerCase())))return{path:r,error:Fe(405,{method:n.formMethod})};var a;let o,i,s=()=>({path:r,error:Fe(400,{type:"invalid-body"})}),l=n.formMethod||"get",u=e?l.toUpperCase():l.toLowerCase(),c=Be(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Ve(u))return s();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Ve(u))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return s()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=Te(n.formData),i=n.formData;else if(n.body instanceof FormData)o=Te(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=_e(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=_e(o)}catch(e){return s()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(Ve(d.formMethod))return{path:r,submission:d};let h=g(r);return t&&h.search&&Xe(h.search)&&o.append("index",""),h.search="?"+o,{path:y(h),submission:d}}function ge(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function be(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?He(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=ge(r,Object.keys(t.errors)[0],!0):v&&He(v[1])&&(w=ge(r,v[0]));let E=v?v[1].statusCode:void 0,S=i&&E&&E>=400,x=w.filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return we(a,t.loaderData,t.errors);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||u.some(t=>t===e.route.id))return!0;let i=t.matches[r],c=e;return Se(e,l({currentUrl:g,currentParams:i.params,nextUrl:b,nextParams:c.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||Ee(i,c))}))}),D=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=R(p,e.path,m);if(!i)return void D.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=Ge(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:Se(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&s})),v&&D.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,D]}function we(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function Ee(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Se(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function Re(e,t,r,n,a){var o;let i;if(e){let t=n[e];f(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let s=S(t.filter(e=>!i.some(t=>xe(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...s)}function xe(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((e,r)=>{var n;return null==(n=t.children)?void 0:n.some(t=>xe(e,t))}))}async function De(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function Ce(e){let{result:t,type:r}=e;if($e(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:w.error,error:e}}return r===w.error?{type:w.error,error:new te(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:w.data,data:e,statusCode:t.status,headers:t.headers}}var n,a,o,i,s,l,u,c;return r===w.error?Ke(t)?t.data instanceof Error?{type:w.error,error:t.data,statusCode:null==(o=t.init)?void 0:o.status,headers:null!=(i=t.init)&&i.headers?new Headers(t.init.headers):void 0}:{type:w.error,error:new te((null==(n=t.init)?void 0:n.status)||500,void 0,t.data),statusCode:re(t)?t.status:void 0,headers:null!=(a=t.init)&&a.headers?new Headers(t.init.headers):void 0}:{type:w.error,error:t,statusCode:re(t)?t.status:void 0}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:w.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(l=t.init)?void 0:l.headers)&&new Headers(t.init.headers)}:Ke(t)?{type:w.data,data:t.data,statusCode:null==(u=t.init)?void 0:u.status,headers:null!=(c=t.init)&&c.headers?new Headers(t.init.headers):void 0}:{type:w.data,data:t}}function Le(e,t,r,n,a,o){let i=e.headers.get("Location");if(f(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!he.test(i)){let s=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ve(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function Pe(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(he.test(e)){let n=e,o=n.startsWith("//")?new URL(t.protocol+n):new URL(n);if(a.includes(o.protocol))throw new Error("Invalid redirect location");let i=null!=j(o.pathname,r);if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw new Error("Invalid redirect location")}catch(e){}return e}function ke(e,t,r,n){let a=e.createURL(Be(t)).toString(),o={signal:r};if(n&&Ve(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=Te(n.formData):o.body=n.formData}return new Request(a,o)}function Te(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function _e(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ae(e,t,r,n,a,o,i){let{loaderData:s,errors:u}=function(e,t,r,n,a){let o,i={},s=null,l=!1,u={},c=r&&He(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let d=r.route.id,h=t[d];if(f(!We(h),"Cannot handle redirect results in processLoaderData"),He(h)){let t=h.error;if(void 0!==c&&(t=c,c=void 0),s=s||{},a)s[d]=t;else{let r=je(e,d);null==s[r.route.id]&&(s[r.route.id]=t)}i[d]=void 0,l||(l=!0,o=re(h.error)?h.error.status:500),h.headers&&(u[d]=h.headers)}else ze(h)?(n.set(d,h.deferredData),i[d]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(o=h.statusCode),h.headers&&(u[d]=h.headers)):(i[d]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(o=h.statusCode),h.headers&&(u[d]=h.headers))}),void 0!==c&&r&&(s={[r[0]]:c},i[r[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:u}}(t,r,n,i,!1);return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(f(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(He(i)){let t=je(e.matches,null==n?void 0:n.route.id);u&&u[t.route.id]||(u=l({},u,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(We(i))f(!1,"Unhandled fetcher revalidation redirect");else if(ze(i))f(!1,"Unhandled fetcher deferred data");else{let t=tt(i.data);e.fetchers.set(r,t)}}),{loaderData:s,errors:u}}function Ue(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function Me(e){return e?He(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function je(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Oe(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Fe(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(s="Not Found",l='No route matches URL "'+r+'"'):405===e&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new te(e||500,s,new Error(l),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(We(n))return{key:r,result:n}}}function Be(e){return y(l({},"string"==typeof e?g(e):e,{hash:""}))}function Ie(e){return $e(e.result)&&se.has(e.result.status)}function ze(e){return e.type===w.deferred}function He(e){return e.type===w.error}function We(e){return(e&&e.type)===w.redirect}function Ke(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function $e(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Ve(e){return ae.has(e.toLowerCase())}async function Je(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===s);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!Ee(c,u)&&void 0!==(a&&a[u.route.id]);ze(l)&&d&&await Ye(l,r,!1).then(e=>{e&&(t[s]=e)})}}async function qe(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&ze(s)&&(f(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ye(s,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function Ye(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:w.data,data:e.deferredData.unwrappedData}}catch(e){return{type:w.error,error:e}}return{type:w.data,data:e.deferredData.data}}}function Xe(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Ge(e,t){let r="string"==typeof t?g(t).search:t.search;if(e[e.length-1].route.index&&Xe(r||""))return e[e.length-1];let n=I(e);return n[n.length-1]}function Qe(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Ze(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function et(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tt(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rt.apply(this,arguments)}Symbol("deferred");const nt=a.createContext(null),at=a.createContext(null),ot=a.createContext(null),it=a.createContext(null),st=a.createContext(null),lt=a.createContext({outlet:null,matches:[],isDataRoute:!1}),ut=a.createContext(null);function ct(e,t){let{relative:r}=void 0===t?{}:t;dt()||f(!1);let{basename:n,navigator:o}=a.useContext(it),{hash:i,pathname:s,search:l}=Et(e,{relative:r}),u=s;return"/"!==n&&(u="/"===s?n:W([n,s])),o.createHref({pathname:u,search:l,hash:i})}function dt(){return null!=a.useContext(st)}function ht(){return dt()||f(!1),a.useContext(st).location}function ft(){return a.useContext(st).navigationType}function pt(e){dt()||f(!1);let{pathname:t}=ht();return a.useMemo(()=>U(e,M(t)),[t,e])}function mt(e){a.useContext(it).static||a.useLayoutEffect(e)}function vt(){let{isDataRoute:e}=a.useContext(lt);return e?function(){let{router:e}=_t(kt.UseNavigateStable),t=Ut(Tt.UseNavigateStable),r=a.useRef(!1);return mt(()=>{r.current=!0}),a.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,rt({fromRouteId:t},a)))},[e,t])}():function(){dt()||f(!1);let e=a.useContext(nt),{basename:t,future:r,navigator:n}=a.useContext(it),{matches:o}=a.useContext(lt),{pathname:i}=ht(),s=JSON.stringify(z(o,r.v7_relativeSplatPath)),l=a.useRef(!1);return mt(()=>{l.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let o=H(r,JSON.parse(s),i,"path"===a.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:W([t,o.pathname])),(a.replace?n.replace:n.push)(o,a.state,a)},[t,n,s,i,e])}()}const yt=a.createContext(null);function gt(){return a.useContext(yt)}function bt(e){let t=a.useContext(lt).outlet;return t?a.createElement(yt.Provider,{value:e},t):t}function wt(){let{matches:e}=a.useContext(lt),t=e[e.length-1];return t?t.params:{}}function Et(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=a.useContext(it),{matches:o}=a.useContext(lt),{pathname:i}=ht(),s=JSON.stringify(z(o,n.v7_relativeSplatPath));return a.useMemo(()=>H(e,JSON.parse(s),i,"path"===r),[e,s,i,r])}function St(e,t){return Rt(e,t)}function Rt(e,t,r,o){dt()||f(!1);let{navigator:i}=a.useContext(it),{matches:s}=a.useContext(lt),l=s[s.length-1],u=l?l.params:{},c=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let d,h=ht();if(t){var p;let e="string"==typeof t?g(t):t;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||f(!1),d=e}else d=h;let m=d.pathname||"/",v=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let y=R(e,{pathname:v}),b=Pt(y&&y.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:W([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:W([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,r,o);return t&&b?a.createElement(st.Provider,{value:{location:rt({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:n.Pop}},b):b}function xt(){let e=zt(),t=re(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:n},r):null,null)}const Dt=a.createElement(xt,null);class Ct extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(lt.Provider,{value:this.props.routeContext},a.createElement(ut.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lt(e){let{routeContext:t,match:r,children:n}=e,o=a.useContext(nt);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(lt.Provider,{value:t},n)}function Pt(e,t,r,n){var o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=n)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let s=e,l=null==(o=r)?void 0:o.errors;if(null!=l){let e=s.findIndex(e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id]));e>=0||f(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){u=!0,s=c>=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight((e,n,o)=>{let i,d=!1,h=null,f=null;var p;r&&(i=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||Dt,u&&(c<0&&0===o?(Vt[p="route-fallback"]||(Vt[p]=!0),d=!0,f=null):c===o&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,o+1)),v=()=>{let t;return t=i?h:d?f:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(Lt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===o)?a.createElement(Ct,{location:r.location,revalidation:r.revalidation,component:h,error:i,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var kt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kt||{}),Tt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Tt||{});function _t(e){let t=a.useContext(nt);return t||f(!1),t}function At(e){let t=a.useContext(at);return t||f(!1),t}function Ut(e){let t=function(){let e=a.useContext(lt);return e||f(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||f(!1),r.route.id}function Mt(){return Ut(Tt.UseRouteId)}function jt(){return At(Tt.UseNavigation).navigation}function Ot(){let e=_t(kt.UseRevalidator),t=At(Tt.UseRevalidator);return a.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function Ft(){let{matches:e,loaderData:t}=At(Tt.UseMatches);return a.useMemo(()=>e.map(e=>D(e,t)),[e,t])}function Nt(){let e=At(Tt.UseLoaderData),t=Ut(Tt.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function Bt(e){return At(Tt.UseRouteLoaderData).loaderData[e]}function It(){let e=At(Tt.UseActionData),t=Ut(Tt.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function zt(){var e;let t=a.useContext(ut),r=At(Tt.UseRouteError),n=Ut(Tt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function Ht(){let e=a.useContext(ot);return null==e?void 0:e._data}function Wt(){let e=a.useContext(ot);return null==e?void 0:e._error}let Kt=0;function $t(e){let{router:t,basename:r}=_t(kt.UseBlocker),n=At(Tt.UseBlocker),[o,i]=a.useState(""),s=a.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:rt({},n,{pathname:j(n.pathname,r)||n.pathname}),nextLocation:rt({},a,{pathname:j(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return a.useEffect(()=>{let e=String(++Kt);return i(e),()=>t.deleteBlocker(e)},[t]),a.useEffect(()=>{""!==o&&t.getBlocker(o,s)},[t,o,s]),o&&n.blockers.has(o)?n.blockers.get(o):de}const Vt={};function Jt(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const qt=o.startTransition;function Yt(e){let{basename:t,children:r,initialEntries:n,initialIndex:o,future:i}=e,s=a.useRef();null==s.current&&(s.current=c({initialEntries:n,initialIndex:o,v5Compat:!0}));let l=s.current,[u,d]=a.useState({action:l.action,location:l.location}),{v7_startTransition:h}=i||{},f=a.useCallback(e=>{h&&qt?qt(()=>d(e)):d(e)},[d,h]);return a.useLayoutEffect(()=>l.listen(f),[l,f]),a.useEffect(()=>Jt(i),[i]),a.createElement(Zt,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:l,future:i})}function Xt(e){let{to:t,replace:r,state:n,relative:o}=e;dt()||f(!1);let{future:i,static:s}=a.useContext(it),{matches:l}=a.useContext(lt),{pathname:u}=ht(),c=vt(),d=H(t,z(l,i.v7_relativeSplatPath),u,"path"===o),h=JSON.stringify(d);return a.useEffect(()=>c(JSON.parse(h),{replace:r,state:n,relative:o}),[c,h,o,r,n]),null}function Gt(e){return bt(e.context)}function Qt(e){f(!1)}function Zt(e){let{basename:t="/",children:r=null,location:o,navigationType:i=n.Pop,navigator:s,static:l=!1,future:u}=e;dt()&&f(!1);let c=t.replace(/^\/*/,"/"),d=a.useMemo(()=>({basename:c,navigator:s,static:l,future:rt({v7_relativeSplatPath:!1},u)}),[c,u,s,l]);"string"==typeof o&&(o=g(o));let{pathname:h="/",search:p="",hash:m="",state:v=null,key:y="default"}=o,b=a.useMemo(()=>{let e=j(h,c);return null==e?null:{location:{pathname:e,search:p,hash:m,state:v,key:y},navigationType:i}},[c,h,p,m,v,y,i]);return null==b?null:a.createElement(it.Provider,{value:d},a.createElement(st.Provider,{children:r,value:b}))}function er(e){let{children:t,location:r}=e;return St(ir(t),r)}function tr(e){let{children:t,errorElement:r,resolve:n}=e;return a.createElement(ar,{resolve:n,errorElement:r},a.createElement(or,null,t))}var rr=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(rr||{});const nr=new Promise(()=>{});class ar extends a.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,o=rr.pending;if(r instanceof Promise)if(this.state.error){o=rr.error;let e=this.state.error;n=Promise.reject().catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,o="_error"in n?rr.error:"_data"in n?rr.success:rr.pending):(o=rr.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else o=rr.success,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(o===rr.error&&n._error instanceof q)throw nr;if(o===rr.error&&!t)throw n._error;if(o===rr.error)return a.createElement(ot.Provider,{value:n,children:t});if(o===rr.success)return a.createElement(ot.Provider,{value:n,children:e});throw n}}function or(e){let{children:t}=e,r=Ht(),n="function"==typeof t?t(r):t;return a.createElement(a.Fragment,null,n)}function ir(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,(e,n)=>{if(!a.isValidElement(e))return;let o=[...t,n];if(e.type===a.Fragment)return void r.push.apply(r,ir(e.props.children,o));e.type!==Qt&&f(!1),e.props.index&&e.props.children&&f(!1);let i={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=ir(e.props.children,o)),r.push(i)}),r}function sr(e){return Pt(e)}function lr(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:a.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:a.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:a.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ur(e,t){return me({basename:null==t?void 0:t.basename,future:rt({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:c({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:lr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function dr(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}const hr="get",fr="application/x-www-form-urlencoded";function pr(e){return null!=e&&"string"==typeof e.tagName}function mr(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let vr=null;const yr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gr(e){return null==e||yr.has(e)?e:null}const br=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],wr=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Er=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function Sr(e,t){return me({basename:null==t?void 0:t.basename,future:cr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:d({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||xr(),routes:e,mapRouteProperties:lr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function Rr(e,t){return me({basename:null==t?void 0:t.basename,future:cr({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:h({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||xr(),routes:e,mapRouteProperties:lr,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function xr(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=cr({},t,{errors:Dr(t.errors)})),t}function Dr(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new te(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const Cr=a.createContext({isTransitioning:!1}),Lr=a.createContext(new Map),Pr=o.startTransition,kr=s.flushSync,Tr=o.useId;function _r(e){kr?kr(e):e()}class Ar{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function Ur(e){let{fallbackElement:t,router:r,future:n}=e,[o,i]=a.useState(r.state),[s,l]=a.useState(),[u,c]=a.useState({isTransitioning:!1}),[d,h]=a.useState(),[f,p]=a.useState(),[m,v]=a.useState(),y=a.useRef(new Map),{v7_startTransition:g}=n||{},b=a.useCallback(e=>{g?function(e){Pr?Pr(e):e()}(e):e()},[g]),w=a.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:o}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!s){if(a){_r(()=>{f&&(d&&d.resolve(),f.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=r.window.document.startViewTransition(()=>{_r(()=>i(e))});return t.finished.finally(()=>{_r(()=>{h(void 0),p(void 0),l(void 0),c({isTransitioning:!1})})}),void _r(()=>p(t))}f?(d&&d.resolve(),f.skipTransition(),v({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(l(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?_r(()=>i(e)):b(()=>i(e))},[r.window,f,d,y,b]);a.useLayoutEffect(()=>r.subscribe(w),[r,w]),a.useEffect(()=>{u.isTransitioning&&!u.flushSync&&h(new Ar)},[u]),a.useEffect(()=>{if(d&&s&&r.window){let e=s,t=d.promise,n=r.window.document.startViewTransition(async()=>{b(()=>i(e)),await t});n.finished.finally(()=>{h(void 0),p(void 0),l(void 0),c({isTransitioning:!1})}),p(n)}},[b,s,d,r.window]),a.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,f,o.location,s]),a.useEffect(()=>{!u.isTransitioning&&m&&(l(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[u.isTransitioning,m]),a.useEffect(()=>{},[]);let E=a.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=a.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=a.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return a.useEffect(()=>Jt(n,r.future),[n,r.future]),a.createElement(a.Fragment,null,a.createElement(nt.Provider,{value:R},a.createElement(at.Provider,{value:o},a.createElement(Lr.Provider,{value:y.current},a.createElement(Cr.Provider,{value:u},a.createElement(Zt,{basename:S,location:o.location,navigationType:o.historyAction,navigator:E,future:x},o.initialized||r.future.v7_partialHydration?a.createElement(Mr,{routes:r.routes,future:r.future,state:o}):t))))),null)}const Mr=a.memo(jr);function jr(e){let{routes:t,future:r,state:n}=e;return Rt(t,void 0,n,r)}function Or(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=d({window:o,v5Compat:!0}));let s=i.current,[l,u]=a.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},h=a.useCallback(e=>{c&&Pr?Pr(()=>u(e)):u(e)},[u,c]);return a.useLayoutEffect(()=>s.listen(h),[s,h]),a.useEffect(()=>Jt(n),[n]),a.createElement(Zt,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Fr(e){let{basename:t,children:r,future:n,window:o}=e,i=a.useRef();null==i.current&&(i.current=h({window:o,v5Compat:!0}));let s=i.current,[l,u]=a.useState({action:s.action,location:s.location}),{v7_startTransition:c}=n||{},d=a.useCallback(e=>{c&&Pr?Pr(()=>u(e)):u(e)},[u,c]);return a.useLayoutEffect(()=>s.listen(d),[s,d]),a.useEffect(()=>Jt(n),[n]),a.createElement(Zt,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}function Nr(e){let{basename:t,children:r,future:n,history:o}=e,[i,s]=a.useState({action:o.action,location:o.location}),{v7_startTransition:l}=n||{},u=a.useCallback(e=>{l&&Pr?Pr(()=>s(e)):s(e)},[s,l]);return a.useLayoutEffect(()=>o.listen(u),[o,u]),a.useEffect(()=>Jt(n),[n]),a.createElement(Zt,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:o,future:n})}const Br="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Ir=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zr=a.forwardRef(function(e,t){let r,{onClick:n,relative:o,reloadDocument:i,replace:s,state:l,target:u,to:c,preventScrollReset:d,viewTransition:h}=e,f=dr(e,br),{basename:p}=a.useContext(it),m=!1;if("string"==typeof c&&Ir.test(c)&&(r=c,Br))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),r=j(t.pathname,p);t.origin===e.origin&&null!=r?c=r+t.search+t.hash:m=!0}catch(e){}let v=ct(c,{relative:o}),y=Yr(c,{replace:s,state:l,target:u,preventScrollReset:d,relative:o,viewTransition:h});return a.createElement("a",cr({},f,{href:r||v,onClick:m||i?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:u}))}),Hr=a.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:n=!1,className:o="",end:i=!1,style:s,to:l,viewTransition:u,children:c}=e,d=dr(e,wr),h=Et(l,{relative:d.relative}),f=ht(),p=a.useContext(at),{navigator:m,basename:v}=a.useContext(it),y=null!=p&&un(h)&&!0===u,g=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,b=f.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(b=b.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&v&&(w=j(w,v)||w);const E="/"!==g&&g.endsWith("/")?g.length-1:g.length;let S,R=b===g||!i&&b.startsWith(g)&&"/"===b.charAt(E),x=null!=w&&(w===g||!i&&w.startsWith(g)&&"/"===w.charAt(g.length)),D={isActive:R,isPending:x,isTransitioning:y},C=R?r:void 0;S="function"==typeof o?o(D):[o,R?"active":null,x?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let L="function"==typeof s?s(D):s;return a.createElement(zr,cr({},d,{"aria-current":C,className:S,ref:t,style:L,to:l,viewTransition:u}),"function"==typeof c?c(D):c)}),Wr=a.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:s,method:l=hr,action:u,onSubmit:c,relative:d,preventScrollReset:h,viewTransition:f}=e,p=dr(e,Er),m=Zr(),v=en(u,{relative:d}),y="get"===l.toLowerCase()?"get":"post";return a.createElement("form",cr({ref:t,method:y,action:v,onSubmit:o?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:i,state:s,relative:d,preventScrollReset:h,viewTransition:f})}},p))});function Kr(e){let{getKey:t,storageKey:r}=e;return on({getKey:t,storageKey:r}),null}var $r,Vr;function Jr(e){let t=a.useContext(nt);return t||f(!1),t}function qr(e){let t=a.useContext(at);return t||f(!1),t}function Yr(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:l}=void 0===t?{}:t,u=vt(),c=ht(),d=Et(e,{relative:s});return a.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==n?n:y(c)===y(d);u(e,{replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[c,u,d,n,o,r,e,i,s,l])}function Xr(e){let t=a.useRef(mr(e)),r=a.useRef(!1),n=ht(),o=a.useMemo(()=>function(e,t){let r=mr(e);return t&&t.forEach((e,n)=>{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),i=vt(),s=a.useCallback((e,t)=>{const n=mr("function"==typeof e?e(o):e);r.current=!0,i("?"+n,t)},[i,o]);return[o,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($r||($r={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Vr||(Vr={}));let Gr=0,Qr=()=>"__"+String(++Gr)+"__";function Zr(){let{router:e}=Jr($r.UseSubmit),{basename:t}=a.useContext(it),r=Mt();return a.useCallback(function(n,a){void 0===a&&(a={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:o,method:i,encType:s,formData:l,body:u}=function(e,t){let r,n,a,o,i;if(pr(s=e)&&"form"===s.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?j(i,t):null,r=e.getAttribute("method")||hr,a=gr(e.getAttribute("enctype"))||fr,o=new FormData(e)}else if(function(e){return pr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return pr(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||i.getAttribute("action");if(n=s?j(s,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||hr,a=gr(e.getAttribute("formenctype"))||gr(i.getAttribute("enctype"))||fr,o=new FormData(i,e),!function(){if(null===vr)try{new FormData(document.createElement("form"),0),vr=!1}catch(e){vr=!0}return vr}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else{if(pr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=hr,n=null,a=fr,i=e}var s;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||Qr();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||i,formEncType:a.encType||s,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function en(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=a.useContext(it),o=a.useContext(lt);o||f(!1);let[i]=o.matches.slice(-1),s=cr({},Et(e||".",{relative:r})),l=ht();if(null==e){s.search=l.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();s.search=r?"?"+r:""}}return e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(s.pathname="/"===s.pathname?n:W([n,s.pathname])),y(s)}function tn(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=Jr($r.UseFetcher),o=qr(Vr.UseFetcher),i=a.useContext(Lr),s=a.useContext(lt),l=null==(t=s.matches[s.matches.length-1])?void 0:t.route.id;i||f(!1),s||f(!1),null==l&&f(!1);let u=Tr?Tr():"",[c,d]=a.useState(r||u);r&&r!==c?d(r):c||d(Qr()),a.useEffect(()=>(n.getFetcher(c),()=>{n.deleteFetcher(c)}),[n,c]);let h=a.useCallback((e,t)=>{l||f(!1),n.fetch(c,l,e,t)},[c,l,n]),p=Zr(),m=a.useCallback((e,t)=>{p(e,cr({},t,{navigate:!1,fetcherKey:c}))},[c,p]),v=a.useMemo(()=>a.forwardRef((e,t)=>a.createElement(Wr,cr({},e,{navigate:!1,fetcherKey:c,ref:t}))),[c]),y=o.fetchers.get(c)||ce,g=i.get(c);return a.useMemo(()=>cr({Form:v,submit:m,load:h},y,{data:g}),[v,m,h,y,g])}function rn(){let e=qr(Vr.UseFetchers);return Array.from(e.fetchers.entries()).map(e=>{let[t,r]=e;return cr({},r,{key:t})})}const nn="react-router-scroll-positions";let an={};function on(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=Jr($r.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=qr(Vr.UseScrollRestoration),{basename:s}=a.useContext(it),l=ht(),u=Ft(),c=jt();a.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};a.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(a.useCallback(()=>{if("idle"===c.state){let e=(t?t(l,u):null)||l.key;an[e]=window.scrollY}try{sessionStorage.setItem(r||nn,JSON.stringify(an))}catch(e){}window.history.scrollRestoration="auto"},[r,t,c.state,l,u])),"undefined"!=typeof document&&(a.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||nn);e&&(an=JSON.parse(e))}catch(e){}},[r]),a.useLayoutEffect(()=>{let e=t&&"/"!==s?(e,r)=>t(cr({},e,{pathname:j(e.pathname,s)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(an,()=>window.scrollY,e);return()=>r&&r()},[n,s,t]),a.useLayoutEffect(()=>{if(!1!==o)if("number"!=typeof o){if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==i&&window.scrollTo(0,0)}else window.scrollTo(0,o)},[l,o,i]))}function sn(e,t){let{capture:r}=t||{};a.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function ln(e){let{when:t,message:r}=e,n=$t(t);a.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),a.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function un(e,t){void 0===t&&(t={});let r=a.useContext(Cr);null==r&&f(!1);let{basename:n}=Jr($r.useViewTransitionState),o=Et(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=j(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=j(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=U(o.pathname,s)||null!=U(o.pathname,i)}}}]);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @remix-run/router v1.23.2
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+
12
+ /**
13
+ * React Router DOM v6.30.3
14
+ *
15
+ * Copyright (c) Remix Software Inc.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE.md file in the root directory of this source tree.
19
+ *
20
+ * @license MIT
21
+ */
22
+
23
+ /**
24
+ * React Router v6.30.3
25
+ *
26
+ * Copyright (c) Remix Software Inc.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE.md file in the root directory of this source tree.
30
+ *
31
+ * @license MIT
32
+ */
package/dist/300.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[300],{4300:e=>{e.exports=JSON.parse('{"activePrescriptions":"Active prescriptions","activePrescriptionsHelper":"Review the patient context, choose the visit details, and add the matching orders to the prescription.","activePrescriptionsWorkspaceTitle":"Active prescriptions","addMedication":"Adicionar medicamento","asNeeded":"Tomar se necessário (P.R.N.)","asNeededCondition":"Motivo P.R.N.","cancel":"Cancelar","casualGreeting":"hey","configSystem":"Configuration system","configSystemExplainer":"The greeting shown below is driven by the configuration system. To change the configuration properties, click the spanner icon in the navbar to pull up the Implementer Tools panel. Then, type <2>template</2> into the <4>Search configuration</4> input. This should filter the configuration properties to show only those that are relevant to this module. You can change the values of these properties and click <6>Save</6> to see the changes reflected in the UI","connect":"Connect","connectExplainer":"Get in touch with the community","dataFetching":"Data fetching","designDocs":"Design docs","designDocsExplainer":"Read the O3 design documentation","dosage":"Dose","drugName":"Nome do medicamento","edit":"Editar","editMedication":"Editar medicamento","extensionExplainer":"Here are some colored boxes. Because they are attached as extensions within a slot, an admin can change what boxes are shown using configuration. These boxes happen to be defined in this module, but they could attach to this slot even if they were in a different module","extensionSystem":"Extension system","formalGreeting":"hello","frequency":"Frequência","frontendDocs":"Frontend docs","getPatient":"Get a patient named","getStarted":"Get started","getStartedExplainer":"Create a frontend module from this template","indication":"Indicação","inPastTabPlaceholderSubtitle":"Switch back to the New tab to manage current orders.","inPastTabPlaceholderTitle":"Historic prescriptions will be available soon","insurancePolicyNumberLabel":"Insurance Policy Number (optional)","insurancePolicyNumberPlaceholder":"Enter the policy number","learnExplainer":"Learn how to use the O3 framework","loading":"Loading","medicationsList":"Medicamentos adicionados","noMedicationsAdded":"Nenhum medicamento adicionado ainda.","patientGetterExplainer":"Try clicking the button below to fetch a patient from the backend","patientInstructions":"Instruções ao paciente","prescriptionsActionMenuItem":"Active prescriptions","printPrescriptionLabel":"Print the prescription","remove":"Remover","resources":"Resources","route":"Via de administração","saveMedication":"Salvar medicamento","signPrescriptionLabel":"Digitally sign the prescription","unit":"Unidade","usefulLinks":"Below are some links to useful resources","visitLocationHeading":"Visit location","visitLocationHelper":"Select where the visit will take place.","visitLocationPlaceholder":"Select a location","visitTimingLabel":"The visit is","visitTimingNew":"New","visitTimingPast":"In the past"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[300],{4300(e){e.exports=JSON.parse('{"activePrescriptions":"Active prescriptions","activePrescriptionsHelper":"Review the patient context, choose the visit details, and add the matching orders to the prescription.","activePrescriptionsWorkspaceTitle":"Active prescriptions","addMedication":"Adicionar medicamento","asNeeded":"Tomar se necessário (P.R.N.)","asNeededCondition":"Motivo P.R.N.","cancel":"Cancelar","casualGreeting":"hey","configSystem":"Configuration system","configSystemExplainer":"The greeting shown below is driven by the configuration system. To change the configuration properties, click the spanner icon in the navbar to pull up the Implementer Tools panel. Then, type <2>template</2> into the <4>Search configuration</4> input. This should filter the configuration properties to show only those that are relevant to this module. You can change the values of these properties and click <6>Save</6> to see the changes reflected in the UI","connect":"Connect","connectExplainer":"Get in touch with the community","dataFetching":"Data fetching","designDocs":"Design docs","designDocsExplainer":"Read the O3 design documentation","dosage":"Dose","drugName":"Nome do medicamento","edit":"Editar","editMedication":"Editar medicamento","extensionExplainer":"Here are some colored boxes. Because they are attached as extensions within a slot, an admin can change what boxes are shown using configuration. These boxes happen to be defined in this module, but they could attach to this slot even if they were in a different module","extensionSystem":"Extension system","formalGreeting":"hello","frequency":"Frequência","frontendDocs":"Frontend docs","getPatient":"Get a patient named","getStarted":"Get started","getStartedExplainer":"Create a frontend module from this template","indication":"Indicação","inPastTabPlaceholderSubtitle":"Switch back to the New tab to manage current orders.","inPastTabPlaceholderTitle":"Historic prescriptions will be available soon","insurancePolicyNumberLabel":"Insurance Policy Number (optional)","insurancePolicyNumberPlaceholder":"Enter the policy number","learnExplainer":"Learn how to use the O3 framework","loading":"Loading","medicationsList":"Medicamentos adicionados","noMedicationsAdded":"Nenhum medicamento adicionado ainda.","patientGetterExplainer":"Try clicking the button below to fetch a patient from the backend","patientInstructions":"Instruções ao paciente","prescriptionsActionMenuItem":"Active prescriptions","printPrescriptionLabel":"Print the prescription","remove":"Remover","resources":"Resources","route":"Via de administração","saveMedication":"Salvar medicamento","signPrescriptionLabel":"Digitally sign the prescription","unit":"Unidade","usefulLinks":"Below are some links to useful resources","visitLocationHeading":"Visit location","visitLocationHelper":"Select where the visit will take place.","visitLocationPlaceholder":"Select a location","visitTimingLabel":"The visit is","visitTimingNew":"New","visitTimingPast":"In the past"}')}}]);